2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 gl_use_threads_default
=
623 gl_use_winpthreads_default
=
626 gl_fnmatch_required
=POSIX
627 ac_subst_vars
='am__EXEEXT_FALSE
657 INSTALL_STRIP_PROGRAM
678 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
696 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
699 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
701 UNISTD_H_DEFINES_STRUCT_TIMESPEC
702 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
703 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
704 TIME_H_DEFINES_STRUCT_TIMESPEC
705 NEXT_AS_FIRST_DIRECTIVE_TIME_H
708 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
714 NEXT_AS_FIRST_DIRECTIVE_STRING_H
716 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
718 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
721 GL_GENERATE_STDBOOL_H_FALSE
722 GL_GENERATE_STDBOOL_H_TRUE
724 GL_GENERATE_STDALIGN_H_FALSE
725 GL_GENERATE_STDALIGN_H_TRUE
727 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
730 REPLACE_PTHREAD_SIGMASK
732 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
733 HAVE_STRUCT_SIGACTION_SA_SIGACTION
739 HAVE_POSIX_SIGNALBLOCKING
742 GNULIB_SIGNAL_H_SIGPIPE
744 GNULIB_PTHREAD_SIGMASK
752 REPLACE_STDIO_WRITE_FUNCS
753 REPLACE_STDIO_READ_FUNCS
762 REPLACE_OBSTACK_PRINTF
787 HAVE_DECL_OBSTACK_PRINTF
793 GNULIB_VSPRINTF_POSIX
797 GNULIB_VFPRINTF_POSIX
804 GNULIB_STDIO_H_SIGPIPE
805 GNULIB_STDIO_H_NONBLOCKING
820 GNULIB_OBSTACK_PRINTF_POSIX
821 GNULIB_OBSTACK_PRINTF
846 GL_GENERATE_NETINET_IN_H_FALSE
847 GL_GENERATE_NETINET_IN_H_TRUE
850 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
926 GNULIB_EXPLICIT_BZERO
1029 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1036 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1039 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1041 GL_GENERATE_STDDEF_H_FALSE
1042 GL_GENERATE_STDDEF_H_TRUE
1047 REPLACE_STRUCT_LCONV
1058 GNULIB_SETLOCALE_NULL
1061 LOCALCHARSET_TESTS_ENVIRONMENT
1062 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1064 UINT64_MAX_EQ_ULONG_MAX
1065 UINT32_MAX_LT_UINTMAX_MAX
1068 INT64_MAX_EQ_LONG_MAX
1069 INT32_MAX_LT_INTMAX_MAX
1081 GL_GENERATE_STDINT_H_FALSE
1082 GL_GENERATE_STDINT_H_TRUE
1094 HAVE_SIGNED_SIG_ATOMIC_T
1097 BITSIZEOF_SIG_ATOMIC_T
1100 APPLE_UNIVERSAL_BUILD
1102 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1107 GNULIB_OVERRIDES_WINT_T
1108 GL_GENERATE_LIMITS_H_FALSE
1109 GL_GENERATE_LIMITS_H_TRUE
1111 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1114 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1118 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1119 HAVE_STRUCT_SOCKADDR_STORAGE
1141 GL_GENERATE_GLOB_H_FALSE
1142 GL_GENERATE_GLOB_H_TRUE
1145 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1147 REPLACE_GLOB_PATTERN_P
1166 HAVE_DECL_LOCALTIME_R
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1188 WINDOWS_64_BIT_ST_SIZE
1189 WINDOWS_STAT_TIMESPEC
1190 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1214 GNULIB_OVERRIDES_STRUCT_STAT
1229 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1240 REPLACE_SIGNBIT_USING_GCC
1320 HAVE_DECL_REMAINDERL
1501 GL_GENERATE_FNMATCH_H_FALSE
1502 GL_GENERATE_FNMATCH_H_TRUE
1505 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1511 GL_GENERATE_FLOAT_H_FALSE
1512 GL_GENERATE_FLOAT_H_TRUE
1514 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1516 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1535 GL_GENERATE_ERRNO_H_FALSE
1536 GL_GENERATE_ERRNO_H_TRUE
1538 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1541 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1565 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1566 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1567 UNISTD_H_HAVE_WINSOCK2_H
1592 REPLACE_GETDTABLESIZE
1593 REPLACE_GETDOMAINNAME
1607 HAVE_DECL_SETHOSTNAME
1608 HAVE_DECL_GETUSERSHELL
1609 HAVE_DECL_GETPAGESIZE
1610 HAVE_DECL_GETLOGIN_R
1612 HAVE_DECL_GETDOMAINNAME
1647 HAVE_COPY_FILE_RANGE
1653 GNULIB_UNISTD_H_SIGPIPE
1654 GNULIB_UNISTD_H_NONBLOCKING
1683 GNULIB_GETDTABLESIZE
1684 GNULIB_GETDOMAINNAME
1697 GNULIB_COPY_FILE_RANGE
1720 REPLACE_CANONICALIZE_FILE_NAME
1725 HAVE_STRUCT_RANDOM_DATA
1755 HAVE_DECL_GETLOADAVG
1756 HAVE_CANONICALIZE_FILE_NAME
1768 GNULIB_SECURE_GETENV
1771 GNULIB_REALLOC_POSIX
1790 GNULIB_CANONICALIZE_FILE_NAME
1797 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1800 PRAGMA_SYSTEM_HEADER
1801 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1811 GL_GENERATE_ALLOCA_H_FALSE
1812 GL_GENERATE_ALLOCA_H_TRUE
1815 GL_COND_LIBTOOL_FALSE
1816 GL_COND_LIBTOOL_TRUE
1843 MAINTAINER_MODE_FALSE
1844 MAINTAINER_MODE_TRUE
1872 program_transform_name
1885 enable_option_checking
1886 enable_maintainer_mode
1890 enable_cross_guesses
1891 enable_dependency_tracking
1894 ac_precious_vars
='build_alias
1905 # Initialize some variables set by options.
1907 ac_init_version
=false
1908 ac_unrecognized_opts
=
1909 ac_unrecognized_sep
=
1910 # The variables have the same names as the options, with
1911 # dashes changed to underlines.
1912 cache_file
=/dev
/null
1919 program_transform_name
=s
,x
,x
,
1927 # Installation directory options.
1928 # These are left unexpanded so users can "make install exec_prefix=/foo"
1929 # and all the variables that are supposed to be based on exec_prefix
1930 # by default will actually change.
1931 # Use braces instead of parens because sh, perl, etc. also accept them.
1932 # (The list follows the same order as the GNU Coding Standards.)
1933 bindir
='${exec_prefix}/bin'
1934 sbindir
='${exec_prefix}/sbin'
1935 libexecdir
='${exec_prefix}/libexec'
1936 datarootdir
='${prefix}/share'
1937 datadir
='${datarootdir}'
1938 sysconfdir
='${prefix}/etc'
1939 sharedstatedir
='${prefix}/com'
1940 localstatedir
='${prefix}/var'
1941 includedir
='${prefix}/include'
1942 oldincludedir
='/usr/include'
1943 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1944 infodir
='${datarootdir}/info'
1949 libdir
='${exec_prefix}/lib'
1950 localedir
='${datarootdir}/locale'
1951 mandir
='${datarootdir}/man'
1957 # If the previous option needs an argument, assign it.
1958 if test -n "$ac_prev"; then
1959 eval $ac_prev=\
$ac_option
1965 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1970 # Accept the important Cygnus configure options, so we can diagnose typos.
1972 case $ac_dashdash$ac_option in
1976 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1978 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1979 bindir
=$ac_optarg ;;
1981 -build |
--build |
--buil |
--bui |
--bu)
1982 ac_prev
=build_alias
;;
1983 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1984 build_alias
=$ac_optarg ;;
1986 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1987 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1988 ac_prev
=cache_file
;;
1989 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1990 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1991 cache_file
=$ac_optarg ;;
1993 --config-cache |
-C)
1994 cache_file
=config.cache
;;
1996 -datadir |
--datadir |
--datadi |
--datad)
1998 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1999 datadir
=$ac_optarg ;;
2001 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2002 |
--dataroo |
--dataro |
--datar)
2003 ac_prev
=datarootdir
;;
2004 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2005 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2006 datarootdir
=$ac_optarg ;;
2008 -disable-* |
--disable-*)
2009 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2010 # Reject names that are not valid shell variable names.
2011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2012 as_fn_error $?
"invalid feature name: $ac_useropt"
2013 ac_useropt_orig
=$ac_useropt
2014 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2015 case $ac_user_opts in
2017 "enable_
$ac_useropt"
2019 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2020 ac_unrecognized_sep
=', ';;
2022 eval enable_
$ac_useropt=no
;;
2024 -docdir |
--docdir |
--docdi |
--doc |
--do)
2026 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2027 docdir
=$ac_optarg ;;
2029 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2031 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2032 dvidir
=$ac_optarg ;;
2034 -enable-* |
--enable-*)
2035 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2036 # Reject names that are not valid shell variable names.
2037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2038 as_fn_error $?
"invalid feature name: $ac_useropt"
2039 ac_useropt_orig
=$ac_useropt
2040 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2041 case $ac_user_opts in
2043 "enable_
$ac_useropt"
2045 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2046 ac_unrecognized_sep
=', ';;
2048 eval enable_
$ac_useropt=\
$ac_optarg ;;
2050 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2051 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2052 |
--exec |
--exe |
--ex)
2053 ac_prev
=exec_prefix
;;
2054 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2055 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2056 |
--exec=* |
--exe=* |
--ex=*)
2057 exec_prefix
=$ac_optarg ;;
2059 -gas |
--gas |
--ga |
--g)
2060 # Obsolete; use --with-gas.
2063 -help |
--help |
--hel |
--he |
-h)
2064 ac_init_help
=long
;;
2065 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2066 ac_init_help
=recursive
;;
2067 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2068 ac_init_help
=short
;;
2070 -host |
--host |
--hos |
--ho)
2071 ac_prev
=host_alias
;;
2072 -host=* |
--host=* |
--hos=* |
--ho=*)
2073 host_alias
=$ac_optarg ;;
2075 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2077 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2079 htmldir
=$ac_optarg ;;
2081 -includedir |
--includedir |
--includedi |
--included |
--include \
2082 |
--includ |
--inclu |
--incl |
--inc)
2083 ac_prev
=includedir
;;
2084 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2085 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2086 includedir
=$ac_optarg ;;
2088 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2090 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2091 infodir
=$ac_optarg ;;
2093 -libdir |
--libdir |
--libdi |
--libd)
2095 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2096 libdir
=$ac_optarg ;;
2098 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2099 |
--libexe |
--libex |
--libe)
2100 ac_prev
=libexecdir
;;
2101 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2102 |
--libexe=* |
--libex=* |
--libe=*)
2103 libexecdir
=$ac_optarg ;;
2105 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2106 ac_prev
=localedir
;;
2107 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2108 localedir
=$ac_optarg ;;
2110 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2111 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2112 ac_prev
=localstatedir
;;
2113 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2114 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2115 localstatedir
=$ac_optarg ;;
2117 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2119 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2120 mandir
=$ac_optarg ;;
2122 -nfp |
--nfp |
--nf)
2123 # Obsolete; use --without-fp.
2126 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2127 |
--no-cr |
--no-c |
-n)
2130 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2131 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2134 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2135 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2136 |
--oldin |
--oldi |
--old |
--ol |
--o)
2137 ac_prev
=oldincludedir
;;
2138 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2139 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2140 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2141 oldincludedir
=$ac_optarg ;;
2143 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2145 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2146 prefix
=$ac_optarg ;;
2148 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2149 |
--program-pre |
--program-pr |
--program-p)
2150 ac_prev
=program_prefix
;;
2151 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2152 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2153 program_prefix
=$ac_optarg ;;
2155 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2156 |
--program-suf |
--program-su |
--program-s)
2157 ac_prev
=program_suffix
;;
2158 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2159 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2160 program_suffix
=$ac_optarg ;;
2162 -program-transform-name |
--program-transform-name \
2163 |
--program-transform-nam |
--program-transform-na \
2164 |
--program-transform-n |
--program-transform- \
2165 |
--program-transform |
--program-transfor \
2166 |
--program-transfo |
--program-transf \
2167 |
--program-trans |
--program-tran \
2168 |
--progr-tra |
--program-tr |
--program-t)
2169 ac_prev
=program_transform_name
;;
2170 -program-transform-name=* |
--program-transform-name=* \
2171 |
--program-transform-nam=* |
--program-transform-na=* \
2172 |
--program-transform-n=* |
--program-transform-=* \
2173 |
--program-transform=* |
--program-transfor=* \
2174 |
--program-transfo=* |
--program-transf=* \
2175 |
--program-trans=* |
--program-tran=* \
2176 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2177 program_transform_name
=$ac_optarg ;;
2179 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2181 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2182 pdfdir
=$ac_optarg ;;
2184 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2186 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2189 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2190 |
-silent |
--silent |
--silen |
--sile |
--sil)
2193 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2195 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2197 sbindir
=$ac_optarg ;;
2199 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2200 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2201 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2203 ac_prev
=sharedstatedir
;;
2204 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2205 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2206 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2208 sharedstatedir
=$ac_optarg ;;
2210 -site |
--site |
--sit)
2212 -site=* |
--site=* |
--sit=*)
2215 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2217 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2218 srcdir
=$ac_optarg ;;
2220 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2221 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2222 ac_prev
=sysconfdir
;;
2223 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2224 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2225 sysconfdir
=$ac_optarg ;;
2227 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2228 ac_prev
=target_alias
;;
2229 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2230 target_alias
=$ac_optarg ;;
2232 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2235 -version |
--version |
--versio |
--versi |
--vers |
-V)
2236 ac_init_version
=: ;;
2239 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2240 # Reject names that are not valid shell variable names.
2241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2242 as_fn_error $?
"invalid package name: $ac_useropt"
2243 ac_useropt_orig
=$ac_useropt
2244 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2245 case $ac_user_opts in
2249 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2250 ac_unrecognized_sep
=', ';;
2252 eval with_
$ac_useropt=\
$ac_optarg ;;
2254 -without-* |
--without-*)
2255 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2256 # Reject names that are not valid shell variable names.
2257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2258 as_fn_error $?
"invalid package name: $ac_useropt"
2259 ac_useropt_orig
=$ac_useropt
2260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2261 case $ac_user_opts in
2265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2266 ac_unrecognized_sep
=', ';;
2268 eval with_
$ac_useropt=no
;;
2271 # Obsolete; use --with-x.
2274 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2275 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2276 ac_prev
=x_includes
;;
2277 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2278 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2279 x_includes
=$ac_optarg ;;
2281 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2282 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2283 ac_prev
=x_libraries
;;
2284 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2285 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2286 x_libraries
=$ac_optarg ;;
2288 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2289 Try \`$0 --help' for more information"
2293 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2294 # Reject names that are not valid shell variable names.
2295 case $ac_envvar in #(
2296 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2297 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2299 eval $ac_envvar=\
$ac_optarg
2300 export $ac_envvar ;;
2303 # FIXME: should be removed in autoconf 3.0.
2304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2313 if test -n "$ac_prev"; then
2314 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2315 as_fn_error $?
"missing argument to $ac_option"
2318 if test -n "$ac_unrecognized_opts"; then
2319 case $enable_option_checking in
2321 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2326 # Check all directory arguments for consistency.
2327 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2328 datadir sysconfdir sharedstatedir localstatedir includedir \
2329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2330 libdir localedir mandir
2332 eval ac_val
=\$
$ac_var
2333 # Remove trailing slashes.
2336 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2337 eval $ac_var=\
$ac_val;;
2339 # Be sure to have absolute directory names.
2341 [\\/$
]* | ?
:[\\/]* ) continue;;
2342 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2344 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2347 # There might be people who depend on the old broken behavior: `$host'
2348 # used to hold the argument of --host etc.
2349 # FIXME: To remove some day.
2352 target
=$target_alias
2354 # FIXME: To remove some day.
2355 if test "x$host_alias" != x
; then
2356 if test "x$build_alias" = x
; then
2357 cross_compiling
=maybe
2358 elif test "x$build_alias" != "x$host_alias"; then
2364 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2366 test "$silent" = yes && exec 6>/dev
/null
2369 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2370 ac_ls_di
=`ls -di .` &&
2371 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2372 as_fn_error $?
"working directory cannot be determined"
2373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2374 as_fn_error $?
"pwd does not report name of working directory"
2377 # Find the source files, if location was not specified.
2378 if test -z "$srcdir"; then
2379 ac_srcdir_defaulted
=yes
2380 # Try the directory containing this script, then the parent directory.
2381 ac_confdir
=`$as_dirname -- "$as_myself" ||
2382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2383 X"$as_myself" : 'X\(//\)[^/]' \| \
2384 X"$as_myself" : 'X\(//\)$' \| \
2385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2386 $as_echo X"$as_myself" |
2387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2405 if test ! -r "$srcdir/$ac_unique_file"; then
2409 ac_srcdir_defaulted
=no
2411 if test ! -r "$srcdir/$ac_unique_file"; then
2412 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2413 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2415 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2419 # When building in place, set srcdir=.
2420 if test "$ac_abs_confdir" = "$ac_pwd"; then
2423 # Remove unnecessary trailing slashes from srcdir.
2424 # Double slashes in file names in object file debugging info
2425 # mess up M-x gdb in Emacs.
2427 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2429 for ac_var
in $ac_precious_vars; do
2430 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2431 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2432 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2433 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2437 # Report the --help message.
2439 if test "$ac_init_help" = "long"; then
2440 # Omit some internal or obsolete options to make the list less imposing.
2441 # This message is too long to be a string in the A/UX 3.1 sh.
2443 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2445 Usage: $0 [OPTION]... [VAR=VALUE]...
2447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2448 VAR=VALUE. See below for descriptions of some of the useful variables.
2450 Defaults for the options are specified in brackets.
2453 -h, --help display this help and exit
2454 --help=short display options specific to this package
2455 --help=recursive display the short help of all the included packages
2456 -V, --version display version information and exit
2457 -q, --quiet, --silent do not print \`checking ...' messages
2458 --cache-file=FILE cache test results in FILE [disabled]
2459 -C, --config-cache alias for \`--cache-file=config.cache'
2460 -n, --no-create do not create output files
2461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2463 Installation directories:
2464 --prefix=PREFIX install architecture-independent files in PREFIX
2465 [$ac_default_prefix]
2466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2469 By default, \`make install' will install all the files in
2470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2472 for instance \`--prefix=\$HOME'.
2474 For better control, use the options below.
2476 Fine tuning of the installation directories:
2477 --bindir=DIR user executables [EPREFIX/bin]
2478 --sbindir=DIR system admin executables [EPREFIX/sbin]
2479 --libexecdir=DIR program executables [EPREFIX/libexec]
2480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2483 --libdir=DIR object code libraries [EPREFIX/lib]
2484 --includedir=DIR C header files [PREFIX/include]
2485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2488 --infodir=DIR info documentation [DATAROOTDIR/info]
2489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2490 --mandir=DIR man documentation [DATAROOTDIR/man]
2491 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2492 --htmldir=DIR html documentation [DOCDIR]
2493 --dvidir=DIR dvi documentation [DOCDIR]
2494 --pdfdir=DIR pdf documentation [DOCDIR]
2495 --psdir=DIR ps documentation [DOCDIR]
2501 --program-prefix=PREFIX prepend PREFIX to installed program names
2502 --program-suffix=SUFFIX append SUFFIX to installed program names
2503 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2506 --build=BUILD configure
for building on BUILD
[guessed
]
2507 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2508 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2512 if test -n "$ac_init_help"; then
2513 case $ac_init_help in
2514 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2519 --disable-option-checking ignore unrecognized
--enable/--with options
2520 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2521 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2522 --enable-maintainer-mode
2523 enable make rules and dependencies not useful
(and
2524 sometimes confusing
) to the casual installer
2525 --disable-largefile omit support
for large files
2526 --enable-threads={isoc|posix|isoc
+posix|windows
}
2527 specify multithreading API
2528 --disable-threads build without multithread safety
2529 --enable-plugins Enable support
for plugins
2530 --enable-cross-guesses={conservative|risky
}
2531 specify policy
for cross-compilation guesses
2532 --enable-dependency-tracking
2533 do not reject slow dependency extractors
2534 --disable-dependency-tracking
2535 speeds up one-time build
2536 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2537 --disable-silent-rules verbose build output
(undo
: "make V=0")
2539 Some influential environment variables
:
2540 CC C compiler
command
2541 CFLAGS C compiler flags
2542 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2543 nonstandard directory
<lib dir
>
2544 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2545 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2546 you have headers
in a nonstandard directory
<include dir
>
2549 Use these variables to override the choices made by
`configure' or to help
2550 it to find libraries and programs with nonstandard names/locations.
2552 Report bugs to the package provider.
2557 if test "$ac_init_help" = "recursive"; then
2558 # If there are subdirs, report their specific --help.
2559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2560 test -d "$ac_dir" ||
2561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2568 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2569 # A ".." for each directory in $ac_dir_suffix.
2570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2571 case $ac_top_builddir_sub in
2572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2576 ac_abs_top_builddir=$ac_pwd
2577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2578 # for backward compatibility:
2579 ac_top_builddir=$ac_top_build_prefix
2582 .) # We are building in place.
2584 ac_top_srcdir=$ac_top_builddir_sub
2585 ac_abs_top_srcdir=$ac_pwd ;;
2586 [\\/]* | ?:[\\/]* ) # Absolute name.
2587 ac_srcdir=$srcdir$ac_dir_suffix;
2588 ac_top_srcdir=$srcdir
2589 ac_abs_top_srcdir=$srcdir ;;
2591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2592 ac_top_srcdir=$ac_top_build_prefix$srcdir
2593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2597 cd "$ac_dir" || { ac_status=$?; continue; }
2598 # Check for guested configure.
2599 if test -f "$ac_srcdir/configure.gnu"; then
2601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2602 elif test -f "$ac_srcdir/configure"; then
2604 $SHELL "$ac_srcdir/configure" --help=recursive
2606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2608 cd "$ac_pwd" || { ac_status=$?; break; }
2612 test -n "$ac_init_help" && exit $ac_status
2613 if $ac_init_version; then
2615 libgnu configure UNUSED-VERSION
2616 generated by GNU Autoconf 2.69
2618 Copyright (C) 2012 Free Software Foundation, Inc.
2619 This configure script is free software; the Free Software Foundation
2620 gives unlimited permission to copy, distribute and modify it.
2625 ## ------------------------ ##
2626 ## Autoconf initialization. ##
2627 ## ------------------------ ##
2629 # ac_fn_c_try_compile LINENO
2630 # --------------------------
2631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2632 ac_fn_c_try_compile ()
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext
2636 if { { ac_try="$ac_compile"
2638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2639 *) ac_try_echo
=$ac_try;;
2641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_compile") 2>conftest.err
2645 if test -s conftest.err
; then
2646 grep -v '^ *+' conftest.err
>conftest.er1
2647 cat conftest.er1
>&5
2648 mv -f conftest.er1 conftest.err
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.
$ac_objext; then :
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.
$ac_ext >&5
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663 as_fn_set_status
$ac_retval
2665 } # ac_fn_c_try_compile
2667 # ac_fn_c_try_cpp LINENO
2668 # ----------------------
2669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2673 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2679 $as_echo "$ac_try_echo"; } >&5
2680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2682 if test -s conftest.err; then
2683 grep -v '^ *+' conftest.err >conftest.er1
2684 cat conftest.er1 >&5
2685 mv -f conftest.er1 conftest.err
2687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688 test $ac_status = 0; } > conftest.i && {
2689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2690 test ! -s conftest.err
2694 $as_echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 as_fn_set_status $ac_retval
2704 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2705 # -------------------------------------------------------
2706 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2707 # the include files in INCLUDES and setting the cache variable VAR
2709 ac_fn_c_check_header_mongrel ()
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 if eval \${$3+:} false; then :
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 $as_echo_n "checking for $2... " >&6; }
2715 if eval \${$3+:} false; then :
2716 $as_echo_n "(cached) " >&6
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2720 $as_echo "$ac_res" >&6; }
2722 # Is the header compilable?
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2724 $as_echo_n "checking $2 usability... " >&6; }
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_header_compiler=yes
2733 ac_header_compiler=no
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2737 $as_echo "$ac_header_compiler" >&6; }
2739 # Is the header present?
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2741 $as_echo_n "checking $2 presence... " >&6; }
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2746 if ac_fn_c_try_cpp "$LINENO"; then :
2747 ac_header_preproc=yes
2749 ac_header_preproc=no
2751 rm -f conftest.err conftest.i conftest.$ac_ext
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2753 $as_echo "$ac_header_preproc" >&6; }
2755 # So? What about this header?
2756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2759 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2765 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2767 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2769 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2771 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2773 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777 $as_echo_n "checking for $2... " >&6; }
2778 if eval \${$3+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 eval "$3=\$ac_header_compiler"
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 } # ac_fn_c_check_header_mongrel
2791 # ac_fn_c_try_run LINENO
2792 # ----------------------
2793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2794 # that executables *can* be run.
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 if { { ac_try="$ac_link"
2800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2801 *) ac_try_echo
=$ac_try;;
2803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_link") 2>&5
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2809 { { case "(($ac_try" in
2810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814 $as_echo "$ac_try_echo"; } >&5
2815 (eval "$ac_try") 2>&5
2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818 test $ac_status = 0; }; }; then :
2821 $as_echo "$as_me: program exited with status $ac_status" >&5
2822 $as_echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 ac_retval=$ac_status
2827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2829 as_fn_set_status $ac_retval
2833 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2834 # -------------------------------------------------------
2835 # Tests whether HEADER exists and can be compiled using the include files in
2836 # INCLUDES, setting the cache variable VAR accordingly.
2837 ac_fn_c_check_header_compile ()
2839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2841 $as_echo_n "checking for $2... " >&6; }
2842 if eval \${$3+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2850 if ac_fn_c_try_compile "$LINENO"; then :
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2859 $as_echo "$ac_res" >&6; }
2860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2862 } # ac_fn_c_check_header_compile
2864 # ac_fn_c_try_link LINENO
2865 # -----------------------
2866 # Try to link conftest.$ac_ext, and return whether this succeeded.
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 rm -f conftest.$ac_objext conftest$ac_exeext
2871 if { { ac_try="$ac_link"
2873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2874 *) ac_try_echo
=$ac_try;;
2876 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link") 2>conftest.err
2880 if test -s conftest.err
; then
2881 grep -v '^ *+' conftest.err
>conftest.er1
2882 cat conftest.er1
>&5
2883 mv -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; } && {
2887 test -z "$ac_c_werror_flag" ||
2888 test ! -s conftest.err
2889 } && test -s conftest
$ac_exeext && {
2890 test "$cross_compiling" = yes ||
2891 test -x conftest
$ac_exeext
2895 $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.
$ac_ext >&5
2900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2902 # interfere with the next link command; also delete a directory that is
2903 # left behind by Apple's compiler. We do this before executing the actions.
2904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906 as_fn_set_status
$ac_retval
2908 } # ac_fn_c_try_link
2910 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2911 # -------------------------------------------
2912 # Tests whether TYPE exists after having included INCLUDES, setting cache
2913 # variable VAR accordingly.
2914 ac_fn_c_check_type
()
2916 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2918 $as_echo_n "checking for $2... " >&6; }
2919 if eval \
${$3+:} false
; then :
2920 $as_echo_n "(cached) " >&6
2923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2935 if ac_fn_c_try_compile
"$LINENO"; then :
2936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h. */
2948 if ac_fn_c_try_compile
"$LINENO"; then :
2953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2959 $as_echo "$ac_res" >&6; }
2960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2962 } # ac_fn_c_check_type
2964 # ac_fn_c_check_func LINENO FUNC VAR
2965 # ----------------------------------
2966 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2967 ac_fn_c_check_func
()
2969 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2971 $as_echo_n "checking for $2... " >&6; }
2972 if eval \
${$3+:} false
; then :
2973 $as_echo_n "(cached) " >&6
2975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2979 #define $2 innocuous_$2
2981 /* System header to define __stub macros and hopefully few prototypes,
2982 which can conflict with char $2 (); below.
2983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 <limits.h> exists even on freestanding compilers. */
2987 # include <limits.h>
2989 # include <assert.h>
2994 /* Override any GCC internal prototype to avoid an error.
2995 Use char because int might match the return type of a GCC
2996 builtin and then its argument prototype would still apply. */
3001 /* The GNU C library defines this for functions which it implements
3002 to always fail with ENOSYS. Some functions are actually named
3003 something starting with __ and the normal name is an alias. */
3004 #if defined __stub_$2 || defined __stub___$2
3016 if ac_fn_c_try_link
"$LINENO"; then :
3021 rm -f core conftest.err conftest.
$ac_objext \
3022 conftest
$ac_exeext conftest.
$ac_ext
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3026 $as_echo "$ac_res" >&6; }
3027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3029 } # ac_fn_c_check_func
3031 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3032 # ---------------------------------------------
3033 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3035 ac_fn_c_check_decl
()
3037 ac_save_ac_compile
="$ac_compile"
3038 if test -n "$ac_compile_for_check_decl"; then
3039 ac_compile
="$ac_compile_for_check_decl"
3041 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3042 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3043 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3045 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3046 if eval \
${$3+:} false
; then :
3047 $as_echo_n "(cached) " >&6
3049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3055 #ifndef $as_decl_name
3057 (void) $as_decl_use;
3059 (void) $as_decl_name;
3067 if ac_fn_c_try_compile
"$LINENO"; then :
3072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3076 $as_echo "$ac_res" >&6; }
3077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3078 ac_compile
="$ac_save_ac_compile"
3080 } # ac_fn_c_check_decl
3082 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3083 # --------------------------------------------
3084 # Tries to find the compile-time value of EXPR in a program that includes
3085 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3087 ac_fn_c_compute_int
()
3089 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3090 if test "$cross_compiling" = yes; then
3091 # Depending upon the size, compute the lo and hi bounds.
3092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3098 static int test_array [1 - 2 * !(($2) >= 0)];
3100 return test_array [0];
3106 if ac_fn_c_try_compile
"$LINENO"; then :
3109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3117 return test_array [0];
3123 if ac_fn_c_try_compile
"$LINENO"; then :
3124 ac_hi
=$ac_mid; break
3126 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3127 if test $ac_lo -le $ac_mid; then
3131 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3142 static int test_array [1 - 2 * !(($2) < 0)];
3144 return test_array [0];
3150 if ac_fn_c_try_compile
"$LINENO"; then :
3153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3159 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3161 return test_array [0];
3167 if ac_fn_c_try_compile
"$LINENO"; then :
3168 ac_lo
=$ac_mid; break
3170 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3171 if test $ac_mid -le $ac_hi; then
3175 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3185 # Binary search between lo and hi bounds.
3186 while test "x$ac_lo" != "x$ac_hi"; do
3187 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3196 return test_array [0];
3202 if ac_fn_c_try_compile
"$LINENO"; then :
3205 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3210 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3217 static long int longval () { return $2; }
3218 static unsigned long int ulongval () { return $2; }
3225 FILE *f = fopen ("conftest.val", "w");
3230 long int i = longval ();
3233 fprintf (f, "%ld", i);
3237 unsigned long int i = ulongval ();
3240 fprintf (f, "%lu", i);
3242 /* Do not output a trailing newline, as this causes \r\n confusion
3243 on some platforms. */
3244 return ferror (f) || fclose (f) != 0;
3250 if ac_fn_c_try_run
"$LINENO"; then :
3251 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3261 as_fn_set_status
$ac_retval
3263 } # ac_fn_c_compute_int
3265 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3266 # ----------------------------------------------------
3267 # Tries to find if the field MEMBER exists in type AGGR, after including
3268 # INCLUDES, setting cache variable VAR accordingly.
3269 ac_fn_c_check_member
()
3271 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3273 $as_echo_n "checking for $2.$3... " >&6; }
3274 if eval \
${$4+:} false
; then :
3275 $as_echo_n "(cached) " >&6
3277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3290 if ac_fn_c_try_compile
"$LINENO"; then :
3293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3300 if (sizeof ac_aggr.$3)
3306 if ac_fn_c_try_compile
"$LINENO"; then :
3311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3317 $as_echo "$ac_res" >&6; }
3318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3320 } # ac_fn_c_check_member
3321 cat >config.log
<<_ACEOF
3322 This file contains any messages produced by compilers while
3323 running configure, to aid debugging if configure makes a mistake.
3325 It was created by libgnu $as_me UNUSED-VERSION, which was
3326 generated by GNU Autoconf 2.69. Invocation command line was
3338 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3339 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3340 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3341 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3342 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3344 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3345 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3347 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3348 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3349 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3350 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3351 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3352 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3353 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 $as_echo "PATH: $as_dir"
3378 # Keep a trace of the command line.
3379 # Strip out --no-create and --no-recursion so they do not pile up.
3380 # Strip out --silent because we don't want to record it for future runs.
3381 # Also quote any args containing shell meta-characters.
3382 # Make two passes to allow for proper duplicate-argument suppression.
3386 ac_must_keep_next
=false
3392 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3393 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3394 |
-silent |
--silent |
--silen |
--sile |
--sil)
3397 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3400 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3402 as_fn_append ac_configure_args1
" '$ac_arg'"
3403 if test $ac_must_keep_next = true
; then
3404 ac_must_keep_next
=false
# Got value, back to normal.
3407 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3408 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3409 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3410 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3411 case "$ac_configure_args0 " in
3412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3415 -* ) ac_must_keep_next
=true
;;
3418 as_fn_append ac_configure_args
" '$ac_arg'"
3423 { ac_configure_args0
=; unset ac_configure_args0
;}
3424 { ac_configure_args1
=; unset ac_configure_args1
;}
3426 # When interrupted or exit'd, cleanup temporary files, and complete
3427 # config.log. We remove comments because anyway the quotes in there
3428 # would cause problems or look ugly.
3429 # WARNING: Use '\'' to represent an apostrophe within the trap.
3430 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3431 trap 'exit_status=$?
3432 # Save into config.log some information that might help in debugging.
3436 $as_echo "## ---------------- ##
3437 ## Cache variables. ##
3438 ## ---------------- ##"
3440 # The following way of writing the cache mishandles newlines in values,
3442 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3443 eval ac_val=\$$ac_var
3447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3451 _ | IFS | as_nl) ;; #(
3452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3453 *) { eval $ac_var=; unset $ac_var;} ;;
3458 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3459 *${as_nl}ac_space=\ *)
3461 "s/'\''/'\''\\\\'\'''\''/g;
3462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3472 $as_echo "## ----------------- ##
3473 ## Output variables. ##
3474 ## ----------------- ##"
3476 for ac_var in $ac_subst_vars
3478 eval ac_val=\$$ac_var
3480 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3482 $as_echo "$ac_var='\''$ac_val'\''"
3486 if test -n "$ac_subst_files"; then
3487 $as_echo "## ------------------- ##
3488 ## File substitutions. ##
3489 ## ------------------- ##"
3491 for ac_var
in $ac_subst_files
3493 eval ac_val
=\$
$ac_var
3495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3497 $as_echo "$ac_var='\''$ac_val'\''"
3502 if test -s confdefs.h; then
3503 $as_echo "## ----------- ##
3510 test "$ac_signal" != 0 &&
3511 $as_echo "$as_me: caught signal $ac_signal"
3512 $as_echo "$as_me: exit $exit_status"
3514 rm -f core *.core core.conftest.* &&
3515 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3518 for ac_signal
in 1 2 13 15; do
3519 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3524 rm -f -r conftest
* confdefs.h
3526 $as_echo "/* confdefs.h */" > confdefs.h
3528 # Predefined preprocessor variables.
3530 cat >>confdefs.h
<<_ACEOF
3531 #define PACKAGE_NAME "$PACKAGE_NAME"
3534 cat >>confdefs.h
<<_ACEOF
3535 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3538 cat >>confdefs.h
<<_ACEOF
3539 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3542 cat >>confdefs.h
<<_ACEOF
3543 #define PACKAGE_STRING "$PACKAGE_STRING"
3546 cat >>confdefs.h
<<_ACEOF
3547 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3550 cat >>confdefs.h
<<_ACEOF
3551 #define PACKAGE_URL "$PACKAGE_URL"
3555 # Let the site file select an alternate cache file if it wants to.
3556 # Prefer an explicitly selected file to automatically selected ones.
3559 if test -n "$CONFIG_SITE"; then
3560 # We do not want a PATH search for config.site.
3561 case $CONFIG_SITE in #((
3562 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3563 */*) ac_site_file1
=$CONFIG_SITE;;
3564 *) ac_site_file1
=.
/$CONFIG_SITE;;
3566 elif test "x$prefix" != xNONE
; then
3567 ac_site_file1
=$prefix/share
/config.site
3568 ac_site_file2
=$prefix/etc
/config.site
3570 ac_site_file1
=$ac_default_prefix/share
/config.site
3571 ac_site_file2
=$ac_default_prefix/etc
/config.site
3573 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3575 test "x$ac_site_file" = xNONE
&& continue
3576 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3578 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3579 sed 's/^/| /' "$ac_site_file" >&5
3581 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $?
"failed to load site script $ac_site_file
3584 See \`config.log' for more details" "$LINENO" 5; }
3588 if test -r "$cache_file"; then
3589 # Some versions of bash will fail to source /dev/null (special files
3590 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3591 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3593 $as_echo "$as_me: loading cache $cache_file" >&6;}
3595 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3596 *) .
"./$cache_file";;
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3601 $as_echo "$as_me: creating cache $cache_file" >&6;}
3605 as_fn_append ac_header_list
" arpa/inet.h"
3606 as_fn_append ac_header_list
" features.h"
3607 as_fn_append ac_header_list
" sys/socket.h"
3608 as_fn_append ac_func_list
" canonicalize_file_name"
3609 as_fn_append ac_func_list
" getcwd"
3610 as_fn_append ac_func_list
" readlink"
3611 as_fn_append ac_func_list
" realpath"
3612 as_fn_append ac_header_list
" sys/param.h"
3613 as_fn_append ac_header_list
" unistd.h"
3614 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3615 as_fn_append ac_func_list
" fchdir"
3616 as_fn_append ac_header_list
" dirent.h"
3617 as_fn_append ac_func_list
" fcntl"
3618 as_fn_append ac_func_list
" symlink"
3619 as_fn_append ac_func_list
" fdopendir"
3620 as_fn_append ac_func_list
" mempcpy"
3621 as_fn_append ac_header_list
" fnmatch.h"
3622 as_fn_append ac_func_list
" fnmatch"
3623 as_fn_append ac_func_list
" btowc"
3624 as_fn_append ac_func_list
" isblank"
3625 as_fn_append ac_func_list
" iswctype"
3626 as_fn_append ac_func_list
" mbsrtowcs"
3627 as_fn_append ac_func_list
" wmemchr"
3628 as_fn_append ac_func_list
" wmemcpy"
3629 as_fn_append ac_func_list
" wmempcpy"
3630 as_fn_append ac_header_list
" wctype.h"
3631 gl_fnmatch_required
=GNU
3632 as_fn_append ac_header_list
" sys/stat.h"
3633 as_fn_append ac_func_list
" fstatat"
3634 as_fn_append ac_func_list
" getdtablesize"
3635 as_fn_append ac_func_list
" getlogin_r"
3636 as_fn_append ac_func_list
" getprogname"
3637 as_fn_append ac_func_list
" getexecname"
3638 as_fn_append ac_header_list
" sys/time.h"
3639 as_fn_append ac_func_list
" gettimeofday"
3640 as_fn_append ac_header_list
" glob.h"
3641 as_fn_append ac_func_list
" glob"
3642 as_fn_append ac_func_list
" glob_pattern_p"
3643 as_fn_append ac_func_list
" getpwnam_r"
3644 as_fn_append ac_header_list
" threads.h"
3645 as_fn_append ac_header_list
" netdb.h"
3646 as_fn_append ac_header_list
" netinet/in.h"
3647 as_fn_append ac_header_list
" limits.h"
3648 as_fn_append ac_header_list
" wchar.h"
3649 as_fn_append ac_header_list
" stdint.h"
3650 as_fn_append ac_header_list
" inttypes.h"
3651 as_fn_append ac_header_list
" xlocale.h"
3652 as_fn_append ac_func_list
" lstat"
3653 as_fn_append ac_header_list
" math.h"
3654 as_fn_append ac_func_list
" mbsinit"
3655 as_fn_append ac_func_list
" mbrtowc"
3656 as_fn_append ac_header_list
" sys/mman.h"
3657 as_fn_append ac_func_list
" mprotect"
3658 as_fn_append ac_func_list
" mkostemp"
3659 as_fn_append ac_func_list
" openat"
3660 as_fn_append ac_func_list
" link"
3661 as_fn_append ac_func_list
" setenv"
3662 as_fn_append ac_func_list
" strdup"
3663 as_fn_append ac_func_list
" strerror_r"
3664 as_fn_append ac_func_list
" __xpg_strerror_r"
3665 as_fn_append ac_func_list
" catgets"
3666 as_fn_append ac_func_list
" snprintf"
3667 as_fn_append ac_header_list
" sys/uio.h"
3668 as_fn_append ac_func_list
" localtime_r"
3669 as_fn_append ac_func_list
" pipe"
3670 as_fn_append ac_header_list
" crtdefs.h"
3671 as_fn_append ac_func_list
" iswcntrl"
3672 # Check that the precious variables saved in the cache have kept the same
3674 ac_cache_corrupted
=false
3675 for ac_var
in $ac_precious_vars; do
3676 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3677 eval ac_new_set
=\
$ac_env_${ac_var}_set
3678 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3679 eval ac_new_val
=\
$ac_env_${ac_var}_value
3680 case $ac_old_set,$ac_new_set in
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3684 ac_cache_corrupted
=: ;;
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3688 ac_cache_corrupted
=: ;;
3691 if test "x$ac_old_val" != "x$ac_new_val"; then
3692 # differences in whitespace do not lead to failure.
3693 ac_old_val_w
=`echo x $ac_old_val`
3694 ac_new_val_w
=`echo x $ac_new_val`
3695 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3698 ac_cache_corrupted
=:
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3702 eval $ac_var=\
$ac_old_val
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3705 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3707 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3710 # Pass precious variables to config.status.
3711 if test "$ac_new_set" = set; then
3713 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3714 *) ac_arg
=$ac_var=$ac_new_val ;;
3716 case " $ac_configure_args " in
3717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3718 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3722 if $ac_cache_corrupted; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3727 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3729 ## -------------------- ##
3730 ## Main body of script. ##
3731 ## -------------------- ##
3734 ac_cpp
='$CPP $CPPFLAGS'
3735 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3744 ac_config_headers
="$ac_config_headers config.h:config.in"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3750 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3751 # Check whether --enable-maintainer-mode was given.
3752 if test "${enable_maintainer_mode+set}" = set; then :
3753 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3755 USE_MAINTAINER_MODE
=no
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3759 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3760 if test $USE_MAINTAINER_MODE = yes; then
3761 MAINTAINER_MODE_TRUE
=
3762 MAINTAINER_MODE_FALSE
='#'
3764 MAINTAINER_MODE_TRUE
='#'
3765 MAINTAINER_MODE_FALSE
=
3768 MAINT
=$MAINTAINER_MODE_TRUE
3773 ac_cpp
='$CPP $CPPFLAGS'
3774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3777 if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_CC+:} false
; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC
="$CC" # Let the user override the test.
3788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir
=.
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3816 if test -z "$ac_cv_prog_CC"; then
3818 # Extract the first word of "gcc", so it can be a program name with args.
3819 set dummy gcc
; ac_word
=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir
=.
3833 for ac_exec_ext
in '' $ac_executable_extensions; do
3834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_CC
="gcc"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3854 if test "x$ac_ct_CC" = x
; then
3857 case $cross_compiling:$ac_tool_warned in
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861 ac_tool_warned
=yes ;;
3869 if test -z "$CC"; then
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3872 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if ${ac_cv_prog_CC+:} false
; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC
="$CC" # Let the user override the test.
3881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir
=.
3886 for ac_exec_ext
in '' $ac_executable_extensions; do
3887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 if test -n "$CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3910 if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912 set dummy cc
; ac_word
=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_CC+:} false
; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC
="$CC" # Let the user override the test.
3922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir
=.
3927 for ac_exec_ext
in '' $ac_executable_extensions; do
3928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected
=yes
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy
$ac_cv_prog_CC
3945 if test $# != 0; then
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3950 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3956 if test -n "$CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958 $as_echo "$CC" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3966 if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 for ac_prog
in cl.exe
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if ${ac_cv_prog_CC+:} false
; then :
3975 $as_echo_n "(cached) " >&6
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC
="$CC" # Let the user override the test.
3980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir
=.
3985 for ac_exec_ext
in '' $ac_executable_extensions; do
3986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$CC"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4007 test -n "$CC" && break
4010 if test -z "$CC"; then
4012 for ac_prog
in cl.exe
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy
$ac_prog; ac_word
=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4019 $as_echo_n "(cached) " >&6
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_CC
="$ac_prog"
4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 $as_echo "$ac_ct_CC" >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4051 test -n "$ac_ct_CC" && break
4054 if test "x$ac_ct_CC" = x
; then
4057 case $cross_compiling:$ac_tool_warned in
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned
=yes ;;
4068 if test -z "$CC"; then
4069 if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4071 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_CC+:} false
; then :
4075 $as_echo_n "(cached) " >&6
4077 if test -n "$CC"; then
4078 ac_cv_prog_CC
="$CC" # Let the user override the test.
4080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir
=.
4085 for ac_exec_ext
in '' $ac_executable_extensions; do
4086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4108 if test -z "$ac_cv_prog_CC"; then
4110 # Extract the first word of "clang", so it can be a program name with args.
4111 set dummy clang
; ac_word
=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir
=.
4125 for ac_exec_ext
in '' $ac_executable_extensions; do
4126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC
="clang"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4146 if test "x$ac_ct_CC" = x
; then
4149 case $cross_compiling:$ac_tool_warned in
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned
=yes ;;
4164 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $?
"no acceptable C compiler found in \$PATH
4167 See \`config.log' for more details" "$LINENO" 5; }
4169 # Provide some information about the compiler.
4170 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4173 for ac_option
in --version -v -V -qversion -version; do
4174 { { ac_try
="$ac_compiler $ac_option >&5"
4176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4183 if test -s conftest.err; then
4185 ... rest of stderr output deleted ...
4186 10q' conftest.err >conftest.er1
4187 cat conftest.er1 >&5
4189 rm -f conftest.er1 conftest.err
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4205 ac_clean_files_save=$ac_clean_files
4206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4207 # Try to create an executable without -o first, disregard a.out.
4208 # It will help us diagnose broken compilers, and finding out an intuition
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4211 $as_echo_n "checking whether the C compiler works... " >&6; }
4212 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4214 # The possible output files:
4215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4218 for ac_file in $ac_files
4221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4227 if { { ac_try="$ac_link_default"
4229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4230 *) ac_try_echo
=$ac_try;;
4232 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4233 $as_echo "$ac_try_echo"; } >&5
4234 (eval "$ac_link_default") 2>&5
4236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4237 test $ac_status = 0; }; then :
4238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4241 # so that the user can short-circuit this test for compilers unknown to
4243 for ac_file
in $ac_files ''
4245 test -f "$ac_file" ||
continue
4247 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4250 # We found the default executable, but exeext='' is most
4254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4256 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4258 # We set ac_cv_exeext here because the later test for it is not
4259 # safe: cross compilers may not add the suffix if given an `-o'
4260 # argument, so we may need to know it at that point already.
4261 # Even if this section looks crufty: it has the advantage of
4268 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4273 if test -z "$ac_file"; then :
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.
$ac_ext >&5
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error
77 "C compiler cannot create executables
4282 See \`config.log' for more details" "$LINENO" 5; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 $as_echo "yes" >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288 $as_echo_n "checking for C compiler default output file name... " >&6; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4290 $as_echo "$ac_file" >&6; }
4291 ac_exeext
=$ac_cv_exeext
4293 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4294 ac_clean_files
=$ac_clean_files_save
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4296 $as_echo_n "checking for suffix of executables... " >&6; }
4297 if { { ac_try
="$ac_link"
4299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_link") 2>&5
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }; then :
4308 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4309 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4310 # work properly (i.e., refer to `conftest.exe'), while it won't with
4312 for ac_file
in conftest.exe conftest conftest.
*; do
4313 test -f "$ac_file" ||
continue
4315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4316 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4325 See \`config.log' for more details" "$LINENO" 5; }
4327 rm -f conftest conftest
$ac_cv_exeext
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4329 $as_echo "$ac_cv_exeext" >&6; }
4331 rm -f conftest.
$ac_ext
4332 EXEEXT
=$ac_cv_exeext
4334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4340 FILE *f = fopen ("conftest.out", "w");
4341 return ferror (f) || fclose (f) != 0;
4347 ac_clean_files
="$ac_clean_files conftest.out"
4348 # Check that the compiler produces executables we can run. If not, either
4349 # the compiler is broken, or we cross compile.
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4351 $as_echo_n "checking whether we are cross compiling... " >&6; }
4352 if test "$cross_compiling" != yes; then
4353 { { ac_try
="$ac_link"
4355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link") 2>&5
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }
4364 if { ac_try='./conftest$ac_cv_exeext'
4365 { { case "(($ac_try" in
4366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4367 *) ac_try_echo
=$ac_try;;
4369 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }; }; then
4377 if test "$cross_compiling" = maybe
; then
4380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4382 as_fn_error $?
"cannot run C compiled programs.
4383 If you meant to cross compile, use \`--host'.
4384 See \`config.log' for more details" "$LINENO" 5; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4389 $as_echo "$cross_compiling" >&6; }
4391 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4392 ac_clean_files
=$ac_clean_files_save
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4394 $as_echo_n "checking for suffix of object files... " >&6; }
4395 if ${ac_cv_objext+:} false
; then :
4396 $as_echo_n "(cached) " >&6
4398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4409 rm -f conftest.o conftest.obj
4410 if { { ac_try
="$ac_compile"
4412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compile") 2>&5
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }; then :
4421 for ac_file in conftest.o conftest.obj conftest.*; do
4422 test -f "$ac_file" || continue;
4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4436 See \
`config.log' for more details" "$LINENO" 5; }
4438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4441 $as_echo "$ac_cv_objext" >&6; }
4442 OBJEXT=$ac_cv_objext
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4445 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4446 if ${ac_cv_c_compiler_gnu+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4463 if ac_fn_c_try_compile "$LINENO"; then :
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4473 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4474 if test $ac_compiler_gnu = yes; then
4479 ac_test_CFLAGS=${CFLAGS+set}
4480 ac_save_CFLAGS=$CFLAGS
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4482 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4483 if ${ac_cv_prog_cc_g+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 ac_save_c_werror_flag=$ac_c_werror_flag
4487 ac_c_werror_flag=yes
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 if ac_fn_c_try_compile "$LINENO"; then :
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4516 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_c_werror_flag=$ac_save_c_werror_flag
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4532 if ac_fn_c_try_compile "$LINENO"; then :
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_c_werror_flag=$ac_save_c_werror_flag
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4543 $as_echo "$ac_cv_prog_cc_g" >&6; }
4544 if test "$ac_test_CFLAGS" = set; then
4545 CFLAGS=$ac_save_CFLAGS
4546 elif test $ac_cv_prog_cc_g = yes; then
4547 if test "$GCC" = yes; then
4553 if test "$GCC" = yes; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4560 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4561 if ${ac_cv_prog_cc_c11+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_cv_prog_cc_c11=no
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 #include <stdbool.h>
4575 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4576 #define debug(...) fprintf (stderr, __VA_ARGS__)
4577 #define showlist(...) puts (#__VA_ARGS__)
4578 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4580 test_varargs_macros (void)
4585 debug ("X = %d\n", x);
4586 showlist (The first, second, and third items.);
4587 report (x>y, "x is %d but y is %d", x, y);
4590 // Check long long types.
4591 #define BIG64 18446744073709551615ull
4592 #define BIG32 4294967295ul
4593 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4595 your preprocessor is broken;
4599 your preprocessor is broken;
4601 static long long int bignum = -9223372036854775807LL;
4602 static unsigned long long int ubignum = BIG64;
4604 struct incomplete_array
4612 const wchar_t *name;
4616 typedef const char *ccp;
4619 test_restrict (ccp restrict text)
4621 // See if C++-style comments work.
4622 // Iterate through items via the restricted pointer.
4623 // Also check for declarations in for loops.
4624 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4629 // Check varargs and va_copy.
4631 test_varargs (const char *format, ...)
4634 va_start (args, format);
4636 va_copy (args_copy, args);
4638 const char *str = "";
4647 str = va_arg (args_copy, const char *);
4650 number = va_arg (args_copy, int);
4653 fnumber = va_arg (args_copy, double);
4662 return *str && number && fnumber;
4665 char _Alignas (double) aligned_as_double;
4666 char _Alignas (0) no_special_alignment;
4667 extern char aligned_as_int;
4668 char _Alignas (0) _Alignas (int) aligned_as_int;
4673 int_alignment = _Alignof (int),
4674 int_array_alignment = _Alignof (int[100]),
4675 char_alignment = _Alignof (char)
4677 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4680 int _Noreturn does_not_return (void) { for (;;) continue; }
4682 // Check _Static_assert.
4683 struct test_static_assert
4686 _Static_assert (sizeof (int) <= sizeof (long int),
4687 "_Static_assert does not work in struct");
4691 // Check UTF-8 literals.
4692 #define u8 syntax error!
4693 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4695 // Check duplicate typedefs.
4696 typedef long *long_ptr;
4697 typedef long int *long_ptr;
4698 typedef long_ptr long_ptr;
4700 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4704 struct { int i; int j; };
4705 struct { int k; long int l; } w;
4715 _Bool success = false;
4718 if (test_restrict ("String literal") == 0)
4720 char *restrict newvar = "Another string";
4723 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4724 test_varargs_macros ();
4726 // Check flexible array members.
4727 struct incomplete_array *ia =
4728 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4730 for (int i = 0; i < ia->datasize; ++i)
4731 ia->data[i] = i * 1.234;
4733 // Check named initializers.
4734 struct named_init ni = {
4736 .name = L"Test wide string",
4737 .average = 543.34343,
4742 int dynamic_array[ni.number];
4743 dynamic_array[ni.number - 1] = 543;
4745 // work around unused variable warnings
4746 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4747 || dynamic_array[ni.number - 1] != 543);
4751 _Static_assert ((offsetof (struct anonymous, i)
4752 == offsetof (struct anonymous, w.k)),
4753 "Anonymous union alignment botch");
4759 for ac_arg in '' -std=gnu11
4761 CC="$ac_save_CC $ac_arg"
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_prog_cc_c11=$ac_arg
4765 rm -f core conftest.err conftest.$ac_objext
4766 test "x$ac_cv_prog_cc_c11" != "xno" && break
4768 rm -f conftest.$ac_ext
4773 ac_prog_cc_stdc_options=
4774 case "x$ac_cv_prog_cc_c11" in
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777 $as_echo "none needed" >&6; } ;;
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780 $as_echo "unsupported" >&6; } ;;
4782 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4783 CC=$CC$ac_prog_cc_stdc_options
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4785 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4787 if test "x$ac_cv_prog_cc_c11" != xno; then :
4789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4792 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4793 if ${ac_cv_prog_cc_c99+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 ac_cv_prog_cc_c99=no
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4801 #include <stdbool.h>
4807 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4808 #define debug(...) fprintf (stderr, __VA_ARGS__)
4809 #define showlist(...) puts (#__VA_ARGS__)
4810 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4812 test_varargs_macros (void)
4817 debug ("X = %d\n", x);
4818 showlist (The first, second, and third items.);
4819 report (x>y, "x is %d but y is %d", x, y);
4822 // Check long long types.
4823 #define BIG64 18446744073709551615ull
4824 #define BIG32 4294967295ul
4825 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4827 your preprocessor is broken;
4831 your preprocessor is broken;
4833 static long long int bignum = -9223372036854775807LL;
4834 static unsigned long long int ubignum = BIG64;
4836 struct incomplete_array
4844 const wchar_t *name;
4848 typedef const char *ccp;
4851 test_restrict (ccp restrict text)
4853 // See if C++-style comments work.
4854 // Iterate through items via the restricted pointer.
4855 // Also check for declarations in for loops.
4856 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4861 // Check varargs and va_copy.
4863 test_varargs (const char *format, ...)
4866 va_start (args, format);
4868 va_copy (args_copy, args);
4870 const char *str = "";
4879 str = va_arg (args_copy, const char *);
4882 number = va_arg (args_copy, int);
4885 fnumber = va_arg (args_copy, double);
4894 return *str && number && fnumber;
4901 _Bool success = false;
4904 if (test_restrict ("String literal") == 0)
4906 char *restrict newvar = "Another string";
4909 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4910 test_varargs_macros ();
4912 // Check flexible array members.
4913 struct incomplete_array *ia =
4914 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4916 for (int i = 0; i < ia->datasize; ++i)
4917 ia->data[i] = i * 1.234;
4919 // Check named initializers.
4920 struct named_init ni = {
4922 .name = L"Test wide string",
4923 .average = 543.34343,
4928 int dynamic_array[ni.number];
4929 dynamic_array[ni.number - 1] = 543;
4931 // work around unused variable warnings
4932 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4933 || dynamic_array[ni.number - 1] != 543);
4939 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4941 CC="$ac_save_CC $ac_arg"
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_cv_prog_cc_c99=$ac_arg
4945 rm -f core conftest.err conftest.$ac_objext
4946 test "x$ac_cv_prog_cc_c99" != "xno" && break
4948 rm -f conftest.$ac_ext
4953 ac_prog_cc_stdc_options=
4954 case "x$ac_cv_prog_cc_c99" in
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4957 $as_echo "none needed" >&6; } ;;
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4960 $as_echo "unsupported" >&6; } ;;
4962 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4963 CC=$CC$ac_prog_cc_stdc_options
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4965 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4967 if test "x$ac_cv_prog_cc_c99" != xno; then :
4969 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4972 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4973 if ${ac_cv_prog_cc_c89+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_cv_prog_cc_c89=no
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4984 struct buf { int x; };
4985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986 static char *e (p, i)
4992 static char *f (char * (*g) (char **, int), char **p, ...)
4997 s = g (p, va_arg (v,int));
5002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5003 function prototypes and stuff, but not '\xHH' hex character constants.
5004 These don't provoke an error unfortunately, instead are silently treated
5005 as 'x'. The following induces an error, until -std is added to get
5006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5007 array size at least. It's necessary to write '\x00'==0 to get something
5008 that's true only with -std. */
5009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012 inside strings and character constants. */
5014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5016 int test (int i, double x);
5017 struct s1 {int (*f) (int a);};
5018 struct s2 {int (*f) (double a);};
5019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_prog_cc_c89=$ac_arg
5037 rm -f core conftest.err conftest.$ac_objext
5038 test "x$ac_cv_prog_cc_c89" != "xno" && break
5040 rm -f conftest.$ac_ext
5045 ac_prog_cc_stdc_options=
5046 case "x$ac_cv_prog_cc_c89" in
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5049 $as_echo "none needed" >&6; } ;;
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5052 $as_echo "unsupported" >&6; } ;;
5054 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5055 CC=$CC$ac_prog_cc_stdc_options
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
5061 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5064 ac_cv_prog_cc_stdc=no
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5079 $as_echo_n "checking whether the compiler is clang... " >&6; }
5080 if ${gl_cv_compiler_clang+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 gl_cv_compiler_clang=no
5102 gl_cv_compiler_clang=yes
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5108 $as_echo "$gl_cv_compiler_clang" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5112 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5113 if ${gl_cv_compiler_check_decl_option+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 if test $gl_cv_compiler_clang = yes; then
5117 save_ac_compile="$ac_compile"
5118 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5133 gl_cv_compiler_check_decl_option=none
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 ac_compile="$save_ac_compile"
5138 gl_cv_compiler_check_decl_option=none
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5143 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5144 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5145 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5147 ac_compile_for_check_decl="$ac_compile"
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5159 # On Suns, sometimes $CPP names a directory.
5160 if test -n "$CPP" && test -d "$CPP"; then
5163 if test -z "$CPP"; then
5164 if ${ac_cv_prog_CPP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 # Double quotes because CPP needs to be expanded
5168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5171 for ac_c_preproc_warn_flag in '' yes
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5182 # include <limits.h>
5184 # include <assert.h>
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5191 # Broken: fails on valid input.
5194 rm -f conftest.err conftest.i conftest.$ac_ext
5196 # OK, works on sane cases. Now check whether nonexistent headers
5197 # can be detected and how.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ac_nonexistent.h>
5202 if ac_fn_c_try_cpp "$LINENO"; then :
5203 # Broken: success on invalid input.
5206 # Passes both tests.
5210 rm -f conftest.err conftest.i conftest.$ac_ext
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.i conftest.err conftest.
$ac_ext
5215 if $ac_preproc_ok; then :
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5228 $as_echo "$CPP" >&6; }
5230 for ac_c_preproc_warn_flag
in '' yes
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5241 # include <limits.h>
5243 # include <assert.h>
5247 if ac_fn_c_try_cpp
"$LINENO"; then :
5250 # Broken: fails on valid input.
5253 rm -f conftest.err conftest.i conftest.
$ac_ext
5255 # OK, works on sane cases. Now check whether nonexistent headers
5256 # can be detected and how.
5257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <ac_nonexistent.h>
5261 if ac_fn_c_try_cpp
"$LINENO"; then :
5262 # Broken: success on invalid input.
5265 # Passes both tests.
5269 rm -f conftest.err conftest.i conftest.
$ac_ext
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.i conftest.err conftest.
$ac_ext
5274 if $ac_preproc_ok; then :
5277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5279 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details" "$LINENO" 5; }
5284 ac_cpp
='$CPP $CPPFLAGS'
5285 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5291 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5292 if ${ac_cv_path_GREP+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 if test -z "$GREP"; then
5296 ac_path_GREP_found
=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5299 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5302 test -z "$as_dir" && as_dir
=.
5303 for ac_prog
in grep ggrep
; do
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5306 as_fn_executable_p
"$ac_path_GREP" ||
continue
5307 # Check for GNU ac_path_GREP and select it if it is found.
5308 # Check for GNU $ac_path_GREP
5309 case `"$ac_path_GREP" --version 2>&1` in
5311 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5314 $as_echo_n 0123456789 >"conftest.in"
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'GREP' >> "conftest.nl"
5321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5323 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_GREP
="$ac_path_GREP"
5327 ac_path_GREP_max
=$ac_count
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5335 $ac_path_GREP_found && break 3
5340 if test -z "$ac_cv_path_GREP"; then
5341 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5344 ac_cv_path_GREP
=$GREP
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5349 $as_echo "$ac_cv_path_GREP" >&6; }
5350 GREP
="$ac_cv_path_GREP"
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5354 $as_echo_n "checking for egrep... " >&6; }
5355 if ${ac_cv_path_EGREP+:} false
; then :
5356 $as_echo_n "(cached) " >&6
5358 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5359 then ac_cv_path_EGREP
="$GREP -E"
5361 if test -z "$EGREP"; then
5362 ac_path_EGREP_found
=false
5363 # Loop through the user's path and test for each of PROGNAME-LIST
5364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5365 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5368 test -z "$as_dir" && as_dir
=.
5369 for ac_prog
in egrep; do
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5372 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5373 # Check for GNU ac_path_EGREP and select it if it is found.
5374 # Check for GNU $ac_path_EGREP
5375 case `"$ac_path_EGREP" --version 2>&1` in
5377 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5380 $as_echo_n 0123456789 >"conftest.in"
5383 cat "conftest.in" "conftest.in" >"conftest.tmp"
5384 mv "conftest.tmp" "conftest.in"
5385 cp "conftest.in" "conftest.nl"
5386 $as_echo 'EGREP' >> "conftest.nl"
5387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5388 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5389 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5391 # Best one so far, save it but keep looking for a better one
5392 ac_cv_path_EGREP
="$ac_path_EGREP"
5393 ac_path_EGREP_max
=$ac_count
5395 # 10*(2^10) chars as input seems more than enough
5396 test $ac_count -gt 10 && break
5398 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5401 $ac_path_EGREP_found && break 3
5406 if test -z "$ac_cv_path_EGREP"; then
5407 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5410 ac_cv_path_EGREP
=$EGREP
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5416 $as_echo "$ac_cv_path_EGREP" >&6; }
5417 EGREP
="$ac_cv_path_EGREP"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5421 $as_echo_n "checking for ANSI C header files... " >&6; }
5422 if ${ac_cv_header_stdc+:} false
; then :
5423 $as_echo_n "(cached) " >&6
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5440 if ac_fn_c_try_compile
"$LINENO"; then :
5441 ac_cv_header_stdc
=yes
5443 ac_cv_header_stdc
=no
5445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 if test $ac_cv_header_stdc = yes; then
5448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "memchr" >/dev
/null
2>&1; then :
5458 ac_cv_header_stdc
=no
5464 if test $ac_cv_header_stdc = yes; then
5465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 $EGREP "free" >/dev
/null
2>&1; then :
5475 ac_cv_header_stdc
=no
5481 if test $ac_cv_header_stdc = yes; then
5482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5483 if test "$cross_compiling" = yes; then :
5486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5490 #if ((' ' & 0x0FF) == 0x020)
5491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5494 # define ISLOWER(c) \
5495 (('a' <= (c) && (c) <= 'i') \
5496 || ('j' <= (c) && (c) <= 'r') \
5497 || ('s' <= (c) && (c) <= 'z'))
5498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5506 for (i = 0; i < 256; i++)
5507 if (XOR (islower (i), ISLOWER (i))
5508 || toupper (i) != TOUPPER (i))
5513 if ac_fn_c_try_run
"$LINENO"; then :
5516 ac_cv_header_stdc
=no
5518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5525 $as_echo "$ac_cv_header_stdc" >&6; }
5526 if test $ac_cv_header_stdc = yes; then
5528 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5533 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5534 inttypes.h stdint.h unistd.h
5536 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5537 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5539 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5540 cat >>confdefs.h
<<_ACEOF
5541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5558 if test "$MINIX" = yes; then
5560 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5566 $as_echo "#define _MINIX 1" >>confdefs.h
5569 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5575 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5576 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5577 $as_echo_n "(cached) " >&6
5579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5582 # define __EXTENSIONS__ 1
5583 $ac_includes_default
5592 if ac_fn_c_try_compile
"$LINENO"; then :
5593 ac_cv_safe_to_define___extensions__
=yes
5595 ac_cv_safe_to_define___extensions__
=no
5597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5600 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5601 test $ac_cv_safe_to_define___extensions__ = yes &&
5602 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5604 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5606 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5608 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5610 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5612 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5614 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5616 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5618 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5620 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5622 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5624 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5626 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5628 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5630 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5633 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5634 if ${ac_cv_should_define__xopen_source+:} false
; then :
5635 $as_echo_n "(cached) " >&6
5637 ac_cv_should_define__xopen_source
=no
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5651 if ac_fn_c_try_compile
"$LINENO"; then :
5654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5657 #define _XOPEN_SOURCE 500
5668 if ac_fn_c_try_compile
"$LINENO"; then :
5669 ac_cv_should_define__xopen_source
=yes
5671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5676 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5677 test $ac_cv_should_define__xopen_source = yes &&
5678 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5680 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5693 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5694 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5695 $as_echo_n "(cached) " >&6
5698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5707 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5708 gl_cv_c_amsterdam_compiler
=yes
5710 gl_cv_c_amsterdam_compiler
=no
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5717 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5719 if test $gl_cv_c_amsterdam_compiler = yes; then
5720 if test -z "$AR"; then
5723 if test -z "$ARFLAGS"; then
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_AR+:} false
; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$AR"; then
5739 ac_cv_prog_AR
="$AR" # Let the user override the test.
5741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir
=.
5746 for ac_exec_ext
in '' $ac_executable_extensions; do
5747 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 if test -n "$AR"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5761 $as_echo "$AR" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5769 if test -z "$ac_cv_prog_AR"; then
5771 # Extract the first word of "ar", so it can be a program name with args.
5772 set dummy
ar; ac_word
=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5776 $as_echo_n "(cached) " >&6
5778 if test -n "$ac_ct_AR"; then
5779 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir
=.
5786 for ac_exec_ext
in '' $ac_executable_extensions; do
5787 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_prog_ac_ct_AR
="ar"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5799 if test -n "$ac_ct_AR"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5801 $as_echo "$ac_ct_AR" >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5807 if test "x$ac_ct_AR" = x
; then
5810 case $cross_compiling:$ac_tool_warned in
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814 ac_tool_warned
=yes ;;
5822 if test -z "$ARFLAGS"; then
5828 if test -z "$RANLIB"; then
5829 if test $gl_cv_c_amsterdam_compiler = yes; then
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_RANLIB+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -n "$RANLIB"; then
5841 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir
=.
5848 for ac_exec_ext
in '' $ac_executable_extensions; do
5849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 RANLIB
=$ac_cv_prog_RANLIB
5861 if test -n "$RANLIB"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5863 $as_echo "$RANLIB" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5871 if test -z "$ac_cv_prog_RANLIB"; then
5872 ac_ct_RANLIB
=$RANLIB
5873 # Extract the first word of "ranlib", so it can be a program name with args.
5874 set dummy ranlib
; ac_word
=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$ac_ct_RANLIB"; then
5881 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir
=.
5888 for ac_exec_ext
in '' $ac_executable_extensions; do
5889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5901 if test -n "$ac_ct_RANLIB"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5903 $as_echo "$ac_ct_RANLIB" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5909 if test "x$ac_ct_RANLIB" = x
; then
5912 case $cross_compiling:$ac_tool_warned in
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned
=yes ;;
5918 RANLIB
=$ac_ct_RANLIB
5921 RANLIB
="$ac_cv_prog_RANLIB"
5930 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5931 if test -f "$ac_dir/install-sh"; then
5933 ac_install_sh
="$ac_aux_dir/install-sh -c"
5935 elif test -f "$ac_dir/install.sh"; then
5937 ac_install_sh
="$ac_aux_dir/install.sh -c"
5939 elif test -f "$ac_dir/shtool"; then
5941 ac_install_sh
="$ac_aux_dir/shtool install -c"
5945 if test -z "$ac_aux_dir"; then
5946 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5949 # These three variables are undocumented and unsupported,
5950 # and are intended to be withdrawn in a future Autoconf release.
5951 # They can cause serious problems if a builder's source tree is in a directory
5952 # whose full name contains unusual characters.
5953 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5954 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5955 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5958 # Make sure we can run config.sub.
5959 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5960 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5963 $as_echo_n "checking build system type... " >&6; }
5964 if ${ac_cv_build+:} false
; then :
5965 $as_echo_n "(cached) " >&6
5967 ac_build_alias
=$build_alias
5968 test "x$ac_build_alias" = x
&&
5969 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5970 test "x$ac_build_alias" = x
&&
5971 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5972 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5973 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5977 $as_echo "$ac_cv_build" >&6; }
5978 case $ac_cv_build in
5980 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5983 ac_save_IFS
=$IFS; IFS
='-'
5989 # Remember, the first character of IFS is used to create $*,
5990 # except with old shells:
5993 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5997 $as_echo_n "checking host system type... " >&6; }
5998 if ${ac_cv_host+:} false
; then :
5999 $as_echo_n "(cached) " >&6
6001 if test "x$host_alias" = x
; then
6002 ac_cv_host
=$ac_cv_build
6004 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6005 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6010 $as_echo "$ac_cv_host" >&6; }
6013 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
6016 ac_save_IFS
=$IFS; IFS
='-'
6022 # Remember, the first character of IFS is used to create $*,
6023 # except with old shells:
6026 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6032 # IEEE behaviour is the default on all CPUs except Alpha and SH
6033 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6034 # and the GCC 4.1.2 manual).
6037 # On Alpha systems, a compiler option provides the behaviour.
6038 # See the ieee(3) manual page, also available at
6039 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6040 if test -n "$GCC"; then
6041 # GCC has the option -mieee.
6042 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6043 CPPFLAGS
="$CPPFLAGS -mieee"
6045 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6046 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6047 CPPFLAGS
="$CPPFLAGS -ieee"
6051 if test -n "$GCC"; then
6052 # GCC has the option -mieee.
6053 CPPFLAGS
="$CPPFLAGS -mieee"
6058 # Check whether --enable-largefile was given.
6059 if test "${enable_largefile+set}" = set; then :
6060 enableval
=$enable_largefile;
6063 if test "$enable_largefile" != no
; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6066 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6067 if ${ac_cv_sys_largefile_CC+:} false
; then :
6068 $as_echo_n "(cached) " >&6
6070 ac_cv_sys_largefile_CC
=no
6071 if test "$GCC" != yes; then
6074 # IRIX 6.2 and later do not support large files by default,
6075 # so use the C compiler's -n32 option if that helps.
6076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 #include <sys/types.h>
6079 /* Check that off_t can represent 2**63 - 1 correctly.
6080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6081 since some C++ compilers masquerading as C compilers
6082 incorrectly reject 9223372036854775807. */
6083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6085 && LARGE_OFF_T % 2147483647 == 1)
6095 if ac_fn_c_try_compile
"$LINENO"; then :
6098 rm -f core conftest.err conftest.
$ac_objext
6100 if ac_fn_c_try_compile
"$LINENO"; then :
6101 ac_cv_sys_largefile_CC
=' -n32'; break
6103 rm -f core conftest.err conftest.
$ac_objext
6107 rm -f conftest.
$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6111 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6112 if test "$ac_cv_sys_largefile_CC" != no
; then
6113 CC
=$CC$ac_cv_sys_largefile_CC
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6117 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6118 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6119 $as_echo_n "(cached) " >&6
6122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <sys/types.h>
6125 /* Check that off_t can represent 2**63 - 1 correctly.
6126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6127 since some C++ compilers masquerading as C compilers
6128 incorrectly reject 9223372036854775807. */
6129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6131 && LARGE_OFF_T % 2147483647 == 1)
6141 if ac_fn_c_try_compile
"$LINENO"; then :
6142 ac_cv_sys_file_offset_bits
=no
; break
6144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #define _FILE_OFFSET_BITS 64
6148 #include <sys/types.h>
6149 /* Check that off_t can represent 2**63 - 1 correctly.
6150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6151 since some C++ compilers masquerading as C compilers
6152 incorrectly reject 9223372036854775807. */
6153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6155 && LARGE_OFF_T % 2147483647 == 1)
6165 if ac_fn_c_try_compile
"$LINENO"; then :
6166 ac_cv_sys_file_offset_bits
=64; break
6168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6169 ac_cv_sys_file_offset_bits
=unknown
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6174 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6175 case $ac_cv_sys_file_offset_bits in #(
6178 cat >>confdefs.h
<<_ACEOF
6179 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6184 if test $ac_cv_sys_file_offset_bits = unknown
; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6186 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6187 if ${ac_cv_sys_large_files+:} false
; then :
6188 $as_echo_n "(cached) " >&6
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <sys/types.h>
6194 /* Check that off_t can represent 2**63 - 1 correctly.
6195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6196 since some C++ compilers masquerading as C compilers
6197 incorrectly reject 9223372036854775807. */
6198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6200 && LARGE_OFF_T % 2147483647 == 1)
6210 if ac_fn_c_try_compile
"$LINENO"; then :
6211 ac_cv_sys_large_files
=no
; break
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #define _LARGE_FILES 1
6217 #include <sys/types.h>
6218 /* Check that off_t can represent 2**63 - 1 correctly.
6219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6220 since some C++ compilers masquerading as C compilers
6221 incorrectly reject 9223372036854775807. */
6222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6224 && LARGE_OFF_T % 2147483647 == 1)
6234 if ac_fn_c_try_compile
"$LINENO"; then :
6235 ac_cv_sys_large_files
=1; break
6237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6238 ac_cv_sys_large_files
=unknown
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6243 $as_echo "$ac_cv_sys_large_files" >&6; }
6244 case $ac_cv_sys_large_files in #(
6247 cat >>confdefs.h
<<_ACEOF
6248 #define _LARGE_FILES $ac_cv_sys_large_files
6256 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6266 # Check whether --enable-threads was given.
6267 if test "${enable_threads+set}" = set; then :
6268 enableval
=$enable_threads; gl_use_threads
=$enableval
6270 if test -n "$gl_use_threads_default"; then
6271 gl_use_threads
="$gl_use_threads_default"
6274 osf
*) gl_use_threads
=no
;;
6277 1.
[0-5].
*) gl_use_threads
=no
;;
6278 *) gl_use_threads
=yes ;;
6282 case "$gl_use_winpthreads_default" in
6283 yes) gl_use_threads
=posix
;;
6284 no
) gl_use_threads
=windows
;;
6285 *) gl_use_threads
=yes ;;
6288 *) gl_use_threads
=yes ;;
6294 if test "$gl_use_threads" = yes \
6295 ||
test "$gl_use_threads" = isoc \
6296 ||
test "$gl_use_threads" = posix \
6297 ||
test "$gl_use_threads" = isoc
+posix
; then
6298 # For using <threads.h> or <pthread.h>:
6301 if test -z "$gl_anythreadlib_early_done"; then
6304 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6305 # groks <pthread.h>. cc also understands the flag -pthread, but
6306 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6307 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6308 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6309 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6310 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6313 # Some systems optimize for single-threaded programs by default, and
6314 # need special flags to disable these optimizations. For example, the
6315 # definition of 'errno' in <errno.h>.
6317 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6318 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6320 gl_anythreadlib_early_done
=done
6327 # Pre-early section.
6332 # Code from module absolute-header:
6333 # Code from module alloca:
6334 # Code from module alloca-opt:
6335 # Code from module arpa_inet:
6336 # Code from module assure:
6337 # Code from module at-internal:
6338 # Code from module builtin-expect:
6339 # Code from module c99:
6340 # Code from module canonicalize-lgpl:
6341 # Code from module chdir:
6342 # Code from module chdir-long:
6343 # Code from module cloexec:
6344 # Code from module close:
6345 # Code from module closedir:
6346 # Code from module count-one-bits:
6347 # Code from module d-ino:
6348 # Code from module d-type:
6349 # Code from module dirent:
6350 # Code from module dirfd:
6351 # Code from module dirname-lgpl:
6352 # Code from module dosname:
6353 # Code from module double-slash-root:
6354 # Code from module dup:
6355 # Code from module dup2:
6356 # Code from module environ:
6357 # Code from module errno:
6358 # Code from module error:
6359 # Code from module exitfail:
6360 # Code from module extensions:
6361 # Code from module extern-inline:
6362 # Code from module fchdir:
6363 # Code from module fcntl:
6364 # Code from module fcntl-h:
6365 # Code from module fd-hook:
6366 # Code from module fd-safer-flag:
6367 # Code from module fdopendir:
6368 # Code from module filename:
6369 # Code from module filenamecat-lgpl:
6370 # Code from module flexmember:
6371 # Code from module float:
6372 # Code from module fnmatch:
6373 # Code from module fnmatch-gnu:
6374 # Code from module fnmatch-h:
6375 # Code from module fpieee:
6377 # Code from module fpucw:
6378 # Code from module frexp:
6379 # Code from module frexpl:
6380 # Code from module fstat:
6381 # Code from module fstatat:
6382 # Code from module getcwd:
6383 # Code from module getcwd-lgpl:
6384 # Code from module getdtablesize:
6385 # Code from module getlogin_r:
6386 # Code from module getprogname:
6387 # Code from module gettext-h:
6388 # Code from module gettimeofday:
6389 # Code from module glob:
6390 # Code from module glob-h:
6391 # Code from module hard-locale:
6392 # Code from module include_next:
6393 # Code from module inet_ntop:
6394 # Code from module intprops:
6395 # Code from module inttypes:
6396 # Code from module inttypes-incomplete:
6397 # Code from module isnand-nolibm:
6398 # Code from module isnanl-nolibm:
6399 # Code from module largefile:
6401 # Code from module libc-config:
6402 # Code from module limits-h:
6403 # Code from module localcharset:
6404 # Code from module locale:
6405 # Code from module localtime-buffer:
6406 # Code from module lock:
6407 # Code from module lstat:
6408 # Code from module malloc-posix:
6409 # Code from module malloca:
6410 # Code from module math:
6411 # Code from module mbrtowc:
6412 # Code from module mbsinit:
6413 # Code from module mbsrtowcs:
6414 # Code from module memchr:
6415 # Code from module memmem:
6416 # Code from module memmem-simple:
6417 # Code from module mempcpy:
6418 # Code from module memrchr:
6419 # Code from module mkdir:
6420 # Code from module mkdtemp:
6421 # Code from module mkostemp:
6422 # Code from module msvc-inval:
6423 # Code from module msvc-nothrow:
6424 # Code from module multiarch:
6425 # Code from module netinet_in:
6426 # Code from module nocrash:
6427 # Code from module open:
6428 # Code from module openat:
6429 # Code from module openat-die:
6430 # Code from module openat-h:
6431 # Code from module opendir:
6432 # Code from module pathmax:
6433 # Code from module rawmemchr:
6434 # Code from module readdir:
6435 # Code from module readlink:
6436 # Code from module realloc-posix:
6437 # Code from module rename:
6438 # Code from module rewinddir:
6439 # Code from module rmdir:
6440 # Code from module same-inode:
6441 # Code from module save-cwd:
6442 # Code from module scratch_buffer:
6443 # Code from module setenv:
6444 # Code from module setlocale-null:
6445 # Code from module signal-h:
6446 # Code from module snippet/_Noreturn:
6447 # Code from module snippet/arg-nonnull:
6448 # Code from module snippet/c++defs:
6449 # Code from module snippet/warn-on-use:
6450 # Code from module socklen:
6451 # Code from module ssize_t:
6452 # Code from module stat:
6453 # Code from module stat-time:
6454 # Code from module std-gnu11:
6455 # Code from module stdalign:
6456 # Code from module stdbool:
6457 # Code from module stddef:
6458 # Code from module stdint:
6459 # Code from module stdio:
6460 # Code from module stdlib:
6461 # Code from module strchrnul:
6462 # Code from module strdup-posix:
6463 # Code from module streq:
6464 # Code from module strerror:
6465 # Code from module strerror-override:
6466 # Code from module strerror_r-posix:
6467 # Code from module string:
6468 # Code from module strnlen1:
6469 # Code from module strstr:
6470 # Code from module strstr-simple:
6471 # Code from module strtok_r:
6472 # Code from module sys_socket:
6473 # Code from module sys_stat:
6474 # Code from module sys_time:
6475 # Code from module sys_types:
6476 # Code from module sys_uio:
6477 # Code from module tempname:
6478 # Code from module threadlib:
6482 # Code from module time:
6483 # Code from module time_r:
6484 # Code from module unistd:
6485 # Code from module unistd-safer:
6486 # Code from module unsetenv:
6487 # Code from module update-copyright:
6488 # Code from module verify:
6489 # Code from module wchar:
6490 # Code from module wctype-h:
6491 # Code from module windows-mutex:
6492 # Code from module windows-once:
6493 # Code from module windows-recmutex:
6494 # Code from module windows-rwlock:
6495 # Code from module xalloc-oversized:
6498 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6502 $as_echo_n "checking target system type... " >&6; }
6503 if ${ac_cv_target+:} false
; then :
6504 $as_echo_n "(cached) " >&6
6506 if test "x$target_alias" = x
; then
6507 ac_cv_target
=$ac_cv_host
6509 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6510 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6515 $as_echo "$ac_cv_target" >&6; }
6516 case $ac_cv_target in
6518 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
6520 target
=$ac_cv_target
6521 ac_save_IFS
=$IFS; IFS
='-'
6527 # Remember, the first character of IFS is used to create $*,
6528 # except with old shells:
6531 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6534 # The aliases save the names the user supplied, while $host etc.
6535 # will get canonicalized.
6536 test -n "$target_alias" &&
6537 test "$program_prefix$program_suffix$program_transform_name" = \
6539 program_prefix
=${target_alias}-
6541 # The tests for host and target for $enable_largefile require
6546 # As the $enable_largefile decision depends on --enable-plugins we must set it
6547 # even in directories otherwise not depending on the $plugins option.
6551 for ac_header
in dlfcn.h
6553 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6555 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
6556 cat >>confdefs.h
<<_ACEOF
6557 #define HAVE_DLFCN_H 1
6564 for ac_header
in windows.h
6566 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6568 if test "x$ac_cv_header_windows_h" = xyes
; then :
6569 cat >>confdefs.h
<<_ACEOF
6570 #define HAVE_WINDOWS_H 1
6578 # Check whether --enable-plugins was given.
6579 if test "${enable_plugins+set}" = set; then :
6580 enableval
=$enable_plugins; case "${enableval}" in
6583 if test "$maybe_plugins" != "yes" ; then
6584 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6588 plugins
=$maybe_plugins
6592 if test "$plugins" = "yes"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6594 $as_echo_n "checking for library containing dlsym... " >&6; }
6595 if ${ac_cv_search_dlsym+:} false
; then :
6596 $as_echo_n "(cached) " >&6
6598 ac_func_search_save_LIBS
=$LIBS
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6602 /* Override any GCC internal prototype to avoid an error.
6603 Use char because int might match the return type of a GCC
6604 builtin and then its argument prototype would still apply. */
6617 for ac_lib
in '' dl
; do
6618 if test -z "$ac_lib"; then
6619 ac_res
="none required"
6622 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6624 if ac_fn_c_try_link
"$LINENO"; then :
6625 ac_cv_search_dlsym
=$ac_res
6627 rm -f core conftest.err conftest.
$ac_objext \
6629 if ${ac_cv_search_dlsym+:} false
; then :
6633 if ${ac_cv_search_dlsym+:} false
; then :
6636 ac_cv_search_dlsym
=no
6639 LIBS
=$ac_func_search_save_LIBS
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6642 $as_echo "$ac_cv_search_dlsym" >&6; }
6643 ac_res
=$ac_cv_search_dlsym
6644 if test "$ac_res" != no
; then :
6645 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6653 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
6654 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6655 # are mutually exclusive; and without procfs support, the bfd/ elf module
6656 # cannot provide certain routines such as elfcore_write_prpsinfo
6657 # or elfcore_write_prstatus. So unless the user explicitly requested
6658 # large-file support through the --enable-largefile switch, disable
6659 # large-file support in favor of procfs support.
6660 test "${target}" = "${host}" -a "x$plugins" = xno \
6661 && : ${enable_largefile="no"}
6665 # Check whether --enable-largefile was given.
6666 if test "${enable_largefile+set}" = set; then :
6667 enableval
=$enable_largefile;
6670 if test "$enable_largefile" != no
; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6673 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6674 if ${ac_cv_sys_largefile_CC+:} false
; then :
6675 $as_echo_n "(cached) " >&6
6677 ac_cv_sys_largefile_CC
=no
6678 if test "$GCC" != yes; then
6681 # IRIX 6.2 and later do not support large files by default,
6682 # so use the C compiler's -n32 option if that helps.
6683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <sys/types.h>
6686 /* Check that off_t can represent 2**63 - 1 correctly.
6687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6688 since some C++ compilers masquerading as C compilers
6689 incorrectly reject 9223372036854775807. */
6690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6692 && LARGE_OFF_T % 2147483647 == 1)
6702 if ac_fn_c_try_compile
"$LINENO"; then :
6705 rm -f core conftest.err conftest.
$ac_objext
6707 if ac_fn_c_try_compile
"$LINENO"; then :
6708 ac_cv_sys_largefile_CC
=' -n32'; break
6710 rm -f core conftest.err conftest.
$ac_objext
6714 rm -f conftest.
$ac_ext
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6718 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6719 if test "$ac_cv_sys_largefile_CC" != no
; then
6720 CC
=$CC$ac_cv_sys_largefile_CC
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6724 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6725 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6726 $as_echo_n "(cached) " >&6
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 #include <sys/types.h>
6732 /* Check that off_t can represent 2**63 - 1 correctly.
6733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6734 since some C++ compilers masquerading as C compilers
6735 incorrectly reject 9223372036854775807. */
6736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6738 && LARGE_OFF_T % 2147483647 == 1)
6748 if ac_fn_c_try_compile
"$LINENO"; then :
6749 ac_cv_sys_file_offset_bits
=no
; break
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 #define _FILE_OFFSET_BITS 64
6755 #include <sys/types.h>
6756 /* Check that off_t can represent 2**63 - 1 correctly.
6757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6758 since some C++ compilers masquerading as C compilers
6759 incorrectly reject 9223372036854775807. */
6760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6762 && LARGE_OFF_T % 2147483647 == 1)
6772 if ac_fn_c_try_compile
"$LINENO"; then :
6773 ac_cv_sys_file_offset_bits
=64; break
6775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6776 ac_cv_sys_file_offset_bits
=unknown
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6781 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6782 case $ac_cv_sys_file_offset_bits in #(
6785 cat >>confdefs.h
<<_ACEOF
6786 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6791 if test $ac_cv_sys_file_offset_bits = unknown
; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6793 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6794 if ${ac_cv_sys_large_files+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 #include <sys/types.h>
6801 /* Check that off_t can represent 2**63 - 1 correctly.
6802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6803 since some C++ compilers masquerading as C compilers
6804 incorrectly reject 9223372036854775807. */
6805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6807 && LARGE_OFF_T % 2147483647 == 1)
6817 if ac_fn_c_try_compile
"$LINENO"; then :
6818 ac_cv_sys_large_files
=no
; break
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #define _LARGE_FILES 1
6824 #include <sys/types.h>
6825 /* Check that off_t can represent 2**63 - 1 correctly.
6826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6827 since some C++ compilers masquerading as C compilers
6828 incorrectly reject 9223372036854775807. */
6829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6831 && LARGE_OFF_T % 2147483647 == 1)
6841 if ac_fn_c_try_compile
"$LINENO"; then :
6842 ac_cv_sys_large_files
=1; break
6844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6845 ac_cv_sys_large_files
=unknown
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6850 $as_echo "$ac_cv_sys_large_files" >&6; }
6851 case $ac_cv_sys_large_files in #(
6854 cat >>confdefs.h
<<_ACEOF
6855 #define _LARGE_FILES $ac_cv_sys_large_files
6863 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6870 for ac_dir
in ..
"$srcdir"/..
; do
6871 if test -f "$ac_dir/install-sh"; then
6873 ac_install_sh
="$ac_aux_dir/install-sh -c"
6875 elif test -f "$ac_dir/install.sh"; then
6877 ac_install_sh
="$ac_aux_dir/install.sh -c"
6879 elif test -f "$ac_dir/shtool"; then
6881 ac_install_sh
="$ac_aux_dir/shtool install -c"
6885 if test -z "$ac_aux_dir"; then
6886 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6889 # These three variables are undocumented and unsupported,
6890 # and are intended to be withdrawn in a future Autoconf release.
6891 # They can cause serious problems if a builder's source tree is in a directory
6892 # whose full name contains unusual characters.
6893 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6894 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6895 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6906 # Check whether --enable-cross-guesses was given.
6907 if test "${enable_cross_guesses+set}" = set; then :
6908 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6910 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6911 enableval
=conservative
6913 gl_cross_guesses
="$enableval"
6915 gl_cross_guesses
=conservative
6918 if test $gl_cross_guesses = risky
; then
6919 gl_cross_guess_normal
="guessing yes"
6920 gl_cross_guess_inverted
="guessing no"
6922 gl_cross_guess_normal
="guessing no"
6923 gl_cross_guess_inverted
="guessing yes"
6925 LIBC_FATAL_STDERR_
=1
6926 export LIBC_FATAL_STDERR_
6929 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6930 if test "x$ac_cv_type_size_t" = xyes
; then :
6934 cat >>confdefs.h
<<_ACEOF
6935 #define size_t unsigned int
6940 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6941 # for constant arguments. Useless!
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6943 $as_echo_n "checking for working alloca.h... " >&6; }
6944 if ${ac_cv_working_alloca_h+:} false
; then :
6945 $as_echo_n "(cached) " >&6
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6953 char *p = (char *) alloca (2 * sizeof (int));
6959 if ac_fn_c_try_link
"$LINENO"; then :
6960 ac_cv_working_alloca_h
=yes
6962 ac_cv_working_alloca_h
=no
6964 rm -f core conftest.err conftest.
$ac_objext \
6965 conftest
$ac_exeext conftest.
$ac_ext
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6968 $as_echo "$ac_cv_working_alloca_h" >&6; }
6969 if test $ac_cv_working_alloca_h = yes; then
6971 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6976 $as_echo_n "checking for alloca... " >&6; }
6977 if ${ac_cv_func_alloca_works+:} false
; then :
6978 $as_echo_n "(cached) " >&6
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6983 # define alloca __builtin_alloca
6986 # include <malloc.h>
6987 # define alloca _alloca
6989 # ifdef HAVE_ALLOCA_H
6990 # include <alloca.h>
6995 # ifndef alloca /* predefined by HP cc +Olibcalls */
6996 void *alloca (size_t);
7006 char *p = (char *) alloca (1);
7012 if ac_fn_c_try_link
"$LINENO"; then :
7013 ac_cv_func_alloca_works
=yes
7015 ac_cv_func_alloca_works
=no
7017 rm -f core conftest.err conftest.
$ac_objext \
7018 conftest
$ac_exeext conftest.
$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7021 $as_echo "$ac_cv_func_alloca_works" >&6; }
7023 if test $ac_cv_func_alloca_works = yes; then
7025 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7029 # that cause trouble. Some versions do not even contain alloca or
7030 # contain a buggy version. If you still want to use their alloca,
7031 # use ar to extract alloca.o from them instead of compiling alloca.c.
7037 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7039 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7043 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7044 if ${ac_cv_os_cray+:} false
; then :
7045 $as_echo_n "(cached) " >&6
7047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #if defined CRAY && ! defined CRAY2
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "webecray" >/dev
/null
2>&1; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7066 $as_echo "$ac_cv_os_cray" >&6; }
7067 if test $ac_cv_os_cray = yes; then
7068 for ac_func
in _getb67 GETB67 getb67
; do
7069 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7070 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7071 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7073 cat >>confdefs.h
<<_ACEOF
7074 #define CRAY_STACKSEG_END $ac_func
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7084 $as_echo_n "checking stack direction for C alloca... " >&6; }
7085 if ${ac_cv_c_stack_direction+:} false
; then :
7086 $as_echo_n "(cached) " >&6
7088 if test "$cross_compiling" = yes; then :
7089 ac_cv_c_stack_direction
=0
7091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 $ac_includes_default
7095 find_stack_direction (int *addr, int depth)
7100 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7101 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7106 main (int argc, char **argv)
7108 return find_stack_direction (0, argc + !argv + 20) < 0;
7111 if ac_fn_c_try_run
"$LINENO"; then :
7112 ac_cv_c_stack_direction
=1
7114 ac_cv_c_stack_direction
=-1
7116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7122 $as_echo "$ac_cv_c_stack_direction" >&6; }
7123 cat >>confdefs.h
<<_ACEOF
7124 #define STACK_DIRECTION $ac_cv_c_stack_direction
7133 HAVE_DECL_INET_NTOP
=1;
7134 HAVE_DECL_INET_PTON
=1;
7135 REPLACE_INET_NTOP
=0;
7136 REPLACE_INET_PTON
=0;
7141 for ac_header
in $ac_header_list
7143 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7146 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7147 cat >>confdefs.h
<<_ACEOF
7148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7160 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7161 if ${gl_cv_have_include_next+:} false
; then :
7162 $as_echo_n "(cached) " >&6
7164 rm -rf conftestd1a conftestd1b conftestd2
7165 mkdir conftestd1a conftestd1b conftestd2
7166 cat <<EOF > conftestd1a/conftest.h
7167 #define DEFINED_IN_CONFTESTD1
7168 #include_next <conftest.h>
7169 #ifdef DEFINED_IN_CONFTESTD2
7172 #error "include_next doesn't work"
7175 cat <<EOF > conftestd1b/conftest.h
7176 #define DEFINED_IN_CONFTESTD1
7178 #include_next <conftest.h>
7179 #ifdef DEFINED_IN_CONFTESTD2
7182 #error "include_next doesn't work"
7185 cat <<EOF > conftestd2/conftest.h
7186 #ifndef DEFINED_IN_CONFTESTD1
7187 #error "include_next test doesn't work"
7189 #define DEFINED_IN_CONFTESTD2
7191 gl_save_CPPFLAGS
="$CPPFLAGS"
7192 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <conftest.h>
7197 if ac_fn_c_try_compile
"$LINENO"; then :
7198 gl_cv_have_include_next
=yes
7200 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <conftest.h>
7205 if ac_fn_c_try_compile
"$LINENO"; then :
7206 gl_cv_have_include_next
=buggy
7208 gl_cv_have_include_next
=no
7210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7214 CPPFLAGS
="$gl_save_CPPFLAGS"
7215 rm -rf conftestd1a conftestd1b conftestd2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7219 $as_echo "$gl_cv_have_include_next" >&6; }
7220 PRAGMA_SYSTEM_HEADER
=
7221 if test $gl_cv_have_include_next = yes; then
7222 INCLUDE_NEXT
=include_next
7223 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7224 if test -n "$GCC"; then
7225 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7228 if test $gl_cv_have_include_next = buggy
; then
7229 INCLUDE_NEXT
=include
7230 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7232 INCLUDE_NEXT
=include
7233 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7240 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7241 if ${gl_cv_pragma_columns+:} false
; then :
7242 $as_echo_n "(cached) " >&6
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 $EGREP "choke me" >/dev
/null
2>&1; then :
7254 gl_cv_pragma_columns
=yes
7256 gl_cv_pragma_columns
=no
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7263 $as_echo "$gl_cv_pragma_columns" >&6; }
7264 if test $gl_cv_pragma_columns = yes; then
7265 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7275 if test $ac_cv_header_features_h = yes; then
7285 if test $ac_cv_header_sys_socket_h = no
; then
7286 for ac_header
in ws2tcpip.h
7288 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7289 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7290 cat >>confdefs.h
<<_ACEOF
7291 #define HAVE_WS2TCPIP_H 1
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7301 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7302 if test -z "$MKDIR_P"; then
7303 if ${ac_cv_path_mkdir+:} false
; then :
7304 $as_echo_n "(cached) " >&6
7306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7307 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7310 test -z "$as_dir" && as_dir
=.
7311 for ac_prog
in mkdir gmkdir
; do
7312 for ac_exec_ext
in '' $ac_executable_extensions; do
7313 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7314 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7315 'mkdir (GNU coreutils) '* | \
7316 'mkdir (coreutils) '* | \
7317 'mkdir (fileutils) '4.1*)
7318 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7328 test -d .
/--version && rmdir .
/--version
7329 if test "${ac_cv_path_mkdir+set}" = set; then
7330 MKDIR_P
="$ac_cv_path_mkdir -p"
7332 # As a last resort, use the slow shell script. Don't cache a
7333 # value for MKDIR_P within a source directory, because that will
7334 # break other packages using the cache if that directory is
7335 # removed, or if the value is a relative name.
7336 MKDIR_P
="$ac_install_sh -d"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7340 $as_echo "$MKDIR_P" >&6; }
7345 GNULIB_CALLOC_POSIX
=0;
7346 GNULIB_CANONICALIZE_FILE_NAME
=0;
7347 GNULIB_GETLOADAVG
=0;
7350 GNULIB_MALLOC_POSIX
=0;
7357 GNULIB_POSIX_OPENPT
=0;
7364 GNULIB_REALLOCARRAY
=0;
7365 GNULIB_REALLOC_POSIX
=0;
7368 GNULIB_SECURE_GETENV
=0;
7374 GNULIB_SYSTEM_POSIX
=0;
7380 HAVE_CANONICALIZE_FILE_NAME
=1;
7381 HAVE_DECL_GETLOADAVG
=1;
7385 HAVE_DECL_INITSTATE
=1;
7392 HAVE_POSIX_OPENPT
=1;
7399 HAVE_REALLOCARRAY
=1;
7402 HAVE_SECURE_GETENV
=1;
7406 HAVE_DECL_SETSTATE
=1;
7411 HAVE_STRUCT_RANDOM_DATA
=1;
7412 HAVE_SYS_LOADAVG_H
=0;
7414 HAVE_DECL_UNSETENV
=1;
7416 REPLACE_CANONICALIZE_FILE_NAME
=0;
7417 REPLACE_INITSTATE
=0;
7422 REPLACE_PTSNAME_R
=0;
7439 for ac_func
in $ac_func_list
7441 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7442 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7443 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7444 cat >>confdefs.h
<<_ACEOF
7445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7460 $as_echo_n "checking whether // is distinct from /... " >&6; }
7461 if ${gl_cv_double_slash_root+:} false
; then :
7462 $as_echo_n "(cached) " >&6
7464 if test x
"$cross_compiling" = xyes
; then
7465 # When cross-compiling, there is no way to tell whether // is special
7466 # short of a list of hosts. However, the only known hosts to date
7467 # that have a distinct // are Apollo DomainOS (too old to port to),
7468 # Cygwin, and z/OS. If anyone knows of another system for which // has
7469 # special semantics and is distinct from /, please report it to
7470 # <bug-gnulib@gnu.org>.
7472 *-cygwin | i370-ibm-openedition
)
7473 gl_cv_double_slash_root
=yes ;;
7475 # Be optimistic and assume that / and // are the same when we
7477 gl_cv_double_slash_root
='unknown, assuming no' ;;
7480 set x
`ls -di / // 2>/dev/null`
7481 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7482 gl_cv_double_slash_root
=no
7484 gl_cv_double_slash_root
=yes
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7489 $as_echo "$gl_cv_double_slash_root" >&6; }
7490 if test "$gl_cv_double_slash_root" = yes; then
7492 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7501 $as_echo_n "checking whether realpath works... " >&6; }
7502 if ${gl_cv_func_realpath_works+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7508 if test "$cross_compiling" = yes; then :
7510 # Guess yes on glibc systems.
7511 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7512 # Guess yes on musl systems.
7513 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7514 # Guess no on native Windows.
7515 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7516 # If we don't know, obey --enable-cross-guesses.
7517 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7527 #if defined __MACH__ && defined __APPLE__
7528 /* Avoid a crash on Mac OS X. */
7529 #include <mach/mach.h>
7530 #include <mach/mach_error.h>
7531 #include <mach/thread_status.h>
7532 #include <mach/exception.h>
7533 #include <mach/task.h>
7534 #include <pthread.h>
7535 /* The exception port on which our thread listens. */
7536 static mach_port_t our_exception_port;
7537 /* The main function of the thread listening for exceptions of type
7540 mach_exception_thread (void *arg)
7542 /* Buffer for a message to be received. */
7544 mach_msg_header_t head;
7545 mach_msg_body_t msgh_body;
7548 mach_msg_return_t retval;
7549 /* Wait for a message on the exception port. */
7550 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7551 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7552 if (retval != MACH_MSG_SUCCESS)
7559 mach_port_t self = mach_task_self ();
7560 /* Allocate a port on which the thread shall listen for exceptions. */
7561 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7563 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7564 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7565 MACH_MSG_TYPE_MAKE_SEND)
7567 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7569 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7570 /* Create the thread listening on the exception port. */
7571 pthread_attr_t attr;
7573 if (pthread_attr_init (&attr) == 0
7574 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7575 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7576 pthread_attr_destroy (&attr);
7577 /* Replace the exception port info for these exceptions with our own.
7578 Note that we replace the exception port for the entire task, not only
7579 for a particular thread. This has the effect that when our exception
7580 port gets the message, the thread specific exception port has already
7581 been asked, and we don't need to bother about it.
7582 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7583 task_set_exception_ports (self, mask, our_exception_port,
7584 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7589 #elif defined _WIN32 && ! defined __CYGWIN__
7590 /* Avoid a crash on native Windows. */
7591 #define WIN32_LEAN_AND_MEAN
7592 #include <windows.h>
7593 #include <winerror.h>
7595 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7597 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7599 case EXCEPTION_ACCESS_VIOLATION:
7600 case EXCEPTION_IN_PAGE_ERROR:
7601 case EXCEPTION_STACK_OVERFLOW:
7602 case EXCEPTION_GUARD_PAGE:
7603 case EXCEPTION_PRIV_INSTRUCTION:
7604 case EXCEPTION_ILLEGAL_INSTRUCTION:
7605 case EXCEPTION_DATATYPE_MISALIGNMENT:
7606 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7607 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7610 return EXCEPTION_CONTINUE_SEARCH;
7615 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7618 /* Avoid a crash on POSIX systems. */
7621 /* A POSIX signal handler. */
7623 exception_handler (int sig)
7631 signal (SIGSEGV, exception_handler);
7634 signal (SIGBUS, exception_handler);
7648 char *name = realpath ("conftest.a", NULL);
7649 if (!(name && *name == '/'))
7654 char *name = realpath ("conftest.b/../conftest.a", NULL);
7660 char *name = realpath ("conftest.a/", NULL);
7666 char *name1 = realpath (".", NULL);
7667 char *name2 = realpath ("conftest.d//./..", NULL);
7668 if (! name1 || ! name2 || strcmp (name1, name2))
7680 if ac_fn_c_try_run
"$LINENO"; then :
7681 gl_cv_func_realpath_works
=yes
7683 gl_cv_func_realpath_works
=no
7685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7689 rm -rf conftest.a conftest.d
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7693 $as_echo "$gl_cv_func_realpath_works" >&6; }
7694 case "$gl_cv_func_realpath_works" in
7697 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7716 GNULIB_COPY_FILE_RANGE
=0;
7721 GNULIB_EUIDACCESS
=0;
7729 GNULIB_GETDOMAINNAME
=0;
7730 GNULIB_GETDTABLESIZE
=0;
7732 GNULIB_GETHOSTNAME
=0;
7734 GNULIB_GETLOGIN_R
=0;
7735 GNULIB_GETOPT_POSIX
=0;
7736 GNULIB_GETPAGESIZE
=0;
7738 GNULIB_GETUSERSHELL
=0;
7739 GNULIB_GROUP_MEMBER
=0;
7751 GNULIB_READLINKAT
=0;
7753 GNULIB_SETHOSTNAME
=0;
7759 GNULIB_UNISTD_H_NONBLOCKING
=0;
7760 GNULIB_UNISTD_H_SIGPIPE
=0;
7766 HAVE_COPY_FILE_RANGE
=1;
7776 HAVE_GETDTABLESIZE
=1;
7782 HAVE_GROUP_MEMBER
=1;
7798 HAVE_DECL_ENVIRON
=1;
7800 HAVE_DECL_FDATASYNC
=1;
7801 HAVE_DECL_GETDOMAINNAME
=1;
7802 HAVE_DECL_GETLOGIN
=1;
7803 HAVE_DECL_GETLOGIN_R
=1;
7804 HAVE_DECL_GETPAGESIZE
=1;
7805 HAVE_DECL_GETUSERSHELL
=1;
7806 HAVE_DECL_SETHOSTNAME
=1;
7807 HAVE_DECL_TRUNCATE
=1;
7808 HAVE_DECL_TTYNAME_R
=1;
7816 REPLACE_FACCESSAT
=0;
7818 REPLACE_FTRUNCATE
=0;
7820 REPLACE_GETDOMAINNAME
=0;
7821 REPLACE_GETDTABLESIZE
=0;
7822 REPLACE_GETLOGIN_R
=0;
7823 REPLACE_GETGROUPS
=0;
7824 REPLACE_GETPAGESIZE
=0;
7835 REPLACE_READLINKAT
=0;
7839 REPLACE_SYMLINKAT
=0;
7841 REPLACE_TTYNAME_R
=0;
7846 UNISTD_H_HAVE_WINSOCK2_H
=0;
7847 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7859 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7860 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7862 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7865 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7885 HAVE_DECL_FDOPENDIR
=1;
7892 REPLACE_FDOPENDIR
=0;
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7904 $as_echo_n "checking if environ is properly declared... " >&6; }
7905 if ${gt_cv_var_environ_declaration+:} false
; then :
7906 $as_echo_n "(cached) " >&6
7908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7913 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7916 extern struct { int foo; } environ;
7925 if ac_fn_c_try_compile
"$LINENO"; then :
7926 gt_cv_var_environ_declaration
=no
7928 gt_cv_var_environ_declaration
=yes
7930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7933 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7934 if test $gt_cv_var_environ_declaration = yes; then
7936 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7941 if test $gt_cv_var_environ_declaration != yes; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7948 $as_echo_n "checking for complete errno.h... " >&6; }
7949 if ${gl_cv_header_errno_h_complete+:} false
; then :
7950 $as_echo_n "(cached) " >&6
7953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7957 #if !defined ETXTBSY
7966 #if !defined ENOLINK
7972 #if !defined EMULTIHOP
7975 #if !defined EBADMSG
7978 #if !defined EOVERFLOW
7981 #if !defined ENOTSUP
7984 #if !defined ENETRESET
7987 #if !defined ECONNABORTED
7996 #if !defined ECANCELED
7999 #if !defined EOWNERDEAD
8002 #if !defined ENOTRECOVERABLE
8010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "booboo" >/dev
/null
2>&1; then :
8012 gl_cv_header_errno_h_complete
=no
8014 gl_cv_header_errno_h_complete
=yes
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8021 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8022 if test $gl_cv_header_errno_h_complete = yes; then
8033 if test $gl_cv_have_include_next = yes; then
8034 gl_cv_next_errno_h
='<'errno.h
'>'
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8037 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8038 if ${gl_cv_next_errno_h+:} false
; then :
8039 $as_echo_n "(cached) " >&6
8044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8049 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8050 *) gl_absname_cpp
="$ac_cpp" ;;
8055 gl_dirsep_regex
='[/\\]'
8058 gl_dirsep_regex
='\/'
8061 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8062 gl_header_literal_regex
=`echo 'errno.h' \
8063 | sed -e "$gl_make_literal_regex_sed"`
8064 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8065 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8071 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8072 sed -n "$gl_absolute_header_sed"`
8074 gl_header
=$gl_cv_absolute_errno_h
8075 gl_cv_next_errno_h
='"'$gl_header'"'
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8080 $as_echo "$gl_cv_next_errno_h" >&6; }
8082 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8084 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8086 gl_next_as_first_directive
='<'errno.h
'>'
8088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8089 gl_next_as_first_directive
=$gl_cv_next_errno_h
8091 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8099 if test -n "$ERRNO_H"; then
8100 GL_GENERATE_ERRNO_H_TRUE
=
8101 GL_GENERATE_ERRNO_H_FALSE
='#'
8103 GL_GENERATE_ERRNO_H_TRUE
='#'
8104 GL_GENERATE_ERRNO_H_FALSE
=
8108 if test -n "$ERRNO_H"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8110 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8111 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8112 $as_echo_n "(cached) " >&6
8115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125 $EGREP "yes" >/dev
/null
2>&1; then :
8126 gl_cv_header_errno_h_EMULTIHOP
=yes
8128 gl_cv_header_errno_h_EMULTIHOP
=no
8132 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8136 #define _XOPEN_SOURCE_EXTENDED 1
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "yes" >/dev
/null
2>&1; then :
8145 gl_cv_header_errno_h_EMULTIHOP
=hidden
8149 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8150 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8151 #define _XOPEN_SOURCE_EXTENDED 1
8153 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8165 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8166 case $gl_cv_header_errno_h_EMULTIHOP in
8168 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8171 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8179 if test -n "$ERRNO_H"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8181 $as_echo_n "checking for ENOLINK value... " >&6; }
8182 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8183 $as_echo_n "(cached) " >&6
8186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8196 $EGREP "yes" >/dev
/null
2>&1; then :
8197 gl_cv_header_errno_h_ENOLINK
=yes
8199 gl_cv_header_errno_h_ENOLINK
=no
8203 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8207 #define _XOPEN_SOURCE_EXTENDED 1
8214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8215 $EGREP "yes" >/dev
/null
2>&1; then :
8216 gl_cv_header_errno_h_ENOLINK
=hidden
8220 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8221 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8222 #define _XOPEN_SOURCE_EXTENDED 1
8224 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8236 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8237 case $gl_cv_header_errno_h_ENOLINK in
8239 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8242 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8250 if test -n "$ERRNO_H"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8252 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8253 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8254 $as_echo_n "(cached) " >&6
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "yes" >/dev
/null
2>&1; then :
8268 gl_cv_header_errno_h_EOVERFLOW
=yes
8270 gl_cv_header_errno_h_EOVERFLOW
=no
8274 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8278 #define _XOPEN_SOURCE_EXTENDED 1
8285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8286 $EGREP "yes" >/dev
/null
2>&1; then :
8287 gl_cv_header_errno_h_EOVERFLOW
=hidden
8291 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8292 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8293 #define _XOPEN_SOURCE_EXTENDED 1
8295 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8307 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8308 case $gl_cv_header_errno_h_EOVERFLOW in
8310 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8313 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8321 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8322 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8328 cat >>confdefs.h
<<_ACEOF
8329 #define HAVE_DECL_STRERROR_R $ac_have_decl
8332 for ac_func
in strerror_r
8334 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8335 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8336 cat >>confdefs.h
<<_ACEOF
8337 #define HAVE_STRERROR_R 1
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8344 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8345 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8346 $as_echo_n "(cached) " >&6
8349 ac_cv_func_strerror_r_char_p
=no
8350 if test $ac_cv_have_decl_strerror_r = yes; then
8351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 $ac_includes_default
8359 char x = *strerror_r (0, buf, sizeof buf);
8360 char *p = strerror_r (0, buf, sizeof buf);
8367 if ac_fn_c_try_compile
"$LINENO"; then :
8368 ac_cv_func_strerror_r_char_p
=yes
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 # strerror_r is not declared. Choose between
8373 # systems that have relatively inaccessible declarations for the
8374 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8375 # former has a strerror_r that returns char*, while the latter
8376 # has a strerror_r that returns `int'.
8377 # This test should segfault on the DEC system.
8378 if test "$cross_compiling" = yes; then :
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 extern char *strerror_r ();
8389 char x = *strerror_r (0, buf, sizeof buf);
8390 return ! isalpha (x);
8395 if ac_fn_c_try_run
"$LINENO"; then :
8396 ac_cv_func_strerror_r_char_p
=yes
8398 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8399 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8406 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8407 if test $ac_cv_func_strerror_r_char_p = yes; then
8409 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8416 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8417 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_DECL_FCHDIR $ac_have_decl
8430 GNULIB_NONBLOCKING
=0;
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8450 $as_echo_n "checking for working fcntl.h... " >&6; }
8451 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8452 $as_echo_n "(cached) " >&6
8454 if test "$cross_compiling" = yes; then :
8456 # Guess 'no' on native Windows.
8457 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8458 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <sys/types.h>
8465 #include <sys/stat.h>
8467 # include <unistd.h>
8468 #else /* on Windows with MSVC */
8470 # include <stdlib.h>
8471 # defined sleep(n) _sleep ((n) * 1000)
8478 #define O_NOFOLLOW 0
8480 static int const constants[] =
8482 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8483 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8490 int result = !constants;
8493 static char const sym[] = "conftest.sym";
8494 if (symlink ("/dev/null", sym) != 0)
8498 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8505 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8509 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8520 static char const file[] = "confdefs.h";
8521 int fd = open (file, O_RDONLY | O_NOATIME);
8527 if (fstat (fd, &st0) != 0)
8533 if (read (fd, &c, 1) != 1)
8537 if (close (fd) != 0)
8542 if (stat (file, &st1) != 0)
8545 if (st0.st_atime != st1.st_atime)
8557 if ac_fn_c_try_run
"$LINENO"; then :
8558 gl_cv_header_working_fcntl_h
=yes
8561 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8562 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8563 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8564 *) gl_cv_header_working_fcntl_h
='no';;
8567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8574 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8576 case $gl_cv_header_working_fcntl_h in #(
8577 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8581 cat >>confdefs.h
<<_ACEOF
8582 #define HAVE_WORKING_O_NOATIME $ac_val
8586 case $gl_cv_header_working_fcntl_h in #(
8587 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8591 cat >>confdefs.h
<<_ACEOF
8592 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8596 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8597 if test "x$ac_cv_type_pid_t" = xyes
; then :
8601 cat >>confdefs.h
<<_ACEOF
8607 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8608 if test "x$ac_cv_type_mode_t" = xyes
; then :
8612 cat >>confdefs.h
<<_ACEOF
8642 if test $gl_cv_have_include_next = yes; then
8643 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
8646 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
8647 if ${gl_cv_next_fnmatch_h+:} false
; then :
8648 $as_echo_n "(cached) " >&6
8651 if test $ac_cv_header_fnmatch_h = yes; then
8656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 #include <fnmatch.h>
8661 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8662 *) gl_absname_cpp
="$ac_cpp" ;;
8667 gl_dirsep_regex
='[/\\]'
8670 gl_dirsep_regex
='\/'
8673 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8674 gl_header_literal_regex
=`echo 'fnmatch.h' \
8675 | sed -e "$gl_make_literal_regex_sed"`
8676 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8677 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8683 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8684 sed -n "$gl_absolute_header_sed"`
8686 gl_header
=$gl_cv_absolute_fnmatch_h
8687 gl_cv_next_fnmatch_h
='"'$gl_header'"'
8689 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
8695 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
8697 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
8699 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8701 gl_next_as_first_directive
='<'fnmatch.h
'>'
8703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8704 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
8706 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
8714 if test $ac_cv_header_fnmatch_h = yes; then
8725 if test $ac_cv_header_fnmatch_h != yes; then
8731 if test -n "$FNMATCH_H"; then
8732 GL_GENERATE_FNMATCH_H_TRUE
=
8733 GL_GENERATE_FNMATCH_H_FALSE
='#'
8735 GL_GENERATE_FNMATCH_H_TRUE
='#'
8736 GL_GENERATE_FNMATCH_H_FALSE
=
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8749 $as_echo_n "checking for mbstate_t... " >&6; }
8750 if ${ac_cv_type_mbstate_t+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8758 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8759 included before <wchar.h>. */
8767 mbstate_t x; return sizeof x;
8772 if ac_fn_c_try_compile
"$LINENO"; then :
8773 ac_cv_type_mbstate_t
=yes
8775 ac_cv_type_mbstate_t
=no
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8780 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8781 if test $ac_cv_type_mbstate_t = yes; then
8783 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8787 $as_echo "#define mbstate_t int" >>confdefs.h
8883 GNULIB_REMAINDERF
=0;
8884 GNULIB_REMAINDERL
=0;
8970 HAVE_DECL_COPYSIGNF
=1;
8987 HAVE_DECL_REMAINDER
=1;
8988 HAVE_DECL_REMAINDERL
=1;
9060 REPLACE_REMAINDER
=0;
9061 REPLACE_REMAINDERF
=0;
9062 REPLACE_REMAINDERL
=0;
9068 REPLACE_SIGNBIT_USING_GCC
=0;
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9081 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9082 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9083 $as_echo_n "(cached) " >&6
9086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9093 int e; return frexp (x, &e) > 0;
9098 if ac_fn_c_try_link
"$LINENO"; then :
9099 gl_cv_func_frexp_no_libm
=yes
9101 gl_cv_func_frexp_no_libm
=no
9103 rm -f core conftest.err conftest.
$ac_objext \
9104 conftest
$ac_exeext conftest.
$ac_ext
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9108 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9110 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9111 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9117 cat >>confdefs.h
<<_ACEOF
9118 #define HAVE_DECL_ALARM $ac_have_decl
9125 if test $gl_cv_func_frexp_no_libm = no
; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9127 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9128 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9129 $as_echo_n "(cached) " >&6
9134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9141 int e; return frexp (x, &e) > 0;
9146 if ac_fn_c_try_link
"$LINENO"; then :
9147 gl_cv_func_frexp_in_libm
=yes
9149 gl_cv_func_frexp_in_libm
=no
9151 rm -f core conftest.err conftest.
$ac_objext \
9152 conftest
$ac_exeext conftest.
$ac_ext
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9157 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9158 if test $gl_cv_func_frexp_in_libm = yes; then
9162 if test $gl_cv_func_frexp_no_libm = yes \
9163 ||
test $gl_cv_func_frexp_in_libm = yes; then
9165 LIBS
="$LIBS $FREXP_LIBM"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9170 $as_echo_n "checking whether frexp works... " >&6; }
9171 if ${gl_cv_func_frexp_works+:} false
; then :
9172 $as_echo_n "(cached) " >&6
9175 if test "$cross_compiling" = yes; then :
9177 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9178 mingw
*) # Guess yes with MSVC, no with mingw.
9179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9188 $EGREP "Good" >/dev
/null
2>&1; then :
9189 gl_cv_func_frexp_works
="guessing yes"
9191 gl_cv_func_frexp_works
="guessing no"
9196 *) gl_cv_func_frexp_works
="guessing yes" ;;
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9207 # include <signal.h>
9208 # include <unistd.h>
9210 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9211 ICC 10.0 has a bug when optimizing the expression -zero.
9212 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9213 to PowerPC on Mac OS X 10.5. */
9214 #if defined __hpux || defined __sgi || defined __ICC
9216 compute_minus_zero (void)
9218 return -DBL_MIN * DBL_MIN;
9220 # define minus_zero compute_minus_zero ()
9222 double minus_zero = -0.0;
9231 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9232 number. Let the test fail in this case. */
9233 signal (SIGALRM, SIG_DFL);
9236 /* Test on denormalized numbers. */
9237 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9242 double y = frexp (x, &exp);
9243 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9244 On NetBSD: y = 0.75. Correct: y = 0.5. */
9248 /* Test on infinite numbers. */
9252 double y = frexp (x, &exp);
9256 /* Test on negative zero. */
9260 double y = frexp (x, &exp);
9261 if (memcmp (&y, &x, sizeof x))
9267 if ac_fn_c_try_run
"$LINENO"; then :
9268 gl_cv_func_frexp_works
=yes
9270 gl_cv_func_frexp_works
=no
9272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9273 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9279 $as_echo "$gl_cv_func_frexp_works" >&6; }
9282 case "$gl_cv_func_frexp_works" in
9283 *yes) gl_func_frexp
=yes ;;
9284 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9289 if test $gl_func_frexp = yes; then
9291 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9298 $as_echo_n "checking whether long double and double are the same... " >&6; }
9299 if ${gl_cv_long_double_equals_double+:} false
; then :
9300 $as_echo_n "(cached) " >&6
9302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9308 typedef int check[sizeof (long double) == sizeof (double)
9309 && LDBL_MANT_DIG == DBL_MANT_DIG
9310 && LDBL_MAX_EXP == DBL_MAX_EXP
9311 && LDBL_MIN_EXP == DBL_MIN_EXP
9318 if ac_fn_c_try_compile
"$LINENO"; then :
9319 gl_cv_long_double_equals_double
=yes
9321 gl_cv_long_double_equals_double
=no
9323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9327 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9328 if test $gl_cv_long_double_equals_double = yes; then
9330 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9332 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9334 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9344 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9346 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9354 if test $HAVE_DECL_FREXPL = 1; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9357 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9358 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9359 $as_echo_n "(cached) " >&6
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9369 int e; return frexpl (x, &e) > 0;
9374 if ac_fn_c_try_link
"$LINENO"; then :
9375 gl_cv_func_frexpl_no_libm
=yes
9377 gl_cv_func_frexpl_no_libm
=no
9379 rm -f core conftest.err conftest.
$ac_objext \
9380 conftest
$ac_exeext conftest.
$ac_ext
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9384 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9386 if test $gl_cv_func_frexpl_no_libm = no
; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9388 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9389 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9390 $as_echo_n "(cached) " >&6
9395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9402 int e; return frexpl (x, &e) > 0;
9407 if ac_fn_c_try_link
"$LINENO"; then :
9408 gl_cv_func_frexpl_in_libm
=yes
9410 gl_cv_func_frexpl_in_libm
=no
9412 rm -f core conftest.err conftest.
$ac_objext \
9413 conftest
$ac_exeext conftest.
$ac_ext
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9418 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9419 if test $gl_cv_func_frexpl_in_libm = yes; then
9423 if test $gl_cv_func_frexpl_no_libm = yes \
9424 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9426 LIBS
="$LIBS $FREXPL_LIBM"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9430 $as_echo_n "checking whether frexpl works... " >&6; }
9431 if ${gl_cv_func_frexpl_works+:} false
; then :
9432 $as_echo_n "(cached) " >&6
9435 if test "$cross_compiling" = yes; then :
9438 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9439 gl_cv_func_frexpl_works
="guessing no";;
9440 *) gl_cv_func_frexpl_works
="guessing yes";;
9444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9449 /* Override the values of <float.h>, like done in float.in.h. */
9450 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9451 # undef LDBL_MIN_EXP
9452 # define LDBL_MIN_EXP (-16381)
9454 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9455 # undef LDBL_MIN_EXP
9456 # define LDBL_MIN_EXP (-16381)
9458 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9459 # undef LDBL_MIN_EXP
9460 # define LDBL_MIN_EXP DBL_MIN_EXP
9462 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9463 # if defined __GNUC__
9464 # undef LDBL_MIN_EXP
9465 # define LDBL_MIN_EXP DBL_MIN_EXP
9472 long double frexpl (long double, int *);
9476 volatile long double x;
9477 /* Test on finite numbers that fails on AIX 5.1. */
9485 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9486 function returns an invalid (incorrectly normalized) value: it returns
9487 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9488 but the correct result is
9489 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9493 long double y = frexpl (x, &exp);
9494 if (!(exp == 1 && y == 0.505L))
9497 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9498 LDBL_MAX_EXP = 16384.
9499 In the loop end test, we test x against Infinity, rather than comparing
9500 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9503 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
9514 /* Test on denormalized numbers. */
9517 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
9522 long double y = frexpl (x, &exp);
9523 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
9524 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
9525 if (exp != LDBL_MIN_EXP - 1)
9529 /* Test on infinite numbers. */
9533 long double y = frexpl (x, &exp);
9540 if ac_fn_c_try_run
"$LINENO"; then :
9541 gl_cv_func_frexpl_works
=yes
9543 gl_cv_func_frexpl_works
=no
9545 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9546 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
9552 $as_echo "$gl_cv_func_frexpl_works" >&6; }
9555 case "$gl_cv_func_frexpl_works" in
9556 *yes) gl_func_frexpl
=yes ;;
9557 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
9562 if test $gl_func_frexpl = yes; then
9564 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
9568 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
9569 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
9571 FREXPL_LIBM
="$FREXP_LIBM"
9592 GNULIB_OVERRIDES_STRUCT_STAT
=0;
9614 REPLACE_UTIMENSAT
=0;
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9617 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9618 if ${ac_cv_header_stat_broken+:} false
; then :
9619 $as_echo_n "(cached) " >&6
9621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #include <sys/types.h>
9624 #include <sys/stat.h>
9626 #if defined S_ISBLK && defined S_IFDIR
9627 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9630 #if defined S_ISBLK && defined S_IFCHR
9631 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9634 #if defined S_ISLNK && defined S_IFREG
9635 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9638 #if defined S_ISSOCK && defined S_IFREG
9639 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9643 if ac_fn_c_try_compile
"$LINENO"; then :
9644 ac_cv_header_stat_broken
=no
9646 ac_cv_header_stat_broken
=yes
9648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9651 $as_echo "$ac_cv_header_stat_broken" >&6; }
9652 if test $ac_cv_header_stat_broken = yes; then
9654 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9665 $as_echo_n "checking for 64-bit off_t... " >&6; }
9666 if ${gl_cv_type_off_t_64+:} false
; then :
9667 $as_echo_n "(cached) " >&6
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <sys/types.h>
9672 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9682 if ac_fn_c_try_compile
"$LINENO"; then :
9683 gl_cv_type_off_t_64
=yes
9685 gl_cv_type_off_t_64
=no
9687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9691 $as_echo "$gl_cv_type_off_t_64" >&6; }
9692 if test $gl_cv_type_off_t_64 = no
; then
9693 WINDOWS_64_BIT_OFF_T
=1
9695 WINDOWS_64_BIT_OFF_T
=0
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
9698 $as_echo_n "checking for 64-bit st_size... " >&6; }
9699 if ${gl_cv_member_st_size_64+:} false
; then :
9700 $as_echo_n "(cached) " >&6
9702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 #include <sys/types.h>
9706 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
9716 if ac_fn_c_try_compile
"$LINENO"; then :
9717 gl_cv_member_st_size_64
=yes
9719 gl_cv_member_st_size_64
=no
9721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
9725 $as_echo "$gl_cv_member_st_size_64" >&6; }
9726 if test $gl_cv_member_st_size_64 = no
; then
9727 WINDOWS_64_BIT_ST_SIZE
=1
9729 WINDOWS_64_BIT_ST_SIZE
=0
9733 WINDOWS_64_BIT_OFF_T
=0
9734 WINDOWS_64_BIT_ST_SIZE
=0
9752 if test $gl_cv_have_include_next = yes; then
9753 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9756 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9757 if ${gl_cv_next_sys_stat_h+:} false
; then :
9758 $as_echo_n "(cached) " >&6
9761 if test $ac_cv_header_sys_stat_h = yes; then
9766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 #include <sys/stat.h>
9771 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9772 *) gl_absname_cpp
="$ac_cpp" ;;
9777 gl_dirsep_regex
='[/\\]'
9780 gl_dirsep_regex
='\/'
9783 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9784 gl_header_literal_regex
=`echo 'sys/stat.h' \
9785 | sed -e "$gl_make_literal_regex_sed"`
9786 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9787 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9793 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9794 sed -n "$gl_absolute_header_sed"`
9796 gl_header
=$gl_cv_absolute_sys_stat_h
9797 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9799 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9805 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9807 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9809 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9811 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9814 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9816 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9825 WINDOWS_STAT_TIMESPEC
=0
9834 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9835 #include <sys/stat.h>
9837 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9841 $as_echo "#define nlink_t int" >>confdefs.h
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9852 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9853 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9854 $as_echo_n "(cached) " >&6
9856 rm -f conftest.sym conftest.
file
9858 if test "$cross_compiling" = yes; then :
9861 # Guess yes on Linux systems.
9862 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9864 # Guess yes on glibc systems.
9865 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9867 # Guess no on native Windows.
9868 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9870 # If we don't know, obey --enable-cross-guesses.
9871 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
9875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 $ac_includes_default
9882 if (symlink ("conftest.file", "conftest.sym") != 0)
9884 /* Linux will dereference the symlink and fail, as required by
9885 POSIX. That is better in the sense that it means we will not
9886 have to compile and use the lstat wrapper. */
9887 return lstat ("conftest.sym/", &sbuf) == 0;
9893 if ac_fn_c_try_run
"$LINENO"; then :
9894 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9896 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9902 rm -f conftest.sym conftest.
file
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9906 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9907 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9910 cat >>confdefs.h
<<_ACEOF
9911 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9922 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9923 if ${gl_cv_func_getcwd_null+:} false
; then :
9924 $as_echo_n "(cached) " >&6
9926 if test "$cross_compiling" = yes; then :
9928 # Guess yes on glibc systems.
9929 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
9930 # Guess yes on musl systems.
9931 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
9932 # Guess yes on Cygwin.
9933 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9934 # If we don't know, obey --enable-cross-guesses.
9935 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
9939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9942 # include <stdlib.h>
9944 # include <unistd.h>
9945 # else /* on Windows with MSVC */
9946 # include <direct.h>
9956 #if defined _WIN32 && ! defined __CYGWIN__
9957 /* mingw cwd does not start with '/', but getcwd does allocate.
9958 However, mingw fails to honor non-zero size. */
9960 if (chdir ("/") != 0)
9964 char *f = getcwd (NULL, 0);
9968 { free (f); return 3; }
9970 { free (f); return 4; }
9980 if ac_fn_c_try_run
"$LINENO"; then :
9981 gl_cv_func_getcwd_null
=yes
9983 gl_cv_func_getcwd_null
=no
9985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9986 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9991 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9995 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9996 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9997 $as_echo_n "(cached) " >&6
9999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #include <unistd.h>
10009 char *getcwd (char *, size_t);
10016 if ac_fn_c_try_compile
"$LINENO"; then :
10017 gl_cv_func_getcwd_posix_signature
=yes
10019 gl_cv_func_getcwd_posix_signature
=no
10021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10025 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10027 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10028 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10034 cat >>confdefs.h
<<_ACEOF
10035 #define HAVE_DECL_GETCWD $ac_have_decl
10040 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10041 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10047 cat >>confdefs.h
<<_ACEOF
10048 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10051 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10052 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10058 cat >>confdefs.h
<<_ACEOF
10059 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10064 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10065 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10071 cat >>confdefs.h
<<_ACEOF
10072 #define HAVE_DECL_GETLOGIN $ac_have_decl
10079 LIB_GETLOGIN
='-ladvapi32' ;;
10090 GNULIB_GETTIMEOFDAY
=0;
10091 HAVE_GETTIMEOFDAY
=1;
10092 HAVE_STRUCT_TIMEVAL
=1;
10094 REPLACE_GETTIMEOFDAY
=0;
10095 REPLACE_STRUCT_TIMEVAL
=0;
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10098 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10099 if ${ac_cv_c_restrict+:} false
; then :
10100 $as_echo_n "(cached) " >&6
10102 ac_cv_c_restrict
=no
10103 # The order here caters to the fact that C++ does not require restrict.
10104 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
10105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 typedef int *int_ptr;
10108 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10109 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10110 int bar (int ip[$ac_kw]) { return ip[0]; }
10118 return foo (t) + bar (t);
10124 if ac_fn_c_try_compile
"$LINENO"; then :
10125 ac_cv_c_restrict
=$ac_kw
10127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10128 test "$ac_cv_c_restrict" != no
&& break
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10133 $as_echo "$ac_cv_c_restrict" >&6; }
10135 case $ac_cv_c_restrict in
10137 no
) $as_echo "#define restrict /**/" >>confdefs.h
10139 *) cat >>confdefs.h
<<_ACEOF
10140 #define restrict $ac_cv_c_restrict
10160 if test $gl_cv_have_include_next = yes; then
10161 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10164 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10165 if ${gl_cv_next_sys_time_h+:} false
; then :
10166 $as_echo_n "(cached) " >&6
10169 if test $ac_cv_header_sys_time_h = yes; then
10174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 #include <sys/time.h>
10179 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10180 *) gl_absname_cpp
="$ac_cpp" ;;
10185 gl_dirsep_regex
='[/\\]'
10188 gl_dirsep_regex
='\/'
10191 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10192 gl_header_literal_regex
=`echo 'sys/time.h' \
10193 | sed -e "$gl_make_literal_regex_sed"`
10194 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10195 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10201 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10202 sed -n "$gl_absolute_header_sed"`
10204 gl_header
=$gl_cv_absolute_sys_time_h
10205 gl_cv_next_sys_time_h
='"'$gl_header'"'
10207 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10213 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10215 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10217 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10218 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10219 gl_next_as_first_directive
='<'sys
/time.h
'>'
10221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10222 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10224 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10230 if test $ac_cv_header_sys_time_h != yes; then
10238 if test $ac_cv_header_sys_socket_h != yes; then
10239 for ac_header
in winsock2.h
10241 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10242 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10243 cat >>confdefs.h
<<_ACEOF
10244 #define HAVE_WINSOCK2_H 1
10252 if test "$ac_cv_header_winsock2_h" = yes; then
10254 UNISTD_H_HAVE_WINSOCK2_H
=1
10255 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10262 $as_echo_n "checking for struct timeval... " >&6; }
10263 if ${gl_cv_sys_struct_timeval+:} false
; then :
10264 $as_echo_n "(cached) " >&6
10266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 #if HAVE_SYS_TIME_H
10269 #include <sys/time.h>
10272 #if HAVE_WINSOCK2_H
10273 # include <winsock2.h>
10279 static struct timeval x; x.tv_sec = x.tv_usec;
10284 if ac_fn_c_try_compile
"$LINENO"; then :
10285 gl_cv_sys_struct_timeval
=yes
10287 gl_cv_sys_struct_timeval
=no
10289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10293 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10294 if test $gl_cv_sys_struct_timeval != yes; then
10295 HAVE_STRUCT_TIMEVAL
=0
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10298 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10299 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10300 $as_echo_n "(cached) " >&6
10302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #if HAVE_SYS_TIME_H
10305 #include <sys/time.h>
10308 #if HAVE_WINSOCK2_H
10309 # include <winsock2.h>
10315 static struct timeval x;
10316 typedef int verify_tv_sec_type[
10317 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10324 if ac_fn_c_try_compile
"$LINENO"; then :
10325 gl_cv_sys_struct_timeval_tv_sec
=yes
10327 gl_cv_sys_struct_timeval_tv_sec
=no
10329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10333 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10334 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10335 REPLACE_STRUCT_TIMEVAL
=1
10349 NEED_LOCALTIME_BUFFER
=0
10354 GNULIB_LOCALTIME
=0;
10355 GNULIB_NANOSLEEP
=0;
10362 HAVE_DECL_LOCALTIME_R
=1;
10368 REPLACE_CTIME
=GNULIB_PORTCHECK
;
10369 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
10370 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
10371 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
10372 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
10373 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
10374 REPLACE_TZSET
=GNULIB_PORTCHECK
;
10376 : ${GNULIB_GETTIMEOFDAY=0};
10378 REPLACE_LOCALTIME
=0;
10383 HAVE_GLOB_PATTERN_P
=1;
10385 REPLACE_GLOB_PATTERN_P
=0;
10403 if test $gl_cv_have_include_next = yes; then
10404 gl_cv_next_glob_h
='<'glob.h
'>'
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10407 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10408 if ${gl_cv_next_glob_h+:} false
; then :
10409 $as_echo_n "(cached) " >&6
10412 if test $ac_cv_header_glob_h = yes; then
10417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10422 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10423 *) gl_absname_cpp
="$ac_cpp" ;;
10428 gl_dirsep_regex
='[/\\]'
10431 gl_dirsep_regex
='\/'
10434 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10435 gl_header_literal_regex
=`echo 'glob.h' \
10436 | sed -e "$gl_make_literal_regex_sed"`
10437 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10444 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10445 sed -n "$gl_absolute_header_sed"`
10447 gl_header
=$gl_cv_absolute_glob_h
10448 gl_cv_next_glob_h
='"'$gl_header'"'
10450 gl_cv_next_glob_h
='<'glob.h
'>'
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10456 $as_echo "$gl_cv_next_glob_h" >&6; }
10458 NEXT_GLOB_H
=$gl_cv_next_glob_h
10460 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10462 gl_next_as_first_directive
='<'glob.h
'>'
10464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10465 gl_next_as_first_directive
=$gl_cv_next_glob_h
10467 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10473 if test $ac_cv_header_glob_h = yes; then
10484 if test $ac_cv_header_glob_h != yes; then
10490 if test -n "$GLOB_H"; then
10491 GL_GENERATE_GLOB_H_TRUE
=
10492 GL_GENERATE_GLOB_H_FALSE
='#'
10494 GL_GENERATE_GLOB_H_TRUE
='#'
10495 GL_GENERATE_GLOB_H_FALSE
=
10513 if test -z "$gl_pthreadlib_body_done"; then
10517 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10518 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10519 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10520 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10521 gl_have_pthread_h
=yes
10523 gl_have_pthread_h
=no
10527 if test "$gl_have_pthread_h" = yes; then
10528 # Other possible tests:
10529 # -lpthreads (FSU threads, PCthreads)
10531 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10532 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10533 # the second one only in libpthread, and lock.c needs it.
10535 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10536 # needs -pthread for some reason. See:
10537 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10539 for gl_pthread
in '' '-pthread'; do
10540 LIBS
="$LIBS $gl_pthread"
10541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543 #include <pthread.h>
10545 pthread_mutexattr_t ma;
10550 pthread_mutex_lock (&m);
10551 pthread_mutexattr_init (&ma);
10556 if ac_fn_c_try_link
"$LINENO"; then :
10558 LIBPTHREAD
=$gl_pthread
10559 LIBPMULTITHREAD
=$gl_pthread
10561 rm -f core conftest.err conftest.
$ac_objext \
10562 conftest
$ac_exeext conftest.
$ac_ext
10564 test $gl_pthread_api = yes && break
10567 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
10568 # since it is defined as a macro on OSF/1.)
10569 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
10570 # The program links fine without libpthread. But it may actually
10571 # need to link with libpthread in order to create multiple threads.
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10573 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10574 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10575 $as_echo_n "(cached) " >&6
10577 ac_check_lib_save_LIBS
=$LIBS
10578 LIBS
="-lpthread $LIBS"
10579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10588 char pthread_kill ();
10592 return pthread_kill ();
10597 if ac_fn_c_try_link
"$LINENO"; then :
10598 ac_cv_lib_pthread_pthread_kill
=yes
10600 ac_cv_lib_pthread_pthread_kill
=no
10602 rm -f core conftest.err conftest.
$ac_objext \
10603 conftest
$ac_exeext conftest.
$ac_ext
10604 LIBS
=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10607 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10608 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10609 LIBPMULTITHREAD
=-lpthread
10610 # On Solaris and HP-UX, most pthread functions exist also in libc.
10611 # Therefore pthread_in_use() needs to actually try to create a
10612 # thread: pthread_create from libc will fail, whereas
10613 # pthread_create will actually create a thread.
10614 # On Solaris 10 or newer, this test is no longer needed, because
10615 # libc contains the fully functional pthread functions.
10617 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
10619 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
10625 elif test $gl_pthread_api != yes; then
10626 # Some library is needed. Try libpthread and libc_r.
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10628 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10629 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10630 $as_echo_n "(cached) " >&6
10632 ac_check_lib_save_LIBS
=$LIBS
10633 LIBS
="-lpthread $LIBS"
10634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10643 char pthread_kill ();
10647 return pthread_kill ();
10652 if ac_fn_c_try_link
"$LINENO"; then :
10653 ac_cv_lib_pthread_pthread_kill
=yes
10655 ac_cv_lib_pthread_pthread_kill
=no
10657 rm -f core conftest.err conftest.
$ac_objext \
10658 conftest
$ac_exeext conftest.
$ac_ext
10659 LIBS
=$ac_check_lib_save_LIBS
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10662 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10663 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10665 LIBPTHREAD
=-lpthread
10666 LIBPMULTITHREAD
=-lpthread
10669 if test $gl_pthread_api != yes; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
10672 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
10673 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
10674 $as_echo_n "(cached) " >&6
10676 ac_check_lib_save_LIBS
=$LIBS
10678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10687 char pthread_kill ();
10691 return pthread_kill ();
10696 if ac_fn_c_try_link
"$LINENO"; then :
10697 ac_cv_lib_c_r_pthread_kill
=yes
10699 ac_cv_lib_c_r_pthread_kill
=no
10701 rm -f core conftest.err conftest.
$ac_objext \
10702 conftest
$ac_exeext conftest.
$ac_ext
10703 LIBS
=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
10706 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
10707 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
10710 LIBPMULTITHREAD
=-lc_r
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
10717 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
10719 $as_echo "$gl_pthread_api" >&6; }
10722 if test $gl_pthread_api = yes; then
10724 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
10728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10739 if ac_fn_c_try_link
"$LINENO"; then :
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
10744 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
10745 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
10746 $as_echo_n "(cached) " >&6
10748 ac_check_lib_save_LIBS
=$LIBS
10750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10759 char sched_yield ();
10763 return sched_yield ();
10768 if ac_fn_c_try_link
"$LINENO"; then :
10769 ac_cv_lib_rt_sched_yield
=yes
10771 ac_cv_lib_rt_sched_yield
=no
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10775 LIBS
=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
10778 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
10779 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
10780 LIB_SCHED_YIELD
=-lrt
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
10783 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
10784 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
10785 $as_echo_n "(cached) " >&6
10787 ac_check_lib_save_LIBS
=$LIBS
10788 LIBS
="-lposix4 $LIBS"
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10798 char sched_yield ();
10802 return sched_yield ();
10807 if ac_fn_c_try_link
"$LINENO"; then :
10808 ac_cv_lib_posix4_sched_yield
=yes
10810 ac_cv_lib_posix4_sched_yield
=no
10812 rm -f core conftest.err conftest.
$ac_objext \
10813 conftest
$ac_exeext conftest.
$ac_ext
10814 LIBS
=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
10817 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
10818 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
10819 LIB_SCHED_YIELD
=-lposix4
10826 rm -f core conftest.err conftest.
$ac_objext \
10827 conftest
$ac_exeext conftest.
$ac_ext
10830 gl_pthreadlib_body_done
=done
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
10842 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
10843 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
10844 $as_echo_n "(cached) " >&6
10847 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
10848 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
10849 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
10850 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
10851 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
10852 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
10853 # If we don't know, obey --enable-cross-guesses.
10855 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
10860 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
10864 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
10865 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
10869 case "$gl_cv_func_setlocale_null_all_mtsafe" in
10870 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
10871 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
10874 cat >>confdefs.h
<<_ACEOF
10875 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
10880 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
10881 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
10882 $as_echo_n "(cached) " >&6
10885 # Guess no on OpenBSD, AIX.
10887 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
10888 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
10889 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
10890 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
10891 # If we don't know, obey --enable-cross-guesses.
10893 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
10898 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
10902 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
10903 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
10907 case "$gl_cv_func_setlocale_null_one_mtsafe" in
10908 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
10909 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
10912 cat >>confdefs.h
<<_ACEOF
10913 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
10917 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
10919 mingw
*) LIB_SETLOCALE_NULL
= ;;
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
10924 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
10925 if ${gl_cv_have_weak+:} false
; then :
10926 $as_echo_n "(cached) " >&6
10929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 extern void xyzzy ();
10941 if ac_fn_c_try_link
"$LINENO"; then :
10942 gl_cv_have_weak
=maybe
10944 rm -f core conftest.err conftest.
$ac_objext \
10945 conftest
$ac_exeext conftest.
$ac_ext
10946 if test $gl_cv_have_weak = maybe
; then
10947 if test "$cross_compiling" = yes; then :
10948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 Extensible Linking Format
10955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10956 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
10957 gl_cv_have_weak
="guessing yes"
10959 gl_cv_have_weak
="guessing no"
10965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10972 return (fputs == NULL);
10975 if ac_fn_c_try_run
"$LINENO"; then :
10976 gl_cv_have_weak
=yes
10980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10985 case " $LDFLAGS " in
10986 *" -static "*) gl_cv_have_weak
=no
;;
10988 case "$gl_cv_have_weak" in
10991 freebsd
* | dragonfly
*)
10993 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
10994 cat <<EOF > conftest2.c
10995 #include <pthread.h>
10996 #pragma weak pthread_mutexattr_gettype
10999 return (pthread_mutexattr_gettype != NULL);
11002 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11003 || gl_cv_have_weak
=no
11004 rm -f conftest1.c libempty.so conftest2.c conftest
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11012 $as_echo "$gl_cv_have_weak" >&6; }
11013 case "$gl_cv_have_weak" in
11016 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11021 case "$gl_cv_have_weak" in
11022 *yes) LIB_SETLOCALE_NULL
= ;;
11023 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11028 LIB_SETLOCALE_NULL
=
11039 GNULIB_GETPEERNAME
=0;
11040 GNULIB_GETSOCKNAME
=0;
11041 GNULIB_GETSOCKOPT
=0;
11047 GNULIB_SETSOCKOPT
=0;
11050 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11051 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11053 HAVE_SA_FAMILY_T
=1;
11063 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11069 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11070 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11071 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #include <sys/socket.h>
11085 if ac_fn_c_try_compile
"$LINENO"; then :
11086 gl_cv_header_sys_socket_h_selfcontained
=yes
11088 gl_cv_header_sys_socket_h_selfcontained
=no
11090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11094 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11095 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11096 for ac_func
in shutdown
11098 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11099 if test "x$ac_cv_func_shutdown" = xyes
; then :
11100 cat >>confdefs.h
<<_ACEOF
11101 #define HAVE_SHUTDOWN 1
11107 if test $ac_cv_func_shutdown = yes; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11109 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11110 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11111 $as_echo_n "(cached) " >&6
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11116 #include <sys/socket.h>
11120 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11125 if ac_fn_c_try_compile
"$LINENO"; then :
11126 gl_cv_header_sys_socket_h_shut
=yes
11128 gl_cv_header_sys_socket_h_shut
=no
11130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11134 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11135 if test $gl_cv_header_sys_socket_h_shut = no
; then
11136 SYS_SOCKET_H
='sys/socket.h'
11140 # We need to check for ws2tcpip.h now.
11152 if test $gl_cv_have_include_next = yes; then
11153 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11156 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11157 if ${gl_cv_next_sys_socket_h+:} false
; then :
11158 $as_echo_n "(cached) " >&6
11161 if test $ac_cv_header_sys_socket_h = yes; then
11166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11168 #include <sys/socket.h>
11171 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11172 *) gl_absname_cpp
="$ac_cpp" ;;
11177 gl_dirsep_regex
='[/\\]'
11180 gl_dirsep_regex
='\/'
11183 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11184 gl_header_literal_regex
=`echo 'sys/socket.h' \
11185 | sed -e "$gl_make_literal_regex_sed"`
11186 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11193 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11194 sed -n "$gl_absolute_header_sed"`
11196 gl_header
=$gl_cv_absolute_sys_socket_h
11197 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11199 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11205 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11207 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11209 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11211 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11214 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11216 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11221 if test $ac_cv_header_sys_socket_h = yes; then
11222 HAVE_SYS_SOCKET_H
=1
11224 HAVE_SYS_SOCKET_H
=0
11229 if test $ac_cv_header_sys_socket_h = yes; then
11232 if test $ac_cv_header_ws2tcpip_h = yes; then
11241 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11242 /* sys/types.h is not needed according to POSIX, but the
11243 sys/socket.h in i386-unknown-freebsd4.10 and
11244 powerpc-apple-darwin5.5 required it. */
11245 #include <sys/types.h>
11246 #ifdef HAVE_SYS_SOCKET_H
11247 #include <sys/socket.h>
11249 #ifdef HAVE_WS2TCPIP_H
11250 #include <ws2tcpip.h>
11254 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11256 cat >>confdefs.h
<<_ACEOF
11257 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11262 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11263 /* sys/types.h is not needed according to POSIX, but the
11264 sys/socket.h in i386-unknown-freebsd4.10 and
11265 powerpc-apple-darwin5.5 required it. */
11266 #include <sys/types.h>
11267 #ifdef HAVE_SYS_SOCKET_H
11268 #include <sys/socket.h>
11270 #ifdef HAVE_WS2TCPIP_H
11271 #include <ws2tcpip.h>
11275 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11277 cat >>confdefs.h
<<_ACEOF
11278 #define HAVE_SA_FAMILY_T 1
11284 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11285 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11287 if test $ac_cv_type_sa_family_t = no
; then
11290 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11291 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11292 #ifdef HAVE_SYS_SOCKET_H
11293 #include <sys/socket.h>
11295 #ifdef HAVE_WS2TCPIP_H
11296 #include <ws2tcpip.h>
11300 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11302 cat >>confdefs.h
<<_ACEOF
11303 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11308 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11312 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11313 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11314 SYS_SOCKET_H
='sys/socket.h'
11320 if test $ac_cv_header_sys_socket_h != yes; then
11321 for ac_header
in winsock2.h
11323 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11324 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11325 cat >>confdefs.h
<<_ACEOF
11326 #define HAVE_WINSOCK2_H 1
11334 if test "$ac_cv_header_winsock2_h" = yes; then
11336 UNISTD_H_HAVE_WINSOCK2_H
=1
11337 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11355 $as_echo_n "checking for IPv4 sockets... " >&6; }
11356 if ${gl_cv_socket_ipv4+:} false
; then :
11357 $as_echo_n "(cached) " >&6
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <sys/types.h>
11362 #ifdef HAVE_SYS_SOCKET_H
11363 #include <sys/socket.h>
11365 #ifdef HAVE_NETINET_IN_H
11366 #include <netinet/in.h>
11368 #ifdef HAVE_WINSOCK2_H
11369 #include <winsock2.h>
11374 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11375 if (&x && &y && &z) return 0;
11380 if ac_fn_c_try_compile
"$LINENO"; then :
11381 gl_cv_socket_ipv4
=yes
11383 gl_cv_socket_ipv4
=no
11385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11388 $as_echo "$gl_cv_socket_ipv4" >&6; }
11389 if test $gl_cv_socket_ipv4 = yes; then
11391 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11396 $as_echo_n "checking for IPv6 sockets... " >&6; }
11397 if ${gl_cv_socket_ipv6+:} false
; then :
11398 $as_echo_n "(cached) " >&6
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include <sys/types.h>
11403 #ifdef HAVE_SYS_SOCKET_H
11404 #include <sys/socket.h>
11406 #ifdef HAVE_NETINET_IN_H
11407 #include <netinet/in.h>
11409 #ifdef HAVE_WINSOCK2_H
11410 #include <winsock2.h>
11412 #ifdef HAVE_WS2TCPIP_H
11413 #include <ws2tcpip.h>
11418 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11419 if (&x && &y && &z) return 0;
11424 if ac_fn_c_try_compile
"$LINENO"; then :
11425 gl_cv_socket_ipv6
=yes
11427 gl_cv_socket_ipv6
=no
11429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
11432 $as_echo "$gl_cv_socket_ipv6" >&6; }
11433 if test $gl_cv_socket_ipv6 = yes; then
11435 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11451 if test $gl_cv_have_include_next = yes; then
11452 gl_cv_next_limits_h
='<'limits.h
'>'
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11455 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11456 if ${gl_cv_next_limits_h+:} false
; then :
11457 $as_echo_n "(cached) " >&6
11460 if test $ac_cv_header_limits_h = yes; then
11465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467 #include <limits.h>
11470 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11471 *) gl_absname_cpp
="$ac_cpp" ;;
11476 gl_dirsep_regex
='[/\\]'
11479 gl_dirsep_regex
='\/'
11482 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11483 gl_header_literal_regex
=`echo 'limits.h' \
11484 | sed -e "$gl_make_literal_regex_sed"`
11485 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11486 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11492 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11493 sed -n "$gl_absolute_header_sed"`
11495 gl_header
=$gl_cv_absolute_limits_h
11496 gl_cv_next_limits_h
='"'$gl_header'"'
11498 gl_cv_next_limits_h
='<'limits.h
'>'
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11504 $as_echo "$gl_cv_next_limits_h" >&6; }
11506 NEXT_LIMITS_H
=$gl_cv_next_limits_h
11508 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11510 gl_next_as_first_directive
='<'limits.h
'>'
11512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11513 gl_next_as_first_directive
=$gl_cv_next_limits_h
11515 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11522 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11523 if ${gl_cv_header_limits_width+:} false
; then :
11524 $as_echo_n "(cached) " >&6
11526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11529 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11531 #include <limits.h>
11532 long long llm = LLONG_MAX;
11534 int ullw = ULLONG_WIDTH;
11544 if ac_fn_c_try_compile
"$LINENO"; then :
11545 gl_cv_header_limits_width
=yes
11547 gl_cv_header_limits_width
=no
11549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11552 $as_echo "$gl_cv_header_limits_width" >&6; }
11553 if test "$gl_cv_header_limits_width" = yes; then
11559 if test -n "$LIMITS_H"; then
11560 GL_GENERATE_LIMITS_H_TRUE
=
11561 GL_GENERATE_LIMITS_H_FALSE
='#'
11563 GL_GENERATE_LIMITS_H_TRUE
='#'
11564 GL_GENERATE_LIMITS_H_FALSE
=
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11570 $as_echo_n "checking for wint_t... " >&6; }
11571 if ${gt_cv_c_wint_t+:} false
; then :
11572 $as_echo_n "(cached) " >&6
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11579 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11580 before <wchar.h>. */
11581 #include <stddef.h>
11585 wint_t foo = (wchar_t)'\0';
11594 if ac_fn_c_try_compile
"$LINENO"; then :
11599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11602 $as_echo "$gt_cv_c_wint_t" >&6; }
11603 if test $gt_cv_c_wint_t = yes; then
11605 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11609 $as_echo_n "checking whether wint_t is too small... " >&6; }
11610 if ${gl_cv_type_wint_t_too_small+:} false
; then :
11611 $as_echo_n "(cached) " >&6
11613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11616 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11618 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11619 included before <wchar.h>. */
11620 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11621 # include <stddef.h>
11622 # include <stdio.h>
11626 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11636 if ac_fn_c_try_compile
"$LINENO"; then :
11637 gl_cv_type_wint_t_too_small
=no
11639 gl_cv_type_wint_t_too_small
=yes
11641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11644 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
11645 if test $gl_cv_type_wint_t_too_small = yes; then
11646 GNULIB_OVERRIDES_WINT_T
=1
11648 GNULIB_OVERRIDES_WINT_T
=0
11651 GNULIB_OVERRIDES_WINT_T
=0
11660 gl_cv_c_multiarch
=no
11661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663 #ifndef __APPLE_CC__
11664 not a universal capable compiler
11669 if ac_fn_c_try_compile
"$LINENO"; then :
11673 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11674 if test -n "$prev"; then
11676 i?
86 | x86_64 | ppc | ppc64
)
11677 if test -z "$arch" ||
test "$arch" = "$word"; then
11680 gl_cv_c_multiarch
=yes
11686 if test "x$word" = "x-arch"; then
11693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11694 if test $gl_cv_c_multiarch = yes; then
11695 APPLE_UNIVERSAL_BUILD
=1
11697 APPLE_UNIVERSAL_BUILD
=0
11707 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11710 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11714 if test $ac_cv_header_wchar_h = yes; then
11721 if test $ac_cv_header_inttypes_h = yes; then
11728 if test $ac_cv_header_sys_types_h = yes; then
11744 if test $gl_cv_have_include_next = yes; then
11745 gl_cv_next_stdint_h
='<'stdint.h
'>'
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11748 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11749 if ${gl_cv_next_stdint_h+:} false
; then :
11750 $as_echo_n "(cached) " >&6
11753 if test $ac_cv_header_stdint_h = yes; then
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <stdint.h>
11763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11764 *) gl_absname_cpp
="$ac_cpp" ;;
11769 gl_dirsep_regex
='[/\\]'
11772 gl_dirsep_regex
='\/'
11775 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11776 gl_header_literal_regex
=`echo 'stdint.h' \
11777 | sed -e "$gl_make_literal_regex_sed"`
11778 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11785 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11786 sed -n "$gl_absolute_header_sed"`
11788 gl_header
=$gl_cv_absolute_stdint_h
11789 gl_cv_next_stdint_h
='"'$gl_header'"'
11791 gl_cv_next_stdint_h
='<'stdint.h
'>'
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11797 $as_echo "$gl_cv_next_stdint_h" >&6; }
11799 NEXT_STDINT_H
=$gl_cv_next_stdint_h
11801 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11803 gl_next_as_first_directive
='<'stdint.h
'>'
11805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11806 gl_next_as_first_directive
=$gl_cv_next_stdint_h
11808 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
11813 if test $ac_cv_header_stdint_h = yes; then
11820 if test $ac_cv_header_stdint_h = yes; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11822 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11823 if ${gl_cv_header_working_stdint_h+:} false
; then :
11824 $as_echo_n "(cached) " >&6
11826 gl_cv_header_working_stdint_h
=no
11827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11831 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11832 #define __STDC_CONSTANT_MACROS 1
11833 #define __STDC_LIMIT_MACROS 1
11834 #include <stdint.h>
11835 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
11836 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
11837 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11841 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11842 included before <wchar.h>. */
11843 #include <stddef.h>
11844 #include <signal.h>
11846 # include <stdio.h>
11848 # include <wchar.h>
11853 int8_t a1 = INT8_MAX;
11854 int8_t a1min = INT8_MIN;
11857 int16_t a2 = INT16_MAX;
11858 int16_t a2min = INT16_MIN;
11861 int32_t a3 = INT32_MAX;
11862 int32_t a3min = INT32_MIN;
11865 int64_t a4 = INT64_MAX;
11866 int64_t a4min = INT64_MIN;
11869 uint8_t b1 = UINT8_MAX;
11871 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11874 uint16_t b2 = UINT16_MAX;
11877 uint32_t b3 = UINT32_MAX;
11880 uint64_t b4 = UINT64_MAX;
11882 int_least8_t c1 = INT8_C (0x7f);
11883 int_least8_t c1max = INT_LEAST8_MAX;
11884 int_least8_t c1min = INT_LEAST8_MIN;
11885 int_least16_t c2 = INT16_C (0x7fff);
11886 int_least16_t c2max = INT_LEAST16_MAX;
11887 int_least16_t c2min = INT_LEAST16_MIN;
11888 int_least32_t c3 = INT32_C (0x7fffffff);
11889 int_least32_t c3max = INT_LEAST32_MAX;
11890 int_least32_t c3min = INT_LEAST32_MIN;
11891 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11892 int_least64_t c4max = INT_LEAST64_MAX;
11893 int_least64_t c4min = INT_LEAST64_MIN;
11894 uint_least8_t d1 = UINT8_C (0xff);
11895 uint_least8_t d1max = UINT_LEAST8_MAX;
11896 uint_least16_t d2 = UINT16_C (0xffff);
11897 uint_least16_t d2max = UINT_LEAST16_MAX;
11898 uint_least32_t d3 = UINT32_C (0xffffffff);
11899 uint_least32_t d3max = UINT_LEAST32_MAX;
11900 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11901 uint_least64_t d4max = UINT_LEAST64_MAX;
11902 int_fast8_t e1 = INT_FAST8_MAX;
11903 int_fast8_t e1min = INT_FAST8_MIN;
11904 int_fast16_t e2 = INT_FAST16_MAX;
11905 int_fast16_t e2min = INT_FAST16_MIN;
11906 int_fast32_t e3 = INT_FAST32_MAX;
11907 int_fast32_t e3min = INT_FAST32_MIN;
11908 int_fast64_t e4 = INT_FAST64_MAX;
11909 int_fast64_t e4min = INT_FAST64_MIN;
11910 uint_fast8_t f1 = UINT_FAST8_MAX;
11911 uint_fast16_t f2 = UINT_FAST16_MAX;
11912 uint_fast32_t f3 = UINT_FAST32_MAX;
11913 uint_fast64_t f4 = UINT_FAST64_MAX;
11915 intptr_t g = INTPTR_MAX;
11916 intptr_t gmin = INTPTR_MIN;
11919 uintptr_t h = UINTPTR_MAX;
11921 intmax_t i = INTMAX_MAX;
11922 uintmax_t j = UINTMAX_MAX;
11924 /* Check that SIZE_MAX has the correct type, if possible. */
11925 #if 201112 <= __STDC_VERSION__
11926 int k = _Generic (SIZE_MAX, size_t: 0);
11927 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11928 || (0x5110 <= __SUNPRO_C && !__STDC__))
11930 extern __typeof__ (SIZE_MAX) k;
11933 #include <limits.h> /* for CHAR_BIT */
11934 #define TYPE_MINIMUM(t) \
11935 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11936 #define TYPE_MAXIMUM(t) \
11937 ((t) ((t) 0 < (t) -1 \
11939 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11942 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11943 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11945 /* Detect bug in FreeBSD 6.0 / ia64. */
11946 int check_SIG_ATOMIC:
11947 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11948 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11950 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11952 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11953 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11955 /* Detect bug in mingw. */
11957 WINT_MIN == TYPE_MINIMUM (wint_t)
11958 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11961 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11963 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11964 int check_UINT16_C:
11965 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11967 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11969 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11972 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11975 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11978 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11980 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11981 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11982 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11983 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11984 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11985 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11986 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11987 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11988 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11989 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11990 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12001 if ac_fn_c_try_compile
"$LINENO"; then :
12002 if test "$cross_compiling" = yes; then :
12004 # Guess yes on native Windows.
12005 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12006 # In general, assume it works.
12007 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12016 #define __STDC_CONSTANT_MACROS 1
12017 #define __STDC_LIMIT_MACROS 1
12018 #include <stdint.h>
12021 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12022 included before <wchar.h>. */
12023 #include <stddef.h>
12024 #include <signal.h>
12026 # include <stdio.h>
12028 # include <wchar.h>
12033 #include <string.h>
12034 #define MVAL(macro) MVAL1(macro)
12035 #define MVAL1(expression) #expression
12036 static const char *macro_values[] =
12070 for (mv = macro_values; *mv != NULL; mv++)
12072 const char *value = *mv;
12073 /* Test whether it looks like a cast expression. */
12074 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12075 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12076 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12077 || strncmp (value, "((int)"/*)*/, 6) == 0
12078 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12079 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12080 return mv - macro_values + 1;
12088 if ac_fn_c_try_run
"$LINENO"; then :
12089 gl_cv_header_working_stdint_h
=yes
12091 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12092 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12101 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12104 HAVE_C99_STDINT_H
=0
12105 HAVE_SYS_BITYPES_H
=0
12106 HAVE_SYS_INTTYPES_H
=0
12108 case "$gl_cv_header_working_stdint_h" in
12110 HAVE_C99_STDINT_H
=1
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
12112 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
12113 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
12114 $as_echo_n "(cached) " >&6
12116 gl_cv_header_stdint_predates_cxx11_h
=yes
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12121 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12122 #include <stdint.h>
12125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12126 included before <wchar.h>. */
12127 #include <stddef.h>
12128 #include <signal.h>
12130 # include <stdio.h>
12132 # include <wchar.h>
12136 intmax_t im = INTMAX_MAX;
12137 int32_t i32 = INT32_C (0x7fffffff);
12147 if ac_fn_c_try_compile
"$LINENO"; then :
12148 gl_cv_header_stdint_predates_cxx11_h
=no
12150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
12153 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
12155 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
12157 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12160 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12164 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12165 if ${gl_cv_header_stdint_width+:} false
; then :
12166 $as_echo_n "(cached) " >&6
12168 gl_cv_header_stdint_width
=no
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 /* Work if build is not clean. */
12173 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12174 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12175 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12177 #include <stdint.h>
12179 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12180 included before <wchar.h>. */
12181 #include <stddef.h>
12182 #include <signal.h>
12184 # include <stdio.h>
12186 # include <wchar.h>
12189 int iw = UINTMAX_WIDTH;
12199 if ac_fn_c_try_compile
"$LINENO"; then :
12200 gl_cv_header_stdint_width
=yes
12202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12205 $as_echo "$gl_cv_header_stdint_width" >&6; }
12206 if test "$gl_cv_header_stdint_width" = yes; then
12211 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12213 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12214 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12215 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12216 cat >>confdefs.h
<<_ACEOF
12217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 if test $ac_cv_header_sys_inttypes_h = yes; then
12225 HAVE_SYS_INTTYPES_H
=1
12227 if test $ac_cv_header_sys_bitypes_h = yes; then
12228 HAVE_SYS_BITYPES_H
=1
12232 if test $APPLE_UNIVERSAL_BUILD = 0; then
12235 for gltype
in ptrdiff_t size_t
; do
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12237 $as_echo_n "checking for bit size of $gltype... " >&6; }
12238 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12242 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12243 included before <wchar.h>. */
12244 #include <stddef.h>
12245 #include <signal.h>
12247 # include <stdio.h>
12249 # include <wchar.h>
12252 #include <limits.h>"; then :
12258 eval gl_cv_bitsizeof_
${gltype}=\
$result
12261 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12263 $as_echo "$ac_res" >&6; }
12264 eval result
=\
$gl_cv_bitsizeof_${gltype}
12265 if test $result = unknown
; then
12268 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12269 cat >>confdefs.h
<<_ACEOF
12270 #define BITSIZEOF_${GLTYPE} $result
12273 eval BITSIZEOF_
${GLTYPE}=\
$result
12280 for gltype
in sig_atomic_t wchar_t wint_t
; do
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12282 $as_echo_n "checking for bit size of $gltype... " >&6; }
12283 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12284 $as_echo_n "(cached) " >&6
12286 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12287 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12288 included before <wchar.h>. */
12289 #include <stddef.h>
12290 #include <signal.h>
12292 # include <stdio.h>
12294 # include <wchar.h>
12297 #include <limits.h>"; then :
12303 eval gl_cv_bitsizeof_
${gltype}=\
$result
12306 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12308 $as_echo "$ac_res" >&6; }
12309 eval result
=\
$gl_cv_bitsizeof_${gltype}
12310 if test $result = unknown
; then
12313 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12314 cat >>confdefs.h
<<_ACEOF
12315 #define BITSIZEOF_${GLTYPE} $result
12318 eval BITSIZEOF_
${GLTYPE}=\
$result
12324 for gltype
in sig_atomic_t wchar_t wint_t
; do
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12326 $as_echo_n "checking whether $gltype is signed... " >&6; }
12327 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12328 $as_echo_n "(cached) " >&6
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12334 included before <wchar.h>. */
12335 #include <stddef.h>
12336 #include <signal.h>
12338 # include <stdio.h>
12340 # include <wchar.h>
12343 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12352 if ac_fn_c_try_compile
"$LINENO"; then :
12357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12358 eval gl_cv_type_
${gltype}_signed
=\
$result
12361 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12363 $as_echo "$ac_res" >&6; }
12364 eval result
=\
$gl_cv_type_${gltype}_signed
12365 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12366 if test "$result" = yes; then
12367 cat >>confdefs.h
<<_ACEOF
12368 #define HAVE_SIGNED_${GLTYPE} 1
12371 eval HAVE_SIGNED_
${GLTYPE}=1
12373 eval HAVE_SIGNED_
${GLTYPE}=0
12378 gl_cv_type_ptrdiff_t_signed
=yes
12379 gl_cv_type_size_t_signed
=no
12380 if test $APPLE_UNIVERSAL_BUILD = 0; then
12383 for gltype
in ptrdiff_t size_t
; do
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12385 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12386 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12387 $as_echo_n "(cached) " >&6
12389 eval gl_cv_type_
${gltype}_suffix
=no
12390 eval result
=\
$gl_cv_type_${gltype}_signed
12391 if test "$result" = yes; then
12396 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12398 '') gltype1
='int';;
12399 l
) gltype1
='long int';;
12400 ll
) gltype1
='long long int';;
12401 i64
) gltype1
='__int64';;
12402 u
) gltype1
='unsigned int';;
12403 ul
) gltype1
='unsigned long int';;
12404 ull
) gltype1
='unsigned long long int';;
12405 ui64
)gltype1
='unsigned __int64';;
12407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12411 included before <wchar.h>. */
12412 #include <stddef.h>
12413 #include <signal.h>
12415 # include <stdio.h>
12417 # include <wchar.h>
12420 extern $gltype foo;
12421 extern $gltype1 foo;
12430 if ac_fn_c_try_compile
"$LINENO"; then :
12431 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12434 eval result
=\
$gl_cv_type_${gltype}_suffix
12435 test "$result" != no
&& break
12438 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12440 $as_echo "$ac_res" >&6; }
12441 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12442 eval result
=\
$gl_cv_type_${gltype}_suffix
12443 test "$result" = no
&& result
=
12444 eval ${GLTYPE}_SUFFIX
=\
$result
12445 cat >>confdefs.h
<<_ACEOF
12446 #define ${GLTYPE}_SUFFIX $result
12455 for gltype
in sig_atomic_t wchar_t wint_t
; do
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12457 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12458 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12459 $as_echo_n "(cached) " >&6
12461 eval gl_cv_type_
${gltype}_suffix
=no
12462 eval result
=\
$gl_cv_type_${gltype}_signed
12463 if test "$result" = yes; then
12468 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12470 '') gltype1
='int';;
12471 l
) gltype1
='long int';;
12472 ll
) gltype1
='long long int';;
12473 i64
) gltype1
='__int64';;
12474 u
) gltype1
='unsigned int';;
12475 ul
) gltype1
='unsigned long int';;
12476 ull
) gltype1
='unsigned long long int';;
12477 ui64
)gltype1
='unsigned __int64';;
12479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12483 included before <wchar.h>. */
12484 #include <stddef.h>
12485 #include <signal.h>
12487 # include <stdio.h>
12489 # include <wchar.h>
12492 extern $gltype foo;
12493 extern $gltype1 foo;
12502 if ac_fn_c_try_compile
"$LINENO"; then :
12503 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12506 eval result
=\
$gl_cv_type_${gltype}_suffix
12507 test "$result" != no
&& break
12510 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12512 $as_echo "$ac_res" >&6; }
12513 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12514 eval result
=\
$gl_cv_type_${gltype}_suffix
12515 test "$result" = no
&& result
=
12516 eval ${GLTYPE}_SUFFIX
=\
$result
12517 cat >>confdefs.h
<<_ACEOF
12518 #define ${GLTYPE}_SUFFIX $result
12525 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12526 BITSIZEOF_WINT_T
=32
12534 LIMITS_H
='limits.h'
12535 if test -n "$LIMITS_H"; then
12536 GL_GENERATE_LIMITS_H_TRUE
=
12537 GL_GENERATE_LIMITS_H_FALSE
='#'
12539 GL_GENERATE_LIMITS_H_TRUE
='#'
12540 GL_GENERATE_LIMITS_H_FALSE
=
12549 if test -n "$STDINT_H"; then
12550 GL_GENERATE_STDINT_H_TRUE
=
12551 GL_GENERATE_STDINT_H_FALSE
='#'
12553 GL_GENERATE_STDINT_H_TRUE
='#'
12554 GL_GENERATE_STDINT_H_FALSE
=
12563 GNULIB_STRTOIMAX
=0;
12564 GNULIB_STRTOUMAX
=0;
12565 HAVE_DECL_IMAXABS
=1;
12566 HAVE_DECL_IMAXDIV
=1;
12567 HAVE_DECL_STRTOIMAX
=1;
12568 HAVE_DECL_STRTOUMAX
=1;
12570 REPLACE_STRTOIMAX
=0;
12571 REPLACE_STRTOUMAX
=0;
12572 INT32_MAX_LT_INTMAX_MAX
=1;
12573 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12574 PRI_MACROS_BROKEN
=0;
12575 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12576 UINT32_MAX_LT_UINTMAX_MAX
=1;
12577 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12593 if test $gl_cv_have_include_next = yes; then
12594 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12597 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12598 if ${gl_cv_next_inttypes_h+:} false
; then :
12599 $as_echo_n "(cached) " >&6
12602 if test $ac_cv_header_inttypes_h = yes; then
12607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #include <inttypes.h>
12612 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12613 *) gl_absname_cpp
="$ac_cpp" ;;
12618 gl_dirsep_regex
='[/\\]'
12621 gl_dirsep_regex
='\/'
12624 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12625 gl_header_literal_regex
=`echo 'inttypes.h' \
12626 | sed -e "$gl_make_literal_regex_sed"`
12627 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12634 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12635 sed -n "$gl_absolute_header_sed"`
12637 gl_header
=$gl_cv_absolute_inttypes_h
12638 gl_cv_next_inttypes_h
='"'$gl_header'"'
12640 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
12646 $as_echo "$gl_cv_next_inttypes_h" >&6; }
12648 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
12650 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12652 gl_next_as_first_directive
='<'inttypes.h
'>'
12654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12655 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
12657 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
12670 for ac_header
in inttypes.h
12672 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12673 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
12674 cat >>confdefs.h
<<_ACEOF
12675 #define HAVE_INTTYPES_H 1
12682 if test $ac_cv_header_inttypes_h = yes; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12684 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12685 if ${gt_cv_inttypes_pri_broken+:} false
; then :
12686 $as_echo_n "(cached) " >&6
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12692 #include <inttypes.h>
12705 if ac_fn_c_try_compile
"$LINENO"; then :
12706 gt_cv_inttypes_pri_broken
=no
12708 gt_cv_inttypes_pri_broken
=yes
12710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12714 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12716 if test "$gt_cv_inttypes_pri_broken" = yes; then
12718 cat >>confdefs.h
<<_ACEOF
12719 #define PRI_MACROS_BROKEN 1
12722 PRI_MACROS_BROKEN
=1
12724 PRI_MACROS_BROKEN
=0
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
12730 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
12731 if ${gl_cv_cc_double_expbit0+:} false
; then :
12732 $as_echo_n "(cached) " >&6
12735 if test "$cross_compiling" = yes; then :
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 #if defined arm || defined __arm || defined __arm__
12745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12746 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
12747 gl_cv_cc_double_expbit0
="unknown"
12751 if ${ac_cv_c_bigendian+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12754 ac_cv_c_bigendian
=unknown
12755 # See if we're dealing with a universal compiler.
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 #ifndef __APPLE_CC__
12759 not a universal capable compiler
12764 if ac_fn_c_try_compile
"$LINENO"; then :
12766 # Check for potential -arch flags. It is not universal unless
12767 # there are at least two -arch flags with different values.
12770 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12771 if test -n "$ac_prev"; then
12773 i?
86 | x86_64 | ppc | ppc64
)
12774 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12777 ac_cv_c_bigendian
=universal
12783 elif test "x$ac_word" = "x-arch"; then
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12789 if test $ac_cv_c_bigendian = unknown
; then
12790 # See if sys/param.h defines the BYTE_ORDER macro.
12791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <sys/types.h>
12794 #include <sys/param.h>
12799 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12800 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12802 bogus endian macros
12809 if ac_fn_c_try_compile
"$LINENO"; then :
12810 # It does; now see whether it defined to BIG_ENDIAN or not.
12811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #include <sys/types.h>
12814 #include <sys/param.h>
12819 #if BYTE_ORDER != BIG_ENDIAN
12827 if ac_fn_c_try_compile
"$LINENO"; then :
12828 ac_cv_c_bigendian
=yes
12830 ac_cv_c_bigendian
=no
12832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12836 if test $ac_cv_c_bigendian = unknown
; then
12837 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #include <limits.h>
12845 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12846 bogus endian macros
12853 if ac_fn_c_try_compile
"$LINENO"; then :
12854 # It does; now see whether it defined to _BIG_ENDIAN or not.
12855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <limits.h>
12862 #ifndef _BIG_ENDIAN
12870 if ac_fn_c_try_compile
"$LINENO"; then :
12871 ac_cv_c_bigendian
=yes
12873 ac_cv_c_bigendian
=no
12875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12879 if test $ac_cv_c_bigendian = unknown
; then
12880 # Compile a test program.
12881 if test "$cross_compiling" = yes; then :
12882 # Try to guess by grepping values from an object file.
12883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885 short int ascii_mm[] =
12886 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12887 short int ascii_ii[] =
12888 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12889 int use_ascii (int i) {
12890 return ascii_mm[i] + ascii_ii[i];
12892 short int ebcdic_ii[] =
12893 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12894 short int ebcdic_mm[] =
12895 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12896 int use_ebcdic (int i) {
12897 return ebcdic_mm[i] + ebcdic_ii[i];
12904 return use_ascii (foo) == use_ebcdic (foo);
12909 if ac_fn_c_try_compile
"$LINENO"; then :
12910 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12911 ac_cv_c_bigendian
=yes
12913 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12914 if test "$ac_cv_c_bigendian" = unknown
; then
12915 ac_cv_c_bigendian
=no
12917 # finding both strings is unlikely to happen, but who knows?
12918 ac_cv_c_bigendian
=unknown
12922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 $ac_includes_default
12931 /* Are we little or big endian? From Harbison&Steele. */
12935 char c[sizeof (long int)];
12938 return u.c[sizeof (long int) - 1] == 1;
12944 if ac_fn_c_try_run
"$LINENO"; then :
12945 ac_cv_c_bigendian
=no
12947 ac_cv_c_bigendian
=yes
12949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12956 case $ac_cv_c_bigendian in #(
12958 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12960 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12963 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12967 gl_cv_cc_double_expbit0
="unknown" ;;
12976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12980 #include <stddef.h>
12982 #include <string.h>
12984 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12985 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12986 static unsigned int ored_words[NWORDS];
12987 static unsigned int anded_words[NWORDS];
12988 static void add_to_ored_words (double x)
12992 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12993 memset (&m, 0, sizeof (memory_double));
12995 for (i = 0; i < NWORDS; i++)
12997 ored_words[i] |= m.word[i];
12998 anded_words[i] &= m.word[i];
13004 FILE *fp = fopen ("conftest.out", "w");
13007 for (j = 0; j < NWORDS; j++)
13008 anded_words[j] = ~ (unsigned int) 0;
13009 add_to_ored_words (0.25);
13010 add_to_ored_words (0.5);
13011 add_to_ored_words (1.0);
13012 add_to_ored_words (2.0);
13013 add_to_ored_words (4.0);
13014 /* Remove bits that are common (e.g. if representation of the first mantissa
13015 bit is explicit). */
13016 for (j = 0; j < NWORDS; j++)
13017 ored_words[j] &= ~anded_words[j];
13018 /* Now find the nonzero word. */
13019 for (j = 0; j < NWORDS; j++)
13020 if (ored_words[j] != 0)
13025 for (i = j + 1; i < NWORDS; i++)
13026 if (ored_words[i] != 0)
13028 fprintf (fp, "unknown");
13029 return (fclose (fp) != 0);
13032 if ((ored_words[j] >> i) & 1)
13034 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13035 return (fclose (fp) != 0);
13038 fprintf (fp, "unknown");
13039 return (fclose (fp) != 0);
13043 if ac_fn_c_try_run
"$LINENO"; then :
13044 gl_cv_cc_double_expbit0
=`cat conftest.out`
13046 gl_cv_cc_double_expbit0
="unknown"
13048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13056 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13057 case "$gl_cv_cc_double_expbit0" in
13059 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13060 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13062 cat >>confdefs.h
<<_ACEOF
13063 #define DBL_EXPBIT0_WORD $word
13067 cat >>confdefs.h
<<_ACEOF
13068 #define DBL_EXPBIT0_BIT $bit
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13076 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13077 if ${ac_cv_c_bigendian+:} false
; then :
13078 $as_echo_n "(cached) " >&6
13080 ac_cv_c_bigendian
=unknown
13081 # See if we're dealing with a universal compiler.
13082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 #ifndef __APPLE_CC__
13085 not a universal capable compiler
13090 if ac_fn_c_try_compile
"$LINENO"; then :
13092 # Check for potential -arch flags. It is not universal unless
13093 # there are at least two -arch flags with different values.
13096 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13097 if test -n "$ac_prev"; then
13099 i?
86 | x86_64 | ppc | ppc64
)
13100 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13103 ac_cv_c_bigendian
=universal
13109 elif test "x$ac_word" = "x-arch"; then
13114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13115 if test $ac_cv_c_bigendian = unknown
; then
13116 # See if sys/param.h defines the BYTE_ORDER macro.
13117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include <sys/types.h>
13120 #include <sys/param.h>
13125 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13126 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13128 bogus endian macros
13135 if ac_fn_c_try_compile
"$LINENO"; then :
13136 # It does; now see whether it defined to BIG_ENDIAN or not.
13137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <sys/types.h>
13140 #include <sys/param.h>
13145 #if BYTE_ORDER != BIG_ENDIAN
13153 if ac_fn_c_try_compile
"$LINENO"; then :
13154 ac_cv_c_bigendian
=yes
13156 ac_cv_c_bigendian
=no
13158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13162 if test $ac_cv_c_bigendian = unknown
; then
13163 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13166 #include <limits.h>
13171 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13172 bogus endian macros
13179 if ac_fn_c_try_compile
"$LINENO"; then :
13180 # It does; now see whether it defined to _BIG_ENDIAN or not.
13181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <limits.h>
13188 #ifndef _BIG_ENDIAN
13196 if ac_fn_c_try_compile
"$LINENO"; then :
13197 ac_cv_c_bigendian
=yes
13199 ac_cv_c_bigendian
=no
13201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13205 if test $ac_cv_c_bigendian = unknown
; then
13206 # Compile a test program.
13207 if test "$cross_compiling" = yes; then :
13208 # Try to guess by grepping values from an object file.
13209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 short int ascii_mm[] =
13212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13213 short int ascii_ii[] =
13214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13215 int use_ascii (int i) {
13216 return ascii_mm[i] + ascii_ii[i];
13218 short int ebcdic_ii[] =
13219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13220 short int ebcdic_mm[] =
13221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13222 int use_ebcdic (int i) {
13223 return ebcdic_mm[i] + ebcdic_ii[i];
13230 return use_ascii (foo) == use_ebcdic (foo);
13235 if ac_fn_c_try_compile
"$LINENO"; then :
13236 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13237 ac_cv_c_bigendian
=yes
13239 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13240 if test "$ac_cv_c_bigendian" = unknown
; then
13241 ac_cv_c_bigendian
=no
13243 # finding both strings is unlikely to happen, but who knows?
13244 ac_cv_c_bigendian
=unknown
13248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 $ac_includes_default
13257 /* Are we little or big endian? From Harbison&Steele. */
13261 char c[sizeof (long int)];
13264 return u.c[sizeof (long int) - 1] == 1;
13270 if ac_fn_c_try_run
"$LINENO"; then :
13271 ac_cv_c_bigendian
=no
13273 ac_cv_c_bigendian
=yes
13275 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13276 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13282 $as_echo "$ac_cv_c_bigendian" >&6; }
13283 case $ac_cv_c_bigendian in #(
13285 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13291 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13295 as_fn_error $?
"unknown endianness
13296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13302 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13303 if ${am_cv_langinfo_codeset+:} false
; then :
13304 $as_echo_n "(cached) " >&6
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 #include <langinfo.h>
13312 char* cs = nl_langinfo(CODESET); return !cs;
13317 if ac_fn_c_try_link
"$LINENO"; then :
13318 am_cv_langinfo_codeset
=yes
13320 am_cv_langinfo_codeset
=no
13322 rm -f core conftest.err conftest.
$ac_objext \
13323 conftest
$ac_exeext conftest.
$ac_ext
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13327 $as_echo "$am_cv_langinfo_codeset" >&6; }
13328 if test $am_cv_langinfo_codeset = yes; then
13330 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13335 GNULIB_LOCALECONV
=0;
13336 GNULIB_SETLOCALE
=0;
13337 GNULIB_SETLOCALE_NULL
=0;
13338 GNULIB_DUPLOCALE
=0;
13339 GNULIB_LOCALENAME
=0;
13343 REPLACE_LOCALECONV
=0;
13344 REPLACE_SETLOCALE
=0;
13345 REPLACE_NEWLOCALE
=0;
13346 REPLACE_DUPLOCALE
=0;
13347 REPLACE_FREELOCALE
=0;
13348 REPLACE_STRUCT_LCONV
=0;
13352 HAVE_MAX_ALIGN_T
=1;
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13357 $as_echo_n "checking for wchar_t... " >&6; }
13358 if ${gt_cv_c_wchar_t+:} false
; then :
13359 $as_echo_n "(cached) " >&6
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <stddef.h>
13364 wchar_t foo = (wchar_t)'\0';
13373 if ac_fn_c_try_compile
"$LINENO"; then :
13374 gt_cv_c_wchar_t
=yes
13378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13381 $as_echo "$gt_cv_c_wchar_t" >&6; }
13382 if test $gt_cv_c_wchar_t = yes; then
13384 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13394 $as_echo_n "checking for good max_align_t... " >&6; }
13395 if ${gl_cv_type_max_align_t+:} false
; then :
13396 $as_echo_n "(cached) " >&6
13398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #include <stddef.h>
13401 unsigned int s = sizeof (max_align_t);
13402 #if defined __GNUC__ || defined __IBM__ALIGNOF__
13403 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13404 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13415 if ac_fn_c_try_compile
"$LINENO"; then :
13416 gl_cv_type_max_align_t
=yes
13418 gl_cv_type_max_align_t
=no
13420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13424 $as_echo "$gl_cv_type_max_align_t" >&6; }
13425 if test $gl_cv_type_max_align_t = no
; then
13430 if test $gt_cv_c_wchar_t = no
; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13436 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13437 if ${gl_cv_decl_null_works+:} false
; then :
13438 $as_echo_n "(cached) " >&6
13440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <stddef.h>
13443 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13453 if ac_fn_c_try_compile
"$LINENO"; then :
13454 gl_cv_decl_null_works
=yes
13456 gl_cv_decl_null_works
=no
13458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13461 $as_echo "$gl_cv_decl_null_works" >&6; }
13462 if test $gl_cv_decl_null_works = no
; then
13468 if test -n "$STDDEF_H"; then
13469 GL_GENERATE_STDDEF_H_TRUE
=
13470 GL_GENERATE_STDDEF_H_FALSE
='#'
13472 GL_GENERATE_STDDEF_H_TRUE
='#'
13473 GL_GENERATE_STDDEF_H_FALSE
=
13476 if test -n "$STDDEF_H"; then
13485 if test $gl_cv_have_include_next = yes; then
13486 gl_cv_next_stddef_h
='<'stddef.h
'>'
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13489 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13490 if ${gl_cv_next_stddef_h+:} false
; then :
13491 $as_echo_n "(cached) " >&6
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13498 #include <stddef.h>
13501 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13502 *) gl_absname_cpp
="$ac_cpp" ;;
13507 gl_dirsep_regex
='[/\\]'
13510 gl_dirsep_regex
='\/'
13513 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13514 gl_header_literal_regex
=`echo 'stddef.h' \
13515 | sed -e "$gl_make_literal_regex_sed"`
13516 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13523 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13524 sed -n "$gl_absolute_header_sed"`
13526 gl_header
=$gl_cv_absolute_stddef_h
13527 gl_cv_next_stddef_h
='"'$gl_header'"'
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13532 $as_echo "$gl_cv_next_stddef_h" >&6; }
13534 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13536 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13538 gl_next_as_first_directive
='<'stddef.h
'>'
13540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13541 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13543 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13556 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13557 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
13558 $as_echo_n "(cached) " >&6
13560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <locale.h>
13572 if ac_fn_c_try_compile
"$LINENO"; then :
13573 gl_cv_header_locale_has_locale_t
=yes
13575 gl_cv_header_locale_has_locale_t
=no
13577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13581 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13584 if test $ac_cv_header_xlocale_h = yes; then
13586 if test $gl_cv_header_locale_has_locale_t = yes; then
13587 gl_cv_header_locale_h_needs_xlocale_h
=no
13589 gl_cv_header_locale_h_needs_xlocale_h
=yes
13594 gl_cv_header_locale_h_needs_xlocale_h
=no
13595 if test $gl_cv_header_locale_has_locale_t = yes; then
13605 gl_threads_api
=none
13610 if test "$gl_use_threads" != no
; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
13614 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13615 if ${gl_cv_have_weak+:} false
; then :
13616 $as_echo_n "(cached) " >&6
13619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 extern void xyzzy ();
13631 if ac_fn_c_try_link
"$LINENO"; then :
13632 gl_cv_have_weak
=maybe
13634 rm -f core conftest.err conftest.
$ac_objext \
13635 conftest
$ac_exeext conftest.
$ac_ext
13636 if test $gl_cv_have_weak = maybe
; then
13637 if test "$cross_compiling" = yes; then :
13638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13641 Extensible Linking Format
13645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13646 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
13647 gl_cv_have_weak
="guessing yes"
13649 gl_cv_have_weak
="guessing no"
13655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13662 return (fputs == NULL);
13665 if ac_fn_c_try_run
"$LINENO"; then :
13666 gl_cv_have_weak
=yes
13670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13671 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13675 case " $LDFLAGS " in
13676 *" -static "*) gl_cv_have_weak
=no
;;
13678 case "$gl_cv_have_weak" in
13681 freebsd
* | dragonfly
*)
13683 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
13684 cat <<EOF > conftest2.c
13685 #include <pthread.h>
13686 #pragma weak pthread_mutexattr_gettype
13689 return (pthread_mutexattr_gettype != NULL);
13692 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
13693 || gl_cv_have_weak
=no
13694 rm -f conftest1.c libempty.so conftest2.c conftest
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
13702 $as_echo "$gl_cv_have_weak" >&6; }
13703 case "$gl_cv_have_weak" in
13706 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
13711 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13715 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
13717 gl_have_isoc_threads
="$ac_cv_header_threads_h"
13719 if test "$gl_use_threads" = yes \
13720 ||
test "$gl_use_threads" = posix \
13721 ||
test "$gl_use_threads" = isoc
+posix
; then
13724 if test -z "$gl_pthreadlib_body_done"; then
13728 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13729 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
13730 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13731 if test "x$ac_cv_header_pthread_h" = xyes
; then :
13732 gl_have_pthread_h
=yes
13734 gl_have_pthread_h
=no
13738 if test "$gl_have_pthread_h" = yes; then
13739 # Other possible tests:
13740 # -lpthreads (FSU threads, PCthreads)
13742 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13743 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13744 # the second one only in libpthread, and lock.c needs it.
13746 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
13747 # needs -pthread for some reason. See:
13748 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13750 for gl_pthread
in '' '-pthread'; do
13751 LIBS
="$LIBS $gl_pthread"
13752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 #include <pthread.h>
13756 pthread_mutexattr_t ma;
13761 pthread_mutex_lock (&m);
13762 pthread_mutexattr_init (&ma);
13767 if ac_fn_c_try_link
"$LINENO"; then :
13769 LIBPTHREAD
=$gl_pthread
13770 LIBPMULTITHREAD
=$gl_pthread
13772 rm -f core conftest.err conftest.
$ac_objext \
13773 conftest
$ac_exeext conftest.
$ac_ext
13775 test $gl_pthread_api = yes && break
13778 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13779 # since it is defined as a macro on OSF/1.)
13780 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
13781 # The program links fine without libpthread. But it may actually
13782 # need to link with libpthread in order to create multiple threads.
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13784 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13785 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13786 $as_echo_n "(cached) " >&6
13788 ac_check_lib_save_LIBS
=$LIBS
13789 LIBS
="-lpthread $LIBS"
13790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13799 char pthread_kill ();
13803 return pthread_kill ();
13808 if ac_fn_c_try_link
"$LINENO"; then :
13809 ac_cv_lib_pthread_pthread_kill
=yes
13811 ac_cv_lib_pthread_pthread_kill
=no
13813 rm -f core conftest.err conftest.
$ac_objext \
13814 conftest
$ac_exeext conftest.
$ac_ext
13815 LIBS
=$ac_check_lib_save_LIBS
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13818 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13819 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13820 LIBPMULTITHREAD
=-lpthread
13821 # On Solaris and HP-UX, most pthread functions exist also in libc.
13822 # Therefore pthread_in_use() needs to actually try to create a
13823 # thread: pthread_create from libc will fail, whereas
13824 # pthread_create will actually create a thread.
13825 # On Solaris 10 or newer, this test is no longer needed, because
13826 # libc contains the fully functional pthread functions.
13828 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
13830 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
13836 elif test $gl_pthread_api != yes; then
13837 # Some library is needed. Try libpthread and libc_r.
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13839 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13840 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13841 $as_echo_n "(cached) " >&6
13843 ac_check_lib_save_LIBS
=$LIBS
13844 LIBS
="-lpthread $LIBS"
13845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13854 char pthread_kill ();
13858 return pthread_kill ();
13863 if ac_fn_c_try_link
"$LINENO"; then :
13864 ac_cv_lib_pthread_pthread_kill
=yes
13866 ac_cv_lib_pthread_pthread_kill
=no
13868 rm -f core conftest.err conftest.
$ac_objext \
13869 conftest
$ac_exeext conftest.
$ac_ext
13870 LIBS
=$ac_check_lib_save_LIBS
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13873 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13874 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13876 LIBPTHREAD
=-lpthread
13877 LIBPMULTITHREAD
=-lpthread
13880 if test $gl_pthread_api != yes; then
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
13883 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13884 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
13885 $as_echo_n "(cached) " >&6
13887 ac_check_lib_save_LIBS
=$LIBS
13889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13898 char pthread_kill ();
13902 return pthread_kill ();
13907 if ac_fn_c_try_link
"$LINENO"; then :
13908 ac_cv_lib_c_r_pthread_kill
=yes
13910 ac_cv_lib_c_r_pthread_kill
=no
13912 rm -f core conftest.err conftest.
$ac_objext \
13913 conftest
$ac_exeext conftest.
$ac_ext
13914 LIBS
=$ac_check_lib_save_LIBS
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13917 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13918 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13921 LIBPMULTITHREAD
=-lc_r
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
13928 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
13930 $as_echo "$gl_pthread_api" >&6; }
13933 if test $gl_pthread_api = yes; then
13935 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13950 if ac_fn_c_try_link
"$LINENO"; then :
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13955 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13956 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
13957 $as_echo_n "(cached) " >&6
13959 ac_check_lib_save_LIBS
=$LIBS
13961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13964 /* Override any GCC internal prototype to avoid an error.
13965 Use char because int might match the return type of a GCC
13966 builtin and then its argument prototype would still apply. */
13970 char sched_yield ();
13974 return sched_yield ();
13979 if ac_fn_c_try_link
"$LINENO"; then :
13980 ac_cv_lib_rt_sched_yield
=yes
13982 ac_cv_lib_rt_sched_yield
=no
13984 rm -f core conftest.err conftest.
$ac_objext \
13985 conftest
$ac_exeext conftest.
$ac_ext
13986 LIBS
=$ac_check_lib_save_LIBS
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13989 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13990 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
13991 LIB_SCHED_YIELD
=-lrt
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
13994 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
13995 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
13996 $as_echo_n "(cached) " >&6
13998 ac_check_lib_save_LIBS
=$LIBS
13999 LIBS
="-lposix4 $LIBS"
14000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14009 char sched_yield ();
14013 return sched_yield ();
14018 if ac_fn_c_try_link
"$LINENO"; then :
14019 ac_cv_lib_posix4_sched_yield
=yes
14021 ac_cv_lib_posix4_sched_yield
=no
14023 rm -f core conftest.err conftest.
$ac_objext \
14024 conftest
$ac_exeext conftest.
$ac_ext
14025 LIBS
=$ac_check_lib_save_LIBS
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14028 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14029 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14030 LIB_SCHED_YIELD
=-lposix4
14037 rm -f core conftest.err conftest.
$ac_objext \
14038 conftest
$ac_exeext conftest.
$ac_ext
14041 gl_pthreadlib_body_done
=done
14044 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14045 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14046 if test $gl_pthread_api = yes; then
14047 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14048 gl_threads_api
='isoc+posix'
14050 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14052 LIBTHREAD
= LTLIBTHREAD
=
14054 gl_threads_api
=posix
14056 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14058 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14059 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14061 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14063 LIBTHREAD
= LTLIBTHREAD
=
14069 if test $gl_threads_api = none
; then
14070 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14074 if test -z "$gl_stdthreadlib_body_done"; then
14084 if test -z "$gl_pthreadlib_body_done"; then
14088 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14089 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14090 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14091 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14092 gl_have_pthread_h
=yes
14094 gl_have_pthread_h
=no
14098 if test "$gl_have_pthread_h" = yes; then
14099 # Other possible tests:
14100 # -lpthreads (FSU threads, PCthreads)
14102 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14103 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14104 # the second one only in libpthread, and lock.c needs it.
14106 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14107 # needs -pthread for some reason. See:
14108 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14110 for gl_pthread
in '' '-pthread'; do
14111 LIBS
="$LIBS $gl_pthread"
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <pthread.h>
14116 pthread_mutexattr_t ma;
14121 pthread_mutex_lock (&m);
14122 pthread_mutexattr_init (&ma);
14127 if ac_fn_c_try_link
"$LINENO"; then :
14129 LIBPTHREAD
=$gl_pthread
14130 LIBPMULTITHREAD
=$gl_pthread
14132 rm -f core conftest.err conftest.
$ac_objext \
14133 conftest
$ac_exeext conftest.
$ac_ext
14135 test $gl_pthread_api = yes && break
14138 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14139 # since it is defined as a macro on OSF/1.)
14140 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14141 # The program links fine without libpthread. But it may actually
14142 # need to link with libpthread in order to create multiple threads.
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14144 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14145 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_check_lib_save_LIBS
=$LIBS
14149 LIBS
="-lpthread $LIBS"
14150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14159 char pthread_kill ();
14163 return pthread_kill ();
14168 if ac_fn_c_try_link
"$LINENO"; then :
14169 ac_cv_lib_pthread_pthread_kill
=yes
14171 ac_cv_lib_pthread_pthread_kill
=no
14173 rm -f core conftest.err conftest.
$ac_objext \
14174 conftest
$ac_exeext conftest.
$ac_ext
14175 LIBS
=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14178 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14179 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14180 LIBPMULTITHREAD
=-lpthread
14181 # On Solaris and HP-UX, most pthread functions exist also in libc.
14182 # Therefore pthread_in_use() needs to actually try to create a
14183 # thread: pthread_create from libc will fail, whereas
14184 # pthread_create will actually create a thread.
14185 # On Solaris 10 or newer, this test is no longer needed, because
14186 # libc contains the fully functional pthread functions.
14188 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14190 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14196 elif test $gl_pthread_api != yes; then
14197 # Some library is needed. Try libpthread and libc_r.
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14199 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14200 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14201 $as_echo_n "(cached) " >&6
14203 ac_check_lib_save_LIBS
=$LIBS
14204 LIBS
="-lpthread $LIBS"
14205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply. */
14214 char pthread_kill ();
14218 return pthread_kill ();
14223 if ac_fn_c_try_link
"$LINENO"; then :
14224 ac_cv_lib_pthread_pthread_kill
=yes
14226 ac_cv_lib_pthread_pthread_kill
=no
14228 rm -f core conftest.err conftest.
$ac_objext \
14229 conftest
$ac_exeext conftest.
$ac_ext
14230 LIBS
=$ac_check_lib_save_LIBS
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14233 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14234 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14236 LIBPTHREAD
=-lpthread
14237 LIBPMULTITHREAD
=-lpthread
14240 if test $gl_pthread_api != yes; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14243 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14244 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14245 $as_echo_n "(cached) " >&6
14247 ac_check_lib_save_LIBS
=$LIBS
14249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14258 char pthread_kill ();
14262 return pthread_kill ();
14267 if ac_fn_c_try_link
"$LINENO"; then :
14268 ac_cv_lib_c_r_pthread_kill
=yes
14270 ac_cv_lib_c_r_pthread_kill
=no
14272 rm -f core conftest.err conftest.
$ac_objext \
14273 conftest
$ac_exeext conftest.
$ac_ext
14274 LIBS
=$ac_check_lib_save_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14277 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14278 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14281 LIBPMULTITHREAD
=-lc_r
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14288 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14290 $as_echo "$gl_pthread_api" >&6; }
14293 if test $gl_pthread_api = yes; then
14295 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14310 if ac_fn_c_try_link
"$LINENO"; then :
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14315 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14316 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14317 $as_echo_n "(cached) " >&6
14319 ac_check_lib_save_LIBS
=$LIBS
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14330 char sched_yield ();
14334 return sched_yield ();
14339 if ac_fn_c_try_link
"$LINENO"; then :
14340 ac_cv_lib_rt_sched_yield
=yes
14342 ac_cv_lib_rt_sched_yield
=no
14344 rm -f core conftest.err conftest.
$ac_objext \
14345 conftest
$ac_exeext conftest.
$ac_ext
14346 LIBS
=$ac_check_lib_save_LIBS
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14349 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14350 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14351 LIB_SCHED_YIELD
=-lrt
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14354 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14355 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14356 $as_echo_n "(cached) " >&6
14358 ac_check_lib_save_LIBS
=$LIBS
14359 LIBS
="-lposix4 $LIBS"
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14369 char sched_yield ();
14373 return sched_yield ();
14378 if ac_fn_c_try_link
"$LINENO"; then :
14379 ac_cv_lib_posix4_sched_yield
=yes
14381 ac_cv_lib_posix4_sched_yield
=no
14383 rm -f core conftest.err conftest.
$ac_objext \
14384 conftest
$ac_exeext conftest.
$ac_ext
14385 LIBS
=$ac_check_lib_save_LIBS
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14388 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14389 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14390 LIB_SCHED_YIELD
=-lposix4
14397 rm -f core conftest.err conftest.
$ac_objext \
14398 conftest
$ac_exeext conftest.
$ac_ext
14401 gl_pthreadlib_body_done
=done
14404 if test $ac_cv_header_threads_h = yes; then
14405 for ac_func
in thrd_create
14407 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14408 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14409 cat >>confdefs.h
<<_ACEOF
14410 #define HAVE_THRD_CREATE 1
14416 if test $ac_cv_func_thrd_create = yes; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14420 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14421 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14424 ac_check_lib_save_LIBS
=$LIBS
14425 LIBS
="-lstdthreads $LIBS"
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14435 char thrd_create ();
14439 return thrd_create ();
14444 if ac_fn_c_try_link
"$LINENO"; then :
14445 ac_cv_lib_stdthreads_thrd_create
=yes
14447 ac_cv_lib_stdthreads_thrd_create
=no
14449 rm -f core conftest.err conftest.
$ac_objext \
14450 conftest
$ac_exeext conftest.
$ac_ext
14451 LIBS
=$ac_check_lib_save_LIBS
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14454 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14455 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14457 LIBSTDTHREAD
='-lstdthreads -lpthread'
14461 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14467 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14474 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14476 $as_echo "$ac_cv_header_threads_h" >&6; }
14477 gl_stdthreadlib_body_done
=done
14480 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14481 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14482 gl_threads_api
=isoc
14484 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14488 if test $gl_threads_api = none
; then
14489 case "$gl_use_threads" in
14490 yes | windows | win32
) # The 'win32' is for backward compatibility.
14491 if { case "$host_os" in
14496 gl_threads_api
=windows
14498 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14506 $as_echo_n "checking for multithread API to use... " >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14508 $as_echo "$gl_threads_api" >&6; }
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14522 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14523 if ${gl_cv_func_malloc_posix+:} false
; then :
14524 $as_echo_n "(cached) " >&6
14527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14533 #if defined _WIN32 && ! defined __CYGWIN__
14541 if ac_fn_c_try_compile
"$LINENO"; then :
14542 gl_cv_func_malloc_posix
=yes
14544 gl_cv_func_malloc_posix
=no
14546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14550 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14554 for ac_header
in stdlib.h
14556 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
14558 cat >>confdefs.h
<<_ACEOF
14559 #define HAVE_STDLIB_H 1
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14567 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14568 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14569 $as_echo_n "(cached) " >&6
14571 if test "$cross_compiling" = yes; then :
14573 # Guess yes on platforms where we know the result.
14574 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
14575 | hpux
* | solaris
* | cygwin
* | mingw
*)
14576 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
14577 # If we don't know, obey --enable-cross-guesses.
14578 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14585 # include <stdlib.h>
14593 char *p = malloc (0);
14602 if ac_fn_c_try_run
"$LINENO"; then :
14603 ac_cv_func_malloc_0_nonnull
=yes
14605 ac_cv_func_malloc_0_nonnull
=no
14607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14614 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14615 case "$ac_cv_func_malloc_0_nonnull" in
14617 gl_cv_func_malloc_0_nonnull
=1
14620 gl_cv_func_malloc_0_nonnull
=0
14625 cat >>confdefs.h
<<_ACEOF
14626 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14638 GNULIB_MBSRTOWCS
=0;
14639 GNULIB_MBSNRTOWCS
=0;
14641 GNULIB_WCSRTOMBS
=0;
14642 GNULIB_WCSNRTOMBS
=0;
14659 GNULIB_WCSCASECMP
=0;
14660 GNULIB_WCSNCASECMP
=0;
14698 HAVE_WCSNCASECMP
=1;
14712 HAVE_DECL_WCWIDTH
=1;
14713 REPLACE_MBSTATE_T
=0;
14719 REPLACE_MBSRTOWCS
=0;
14720 REPLACE_MBSNRTOWCS
=0;
14722 REPLACE_WCSRTOMBS
=0;
14723 REPLACE_WCSNRTOMBS
=0;
14725 REPLACE_WCSWIDTH
=0;
14726 REPLACE_WCSFTIME
=0;
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14737 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14738 if ${gt_cv_locale_ja+:} false
; then :
14739 $as_echo_n "(cached) " >&6
14742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14745 #include <locale.h>
14747 #if HAVE_LANGINFO_CODESET
14748 # include <langinfo.h>
14750 #include <stdlib.h>
14751 #include <string.h>
14756 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14757 imitates locale dependent behaviour by looking at the environment
14758 variables, and all locales use the UTF-8 encoding. */
14759 #if defined __BEOS__ || defined __HAIKU__
14762 /* Check whether the given locale name is recognized by the system. */
14763 # if defined _WIN32 && !defined __CYGWIN__
14764 /* On native Windows, setlocale(category, "") looks at the system settings,
14765 not at the environment variables. Also, when an encoding suffix such
14766 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14767 category of the locale to "C". */
14768 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14769 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14772 if (setlocale (LC_ALL, "") == NULL) return 1;
14774 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14775 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14776 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14777 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14778 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14779 some unit tests fail.
14780 On MirBSD 10, when an unsupported locale is specified, setlocale()
14781 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14782 # if HAVE_LANGINFO_CODESET
14784 const char *cs = nl_langinfo (CODESET);
14785 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14786 || strcmp (cs, "UTF-8") == 0)
14791 /* On Cygwin, avoid locale names without encoding suffix, because the
14792 locale_charset() function relies on the encoding suffix. Note that
14793 LC_ALL is set on the command line. */
14794 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14796 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14797 on Cygwin 1.5.x. */
14798 if (MB_CUR_MAX == 1)
14800 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14801 This excludes the UTF-8 encoding (except on MirBSD). */
14804 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14805 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14806 for (p = buf; *p != '\0'; p++)
14807 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14816 (eval $ac_link) 2>&5
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14821 # Handle native Windows specially, because there setlocale() interprets
14822 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14823 # "fr" or "fra" as "French" or "French_France.1252",
14824 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14825 # "ja" as "Japanese" or "Japanese_Japan.932",
14828 # Note that on native Windows, the Japanese locale is
14829 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14830 # cannot use it here.
14831 gt_cv_locale_ja
=none
14834 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14835 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14836 # configure script would override the LC_ALL setting. Likewise for
14837 # LC_CTYPE, which is also set at the beginning of the configure script.
14838 # Test for the AIX locale name.
14839 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14840 gt_cv_locale_ja
=ja_JP
14842 # Test for the locale name with explicit encoding suffix.
14843 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14844 gt_cv_locale_ja
=ja_JP.EUC-JP
14846 # Test for the HP-UX, OSF/1, NetBSD locale name.
14847 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14848 gt_cv_locale_ja
=ja_JP.eucJP
14850 # Test for the IRIX, FreeBSD locale name.
14851 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14852 gt_cv_locale_ja
=ja_JP.EUC
14854 # Test for the Solaris 7 locale name.
14855 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14858 # Special test for NetBSD 1.6.
14859 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14860 gt_cv_locale_ja
=ja_JP.eucJP
14863 gt_cv_locale_ja
=none
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14877 $as_echo "$gt_cv_locale_ja" >&6; }
14878 LOCALE_JA
=$gt_cv_locale_ja
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14884 $as_echo_n "checking for a french Unicode locale... " >&6; }
14885 if ${gt_cv_locale_fr_utf8+:} false
; then :
14886 $as_echo_n "(cached) " >&6
14889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14892 #include <locale.h>
14894 #if HAVE_LANGINFO_CODESET
14895 # include <langinfo.h>
14897 #include <stdlib.h>
14898 #include <string.h>
14902 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14903 imitates locale dependent behaviour by looking at the environment
14904 variables, and all locales use the UTF-8 encoding. */
14905 #if !(defined __BEOS__ || defined __HAIKU__)
14906 /* Check whether the given locale name is recognized by the system. */
14907 # if defined _WIN32 && !defined __CYGWIN__
14908 /* On native Windows, setlocale(category, "") looks at the system settings,
14909 not at the environment variables. Also, when an encoding suffix such
14910 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14911 category of the locale to "C". */
14912 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14913 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14916 if (setlocale (LC_ALL, "") == NULL) return 1;
14918 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14919 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14920 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14921 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14922 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14923 some unit tests fail. */
14924 # if HAVE_LANGINFO_CODESET
14926 const char *cs = nl_langinfo (CODESET);
14927 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14932 /* On Cygwin, avoid locale names without encoding suffix, because the
14933 locale_charset() function relies on the encoding suffix. Note that
14934 LC_ALL is set on the command line. */
14935 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14937 /* Check whether in the abbreviation of the second month, the second
14938 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14939 two bytes long, with UTF-8 encoding. */
14940 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14941 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14942 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14945 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14946 /* Check whether the decimal separator is a comma.
14947 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14948 are nl_langinfo(RADIXCHAR) are both ".". */
14949 if (localeconv () ->decimal_point[0] != ',') return 1;
14955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14956 (eval $ac_link) 2>&5
14958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14959 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14961 # Handle native Windows specially, because there setlocale() interprets
14962 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14963 # "fr" or "fra" as "French" or "French_France.1252",
14964 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14965 # "ja" as "Japanese" or "Japanese_Japan.932",
14968 # Test for the hypothetical native Windows locale name.
14969 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14970 gt_cv_locale_fr_utf8
=French_France
.65001
14973 gt_cv_locale_fr_utf8
=none
14977 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14978 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14979 # configure script would override the LC_ALL setting. Likewise for
14980 # LC_CTYPE, which is also set at the beginning of the configure script.
14981 # Test for the usual locale name.
14982 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14983 gt_cv_locale_fr_utf8
=fr_FR
14985 # Test for the locale name with explicit encoding suffix.
14986 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14987 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14989 # Test for the Solaris 7 locale name.
14990 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14991 gt_cv_locale_fr_utf8
=fr.UTF-8
14994 gt_cv_locale_fr_utf8
=none
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15005 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15006 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15013 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15014 if ${gt_cv_locale_zh_CN+:} false
; then :
15015 $as_echo_n "(cached) " >&6
15018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15021 #include <locale.h>
15022 #include <stdlib.h>
15024 #if HAVE_LANGINFO_CODESET
15025 # include <langinfo.h>
15027 #include <stdlib.h>
15028 #include <string.h>
15033 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15034 imitates locale dependent behaviour by looking at the environment
15035 variables, and all locales use the UTF-8 encoding. */
15036 #if defined __BEOS__ || defined __HAIKU__
15039 /* Check whether the given locale name is recognized by the system. */
15040 # if defined _WIN32 && !defined __CYGWIN__
15041 /* On native Windows, setlocale(category, "") looks at the system settings,
15042 not at the environment variables. Also, when an encoding suffix such
15043 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15044 category of the locale to "C". */
15045 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15046 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15049 if (setlocale (LC_ALL, "") == NULL) return 1;
15051 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15052 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15053 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15054 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15055 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15056 some unit tests fail.
15057 On MirBSD 10, when an unsupported locale is specified, setlocale()
15058 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15059 # if HAVE_LANGINFO_CODESET
15061 const char *cs = nl_langinfo (CODESET);
15062 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15063 || strcmp (cs, "UTF-8") == 0)
15068 /* On Cygwin, avoid locale names without encoding suffix, because the
15069 locale_charset() function relies on the encoding suffix. Note that
15070 LC_ALL is set on the command line. */
15071 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15073 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15074 This excludes the UTF-8 encoding (except on MirBSD). */
15077 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15078 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15079 for (p = buf; *p != '\0'; p++)
15080 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15083 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15084 single wide character. This excludes the GB2312 and GBK encodings. */
15085 if (mblen ("\203\062\332\066", 5) != 4)
15092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15093 (eval $ac_link) 2>&5
15095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15096 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15098 # Handle native Windows specially, because there setlocale() interprets
15099 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15100 # "fr" or "fra" as "French" or "French_France.1252",
15101 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15102 # "ja" as "Japanese" or "Japanese_Japan.932",
15105 # Test for the hypothetical native Windows locale name.
15106 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15107 gt_cv_locale_zh_CN
=Chinese_China
.54936
15110 gt_cv_locale_zh_CN
=none
15114 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15115 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15116 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15117 gt_cv_locale_zh_CN
=none
15120 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15121 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15122 # configure script would override the LC_ALL setting. Likewise for
15123 # LC_CTYPE, which is also set at the beginning of the configure script.
15124 # Test for the locale name without encoding suffix.
15125 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15126 gt_cv_locale_zh_CN
=zh_CN
15128 # Test for the locale name with explicit encoding suffix.
15129 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15130 gt_cv_locale_zh_CN
=zh_CN.GB18030
15133 gt_cv_locale_zh_CN
=none
15139 # If there was a link error, due to mblen(), the system is so old that
15140 # it certainly doesn't have a chinese locale.
15141 gt_cv_locale_zh_CN
=none
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15147 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15148 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15152 $as_echo_n "checking for inline... " >&6; }
15153 if ${ac_cv_c_inline+:} false
; then :
15154 $as_echo_n "(cached) " >&6
15157 for ac_kw
in inline __inline__ __inline
; do
15158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #ifndef __cplusplus
15162 static $ac_kw foo_t static_foo () {return 0; }
15163 $ac_kw foo_t foo () {return 0; }
15167 if ac_fn_c_try_compile
"$LINENO"; then :
15168 ac_cv_c_inline
=$ac_kw
15170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15171 test "$ac_cv_c_inline" != no
&& break
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15176 $as_echo "$ac_cv_c_inline" >&6; }
15178 case $ac_cv_c_inline in
15181 case $ac_cv_c_inline in
15183 *) ac_val
=$ac_cv_c_inline;;
15185 cat >>confdefs.h
<<_ACEOF
15186 #ifndef __cplusplus
15187 #define inline $ac_val
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
15197 $as_echo_n "checking for a traditional french locale... " >&6; }
15198 if ${gt_cv_locale_fr+:} false
; then :
15199 $as_echo_n "(cached) " >&6
15202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 #include <locale.h>
15207 #if HAVE_LANGINFO_CODESET
15208 # include <langinfo.h>
15210 #include <stdlib.h>
15211 #include <string.h>
15215 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15216 imitates locale dependent behaviour by looking at the environment
15217 variables, and all locales use the UTF-8 encoding. */
15218 #if defined __BEOS__ || defined __HAIKU__
15221 /* Check whether the given locale name is recognized by the system. */
15222 # if defined _WIN32 && !defined __CYGWIN__
15223 /* On native Windows, setlocale(category, "") looks at the system settings,
15224 not at the environment variables. Also, when an encoding suffix such
15225 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15226 category of the locale to "C". */
15227 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15228 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15231 if (setlocale (LC_ALL, "") == NULL) return 1;
15233 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15234 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15235 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15236 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15237 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15238 some unit tests fail.
15239 On MirBSD 10, when an unsupported locale is specified, setlocale()
15240 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15241 # if HAVE_LANGINFO_CODESET
15243 const char *cs = nl_langinfo (CODESET);
15244 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15245 || strcmp (cs, "UTF-8") == 0)
15250 /* On Cygwin, avoid locale names without encoding suffix, because the
15251 locale_charset() function relies on the encoding suffix. Note that
15252 LC_ALL is set on the command line. */
15253 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15255 /* Check whether in the abbreviation of the second month, the second
15256 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
15257 one byte long. This excludes the UTF-8 encoding. */
15258 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15259 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
15260 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15261 /* Check whether the decimal separator is a comma.
15262 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15263 are nl_langinfo(RADIXCHAR) are both ".". */
15264 if (localeconv () ->decimal_point[0] != ',') return 1;
15271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15272 (eval $ac_link) 2>&5
15274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15275 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15277 # Handle native Windows specially, because there setlocale() interprets
15278 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15279 # "fr" or "fra" as "French" or "French_France.1252",
15280 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15281 # "ja" as "Japanese" or "Japanese_Japan.932",
15284 # Test for the native Windows locale name.
15285 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15286 gt_cv_locale_fr
=French_France
.1252
15289 gt_cv_locale_fr
=none
15293 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15294 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15295 # configure script would override the LC_ALL setting. Likewise for
15296 # LC_CTYPE, which is also set at the beginning of the configure script.
15297 # Test for the usual locale name.
15298 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15299 gt_cv_locale_fr
=fr_FR
15301 # Test for the locale name with explicit encoding suffix.
15302 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15303 gt_cv_locale_fr
=fr_FR.ISO-8859-1
15305 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
15306 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15307 gt_cv_locale_fr
=fr_FR.ISO8859-1
15309 # Test for the HP-UX locale name.
15310 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15311 gt_cv_locale_fr
=fr_FR.iso88591
15313 # Test for the Solaris 7 locale name.
15314 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15318 gt_cv_locale_fr
=none
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
15331 $as_echo "$gt_cv_locale_fr" >&6; }
15332 LOCALE_FR
=$gt_cv_locale_fr
15340 GNULIB_EXPLICIT_BZERO
=0;
15347 GNULIB_RAWMEMCHR
=0;
15350 GNULIB_STRCHRNUL
=0;
15358 GNULIB_STRCASESTR
=0;
15365 GNULIB_MBSCASECMP
=0;
15366 GNULIB_MBSNCASECMP
=0;
15367 GNULIB_MBSPCASECMP
=0;
15368 GNULIB_MBSCASESTR
=0;
15375 GNULIB_STRERROR_R
=0;
15376 GNULIB_STRSIGNAL
=0;
15377 GNULIB_STRVERSCMP
=0;
15379 HAVE_EXPLICIT_BZERO
=1;
15383 HAVE_DECL_MEMMEM
=1;
15385 HAVE_DECL_MEMRCHR
=1;
15390 HAVE_DECL_STRDUP
=1;
15391 HAVE_DECL_STRNDUP
=1;
15392 HAVE_DECL_STRNLEN
=1;
15396 HAVE_DECL_STRTOK_R
=1;
15397 HAVE_DECL_STRERROR_R
=1;
15398 HAVE_DECL_STRSIGNAL
=1;
15403 REPLACE_STRCHRNUL
=0;
15409 REPLACE_STRCASESTR
=0;
15410 REPLACE_STRTOK_R
=0;
15411 REPLACE_STRERROR
=0;
15412 REPLACE_STRERROR_R
=0;
15413 REPLACE_STRSIGNAL
=0;
15414 UNDEFINE_STRTOK_R
=0;
15421 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15422 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15423 # irrelevant for anonymous mappings.
15424 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15425 if test "x$ac_cv_func_mmap" = xyes
; then :
15432 # Try to allow MAP_ANONYMOUS.
15433 gl_have_mmap_anonymous
=no
15434 if test $gl_have_mmap = yes; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15436 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15440 #include <sys/mman.h>
15441 #ifdef MAP_ANONYMOUS
15442 I cannot identify this map
15446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15447 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15448 gl_have_mmap_anonymous
=yes
15452 if test $gl_have_mmap_anonymous != yes; then
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15456 #include <sys/mman.h>
15458 I cannot identify this map
15462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15463 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15465 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15467 gl_have_mmap_anonymous
=yes
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15473 $as_echo "$gl_have_mmap_anonymous" >&6; }
15474 if test $gl_have_mmap_anonymous = yes; then
15476 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15486 if test $HAVE_MEMCHR = 1; then
15487 # Detect platform-specific bugs in some versions of glibc:
15488 # memchr should not dereference anything with length 0
15489 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15490 # memchr should not dereference overestimated length after a match
15491 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15492 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15493 # memchr should cast the second argument to 'unsigned char'.
15494 # This bug exists in Android 4.3.
15495 # Assume that memchr works on platforms that lack mprotect.
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15497 $as_echo_n "checking whether memchr works... " >&6; }
15498 if ${gl_cv_func_memchr_works+:} false
; then :
15499 $as_echo_n "(cached) " >&6
15501 if test "$cross_compiling" = yes; then :
15503 # Guess no on Android.
15504 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15505 # Guess yes on native Windows.
15506 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15507 # If we don't know, obey --enable-cross-guesses.
15508 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 #include <string.h>
15516 #if HAVE_SYS_MMAN_H
15517 # include <fcntl.h>
15518 # include <unistd.h>
15519 # include <sys/types.h>
15520 # include <sys/mman.h>
15522 # define MAP_FILE 0
15531 char *fence = NULL;
15532 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15533 # if HAVE_MAP_ANONYMOUS
15534 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15536 # else /* !HAVE_MAP_ANONYMOUS */
15537 const int flags = MAP_FILE | MAP_PRIVATE;
15538 int fd = open ("/dev/zero", O_RDONLY, 0666);
15542 int pagesize = getpagesize ();
15544 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15546 if (two_pages != (char *)(-1)
15547 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15548 fence = two_pages + pagesize;
15553 if (memchr (fence, 0, 0))
15555 strcpy (fence - 9, "12345678");
15556 if (memchr (fence - 9, 0, 79) != fence - 1)
15558 if (memchr (fence - 1, 0, 3) != fence - 1)
15561 /* Test against bug on Android 4.3. */
15567 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15576 if ac_fn_c_try_run
"$LINENO"; then :
15577 gl_cv_func_memchr_works
=yes
15579 gl_cv_func_memchr_works
=no
15581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15588 $as_echo "$gl_cv_func_memchr_works" >&6; }
15589 case "$gl_cv_func_memchr_works" in
15591 *) REPLACE_MEMCHR
=1 ;;
15595 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15596 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15602 cat >>confdefs.h
<<_ACEOF
15603 #define HAVE_DECL_MEMMEM $ac_have_decl
15610 for ac_func
in memmem
15612 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15613 if test "x$ac_cv_func_memmem" = xyes
; then :
15614 cat >>confdefs.h
<<_ACEOF
15615 #define HAVE_MEMMEM 1
15621 if test $ac_cv_func_memmem = yes; then
15627 if test $ac_cv_have_decl_memmem = no
; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15631 $as_echo_n "checking whether memmem works... " >&6; }
15632 if ${gl_cv_func_memmem_works_always+:} false
; then :
15633 $as_echo_n "(cached) " >&6
15635 if test "$cross_compiling" = yes; then :
15636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15639 #ifdef __GNU_LIBRARY__
15640 #include <features.h>
15641 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15642 || __GLIBC_MINOR__ > 12)) \
15643 || (__GLIBC__ > 2)) \
15644 || defined __UCLIBC__
15647 #elif defined __CYGWIN__
15648 #include <cygwin/version.h>
15649 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15658 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15659 gl_cv_func_memmem_works_always
="guessing yes"
15661 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 #include <string.h> /* for memmem */
15671 #define P "_EF_BF_BD"
15672 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15673 #define NEEDLE P P P P P
15680 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15682 /* Check for empty needle behavior. */
15684 const char *haystack = "AAA";
15685 if (memmem (haystack, 3, NULL, 0) != haystack)
15694 if ac_fn_c_try_run
"$LINENO"; then :
15695 gl_cv_func_memmem_works_always
=yes
15697 gl_cv_func_memmem_works_always
=no
15699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15706 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15707 case "$gl_cv_func_memmem_works_always" in
15716 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15717 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15723 cat >>confdefs.h
<<_ACEOF
15724 #define HAVE_DECL_MEMRCHR $ac_have_decl
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15734 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15735 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
15736 $as_echo_n "(cached) " >&6
15738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15753 if ac_fn_c_try_compile
"$LINENO"; then :
15754 gl_cv_macro_O_CLOEXEC
=yes
15756 gl_cv_macro_O_CLOEXEC
=no
15758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15761 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15766 $as_echo_n "checking for promoted mode_t type... " >&6; }
15767 if ${gl_cv_promoted_mode_t+:} false
; then :
15768 $as_echo_n "(cached) " >&6
15771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773 #include <sys/types.h>
15777 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15782 if ac_fn_c_try_compile
"$LINENO"; then :
15783 gl_cv_promoted_mode_t
='int'
15785 gl_cv_promoted_mode_t
='mode_t'
15787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15791 $as_echo "$gl_cv_promoted_mode_t" >&6; }
15793 cat >>confdefs.h
<<_ACEOF
15794 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
15809 GNULIB_FPRINTF_POSIX
=0;
15825 GNULIB_OBSTACK_PRINTF
=0;
15826 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15831 GNULIB_PRINTF_POSIX
=0;
15840 GNULIB_SPRINTF_POSIX
=0;
15841 GNULIB_STDIO_H_NONBLOCKING
=0;
15842 GNULIB_STDIO_H_SIGPIPE
=0;
15844 GNULIB_VASPRINTF
=0;
15849 GNULIB_VFPRINTF_POSIX
=0;
15851 GNULIB_VPRINTF_POSIX
=0;
15852 GNULIB_VSNPRINTF
=0;
15853 GNULIB_VSPRINTF_POSIX
=0;
15854 HAVE_DECL_FPURGE
=1;
15855 HAVE_DECL_FSEEKO
=1;
15856 HAVE_DECL_FTELLO
=1;
15857 HAVE_DECL_GETDELIM
=1;
15858 HAVE_DECL_GETLINE
=1;
15859 HAVE_DECL_OBSTACK_PRINTF
=1;
15860 HAVE_DECL_SNPRINTF
=1;
15861 HAVE_DECL_VSNPRINTF
=1;
15882 REPLACE_GETDELIM
=0;
15884 REPLACE_OBSTACK_PRINTF
=0;
15890 REPLACE_RENAMEAT
=0;
15891 REPLACE_SNPRINTF
=0;
15893 REPLACE_STDIO_READ_FUNCS
=0;
15894 REPLACE_STDIO_WRITE_FUNCS
=0;
15896 REPLACE_VASPRINTF
=0;
15897 REPLACE_VDPRINTF
=0;
15898 REPLACE_VFPRINTF
=0;
15900 REPLACE_VSNPRINTF
=0;
15901 REPLACE_VSPRINTF
=0;
15905 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
15906 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15912 cat >>confdefs.h
<<_ACEOF
15913 #define HAVE_DECL_SETENV $ac_have_decl
15921 if test $ac_cv_have_decl_setenv = no
; then
15929 for ac_header
in search.h
15931 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15932 if test "x$ac_cv_header_search_h" = xyes
; then :
15933 cat >>confdefs.h
<<_ACEOF
15934 #define HAVE_SEARCH_H 1
15941 for ac_func
in tsearch
15943 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15944 if test "x$ac_cv_func_tsearch" = xyes
; then :
15945 cat >>confdefs.h
<<_ACEOF
15946 #define HAVE_TSEARCH 1
15955 GNULIB_PTHREAD_SIGMASK
=0;
15957 GNULIB_SIGNAL_H_SIGPIPE
=0;
15958 GNULIB_SIGPROCMASK
=0;
15959 GNULIB_SIGACTION
=0;
15960 HAVE_POSIX_SIGNALBLOCKING
=1;
15961 HAVE_PTHREAD_SIGMASK
=1;
15966 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15968 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15970 HAVE_SIGHANDLER_T
=1;
15971 REPLACE_PTHREAD_SIGMASK
=0;
15975 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15976 #include <signal.h>
15977 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15978 #include <sys/types.h>
15981 if test "x$ac_cv_type_sigset_t" = xyes
; then :
15983 cat >>confdefs.h
<<_ACEOF
15984 #define HAVE_SIGSET_T 1
15987 gl_cv_type_sigset_t
=yes
15989 gl_cv_type_sigset_t
=no
15992 if test $gl_cv_type_sigset_t != yes; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15997 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15998 if ${ac_cv_type_uid_t+:} false
; then :
15999 $as_echo_n "(cached) " >&6
16001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 #include <sys/types.h>
16006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16007 $EGREP "uid_t" >/dev
/null
2>&1; then :
16008 ac_cv_type_uid_t
=yes
16010 ac_cv_type_uid_t
=no
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16016 $as_echo "$ac_cv_type_uid_t" >&6; }
16017 if test $ac_cv_type_uid_t = no
; then
16019 $as_echo "#define uid_t int" >>confdefs.h
16022 $as_echo "#define gid_t int" >>confdefs.h
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16027 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16028 if ${ac_cv_header_stdbool_h+:} false
; then :
16029 $as_echo_n "(cached) " >&6
16031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16034 #include <stdbool.h>
16039 typedef _Bool Bool;
16041 "error: bool is not defined"
16044 "error: false is not defined"
16047 "error: false is not 0"
16050 "error: true is not defined"
16053 "error: true is not 1"
16057 #ifndef __bool_true_false_are_defined
16058 "error: __bool_true_false_are_defined is not defined"
16061 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16063 char a[true == 1 ? 1 : -1];
16064 char b[false == 0 ? 1 : -1];
16065 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16066 char d[(bool) 0.5 == true ? 1 : -1];
16067 /* See body of main program for 'e'. */
16068 char f[(Bool) 0.0 == false ? 1 : -1];
16070 char h[sizeof (Bool)];
16071 char i[sizeof s.t];
16072 enum { j = false, k = true, l = false * true, m = true * 256 };
16073 /* The following fails for
16074 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16076 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16077 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16078 /* Catch a bug in an HP-UX C compiler. See
16079 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16080 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16091 *pq |= q; *pq |= ! q;
16092 *qq |= q; *qq |= ! q;
16093 /* Refer to every declared value, to avoid compiler optimizations. */
16094 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16095 + !m + !n + !o + !p + !q + !pq + !qq);
16101 if ac_fn_c_try_compile
"$LINENO"; then :
16102 ac_cv_header_stdbool_h
=yes
16104 ac_cv_header_stdbool_h
=no
16106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16109 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16110 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16111 if test "x$ac_cv_type__Bool" = xyes
; then :
16113 cat >>confdefs.h
<<_ACEOF
16114 #define HAVE__BOOL 1
16123 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16124 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16130 cat >>confdefs.h
<<_ACEOF
16131 #define HAVE_DECL_STRDUP $ac_have_decl
16135 REPLACE_STRERROR_0
=0
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16137 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16138 if ${gl_cv_func_strerror_0_works+:} false
; then :
16139 $as_echo_n "(cached) " >&6
16141 if test "$cross_compiling" = yes; then :
16143 # Guess yes on glibc systems.
16144 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16145 # Guess yes on musl systems.
16146 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16147 # Guess yes on native Windows.
16148 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16149 # If we don't know, obey --enable-cross-guesses.
16150 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #include <string.h>
16165 str = strerror (0);
16166 if (!*str) result |= 1;
16167 if (errno) result |= 2;
16168 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16175 if ac_fn_c_try_run
"$LINENO"; then :
16176 gl_cv_func_strerror_0_works
=yes
16178 gl_cv_func_strerror_0_works
=no
16180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16187 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16188 case "$gl_cv_func_strerror_0_works" in
16191 REPLACE_STRERROR_0
=1
16193 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16207 if test $ac_cv_func_strerror_r = yes; then
16208 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16210 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16211 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16212 $as_echo_n "(cached) " >&6
16214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <string.h>
16217 int strerror_r (int, char *, size_t);
16227 if ac_fn_c_try_compile
"$LINENO"; then :
16228 gl_cv_func_strerror_r_posix_signature
=yes
16230 gl_cv_func_strerror_r_posix_signature
=no
16232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16236 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16237 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16239 $as_echo_n "checking whether strerror_r works... " >&6; }
16240 if ${gl_cv_func_strerror_r_works+:} false
; then :
16241 $as_echo_n "(cached) " >&6
16243 if test "$cross_compiling" = yes; then :
16247 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16248 # Guess no on HP-UX.
16249 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16250 # Guess no on BSD variants.
16251 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16252 # Guess yes otherwise.
16253 *) gl_cv_func_strerror_r_works
="guessing yes";;
16257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16260 #include <string.h>
16267 if (strerror_r (EACCES, buf, 0) < 0)
16270 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16272 strcpy (buf, "Unknown");
16273 if (strerror_r (0, buf, sizeof buf) != 0)
16277 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16281 if (strerror_r (-3, buf, sizeof buf) < 0)
16293 if ac_fn_c_try_run
"$LINENO"; then :
16294 gl_cv_func_strerror_r_works
=yes
16296 gl_cv_func_strerror_r_works
=no
16298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16305 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16308 if test $ac_cv_func___xpg_strerror_r = yes; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16310 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16311 if ${gl_cv_func_strerror_r_works+:} false
; then :
16312 $as_echo_n "(cached) " >&6
16314 if test "$cross_compiling" = yes; then :
16315 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16321 #include <string.h>
16326 int __xpg_strerror_r(int, char *, size_t);
16332 char buf[256] = "^";
16334 char *str = strerror (-1);
16335 strcpy (copy, str);
16336 if (__xpg_strerror_r (-2, buf, 1) == 0)
16340 __xpg_strerror_r (-2, buf, 256);
16341 if (strcmp (str, copy))
16349 if ac_fn_c_try_run
"$LINENO"; then :
16350 gl_cv_func_strerror_r_works
=yes
16352 gl_cv_func_strerror_r_works
=no
16354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16361 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16367 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16368 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16374 cat >>confdefs.h
<<_ACEOF
16375 #define HAVE_DECL_STRERROR_R $ac_have_decl
16393 if test $gl_cv_have_include_next = yes; then
16394 gl_cv_next_string_h
='<'string.h
'>'
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16397 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16398 if ${gl_cv_next_string_h+:} false
; then :
16399 $as_echo_n "(cached) " >&6
16404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406 #include <string.h>
16409 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16410 *) gl_absname_cpp
="$ac_cpp" ;;
16415 gl_dirsep_regex
='[/\\]'
16418 gl_dirsep_regex
='\/'
16421 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16422 gl_header_literal_regex
=`echo 'string.h' \
16423 | sed -e "$gl_make_literal_regex_sed"`
16424 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16425 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16431 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16432 sed -n "$gl_absolute_header_sed"`
16434 gl_header
=$gl_cv_absolute_string_h
16435 gl_cv_next_string_h
='"'$gl_header'"'
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16440 $as_echo "$gl_cv_next_string_h" >&6; }
16442 NEXT_STRING_H
=$gl_cv_next_string_h
16444 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16445 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16446 gl_next_as_first_directive
='<'string.h
'>'
16448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16449 gl_next_as_first_directive
=$gl_cv_next_string_h
16451 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16464 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16468 $as_echo_n "checking whether strstr works... " >&6; }
16469 if ${gl_cv_func_strstr_works_always+:} false
; then :
16470 $as_echo_n "(cached) " >&6
16472 if test "$cross_compiling" = yes; then :
16473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16476 #ifdef __GNU_LIBRARY__
16477 #include <features.h>
16478 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16479 || defined __UCLIBC__
16482 #elif defined __CYGWIN__
16483 #include <cygwin/version.h>
16484 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16493 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16494 gl_cv_func_strstr_works_always
="guessing yes"
16496 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16505 #include <string.h> /* for strstr */
16506 #ifdef __GNU_LIBRARY__
16507 #include <features.h>
16508 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16512 #define P "_EF_BF_BD"
16513 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16514 #define NEEDLE P P P P P
16519 return !!strstr (HAYSTACK, NEEDLE);
16525 if ac_fn_c_try_run
"$LINENO"; then :
16526 gl_cv_func_strstr_works_always
=yes
16528 gl_cv_func_strstr_works_always
=no
16530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16537 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16538 case "$gl_cv_func_strstr_works_always" in
16546 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16547 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16553 cat >>confdefs.h
<<_ACEOF
16554 #define HAVE_DECL_STRTOK_R $ac_have_decl
16567 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16579 if test $gl_cv_have_include_next = yes; then
16580 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16583 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16584 if ${gl_cv_next_sys_types_h+:} false
; then :
16585 $as_echo_n "(cached) " >&6
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 #include <sys/types.h>
16595 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16596 *) gl_absname_cpp
="$ac_cpp" ;;
16601 gl_dirsep_regex
='[/\\]'
16604 gl_dirsep_regex
='\/'
16607 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16608 gl_header_literal_regex
=`echo 'sys/types.h' \
16609 | sed -e "$gl_make_literal_regex_sed"`
16610 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16611 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16617 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16618 sed -n "$gl_absolute_header_sed"`
16620 gl_header
=$gl_cv_absolute_sys_types_h
16621 gl_cv_next_sys_types_h
='"'$gl_header'"'
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16626 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16628 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16630 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16632 gl_next_as_first_directive
='<'sys
/types.h
'>'
16634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16635 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16637 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16650 WINDOWS_STAT_INODES
=0
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16661 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16662 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16663 $as_echo_n "(cached) " >&6
16665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16672 static struct timespec x; x.tv_sec = x.tv_nsec;
16677 if ac_fn_c_try_compile
"$LINENO"; then :
16678 gl_cv_sys_struct_timespec_in_time_h
=yes
16680 gl_cv_sys_struct_timespec_in_time_h
=no
16682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16685 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16687 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16688 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16689 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16690 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16691 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16692 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16695 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16696 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16697 $as_echo_n "(cached) " >&6
16699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 #include <sys/time.h>
16706 static struct timespec x; x.tv_sec = x.tv_nsec;
16711 if ac_fn_c_try_compile
"$LINENO"; then :
16712 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16714 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16719 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16720 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16721 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16724 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16725 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
16726 $as_echo_n "(cached) " >&6
16728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 #include <pthread.h>
16735 static struct timespec x; x.tv_sec = x.tv_nsec;
16740 if ac_fn_c_try_compile
"$LINENO"; then :
16741 gl_cv_sys_struct_timespec_in_pthread_h
=yes
16743 gl_cv_sys_struct_timespec_in_pthread_h
=no
16745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16748 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16749 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
16753 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
16754 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
16755 $as_echo_n "(cached) " >&6
16757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759 #include <unistd.h>
16764 static struct timespec x; x.tv_sec = x.tv_nsec;
16769 if ac_fn_c_try_compile
"$LINENO"; then :
16770 gl_cv_sys_struct_timespec_in_unistd_h
=yes
16772 gl_cv_sys_struct_timespec_in_unistd_h
=no
16774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
16777 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
16778 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
16779 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16800 if test $gl_cv_have_include_next = yes; then
16801 gl_cv_next_time_h
='<'time.h
'>'
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16804 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16805 if ${gl_cv_next_time_h+:} false
; then :
16806 $as_echo_n "(cached) " >&6
16811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16816 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16817 *) gl_absname_cpp
="$ac_cpp" ;;
16822 gl_dirsep_regex
='[/\\]'
16825 gl_dirsep_regex
='\/'
16828 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16829 gl_header_literal_regex
=`echo 'time.h' \
16830 | sed -e "$gl_make_literal_regex_sed"`
16831 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16838 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16839 sed -n "$gl_absolute_header_sed"`
16841 gl_header
=$gl_cv_absolute_time_h
16842 gl_cv_next_time_h
='"'$gl_header'"'
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16847 $as_echo "$gl_cv_next_time_h" >&6; }
16849 NEXT_TIME_H
=$gl_cv_next_time_h
16851 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16853 gl_next_as_first_directive
='<'time.h
'>'
16855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16856 gl_next_as_first_directive
=$gl_cv_next_time_h
16858 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16869 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16870 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16876 cat >>confdefs.h
<<_ACEOF
16877 #define HAVE_DECL_UNSETENV $ac_have_decl
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16882 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16883 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
16884 $as_echo_n "(cached) " >&6
16886 gl_cv_header_wchar_h_correct_inline
=yes
16887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16890 #define wcstod renamed_wcstod
16891 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16893 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16894 included before <wchar.h>. */
16895 #include <stddef.h>
16899 extern int zero (void);
16900 int main () { return zero(); }
16903 save_ac_compile
="$ac_compile"
16904 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16905 if echo '#include "conftest.c"' >conftest1.c
&&
16906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16907 (eval $ac_compile) 2>&5
16909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16910 test $ac_status = 0; }; then
16911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16914 #define wcstod renamed_wcstod
16915 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16917 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16918 included before <wchar.h>. */
16919 #include <stddef.h>
16923 int zero (void) { return 0; }
16926 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16927 if echo '#include "conftest.c"' >conftest2.c
&&
16928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16929 (eval $ac_compile) 2>&5
16931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16932 test $ac_status = 0; }; then
16933 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
16936 gl_cv_header_wchar_h_correct_inline
=no
16940 ac_compile
="$save_ac_compile"
16941 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16945 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
16946 if test $gl_cv_header_wchar_h_correct_inline = no
; then
16947 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16948 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16949 C99 mode. You have four options:
16950 - Add the flag -fgnu89-inline to CC and reconfigure, or
16951 - Fix your include files, using parts of
16952 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16953 - Use a gcc version older than 4.3, or
16954 - Don't use the flags -std=c99 or -std=gnu99.
16955 Configuration aborted." "$LINENO" 5
16962 if test $ac_cv_header_crtdefs_h = yes; then
16972 GNULIB_ISWXDIGIT
=0;
16976 GNULIB_TOWCTRANS
=0;
16980 REPLACE_ISWBLANK
=0;
16981 REPLACE_ISWDIGIT
=0;
16982 REPLACE_ISWXDIGIT
=0;
16988 GL_COND_LIBTOOL_TRUE
=
16989 GL_COND_LIBTOOL_FALSE
='#'
16991 GL_COND_LIBTOOL_TRUE
='#'
16992 GL_COND_LIBTOOL_FALSE
=
16995 gl_cond_libtool
=false
16998 gl_m4_base
='import/m4'
17009 gl_source_base
='import'
17012 if test $ac_cv_func_alloca_works = no
; then
17016 # Define an additional variable used in the Makefile substitution.
17017 if test $ac_cv_working_alloca_h = yes; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17019 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17020 if ${gl_cv_rpl_alloca+:} false
; then :
17021 $as_echo_n "(cached) " >&6
17024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17027 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17033 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17034 gl_cv_rpl_alloca
=yes
17036 gl_cv_rpl_alloca
=no
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17043 $as_echo "$gl_cv_rpl_alloca" >&6; }
17044 if test $gl_cv_rpl_alloca = yes; then
17046 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17056 if test -n "$ALLOCA_H"; then
17057 GL_GENERATE_ALLOCA_H_TRUE
=
17058 GL_GENERATE_ALLOCA_H_FALSE
='#'
17060 GL_GENERATE_ALLOCA_H_TRUE
='#'
17061 GL_GENERATE_ALLOCA_H_FALSE
=
17065 if test $ac_cv_working_alloca_h = yes; then
17076 if test $ac_cv_header_arpa_inet_h = yes; then
17091 if test $gl_cv_have_include_next = yes; then
17092 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17095 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17096 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17097 $as_echo_n "(cached) " >&6
17100 if test $ac_cv_header_arpa_inet_h = yes; then
17105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107 #include <arpa/inet.h>
17110 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17111 *) gl_absname_cpp
="$ac_cpp" ;;
17116 gl_dirsep_regex
='[/\\]'
17119 gl_dirsep_regex
='\/'
17122 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17123 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17124 | sed -e "$gl_make_literal_regex_sed"`
17125 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17126 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17132 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17133 sed -n "$gl_absolute_header_sed"`
17135 gl_header
=$gl_cv_absolute_arpa_inet_h
17136 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17138 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17144 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17146 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17148 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17150 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17153 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17155 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17165 if test $ac_cv_header_sys_socket_h = yes; then
17168 if test $ac_cv_header_ws2tcpip_h = yes; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17184 $as_echo_n "checking for __builtin_expect... " >&6; }
17185 if ${gl_cv___builtin_expect+:} false
; then :
17186 $as_echo_n "(cached) " >&6
17188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17192 main (int argc, char **argv)
17194 argc = __builtin_expect (argc, 100);
17195 return argv[argc != 100][0];
17198 if ac_fn_c_try_link
"$LINENO"; then :
17199 gl_cv___builtin_expect
=yes
17201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 #include <builtins.h>
17206 main (int argc, char **argv)
17208 argc = __builtin_expect (argc, 100);
17209 return argv[argc != 100][0];
17212 if ac_fn_c_try_link
"$LINENO"; then :
17213 gl_cv___builtin_expect
="in <builtins.h>"
17215 gl_cv___builtin_expect
=no
17217 rm -f core conftest.err conftest.
$ac_objext \
17218 conftest
$ac_exeext conftest.
$ac_ext
17220 rm -f core conftest.err conftest.
$ac_objext \
17221 conftest
$ac_exeext conftest.
$ac_ext
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17224 $as_echo "$gl_cv___builtin_expect" >&6; }
17225 if test "$gl_cv___builtin_expect" = yes; then
17226 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17228 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17229 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17237 if test $ac_cv_func_canonicalize_file_name = no
; then
17238 HAVE_CANONICALIZE_FILE_NAME
=0
17239 if test $ac_cv_func_realpath = no
; then
17242 case "$gl_cv_func_realpath_works" in
17244 *) REPLACE_REALPATH
=1 ;;
17248 case "$gl_cv_func_realpath_works" in
17252 REPLACE_CANONICALIZE_FILE_NAME
=1
17258 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17267 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17272 cat >>confdefs.h
<<_ACEOF
17273 #define GNULIB_CANONICALIZE_LGPL 1
17282 GNULIB_CANONICALIZE_FILE_NAME
=1
17288 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17303 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17318 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
17325 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
17326 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
17327 $as_echo_n "(cached) " >&6
17329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17332 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17334 # include <unistd.h>
17336 #include <limits.h>
17337 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17338 # include <sys/param.h>
17340 #if !defined PATH_MAX && defined MAXPATHLEN
17341 # define PATH_MAX MAXPATHLEN
17345 # define PATH_MAX 1024
17347 #if defined _WIN32 && ! defined __CYGWIN__
17349 # define PATH_MAX 260
17353 have_arbitrary_file_name_length_limit
17356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17357 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17358 gl_cv_have_arbitrary_file_name_length_limit
=yes
17360 gl_cv_have_arbitrary_file_name_length_limit
=no
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17366 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17368 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17377 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17383 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17390 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17399 if test $ac_cv_header_sys_socket_h != yes; then
17400 for ac_header
in winsock2.h
17402 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17403 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17404 cat >>confdefs.h
<<_ACEOF
17405 #define HAVE_WINSOCK2_H 1
17413 if test "$ac_cv_header_winsock2_h" = yes; then
17415 UNISTD_H_HAVE_WINSOCK2_H
=1
17416 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17422 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17427 if test $REPLACE_CLOSE = 0; then
17431 if test $ac_cv_func_fchdir = no
; then
17435 if test $HAVE_FCHDIR = 0; then
17441 if test $REPLACE_CLOSE = 1; then
17450 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17464 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17471 for ac_func
in closedir
17473 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17474 if test "x$ac_cv_func_closedir" = xyes
; then :
17475 cat >>confdefs.h
<<_ACEOF
17476 #define HAVE_CLOSEDIR 1
17482 if test $ac_cv_func_closedir = no
; then
17489 if test $ac_cv_func_fchdir = no
; then
17493 if test $HAVE_FCHDIR = 0; then
17494 if test $HAVE_CLOSEDIR = 1; then
17499 case $host_os,$HAVE_CLOSEDIR in
17501 REPLACE_CLOSEDIR
=1;;
17504 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17513 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
17527 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
17532 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
17533 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
17534 $as_echo_n "(cached) " >&6
17536 if test "$cross_compiling" = yes; then :
17538 # Guess yes on glibc systems with Linux kernel.
17539 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17540 # Guess yes on musl systems with Linux kernel.
17541 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17542 # Guess no on native Windows.
17543 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
17544 # If we don't know, obey --enable-cross-guesses.
17545 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
17549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17551 #include <sys/types.h>
17552 #include <sys/stat.h>
17553 #include <dirent.h>
17558 DIR *dp = opendir (".");
17565 { closedir (dp); return 2; }
17566 if (lstat (e->d_name, &st) != 0)
17567 { closedir (dp); return 3; }
17568 if (e->d_ino != st.st_ino)
17569 { closedir (dp); return 4; }
17577 if ac_fn_c_try_run
"$LINENO"; then :
17578 gl_cv_struct_dirent_d_ino
=yes
17580 gl_cv_struct_dirent_d_ino
=no
17582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
17588 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
17589 case "$gl_cv_struct_dirent_d_ino" in
17592 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
17599 $as_echo_n "checking for d_type member in directory struct... " >&6; }
17600 if ${gl_cv_struct_dirent_d_type+:} false
; then :
17601 $as_echo_n "(cached) " >&6
17603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 #include <sys/types.h>
17607 #include <dirent.h>
17612 struct dirent dp; dp.d_type = 0;
17617 if ac_fn_c_try_link
"$LINENO"; then :
17618 gl_cv_struct_dirent_d_type
=yes
17620 gl_cv_struct_dirent_d_type
=no
17622 rm -f core conftest.err conftest.
$ac_objext \
17623 conftest
$ac_exeext conftest.
$ac_ext
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
17628 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
17629 if test $gl_cv_struct_dirent_d_type = yes; then
17631 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
17648 if test $gl_cv_have_include_next = yes; then
17649 gl_cv_next_dirent_h
='<'dirent.h
'>'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
17652 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
17653 if ${gl_cv_next_dirent_h+:} false
; then :
17654 $as_echo_n "(cached) " >&6
17657 if test $ac_cv_header_dirent_h = yes; then
17662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17664 #include <dirent.h>
17667 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17668 *) gl_absname_cpp
="$ac_cpp" ;;
17673 gl_dirsep_regex
='[/\\]'
17676 gl_dirsep_regex
='\/'
17679 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17680 gl_header_literal_regex
=`echo 'dirent.h' \
17681 | sed -e "$gl_make_literal_regex_sed"`
17682 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17683 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17689 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17690 sed -n "$gl_absolute_header_sed"`
17692 gl_header
=$gl_cv_absolute_dirent_h
17693 gl_cv_next_dirent_h
='"'$gl_header'"'
17695 gl_cv_next_dirent_h
='<'dirent.h
'>'
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
17701 $as_echo "$gl_cv_next_dirent_h" >&6; }
17703 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
17705 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17707 gl_next_as_first_directive
='<'dirent.h
'>'
17709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17710 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17712 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17717 if test $ac_cv_header_dirent_h = yes; then
17733 for ac_func
in dirfd
17735 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17736 if test "x$ac_cv_func_dirfd" = xyes
; then :
17737 cat >>confdefs.h
<<_ACEOF
17738 #define HAVE_DIRFD 1
17744 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17745 #include <dirent.h>
17747 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17753 cat >>confdefs.h
<<_ACEOF
17754 #define HAVE_DECL_DIRFD $ac_have_decl
17757 if test $ac_cv_have_decl_dirfd = no
; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17762 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17763 if ${gl_cv_func_dirfd_macro+:} false
; then :
17764 $as_echo_n "(cached) " >&6
17766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17769 #include <sys/types.h>
17770 #include <dirent.h>
17772 dirent_header_defines_dirfd
17775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17776 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17777 gl_cv_func_dirfd_macro
=yes
17779 gl_cv_func_dirfd_macro
=no
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17785 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17787 # Use the replacement if we have no function or macro with that name,
17788 # or if OS/2 kLIBC whose dirfd() does not work.
17789 # Replace only if the system declares dirfd already.
17790 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
17791 no
,no
,*,yes |
*,*,os2
*,yes)
17794 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
17798 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
17799 ||
test $REPLACE_DIRFD = 1; then
17808 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17812 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17813 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
17814 $as_echo_n "(cached) " >&6
17817 dirfd_save_CFLAGS
=$CFLAGS
17818 for ac_expr
in d_fd dd_fd
; do
17820 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17824 #include <sys/types.h>
17825 #include <dirent.h>
17829 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17834 if ac_fn_c_try_compile
"$LINENO"; then :
17838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17839 CFLAGS
=$dirfd_save_CFLAGS
17840 test "$dir_fd_found" = yes && break
17842 test "$dir_fd_found" = yes || ac_expr
=no_such_member
17844 gl_cv_sys_dir_fd_member_name
=$ac_expr
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17849 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
17850 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
17852 cat >>confdefs.h
<<_ACEOF
17853 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
17871 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17882 $as_echo_n "checking whether // is distinct from /... " >&6; }
17883 if ${gl_cv_double_slash_root+:} false
; then :
17884 $as_echo_n "(cached) " >&6
17886 if test x
"$cross_compiling" = xyes
; then
17887 # When cross-compiling, there is no way to tell whether // is special
17888 # short of a list of hosts. However, the only known hosts to date
17889 # that have a distinct // are Apollo DomainOS (too old to port to),
17890 # Cygwin, and z/OS. If anyone knows of another system for which // has
17891 # special semantics and is distinct from /, please report it to
17892 # <bug-gnulib@gnu.org>.
17894 *-cygwin | i370-ibm-openedition
)
17895 gl_cv_double_slash_root
=yes ;;
17897 # Be optimistic and assume that / and // are the same when we
17899 gl_cv_double_slash_root
='unknown, assuming no' ;;
17902 set x
`ls -di / // 2>/dev/null`
17903 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17904 gl_cv_double_slash_root
=no
17906 gl_cv_double_slash_root
=yes
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17911 $as_echo "$gl_cv_double_slash_root" >&6; }
17912 if test "$gl_cv_double_slash_root" = yes; then
17914 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17922 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17930 if test $ac_cv_func_fchdir = no
; then
17934 if test $HAVE_FCHDIR = 0; then
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
17939 $as_echo_n "checking whether dup works... " >&6; }
17940 if ${gl_cv_func_dup_works+:} false
; then :
17941 $as_echo_n "(cached) " >&6
17943 if test "$cross_compiling" = yes; then :
17945 # Guess no on native Windows.
17946 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
17947 *) gl_cv_func_dup_works
="guessing yes" ;;
17951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17953 #include <unistd.h>
17959 /* On OS/2 kLIBC, dup does not work on a directory fd. */
17960 int fd = open (".", O_RDONLY);
17961 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
17968 if ac_fn_c_try_run
"$LINENO"; then :
17969 gl_cv_func_dup_works
=yes
17971 gl_cv_func_dup_works
=no
17973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17974 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
17980 $as_echo "$gl_cv_func_dup_works" >&6; }
17981 case "$gl_cv_func_dup_works" in
17988 if test $REPLACE_DUP = 1; then
17997 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18012 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18021 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18024 if test $HAVE_DUP2 = 1; then
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18026 $as_echo_n "checking whether dup2 works... " >&6; }
18027 if ${gl_cv_func_dup2_works+:} false
; then :
18028 $as_echo_n "(cached) " >&6
18030 if test "$cross_compiling" = yes; then :
18032 mingw
*) # on this platform, dup2 always returns 0 for success
18033 gl_cv_func_dup2_works
="guessing no" ;;
18034 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18035 gl_cv_func_dup2_works
="guessing no" ;;
18037 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18039 gl_cv_func_dup2_works
="guessing no" ;;
18040 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18041 gl_cv_func_dup2_works
="guessing no" ;;
18042 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18043 gl_cv_func_dup2_works
="guessing no" ;;
18044 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18045 gl_cv_func_dup2_works
="guessing no" ;;
18046 *) gl_cv_func_dup2_works
="guessing yes" ;;
18049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18054 #include <limits.h>
18055 #include <sys/resource.h>
18056 #include <unistd.h>
18057 #ifndef RLIM_SAVED_CUR
18058 # define RLIM_SAVED_CUR RLIM_INFINITY
18060 #ifndef RLIM_SAVED_MAX
18061 # define RLIM_SAVED_MAX RLIM_INFINITY
18068 int bad_fd = INT_MAX;
18069 struct rlimit rlim;
18070 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18071 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18072 && rlim.rlim_cur != RLIM_INFINITY
18073 && rlim.rlim_cur != RLIM_SAVED_MAX
18074 && rlim.rlim_cur != RLIM_SAVED_CUR)
18075 bad_fd = rlim.rlim_cur;
18077 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18080 if (dup2 (1, 1) != 1)
18083 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18087 if (dup2 (0, 0) != -1)
18089 /* Many gnulib modules require POSIX conformance of EBADF. */
18090 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18092 /* Flush out some cygwin core dumps. */
18093 if (dup2 (2, -1) != -1 || errno != EBADF)
18097 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18099 int fd = open (".", O_RDONLY);
18102 else if (dup2 (fd, fd + 1) == -1)
18113 if ac_fn_c_try_run
"$LINENO"; then :
18114 gl_cv_func_dup2_works
=yes
18116 gl_cv_func_dup2_works
=no
18118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18119 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18125 $as_echo "$gl_cv_func_dup2_works" >&6; }
18126 case "$gl_cv_func_dup2_works" in
18130 for ac_func
in setdtablesize
18132 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18133 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18134 cat >>confdefs.h
<<_ACEOF
18135 #define HAVE_SETDTABLESIZE 1
18148 if test $ac_cv_func_fchdir = no
; then
18152 if test $HAVE_FCHDIR = 0; then
18153 if test $HAVE_DUP2 = 1; then
18159 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
18168 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18183 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18199 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18206 $as_echo_n "checking for error_at_line... " >&6; }
18207 if ${ac_cv_lib_error_at_line+:} false
; then :
18208 $as_echo_n "(cached) " >&6
18210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18216 error_at_line (0, 0, "", 0, "an error occurred");
18221 if ac_fn_c_try_link
"$LINENO"; then :
18222 ac_cv_lib_error_at_line
=yes
18224 ac_cv_lib_error_at_line
=no
18226 rm -f core conftest.err conftest.
$ac_objext \
18227 conftest
$ac_exeext conftest.
$ac_ext
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18230 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18232 if test $ac_cv_lib_error_at_line = no
; then
18241 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18255 if test $ac_cv_have_decl_fchdir = no
; then
18260 if test $HAVE_FCHDIR = 0; then
18269 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18273 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18276 $as_echo_n "checking whether open can visit directories... " >&6; }
18277 if ${gl_cv_func_open_directory_works+:} false
; then :
18278 $as_echo_n "(cached) " >&6
18280 if test "$cross_compiling" = yes; then :
18282 # Guess yes on Linux systems.
18283 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18284 # Guess yes on glibc systems.
18285 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18286 # Guess no on native Windows.
18287 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18288 # If we don't know, obey --enable-cross-guesses.
18289 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18300 return open(".", O_RDONLY) < 0;
18305 if ac_fn_c_try_run
"$LINENO"; then :
18306 gl_cv_func_open_directory_works
=yes
18308 gl_cv_func_open_directory_works
=no
18310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18316 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18317 case "$gl_cv_func_open_directory_works" in
18321 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18338 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18347 if test $ac_cv_func_fcntl = no
; then
18351 if test $ac_cv_func_fcntl = no
; then
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18359 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18360 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18361 $as_echo_n "(cached) " >&6
18363 if test "$cross_compiling" = yes; then :
18365 aix
* | cygwin
* | haiku
*)
18366 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18367 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18374 #include <limits.h>
18375 #include <sys/resource.h>
18376 #include <unistd.h>
18377 #ifndef RLIM_SAVED_CUR
18378 # define RLIM_SAVED_CUR RLIM_INFINITY
18380 #ifndef RLIM_SAVED_MAX
18381 # define RLIM_SAVED_MAX RLIM_INFINITY
18388 int bad_fd = INT_MAX;
18389 struct rlimit rlim;
18390 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18391 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18392 && rlim.rlim_cur != RLIM_INFINITY
18393 && rlim.rlim_cur != RLIM_SAVED_MAX
18394 && rlim.rlim_cur != RLIM_SAVED_CUR)
18395 bad_fd = rlim.rlim_cur;
18396 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18397 if (errno != EINVAL) result |= 2;
18398 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18399 if (errno != EINVAL) result |= 8;
18400 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18403 fd = open (".", O_RDONLY);
18406 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18416 if ac_fn_c_try_run
"$LINENO"; then :
18417 gl_cv_func_fcntl_f_dupfd_works
=yes
18419 gl_cv_func_fcntl_f_dupfd_works
=no
18421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18427 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18428 case $gl_cv_func_fcntl_f_dupfd_works in
18433 if test $ac_cv_func_fcntl = no
; then
18440 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18445 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18446 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
18447 $as_echo_n "(cached) " >&6
18449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18453 #ifndef F_DUPFD_CLOEXEC
18465 if ac_fn_c_try_compile
"$LINENO"; then :
18466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18470 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
18471 it to support the semantics on older kernels that failed with EINVAL. */
18483 if ac_fn_c_try_compile
"$LINENO"; then :
18484 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
18486 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
18488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18490 gl_cv_func_fcntl_f_dupfd_cloexec
=no
18492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
18495 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
18496 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
18500 if test $ac_cv_func_fcntl = no
; then
18512 if test $ac_cv_func_fchdir = no
; then
18516 if test $HAVE_FCHDIR = 0; then
18520 if test $ac_cv_func_fcntl = no
; then
18529 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
18538 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
18552 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
18567 if test $gl_cv_have_include_next = yes; then
18568 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
18571 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
18572 if ${gl_cv_next_fcntl_h+:} false
; then :
18573 $as_echo_n "(cached) " >&6
18578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18583 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18584 *) gl_absname_cpp
="$ac_cpp" ;;
18589 gl_dirsep_regex
='[/\\]'
18592 gl_dirsep_regex
='\/'
18595 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18596 gl_header_literal_regex
=`echo 'fcntl.h' \
18597 | sed -e "$gl_make_literal_regex_sed"`
18598 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18599 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18605 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18606 sed -n "$gl_absolute_header_sed"`
18608 gl_header
=$gl_cv_absolute_fcntl_h
18609 gl_cv_next_fcntl_h
='"'$gl_header'"'
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
18614 $as_echo "$gl_cv_next_fcntl_h" >&6; }
18616 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
18618 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18620 gl_next_as_first_directive
='<'fcntl.h
'>'
18622 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18623 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18625 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18641 cat >>confdefs.h
<<_ACEOF
18642 #define GNULIB_FD_SAFER_FLAG 1
18651 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18652 #include <dirent.h>
18655 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18661 cat >>confdefs.h
<<_ACEOF
18662 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18664 if test $ac_have_decl = 1; then :
18667 HAVE_DECL_FDOPENDIR
=0
18671 if test $ac_cv_func_fdopendir = no
; then
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18675 $as_echo_n "checking whether fdopendir works... " >&6; }
18676 if ${gl_cv_func_fdopendir_works+:} false
; then :
18677 $as_echo_n "(cached) " >&6
18679 if test "$cross_compiling" = yes; then :
18681 # Guess yes on glibc systems.
18682 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18683 # Guess yes on musl systems.
18684 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18685 # If we don't know, obey --enable-cross-guesses.
18686 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
18690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 #include <dirent.h>
18695 #include <unistd.h>
18696 #if !HAVE_DECL_FDOPENDIR
18698 # ifdef __cplusplus
18701 DIR *fdopendir (int);
18708 int fd = open ("conftest.c", O_RDONLY);
18709 if (fd < 0) result |= 1;
18710 if (fdopendir (fd)) result |= 2;
18711 if (close (fd)) result |= 4;
18717 if ac_fn_c_try_run
"$LINENO"; then :
18718 gl_cv_func_fdopendir_works
=yes
18720 gl_cv_func_fdopendir_works
=no
18722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18728 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18729 case "$gl_cv_func_fdopendir_works" in
18732 REPLACE_FDOPENDIR
=1
18737 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18746 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18760 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18766 cat >>confdefs.h
<<_ACEOF
18767 #define GNULIB_FDOPENDIR 1
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18776 $as_echo_n "checking for flexible array member... " >&6; }
18777 if ${ac_cv_c_flexmember+:} false
; then :
18778 $as_echo_n "(cached) " >&6
18780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18782 #include <stdlib.h>
18784 #include <stddef.h>
18785 struct m { struct m *next, **list; char name[]; };
18786 struct s { struct s *p; struct m *m; int n; double d[]; };
18790 int m = getchar ();
18791 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
18792 nbytes += sizeof (struct s) - 1;
18793 nbytes -= nbytes % sizeof (struct s);
18794 struct s *p = malloc (nbytes);
18798 return p->d != (double *) NULL;
18803 if ac_fn_c_try_compile
"$LINENO"; then :
18804 ac_cv_c_flexmember
=yes
18806 ac_cv_c_flexmember
=no
18808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18811 $as_echo "$ac_cv_c_flexmember" >&6; }
18812 if test $ac_cv_c_flexmember = yes; then
18814 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18817 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18825 REPLACE_FLOAT_LDBL
=0
18827 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
18830 freebsd
* | dragonfly
*)
18831 case "$host_cpu" in
18836 # On x86_64 systems, the C compiler may still be generating
18838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18839 /* end confdefs.h. */
18840 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18847 if ac_fn_c_try_compile
"$LINENO"; then :
18852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18857 case "$host_cpu" in
18865 aix
* | freebsd
* | dragonfly
* | linux
*)
18866 if test -n "$FLOAT_H"; then
18867 REPLACE_FLOAT_LDBL
=1
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18874 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
18875 if ${gl_cv_func_itold_works+:} false
; then :
18876 $as_echo_n "(cached) " >&6
18879 if test "$cross_compiling" = yes; then :
18882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884 #if defined __LP64__ || defined __arch64__
18891 if ac_fn_c_try_compile
"$LINENO"; then :
18892 gl_cv_func_itold_works
="guessing no"
18894 gl_cv_func_itold_works
="guessing yes"
18896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18898 # Guess yes on native Windows.
18899 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
18900 *) gl_cv_func_itold_works
="guessing yes" ;;
18904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18908 volatile long double ld;
18917 if ac_fn_c_try_run
"$LINENO"; then :
18918 gl_cv_func_itold_works
=yes
18920 gl_cv_func_itold_works
=no
18922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18929 $as_echo "$gl_cv_func_itold_works" >&6; }
18930 case "$gl_cv_func_itold_works" in
18937 if test -n "$FLOAT_H"; then
18946 if test $gl_cv_have_include_next = yes; then
18947 gl_cv_next_float_h
='<'float.h
'>'
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18950 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18951 if ${gl_cv_next_float_h+:} false
; then :
18952 $as_echo_n "(cached) " >&6
18957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18962 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18963 *) gl_absname_cpp
="$ac_cpp" ;;
18968 gl_dirsep_regex
='[/\\]'
18971 gl_dirsep_regex
='\/'
18974 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18975 gl_header_literal_regex
=`echo 'float.h' \
18976 | sed -e "$gl_make_literal_regex_sed"`
18977 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18984 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18985 sed -n "$gl_absolute_header_sed"`
18987 gl_header
=$gl_cv_absolute_float_h
18988 gl_cv_next_float_h
='"'$gl_header'"'
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18993 $as_echo "$gl_cv_next_float_h" >&6; }
18995 NEXT_FLOAT_H
=$gl_cv_next_float_h
18997 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18999 gl_next_as_first_directive
='<'float.h
'>'
19001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19002 gl_next_as_first_directive
=$gl_cv_next_float_h
19004 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19011 if test -n "$FLOAT_H"; then
19012 GL_GENERATE_FLOAT_H_TRUE
=
19013 GL_GENERATE_FLOAT_H_FALSE
='#'
19015 GL_GENERATE_FLOAT_H_TRUE
='#'
19016 GL_GENERATE_FLOAT_H_FALSE
=
19021 if test $REPLACE_FLOAT_LDBL = 1; then
19030 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19033 if test $REPLACE_ITOLD = 1; then
19042 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19049 gl_fnmatch_required_lowercase
=`
19050 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19053 if test $ac_cv_func_fnmatch = no
; then
19056 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19058 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19059 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19060 $as_echo_n "(cached) " >&6
19062 if test $gl_fnmatch_required = GNU
; then
19063 gl_fnmatch_gnu_start
=
19064 gl_fnmatch_gnu_end
=
19066 gl_fnmatch_gnu_start
='#if 0'
19067 gl_fnmatch_gnu_end
='#endif'
19069 if test "$cross_compiling" = yes; then :
19071 # Guess yes on musl systems.
19072 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19073 # Guess no otherwise, even on glibc systems.
19074 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19079 /* end confdefs.h. */
19080 #include <fnmatch.h>
19082 y (char const *pattern, char const *string, int flags)
19084 return fnmatch (pattern, string, flags) == 0;
19087 n (char const *pattern, char const *string, int flags)
19089 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19095 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19096 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19097 static char const A_1[] = { 'A' - 1, 0 };
19098 static char const A01[] = { 'A' + 1, 0 };
19099 static char const a_1[] = { 'a' - 1, 0 };
19100 static char const a01[] = { 'a' + 1, 0 };
19101 static char const bs_1[] = { '\\\\' - 1, 0 };
19102 static char const bs01[] = { '\\\\' + 1, 0 };
19104 if (!n ("a*", "", 0))
19106 if (!y ("a*", "abc", 0))
19108 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19110 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19112 if (!y ("a\\\\bc", "abc", 0))
19114 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19116 if (!y ("*x", ".x", 0))
19118 if (!n ("*x", ".x", FNM_PERIOD))
19120 if (!y (Apat, "\\\\", 0))
19122 if (!y (Apat, "A", 0))
19124 if (!y (apat, "\\\\", 0))
19126 if (!y (apat, "a", 0))
19128 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19130 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19132 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19134 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19136 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19138 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19140 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19142 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19144 $gl_fnmatch_gnu_start
19145 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19147 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19149 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19151 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19153 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19155 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19157 $gl_fnmatch_gnu_end
19164 if ac_fn_c_try_run
"$LINENO"; then :
19165 eval "$gl_fnmatch_cache_var=yes"
19167 eval "$gl_fnmatch_cache_var=no"
19169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19175 eval ac_res
=\$
$gl_fnmatch_cache_var
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19177 $as_echo "$ac_res" >&6; }
19178 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19179 case "$gl_fnmatch_result" in
19181 *) REPLACE_FNMATCH
=1 ;;
19184 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19187 FNMATCH_H
='fnmatch.h'
19188 if test -n "$FNMATCH_H"; then
19189 GL_GENERATE_FNMATCH_H_TRUE
=
19190 GL_GENERATE_FNMATCH_H_FALSE
='#'
19192 GL_GENERATE_FNMATCH_H_TRUE
='#'
19193 GL_GENERATE_FNMATCH_H_FALSE
=
19199 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19208 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19212 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
19214 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
19220 cat >>confdefs.h
<<_ACEOF
19221 #define HAVE_DECL_ISBLANK $ac_have_decl
19239 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19248 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19257 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19261 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
19263 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
19269 cat >>confdefs.h
<<_ACEOF
19270 #define HAVE_DECL_ISBLANK $ac_have_decl
19279 cat >>confdefs.h
<<_ACEOF
19280 #define GNULIB_FNMATCH_GNU 1
19286 if test $gl_func_frexp != yes; then
19295 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19309 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19314 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19323 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19337 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19355 if test $ac_cv_func_fchdir = no
; then
19359 if test $HAVE_FCHDIR = 0; then
19360 case "$gl_cv_func_open_directory_works" in
19369 if test $REPLACE_FSTAT = 1; then
19378 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19390 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
19410 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19421 if test $ac_cv_func_fstatat = no
; then
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19425 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19426 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19427 $as_echo_n "(cached) " >&6
19429 if test "$cross_compiling" = yes; then :
19431 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19432 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19440 #include <sys/stat.h>
19445 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19449 if ac_fn_c_try_run
"$LINENO"; then :
19450 gl_cv_func_fstatat_zero_flag
=yes
19452 gl_cv_func_fstatat_zero_flag
=no
19454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19461 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19463 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19465 *) REPLACE_FSTATAT
=1 ;;
19470 REPLACE_FSTATAT
=1 ;;
19473 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
19476 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19482 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19491 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19505 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19517 gl_cv_func_getcwd_path_max
=yes
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19526 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19527 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19528 $as_echo_n "(cached) " >&6
19530 # Arrange for deletion of the temporary directory this test creates.
19531 ac_clean_files
="$ac_clean_files confdir3"
19532 if test "$cross_compiling" = yes; then :
19533 # Cross-compilation guesses:
19535 aix
*) # On AIX, it has the AIX bug.
19536 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
19537 gnu
*) # On Hurd, it is 'yes'.
19538 gl_cv_func_getcwd_path_max
='guessing yes' ;;
19539 linux
* | kfreebsd
*)
19540 # On older Linux+glibc it's 'no, but it is partly working',
19541 # on newer Linux+glibc it's 'yes'.
19542 # On Linux+musl libc, it's 'no, but it is partly working'.
19543 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19544 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
19545 *) # If we don't know, obey --enable-cross-guesses.
19546 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
19550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h. */
19554 #include <stdlib.h>
19556 # include <unistd.h>
19558 # include <direct.h>
19560 #include <string.h>
19561 #include <limits.h>
19562 #include <sys/stat.h>
19563 #include <sys/types.h>
19567 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19569 # include <unistd.h>
19571 #include <limits.h>
19572 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19573 # include <sys/param.h>
19575 #if !defined PATH_MAX && defined MAXPATHLEN
19576 # define PATH_MAX MAXPATHLEN
19580 # define PATH_MAX 1024
19582 #if defined _WIN32 && ! defined __CYGWIN__
19584 # define PATH_MAX 260
19589 # define AT_FDCWD 0
19591 #ifdef ENAMETOOLONG
19592 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19594 # define is_ENAMETOOLONG(x) 0
19597 /* Use the getcwd function, not any macro. */
19600 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19604 # define S_IRWXU 0700
19607 /* The length of this name must be 8. */
19608 #define DIR_NAME "confdir3"
19609 #define DIR_NAME_LEN 8
19610 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19612 /* The length of "../". */
19613 #define DOTDOTSLASH_LEN 3
19615 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19616 #define BUF_SLOP 20
19622 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19623 at least not on a local file system. And if we were to start worrying
19624 about remote file systems, we'd have to enable the wrapper function
19625 all of the time, just to be safe. That's not worth the cost. */
19627 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19628 - DIR_NAME_SIZE - BUF_SLOP) \
19630 /* FIXME: Assuming there's a system for which this is true,
19631 this should be done in a compile test. */
19634 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19635 + DIR_NAME_SIZE + BUF_SLOP];
19636 char *cwd = getcwd (buf, PATH_MAX);
19637 size_t initial_cwd_len;
19640 size_t n_chdirs = 0;
19645 cwd_len = initial_cwd_len = strlen (cwd);
19649 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19652 cwd_len += DIR_NAME_SIZE;
19653 /* If mkdir or chdir fails, it could be that this system cannot create
19654 any file with an absolute name longer than PATH_MAX, such as cygwin.
19655 If so, leave fail as 0, because the current working directory can't
19656 be too long for getcwd if it can't even be created. On Linux with
19657 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
19658 too long; ignore this failure because the getcwd() system call
19659 produces good results whereas the gnulib substitute calls getdents64
19660 which fails with error EPROTO.
19661 For other errors, be pessimistic and consider that as a failure,
19663 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19665 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19667 if (! (errno == EINVAL))
19673 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19677 c = getcwd (buf, PATH_MAX);
19678 if (!c && errno == ENOENT)
19688 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19694 /* Our replacement needs to be able to stat() long ../../paths,
19695 so generate a path larger than PATH_MAX to check,
19696 avoiding the replacement if we can't stat(). */
19697 c = getcwd (buf, cwd_len + 1);
19698 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19705 if (dotdot_max <= cwd_len - initial_cwd_len)
19707 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19709 c = getcwd (buf, cwd_len + 1);
19712 if (! (errno == ERANGE || errno == ENOENT
19713 || is_ENAMETOOLONG (errno)))
19718 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19726 if (c && strlen (c) != cwd_len)
19734 /* Leaving behind such a deep directory is not polite.
19735 So clean up here, right away, even though the driving
19736 shell script would also clean up. */
19740 /* Try rmdir first, in case the chdir failed. */
19742 for (i = 0; i <= n_chdirs; i++)
19744 if (chdir ("..") < 0)
19746 if (rmdir (DIR_NAME) != 0)
19756 if ac_fn_c_try_run
"$LINENO"; then :
19757 gl_cv_func_getcwd_path_max
=yes
19760 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19761 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19762 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19763 *) gl_cv_func_getcwd_path_max
=no
;;
19766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19773 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19775 case "$gl_cv_func_getcwd_null" in
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
19784 $as_echo_n "checking for getpagesize... " >&6; }
19785 if ${gl_cv_func_getpagesize+:} false
; then :
19786 $as_echo_n "(cached) " >&6
19788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19790 #include <unistd.h>
19794 return getpagesize();
19800 if ac_fn_c_try_link
"$LINENO"; then :
19801 gl_cv_func_getpagesize
=yes
19803 gl_cv_func_getpagesize
=no
19805 rm -f core conftest.err conftest.
$ac_objext \
19806 conftest
$ac_exeext conftest.
$ac_ext
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
19810 $as_echo "$gl_cv_func_getpagesize" >&6; }
19812 if test $gl_cv_func_getpagesize = yes; then
19814 cat >>confdefs.h
<<_ACEOF
19815 #define HAVE_GETPAGESIZE 1
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
19821 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
19822 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
19823 $as_echo_n "(cached) " >&6
19825 # Remove any remnants of a previous test.
19826 rm -rf confdir-14B---
19827 # Arrange for deletion of the temporary directory this test creates.
19828 ac_clean_files
="$ac_clean_files confdir-14B---"
19829 if test "$cross_compiling" = yes; then :
19831 # Guess no on musl systems.
19832 *-musl*) gl_cv_func_getcwd_abort_bug
="guessing no" ;;
19833 # Guess yes otherwise, even on glibc systems.
19834 *) gl_cv_func_getcwd_abort_bug
="guessing yes"
19838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19842 #include <stdlib.h>
19844 # include <unistd.h>
19845 #else /* on Windows with MSVC */
19846 # include <direct.h>
19848 #include <string.h>
19849 #include <sys/stat.h>
19852 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19854 # include <unistd.h>
19856 #include <limits.h>
19857 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19858 # include <sys/param.h>
19860 #if !defined PATH_MAX && defined MAXPATHLEN
19861 # define PATH_MAX MAXPATHLEN
19865 # define PATH_MAX 1024
19867 #if defined _WIN32 && ! defined __CYGWIN__
19869 # define PATH_MAX 260
19873 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19877 # define S_IRWXU 0700
19880 /* FIXME: skip the run-test altogether on systems without getpagesize. */
19881 #if ! HAVE_GETPAGESIZE
19882 # define getpagesize() 0
19885 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
19886 the 16kB pagesize on ia64 linux. Those conditions make the code below
19887 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
19888 #define TARGET_LEN (5 * 1024)
19894 size_t initial_cwd_len;
19897 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
19898 this relatively expensive and invasive test if that's not true. */
19900 int bug_possible = PATH_MAX < getpagesize ();
19902 int bug_possible = 0;
19904 if (! bug_possible)
19907 cwd = getcwd (NULL, 0);
19911 initial_cwd_len = strlen (cwd);
19916 static char const dir_name[] = "confdir-14B---";
19917 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
19918 / sizeof dir_name);
19920 for (d = 0; d < desired_depth; d++)
19922 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
19924 if (! (errno == ERANGE || errno == ENAMETOOLONG
19925 || errno == ENOENT))
19926 fail = 3; /* Unable to construct deep hierarchy. */
19931 /* If libc has the bug in question, this invocation of getcwd
19932 results in a failed assertion. */
19933 cwd = getcwd (NULL, 0);
19935 fail = 4; /* getcwd didn't assert, but it failed for a long name
19936 where the answer could have been learned. */
19939 /* Call rmdir first, in case the above chdir failed. */
19943 if (chdir ("..") < 0)
19956 if ac_fn_c_try_run
"$LINENO"; then :
19957 gl_cv_func_getcwd_abort_bug
=no
19960 if test $ret -ge 128 ||
test $ret = 4; then
19961 gl_cv_func_getcwd_abort_bug
=yes
19963 gl_cv_func_getcwd_abort_bug
=no
19967 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19968 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
19974 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
19975 case "$gl_cv_func_getcwd_abort_bug" in
19988 case "$gl_cv_func_getcwd_path_max" in
19989 *"no" |
*"no, it has the AIX bug") ;;
19992 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
19996 case "$gl_cv_func_getcwd_path_max" in
19997 *"no, but it is partly working")
19999 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20002 *"yes, but with shorter paths")
20004 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20009 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20010 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20011 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20012 ||
test $gl_abort_bug = yes; then
20016 if test $REPLACE_GETCWD = 1; then
20025 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20035 cat >>confdefs.h
<<_ACEOF
20036 #define GNULIB_GETCWD 1
20051 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20060 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20067 if test $REPLACE_GETCWD = 1; then
20076 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20090 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20099 if test $ac_cv_func_getdtablesize = yes &&
20100 test $ac_cv_have_decl_getdtablesize = yes; then
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
20102 $as_echo_n "checking whether getdtablesize works... " >&6; }
20103 if ${gl_cv_func_getdtablesize_works+:} false
; then :
20104 $as_echo_n "(cached) " >&6
20107 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
20109 if test "$cross_compiling" = yes; then :
20111 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
20112 gl_cv_func_getdtablesize_works
="guessing no" ;;
20113 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
20117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20120 #include <unistd.h>
20124 int size = getdtablesize();
20125 if (dup2 (0, getdtablesize()) != -1)
20127 if (size != getdtablesize())
20134 if ac_fn_c_try_run
"$LINENO"; then :
20135 gl_cv_func_getdtablesize_works
=yes
20137 gl_cv_func_getdtablesize_works
=no
20139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
20148 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
20149 case "$gl_cv_func_getdtablesize_works" in
20150 *yes |
"no (limitation)") ;;
20151 *) REPLACE_GETDTABLESIZE
=1 ;;
20154 HAVE_GETDTABLESIZE
=0
20157 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20166 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20175 GNULIB_GETDTABLESIZE
=1
20181 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20191 if test $ac_cv_have_decl_getlogin_r = no
; then
20192 HAVE_DECL_GETLOGIN_R
=0
20196 if test $ac_cv_func_getlogin_r = no
; then
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20202 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20203 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20204 $as_echo_n "(cached) " >&6
20208 # Guess no on Mac OS X, OSF/1.
20209 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20210 # Guess yes otherwise.
20211 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20213 if test "$cross_compiling" = yes; then :
20216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20219 #include <stddef.h>
20220 #include <string.h>
20221 #include <unistd.h>
20222 #if !HAVE_DECL_GETLOGIN_R
20224 # ifdef __cplusplus
20227 int getlogin_r (char *, size_t);
20235 if (getlogin_r (buf, 0) == 0)
20237 if (getlogin_r (buf, 1) == 0)
20239 if (getlogin_r (buf, 100) == 0)
20241 size_t n = strlen (buf);
20242 if (getlogin_r (buf, n) == 0)
20248 if ac_fn_c_try_run
"$LINENO"; then :
20249 gl_cv_func_getlogin_r_works
=yes
20251 gl_cv_func_getlogin_r_works
=no
20253 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20254 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20260 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20261 case "$gl_cv_func_getlogin_r_works" in
20263 *) REPLACE_GETLOGIN_R
=1 ;;
20267 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20276 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20287 GNULIB_GETLOGIN_R
=1
20293 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20302 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20304 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20310 cat >>confdefs.h
<<_ACEOF
20311 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20313 if test $ac_have_decl = 1; then :
20317 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20319 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20325 cat >>confdefs.h
<<_ACEOF
20326 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20328 if test $ac_have_decl = 1; then :
20332 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20334 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20340 cat >>confdefs.h
<<_ACEOF
20341 #define HAVE_DECL___ARGV $ac_have_decl
20343 if test $ac_have_decl = 1; then :
20348 # Incur the cost of this test only if none of the above worked.
20349 if test $ac_found = 0; then
20350 # On OpenBSD 5.1, using the global __progname variable appears to be
20351 # the only way to implement getprogname.
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20353 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20354 if ${gl_cv_var___progname+:} false
; then :
20355 $as_echo_n "(cached) " >&6
20358 gl_cv_var___progname
=
20359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20361 extern char *__progname;
20365 return *__progname;
20371 if ac_fn_c_try_link
"$LINENO"; then :
20372 gl_cv_var___progname
=yes
20375 rm -f core conftest.err conftest.
$ac_objext \
20376 conftest
$ac_exeext conftest.
$ac_ext
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20381 $as_echo "$gl_cv_var___progname" >&6; }
20382 if test "$gl_cv_var___progname" = yes; then
20384 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20398 gl_gettimeofday_timezone
=void
20399 if test $ac_cv_func_gettimeofday != yes; then
20400 HAVE_GETTIMEOFDAY
=0
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20407 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20408 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20409 $as_echo_n "(cached) " >&6
20411 if test "$cross_compiling" = yes; then :
20412 # When cross-compiling:
20414 # Guess all is fine on glibc systems.
20415 *-gnu* | gnu
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20416 # Guess all is fine on musl systems.
20417 *-musl*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20418 # Guess no on native Windows.
20419 mingw
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20420 # If we don't know, obey --enable-cross-guesses.
20421 *) gl_cv_func_gettimeofday_clobber
="$gl_cross_guess_inverted" ;;
20425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20427 #include <string.h>
20428 #include <sys/time.h>
20430 #include <stdlib.h>
20438 struct tm saved_lt;
20440 lt = localtime (&t);
20442 gettimeofday (&tv, NULL);
20443 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20449 if ac_fn_c_try_run
"$LINENO"; then :
20450 gl_cv_func_gettimeofday_clobber
=no
20452 gl_cv_func_gettimeofday_clobber
=yes
20454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20460 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20462 case "$gl_cv_func_gettimeofday_clobber" in
20464 REPLACE_GETTIMEOFDAY
=1
20466 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20471 NEED_LOCALTIME_BUFFER
=1
20473 REPLACE_LOCALTIME
=1
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20479 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20480 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20481 $as_echo_n "(cached) " >&6
20483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20485 #include <sys/time.h>
20487 int gettimeofday (struct timeval *restrict, void *restrict);
20492 /* glibc uses struct timezone * rather than the POSIX void *
20493 if _GNU_SOURCE is defined. However, since the only portable
20494 use of gettimeofday uses NULL as the second parameter, and
20495 since the glibc definition is actually more typesafe, it is
20496 not worth wrapping this to get a compliant signature. */
20497 int (*f) (struct timeval *restrict, void *restrict)
20500 return !(x | c.tv_sec | c.tv_usec);
20506 if ac_fn_c_try_compile
"$LINENO"; then :
20507 gl_cv_func_gettimeofday_posix_signature
=yes
20509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 #include <sys/time.h>
20512 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20522 if ac_fn_c_try_compile
"$LINENO"; then :
20523 gl_cv_func_gettimeofday_posix_signature
=almost
20525 gl_cv_func_gettimeofday_posix_signature
=no
20527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20532 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20533 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20534 gl_gettimeofday_timezone
='struct timezone'
20535 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20536 REPLACE_GETTIMEOFDAY
=1
20538 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20539 REPLACE_GETTIMEOFDAY
=1
20542 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
20546 cat >>confdefs.h
<<_ACEOF
20547 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20551 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20560 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20569 GNULIB_GETTIMEOFDAY
=1
20575 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20583 if test $ac_cv_func_glob = no
; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
20588 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
20589 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
20590 $as_echo_n "(cached) " >&6
20592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20594 #include <gnu-versions.h>
20595 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
20597 if ac_fn_c_try_compile
"$LINENO"; then :
20598 gl_cv_gnu_glob_interface_version_1_2
=yes
20600 gl_cv_gnu_glob_interface_version_1_2
=no
20602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
20605 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
20606 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
20610 if test $REPLACE_GLOB = 0; then
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20612 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20613 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20614 $as_echo_n "(cached) " >&6
20616 if test $cross_compiling != yes; then
20617 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20618 gl_cv_glob_lists_symlinks
=maybe
20620 # If we can't make a symlink, then we cannot test this issue. Be
20621 # pessimistic about this.
20622 gl_cv_glob_lists_symlinks
=no
20624 if test $gl_cv_glob_lists_symlinks = maybe
; then
20625 if test "$cross_compiling" = yes; then :
20629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h. */
20631 #include <stddef.h>
20637 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
20644 if ac_fn_c_try_run
"$LINENO"; then :
20645 gl_cv_glob_lists_symlinks
=yes
20647 gl_cv_glob_lists_symlinks
=no
20649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20654 rm -f conf$$
-globtest
20656 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20661 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20662 case "$gl_cv_glob_lists_symlinks" in
20664 *) REPLACE_GLOB
=1 ;;
20670 if test $ac_cv_func_glob_pattern_p = no
; then
20671 HAVE_GLOB_PATTERN_P
=0
20673 if test $REPLACE_GLOB = 1; then
20674 REPLACE_GLOB_PATTERN_P
=1
20678 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
20682 if test -n "$GLOB_H"; then
20683 GL_GENERATE_GLOB_H_TRUE
=
20684 GL_GENERATE_GLOB_H_FALSE
='#'
20686 GL_GENERATE_GLOB_H_TRUE
='#'
20687 GL_GENERATE_GLOB_H_FALSE
=
20693 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
20702 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
20712 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
20720 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
20729 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
20743 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
20749 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
20764 if test $ac_cv_header_sys_socket_h != yes; then
20765 for ac_header
in winsock2.h
20767 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20768 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
20769 cat >>confdefs.h
<<_ACEOF
20770 #define HAVE_WINSOCK2_H 1
20778 if test "$ac_cv_header_winsock2_h" = yes; then
20780 UNISTD_H_HAVE_WINSOCK2_H
=1
20781 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20787 if test $HAVE_WINSOCK2_H = 1; then
20788 REPLACE_INET_NTOP
=1
20789 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
20791 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20797 cat >>confdefs.h
<<_ACEOF
20798 #define HAVE_DECL_INET_NTOP $ac_have_decl
20801 if test $ac_cv_have_decl_inet_ntop = yes; then
20802 INET_NTOP_LIB
="-lws2_32"
20804 HAVE_DECL_INET_NTOP
=0
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
20809 $as_echo_n "checking for library containing inet_ntop... " >&6; }
20810 if ${ac_cv_search_inet_ntop+:} false
; then :
20811 $as_echo_n "(cached) " >&6
20813 ac_func_search_save_LIBS
=$LIBS
20814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20817 /* Override any GCC internal prototype to avoid an error.
20818 Use char because int might match the return type of a GCC
20819 builtin and then its argument prototype would still apply. */
20827 return inet_ntop ();
20832 for ac_lib
in '' nsl resolv network
; do
20833 if test -z "$ac_lib"; then
20834 ac_res
="none required"
20837 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20839 if ac_fn_c_try_link
"$LINENO"; then :
20840 ac_cv_search_inet_ntop
=$ac_res
20842 rm -f core conftest.err conftest.
$ac_objext \
20844 if ${ac_cv_search_inet_ntop+:} false
; then :
20848 if ${ac_cv_search_inet_ntop+:} false
; then :
20851 ac_cv_search_inet_ntop
=no
20853 rm conftest.
$ac_ext
20854 LIBS
=$ac_func_search_save_LIBS
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
20857 $as_echo "$ac_cv_search_inet_ntop" >&6; }
20858 ac_res
=$ac_cv_search_inet_ntop
20859 if test "$ac_res" != no
; then :
20860 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20863 for ac_func
in inet_ntop
20865 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20866 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
20867 cat >>confdefs.h
<<_ACEOF
20868 #define HAVE_INET_NTOP 1
20874 if test $ac_cv_func_inet_ntop = no
; then
20882 if test "$ac_cv_search_inet_ntop" != "no" \
20883 && test "$ac_cv_search_inet_ntop" != "none required"; then
20884 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
20888 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
20890 # include <netdb.h>
20894 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20900 cat >>confdefs.h
<<_ACEOF
20901 #define HAVE_DECL_INET_NTOP $ac_have_decl
20904 if test $ac_cv_have_decl_inet_ntop = no
; then
20905 HAVE_DECL_INET_NTOP
=0
20910 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
20919 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
20941 if test -n "$STDINT_H"; then
20942 PRIPTR_PREFIX
='"l"'
20944 for glpfx
in '' l ll I64
; do
20946 '') gltype1
='int';;
20947 l
) gltype1
='long int';;
20948 ll
) gltype1
='long long int';;
20949 I64
) gltype1
='__int64';;
20951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h. */
20953 #include <stdint.h>
20954 extern intptr_t foo;
20955 extern $gltype1 foo;
20964 if ac_fn_c_try_compile
"$LINENO"; then :
20965 PRIPTR_PREFIX
='"'$glpfx'"'
20967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20968 test -n "$PRIPTR_PREFIX" && break
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
20975 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
20976 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
20977 $as_echo_n "(cached) " >&6
20979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 /* Work also in C++ mode. */
20982 #define __STDC_LIMIT_MACROS 1
20984 /* Work if build is not clean. */
20985 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20987 #include <limits.h>
20989 #include <stdint.h>
20992 #if defined INT32_MAX && defined INTMAX_MAX
20993 #define CONDITION (INT32_MAX < INTMAX_MAX)
20995 #define CONDITION (sizeof (int) < sizeof (long long int))
20997 int test[CONDITION ? 1 : -1];
21006 if ac_fn_c_try_compile
"$LINENO"; then :
21007 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
21009 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
21011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
21014 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
21015 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
21016 INT32_MAX_LT_INTMAX_MAX
=1;
21018 INT32_MAX_LT_INTMAX_MAX
=0;
21022 if test $APPLE_UNIVERSAL_BUILD = 0; then
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
21025 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
21026 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
21027 $as_echo_n "(cached) " >&6
21029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21031 /* Work also in C++ mode. */
21032 #define __STDC_LIMIT_MACROS 1
21034 /* Work if build is not clean. */
21035 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21037 #include <limits.h>
21039 #include <stdint.h>
21042 #if defined INT64_MAX
21043 #define CONDITION (INT64_MAX == LONG_MAX)
21045 #define CONDITION (sizeof (long long int) == sizeof (long int))
21047 int test[CONDITION ? 1 : -1];
21056 if ac_fn_c_try_compile
"$LINENO"; then :
21057 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
21059 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
21061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
21064 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
21065 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
21066 INT64_MAX_EQ_LONG_MAX
=1;
21068 INT64_MAX_EQ_LONG_MAX
=0;
21073 INT64_MAX_EQ_LONG_MAX
=-1
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
21077 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
21078 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
21079 $as_echo_n "(cached) " >&6
21081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h. */
21083 /* Work also in C++ mode. */
21084 #define __STDC_LIMIT_MACROS 1
21086 /* Work if build is not clean. */
21087 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21089 #include <limits.h>
21091 #include <stdint.h>
21094 #if defined UINT32_MAX && defined UINTMAX_MAX
21095 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
21097 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
21099 int test[CONDITION ? 1 : -1];
21108 if ac_fn_c_try_compile
"$LINENO"; then :
21109 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
21111 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
21113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
21116 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
21117 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
21118 UINT32_MAX_LT_UINTMAX_MAX
=1;
21120 UINT32_MAX_LT_UINTMAX_MAX
=0;
21124 if test $APPLE_UNIVERSAL_BUILD = 0; then
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
21127 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
21128 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
21129 $as_echo_n "(cached) " >&6
21131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21133 /* Work also in C++ mode. */
21134 #define __STDC_LIMIT_MACROS 1
21136 /* Work if build is not clean. */
21137 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21139 #include <limits.h>
21141 #include <stdint.h>
21144 #if defined UINT64_MAX
21145 #define CONDITION (UINT64_MAX == ULONG_MAX)
21147 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21149 int test[CONDITION ? 1 : -1];
21158 if ac_fn_c_try_compile
"$LINENO"; then :
21159 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21161 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21166 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21167 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21168 UINT64_MAX_EQ_ULONG_MAX
=1;
21170 UINT64_MAX_EQ_ULONG_MAX
=0;
21175 UINT64_MAX_EQ_ULONG_MAX
=-1
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21183 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21184 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21185 $as_echo_n "(cached) " >&6
21188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h. */
21193 # define isnand(x) __builtin_isnan ((double)(x))
21196 # define isnand(x) isnan ((double)(x))
21207 if ac_fn_c_try_link
"$LINENO"; then :
21208 gl_cv_func_isnand_no_libm
=yes
21210 gl_cv_func_isnand_no_libm
=no
21212 rm -f core conftest.err conftest.
$ac_objext \
21213 conftest
$ac_exeext conftest.
$ac_ext
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21217 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21219 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21220 if test $gl_cv_func_isnand_no_libm = yes; then
21222 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21226 if test $gl_func_isnand_no_libm != yes; then
21235 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21244 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21245 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21246 $as_echo_n "(cached) " >&6
21249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21254 # define isnanl(x) __builtin_isnanl ((long double)(x))
21255 #elif defined isnan
21257 # define isnanl(x) isnan ((long double)(x))
21268 if ac_fn_c_try_link
"$LINENO"; then :
21269 gl_cv_func_isnanl_no_libm
=yes
21271 gl_cv_func_isnanl_no_libm
=no
21273 rm -f core conftest.err conftest.
$ac_objext \
21274 conftest
$ac_exeext conftest.
$ac_ext
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21278 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21280 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21281 if test $gl_func_isnanl_no_libm = yes; then
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21287 $as_echo_n "checking whether isnanl works... " >&6; }
21288 if ${gl_cv_func_isnanl_works+:} false
; then :
21289 $as_echo_n "(cached) " >&6
21292 if test "$cross_compiling" = yes; then :
21294 mingw
*) # Guess yes on mingw, no on MSVC.
21295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304 $EGREP "Known" >/dev
/null
2>&1; then :
21305 gl_cv_func_isnanl_works
="guessing yes"
21307 gl_cv_func_isnanl_works
="guessing no"
21312 *) gl_cv_func_isnanl_works
="guessing yes" ;;
21316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21320 #include <limits.h>
21324 # define isnanl(x) __builtin_isnanl ((long double)(x))
21325 #elif defined isnan
21327 # define isnanl(x) isnan ((long double)(x))
21330 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21331 typedef union { unsigned int word[NWORDS]; long double value; }
21332 memory_long_double;
21333 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21334 runtime type conversion. */
21336 static long double NaNl ()
21339 return zero / zero;
21342 # define NaNl() (0.0L / 0.0L)
21348 if (!isnanl (NaNl ()))
21352 memory_long_double m;
21355 /* The isnanl function should be immune against changes in the sign bit and
21356 in the mantissa bits. The xor operation twiddles a bit that can only be
21357 a sign bit or a mantissa bit (since the exponent never extends to
21360 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21361 for (i = 0; i < NWORDS; i++)
21363 if (!isnanl (m.value))
21367 #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
21368 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21369 of 'unsigned int' words. */
21370 # ifdef WORDS_BIGENDIAN
21371 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21372 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21373 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21374 (unsigned int) (mantlo) << 16 \
21377 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21378 { mantlo, manthi, exponent }
21381 static memory_long_double x =
21382 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21383 if (!isnanl (x.value))
21387 /* Signalling NaN. */
21388 static memory_long_double x =
21389 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21390 if (!isnanl (x.value))
21393 /* isnanl should return something even for noncanonical values. */
21394 { /* Pseudo-NaN. */
21395 static memory_long_double x =
21396 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21397 if (isnanl (x.value) && !isnanl (x.value))
21400 { /* Pseudo-Infinity. */
21401 static memory_long_double x =
21402 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21403 if (isnanl (x.value) && !isnanl (x.value))
21406 { /* Pseudo-Zero. */
21407 static memory_long_double x =
21408 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21409 if (isnanl (x.value) && !isnanl (x.value))
21412 { /* Unnormalized number. */
21413 static memory_long_double x =
21414 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21415 if (isnanl (x.value) && !isnanl (x.value))
21418 { /* Pseudo-Denormal. */
21419 static memory_long_double x =
21420 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21421 if (isnanl (x.value) && !isnanl (x.value))
21429 if ac_fn_c_try_run
"$LINENO"; then :
21430 gl_cv_func_isnanl_works
=yes
21432 gl_cv_func_isnanl_works
=no
21434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21441 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21443 case "$gl_cv_func_isnanl_works" in
21445 *) gl_func_isnanl_no_libm
=no
;;
21448 if test $gl_func_isnanl_no_libm = yes; then
21450 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21454 if test $gl_func_isnanl_no_libm != yes; then
21463 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21469 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21470 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21471 $as_echo_n "(cached) " >&6
21474 if test "$cross_compiling" = yes; then :
21476 gl_cv_cc_long_double_expbit0
="unknown"
21478 mingw
*) # On native Windows (little-endian), we know the result
21479 # in two cases: mingw, MSVC.
21480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21481 /* end confdefs.h. */
21488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21489 $EGREP "Known" >/dev
/null
2>&1; then :
21490 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
21494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h. */
21502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21503 $EGREP "Known" >/dev
/null
2>&1; then :
21504 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
21512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h. */
21516 #include <stddef.h>
21518 #include <string.h>
21520 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21521 typedef union { long double value; unsigned int word[NWORDS]; }
21522 memory_long_double;
21523 static unsigned int ored_words[NWORDS];
21524 static unsigned int anded_words[NWORDS];
21525 static void add_to_ored_words (long double x)
21527 memory_long_double m;
21529 /* Clear it first, in case
21530 sizeof (long double) < sizeof (memory_long_double). */
21531 memset (&m, 0, sizeof (memory_long_double));
21533 for (i = 0; i < NWORDS; i++)
21535 ored_words[i] |= m.word[i];
21536 anded_words[i] &= m.word[i];
21542 FILE *fp = fopen ("conftest.out", "w");
21545 for (j = 0; j < NWORDS; j++)
21546 anded_words[j] = ~ (unsigned int) 0;
21547 add_to_ored_words (0.25L);
21548 add_to_ored_words (0.5L);
21549 add_to_ored_words (1.0L);
21550 add_to_ored_words (2.0L);
21551 add_to_ored_words (4.0L);
21552 /* Remove bits that are common (e.g. if representation of the first mantissa
21553 bit is explicit). */
21554 for (j = 0; j < NWORDS; j++)
21555 ored_words[j] &= ~anded_words[j];
21556 /* Now find the nonzero word. */
21557 for (j = 0; j < NWORDS; j++)
21558 if (ored_words[j] != 0)
21563 for (i = j + 1; i < NWORDS; i++)
21564 if (ored_words[i] != 0)
21566 fprintf (fp, "unknown");
21567 return (fclose (fp) != 0);
21570 if ((ored_words[j] >> i) & 1)
21572 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21573 return (fclose (fp) != 0);
21576 fprintf (fp, "unknown");
21577 return (fclose (fp) != 0);
21581 if ac_fn_c_try_run
"$LINENO"; then :
21582 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21584 gl_cv_cc_long_double_expbit0
="unknown"
21586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21594 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21595 case "$gl_cv_cc_long_double_expbit0" in
21597 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21598 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21600 cat >>confdefs.h
<<_ACEOF
21601 #define LDBL_EXPBIT0_WORD $word
21605 cat >>confdefs.h
<<_ACEOF
21606 #define LDBL_EXPBIT0_BIT $bit
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
21618 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
21619 if ${gl_cv_c___inline+:} false
; then :
21620 $as_echo_n "(cached) " >&6
21622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21623 /* end confdefs.h. */
21625 static __inline foo_t foo (void) { return 0; }
21634 if ac_fn_c_try_compile
"$LINENO"; then :
21635 gl_cv_c___inline
=yes
21637 gl_cv_c___inline
=no
21639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
21642 $as_echo "$gl_cv_c___inline" >&6; }
21643 if test $gl_cv_c___inline = yes; then
21645 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
21653 LOCALCHARSET_TESTS_ENVIRONMENT
=
21668 $as_echo "#define _LCONV_C99 1" >>confdefs.h
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
21674 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
21675 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
21676 $as_echo_n "(cached) " >&6
21678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21680 #include <locale.h>
21681 int x = LC_MESSAGES;
21682 int y = sizeof (((struct lconv *) 0)->decimal_point);
21691 if ac_fn_c_try_compile
"$LINENO"; then :
21692 gl_cv_header_locale_h_posix2001
=yes
21694 gl_cv_header_locale_h_posix2001
=no
21696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
21699 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
21702 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
21703 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
21704 $as_echo_n "(cached) " >&6
21706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21708 #include <locale.h>
21710 int x = sizeof (l.decimal_point);
21711 int y = sizeof (l.int_p_cs_precedes);
21720 if ac_fn_c_try_compile
"$LINENO"; then :
21721 gl_cv_sys_struct_lconv_ok
=yes
21723 gl_cv_sys_struct_lconv_ok
=no
21725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
21729 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
21730 if test $gl_cv_sys_struct_lconv_ok = no
; then
21733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h. */
21741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21742 $EGREP "Special" >/dev
/null
2>&1; then :
21745 REPLACE_STRUCT_LCONV
=1
21750 *) REPLACE_STRUCT_LCONV
=1 ;;
21762 if test $gl_cv_have_include_next = yes; then
21763 gl_cv_next_locale_h
='<'locale.h
'>'
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
21766 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
21767 if ${gl_cv_next_locale_h+:} false
; then :
21768 $as_echo_n "(cached) " >&6
21773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21774 /* end confdefs.h. */
21775 #include <locale.h>
21778 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21779 *) gl_absname_cpp
="$ac_cpp" ;;
21784 gl_dirsep_regex
='[/\\]'
21787 gl_dirsep_regex
='\/'
21790 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21791 gl_header_literal_regex
=`echo 'locale.h' \
21792 | sed -e "$gl_make_literal_regex_sed"`
21793 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21794 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21800 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21801 sed -n "$gl_absolute_header_sed"`
21803 gl_header
=$gl_cv_absolute_locale_h
21804 gl_cv_next_locale_h
='"'$gl_header'"'
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
21809 $as_echo "$gl_cv_next_locale_h" >&6; }
21811 NEXT_LOCALE_H
=$gl_cv_next_locale_h
21813 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21814 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21815 gl_next_as_first_directive
='<'locale.h
'>'
21817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21818 gl_next_as_first_directive
=$gl_cv_next_locale_h
21820 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
21839 gl_LIBOBJS
="$gl_LIBOBJS localtime-buffer.$ac_objext"
21843 if test "$gl_threads_api" = posix
; then
21844 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21845 # pthread_rwlock_* functions.
21847 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21849 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
21852 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21856 if $has_rwlock; then
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
21860 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
21861 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
21862 $as_echo_n "(cached) " >&6
21865 LIBS
="$LIBS $LIBMULTITHREAD"
21866 if test "$cross_compiling" = yes; then :
21868 # Guess no on glibc systems.
21869 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21870 # Guess no on musl systems.
21871 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21872 # Guess no on bionic systems.
21873 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21874 # Guess yes on native Windows with the mingw-w64 winpthreads library.
21875 # Guess no on native Windows with the gnulib windows-rwlock module.
21876 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
21877 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
21879 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
21882 # If we don't know, obey --enable-cross-guesses.
21883 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
21887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21891 #include <pthread.h>
21892 #include <stdlib.h>
21893 #include <unistd.h>
21895 #define SUCCEED() exit (0)
21896 #define FAILURE() exit (1)
21897 #define UNEXPECTED(n) (exit (10 + (n)))
21899 /* The main thread creates the waiting writer and the requesting reader threads
21900 in the default way; this guarantees that they have the same priority.
21901 We can reuse the main thread as first reader thread. */
21903 static pthread_rwlock_t lock;
21904 static pthread_t reader1;
21905 static pthread_t writer;
21906 static pthread_t reader2;
21907 static pthread_t timer;
21908 /* Used to pass control from writer to reader2 and from reader2 to timer,
21909 as in a relay race.
21910 Passing control from one running thread to another running thread
21911 is most likely faster than to create the second thread. */
21912 static pthread_mutex_t baton;
21915 timer_func (void *ignored)
21917 /* Step 13 (can be before or after step 12):
21918 The timer thread takes the baton, then waits a moment to make sure
21919 it can tell whether the second reader thread is blocked at step 12. */
21920 if (pthread_mutex_lock (&baton))
21923 /* By the time we get here, it's clear that the second reader thread is
21924 blocked at step 12. This is the desired behaviour. */
21929 reader2_func (void *ignored)
21933 /* Step 8 (can be before or after step 7):
21934 The second reader thread takes the baton, then waits a moment to make sure
21935 the writer thread has reached step 7. */
21936 if (pthread_mutex_lock (&baton))
21939 /* Step 9: The second reader thread requests the lock. */
21940 err = pthread_rwlock_tryrdlock (&lock);
21943 else if (err != EBUSY)
21945 /* Step 10: Launch a timer, to test whether the next call blocks. */
21946 if (pthread_create (&timer, NULL, timer_func, NULL))
21948 /* Step 11: Release the baton. */
21949 if (pthread_mutex_unlock (&baton))
21951 /* Step 12: The second reader thread requests the lock. */
21952 err = pthread_rwlock_rdlock (&lock);
21960 writer_func (void *ignored)
21962 /* Step 4: Take the baton, so that the second reader thread does not go ahead
21964 if (pthread_mutex_lock (&baton))
21966 /* Step 5: Create the second reader thread. */
21967 if (pthread_create (&reader2, NULL, reader2_func, NULL))
21969 /* Step 6: Release the baton. */
21970 if (pthread_mutex_unlock (&baton))
21972 /* Step 7: The writer thread requests the lock. */
21973 if (pthread_rwlock_wrlock (&lock))
21981 reader1 = pthread_self ();
21983 /* Step 1: The main thread initializes the lock and the baton. */
21984 if (pthread_rwlock_init (&lock, NULL))
21986 if (pthread_mutex_init (&baton, NULL))
21988 /* Step 2: The main thread acquires the lock as a reader. */
21989 if (pthread_rwlock_rdlock (&lock))
21991 /* Step 3: Create the writer thread. */
21992 if (pthread_create (&writer, NULL, writer_func, NULL))
21994 /* Job done. Go to sleep. */
22002 if ac_fn_c_try_run
"$LINENO"; then :
22003 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
22005 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
22007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
22015 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
22016 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
22019 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
22025 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22027 /* end confdefs.h. */
22029 #include <pthread.h>
22034 #if __FreeBSD__ == 4
22035 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22036 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22037 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22038 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22040 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22048 if ac_fn_c_try_compile
"$LINENO"; then :
22050 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22059 cat >>confdefs.h
<<_ACEOF
22060 #define GNULIB_LOCK 1
22068 if test $ac_cv_func_lstat = yes; then
22070 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
22079 if test $REPLACE_LSTAT = 1; then
22088 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22103 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22110 if test $gl_cv_func_malloc_posix = yes; then
22112 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22118 if test $REPLACE_MALLOC = 1; then
22127 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
22135 GNULIB_MALLOC_POSIX
=1
22141 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22159 if test $gl_cv_have_include_next = yes; then
22160 gl_cv_next_math_h
='<'math.h
'>'
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
22163 $as_echo_n "checking absolute name of <math.h>... " >&6; }
22164 if ${gl_cv_next_math_h+:} false
; then :
22165 $as_echo_n "(cached) " >&6
22168 if test $ac_cv_header_math_h = yes; then
22173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h. */
22178 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22179 *) gl_absname_cpp
="$ac_cpp" ;;
22184 gl_dirsep_regex
='[/\\]'
22187 gl_dirsep_regex
='\/'
22190 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22191 gl_header_literal_regex
=`echo 'math.h' \
22192 | sed -e "$gl_make_literal_regex_sed"`
22193 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22200 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22201 sed -n "$gl_absolute_header_sed"`
22203 gl_header
=$gl_cv_absolute_math_h
22204 gl_cv_next_math_h
='"'$gl_header'"'
22206 gl_cv_next_math_h
='<'math.h
'>'
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
22212 $as_echo "$gl_cv_next_math_h" >&6; }
22214 NEXT_MATH_H
=$gl_cv_next_math_h
22216 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22217 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22218 gl_next_as_first_directive
='<'math.h
'>'
22220 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22221 gl_next_as_first_directive
=$gl_cv_next_math_h
22223 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
22230 $as_echo_n "checking whether NAN macro works... " >&6; }
22231 if ${gl_cv_header_math_nan_works+:} false
; then :
22232 $as_echo_n "(cached) " >&6
22234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h. */
22240 /* Solaris 10 has a broken definition of NAN. Other platforms
22241 fail to provide NAN, or provide it only in C99 mode; this
22242 test only needs to fail when NAN is provided but wrong. */
22252 if ac_fn_c_try_compile
"$LINENO"; then :
22253 gl_cv_header_math_nan_works
=yes
22255 gl_cv_header_math_nan_works
=no
22257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
22260 $as_echo "$gl_cv_header_math_nan_works" >&6; }
22261 if test $gl_cv_header_math_nan_works = no
; then
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
22265 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
22266 if ${gl_cv_header_math_huge_val_works+:} false
; then :
22267 $as_echo_n "(cached) " >&6
22269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h. */
22275 /* Solaris 10 has a broken definition of HUGE_VAL. */
22276 double d = HUGE_VAL;
22282 if ac_fn_c_try_compile
"$LINENO"; then :
22283 gl_cv_header_math_huge_val_works
=yes
22285 gl_cv_header_math_huge_val_works
=no
22287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
22290 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
22291 if test $gl_cv_header_math_huge_val_works = no
; then
22312 if case "$host_os" in
22314 *) test $ac_cv_func_mbsinit = yes ;;
22316 && test $ac_cv_func_mbrtowc = yes; then
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22322 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22323 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22324 $as_echo_n "(cached) " >&6
22328 # Guess no on AIX and OSF/1.
22329 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22330 # Guess yes otherwise.
22331 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22333 if test $LOCALE_JA != none
; then
22334 if test "$cross_compiling" = yes; then :
22337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h. */
22340 #include <locale.h>
22341 #include <string.h>
22342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22344 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22345 included before <wchar.h>. */
22346 #include <stddef.h>
22352 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22354 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22358 memset (&state, '\0', sizeof (mbstate_t));
22359 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22360 if (mbsinit (&state))
22366 if ac_fn_c_try_run
"$LINENO"; then :
22367 gl_cv_func_mbrtowc_incomplete_state
=yes
22369 gl_cv_func_mbrtowc_incomplete_state
=no
22371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22376 if test $LOCALE_FR_UTF8 != none
; then
22377 if test "$cross_compiling" = yes; then :
22380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22383 #include <locale.h>
22384 #include <string.h>
22385 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22387 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22388 included before <wchar.h>. */
22389 #include <stddef.h>
22395 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22397 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
22401 memset (&state, '\0', sizeof (mbstate_t));
22402 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22403 if (mbsinit (&state))
22409 if ac_fn_c_try_run
"$LINENO"; then :
22410 gl_cv_func_mbrtowc_incomplete_state
=yes
22412 gl_cv_func_mbrtowc_incomplete_state
=no
22414 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22415 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22423 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22429 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22430 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22431 $as_echo_n "(cached) " >&6
22435 # Guess no on Solaris 8.
22436 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22437 # Guess yes otherwise.
22438 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22440 if test $LOCALE_ZH_CN != none
; then
22441 if test "$cross_compiling" = yes; then :
22444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22447 #include <locale.h>
22448 #include <stdlib.h>
22449 #include <string.h>
22450 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22452 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22453 included before <wchar.h>. */
22454 #include <stddef.h>
22460 /* This fails on Solaris 8:
22461 mbrtowc returns 2, and sets wc to 0x00F0.
22462 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22463 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22465 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22469 memset (&state, '\0', sizeof (mbstate_t));
22470 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22471 && mbtowc (&wc, input + 3, 6) == 4)
22477 if ac_fn_c_try_run
"$LINENO"; then :
22478 gl_cv_func_mbrtowc_sanitycheck
=yes
22480 gl_cv_func_mbrtowc_sanitycheck
=no
22482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22490 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22492 REPLACE_MBSTATE_T
=0
22493 case "$gl_cv_func_mbrtowc_incomplete_state" in
22495 *) REPLACE_MBSTATE_T
=1 ;;
22497 case "$gl_cv_func_mbrtowc_sanitycheck" in
22499 *) REPLACE_MBSTATE_T
=1 ;;
22502 REPLACE_MBSTATE_T
=1
22507 if test $ac_cv_func_mbrtowc = no
; then
22509 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
22510 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22512 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22513 included before <wchar.h>. */
22514 #include <stddef.h>
22520 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
22526 cat >>confdefs.h
<<_ACEOF
22527 #define HAVE_DECL_MBRTOWC $ac_have_decl
22530 if test $ac_cv_have_decl_mbrtowc = yes; then
22534 if test $REPLACE_MBSTATE_T = 1; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
22541 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
22542 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
22543 $as_echo_n "(cached) " >&6
22547 # Guess no on Solaris.
22548 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
22549 # Guess yes otherwise.
22550 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22552 if test $LOCALE_FR_UTF8 != none
; then
22553 if test "$cross_compiling" = yes; then :
22556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22557 /* end confdefs.h. */
22559 #include <locale.h>
22560 #include <stdlib.h>
22561 #include <string.h>
22562 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22564 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22565 included before <wchar.h>. */
22566 #include <stddef.h>
22574 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22576 char input[] = "\303\237er";
22581 memset (&state, '\0', sizeof (mbstate_t));
22582 wc = (wchar_t) 0xBADFACE;
22583 ret = mbrtowc (&wc, input, 5, &state);
22586 if (!mbsinit (&state))
22589 memset (&state, '\0', sizeof (mbstate_t));
22590 ret = mbrtowc (NULL, input, 5, &state);
22591 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22593 if (!mbsinit (&state))
22599 if ac_fn_c_try_run
"$LINENO"; then :
22600 gl_cv_func_mbrtowc_null_arg1
=yes
22602 gl_cv_func_mbrtowc_null_arg1
=no
22604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22612 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22618 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22619 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22620 $as_echo_n "(cached) " >&6
22624 # Guess no on OSF/1.
22625 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22626 # Guess yes otherwise.
22627 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22629 if test $LOCALE_FR_UTF8 != none
; then
22630 if test "$cross_compiling" = yes; then :
22633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22636 #include <locale.h>
22637 #include <string.h>
22638 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22640 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22641 included before <wchar.h>. */
22642 #include <stddef.h>
22648 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22654 memset (&state, '\0', sizeof (mbstate_t));
22655 wc = (wchar_t) 0xBADFACE;
22656 mbrtowc (&wc, NULL, 5, &state);
22657 /* Check that wc was not modified. */
22658 if (wc != (wchar_t) 0xBADFACE)
22664 if ac_fn_c_try_run
"$LINENO"; then :
22665 gl_cv_func_mbrtowc_null_arg2
=yes
22667 gl_cv_func_mbrtowc_null_arg2
=no
22669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22670 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
22677 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
22685 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
22686 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
22687 $as_echo_n "(cached) " >&6
22691 # Guess no on HP-UX, Solaris, native Windows.
22692 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
22693 # Guess yes otherwise.
22694 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
22696 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
22697 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
22698 if test "$cross_compiling" = yes; then :
22701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22702 /* end confdefs.h. */
22704 #include <locale.h>
22705 #include <string.h>
22706 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22708 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22709 included before <wchar.h>. */
22710 #include <stddef.h>
22717 int found_some_locale = 0;
22718 /* This fails on Solaris. */
22719 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22721 char input[] = "B\303\274\303\237er"; /* "Büßer" */
22725 memset (&state, '\0', sizeof (mbstate_t));
22726 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22729 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
22732 found_some_locale = 1;
22734 /* This fails on HP-UX 11.11. */
22735 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22737 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22741 memset (&state, '\0', sizeof (mbstate_t));
22742 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22745 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22748 found_some_locale = 1;
22750 /* This fails on native Windows. */
22751 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22753 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
22757 memset (&state, '\0', sizeof (mbstate_t));
22758 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22761 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22764 found_some_locale = 1;
22766 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22768 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
22772 memset (&state, '\0', sizeof (mbstate_t));
22773 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22776 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22779 found_some_locale = 1;
22781 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22783 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
22787 memset (&state, '\0', sizeof (mbstate_t));
22788 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22791 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22794 found_some_locale = 1;
22796 return (found_some_locale ? result : 77);
22799 if ac_fn_c_try_run
"$LINENO"; then :
22800 gl_cv_func_mbrtowc_retval
=yes
22802 if test $?
!= 77; then
22803 gl_cv_func_mbrtowc_retval
=no
22807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22815 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22821 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22822 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
22823 $as_echo_n "(cached) " >&6
22827 # Guess no on Solaris 8 and 9.
22828 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
22829 # Guess yes otherwise.
22830 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
22832 if test $LOCALE_ZH_CN != none
; then
22833 if test "$cross_compiling" = yes; then :
22836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22839 #include <locale.h>
22840 #include <string.h>
22841 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22843 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22844 included before <wchar.h>. */
22845 #include <stddef.h>
22851 /* This fails on Solaris 8 and 9. */
22852 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22857 memset (&state, '\0', sizeof (mbstate_t));
22858 if (mbrtowc (&wc, "", 1, &state) != 0)
22864 if ac_fn_c_try_run
"$LINENO"; then :
22865 gl_cv_func_mbrtowc_nul_retval
=yes
22867 gl_cv_func_mbrtowc_nul_retval
=no
22869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22877 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
22882 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
22883 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
22884 $as_echo_n "(cached) " >&6
22888 # Guess yes on native Windows.
22889 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
22890 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
22894 if test "$cross_compiling" = yes; then :
22897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22900 #include <locale.h>
22901 #include <string.h>
22902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22904 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22905 included before <wchar.h>. */
22906 #include <stddef.h>
22913 if (setlocale (LC_ALL, "French_France.65001") != NULL)
22915 wchar_t wc = (wchar_t) 0xBADFACE;
22918 memset (&state, '\0', sizeof (mbstate_t));
22919 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
22920 && wc != (wchar_t) 0xBADFACE)
22923 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22925 wchar_t wc = (wchar_t) 0xBADFACE;
22928 memset (&state, '\0', sizeof (mbstate_t));
22929 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
22930 && wc != (wchar_t) 0xBADFACE)
22933 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22935 wchar_t wc = (wchar_t) 0xBADFACE;
22938 memset (&state, '\0', sizeof (mbstate_t));
22939 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
22940 && wc != (wchar_t) 0xBADFACE)
22943 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22945 wchar_t wc = (wchar_t) 0xBADFACE;
22948 memset (&state, '\0', sizeof (mbstate_t));
22949 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
22950 && wc != (wchar_t) 0xBADFACE)
22956 if ac_fn_c_try_run
"$LINENO"; then :
22957 gl_cv_func_mbrtowc_stores_incomplete
=no
22959 gl_cv_func_mbrtowc_stores_incomplete
=yes
22961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22968 if test $LOCALE_FR_UTF8 != none
; then
22969 if test "$cross_compiling" = yes; then :
22972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22975 #include <locale.h>
22976 #include <string.h>
22977 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22979 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22980 included before <wchar.h>. */
22981 #include <stddef.h>
22987 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22989 wchar_t wc = (wchar_t) 0xBADFACE;
22992 memset (&state, '\0', sizeof (mbstate_t));
22993 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
22994 && wc != (wchar_t) 0xBADFACE)
23000 if ac_fn_c_try_run
"$LINENO"; then :
23001 gl_cv_func_mbrtowc_stores_incomplete
=no
23003 gl_cv_func_mbrtowc_stores_incomplete
=yes
23005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
23015 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
23020 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
23021 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
23022 $as_echo_n "(cached) " >&6
23026 # Guess no on AIX and glibc systems.
23027 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
23028 # Guess yes on native Windows.
23029 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23030 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23032 if test "$cross_compiling" = yes; then :
23035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23036 /* end confdefs.h. */
23040 static mbstate_t mbs;
23044 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
23047 if ac_fn_c_try_run
"$LINENO"; then :
23048 gl_cv_func_mbrtowc_empty_input
=yes
23050 gl_cv_func_mbrtowc_empty_input
=no
23052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
23059 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
23063 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
23064 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
23065 $as_echo_n "(cached) " >&6
23068 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
23070 if test "$cross_compiling" = yes; then :
23072 # Guess yes on native Windows.
23073 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
23077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23079 #include <limits.h>
23080 #include <locale.h>
23088 char *locale = setlocale (LC_ALL, "C");
23091 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
23095 mbstate_t mbs = { 0, };
23096 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
23106 if ac_fn_c_try_run
"$LINENO"; then :
23107 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
23109 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
23111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
23118 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
23120 case "$gl_cv_func_mbrtowc_null_arg1" in
23123 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
23128 case "$gl_cv_func_mbrtowc_null_arg2" in
23131 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
23136 case "$gl_cv_func_mbrtowc_retval" in
23139 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
23144 case "$gl_cv_func_mbrtowc_nul_retval" in
23147 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
23152 case "$gl_cv_func_mbrtowc_stores_incomplete" in
23155 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
23160 case "$gl_cv_func_mbrtowc_empty_input" in
23163 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
23168 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
23171 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
23178 if test $REPLACE_MBSTATE_T = 1; then
23180 mingw
*) LIB_MBRTOWC
= ;;
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23185 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23186 if ${gl_cv_have_weak+:} false
; then :
23187 $as_echo_n "(cached) " >&6
23190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 extern void xyzzy ();
23202 if ac_fn_c_try_link
"$LINENO"; then :
23203 gl_cv_have_weak
=maybe
23205 rm -f core conftest.err conftest.
$ac_objext \
23206 conftest
$ac_exeext conftest.
$ac_ext
23207 if test $gl_cv_have_weak = maybe
; then
23208 if test "$cross_compiling" = yes; then :
23209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h. */
23212 Extensible Linking Format
23216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23217 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
23218 gl_cv_have_weak
="guessing yes"
23220 gl_cv_have_weak
="guessing no"
23226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23233 return (fputs == NULL);
23236 if ac_fn_c_try_run
"$LINENO"; then :
23237 gl_cv_have_weak
=yes
23241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23246 case " $LDFLAGS " in
23247 *" -static "*) gl_cv_have_weak
=no
;;
23249 case "$gl_cv_have_weak" in
23252 freebsd
* | dragonfly
*)
23254 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
23255 cat <<EOF > conftest2.c
23256 #include <pthread.h>
23257 #pragma weak pthread_mutexattr_gettype
23260 return (pthread_mutexattr_gettype != NULL);
23263 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
23264 || gl_cv_have_weak
=no
23265 rm -f conftest1.c libempty.so conftest2.c conftest
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23273 $as_echo "$gl_cv_have_weak" >&6; }
23274 case "$gl_cv_have_weak" in
23277 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23282 case "$gl_cv_have_weak" in
23283 *yes) LIB_MBRTOWC
= ;;
23284 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
23293 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
23302 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
23304 if test $REPLACE_MBSTATE_T = 1; then
23313 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
23323 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
23330 if test -n "$GCC"; then
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
23332 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
23333 if ${gl_cv_cc_vis_werror+:} false
; then :
23334 $as_echo_n "(cached) " >&6
23336 gl_save_CFLAGS
="$CFLAGS"
23337 CFLAGS
="$CFLAGS -Werror"
23338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23349 if ac_fn_c_try_compile
"$LINENO"; then :
23350 gl_cv_cc_vis_werror
=yes
23352 gl_cv_cc_vis_werror
=no
23354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23355 CFLAGS
="$gl_save_CFLAGS"
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
23359 $as_echo "$gl_cv_cc_vis_werror" >&6; }
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
23361 $as_echo_n "checking for simple visibility declarations... " >&6; }
23362 if ${gl_cv_cc_visibility+:} false
; then :
23363 $as_echo_n "(cached) " >&6
23365 gl_save_CFLAGS
="$CFLAGS"
23366 CFLAGS
="$CFLAGS -fvisibility=hidden"
23367 if test $gl_cv_cc_vis_werror = yes; then
23368 CFLAGS
="$CFLAGS -Werror"
23370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23371 /* end confdefs.h. */
23372 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
23373 extern __attribute__((__visibility__("default"))) int exportedvar;
23374 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
23375 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
23376 void dummyfunc (void) {}
23386 if ac_fn_c_try_compile
"$LINENO"; then :
23387 gl_cv_cc_visibility
=yes
23389 gl_cv_cc_visibility
=no
23391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23392 CFLAGS
="$gl_save_CFLAGS"
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
23396 $as_echo "$gl_cv_cc_visibility" >&6; }
23397 if test $gl_cv_cc_visibility = yes; then
23398 CFLAG_VISIBILITY
="-fvisibility=hidden"
23405 cat >>confdefs.h
<<_ACEOF
23406 #define HAVE_VISIBILITY $HAVE_VISIBILITY
23428 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
23444 if case "$host_os" in
23446 *) test $ac_cv_func_mbsinit = yes ;;
23448 && test $ac_cv_func_mbrtowc = yes; then
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23454 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23455 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23456 $as_echo_n "(cached) " >&6
23460 # Guess no on AIX and OSF/1.
23461 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23462 # Guess yes otherwise.
23463 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23465 if test $LOCALE_JA != none
; then
23466 if test "$cross_compiling" = yes; then :
23469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h. */
23472 #include <locale.h>
23473 #include <string.h>
23474 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23476 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23477 included before <wchar.h>. */
23478 #include <stddef.h>
23484 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23486 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23490 memset (&state, '\0', sizeof (mbstate_t));
23491 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23492 if (mbsinit (&state))
23498 if ac_fn_c_try_run
"$LINENO"; then :
23499 gl_cv_func_mbrtowc_incomplete_state
=yes
23501 gl_cv_func_mbrtowc_incomplete_state
=no
23503 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23504 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23508 if test $LOCALE_FR_UTF8 != none
; then
23509 if test "$cross_compiling" = yes; then :
23512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23515 #include <locale.h>
23516 #include <string.h>
23517 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23519 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23520 included before <wchar.h>. */
23521 #include <stddef.h>
23527 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23529 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23533 memset (&state, '\0', sizeof (mbstate_t));
23534 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23535 if (mbsinit (&state))
23541 if ac_fn_c_try_run
"$LINENO"; then :
23542 gl_cv_func_mbrtowc_incomplete_state
=yes
23544 gl_cv_func_mbrtowc_incomplete_state
=no
23546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23555 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23561 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23562 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23563 $as_echo_n "(cached) " >&6
23567 # Guess no on Solaris 8.
23568 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23569 # Guess yes otherwise.
23570 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23572 if test $LOCALE_ZH_CN != none
; then
23573 if test "$cross_compiling" = yes; then :
23576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23579 #include <locale.h>
23580 #include <stdlib.h>
23581 #include <string.h>
23582 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23584 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23585 included before <wchar.h>. */
23586 #include <stddef.h>
23592 /* This fails on Solaris 8:
23593 mbrtowc returns 2, and sets wc to 0x00F0.
23594 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23595 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23597 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23601 memset (&state, '\0', sizeof (mbstate_t));
23602 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23603 && mbtowc (&wc, input + 3, 6) == 4)
23609 if ac_fn_c_try_run
"$LINENO"; then :
23610 gl_cv_func_mbrtowc_sanitycheck
=yes
23612 gl_cv_func_mbrtowc_sanitycheck
=no
23614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23622 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23624 REPLACE_MBSTATE_T
=0
23625 case "$gl_cv_func_mbrtowc_incomplete_state" in
23627 *) REPLACE_MBSTATE_T
=1 ;;
23629 case "$gl_cv_func_mbrtowc_sanitycheck" in
23631 *) REPLACE_MBSTATE_T
=1 ;;
23634 REPLACE_MBSTATE_T
=1
23639 if test $ac_cv_func_mbsinit = no
; then
23641 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
23642 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23644 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23645 included before <wchar.h>. */
23646 #include <stddef.h>
23652 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
23658 cat >>confdefs.h
<<_ACEOF
23659 #define HAVE_DECL_MBSINIT $ac_have_decl
23662 if test $ac_cv_have_decl_mbsinit = yes; then
23666 if test $REPLACE_MBSTATE_T = 1; then
23670 mingw
*) REPLACE_MBSINIT
=1 ;;
23675 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
23684 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
23701 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
23716 if case "$host_os" in
23718 *) test $ac_cv_func_mbsinit = yes ;;
23720 && test $ac_cv_func_mbrtowc = yes; then
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23726 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23727 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23728 $as_echo_n "(cached) " >&6
23732 # Guess no on AIX and OSF/1.
23733 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23734 # Guess yes otherwise.
23735 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23737 if test $LOCALE_JA != none
; then
23738 if test "$cross_compiling" = yes; then :
23741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h. */
23744 #include <locale.h>
23745 #include <string.h>
23746 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23748 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23749 included before <wchar.h>. */
23750 #include <stddef.h>
23756 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23758 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23762 memset (&state, '\0', sizeof (mbstate_t));
23763 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23764 if (mbsinit (&state))
23770 if ac_fn_c_try_run
"$LINENO"; then :
23771 gl_cv_func_mbrtowc_incomplete_state
=yes
23773 gl_cv_func_mbrtowc_incomplete_state
=no
23775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23780 if test $LOCALE_FR_UTF8 != none
; then
23781 if test "$cross_compiling" = yes; then :
23784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 #include <locale.h>
23788 #include <string.h>
23789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23792 included before <wchar.h>. */
23793 #include <stddef.h>
23799 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23801 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23805 memset (&state, '\0', sizeof (mbstate_t));
23806 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23807 if (mbsinit (&state))
23813 if ac_fn_c_try_run
"$LINENO"; then :
23814 gl_cv_func_mbrtowc_incomplete_state
=yes
23816 gl_cv_func_mbrtowc_incomplete_state
=no
23818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23827 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23833 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23834 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23835 $as_echo_n "(cached) " >&6
23839 # Guess no on Solaris 8.
23840 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23841 # Guess yes otherwise.
23842 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23844 if test $LOCALE_ZH_CN != none
; then
23845 if test "$cross_compiling" = yes; then :
23848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23851 #include <locale.h>
23852 #include <stdlib.h>
23853 #include <string.h>
23854 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23856 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23857 included before <wchar.h>. */
23858 #include <stddef.h>
23864 /* This fails on Solaris 8:
23865 mbrtowc returns 2, and sets wc to 0x00F0.
23866 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23867 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23869 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23873 memset (&state, '\0', sizeof (mbstate_t));
23874 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23875 && mbtowc (&wc, input + 3, 6) == 4)
23881 if ac_fn_c_try_run
"$LINENO"; then :
23882 gl_cv_func_mbrtowc_sanitycheck
=yes
23884 gl_cv_func_mbrtowc_sanitycheck
=no
23886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23894 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23896 REPLACE_MBSTATE_T
=0
23897 case "$gl_cv_func_mbrtowc_incomplete_state" in
23899 *) REPLACE_MBSTATE_T
=1 ;;
23901 case "$gl_cv_func_mbrtowc_sanitycheck" in
23903 *) REPLACE_MBSTATE_T
=1 ;;
23906 REPLACE_MBSTATE_T
=1
23911 if test $ac_cv_func_mbsrtowcs = no
; then
23913 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
23914 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23916 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23917 included before <wchar.h>. */
23918 #include <stddef.h>
23924 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
23930 cat >>confdefs.h
<<_ACEOF
23931 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
23934 if test $ac_cv_have_decl_mbsrtowcs = yes; then
23935 REPLACE_MBSRTOWCS
=1
23938 if test $REPLACE_MBSTATE_T = 1; then
23939 REPLACE_MBSRTOWCS
=1
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
23948 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
23949 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
23950 $as_echo_n "(cached) " >&6
23954 # Guess no on HP-UX, Solaris, mingw.
23955 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
23956 # Guess yes otherwise.
23957 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
23959 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
23960 if test "$cross_compiling" = yes; then :
23963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h. */
23966 #include <locale.h>
23967 #include <string.h>
23968 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23970 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23971 included before <wchar.h>. */
23972 #include <stddef.h>
23979 /* Test whether the function supports a NULL destination argument.
23980 This fails on native Windows. */
23981 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
23983 const char input[] = "\337er";
23984 const char *src = input;
23987 memset (&state, '\0', sizeof (mbstate_t));
23988 if (mbsrtowcs (NULL, &src, 1, &state) != 3
23992 /* Test whether the function works when started with a conversion state
23993 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
23994 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23996 const char input[] = "B\303\274\303\237er";
23999 memset (&state, '\0', sizeof (mbstate_t));
24000 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24001 if (!mbsinit (&state))
24003 const char *src = input + 2;
24004 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24008 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24010 const char input[] = "<\306\374\313\334\270\354>";
24013 memset (&state, '\0', sizeof (mbstate_t));
24014 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
24015 if (!mbsinit (&state))
24017 const char *src = input + 4;
24018 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
24022 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24024 const char input[] = "B\250\271\201\060\211\070er";
24027 memset (&state, '\0', sizeof (mbstate_t));
24028 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24029 if (!mbsinit (&state))
24031 const char *src = input + 2;
24032 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24039 if ac_fn_c_try_run
"$LINENO"; then :
24040 gl_cv_func_mbsrtowcs_works
=yes
24042 gl_cv_func_mbsrtowcs_works
=no
24044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
24052 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
24054 case "$gl_cv_func_mbsrtowcs_works" in
24056 *) REPLACE_MBSRTOWCS
=1 ;;
24061 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
24070 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
24080 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
24097 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
24102 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
24111 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
24114 for ac_header
in bp-sym.h
24116 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24117 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
24118 cat >>confdefs.h
<<_ACEOF
24119 #define HAVE_BP_SYM_H 1
24139 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24145 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24147 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24148 if ${gl_cv_func_memmem_works_fast+:} false
; then :
24149 $as_echo_n "(cached) " >&6
24151 if test "$cross_compiling" = yes; then :
24152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24155 #include <features.h>
24156 #ifdef __GNU_LIBRARY__
24157 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24158 && !defined __UCLIBC__
24163 #include <cygwin/version.h>
24164 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24171 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24172 gl_cv_func_memmem_works_fast
="guessing yes"
24174 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
24180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24181 /* end confdefs.h. */
24183 #include <signal.h> /* for signal */
24184 #include <string.h> /* for memmem */
24185 #include <stdlib.h> /* for malloc */
24186 #include <unistd.h> /* for alarm */
24187 static void quit (int sig) { _exit (sig + 128); }
24194 size_t m = 1000000;
24195 char *haystack = (char *) malloc (2 * m + 1);
24196 char *needle = (char *) malloc (m + 1);
24197 /* Failure to compile this test due to missing alarm is okay,
24198 since all such platforms (mingw) also lack memmem. */
24199 signal (SIGALRM, quit);
24201 /* Check for quadratic performance. */
24202 if (haystack && needle)
24204 memset (haystack, 'A', 2 * m);
24205 haystack[2 * m] = 'B';
24206 memset (needle, 'A', m);
24208 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
24211 /* Free allocated memory, in case some sanitizer is watching. */
24220 if ac_fn_c_try_run
"$LINENO"; then :
24221 gl_cv_func_memmem_works_fast
=yes
24223 gl_cv_func_memmem_works_fast
=no
24225 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24226 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
24232 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
24233 case "$gl_cv_func_memmem_works_fast" in
24241 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24250 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24257 for ac_func
in memmem
24259 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
24260 if test "x$ac_cv_func_memmem" = xyes
; then :
24261 cat >>confdefs.h
<<_ACEOF
24262 #define HAVE_MEMMEM 1
24268 if test $ac_cv_func_memmem = yes; then
24274 if test $ac_cv_have_decl_memmem = no
; then
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24278 $as_echo_n "checking whether memmem works... " >&6; }
24279 if ${gl_cv_func_memmem_works_always+:} false
; then :
24280 $as_echo_n "(cached) " >&6
24282 if test "$cross_compiling" = yes; then :
24283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24284 /* end confdefs.h. */
24286 #ifdef __GNU_LIBRARY__
24287 #include <features.h>
24288 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24289 || __GLIBC_MINOR__ > 12)) \
24290 || (__GLIBC__ > 2)) \
24291 || defined __UCLIBC__
24294 #elif defined __CYGWIN__
24295 #include <cygwin/version.h>
24296 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24305 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24306 gl_cv_func_memmem_works_always
="guessing yes"
24308 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
24314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24317 #include <string.h> /* for memmem */
24318 #define P "_EF_BF_BD"
24319 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24320 #define NEEDLE P P P P P
24327 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24329 /* Check for empty needle behavior. */
24331 const char *haystack = "AAA";
24332 if (memmem (haystack, 3, NULL, 0) != haystack)
24341 if ac_fn_c_try_run
"$LINENO"; then :
24342 gl_cv_func_memmem_works_always
=yes
24344 gl_cv_func_memmem_works_always
=no
24346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24353 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24354 case "$gl_cv_func_memmem_works_always" in
24363 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24372 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24386 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
24396 for ac_func
in mempcpy
24398 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
24399 if test "x$ac_cv_func_mempcpy" = xyes
; then :
24400 cat >>confdefs.h
<<_ACEOF
24401 #define HAVE_MEMPCPY 1
24407 if test $ac_cv_func_mempcpy = no
; then
24411 if test $HAVE_MEMPCPY = 0; then
24420 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
24437 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
24446 if test $ac_cv_have_decl_memrchr = no
; then
24447 HAVE_DECL_MEMRCHR
=0
24450 for ac_func
in memrchr
24452 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24453 if test "x$ac_cv_func_memrchr" = xyes
; then :
24454 cat >>confdefs.h
<<_ACEOF
24455 #define HAVE_MEMRCHR 1
24462 if test $ac_cv_func_memrchr = no
; then
24471 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24486 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24493 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24494 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
24495 $as_echo_n "(cached) " >&6
24497 rm -rf conftest.dir
24498 if test "$cross_compiling" = yes; then :
24500 # Guess yes on Linux systems.
24501 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24502 # Guess yes on glibc systems.
24503 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24504 # Guess yes on MSVC, no on mingw.
24505 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24506 /* end confdefs.h. */
24513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24514 $EGREP "Known" >/dev
/null
2>&1; then :
24515 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
24517 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
24522 # If we don't know, obey --enable-cross-guesses.
24523 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
24527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24528 /* end confdefs.h. */
24530 # include <sys/types.h>
24531 # include <sys/stat.h>
24536 return mkdir ("conftest.dir/", 0700);
24541 if ac_fn_c_try_run
"$LINENO"; then :
24542 gl_cv_func_mkdir_trailing_slash_works
=yes
24544 gl_cv_func_mkdir_trailing_slash_works
=no
24546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24550 rm -rf conftest.dir
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24555 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24556 case "$gl_cv_func_mkdir_trailing_slash_works" in
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24564 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24565 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
24566 $as_echo_n "(cached) " >&6
24568 rm -rf conftest.dir
24569 if test "$cross_compiling" = yes; then :
24571 # Guess yes on glibc systems.
24572 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24573 # Guess yes on musl systems.
24574 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24575 # Guess no on native Windows.
24576 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
24577 # If we don't know, obey --enable-cross-guesses.
24578 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
24582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24583 /* end confdefs.h. */
24585 # include <sys/types.h>
24586 # include <sys/stat.h>
24591 return !mkdir ("conftest.dir/./", 0700);
24596 if ac_fn_c_try_run
"$LINENO"; then :
24597 gl_cv_func_mkdir_trailing_dot_works
=yes
24599 gl_cv_func_mkdir_trailing_dot_works
=no
24601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24605 rm -rf conftest.dir
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24610 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24611 case "$gl_cv_func_mkdir_trailing_dot_works" in
24616 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24621 if test $REPLACE_MKDIR = 1; then
24630 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
24635 for ac_func
in mkdtemp
24637 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24638 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
24639 cat >>confdefs.h
<<_ACEOF
24640 #define HAVE_MKDTEMP 1
24646 if test $ac_cv_func_mkdtemp = no
; then
24650 if test $HAVE_MKDTEMP = 0; then
24659 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
24675 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24685 if test $ac_cv_func_mkostemp != yes; then
24689 if test $HAVE_MKOSTEMP = 0; then
24698 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24705 cat >>confdefs.h
<<_ACEOF
24706 #define GNULIB_MKOSTEMP 1
24721 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
24726 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24735 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
24739 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24748 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24753 cat >>confdefs.h
<<_ACEOF
24754 #define GNULIB_MSVC_NOTHROW 1
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
24761 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
24762 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
24763 $as_echo_n "(cached) " >&6
24766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24767 /* end confdefs.h. */
24768 #include <netinet/in.h>
24777 if ac_fn_c_try_compile
"$LINENO"; then :
24778 gl_cv_header_netinet_in_h_selfcontained
=yes
24780 gl_cv_header_netinet_in_h_selfcontained
=no
24782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
24786 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
24787 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
24790 NETINET_IN_H
='netinet/in.h'
24791 for ac_header
in netinet
/in.h
24793 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24794 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
24795 cat >>confdefs.h
<<_ACEOF
24796 #define HAVE_NETINET_IN_H 1
24812 if test $gl_cv_have_include_next = yes; then
24813 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
24816 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
24817 if ${gl_cv_next_netinet_in_h+:} false
; then :
24818 $as_echo_n "(cached) " >&6
24821 if test $ac_cv_header_netinet_in_h = yes; then
24826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24827 /* end confdefs.h. */
24828 #include <netinet/in.h>
24831 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24832 *) gl_absname_cpp
="$ac_cpp" ;;
24837 gl_dirsep_regex
='[/\\]'
24840 gl_dirsep_regex
='\/'
24843 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24844 gl_header_literal_regex
=`echo 'netinet/in.h' \
24845 | sed -e "$gl_make_literal_regex_sed"`
24846 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24847 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24853 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24854 sed -n "$gl_absolute_header_sed"`
24856 gl_header
=$gl_cv_absolute_netinet_in_h
24857 gl_cv_next_netinet_in_h
='"'$gl_header'"'
24859 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
24865 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
24867 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
24869 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24871 gl_next_as_first_directive
='<'netinet
/in.h
'>'
24873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24874 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
24876 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
24881 if test $ac_cv_header_netinet_in_h = yes; then
24882 HAVE_NETINET_IN_H
=1
24884 HAVE_NETINET_IN_H
=0
24889 if test -n "$NETINET_IN_H"; then
24890 GL_GENERATE_NETINET_IN_H_TRUE
=
24891 GL_GENERATE_NETINET_IN_H_FALSE
='#'
24893 GL_GENERATE_NETINET_IN_H_TRUE
='#'
24894 GL_GENERATE_NETINET_IN_H_FALSE
=
24908 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
24914 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
24915 if ${gl_cv_func_open_slash+:} false
; then :
24916 $as_echo_n "(cached) " >&6
24918 # Assume that if we have lstat, we can also check symlinks.
24919 if test $ac_cv_func_lstat = yes; then
24921 ln -s conftest.tmp conftest.lnk
24923 if test "$cross_compiling" = yes; then :
24926 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
24927 gl_cv_func_open_slash
="guessing no" ;;
24929 gl_cv_func_open_slash
="guessing yes" ;;
24933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24938 # include <unistd.h>
24944 if (open ("conftest.lnk/", O_RDONLY) != -1)
24947 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
24952 if ac_fn_c_try_run
"$LINENO"; then :
24953 gl_cv_func_open_slash
=yes
24955 gl_cv_func_open_slash
=no
24957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24961 rm -f conftest.sl conftest.tmp conftest.lnk
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
24965 $as_echo "$gl_cv_func_open_slash" >&6; }
24966 case "$gl_cv_func_open_slash" in
24969 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
24974 case "$gl_cv_func_open_slash" in
24982 if test $REPLACE_OPEN = 0; then
24986 if test $ac_cv_func_fchdir = no
; then
24990 if test $HAVE_FCHDIR = 0; then
24997 if test $REPLACE_OPEN = 1; then
25006 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
25024 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25034 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
25038 # Solaris 10 lacks O_CLOEXEC.
25039 # Solaris 9 has *at functions, but uniformly mishandles trailing
25040 # slash in all of them.
25048 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
25057 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
25066 cat >>confdefs.h
<<_ACEOF
25067 #define GNULIB_OPENAT 1
25081 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
25088 for ac_func
in opendir
25090 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
25091 if test "x$ac_cv_func_opendir" = xyes
; then :
25092 cat >>confdefs.h
<<_ACEOF
25093 #define HAVE_OPENDIR 1
25099 if test $ac_cv_func_opendir = no
; then
25106 if test $ac_cv_func_fchdir = no
; then
25110 if test $HAVE_FCHDIR = 0; then
25111 if test $HAVE_OPENDIR = 1; then
25116 case $host_os,$HAVE_OPENDIR in
25118 REPLACE_OPENDIR
=1;;
25121 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
25130 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
25144 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
25155 for ac_func
in rawmemchr
25157 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
25158 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
25159 cat >>confdefs.h
<<_ACEOF
25160 #define HAVE_RAWMEMCHR 1
25166 if test $ac_cv_func_rawmemchr = no
; then
25170 if test $HAVE_RAWMEMCHR = 0; then
25179 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
25194 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
25201 for ac_func
in readdir
25203 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
25204 if test "x$ac_cv_func_readdir" = xyes
; then :
25205 cat >>confdefs.h
<<_ACEOF
25206 #define HAVE_READDIR 1
25212 if test $ac_cv_func_readdir = no
; then
25216 if test $HAVE_READDIR = 0; then
25225 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
25239 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25246 if test $ac_cv_func_readlink = no
; then
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25250 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25251 if ${gl_cv_decl_readlink_works+:} false
; then :
25252 $as_echo_n "(cached) " >&6
25254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h. */
25256 #include <unistd.h>
25257 /* Cause compilation failure if original declaration has wrong type. */
25258 ssize_t readlink (const char *, char *, size_t);
25267 if ac_fn_c_try_compile
"$LINENO"; then :
25268 gl_cv_decl_readlink_works
=yes
25270 gl_cv_decl_readlink_works
=no
25272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25275 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25277 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25278 if ${gl_cv_func_readlink_works+:} false
; then :
25279 $as_echo_n "(cached) " >&6
25281 # We have readlink, so assume ln -s works.
25282 ln -s conftest.no-such conftest.link
25283 ln -s conftest.link conftest.lnk2
25284 if test "$cross_compiling" = yes; then :
25286 # Guess yes on Linux systems.
25287 linux-
* | linux
) gl_cv_func_readlink_works
="guessing yes" ;;
25288 # Guess yes on glibc systems.
25289 *-gnu* | gnu
*) gl_cv_func_readlink_works
="guessing yes" ;;
25290 # If we don't know, obey --enable-cross-guesses.
25291 *) gl_cv_func_readlink_works
="$gl_cross_guess_normal" ;;
25295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h. */
25297 #include <unistd.h>
25303 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25308 if ac_fn_c_try_run
"$LINENO"; then :
25309 gl_cv_func_readlink_works
=yes
25311 gl_cv_func_readlink_works
=no
25313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25317 rm -f conftest.link conftest.lnk2
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25320 $as_echo "$gl_cv_func_readlink_works" >&6; }
25321 case "$gl_cv_func_readlink_works" in
25323 if test "$gl_cv_decl_readlink_works" != yes; then
25329 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25336 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25345 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25362 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
25369 if test $gl_cv_func_malloc_posix = yes; then
25371 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25377 if test $REPLACE_REALLOC = 1; then
25386 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
25394 GNULIB_REALLOC_POSIX
=1
25400 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
25410 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
25411 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
25412 $as_echo_n "(cached) " >&6
25414 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25415 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25416 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25417 # Assume that if we have lstat, we can also check symlinks.
25418 if test $ac_cv_func_lstat = yes; then
25419 ln -s conftest.f conftest.lnk
25421 if test "$cross_compiling" = yes; then :
25423 # Guess yes on Linux systems.
25424 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25425 # Guess yes on glibc systems.
25426 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25427 # Guess no on native Windows.
25428 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
25429 # If we don't know, obey --enable-cross-guesses.
25430 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
25434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h. */
25437 # include <stdio.h>
25438 # include <stdlib.h>
25444 if (rename ("conftest.f1", "conftest.f2/") == 0)
25446 if (rename ("conftest.d1", "conftest.d2/") != 0)
25449 if (rename ("conftest.f", "conftest.lnk/") == 0)
25458 if ac_fn_c_try_run
"$LINENO"; then :
25459 gl_cv_func_rename_slash_dst_works
=yes
25461 gl_cv_func_rename_slash_dst_works
=no
25463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25467 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
25471 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
25472 case "$gl_cv_func_rename_slash_dst_works" in
25477 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
25483 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
25484 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
25485 $as_echo_n "(cached) " >&6
25487 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25488 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25489 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25490 # Assume that if we have lstat, we can also check symlinks.
25491 if test $ac_cv_func_lstat = yes; then
25492 ln -s conftest.f conftest.lnk
25494 if test "$cross_compiling" = yes; then :
25496 # Guess yes on Linux systems.
25497 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25498 # Guess yes on glibc systems.
25499 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25500 # Guess yes on native Windows.
25501 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25502 # If we don't know, obey --enable-cross-guesses.
25503 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
25507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25510 # include <stdio.h>
25511 # include <stdlib.h>
25517 if (rename ("conftest.f1/", "conftest.d3") == 0)
25519 if (rename ("conftest.d1/", "conftest.d2") != 0)
25522 if (rename ("conftest.lnk/", "conftest.f") == 0)
25531 if ac_fn_c_try_run
"$LINENO"; then :
25532 gl_cv_func_rename_slash_src_works
=yes
25534 gl_cv_func_rename_slash_src_works
=no
25536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25540 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
25544 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
25545 case "$gl_cv_func_rename_slash_src_works" in
25550 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
25557 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
25558 if ${gl_cv_func_rename_link_works+:} false
; then :
25559 $as_echo_n "(cached) " >&6
25561 if test $ac_cv_func_link = yes; then
25562 if test $cross_compiling != yes; then
25563 rm -rf conftest.f conftest.f1 conftest.f2
25564 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
25565 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
25566 if test "$cross_compiling" = yes; then :
25570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25571 /* end confdefs.h. */
25573 # include <errno.h>
25574 # include <stdio.h>
25575 # include <stdlib.h>
25576 # include <unistd.h>
25582 if (rename ("conftest.f", "conftest.f1"))
25584 if (unlink ("conftest.f1"))
25587 /* Allow either the POSIX-required behavior, where the
25588 previous rename kept conftest.f, or the (better) NetBSD
25589 behavior, where it removed conftest.f. */
25590 if (rename ("conftest.f", "conftest.f") != 0
25591 && errno != ENOENT)
25594 if (rename ("conftest.f1", "conftest.f1") == 0)
25596 if (rename ("conftest.f2", "conftest.f2") != 0)
25604 if ac_fn_c_try_run
"$LINENO"; then :
25605 gl_cv_func_rename_link_works
=yes
25607 gl_cv_func_rename_link_works
=no
25609 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25610 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25614 gl_cv_func_rename_link_works
="guessing no"
25616 rm -rf conftest.f conftest.f1 conftest.f2
25619 # Guess yes on Linux systems.
25620 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
25621 # Guess yes on glibc systems.
25622 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
25623 # Guess yes on native Windows.
25624 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
25625 # If we don't know, obey --enable-cross-guesses.
25626 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
25630 gl_cv_func_rename_link_works
=yes
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
25635 $as_echo "$gl_cv_func_rename_link_works" >&6; }
25636 case "$gl_cv_func_rename_link_works" in
25641 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
25647 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
25648 if ${gl_cv_func_rename_dest_works+:} false
; then :
25649 $as_echo_n "(cached) " >&6
25651 rm -rf conftest.f conftest.d1 conftest.d2
25652 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
25653 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25654 if test "$cross_compiling" = yes; then :
25656 # Guess yes on Linux systems.
25657 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
25658 # Guess yes on glibc systems.
25659 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
25660 # Guess no on native Windows.
25661 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
25662 # If we don't know, obey --enable-cross-guesses.
25663 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
25667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h. */
25670 # include <stdio.h>
25671 # include <stdlib.h>
25677 if (rename ("conftest.d1", "conftest.d2") != 0)
25679 if (rename ("conftest.d2", "conftest.f") == 0)
25687 if ac_fn_c_try_run
"$LINENO"; then :
25688 gl_cv_func_rename_dest_works
=yes
25690 gl_cv_func_rename_dest_works
=no
25692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25696 rm -rf conftest.f conftest.d1 conftest.d2
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
25700 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
25701 case "$gl_cv_func_rename_dest_works" in
25706 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
25711 if test $REPLACE_RENAME = 1; then
25720 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
25734 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
25741 for ac_func
in rewinddir
25743 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
25744 if test "x$ac_cv_func_rewinddir" = xyes
; then :
25745 cat >>confdefs.h
<<_ACEOF
25746 #define HAVE_REWINDDIR 1
25752 if test $ac_cv_func_rewinddir = no
; then
25756 if test $HAVE_REWINDDIR = 0; then
25765 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
25779 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
25787 $as_echo_n "checking whether rmdir works... " >&6; }
25788 if ${gl_cv_func_rmdir_works+:} false
; then :
25789 $as_echo_n "(cached) " >&6
25792 touch conftest.
file
25793 if test "$cross_compiling" = yes; then :
25795 # Guess yes on Linux systems.
25796 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
25797 # Guess yes on glibc systems.
25798 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
25799 # Guess no on native Windows.
25800 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
25801 # If we don't know, obey --enable-cross-guesses.
25802 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
25806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25807 /* end confdefs.h. */
25811 # include <unistd.h>
25812 #else /* on Windows with MSVC */
25813 # include <direct.h>
25820 if (!rmdir ("conftest.file/"))
25822 else if (errno != ENOTDIR)
25824 if (!rmdir ("conftest.dir/./"))
25832 if ac_fn_c_try_run
"$LINENO"; then :
25833 gl_cv_func_rmdir_works
=yes
25835 gl_cv_func_rmdir_works
=no
25837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25841 rm -rf conftest.dir conftest.
file
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
25844 $as_echo "$gl_cv_func_rmdir_works" >&6; }
25845 case "$gl_cv_func_rmdir_works" in
25852 if test $REPLACE_RMDIR = 1; then
25861 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
25875 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
25884 if test $ac_cv_func_setenv = no
; then
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
25888 $as_echo_n "checking whether setenv validates arguments... " >&6; }
25889 if ${gl_cv_func_setenv_works+:} false
; then :
25890 $as_echo_n "(cached) " >&6
25892 if test "$cross_compiling" = yes; then :
25894 # Guess yes on glibc systems.
25895 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
25896 # Guess yes on musl systems.
25897 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
25898 # If we don't know, obey --enable-cross-guesses.
25899 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
25903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h. */
25906 #include <stdlib.h>
25908 #include <string.h>
25916 if (setenv ("", "", 0) != -1)
25918 else if (errno != EINVAL)
25922 if (setenv ("a", "=", 1) != 0)
25924 else if (strcmp (getenv ("a"), "=") != 0)
25933 if ac_fn_c_try_run
"$LINENO"; then :
25934 gl_cv_func_setenv_works
=yes
25936 gl_cv_func_setenv_works
=no
25938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25939 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25944 $as_echo "$gl_cv_func_setenv_works" >&6; }
25945 case "$gl_cv_func_setenv_works" in
25953 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
25962 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
25976 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
25986 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
25987 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
25988 $as_echo_n "(cached) " >&6
25991 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
25992 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
25993 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
25994 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
25995 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
25996 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
25997 # If we don't know, obey --enable-cross-guesses.
25999 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
26004 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
26008 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26009 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
26013 case "$gl_cv_func_setlocale_null_all_mtsafe" in
26014 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
26015 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
26018 cat >>confdefs.h
<<_ACEOF
26019 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
26024 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
26025 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
26026 $as_echo_n "(cached) " >&6
26029 # Guess no on OpenBSD, AIX.
26031 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
26032 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
26033 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
26034 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
26035 # If we don't know, obey --enable-cross-guesses.
26037 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
26042 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
26046 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26047 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
26051 case "$gl_cv_func_setlocale_null_one_mtsafe" in
26052 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
26053 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
26056 cat >>confdefs.h
<<_ACEOF
26057 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
26061 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26063 mingw
*) LIB_SETLOCALE_NULL
= ;;
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
26068 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
26069 if ${gl_cv_have_weak+:} false
; then :
26070 $as_echo_n "(cached) " >&6
26073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26074 /* end confdefs.h. */
26075 extern void xyzzy ();
26085 if ac_fn_c_try_link
"$LINENO"; then :
26086 gl_cv_have_weak
=maybe
26088 rm -f core conftest.err conftest.
$ac_objext \
26089 conftest
$ac_exeext conftest.
$ac_ext
26090 if test $gl_cv_have_weak = maybe
; then
26091 if test "$cross_compiling" = yes; then :
26092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26093 /* end confdefs.h. */
26095 Extensible Linking Format
26099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26100 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
26101 gl_cv_have_weak
="guessing yes"
26103 gl_cv_have_weak
="guessing no"
26109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26110 /* end confdefs.h. */
26116 return (fputs == NULL);
26119 if ac_fn_c_try_run
"$LINENO"; then :
26120 gl_cv_have_weak
=yes
26124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26125 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26129 case " $LDFLAGS " in
26130 *" -static "*) gl_cv_have_weak
=no
;;
26132 case "$gl_cv_have_weak" in
26135 freebsd
* | dragonfly
*)
26137 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
26138 cat <<EOF > conftest2.c
26139 #include <pthread.h>
26140 #pragma weak pthread_mutexattr_gettype
26143 return (pthread_mutexattr_gettype != NULL);
26146 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
26147 || gl_cv_have_weak
=no
26148 rm -f conftest1.c libempty.so conftest2.c conftest
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
26156 $as_echo "$gl_cv_have_weak" >&6; }
26157 case "$gl_cv_have_weak" in
26160 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
26165 case "$gl_cv_have_weak" in
26166 *yes) LIB_SETLOCALE_NULL
= ;;
26167 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
26172 LIB_SETLOCALE_NULL
=
26176 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26185 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
26192 if test -n "$GCC"; then
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
26194 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
26195 if ${gl_cv_cc_vis_werror+:} false
; then :
26196 $as_echo_n "(cached) " >&6
26198 gl_save_CFLAGS
="$CFLAGS"
26199 CFLAGS
="$CFLAGS -Werror"
26200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26211 if ac_fn_c_try_compile
"$LINENO"; then :
26212 gl_cv_cc_vis_werror
=yes
26214 gl_cv_cc_vis_werror
=no
26216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26217 CFLAGS
="$gl_save_CFLAGS"
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
26221 $as_echo "$gl_cv_cc_vis_werror" >&6; }
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
26223 $as_echo_n "checking for simple visibility declarations... " >&6; }
26224 if ${gl_cv_cc_visibility+:} false
; then :
26225 $as_echo_n "(cached) " >&6
26227 gl_save_CFLAGS
="$CFLAGS"
26228 CFLAGS
="$CFLAGS -fvisibility=hidden"
26229 if test $gl_cv_cc_vis_werror = yes; then
26230 CFLAGS
="$CFLAGS -Werror"
26232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26234 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
26235 extern __attribute__((__visibility__("default"))) int exportedvar;
26236 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
26237 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
26238 void dummyfunc (void) {}
26248 if ac_fn_c_try_compile
"$LINENO"; then :
26249 gl_cv_cc_visibility
=yes
26251 gl_cv_cc_visibility
=no
26253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26254 CFLAGS
="$gl_save_CFLAGS"
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
26258 $as_echo "$gl_cv_cc_visibility" >&6; }
26259 if test $gl_cv_cc_visibility = yes; then
26260 CFLAG_VISIBILITY
="-fvisibility=hidden"
26267 cat >>confdefs.h
<<_ACEOF
26268 #define HAVE_VISIBILITY $HAVE_VISIBILITY
26279 GNULIB_SETLOCALE_NULL
=1
26285 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
26300 if test $gl_cv_have_include_next = yes; then
26301 gl_cv_next_signal_h
='<'signal.h
'>'
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26304 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26305 if ${gl_cv_next_signal_h+:} false
; then :
26306 $as_echo_n "(cached) " >&6
26311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26313 #include <signal.h>
26316 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26317 *) gl_absname_cpp
="$ac_cpp" ;;
26322 gl_dirsep_regex
='[/\\]'
26325 gl_dirsep_regex
='\/'
26328 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26329 gl_header_literal_regex
=`echo 'signal.h' \
26330 | sed -e "$gl_make_literal_regex_sed"`
26331 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26332 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26338 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26339 sed -n "$gl_absolute_header_sed"`
26341 gl_header
=$gl_cv_absolute_signal_h
26342 gl_cv_next_signal_h
='"'$gl_header'"'
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26347 $as_echo "$gl_cv_next_signal_h" >&6; }
26349 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
26351 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26353 gl_next_as_first_directive
='<'signal.h
'>'
26355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26356 gl_next_as_first_directive
=$gl_cv_next_signal_h
26358 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
26364 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26365 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26366 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26367 #include <signal.h>
26370 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
26373 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
26382 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26383 #include <signal.h>
26386 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
26389 HAVE_SIGHANDLER_T
=0
26397 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26398 /* <sys/types.h> is not needed according to POSIX, but the
26399 <sys/socket.h> in i386-unknown-freebsd4.10 and
26400 powerpc-apple-darwin5.5 required it. */
26401 #include <sys/types.h>
26402 #if HAVE_SYS_SOCKET_H
26403 # include <sys/socket.h>
26404 #elif HAVE_WS2TCPIP_H
26405 # include <ws2tcpip.h>
26409 if test "x$ac_cv_type_socklen_t" = xyes
; then :
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26413 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26414 if ${gl_cv_socklen_t_equiv+:} false
; then :
26415 $as_echo_n "(cached) " >&6
26417 # Systems have either "struct sockaddr *" or
26418 # "void *" as the second argument to getpeername
26419 gl_cv_socklen_t_equiv
=
26420 for arg2
in "struct sockaddr" void
; do
26421 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
26422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h. */
26424 #include <sys/types.h>
26425 #include <sys/socket.h>
26427 int getpeername (int, $arg2 *, $t *);
26432 getpeername (0, 0, &len);
26437 if ac_fn_c_try_compile
"$LINENO"; then :
26438 gl_cv_socklen_t_equiv
="$t"
26440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26441 test "$gl_cv_socklen_t_equiv" != "" && break
26443 test "$gl_cv_socklen_t_equiv" != "" && break
26445 if test "$gl_cv_socklen_t_equiv" = ""; then
26446 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26451 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26453 cat >>confdefs.h
<<_ACEOF
26454 #define socklen_t $gl_cv_socklen_t_equiv
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26461 $as_echo_n "checking for ssize_t... " >&6; }
26462 if ${gt_cv_ssize_t+:} false
; then :
26463 $as_echo_n "(cached) " >&6
26465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26466 /* end confdefs.h. */
26467 #include <sys/types.h>
26471 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26477 if ac_fn_c_try_compile
"$LINENO"; then :
26482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26485 $as_echo "$gt_cv_ssize_t" >&6; }
26486 if test $gt_cv_ssize_t = no
; then
26488 $as_echo "#define ssize_t int" >>confdefs.h
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26502 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26503 if ${gl_cv_func_stat_file_slash+:} false
; then :
26504 $as_echo_n "(cached) " >&6
26507 # Assume that if we have lstat, we can also check symlinks.
26508 if test $ac_cv_func_lstat = yes; then
26509 ln -s conftest.tmp conftest.lnk
26511 if test "$cross_compiling" = yes; then :
26513 # Guess yes on Linux systems.
26514 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
26515 # Guess yes on glibc systems.
26516 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26517 # If we don't know, obey --enable-cross-guesses.
26518 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
26522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26523 /* end confdefs.h. */
26524 #include <sys/stat.h>
26531 if (!stat ("conftest.tmp/", &st))
26534 if (!stat ("conftest.lnk/", &st))
26543 if ac_fn_c_try_run
"$LINENO"; then :
26544 gl_cv_func_stat_file_slash
=yes
26546 gl_cv_func_stat_file_slash
=no
26548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26552 rm -f conftest.tmp conftest.lnk
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26555 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26556 case $gl_cv_func_stat_file_slash in
26560 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26570 if test $REPLACE_STAT = 1; then
26579 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
26591 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
26611 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
26619 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>
26620 #include <sys/stat.h>
26622 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
26624 cat >>confdefs.h
<<_ACEOF
26625 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26629 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26630 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
26631 $as_echo_n "(cached) " >&6
26633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26634 /* end confdefs.h. */
26636 #include <sys/types.h>
26637 #include <sys/stat.h>
26638 #if HAVE_SYS_TIME_H
26639 # include <sys/time.h>
26642 struct timespec ts;
26655 if ac_fn_c_try_compile
"$LINENO"; then :
26656 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
26658 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
26660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26663 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26664 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26666 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26670 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>
26671 #include <sys/stat.h>
26673 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
26675 cat >>confdefs.h
<<_ACEOF
26676 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26681 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26682 #include <sys/stat.h>
26684 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
26686 cat >>confdefs.h
<<_ACEOF
26687 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26692 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>
26693 #include <sys/stat.h>
26695 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
26697 cat >>confdefs.h
<<_ACEOF
26698 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26714 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>
26715 #include <sys/stat.h>
26717 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
26719 cat >>confdefs.h
<<_ACEOF
26720 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26725 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26726 #include <sys/stat.h>
26728 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
26730 cat >>confdefs.h
<<_ACEOF
26731 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26736 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>
26737 #include <sys/stat.h>
26739 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
26741 cat >>confdefs.h
<<_ACEOF
26742 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26755 $as_echo_n "checking for working stdalign.h... " >&6; }
26756 if ${gl_cv_header_working_stdalign_h+:} false
; then :
26757 $as_echo_n "(cached) " >&6
26759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h. */
26761 #include <stdalign.h>
26762 #include <stddef.h>
26764 /* Test that alignof yields a result consistent with offsetof.
26765 This catches GCC bug 52023
26766 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26768 template <class t> struct alignof_helper { char a; t b; };
26769 # define ao(type) offsetof (alignof_helper<type>, b)
26771 # define ao(type) offsetof (struct { char a; type b; }, b)
26773 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26774 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26775 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26777 /* Test _Alignas only on platforms where gnulib can help. */
26779 ((defined __cplusplus && 201103 <= __cplusplus) \
26780 || (defined __APPLE__ && defined __MACH__ \
26781 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
26783 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
26784 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
26785 || 1300 <= _MSC_VER)
26786 struct alignas_test { char c; char alignas (8) alignas_8; };
26787 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26799 if ac_fn_c_try_compile
"$LINENO"; then :
26800 gl_cv_header_working_stdalign_h
=yes
26802 gl_cv_header_working_stdalign_h
=no
26804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26807 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26809 if test $gl_cv_header_working_stdalign_h = yes; then
26812 STDALIGN_H
='stdalign.h'
26816 if test -n "$STDALIGN_H"; then
26817 GL_GENERATE_STDALIGN_H_TRUE
=
26818 GL_GENERATE_STDALIGN_H_FALSE
='#'
26820 GL_GENERATE_STDALIGN_H_TRUE
='#'
26821 GL_GENERATE_STDALIGN_H_FALSE
=
26829 if test "$ac_cv_header_stdbool_h" = yes; then
26832 if test -z "$GCC"; then
26833 STDBOOL_H
='stdbool.h'
26843 STDBOOL_H
='stdbool.h'
26846 if test -n "$STDBOOL_H"; then
26847 GL_GENERATE_STDBOOL_H_TRUE
=
26848 GL_GENERATE_STDBOOL_H_FALSE
='#'
26850 GL_GENERATE_STDBOOL_H_TRUE
='#'
26851 GL_GENERATE_STDBOOL_H_FALSE
=
26855 if test "$ac_cv_type__Bool" = yes; then
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
26868 $as_echo_n "checking for good max_align_t... " >&6; }
26869 if ${gl_cv_type_max_align_t+:} false
; then :
26870 $as_echo_n "(cached) " >&6
26872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h. */
26874 #include <stddef.h>
26875 unsigned int s = sizeof (max_align_t);
26876 #if defined __GNUC__ || defined __IBM__ALIGNOF__
26877 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
26878 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
26889 if ac_fn_c_try_compile
"$LINENO"; then :
26890 gl_cv_type_max_align_t
=yes
26892 gl_cv_type_max_align_t
=no
26894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
26898 $as_echo "$gl_cv_type_max_align_t" >&6; }
26899 if test $gl_cv_type_max_align_t = no
; then
26904 if test $gt_cv_c_wchar_t = no
; then
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26910 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26911 if ${gl_cv_decl_null_works+:} false
; then :
26912 $as_echo_n "(cached) " >&6
26914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h. */
26916 #include <stddef.h>
26917 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26927 if ac_fn_c_try_compile
"$LINENO"; then :
26928 gl_cv_decl_null_works
=yes
26930 gl_cv_decl_null_works
=no
26932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26935 $as_echo "$gl_cv_decl_null_works" >&6; }
26936 if test $gl_cv_decl_null_works = no
; then
26942 if test -n "$STDDEF_H"; then
26943 GL_GENERATE_STDDEF_H_TRUE
=
26944 GL_GENERATE_STDDEF_H_FALSE
='#'
26946 GL_GENERATE_STDDEF_H_TRUE
='#'
26947 GL_GENERATE_STDDEF_H_FALSE
=
26950 if test -n "$STDDEF_H"; then
26959 if test $gl_cv_have_include_next = yes; then
26960 gl_cv_next_stddef_h
='<'stddef.h
'>'
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26963 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26964 if ${gl_cv_next_stddef_h+:} false
; then :
26965 $as_echo_n "(cached) " >&6
26970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26971 /* end confdefs.h. */
26972 #include <stddef.h>
26975 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26976 *) gl_absname_cpp
="$ac_cpp" ;;
26981 gl_dirsep_regex
='[/\\]'
26984 gl_dirsep_regex
='\/'
26987 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26988 gl_header_literal_regex
=`echo 'stddef.h' \
26989 | sed -e "$gl_make_literal_regex_sed"`
26990 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26991 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26997 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26998 sed -n "$gl_absolute_header_sed"`
27000 gl_header
=$gl_cv_absolute_stddef_h
27001 gl_cv_next_stddef_h
='"'$gl_header'"'
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27006 $as_echo "$gl_cv_next_stddef_h" >&6; }
27008 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
27010 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27012 gl_next_as_first_directive
='<'stddef.h
'>'
27014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27015 gl_next_as_first_directive
=$gl_cv_next_stddef_h
27017 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
27027 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27038 if test $gl_cv_have_include_next = yes; then
27039 gl_cv_next_stdio_h
='<'stdio.h
'>'
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27042 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
27043 if ${gl_cv_next_stdio_h+:} false
; then :
27044 $as_echo_n "(cached) " >&6
27049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27050 /* end confdefs.h. */
27054 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27055 *) gl_absname_cpp
="$ac_cpp" ;;
27060 gl_dirsep_regex
='[/\\]'
27063 gl_dirsep_regex
='\/'
27066 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27067 gl_header_literal_regex
=`echo 'stdio.h' \
27068 | sed -e "$gl_make_literal_regex_sed"`
27069 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27070 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27076 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27077 sed -n "$gl_absolute_header_sed"`
27079 gl_header
=$gl_cv_absolute_stdio_h
27080 gl_cv_next_stdio_h
='"'$gl_header'"'
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27085 $as_echo "$gl_cv_next_stdio_h" >&6; }
27087 NEXT_STDIO_H
=$gl_cv_next_stdio_h
27089 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27091 gl_next_as_first_directive
='<'stdio.h
'>'
27093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27094 gl_next_as_first_directive
=$gl_cv_next_stdio_h
27096 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27103 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27104 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
27105 $as_echo_n "(cached) " >&6
27107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27108 /* end confdefs.h. */
27110 #define __STDC_FORMAT_MACROS 1
27112 #include <inttypes.h>
27113 /* For non-mingw systems, compilation will trivially succeed.
27114 For mingw, compilation will succeed for older mingw (system
27115 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27116 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27117 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27118 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27129 if ac_fn_c_try_compile
"$LINENO"; then :
27130 gl_cv_func_printf_attribute_flavor
=system
27132 gl_cv_func_printf_attribute_flavor
=gnu
27134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27137 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
27138 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
27140 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27147 cat >>confdefs.h
<<_ACEOF
27148 #define GNULIB_FSCANF 1
27155 cat >>confdefs.h
<<_ACEOF
27156 #define GNULIB_SCANF 1
27194 if test $gl_cv_have_include_next = yes; then
27195 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27198 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27199 if ${gl_cv_next_stdlib_h+:} false
; then :
27200 $as_echo_n "(cached) " >&6
27205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27207 #include <stdlib.h>
27210 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27211 *) gl_absname_cpp
="$ac_cpp" ;;
27216 gl_dirsep_regex
='[/\\]'
27219 gl_dirsep_regex
='\/'
27222 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27223 gl_header_literal_regex
=`echo 'stdlib.h' \
27224 | sed -e "$gl_make_literal_regex_sed"`
27225 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27226 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27232 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27233 sed -n "$gl_absolute_header_sed"`
27235 gl_header
=$gl_cv_absolute_stdlib_h
27236 gl_cv_next_stdlib_h
='"'$gl_header'"'
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27241 $as_echo "$gl_cv_next_stdlib_h" >&6; }
27243 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
27245 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27247 gl_next_as_first_directive
='<'stdlib.h
'>'
27249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27250 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
27252 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
27266 for ac_func
in strchrnul
27268 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
27269 if test "x$ac_cv_func_strchrnul" = xyes
; then :
27270 cat >>confdefs.h
<<_ACEOF
27271 #define HAVE_STRCHRNUL 1
27277 if test $ac_cv_func_strchrnul = no
; then
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
27281 $as_echo_n "checking whether strchrnul works... " >&6; }
27282 if ${gl_cv_func_strchrnul_works+:} false
; then :
27283 $as_echo_n "(cached) " >&6
27285 if test "$cross_compiling" = yes; then :
27286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27287 /* end confdefs.h. */
27289 #if defined __CYGWIN__
27290 #include <cygwin/version.h>
27291 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
27299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27300 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27301 gl_cv_func_strchrnul_works
="guessing yes"
27303 gl_cv_func_strchrnul_works
="guessing no"
27309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h. */
27312 #include <string.h> /* for strchrnul */
27317 const char *buf = "a";
27318 return strchrnul (buf, 'b') != buf + 1;
27324 if ac_fn_c_try_run
"$LINENO"; then :
27325 gl_cv_func_strchrnul_works
=yes
27327 gl_cv_func_strchrnul_works
=no
27329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
27336 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
27337 case "$gl_cv_func_strchrnul_works" in
27339 *) REPLACE_STRCHRNUL
=1 ;;
27343 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
27352 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
27367 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
27375 if test $ac_cv_func_strdup = yes; then
27376 if test $gl_cv_func_malloc_posix != yes; then
27381 if test $ac_cv_have_decl_strdup = no
; then
27385 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
27394 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
27409 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
27420 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
27422 $as_echo_n "checking for working strerror function... " >&6; }
27423 if ${gl_cv_func_working_strerror+:} false
; then :
27424 $as_echo_n "(cached) " >&6
27426 if test "$cross_compiling" = yes; then :
27428 # Guess yes on glibc systems.
27429 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
27430 # Guess yes on musl systems.
27431 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
27432 # If we don't know, obey --enable-cross-guesses.
27433 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
27437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h. */
27439 #include <string.h>
27444 if (!*strerror (-2)) return 1;
27449 if ac_fn_c_try_run
"$LINENO"; then :
27450 gl_cv_func_working_strerror
=yes
27452 gl_cv_func_working_strerror
=no
27454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
27461 $as_echo "$gl_cv_func_working_strerror" >&6; }
27462 case "$gl_cv_func_working_strerror" in
27469 case "$gl_cv_func_strerror_r_works" in
27470 *no
) REPLACE_STRERROR
=1 ;;
27477 if test $REPLACE_STRERROR = 1; then
27486 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
27491 cat >>confdefs.h
<<_ACEOF
27492 #define GNULIB_STRERROR 1
27507 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
27513 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
27522 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
27528 if test $ac_cv_header_sys_socket_h != yes; then
27529 for ac_header
in winsock2.h
27531 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27532 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
27533 cat >>confdefs.h
<<_ACEOF
27534 #define HAVE_WINSOCK2_H 1
27542 if test "$ac_cv_header_winsock2_h" = yes; then
27544 UNISTD_H_HAVE_WINSOCK2_H
=1
27545 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27559 if test $ac_cv_have_decl_strerror_r = no
; then
27560 HAVE_DECL_STRERROR_R
=0
27563 if test $ac_cv_func_strerror_r = yes; then
27564 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27565 if test $gl_cv_func_strerror_r_posix_signature = yes; then
27566 case "$gl_cv_func_strerror_r_works" in
27567 *no
) REPLACE_STRERROR_R
=1 ;;
27570 REPLACE_STRERROR_R
=1
27573 REPLACE_STRERROR_R
=1
27577 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
27586 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
27599 GNULIB_STRERROR_R
=1
27605 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
27611 cat >>confdefs.h
<<_ACEOF
27612 #define GNULIB_STRERROR_R_POSIX 1
27621 if test $REPLACE_STRSTR = 0; then
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
27623 $as_echo_n "checking whether strstr works in linear time... " >&6; }
27624 if ${gl_cv_func_strstr_linear+:} false
; then :
27625 $as_echo_n "(cached) " >&6
27627 if test "$cross_compiling" = yes; then :
27628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27631 #include <features.h>
27632 #ifdef __GNU_LIBRARY__
27633 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27634 && !(defined __i386__ || defined __x86_64__) \
27635 && !defined __UCLIBC__
27640 #include <cygwin/version.h>
27641 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27648 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27649 gl_cv_func_strstr_linear
="guessing yes"
27651 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
27657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27658 /* end confdefs.h. */
27661 /* z/OS does not deliver signals while strstr() is running (thanks to
27662 restrictions on its LE runtime), which prevents us from limiting the
27663 running time of this test. */
27664 # error "This test does not work properly on z/OS"
27666 #include <signal.h> /* for signal */
27667 #include <string.h> /* for strstr */
27668 #include <stdlib.h> /* for malloc */
27669 #include <unistd.h> /* for alarm */
27670 static void quit (int sig) { _exit (sig + 128); }
27677 size_t m = 1000000;
27678 char *haystack = (char *) malloc (2 * m + 2);
27679 char *needle = (char *) malloc (m + 2);
27680 /* Failure to compile this test due to missing alarm is okay,
27681 since all such platforms (mingw) also have quadratic strstr. */
27682 signal (SIGALRM, quit);
27684 /* Check for quadratic performance. */
27685 if (haystack && needle)
27687 memset (haystack, 'A', 2 * m);
27688 haystack[2 * m] = 'B';
27689 haystack[2 * m + 1] = 0;
27690 memset (needle, 'A', m);
27693 if (!strstr (haystack, needle))
27696 /* Free allocated memory, in case some sanitizer is watching. */
27705 if ac_fn_c_try_run
"$LINENO"; then :
27706 gl_cv_func_strstr_linear
=yes
27708 gl_cv_func_strstr_linear
=no
27710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
27717 $as_echo "$gl_cv_func_strstr_linear" >&6; }
27718 case "$gl_cv_func_strstr_linear" in
27726 if test $REPLACE_STRSTR = 1; then
27735 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
27741 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
27745 $as_echo_n "checking whether strstr works... " >&6; }
27746 if ${gl_cv_func_strstr_works_always+:} false
; then :
27747 $as_echo_n "(cached) " >&6
27749 if test "$cross_compiling" = yes; then :
27750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h. */
27753 #ifdef __GNU_LIBRARY__
27754 #include <features.h>
27755 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27756 || defined __UCLIBC__
27759 #elif defined __CYGWIN__
27760 #include <cygwin/version.h>
27761 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27770 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27771 gl_cv_func_strstr_works_always
="guessing yes"
27773 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
27779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27780 /* end confdefs.h. */
27782 #include <string.h> /* for strstr */
27783 #ifdef __GNU_LIBRARY__
27784 #include <features.h>
27785 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
27789 #define P "_EF_BF_BD"
27790 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
27791 #define NEEDLE P P P P P
27796 return !!strstr (HAYSTACK, NEEDLE);
27802 if ac_fn_c_try_run
"$LINENO"; then :
27803 gl_cv_func_strstr_works_always
=yes
27805 gl_cv_func_strstr_works_always
=no
27807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
27814 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
27815 case "$gl_cv_func_strstr_works_always" in
27823 if test $REPLACE_STRSTR = 1; then
27832 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
27846 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
27854 for ac_func
in strtok_r
27856 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
27857 if test "x$ac_cv_func_strtok_r" = xyes
; then :
27858 cat >>confdefs.h
<<_ACEOF
27859 #define HAVE_STRTOK_R 1
27865 if test $ac_cv_func_strtok_r = yes; then
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
27868 $as_echo_n "checking whether strtok_r works... " >&6; }
27869 if ${gl_cv_func_strtok_r_works+:} false
; then :
27870 $as_echo_n "(cached) " >&6
27872 if test "$cross_compiling" = yes; then :
27874 # Guess no on glibc systems.
27875 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
27876 # Guess yes on native Windows.
27877 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
27878 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
27882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h. */
27885 #ifndef __OPTIMIZE__
27886 # define __OPTIMIZE__ 1
27888 #undef __OPTIMIZE_SIZE__
27889 #undef __NO_INLINE__
27890 #include <stdlib.h>
27891 #include <string.h>
27896 static const char dummy[] = "\177\01a";
27897 char delimiters[] = "xxxxxxxx";
27898 char *save_ptr = (char *) dummy;
27899 strtok_r (delimiters, "x", &save_ptr);
27900 strtok_r (NULL, "x", &save_ptr);
27908 if ac_fn_c_try_run
"$LINENO"; then :
27909 gl_cv_func_strtok_r_works
=yes
27911 gl_cv_func_strtok_r_works
=no
27913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
27920 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
27921 case "$gl_cv_func_strtok_r_works" in
27923 UNDEFINE_STRTOK_R
=1
27930 if test $ac_cv_have_decl_strtok_r = no
; then
27931 HAVE_DECL_STRTOK_R
=0
27934 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
27943 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
27960 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
27980 if test $gl_cv_have_include_next = yes; then
27981 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27984 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27985 if ${gl_cv_next_sys_stat_h+:} false
; then :
27986 $as_echo_n "(cached) " >&6
27989 if test $ac_cv_header_sys_stat_h = yes; then
27994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27995 /* end confdefs.h. */
27996 #include <sys/stat.h>
27999 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28000 *) gl_absname_cpp
="$ac_cpp" ;;
28005 gl_dirsep_regex
='[/\\]'
28008 gl_dirsep_regex
='\/'
28011 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28012 gl_header_literal_regex
=`echo 'sys/stat.h' \
28013 | sed -e "$gl_make_literal_regex_sed"`
28014 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28015 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28021 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28022 sed -n "$gl_absolute_header_sed"`
28024 gl_header
=$gl_cv_absolute_sys_stat_h
28025 gl_cv_next_sys_stat_h
='"'$gl_header'"'
28027 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
28033 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
28035 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
28037 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28039 gl_next_as_first_directive
='<'sys
/stat.h
'>'
28041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28042 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
28044 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
28053 WINDOWS_STAT_TIMESPEC
=0
28062 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
28063 #include <sys/stat.h>
28065 if test "x$ac_cv_type_nlink_t" = xyes
; then :
28069 $as_echo "#define nlink_t int" >>confdefs.h
28096 if test $gl_cv_have_include_next = yes; then
28097 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
28100 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
28101 if ${gl_cv_next_sys_uio_h+:} false
; then :
28102 $as_echo_n "(cached) " >&6
28105 if test $ac_cv_header_sys_uio_h = yes; then
28110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h. */
28112 #include <sys/uio.h>
28115 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28116 *) gl_absname_cpp
="$ac_cpp" ;;
28121 gl_dirsep_regex
='[/\\]'
28124 gl_dirsep_regex
='\/'
28127 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28128 gl_header_literal_regex
=`echo 'sys/uio.h' \
28129 | sed -e "$gl_make_literal_regex_sed"`
28130 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28131 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28137 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28138 sed -n "$gl_absolute_header_sed"`
28140 gl_header
=$gl_cv_absolute_sys_uio_h
28141 gl_cv_next_sys_uio_h
='"'$gl_header'"'
28143 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
28149 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
28151 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
28153 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28155 gl_next_as_first_directive
='<'sys
/uio.h
'>'
28157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28158 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
28160 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
28165 if test $ac_cv_header_sys_uio_h = yes; then
28188 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,
28189 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28190 been included before. */
28191 #if defined __MINGW32__
28192 # include <unistd.h>
28197 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
28203 cat >>confdefs.h
<<_ACEOF
28204 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
28207 if test $ac_cv_have_decl_localtime_r = no
; then
28208 HAVE_DECL_LOCALTIME_R
=0
28212 if test $ac_cv_func_localtime_r = yes; then
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
28215 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
28216 if ${gl_cv_time_r_posix+:} false
; then :
28217 $as_echo_n "(cached) " >&6
28219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28220 /* end confdefs.h. */
28221 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28222 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28223 been included before. */
28224 #if defined __MINGW32__
28225 # include <unistd.h>
28232 /* We don't need to append 'restrict's to the argument types,
28233 even though the POSIX signature has the 'restrict's,
28234 since C99 says they can't affect type compatibility. */
28235 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
28237 /* Check the return type is a pointer.
28238 On HP-UX 10 it is 'int'. */
28239 *localtime_r (0, 0);
28245 if ac_fn_c_try_compile
"$LINENO"; then :
28246 gl_cv_time_r_posix
=yes
28248 gl_cv_time_r_posix
=no
28250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
28254 $as_echo "$gl_cv_time_r_posix" >&6; }
28255 if test $gl_cv_time_r_posix = yes; then
28256 REPLACE_LOCALTIME_R
=0
28258 REPLACE_LOCALTIME_R
=1
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
28263 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
28264 if ${gl_cv_func_localtime_r_inline+:} false
; then :
28265 $as_echo_n "(cached) " >&6
28267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28268 /* end confdefs.h. */
28269 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28270 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28271 been included before. */
28272 #if defined __MINGW32__
28273 # include <unistd.h>
28282 localtime_r (&a, &r);
28289 if ac_fn_c_try_link
"$LINENO"; then :
28290 gl_cv_func_localtime_r_inline
=yes
28292 gl_cv_func_localtime_r_inline
=no
28294 rm -f core conftest.err conftest.
$ac_objext \
28295 conftest
$ac_exeext conftest.
$ac_ext
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
28299 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
28300 if test $gl_cv_func_localtime_r_inline = yes; then
28301 REPLACE_LOCALTIME_R
=1
28305 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
28314 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
28331 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
28347 if test $gl_cv_have_include_next = yes; then
28348 gl_cv_next_unistd_h
='<'unistd.h
'>'
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28351 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
28352 if ${gl_cv_next_unistd_h+:} false
; then :
28353 $as_echo_n "(cached) " >&6
28356 if test $ac_cv_header_unistd_h = yes; then
28361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28362 /* end confdefs.h. */
28363 #include <unistd.h>
28366 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28367 *) gl_absname_cpp
="$ac_cpp" ;;
28372 gl_dirsep_regex
='[/\\]'
28375 gl_dirsep_regex
='\/'
28378 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28379 gl_header_literal_regex
=`echo 'unistd.h' \
28380 | sed -e "$gl_make_literal_regex_sed"`
28381 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28388 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28389 sed -n "$gl_absolute_header_sed"`
28391 gl_header
=$gl_cv_absolute_unistd_h
28392 gl_cv_next_unistd_h
='"'$gl_header'"'
28394 gl_cv_next_unistd_h
='<'unistd.h
'>'
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
28400 $as_echo "$gl_cv_next_unistd_h" >&6; }
28402 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
28404 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28406 gl_next_as_first_directive
='<'unistd.h
'>'
28408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28409 gl_next_as_first_directive
=$gl_cv_next_unistd_h
28411 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
28416 if test $ac_cv_header_unistd_h = yes; then
28437 if test $ac_cv_have_decl_unsetenv = no
; then
28438 HAVE_DECL_UNSETENV
=0
28440 for ac_func
in unsetenv
28442 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
28443 if test "x$ac_cv_func_unsetenv" = xyes
; then :
28444 cat >>confdefs.h
<<_ACEOF
28445 #define HAVE_UNSETENV 1
28451 if test $ac_cv_func_unsetenv = no
; then
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
28456 $as_echo_n "checking for unsetenv() return type... " >&6; }
28457 if ${gt_cv_func_unsetenv_ret+:} false
; then :
28458 $as_echo_n "(cached) " >&6
28460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28461 /* end confdefs.h. */
28464 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
28465 #include <stdlib.h>
28470 int unsetenv (const char *name);
28480 if ac_fn_c_try_compile
"$LINENO"; then :
28481 gt_cv_func_unsetenv_ret
='int'
28483 gt_cv_func_unsetenv_ret
='void'
28485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
28488 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
28489 if test $gt_cv_func_unsetenv_ret = 'void'; then
28491 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
28497 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
28498 if ${gl_cv_func_unsetenv_works+:} false
; then :
28499 $as_echo_n "(cached) " >&6
28501 if test "$cross_compiling" = yes; then :
28503 # Guess yes on glibc systems.
28504 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
28505 # If we don't know, obey --enable-cross-guesses.
28506 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
28510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28511 /* end confdefs.h. */
28513 #include <stdlib.h>
28515 extern char **environ;
28521 char entry1[] = "a=1";
28522 char entry2[] = "b=2";
28523 char *env[] = { entry1, entry2, NULL };
28524 if (putenv ((char *) "a=1")) return 1;
28525 if (putenv (entry2)) return 2;
28528 if (getenv ("a")) return 3;
28529 if (!unsetenv ("") || errno != EINVAL) return 4;
28532 if (!getenv ("a")) return 5;
28535 if (getenv ("a")) return 6;
28541 if ac_fn_c_try_run
"$LINENO"; then :
28542 gl_cv_func_unsetenv_works
=yes
28544 gl_cv_func_unsetenv_works
=no
28546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
28552 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
28553 case "$gl_cv_func_unsetenv_works" in
28561 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
28570 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
28588 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
28604 if test $gl_cv_have_include_next = yes; then
28605 gl_cv_next_wchar_h
='<'wchar.h
'>'
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
28608 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
28609 if ${gl_cv_next_wchar_h+:} false
; then :
28610 $as_echo_n "(cached) " >&6
28613 if test $ac_cv_header_wchar_h = yes; then
28618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28619 /* end confdefs.h. */
28623 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28624 *) gl_absname_cpp
="$ac_cpp" ;;
28629 gl_dirsep_regex
='[/\\]'
28632 gl_dirsep_regex
='\/'
28635 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28636 gl_header_literal_regex
=`echo 'wchar.h' \
28637 | sed -e "$gl_make_literal_regex_sed"`
28638 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28639 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28645 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28646 sed -n "$gl_absolute_header_sed"`
28648 gl_header
=$gl_cv_absolute_wchar_h
28649 gl_cv_next_wchar_h
='"'$gl_header'"'
28651 gl_cv_next_wchar_h
='<'wchar.h
'>'
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
28657 $as_echo "$gl_cv_next_wchar_h" >&6; }
28659 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
28661 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28663 gl_next_as_first_directive
='<'wchar.h
'>'
28665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28666 gl_next_as_first_directive
=$gl_cv_next_wchar_h
28668 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
28673 if test $ac_cv_header_wchar_h = yes; then
28683 if test $gt_cv_c_wint_t = yes; then
28701 if test $ac_cv_func_iswcntrl = yes; then
28709 if test $gt_cv_c_wint_t = yes; then
28727 if test $gl_cv_have_include_next = yes; then
28728 gl_cv_next_wctype_h
='<'wctype.h
'>'
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
28731 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
28732 if ${gl_cv_next_wctype_h+:} false
; then :
28733 $as_echo_n "(cached) " >&6
28736 if test $ac_cv_header_wctype_h = yes; then
28741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28742 /* end confdefs.h. */
28743 #include <wctype.h>
28746 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28747 *) gl_absname_cpp
="$ac_cpp" ;;
28752 gl_dirsep_regex
='[/\\]'
28755 gl_dirsep_regex
='\/'
28758 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28759 gl_header_literal_regex
=`echo 'wctype.h' \
28760 | sed -e "$gl_make_literal_regex_sed"`
28761 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28762 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28768 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28769 sed -n "$gl_absolute_header_sed"`
28771 gl_header
=$gl_cv_absolute_wctype_h
28772 gl_cv_next_wctype_h
='"'$gl_header'"'
28774 gl_cv_next_wctype_h
='<'wctype.h
'>'
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
28780 $as_echo "$gl_cv_next_wctype_h" >&6; }
28782 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
28784 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28786 gl_next_as_first_directive
='<'wctype.h
'>'
28788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28789 gl_next_as_first_directive
=$gl_cv_next_wctype_h
28791 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
28796 if test $ac_cv_header_wctype_h = yes; then
28797 if test $ac_cv_func_iswcntrl = yes; then
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
28799 $as_echo_n "checking whether iswcntrl works... " >&6; }
28800 if ${gl_cv_func_iswcntrl_works+:} false
; then :
28801 $as_echo_n "(cached) " >&6
28804 if test "$cross_compiling" = yes; then :
28805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28806 /* end confdefs.h. */
28807 #include <stdlib.h>
28808 #if __GNU_LIBRARY__ == 1
28809 Linux libc5 i18n is broken.
28819 if ac_fn_c_try_compile
"$LINENO"; then :
28820 gl_cv_func_iswcntrl_works
="guessing yes"
28822 gl_cv_func_iswcntrl_works
="guessing no"
28824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28828 /* end confdefs.h. */
28830 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28831 included before <wchar.h>.
28832 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28833 must be included before <wchar.h>. */
28834 #include <stddef.h>
28838 #include <wctype.h>
28839 int main () { return iswprint ('x') == 0; }
28842 if ac_fn_c_try_run
"$LINENO"; then :
28843 gl_cv_func_iswcntrl_works
=yes
28845 gl_cv_func_iswcntrl_works
=no
28847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
28854 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
28862 if test $GNULIB_OVERRIDES_WINT_T = 1; then
28865 case "$gl_cv_func_iswcntrl_works" in
28866 *yes) REPLACE_ISWCNTRL
=0 ;;
28867 *) REPLACE_ISWCNTRL
=1 ;;
28872 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
28876 if test $REPLACE_ISWCNTRL = 1; then
28879 for ac_func
in towlower
28881 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
28882 if test "x$ac_cv_func_towlower" = xyes
; then :
28883 cat >>confdefs.h
<<_ACEOF
28884 #define HAVE_TOWLOWER 1
28890 if test $ac_cv_func_towlower = yes; then
28893 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28894 included before <wchar.h>.
28895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28896 must be included before <wchar.h>. */
28897 #include <stddef.h>
28902 # include <wctype.h>
28906 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
28912 cat >>confdefs.h
<<_ACEOF
28913 #define HAVE_DECL_TOWLOWER $ac_have_decl
28916 if test $ac_cv_have_decl_towlower = yes; then
28925 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
28930 $as_echo_n "checking for wctype_t... " >&6; }
28931 if ${gl_cv_type_wctype_t+:} false
; then :
28932 $as_echo_n "(cached) " >&6
28934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28936 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28937 included before <wchar.h>.
28938 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28939 must be included before <wchar.h>. */
28940 #include <stddef.h>
28945 # include <wctype.h>
28957 if ac_fn_c_try_compile
"$LINENO"; then :
28958 gl_cv_type_wctype_t
=yes
28960 gl_cv_type_wctype_t
=no
28962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
28966 $as_echo "$gl_cv_type_wctype_t" >&6; }
28967 if test $gl_cv_type_wctype_t = no
; then
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
28972 $as_echo_n "checking for wctrans_t... " >&6; }
28973 if ${gl_cv_type_wctrans_t+:} false
; then :
28974 $as_echo_n "(cached) " >&6
28976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28977 /* end confdefs.h. */
28978 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28979 included before <wchar.h>.
28980 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28981 must be included before <wchar.h>. */
28982 #include <stddef.h>
28986 #include <wctype.h>
28997 if ac_fn_c_try_compile
"$LINENO"; then :
28998 gl_cv_type_wctrans_t
=yes
29000 gl_cv_type_wctrans_t
=no
29002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29006 $as_echo "$gl_cv_type_wctrans_t" >&6; }
29007 if test $gl_cv_type_wctrans_t = no
; then
29026 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
29041 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
29056 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
29071 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
29075 # End of code from modules
29097 gl_source_base
='tests'
29098 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
29100 gl_module_indicator_condition
=$gltests_WITNESS
29110 LIBGNU_LIBDEPS
="$gl_libdeps"
29112 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
29116 am__api_version
='1.15'
29118 # Find a good install program. We prefer a C program (faster),
29119 # so one script is as good as another. But avoid the broken or
29120 # incompatible versions:
29121 # SysV /etc/install, /usr/sbin/install
29122 # SunOS /usr/etc/install
29123 # IRIX /sbin/install
29125 # AmigaOS /C/install, which installs bootblocks on floppy discs
29126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
29127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
29128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
29129 # OS/2's system install, which has a completely different semantic
29130 # ./install, which can be erroneously created by make from ./install.sh.
29131 # Reject install programs that cannot install multiple files.
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
29133 $as_echo_n "checking for a BSD-compatible install... " >&6; }
29134 if test -z "$INSTALL"; then
29135 if ${ac_cv_path_install+:} false
; then :
29136 $as_echo_n "(cached) " >&6
29138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29139 for as_dir
in $PATH
29142 test -z "$as_dir" && as_dir
=.
29143 # Account for people who put trailing slashes in PATH elements.
29144 case $as_dir/ in #((
29145 .
/ | .
// |
/[cC
]/* | \
29146 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
29147 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
29150 # OSF1 and SCO ODT 3.0 have their own names for install.
29151 # Don't use installbsd from OSF since it installs stuff as root
29153 for ac_prog
in ginstall scoinst
install; do
29154 for ac_exec_ext
in '' $ac_executable_extensions; do
29155 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
29156 if test $ac_prog = install &&
29157 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
29158 # AIX install. It has an incompatible calling convention.
29160 elif test $ac_prog = install &&
29161 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
29162 # program-specific install script used by HP pwplus--don't use.
29165 rm -rf conftest.one conftest.two conftest.dir
29166 echo one
> conftest.one
29167 echo two
> conftest.two
29169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
29170 test -s conftest.one
&& test -s conftest.two
&&
29171 test -s conftest.dir
/conftest.one
&&
29172 test -s conftest.dir
/conftest.two
29174 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
29187 rm -rf conftest.one conftest.two conftest.dir
29190 if test "${ac_cv_path_install+set}" = set; then
29191 INSTALL
=$ac_cv_path_install
29193 # As a last resort, use the slow shell script. Don't cache a
29194 # value for INSTALL within a source directory, because that will
29195 # break other packages using the cache if that directory is
29196 # removed, or if the value is a relative name.
29197 INSTALL
=$ac_install_sh
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
29201 $as_echo "$INSTALL" >&6; }
29203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29204 # It thinks the first close brace ends the variable substitution.
29205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
29207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
29209 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
29212 $as_echo_n "checking whether build environment is sane... " >&6; }
29213 # Reject unsafe characters in $srcdir or the absolute working directory
29214 # name. Accept space and tab only in the latter.
29218 *[\\\"\
#\$\&\'\`$am_lf]*)
29219 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
29222 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
29223 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
29226 # Do 'set' in a subshell so we don't clobber the current shell's
29227 # arguments. Must try -L first in case configure is actually a
29228 # symlink; some systems play weird games with the mod time of symlinks
29229 # (eg FreeBSD returns the mod time of the symlink's containing
29233 for am_try
in 1 2; do
29234 echo "timestamp, slept: $am_has_slept" > conftest.
file
29235 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
29236 if test "$*" = "X"; then
29238 set X
`ls -t "$srcdir/configure" conftest.file`
29240 if test "$*" != "X $srcdir/configure conftest.file" \
29241 && test "$*" != "X conftest.file $srcdir/configure"; then
29243 # If neither matched, then we have a broken ls. This can happen
29244 # if, for instance, CONFIG_SHELL is bash and it inherits a
29245 # broken ls alias from the environment. This has actually
29246 # happened. Such a system could not be considered "sane".
29247 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
29248 alias in your environment" "$LINENO" 5
29250 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
29257 test "$2" = conftest.
file
29263 as_fn_error $?
"newly created file is older than distributed files!
29264 Check your system clock" "$LINENO" 5
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29267 $as_echo "yes" >&6; }
29268 # If we didn't sleep, we still need to ensure time stamps of config.status and
29269 # generated files are strictly newer.
29271 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
29276 rm -f conftest.
file
29278 test "$program_prefix" != NONE
&&
29279 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
29280 # Use a double $ so make ignores it.
29281 test "$program_suffix" != NONE
&&
29282 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
29283 # Double any \ or $.
29284 # By default was `s,x,x', remove it if useless.
29285 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
29286 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
29288 # Expand $ac_aux_dir to an absolute path.
29289 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
29291 if test x
"${MISSING+set}" != xset
; then
29292 case $am_aux_dir in
29294 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
29296 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
29299 # Use eval to expand $SHELL
29300 if eval "$MISSING --is-lightweight"; then
29301 am_missing_run
="$MISSING "
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
29305 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
29308 if test x
"${install_sh+set}" != xset
; then
29309 case $am_aux_dir in
29311 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
29313 install_sh
="\${SHELL} $am_aux_dir/install-sh"
29317 # Installed binaries are usually stripped using 'strip' when the user
29318 # run "make install-strip". However 'strip' might not be the right
29319 # tool to use in cross-compilation environments, therefore Automake
29320 # will honor the 'STRIP' environment variable to overrule this program.
29321 if test "$cross_compiling" != no
; then
29322 if test -n "$ac_tool_prefix"; then
29323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29324 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29326 $as_echo_n "checking for $ac_word... " >&6; }
29327 if ${ac_cv_prog_STRIP+:} false
; then :
29328 $as_echo_n "(cached) " >&6
29330 if test -n "$STRIP"; then
29331 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
29333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29334 for as_dir
in $PATH
29337 test -z "$as_dir" && as_dir
=.
29338 for ac_exec_ext
in '' $ac_executable_extensions; do
29339 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29340 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
29341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29350 STRIP
=$ac_cv_prog_STRIP
29351 if test -n "$STRIP"; then
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
29353 $as_echo "$STRIP" >&6; }
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29356 $as_echo "no" >&6; }
29361 if test -z "$ac_cv_prog_STRIP"; then
29363 # Extract the first word of "strip", so it can be a program name with args.
29364 set dummy strip
; ac_word
=$2
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29366 $as_echo_n "checking for $ac_word... " >&6; }
29367 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
29368 $as_echo_n "(cached) " >&6
29370 if test -n "$ac_ct_STRIP"; then
29371 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
29373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29374 for as_dir
in $PATH
29377 test -z "$as_dir" && as_dir
=.
29378 for ac_exec_ext
in '' $ac_executable_extensions; do
29379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29380 ac_cv_prog_ac_ct_STRIP
="strip"
29381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29390 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
29391 if test -n "$ac_ct_STRIP"; then
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
29393 $as_echo "$ac_ct_STRIP" >&6; }
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29396 $as_echo "no" >&6; }
29399 if test "x$ac_ct_STRIP" = x
; then
29402 case $cross_compiling:$ac_tool_warned in
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29406 ac_tool_warned
=yes ;;
29411 STRIP
="$ac_cv_prog_STRIP"
29415 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
29417 for ac_prog
in gawk mawk nawk
awk
29419 # Extract the first word of "$ac_prog", so it can be a program name with args.
29420 set dummy
$ac_prog; ac_word
=$2
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29422 $as_echo_n "checking for $ac_word... " >&6; }
29423 if ${ac_cv_prog_AWK+:} false
; then :
29424 $as_echo_n "(cached) " >&6
29426 if test -n "$AWK"; then
29427 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
29429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29430 for as_dir
in $PATH
29433 test -z "$as_dir" && as_dir
=.
29434 for ac_exec_ext
in '' $ac_executable_extensions; do
29435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29436 ac_cv_prog_AWK
="$ac_prog"
29437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29446 AWK
=$ac_cv_prog_AWK
29447 if test -n "$AWK"; then
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29449 $as_echo "$AWK" >&6; }
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29452 $as_echo "no" >&6; }
29456 test -n "$AWK" && break
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29460 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29462 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29463 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
29464 $as_echo_n "(cached) " >&6
29466 cat >conftest.
make <<\_ACEOF
29469 @
echo '@@@%%%=$(MAKE)=@@@%%%'
29471 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29472 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29473 *@@@
%%%=?
*=@@@
%%%*)
29474 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
29476 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
29478 rm -f conftest.
make
29480 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29482 $as_echo "yes" >&6; }
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29486 $as_echo "no" >&6; }
29487 SET_MAKE
="MAKE=${MAKE-make}"
29490 rm -rf .tst
2>/dev
/null
29491 mkdir .tst
2>/dev
/null
29492 if test -d .tst
; then
29497 rmdir .tst
2>/dev
/null
29499 DEPDIR
="${am__leading_dot}deps"
29501 ac_config_commands
="$ac_config_commands depfiles"
29504 am_make
=${MAKE-make}
29505 cat > confinc
<< 'END'
29507 @
echo this is the am__doit target
29510 # If we don't find an include directive, just comment out the code.
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
29512 $as_echo_n "checking for style of include used by $am_make... " >&6; }
29516 # First try GNU make style include.
29517 echo "include confinc" > confmf
29518 # Ignore all kinds of additional output from 'make'.
29519 case `$am_make -s -f confmf 2> /dev/null` in #(
29520 *the\ am__doit\ target
*)
29521 am__include
=include
29526 # Now try BSD make style include.
29527 if test "$am__include" = "#"; then
29528 echo '.include "confinc"' > confmf
29529 case `$am_make -s -f confmf 2> /dev/null` in #(
29530 *the\ am__doit\ target
*)
29531 am__include
=.include
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
29540 $as_echo "$_am_result" >&6; }
29541 rm -f confinc confmf
29543 # Check whether --enable-dependency-tracking was given.
29544 if test "${enable_dependency_tracking+set}" = set; then :
29545 enableval
=$enable_dependency_tracking;
29548 if test "x$enable_dependency_tracking" != xno
; then
29549 am_depcomp
="$ac_aux_dir/depcomp"
29553 if test "x$enable_dependency_tracking" != xno; then
29562 # Check whether --enable-silent-rules was given.
29563 if test "${enable_silent_rules+set}" = set; then :
29564 enableval
=$enable_silent_rules;
29567 case $enable_silent_rules in # (((
29568 yes) AM_DEFAULT_VERBOSITY
=0;;
29569 no
) AM_DEFAULT_VERBOSITY
=1;;
29570 *) AM_DEFAULT_VERBOSITY
=1;;
29572 am_make
=${MAKE-make}
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29574 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
29575 if ${am_cv_make_support_nested_variables+:} false
; then :
29576 $as_echo_n "(cached) " >&6
29578 if $as_echo 'TRUE=$(BAR$(V))
29584 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
29585 am_cv_make_support_nested_variables
=yes
29587 am_cv_make_support_nested_variables
=no
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
29591 $as_echo "$am_cv_make_support_nested_variables" >&6; }
29592 if test $am_cv_make_support_nested_variables = yes; then
29594 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
29596 AM_V
=$AM_DEFAULT_VERBOSITY
29597 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
29601 if test "`cd $srcdir && pwd`" != "`pwd`"; then
29602 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
29603 # is not polluted with repeated "-I."
29604 am__isrc
=' -I$(srcdir)'
29605 # test to see if srcdir already configured
29606 if test -f $srcdir/config.status
; then
29607 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
29611 # test whether we have cygpath
29612 if test -z "$CYGPATH_W"; then
29613 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
29614 CYGPATH_W
='cygpath -w'
29621 # Define the identity of the package.
29623 VERSION
='UNUSED-VERSION'
29626 # Some tools Automake needs.
29628 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
29631 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
29634 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
29637 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
29640 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
29642 # For better backward compatibility. To be removed once Automake 1.9.x
29643 # dies out for good. For more background, see:
29644 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
29645 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29646 mkdir_p
='$(MKDIR_P)'
29648 # We need awk for the "check" target (and possibly the TAP driver). The
29649 # system "awk" is bad on some platforms.
29650 # Always define AMTAR for backward compatibility. Yes, it's still used
29651 # in the wild :-( We should find a proper way to deprecate it ...
29652 AMTAR
='$${TAR-tar}'
29655 # We'll loop over all known methods to create a tar archive until one works.
29656 _am_tools
='gnutar pax cpio none'
29658 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
29664 depcc
="$CC" am_compiler_list
=
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
29667 $as_echo_n "checking dependency style of $depcc... " >&6; }
29668 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
29669 $as_echo_n "(cached) " >&6
29671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29672 # We make a subdir and do the tests there. Otherwise we can end up
29673 # making bogus files that we don't know about and never remove. For
29674 # instance it was reported that on HP-UX the gcc test will end up
29675 # making a dummy file named 'D' -- because '-MD' means "put the output
29677 rm -rf conftest.dir
29679 # Copy depcomp to subdir because otherwise we won't find it if we're
29680 # using a relative directory.
29681 cp "$am_depcomp" conftest.dir
29683 # We will build objects and dependencies in a subdirectory because
29684 # it helps to detect inapplicable dependency modes. For instance
29685 # both Tru64's cc and ICC support -MD to output dependencies as a
29686 # side effect of compilation, but ICC will put the dependencies in
29687 # the current directory while Tru64 will put them in the object
29691 am_cv_CC_dependencies_compiler_type
=none
29692 if test "$am_compiler_list" = ""; then
29693 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29695 am__universal
=false
29696 case " $depcc " in #(
29697 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
29700 for depmode
in $am_compiler_list; do
29701 # Setup a source with many dependencies, because some compilers
29702 # like to wrap large dependency lists on column 80 (with \), and
29703 # we should not choose a depcomp mode which is confused by this.
29705 # We need to recreate these files for each test, as the compiler may
29706 # overwrite some of them when testing with obscure command lines.
29707 # This happens at least with the AIX C compiler.
29709 for i
in 1 2 3 4 5 6; do
29710 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
29711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
29712 # Solaris 10 /bin/sh.
29713 echo '/* dummy */' > sub
/conftst
$i.h
29715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29717 # We check with '-c' and '-o' for the sake of the "dashmstdout"
29718 # mode. It turns out that the SunPro C++ compiler does not properly
29719 # handle '-M -o', and we need to detect this. Also, some Intel
29720 # versions had trouble with output in subdirs.
29721 am__obj
=sub
/conftest.
${OBJEXT-o}
29722 am__minus_obj
="-o $am__obj"
29725 # This depmode causes a compiler race in universal mode.
29726 test "$am__universal" = false ||
continue
29729 # After this tag, mechanisms are not by side-effect, so they'll
29730 # only be used when explicitly requested.
29731 if test "x$enable_dependency_tracking" = xyes
; then
29737 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
29738 # This compiler won't grok '-c -o', but also, the minuso test has
29739 # not run yet. These depmodes are late enough in the game, and
29740 # so weak that their functioning should not be impacted.
29741 am__obj
=conftest.
${OBJEXT-o}
29746 if depmode
=$depmode \
29747 source=sub
/conftest.c object
=$am__obj \
29748 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
29749 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
29750 >/dev
/null
2>conftest.err
&&
29751 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
29752 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
29753 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
29754 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
29755 # icc doesn't choke on unknown options, it will just issue warnings
29756 # or remarks (even with -Werror). So we grep stderr for any message
29757 # that says an option was ignored or not supported.
29758 # When given -MP, icc 7.0 and 7.1 complain thusly:
29759 # icc: Command line warning: ignoring option '-M'; no argument required
29760 # The diagnosis changed in icc 8.0:
29761 # icc: Command line remark: option '-MP' not supported
29762 if (grep 'ignoring option' conftest.err ||
29763 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
29764 am_cv_CC_dependencies_compiler_type
=$depmode
29771 rm -rf conftest.dir
29773 am_cv_CC_dependencies_compiler_type
=none
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
29778 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
29779 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
29782 test "x$enable_dependency_tracking" != xno \
29783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
29784 am__fastdepCC_TRUE
=
29785 am__fastdepCC_FALSE
='#'
29787 am__fastdepCC_TRUE
='#'
29788 am__fastdepCC_FALSE
=
29793 # POSIX will say in a future version that running "rm -f" with no argument
29794 # is OK; and we want to be able to make that assumption in our Makefile
29795 # recipes. So use an aggressive probe to check that the usage we want is
29796 # actually supported "in the wild" to an acceptable degree.
29797 # See automake bug#10828.
29798 # To make any issue more visible, cause the running configure to be aborted
29799 # by default if the 'rm' program in use doesn't match our expectations; the
29800 # user can still override this though.
29801 if rm -f && rm -fr && rm -rf; then : OK
; else
29805 Your 'rm' program seems unable to run without file operands specified
29806 on the command line, even when the '-f' option is present. This is contrary
29807 to the behaviour of most rm programs out there, and not conforming with
29808 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
29810 Please tell bug-automake@gnu.org about your system, including the value
29811 of your $PATH and any error possibly output before this message. This
29812 can help us improve future automake versions.
29815 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
29816 echo 'Configuration will proceed anyway, since you have set the' >&2
29817 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
29821 Aborting the configuration process, to ensure you take notice of the issue.
29823 You can download and install GNU coreutils to get an 'rm' implementation
29824 that behaves properly: <http://www.gnu.org/software/coreutils/>.
29826 If you want to complete the configuration process using your problematic
29827 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
29828 to "yes", and re-run configure.
29831 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
29836 # Check whether --enable-silent-rules was given.
29837 if test "${enable_silent_rules+set}" = set; then :
29838 enableval
=$enable_silent_rules;
29841 case $enable_silent_rules in # (((
29842 yes) AM_DEFAULT_VERBOSITY
=0;;
29843 no
) AM_DEFAULT_VERBOSITY
=1;;
29844 *) AM_DEFAULT_VERBOSITY
=0;;
29846 am_make
=${MAKE-make}
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29848 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
29849 if ${am_cv_make_support_nested_variables+:} false
; then :
29850 $as_echo_n "(cached) " >&6
29852 if $as_echo 'TRUE=$(BAR$(V))
29858 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
29859 am_cv_make_support_nested_variables
=yes
29861 am_cv_make_support_nested_variables
=no
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
29865 $as_echo "$am_cv_make_support_nested_variables" >&6; }
29866 if test $am_cv_make_support_nested_variables = yes; then
29868 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
29870 AM_V
=$AM_DEFAULT_VERBOSITY
29871 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
29876 # --------------------- #
29877 # Checks for programs. #
29878 # --------------------- #
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29882 $as_echo_n "checking whether ln -s works... " >&6; }
29884 if test "$LN_S" = "ln -s"; then
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29886 $as_echo "yes" >&6; }
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29889 $as_echo "no, using $LN_S" >&6; }
29892 if test -n "$ac_tool_prefix"; then
29893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29896 $as_echo_n "checking for $ac_word... " >&6; }
29897 if ${ac_cv_prog_RANLIB+:} false; then :
29898 $as_echo_n "(cached) " >&6
29900 if test -n "$RANLIB"; then
29901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904 for as_dir in $PATH
29907 test -z "$as_dir" && as_dir=.
29908 for ac_exec_ext in '' $ac_executable_extensions; do
29909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29920 RANLIB=$ac_cv_prog_RANLIB
29921 if test -n "$RANLIB"; then
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29923 $as_echo "$RANLIB" >&6; }
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29926 $as_echo "no" >&6; }
29931 if test -z "$ac_cv_prog_RANLIB"; then
29932 ac_ct_RANLIB=$RANLIB
29933 # Extract the first word of "ranlib", so it can be a program name with args.
29934 set dummy ranlib; ac_word=$2
29935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29936 $as_echo_n "checking for $ac_word... " >&6; }
29937 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
29938 $as_echo_n "(cached) " >&6
29940 if test -n "$ac_ct_RANLIB"; then
29941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29944 for as_dir in $PATH
29947 test -z "$as_dir" && as_dir=.
29948 for ac_exec_ext in '' $ac_executable_extensions; do
29949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29950 ac_cv_prog_ac_ct_RANLIB="ranlib"
29951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29960 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29961 if test -n "$ac_ct_RANLIB"; then
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29963 $as_echo "$ac_ct_RANLIB" >&6; }
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 $as_echo "no" >&6; }
29969 if test "x$ac_ct_RANLIB" = x; then
29972 case $cross_compiling:$ac_tool_warned in
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29976 ac_tool_warned=yes ;;
29978 RANLIB=$ac_ct_RANLIB
29981 RANLIB="$ac_cv_prog_RANLIB"
29985 if test -n "$ac_tool_prefix"; then
29986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
29987 set dummy ${ac_tool_prefix}ar; ac_word=$2
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29989 $as_echo_n "checking for $ac_word... " >&6; }
29990 if ${ac_cv_prog_AR+:} false; then :
29991 $as_echo_n "(cached) " >&6
29993 if test -n "$AR"; then
29994 ac_cv_prog_AR="$AR" # Let the user override the test.
29996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997 for as_dir in $PATH
30000 test -z "$as_dir" && as_dir=.
30001 for ac_exec_ext in '' $ac_executable_extensions; do
30002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30003 ac_cv_prog_AR="${ac_tool_prefix}ar"
30004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30014 if test -n "$AR"; then
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30016 $as_echo "$AR" >&6; }
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30019 $as_echo "no" >&6; }
30024 if test -z "$ac_cv_prog_AR"; then
30026 # Extract the first word of "ar", so it can be a program name with args.
30027 set dummy ar; ac_word=$2
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30029 $as_echo_n "checking for $ac_word... " >&6; }
30030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30031 $as_echo_n "(cached) " >&6
30033 if test -n "$ac_ct_AR"; then
30034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037 for as_dir in $PATH
30040 test -z "$as_dir" && as_dir=.
30041 for ac_exec_ext in '' $ac_executable_extensions; do
30042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30043 ac_cv_prog_ac_ct_AR="ar"
30044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30054 if test -n "$ac_ct_AR"; then
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30056 $as_echo "$ac_ct_AR" >&6; }
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30059 $as_echo "no" >&6; }
30062 if test "x$ac_ct_AR" = x; then
30065 case $cross_compiling:$ac_tool_warned in
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30069 ac_tool_warned=yes ;;
30074 AR="$ac_cv_prog_AR"
30078 # ---------------------- #
30079 # Checks for libraries. #
30080 # ---------------------- #
30082 ac_config_files="$ac_config_files Makefile import/Makefile"
30084 ac_config_commands="$ac_config_commands default"
30086 cat >confcache <<\_ACEOF
30087 # This file is a shell script that caches the results of configure
30088 # tests run on this system so they can be shared between configure
30089 # scripts and configure runs, see configure's option
--config-cache.
30090 # It is not useful on other systems. If it contains results you don't
30091 # want to keep, you may remove or edit it.
30093 # config.status only pays attention to the cache file if you give it
30094 # the --recheck option to rerun configure.
30096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30098 # following values.
30102 # The following way of writing the cache mishandles newlines in values,
30103 # but we know of no workaround that is simple, portable, and efficient.
30104 # So, we kill variables containing newlines.
30105 # Ultrix sh set writes to stderr and can't be redirected directly,
30106 # and sets the high bit in the cache file unless we assign to the vars.
30108 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30109 eval ac_val
=\$
$ac_var
30113 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30117 _ | IFS | as_nl
) ;; #(
30118 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30119 *) { eval $ac_var=; unset $ac_var;} ;;
30125 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30126 *${as_nl}ac_space
=\
*)
30127 # `set' does not quote correctly, so add quotes: double-quote
30128 # substitution turns \\\\ into \\, and sed turns \\ into \.
30131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30134 # `set' quotes correctly as required by POSIX, so do not add quotes.
30135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30148 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30149 if test -w "$cache_file"; then
30150 if test "x$cache_file" != "x/dev/null"; then
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30152 $as_echo "$as_me: updating cache $cache_file" >&6;}
30153 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30154 cat confcache
>"$cache_file"
30156 case $cache_file in #(
30158 mv -f confcache
"$cache_file"$$
&&
30159 mv -f "$cache_file"$$
"$cache_file" ;; #(
30161 mv -f confcache
"$cache_file" ;;
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30172 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30173 # Let make expand exec_prefix.
30174 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30176 DEFS
=-DHAVE_CONFIG_H
30180 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30181 # 1. Remove the extension, and $U if already installed.
30182 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30183 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30185 # will be set to the directory where LIBOBJS objects are built.
30186 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30187 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30189 LIBOBJS
=$ac_libobjs
30191 LTLIBOBJS
=$ac_ltlibobjs
30194 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30195 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
30196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30198 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30199 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
30200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30202 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30203 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
30204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30206 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
30207 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
30208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30210 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
30211 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
30212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30214 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30215 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30218 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30219 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30222 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30223 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30226 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30227 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30230 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30231 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30234 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30235 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30238 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
30239 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
30240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30244 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30245 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30248 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
30249 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
30250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30252 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
30253 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
30254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30256 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
30257 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
30258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30260 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30261 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30267 if test -n "$gl_LIBOBJS"; then
30268 # Remove the extension.
30269 sed_drop_objext
='s/\.o$//;s/\.obj$//'
30270 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30271 gl_libobjs
="$gl_libobjs $i.$ac_objext"
30272 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
30275 gl_LIBOBJS
=$gl_libobjs
30277 gl_LTLIBOBJS
=$gl_ltlibobjs
30283 if test -n "$gltests_LIBOBJS"; then
30284 # Remove the extension.
30285 sed_drop_objext
='s/\.o$//;s/\.obj$//'
30286 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30287 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
30288 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
30291 gltests_LIBOBJS
=$gltests_libobjs
30293 gltests_LTLIBOBJS
=$gltests_ltlibobjs
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30297 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30298 if test -n "$am_sleep_pid"; then
30299 # Hide warnings about reused PIDs.
30300 wait $am_sleep_pid 2>/dev
/null
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30303 $as_echo "done" >&6; }
30304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30305 as_fn_error $?
"conditional \"AMDEP\" was never defined.
30306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30309 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
30310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30312 if test -n "$EXEEXT"; then
30314 am__EXEEXT_FALSE
='#'
30316 am__EXEEXT_TRUE
='#'
30321 : "${CONFIG_STATUS=./config.status}"
30323 ac_clean_files_save
=$ac_clean_files
30324 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30330 # Generated by $as_me.
30331 # Run this file to recreate the current configuration.
30332 # Compiler output produced by configure, useful for debugging
30333 # configure, is in config.log if it exists.
30336 ac_cs_recheck=false
30339 SHELL=\${CONFIG_SHELL-$SHELL}
30342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30343 ## -------------------- ##
30344 ## M4sh Initialization. ##
30345 ## -------------------- ##
30347 # Be more Bourne compatible
30348 DUALCASE
=1; export DUALCASE
# for MKS sh
30349 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30353 # is contrary to our usage. Disable this feature.
30354 alias -g '${1+"$@"}'='"$@"'
30355 setopt NO_GLOB_SUBST
30357 case `(set -o) 2>/dev/null` in #(
30369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30370 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30373 # Prefer a ksh shell builtin over an external printf program on Solaris,
30374 # but without wasting forks for bash or zsh.
30375 if test -z "$BASH_VERSION$ZSH_VERSION" \
30376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30377 as_echo='print
-r --'
30378 as_echo_n='print
-rn --'
30379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30380 as_echo='printf %s
\n'
30381 as_echo_n='printf %s
'
30383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30384 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30385 as_echo_n='/usr
/ucb
/echo -n'
30387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30388 as_echo_n_body='eval
30392 expr "X$arg" : "X\\(.*\\)$as_nl";
30393 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30395 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30397 export as_echo_n_body
30398 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30400 export as_echo_body
30401 as_echo='sh
-c $as_echo_body as_echo
'
30404 # The user is always right.
30405 if test "${PATH_SEPARATOR+set}" != set; then
30407 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30408 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30415 # We need space, tab and new line, in precisely that order. Quoting is
30416 # there to prevent editors from complaining about space-tab.
30417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30418 # splitting by setting IFS to empty value.)
30421 # Find who we are. Look in the path if we contain no directory separator.
30424 *[\\/]* ) as_myself=$0 ;;
30425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30426 for as_dir in $PATH
30429 test -z "$as_dir" && as_dir=.
30430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30436 # We did not find ourselves, most probably we were run as `sh COMMAND'
30437 # in which case we are not to be found in the path.
30438 if test "x$as_myself" = x
; then
30441 if test ! -f "$as_myself"; then
30442 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30446 # Unset variables that we do not need and which cause bugs (e.g. in
30447 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30448 # suppresses any "Segmentation fault" message there. '((' could
30449 # trigger a bug in pdksh 5.2.14.
30450 for as_var
in BASH_ENV ENV MAIL MAILPATH
30451 do eval test x\
${$as_var+set} = xset \
30452 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30465 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30468 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30469 # ----------------------------------------
30470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30472 # script with STATUS, using 1 if that was 0.
30475 as_status
=$1; test $as_status -eq 0 && as_status
=1
30477 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30478 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30480 $as_echo "$as_me: error: $2" >&2
30481 as_fn_exit
$as_status
30485 # as_fn_set_status STATUS
30486 # -----------------------
30487 # Set $? to STATUS, without forking.
30488 as_fn_set_status
()
30491 } # as_fn_set_status
30493 # as_fn_exit STATUS
30494 # -----------------
30495 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30499 as_fn_set_status
$1
30505 # Portably unset VAR.
30508 { eval $1=; unset $1;}
30510 as_unset
=as_fn_unset
30511 # as_fn_append VAR VALUE
30512 # ----------------------
30513 # Append the text in VALUE to the end of the definition contained in VAR. Take
30514 # advantage of any shell optimizations that allow amortized linear growth over
30515 # repeated appends, instead of the typical quadratic growth present in naive
30517 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30518 eval 'as_fn_append ()
30529 # as_fn_arith ARG...
30530 # ------------------
30531 # Perform arithmetic evaluation on the ARGs, and store the result in the
30532 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30533 # must be portable across $(()) and expr.
30534 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30535 eval 'as_fn_arith ()
30542 as_val
=`expr "$@" || test $? -eq 1`
30547 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30548 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30554 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30555 as_basename
=basename
30560 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30566 as_me
=`$as_basename -- "$0" ||
30567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30568 X"$0" : 'X\(//\)$' \| \
30569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30571 sed '/^.*\/\([^/][^/]*\)\/*$/{
30585 # Avoid depending upon Character Ranges.
30586 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30587 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30588 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30589 as_cr_digits
='0123456789'
30590 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30592 ECHO_C
= ECHO_N
= ECHO_T
=
30593 case `echo -n x` in #(((((
30595 case `echo 'xy\c'` in
30596 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30598 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30605 rm -f conf$$ conf$$.exe conf$$.
file
30606 if test -d conf$$.dir
; then
30607 rm -f conf$$.dir
/conf$$.
file
30610 mkdir conf$$.dir
2>/dev
/null
30612 if (echo >conf$$.
file) 2>/dev
/null
; then
30613 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30615 # ... but there are two gotchas:
30616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30618 # In both cases, we have to default to `cp -pR'.
30619 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30621 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30629 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30630 rmdir conf$$.dir
2>/dev
/null
30635 # Create "$as_dir" as a directory, including parents if necessary.
30640 -*) as_dir
=.
/$as_dir;;
30642 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30646 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30647 *) as_qdir
=$as_dir;;
30649 as_dirs
="'$as_qdir' $as_dirs"
30650 as_dir
=`$as_dirname -- "$as_dir" ||
30651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30652 X"$as_dir" : 'X\(//\)[^/]' \| \
30653 X"$as_dir" : 'X\(//\)$' \| \
30654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30655 $as_echo X"$as_dir" |
30656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30660 /^X\(\/\/\)[^/].*/{
30673 test -d "$as_dir" && break
30675 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30676 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30680 if mkdir
-p .
2>/dev
/null
; then
30681 as_mkdir_p
='mkdir -p "$as_dir"'
30683 test -d .
/-p && rmdir .
/-p
30688 # as_fn_executable_p FILE
30689 # -----------------------
30690 # Test if FILE is an executable regular file.
30691 as_fn_executable_p
()
30693 test -f "$1" && test -x "$1"
30694 } # as_fn_executable_p
30695 as_test_x
='test -x'
30696 as_executable_p
=as_fn_executable_p
30698 # Sed expression to map a string onto a valid CPP name.
30699 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30701 # Sed expression to map a string onto a valid variable name.
30702 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30706 ## ----------------------------------- ##
30707 ## Main body of $CONFIG_STATUS script. ##
30708 ## ----------------------------------- ##
30710 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30713 # Save the log message, to keep $0 and so on meaningful, and to
30714 # report actual input values of CONFIG_FILES etc. instead of their
30715 # values after options handling.
30717 This file was extended by libgnu $as_me UNUSED-VERSION, which was
30718 generated by GNU Autoconf 2.69. Invocation command line was
30720 CONFIG_FILES = $CONFIG_FILES
30721 CONFIG_HEADERS = $CONFIG_HEADERS
30722 CONFIG_LINKS = $CONFIG_LINKS
30723 CONFIG_COMMANDS = $CONFIG_COMMANDS
30726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30731 case $ac_config_files in *"
30732 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30735 case $ac_config_headers in *"
30736 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30741 # Files that config.status was made for.
30742 config_files="$ac_config_files"
30743 config_headers="$ac_config_headers"
30744 config_commands="$ac_config_commands"
30748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30750 \`$as_me' instantiates files and other configuration actions
30751 from templates according to the current configuration. Unless the files
30752 and actions are specified as TAGs, all are instantiated by default.
30754 Usage: $0 [OPTION]... [TAG]...
30756 -h, --help print this help, then exit
30757 -V, --version print version number and configuration settings, then exit
30758 --config print configuration, then exit
30759 -q, --quiet, --silent
30760 do not print progress messages
30761 -d, --debug don't remove temporary files
30762 --recheck update $as_me by reconfiguring in the same conditions
30763 --file=FILE[:TEMPLATE]
30764 instantiate the configuration file FILE
30765 --header=FILE[:TEMPLATE]
30766 instantiate the configuration header FILE
30768 Configuration files:
30771 Configuration headers:
30774 Configuration commands:
30777 Report bugs to the package provider."
30780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30781 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30783 libgnu config.status UNUSED-VERSION
30784 configured by $0, generated by GNU Autoconf 2.69,
30785 with options \\"\$ac_cs_config\\"
30787 Copyright (C) 2012 Free Software Foundation, Inc.
30788 This config.status script is free software; the Free Software Foundation
30789 gives unlimited permission to copy, distribute and modify it."
30796 test -n "\$AWK" || AWK=awk
30799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30800 # The default lists apply if the user does not specify any file.
30806 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30807 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30811 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30823 # Handling of the options.
30824 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30826 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30827 $as_echo "$ac_cs_version"; exit ;;
30828 --config |
--confi |
--conf |
--con |
--co |
--c )
30829 $as_echo "$ac_cs_config"; exit ;;
30830 --debug |
--debu |
--deb |
--de |
--d |
-d )
30832 --file |
--fil |
--fi |
--f )
30835 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30836 '') as_fn_error $?
"missing file argument" ;;
30838 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30839 ac_need_defaults
=false
;;
30840 --header |
--heade |
--head |
--hea )
30843 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30845 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30846 ac_need_defaults
=false
;;
30848 # Conflict between --help and --header
30849 as_fn_error $?
"ambiguous option: \`$1'
30850 Try \`$0 --help' for more information.";;
30851 --help |
--hel |
-h )
30852 $as_echo "$ac_cs_usage"; exit ;;
30853 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30854 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30857 # This is an error.
30858 -*) as_fn_error $?
"unrecognized option: \`$1'
30859 Try \`$0 --help' for more information." ;;
30861 *) as_fn_append ac_config_targets
" $1"
30862 ac_need_defaults
=false
;;
30868 ac_configure_extra_args
=
30870 if $ac_cs_silent; then
30872 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30877 if \$ac_cs_recheck; then
30878 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30880 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30881 CONFIG_SHELL='$SHELL'
30882 export CONFIG_SHELL
30887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30891 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30892 ## Running $as_me. ##
30898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30902 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30908 # Handling of arguments.
30909 for ac_config_target
in $ac_config_targets
30911 case $ac_config_target in
30912 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
30913 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
30914 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30915 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
30916 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30918 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30923 # If the user did not use the arguments to specify the items to instantiate,
30924 # then the envvar interface is used. Set only those that are not.
30925 # We use the long form for the default assignment because of an extremely
30926 # bizarre bug on SunOS 4.1.3.
30927 if $ac_need_defaults; then
30928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30933 # Have a temporary directory for convenience. Make it in the build tree
30934 # simply because there is no reason against having it here, and in addition,
30935 # creating and moving files from /tmp can sometimes cause problems.
30936 # Hook for its removal unless debugging.
30937 # Note that there is a small window in which the directory will not be cleaned:
30938 # after its creation but before its name has been assigned to `$tmp'.
30942 trap 'exit_status=$?
30943 : "${ac_tmp:=$tmp}"
30944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30946 trap 'as_fn_exit 1' 1 2 13 15
30948 # Create a (secure) tmp directory for tmp files.
30951 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30955 tmp
=.
/conf$$
-$RANDOM
30956 (umask 077 && mkdir
"$tmp")
30957 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
30960 # Set up the scripts for CONFIG_FILES section.
30961 # No need to generate them if there are no CONFIG_FILES.
30962 # This happens for instance with `./config.status config.h'.
30963 if test -n "$CONFIG_FILES"; then
30966 ac_cr
=`echo X | tr X '\015'`
30967 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30968 # But we know of no other shell where ac_cr would be empty at this
30969 # point, so we can use a bashism as a fallback.
30970 if test "x$ac_cr" = x
; then
30971 eval ac_cr
=\$
\'\\r
\'
30973 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30974 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30977 ac_cs_awk_cr
=$ac_cr
30980 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30985 echo "cat >conf$$subs.awk <<_ACEOF" &&
30986 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30988 } >conf$$subs.sh ||
30989 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30990 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30992 for ac_last_try in false false false false false :; do
30993 . ./conf$$subs.sh ||
30994 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30996 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30997 if test $ac_delim_n = $ac_delim_num; then
30999 elif $ac_last_try; then
31000 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31002 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31005 rm -f conf$$subs.sh
31007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31008 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31012 s/^/S["/; s
/!.
*/"]=/
31022 s/\(.\{148\}\)..*/\1/
31024 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31029 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31036 s/\(.\{148\}\)..*/\1/
31038 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31042 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31047 ' <conf$$subs.awk | sed '
31052 ' >>$CONFIG_STATUS || ac_write_fail=1
31053 rm -f conf$$subs.awk
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31056 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31057 for (key in S) S_is_set[key] = 1
31063 nfields = split(line, field, "@
")
31065 len = length(field[1])
31066 for (i = 2; i < nfields; i++) {
31068 keylen = length(key)
31069 if (S_is_set[key]) {
31071 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31072 len += length(value) + length(field[++i])
31083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31084 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31085 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31088 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31089 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31092 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31093 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31094 # trailing colons and then remove the whole line if VPATH becomes empty
31095 # (actually we leave an empty line to preserve line numbers).
31096 if test "x
$srcdir" = x.; then
31097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31116 fi # test -n "$CONFIG_FILES"
31118 # Set up the scripts for CONFIG_HEADERS section.
31119 # No need to generate them if there are no CONFIG_HEADERS.
31120 # This happens for instance with `./config.status Makefile'.
31121 if test -n "$CONFIG_HEADERS"; then
31122 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31126 # Transform confdefs.h into an awk script `defines.awk', embedded as
31127 # here-document in config.status, that substitutes the proper values into
31128 # config.h.in to produce config.h.
31130 # Create a delimiter string that does not exist in confdefs.h, to ease
31131 # handling of long lines.
31133 for ac_last_try in false false :; do
31134 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31135 if test -z "$ac_tt"; then
31137 elif $ac_last_try; then
31138 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31140 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31144 # For the awk script, D is an array of macro values keyed by name,
31145 # likewise P contains macro parameters if any. Preserve backslash
31146 # newline sequences.
31148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31150 s/.\{148\}/&'"$ac_delim"'/g
31153 s/^[ ]*#[ ]*define[ ][ ]*/ /
31160 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31162 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31167 D["\
1"]=" \
3\\\\\\n
"\\/p
31169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31174 s/.\{148\}/&'"$ac_delim"'/g
31179 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31182 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31184 ' <confdefs.h | sed '
31185 s/'"$ac_delim"'/"\\\
31186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31189 for (key in D) D_is_set[key] = 1
31192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31194 split(line, arg, " ")
31195 if (arg[1] == "#") {
31199 defundef
= substr
(arg
[1], 2)
31202 split(mac1
, mac2
, "(") #)
31204 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31205 if (D_is_set
[macro
]) {
31206 # Preserve the white space surrounding the "#".
31207 print prefix
"define", macro P
[macro
] D
[macro
]
31210 # Replace #undef with comments. This is necessary, for example,
31211 # in the case of _POSIX_SOURCE, which is predefined and required
31212 # on some systems where configure will not decide to define it.
31213 if (defundef
== "undef") {
31214 print
"/*", prefix defundef
, macro
, "*/"
31222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31223 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31224 fi # test -n "$CONFIG_HEADERS"
31227 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31232 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31234 case $ac_mode$ac_tag in
31236 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31237 :[FH
]-) ac_tag
=-:-;;
31238 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31255 -) ac_f
="$ac_tmp/stdin";;
31256 *) # Look for the file first in the build tree, then in the source tree
31257 # (if the path is not absolute). The absolute path cannot be DOS-style,
31258 # because $ac_f cannot contain `:'.
31262 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31264 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31266 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31267 as_fn_append ac_file_inputs
" '$ac_f'"
31270 # Let's still pretend it is `configure' which instantiates (i.e., don't
31271 # use $as_me), people would be surprised to read:
31272 # /* config.h. Generated by config.status. */
31273 configure_input
='Generated from '`
31274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31276 if test x
"$ac_file" != x-
; then
31277 configure_input
="$ac_file. $configure_input"
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31279 $as_echo "$as_me: creating $ac_file" >&6;}
31281 # Neutralize special characters interpreted by sed in replacement strings.
31282 case $configure_input in #(
31283 *\
&* |
*\|
* |
*\\* )
31284 ac_sed_conf_input
=`$as_echo "$configure_input" |
31285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31286 *) ac_sed_conf_input
=$configure_input;;
31290 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31291 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31296 ac_dir
=`$as_dirname -- "$ac_file" ||
31297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31298 X"$ac_file" : 'X\(//\)[^/]' \| \
31299 X"$ac_file" : 'X\(//\)$' \| \
31300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31301 $as_echo X"$ac_file" |
31302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31306 /^X\(\/\/\)[^/].*/{
31319 as_dir
="$ac_dir"; as_fn_mkdir_p
31323 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31325 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31326 # A ".." for each directory in $ac_dir_suffix.
31327 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31328 case $ac_top_builddir_sub in
31329 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31330 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31333 ac_abs_top_builddir
=$ac_pwd
31334 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31335 # for backward compatibility:
31336 ac_top_builddir
=$ac_top_build_prefix
31339 .
) # We are building in place.
31341 ac_top_srcdir
=$ac_top_builddir_sub
31342 ac_abs_top_srcdir
=$ac_pwd ;;
31343 [\\/]* | ?
:[\\/]* ) # Absolute name.
31344 ac_srcdir
=$srcdir$ac_dir_suffix;
31345 ac_top_srcdir
=$srcdir
31346 ac_abs_top_srcdir
=$srcdir ;;
31347 *) # Relative name.
31348 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31349 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31350 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31352 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31362 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
31363 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
31365 ac_MKDIR_P
=$MKDIR_P
31367 [\\/$
]* | ?
:[\\/]* ) ;;
31368 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
31372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31373 # If the template does not know about datarootdir, expand it.
31374 # FIXME: This hack should be removed a few years after 2.60.
31375 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31386 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31387 *datarootdir
*) ac_datarootdir_seen
=yes;;
31388 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31390 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31393 ac_datarootdir_hack='
31394 s&@datadir@&$datadir&g
31395 s&@docdir@&$docdir&g
31396 s&@infodir@&$infodir&g
31397 s&@localedir@&$localedir&g
31398 s&@mandir@&$mandir&g
31399 s&\\\${datarootdir}&$datarootdir&g' ;;
31403 # Neutralize VPATH when `$srcdir' = `.'.
31404 # Shell code in configure.ac might set extrasub.
31405 # FIXME: do we really want to maintain this feature?
31406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31407 ac_sed_extra="$ac_vpsub
31410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31412 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31413 s|@configure_input@|
$ac_sed_conf_input|
;t t
31414 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31415 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31416 s
&@srcdir@
&$ac_srcdir&;t t
31417 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31418 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31419 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31420 s
&@builddir@
&$ac_builddir&;t t
31421 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31422 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31423 s
&@INSTALL@
&$ac_INSTALL&;t t
31424 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
31425 $ac_datarootdir_hack
31427 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
31428 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31430 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31431 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31433 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31435 which seems to be undefined. Please make sure it is defined" >&5
31436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31437 which seems to be undefined. Please make sure it is defined" >&2;}
31439 rm -f "$ac_tmp/stdin"
31441 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31442 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31450 if test x"$ac_file" != x-; then
31452 $as_echo "/* $configure_input */" \
31453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31454 } >"$ac_tmp/config.h" \
31455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31456 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31458 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31461 mv "$ac_tmp/config.h" "$ac_file" \
31462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31465 $as_echo "/* $configure_input */" \
31466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31467 || as_fn_error $? "could not create -" "$LINENO" 5
31469 # Compute "$ac_file"'s index
in $config_headers.
31472 for _am_header
in $config_headers :; do
31473 case $_am_header in
31474 $_am_arg |
$_am_arg:* )
31477 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
31480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482 X"$_am_arg" : 'X\(//\)[^/]' \| \
31483 X"$_am_arg" : 'X\(//\)$' \| \
31484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31485 $as_echo X"$_am_arg" |
31486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31490 /^X\(\/\/\)[^/].*/{
31502 s/.*/./; q'`/stamp-h
$_am_stamp_count
31505 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31506 $as_echo "$as_me: executing $ac_file commands" >&6;}
31511 case $ac_file$ac_mode in
31512 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
31513 # Older Autoconf quotes --file arguments for eval, but not when files
31514 # are listed without --file. Let's play safe and only enable the eval
31515 # if we detect the quoting.
31516 case $CONFIG_FILES in
31517 *\'*) eval set x
"$CONFIG_FILES" ;;
31518 *) set x
$CONFIG_FILES ;;
31523 # Strip MF so we end up with the name of the file.
31524 mf
=`echo "$mf" | sed -e 's/:.*$//'`
31525 # Check whether this is an Automake generated Makefile or not.
31526 # We used to match only the files named 'Makefile.in', but
31527 # some people rename them; so instead we look at the file content.
31528 # Grep'ing the first line is not enough: some people post-process
31529 # each Makefile.in and add a new line on top of each file to say so.
31530 # Grep'ing the whole file is not good either: AIX grep has a line
31531 # limit of 2048, but all sed's we know have understand at least 4000.
31532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
31533 dirpart
=`$as_dirname -- "$mf" ||
31534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31535 X"$mf" : 'X\(//\)[^/]' \| \
31536 X"$mf" : 'X\(//\)$' \| \
31537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31543 /^X\(\/\/\)[^/].*/{
31559 # Extract the definition of DEPDIR, am__include, and am__quote
31560 # from the Makefile without running 'make'.
31561 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
31562 test -z "$DEPDIR" && continue
31563 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
31564 test -z "$am__include" && continue
31565 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
31566 # Find all dependency output files, they are included files with
31567 # $(DEPDIR) in their names. We invoke sed twice because it is the
31568 # simplest approach to changing $(DEPDIR) to its actual value in the
31570 for file in `sed -n "
31571 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
31573 # Make sure the directory exists.
31574 test -f "$dirpart/$file" && continue
31575 fdir
=`$as_dirname -- "$file" ||
31576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31577 X"$file" : 'X\(//\)[^/]' \| \
31578 X"$file" : 'X\(//\)$' \| \
31579 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31580 $as_echo X"$file" |
31581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31585 /^X\(\/\/\)[^/].*/{
31598 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
31599 # echo "creating $dirpart/$file"
31600 echo '# dummy' > "$dirpart/$file"
31606 case x
$CONFIG_HEADERS in
31607 xconfig.h
:config.
in)
31618 ac_clean_files
=$ac_clean_files_save
31620 test $ac_write_fail = 0 ||
31621 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
31624 # configure is writing to config.log, and then calls config.status.
31625 # config.status does its own redirection, appending to config.log.
31626 # Unfortunately, on DOS this fails, as config.log is still kept open
31627 # by configure, so config.status won't be able to write to it; its
31628 # output is simply discarded. So we exec the FD to /dev/null,
31629 # effectively closing config.log, so it can be properly (re)opened and
31630 # appended to by config.status. When coming back to configure, we
31631 # need to make the FD available again.
31632 if test "$no_create" != yes; then
31634 ac_config_status_args
=
31635 test "$silent" = yes &&
31636 ac_config_status_args
="$ac_config_status_args --quiet"
31638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31641 # would make configure fail if this is the last instruction.
31642 $ac_cs_success || as_fn_exit
1
31644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}