2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_fnmatch_required
=POSIX
625 ac_subst_vars
='am__EXEEXT_FALSE
655 INSTALL_STRIP_PROGRAM
676 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
689 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 UNISTD_H_DEFINES_STRUCT_TIMESPEC
695 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
696 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
697 TIME_H_DEFINES_STRUCT_TIMESPEC
698 NEXT_AS_FIRST_DIRECTIVE_TIME_H
709 HAVE_DECL_LOCALTIME_R
717 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
720 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
722 NEXT_AS_FIRST_DIRECTIVE_STRING_H
724 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
726 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
728 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
730 GL_GENERATE_STDDEF_H_FALSE
731 GL_GENERATE_STDDEF_H_TRUE
737 GL_GENERATE_STDBOOL_H_FALSE
738 GL_GENERATE_STDBOOL_H_TRUE
740 GL_GENERATE_STDALIGN_H_FALSE
741 GL_GENERATE_STDALIGN_H_TRUE
743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
746 REPLACE_PTHREAD_SIGMASK
748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
749 HAVE_STRUCT_SIGACTION_SA_SIGACTION
755 HAVE_POSIX_SIGNALBLOCKING
758 GNULIB_SIGNAL_H_SIGPIPE
760 GNULIB_PTHREAD_SIGMASK
768 REPLACE_STDIO_WRITE_FUNCS
769 REPLACE_STDIO_READ_FUNCS
778 REPLACE_OBSTACK_PRINTF
803 HAVE_DECL_OBSTACK_PRINTF
809 GNULIB_VSPRINTF_POSIX
813 GNULIB_VFPRINTF_POSIX
820 GNULIB_STDIO_H_SIGPIPE
821 GNULIB_STDIO_H_NONBLOCKING
836 GNULIB_OBSTACK_PRINTF_POSIX
837 GNULIB_OBSTACK_PRINTF
862 GL_GENERATE_NETINET_IN_H_FALSE
863 GL_GENERATE_NETINET_IN_H_TRUE
866 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1036 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1038 LOCALCHARSET_TESTS_ENVIRONMENT
1040 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1042 UINT64_MAX_EQ_ULONG_MAX
1043 UINT32_MAX_LT_UINTMAX_MAX
1046 INT64_MAX_EQ_LONG_MAX
1047 INT32_MAX_LT_INTMAX_MAX
1058 GL_GENERATE_STDINT_H_FALSE
1059 GL_GENERATE_STDINT_H_TRUE
1071 HAVE_SIGNED_SIG_ATOMIC_T
1074 BITSIZEOF_SIG_ATOMIC_T
1077 APPLE_UNIVERSAL_BUILD
1079 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1084 HAVE_UNSIGNED_LONG_LONG_INT
1086 GL_GENERATE_LIMITS_H_FALSE
1087 GL_GENERATE_LIMITS_H_TRUE
1089 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1097 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1098 HAVE_STRUCT_SOCKADDR_STORAGE
1116 GL_GENERATE_GLOB_H_FALSE
1117 GL_GENERATE_GLOB_H_TRUE
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1121 REPLACE_STRUCT_TIMEVAL
1122 REPLACE_GETTIMEOFDAY
1130 WINDOWS_64_BIT_ST_SIZE
1131 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1167 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1173 REPLACE_SIGNBIT_USING_GCC
1242 HAVE_DECL_REMAINDERL
1423 GL_GENERATE_FNMATCH_H_FALSE
1424 GL_GENERATE_FNMATCH_H_TRUE
1427 GL_GENERATE_FLOAT_H_FALSE
1428 GL_GENERATE_FLOAT_H_TRUE
1430 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1432 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1449 GL_GENERATE_ERRNO_H_FALSE
1450 GL_GENERATE_ERRNO_H_TRUE
1452 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1455 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1482 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1483 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1484 UNISTD_H_HAVE_WINSOCK2_H
1507 REPLACE_GETDTABLESIZE
1508 REPLACE_GETDOMAINNAME
1519 HAVE_DECL_SETHOSTNAME
1520 HAVE_DECL_GETUSERSHELL
1521 HAVE_DECL_GETPAGESIZE
1522 HAVE_DECL_GETLOGIN_R
1523 HAVE_DECL_GETDOMAINNAME
1562 GNULIB_UNISTD_H_SIGPIPE
1563 GNULIB_UNISTD_H_NONBLOCKING
1589 GNULIB_GETDTABLESIZE
1590 GNULIB_GETDOMAINNAME
1620 REPLACE_CANONICALIZE_FILE_NAME
1625 HAVE_STRUCT_RANDOM_DATA
1648 HAVE_DECL_GETLOADAVG
1649 HAVE_CANONICALIZE_FILE_NAME
1660 GNULIB_SECURE_GETENV
1663 GNULIB_REALLOC_POSIX
1681 GNULIB_CANONICALIZE_FILE_NAME
1687 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1690 PRAGMA_SYSTEM_HEADER
1691 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1700 GL_GENERATE_ALLOCA_H_FALSE
1701 GL_GENERATE_ALLOCA_H_TRUE
1704 GL_COND_LIBTOOL_FALSE
1705 GL_COND_LIBTOOL_TRUE
1733 MAINTAINER_MODE_FALSE
1734 MAINTAINER_MODE_TRUE
1762 program_transform_name
1775 enable_option_checking
1776 enable_maintainer_mode
1779 enable_dependency_tracking
1782 ac_precious_vars
='build_alias
1793 # Initialize some variables set by options.
1795 ac_init_version
=false
1796 ac_unrecognized_opts
=
1797 ac_unrecognized_sep
=
1798 # The variables have the same names as the options, with
1799 # dashes changed to underlines.
1800 cache_file
=/dev
/null
1807 program_transform_name
=s
,x
,x
,
1815 # Installation directory options.
1816 # These are left unexpanded so users can "make install exec_prefix=/foo"
1817 # and all the variables that are supposed to be based on exec_prefix
1818 # by default will actually change.
1819 # Use braces instead of parens because sh, perl, etc. also accept them.
1820 # (The list follows the same order as the GNU Coding Standards.)
1821 bindir
='${exec_prefix}/bin'
1822 sbindir
='${exec_prefix}/sbin'
1823 libexecdir
='${exec_prefix}/libexec'
1824 datarootdir
='${prefix}/share'
1825 datadir
='${datarootdir}'
1826 sysconfdir
='${prefix}/etc'
1827 sharedstatedir
='${prefix}/com'
1828 localstatedir
='${prefix}/var'
1829 includedir
='${prefix}/include'
1830 oldincludedir
='/usr/include'
1831 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1832 infodir
='${datarootdir}/info'
1837 libdir
='${exec_prefix}/lib'
1838 localedir
='${datarootdir}/locale'
1839 mandir
='${datarootdir}/man'
1845 # If the previous option needs an argument, assign it.
1846 if test -n "$ac_prev"; then
1847 eval $ac_prev=\
$ac_option
1853 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1858 # Accept the important Cygnus configure options, so we can diagnose typos.
1860 case $ac_dashdash$ac_option in
1864 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1866 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1867 bindir
=$ac_optarg ;;
1869 -build |
--build |
--buil |
--bui |
--bu)
1870 ac_prev
=build_alias
;;
1871 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1872 build_alias
=$ac_optarg ;;
1874 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1875 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1876 ac_prev
=cache_file
;;
1877 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1878 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1879 cache_file
=$ac_optarg ;;
1881 --config-cache |
-C)
1882 cache_file
=config.cache
;;
1884 -datadir |
--datadir |
--datadi |
--datad)
1886 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1887 datadir
=$ac_optarg ;;
1889 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1890 |
--dataroo |
--dataro |
--datar)
1891 ac_prev
=datarootdir
;;
1892 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1893 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1894 datarootdir
=$ac_optarg ;;
1896 -disable-* |
--disable-*)
1897 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1898 # Reject names that are not valid shell variable names.
1899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1900 as_fn_error $?
"invalid feature name: $ac_useropt"
1901 ac_useropt_orig
=$ac_useropt
1902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1903 case $ac_user_opts in
1905 "enable_
$ac_useropt"
1907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1908 ac_unrecognized_sep
=', ';;
1910 eval enable_
$ac_useropt=no
;;
1912 -docdir |
--docdir |
--docdi |
--doc |
--do)
1914 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1915 docdir
=$ac_optarg ;;
1917 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1919 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1920 dvidir
=$ac_optarg ;;
1922 -enable-* |
--enable-*)
1923 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1924 # Reject names that are not valid shell variable names.
1925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1926 as_fn_error $?
"invalid feature name: $ac_useropt"
1927 ac_useropt_orig
=$ac_useropt
1928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1929 case $ac_user_opts in
1931 "enable_
$ac_useropt"
1933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1934 ac_unrecognized_sep
=', ';;
1936 eval enable_
$ac_useropt=\
$ac_optarg ;;
1938 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1939 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1940 |
--exec |
--exe |
--ex)
1941 ac_prev
=exec_prefix
;;
1942 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1943 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1944 |
--exec=* |
--exe=* |
--ex=*)
1945 exec_prefix
=$ac_optarg ;;
1947 -gas |
--gas |
--ga |
--g)
1948 # Obsolete; use --with-gas.
1951 -help |
--help |
--hel |
--he |
-h)
1952 ac_init_help
=long
;;
1953 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1954 ac_init_help
=recursive
;;
1955 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1956 ac_init_help
=short
;;
1958 -host |
--host |
--hos |
--ho)
1959 ac_prev
=host_alias
;;
1960 -host=* |
--host=* |
--hos=* |
--ho=*)
1961 host_alias
=$ac_optarg ;;
1963 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1965 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1967 htmldir
=$ac_optarg ;;
1969 -includedir |
--includedir |
--includedi |
--included |
--include \
1970 |
--includ |
--inclu |
--incl |
--inc)
1971 ac_prev
=includedir
;;
1972 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1973 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1974 includedir
=$ac_optarg ;;
1976 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1978 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1979 infodir
=$ac_optarg ;;
1981 -libdir |
--libdir |
--libdi |
--libd)
1983 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1984 libdir
=$ac_optarg ;;
1986 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1987 |
--libexe |
--libex |
--libe)
1988 ac_prev
=libexecdir
;;
1989 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1990 |
--libexe=* |
--libex=* |
--libe=*)
1991 libexecdir
=$ac_optarg ;;
1993 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1994 ac_prev
=localedir
;;
1995 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1996 localedir
=$ac_optarg ;;
1998 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1999 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2000 ac_prev
=localstatedir
;;
2001 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2002 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2003 localstatedir
=$ac_optarg ;;
2005 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2007 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2008 mandir
=$ac_optarg ;;
2010 -nfp |
--nfp |
--nf)
2011 # Obsolete; use --without-fp.
2014 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2015 |
--no-cr |
--no-c |
-n)
2018 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2019 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2022 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2023 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2024 |
--oldin |
--oldi |
--old |
--ol |
--o)
2025 ac_prev
=oldincludedir
;;
2026 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2027 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2028 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2029 oldincludedir
=$ac_optarg ;;
2031 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2033 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2034 prefix
=$ac_optarg ;;
2036 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2037 |
--program-pre |
--program-pr |
--program-p)
2038 ac_prev
=program_prefix
;;
2039 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2040 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2041 program_prefix
=$ac_optarg ;;
2043 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2044 |
--program-suf |
--program-su |
--program-s)
2045 ac_prev
=program_suffix
;;
2046 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2047 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2048 program_suffix
=$ac_optarg ;;
2050 -program-transform-name |
--program-transform-name \
2051 |
--program-transform-nam |
--program-transform-na \
2052 |
--program-transform-n |
--program-transform- \
2053 |
--program-transform |
--program-transfor \
2054 |
--program-transfo |
--program-transf \
2055 |
--program-trans |
--program-tran \
2056 |
--progr-tra |
--program-tr |
--program-t)
2057 ac_prev
=program_transform_name
;;
2058 -program-transform-name=* |
--program-transform-name=* \
2059 |
--program-transform-nam=* |
--program-transform-na=* \
2060 |
--program-transform-n=* |
--program-transform-=* \
2061 |
--program-transform=* |
--program-transfor=* \
2062 |
--program-transfo=* |
--program-transf=* \
2063 |
--program-trans=* |
--program-tran=* \
2064 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2065 program_transform_name
=$ac_optarg ;;
2067 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2069 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2070 pdfdir
=$ac_optarg ;;
2072 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2074 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2077 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2078 |
-silent |
--silent |
--silen |
--sile |
--sil)
2081 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2083 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2085 sbindir
=$ac_optarg ;;
2087 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2088 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2089 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2091 ac_prev
=sharedstatedir
;;
2092 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2093 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2094 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2096 sharedstatedir
=$ac_optarg ;;
2098 -site |
--site |
--sit)
2100 -site=* |
--site=* |
--sit=*)
2103 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2105 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2106 srcdir
=$ac_optarg ;;
2108 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2109 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2110 ac_prev
=sysconfdir
;;
2111 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2112 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2113 sysconfdir
=$ac_optarg ;;
2115 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2116 ac_prev
=target_alias
;;
2117 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2118 target_alias
=$ac_optarg ;;
2120 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2123 -version |
--version |
--versio |
--versi |
--vers |
-V)
2124 ac_init_version
=: ;;
2127 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2128 # Reject names that are not valid shell variable names.
2129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2130 as_fn_error $?
"invalid package name: $ac_useropt"
2131 ac_useropt_orig
=$ac_useropt
2132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2133 case $ac_user_opts in
2137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2138 ac_unrecognized_sep
=', ';;
2140 eval with_
$ac_useropt=\
$ac_optarg ;;
2142 -without-* |
--without-*)
2143 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2144 # Reject names that are not valid shell variable names.
2145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2146 as_fn_error $?
"invalid package name: $ac_useropt"
2147 ac_useropt_orig
=$ac_useropt
2148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2149 case $ac_user_opts in
2153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2154 ac_unrecognized_sep
=', ';;
2156 eval with_
$ac_useropt=no
;;
2159 # Obsolete; use --with-x.
2162 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2163 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2164 ac_prev
=x_includes
;;
2165 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2166 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2167 x_includes
=$ac_optarg ;;
2169 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2170 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2171 ac_prev
=x_libraries
;;
2172 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2173 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2174 x_libraries
=$ac_optarg ;;
2176 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2177 Try \`$0 --help' for more information"
2181 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2182 # Reject names that are not valid shell variable names.
2183 case $ac_envvar in #(
2184 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2185 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2187 eval $ac_envvar=\
$ac_optarg
2188 export $ac_envvar ;;
2191 # FIXME: should be removed in autoconf 3.0.
2192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2201 if test -n "$ac_prev"; then
2202 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2203 as_fn_error $?
"missing argument to $ac_option"
2206 if test -n "$ac_unrecognized_opts"; then
2207 case $enable_option_checking in
2209 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2214 # Check all directory arguments for consistency.
2215 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2216 datadir sysconfdir sharedstatedir localstatedir includedir \
2217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2218 libdir localedir mandir
2220 eval ac_val
=\$
$ac_var
2221 # Remove trailing slashes.
2224 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2225 eval $ac_var=\
$ac_val;;
2227 # Be sure to have absolute directory names.
2229 [\\/$
]* | ?
:[\\/]* ) continue;;
2230 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2232 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2235 # There might be people who depend on the old broken behavior: `$host'
2236 # used to hold the argument of --host etc.
2237 # FIXME: To remove some day.
2240 target
=$target_alias
2242 # FIXME: To remove some day.
2243 if test "x$host_alias" != x
; then
2244 if test "x$build_alias" = x
; then
2245 cross_compiling
=maybe
2246 elif test "x$build_alias" != "x$host_alias"; then
2252 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2254 test "$silent" = yes && exec 6>/dev
/null
2257 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2258 ac_ls_di
=`ls -di .` &&
2259 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2260 as_fn_error $?
"working directory cannot be determined"
2261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2262 as_fn_error $?
"pwd does not report name of working directory"
2265 # Find the source files, if location was not specified.
2266 if test -z "$srcdir"; then
2267 ac_srcdir_defaulted
=yes
2268 # Try the directory containing this script, then the parent directory.
2269 ac_confdir
=`$as_dirname -- "$as_myself" ||
2270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2271 X"$as_myself" : 'X\(//\)[^/]' \| \
2272 X"$as_myself" : 'X\(//\)$' \| \
2273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2274 $as_echo X"$as_myself" |
2275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2293 if test ! -r "$srcdir/$ac_unique_file"; then
2297 ac_srcdir_defaulted
=no
2299 if test ! -r "$srcdir/$ac_unique_file"; then
2300 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2301 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2303 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2307 # When building in place, set srcdir=.
2308 if test "$ac_abs_confdir" = "$ac_pwd"; then
2311 # Remove unnecessary trailing slashes from srcdir.
2312 # Double slashes in file names in object file debugging info
2313 # mess up M-x gdb in Emacs.
2315 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2317 for ac_var
in $ac_precious_vars; do
2318 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2319 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2320 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2321 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2325 # Report the --help message.
2327 if test "$ac_init_help" = "long"; then
2328 # Omit some internal or obsolete options to make the list less imposing.
2329 # This message is too long to be a string in the A/UX 3.1 sh.
2331 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2333 Usage: $0 [OPTION]... [VAR=VALUE]...
2335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2336 VAR=VALUE. See below for descriptions of some of the useful variables.
2338 Defaults for the options are specified in brackets.
2341 -h, --help display this help and exit
2342 --help=short display options specific to this package
2343 --help=recursive display the short help of all the included packages
2344 -V, --version display version information and exit
2345 -q, --quiet, --silent do not print \`checking ...' messages
2346 --cache-file=FILE cache test results in FILE [disabled]
2347 -C, --config-cache alias for \`--cache-file=config.cache'
2348 -n, --no-create do not create output files
2349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2351 Installation directories:
2352 --prefix=PREFIX install architecture-independent files in PREFIX
2353 [$ac_default_prefix]
2354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2357 By default, \`make install' will install all the files in
2358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2360 for instance \`--prefix=\$HOME'.
2362 For better control, use the options below.
2364 Fine tuning of the installation directories:
2365 --bindir=DIR user executables [EPREFIX/bin]
2366 --sbindir=DIR system admin executables [EPREFIX/sbin]
2367 --libexecdir=DIR program executables [EPREFIX/libexec]
2368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2371 --libdir=DIR object code libraries [EPREFIX/lib]
2372 --includedir=DIR C header files [PREFIX/include]
2373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2376 --infodir=DIR info documentation [DATAROOTDIR/info]
2377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2378 --mandir=DIR man documentation [DATAROOTDIR/man]
2379 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2380 --htmldir=DIR html documentation [DOCDIR]
2381 --dvidir=DIR dvi documentation [DOCDIR]
2382 --pdfdir=DIR pdf documentation [DOCDIR]
2383 --psdir=DIR ps documentation [DOCDIR]
2389 --program-prefix=PREFIX prepend PREFIX to installed program names
2390 --program-suffix=SUFFIX append SUFFIX to installed program names
2391 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2394 --build=BUILD configure
for building on BUILD
[guessed
]
2395 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2396 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2400 if test -n "$ac_init_help"; then
2401 case $ac_init_help in
2402 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2407 --disable-option-checking ignore unrecognized
--enable/--with options
2408 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2409 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2410 --enable-maintainer-mode
2411 enable make rules and dependencies not useful
(and
2412 sometimes confusing
) to the casual installer
2413 --disable-largefile omit support
for large files
2414 --enable-plugins Enable support
for plugins
2415 --enable-dependency-tracking
2416 do not reject slow dependency extractors
2417 --disable-dependency-tracking
2418 speeds up one-time build
2419 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2420 --disable-silent-rules verbose build output
(undo
: "make V=0")
2422 Some influential environment variables
:
2423 CC C compiler
command
2424 CFLAGS C compiler flags
2425 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2426 nonstandard directory
<lib dir
>
2427 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2428 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2429 you have headers
in a nonstandard directory
<include dir
>
2432 Use these variables to override the choices made by
`configure' or to help
2433 it to find libraries and programs with nonstandard names/locations.
2435 Report bugs to the package provider.
2440 if test "$ac_init_help" = "recursive"; then
2441 # If there are subdirs, report their specific --help.
2442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2443 test -d "$ac_dir" ||
2444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2451 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2452 # A ".." for each directory in $ac_dir_suffix.
2453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2454 case $ac_top_builddir_sub in
2455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2459 ac_abs_top_builddir=$ac_pwd
2460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2461 # for backward compatibility:
2462 ac_top_builddir=$ac_top_build_prefix
2465 .) # We are building in place.
2467 ac_top_srcdir=$ac_top_builddir_sub
2468 ac_abs_top_srcdir=$ac_pwd ;;
2469 [\\/]* | ?:[\\/]* ) # Absolute name.
2470 ac_srcdir=$srcdir$ac_dir_suffix;
2471 ac_top_srcdir=$srcdir
2472 ac_abs_top_srcdir=$srcdir ;;
2474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2475 ac_top_srcdir=$ac_top_build_prefix$srcdir
2476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2480 cd "$ac_dir" || { ac_status=$?; continue; }
2481 # Check for guested configure.
2482 if test -f "$ac_srcdir/configure.gnu"; then
2484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2485 elif test -f "$ac_srcdir/configure"; then
2487 $SHELL "$ac_srcdir/configure" --help=recursive
2489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2491 cd "$ac_pwd" || { ac_status=$?; break; }
2495 test -n "$ac_init_help" && exit $ac_status
2496 if $ac_init_version; then
2498 libgnu configure UNUSED-VERSION
2499 generated by GNU Autoconf 2.69
2501 Copyright (C) 2012 Free Software Foundation, Inc.
2502 This configure script is free software; the Free Software Foundation
2503 gives unlimited permission to copy, distribute and modify it.
2508 ## ------------------------ ##
2509 ## Autoconf initialization. ##
2510 ## ------------------------ ##
2512 # ac_fn_c_try_compile LINENO
2513 # --------------------------
2514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2515 ac_fn_c_try_compile ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 rm -f conftest.$ac_objext
2519 if { { ac_try="$ac_compile"
2521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2522 *) ac_try_echo
=$ac_try;;
2524 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525 $as_echo "$ac_try_echo"; } >&5
2526 (eval "$ac_compile") 2>conftest.err
2528 if test -s conftest.err
; then
2529 grep -v '^ *+' conftest.err
>conftest.er1
2530 cat conftest.er1
>&5
2531 mv -f conftest.er1 conftest.err
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.
$ac_objext; then :
2540 $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.
$ac_ext >&5
2545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546 as_fn_set_status
$ac_retval
2548 } # ac_fn_c_try_compile
2550 # ac_fn_c_try_cpp LINENO
2551 # ----------------------
2552 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2555 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2556 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2565 if test -s conftest.err; then
2566 grep -v '^ *+' conftest.err >conftest.er1
2567 cat conftest.er1 >&5
2568 mv -f conftest.er1 conftest.err
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; } > conftest.i && {
2572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2573 test ! -s conftest.err
2577 $as_echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2583 as_fn_set_status $ac_retval
2587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2588 # -------------------------------------------------------
2589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2590 # the include files in INCLUDES and setting the cache variable VAR
2592 ac_fn_c_check_header_mongrel ()
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 if eval \${$3+:} false; then :
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if eval \${$3+:} false; then :
2599 $as_echo_n "(cached) " >&6
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2605 # Is the header compilable?
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2607 $as_echo_n "checking $2 usability... " >&6; }
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614 ac_header_compiler=yes
2616 ac_header_compiler=no
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2620 $as_echo "$ac_header_compiler" >&6; }
2622 # Is the header present?
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2624 $as_echo_n "checking $2 presence... " >&6; }
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2629 if ac_fn_c_try_cpp "$LINENO"; then :
2630 ac_header_preproc=yes
2632 ac_header_preproc=no
2634 rm -f conftest.err conftest.i conftest.$ac_ext
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2636 $as_echo "$ac_header_preproc" >&6; }
2638 # So? What about this header?
2639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2650 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2654 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 eval "$3=\$ac_header_compiler"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672 } # ac_fn_c_check_header_mongrel
2674 # ac_fn_c_try_run LINENO
2675 # ----------------------
2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2677 # that executables *can* be run.
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 if { { ac_try="$ac_link"
2683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2684 *) ac_try_echo
=$ac_try;;
2686 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2692 { { case "(($ac_try" in
2693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_try") 2>&5
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701 test $ac_status = 0; }; }; then :
2704 $as_echo "$as_me: program exited with status $ac_status" >&5
2705 $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 ac_retval=$ac_status
2710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 as_fn_set_status $ac_retval
2716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2717 # -------------------------------------------------------
2718 # Tests whether HEADER exists and can be compiled using the include files in
2719 # INCLUDES, setting the cache variable VAR accordingly.
2720 ac_fn_c_check_header_compile ()
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2733 if ac_fn_c_try_compile "$LINENO"; then :
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745 } # ac_fn_c_check_header_compile
2747 # ac_fn_c_try_link LINENO
2748 # -----------------------
2749 # Try to link conftest.$ac_ext, and return whether this succeeded.
2752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753 rm -f conftest.$ac_objext conftest$ac_exeext
2754 if { { ac_try="$ac_link"
2756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2757 *) ac_try_echo
=$ac_try;;
2759 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link") 2>conftest.err
2763 if test -s conftest.err
; then
2764 grep -v '^ *+' conftest.err
>conftest.er1
2765 cat conftest.er1
>&5
2766 mv -f conftest.er1 conftest.err
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; } && {
2770 test -z "$ac_c_werror_flag" ||
2771 test ! -s conftest.err
2772 } && test -s conftest
$ac_exeext && {
2773 test "$cross_compiling" = yes ||
2774 test -x conftest
$ac_exeext
2778 $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.
$ac_ext >&5
2783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2785 # interfere with the next link command; also delete a directory that is
2786 # left behind by Apple's compiler. We do this before executing the actions.
2787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 as_fn_set_status
$ac_retval
2791 } # ac_fn_c_try_link
2793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2794 # -------------------------------------------
2795 # Tests whether TYPE exists after having included INCLUDES, setting cache
2796 # variable VAR accordingly.
2797 ac_fn_c_check_type
()
2799 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \
${$3+:} false
; then :
2803 $as_echo_n "(cached) " >&6
2806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2818 if ac_fn_c_try_compile
"$LINENO"; then :
2819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2831 if ac_fn_c_try_compile
"$LINENO"; then :
2836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2842 $as_echo "$ac_res" >&6; }
2843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845 } # ac_fn_c_check_type
2847 # ac_fn_c_check_func LINENO FUNC VAR
2848 # ----------------------------------
2849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2850 ac_fn_c_check_func
()
2852 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2854 $as_echo_n "checking for $2... " >&6; }
2855 if eval \
${$3+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2862 #define $2 innocuous_$2
2864 /* System header to define __stub macros and hopefully few prototypes,
2865 which can conflict with char $2 (); below.
2866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2867 <limits.h> exists even on freestanding compilers. */
2870 # include <limits.h>
2872 # include <assert.h>
2877 /* Override any GCC internal prototype to avoid an error.
2878 Use char because int might match the return type of a GCC
2879 builtin and then its argument prototype would still apply. */
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined __stub_$2 || defined __stub___$2
2899 if ac_fn_c_try_link
"$LINENO"; then :
2904 rm -f core conftest.err conftest.
$ac_objext \
2905 conftest
$ac_exeext conftest.
$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_func
2914 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2915 # ---------------------------------------------
2916 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2918 ac_fn_c_check_decl
()
2920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2921 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2922 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2924 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2925 if eval \
${$3+:} false
; then :
2926 $as_echo_n "(cached) " >&6
2928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2934 #ifndef $as_decl_name
2936 (void) $as_decl_use;
2938 (void) $as_decl_name;
2946 if ac_fn_c_try_compile
"$LINENO"; then :
2951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955 $as_echo "$ac_res" >&6; }
2956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2958 } # ac_fn_c_check_decl
2960 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2961 # --------------------------------------------
2962 # Tries to find the compile-time value of EXPR in a program that includes
2963 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2965 ac_fn_c_compute_int
()
2967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2968 if test "$cross_compiling" = yes; then
2969 # Depending upon the size, compute the lo and hi bounds.
2970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2976 static int test_array [1 - 2 * !(($2) >= 0)];
2978 return test_array [0];
2984 if ac_fn_c_try_compile
"$LINENO"; then :
2987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2993 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2995 return test_array [0];
3001 if ac_fn_c_try_compile
"$LINENO"; then :
3002 ac_hi
=$ac_mid; break
3004 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3005 if test $ac_lo -le $ac_mid; then
3009 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3020 static int test_array [1 - 2 * !(($2) < 0)];
3022 return test_array [0];
3028 if ac_fn_c_try_compile
"$LINENO"; then :
3031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3037 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3039 return test_array [0];
3045 if ac_fn_c_try_compile
"$LINENO"; then :
3046 ac_lo
=$ac_mid; break
3048 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3049 if test $ac_mid -le $ac_hi; then
3053 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3063 # Binary search between lo and hi bounds.
3064 while test "x$ac_lo" != "x$ac_hi"; do
3065 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3074 return test_array [0];
3080 if ac_fn_c_try_compile
"$LINENO"; then :
3083 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3088 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3095 static long int longval () { return $2; }
3096 static unsigned long int ulongval () { return $2; }
3103 FILE *f = fopen ("conftest.val", "w");
3108 long int i = longval ();
3111 fprintf (f, "%ld", i);
3115 unsigned long int i = ulongval ();
3118 fprintf (f, "%lu", i);
3120 /* Do not output a trailing newline, as this causes \r\n confusion
3121 on some platforms. */
3122 return ferror (f) || fclose (f) != 0;
3128 if ac_fn_c_try_run
"$LINENO"; then :
3129 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3134 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3139 as_fn_set_status
$ac_retval
3141 } # ac_fn_c_compute_int
3143 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3144 # ----------------------------------------------------
3145 # Tries to find if the field MEMBER exists in type AGGR, after including
3146 # INCLUDES, setting cache variable VAR accordingly.
3147 ac_fn_c_check_member
()
3149 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3151 $as_echo_n "checking for $2.$3... " >&6; }
3152 if eval \
${$4+:} false
; then :
3153 $as_echo_n "(cached) " >&6
3155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3168 if ac_fn_c_try_compile
"$LINENO"; then :
3171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3178 if (sizeof ac_aggr.$3)
3184 if ac_fn_c_try_compile
"$LINENO"; then :
3189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3195 $as_echo "$ac_res" >&6; }
3196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3198 } # ac_fn_c_check_member
3199 cat >config.log
<<_ACEOF
3200 This file contains any messages produced by compilers while
3201 running configure, to aid debugging if configure makes a mistake.
3203 It was created by libgnu $as_me UNUSED-VERSION, which was
3204 generated by GNU Autoconf 2.69. Invocation command line was
3216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3223 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3225 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3226 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3228 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3229 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3230 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3231 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir
=.
3240 $as_echo "PATH: $as_dir"
3256 # Keep a trace of the command line.
3257 # Strip out --no-create and --no-recursion so they do not pile up.
3258 # Strip out --silent because we don't want to record it for future runs.
3259 # Also quote any args containing shell meta-characters.
3260 # Make two passes to allow for proper duplicate-argument suppression.
3264 ac_must_keep_next
=false
3270 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3271 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3272 |
-silent |
--silent |
--silen |
--sile |
--sil)
3275 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3278 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3280 as_fn_append ac_configure_args1
" '$ac_arg'"
3281 if test $ac_must_keep_next = true
; then
3282 ac_must_keep_next
=false
# Got value, back to normal.
3285 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3286 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3287 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3288 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3289 case "$ac_configure_args0 " in
3290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3293 -* ) ac_must_keep_next
=true
;;
3296 as_fn_append ac_configure_args
" '$ac_arg'"
3301 { ac_configure_args0
=; unset ac_configure_args0
;}
3302 { ac_configure_args1
=; unset ac_configure_args1
;}
3304 # When interrupted or exit'd, cleanup temporary files, and complete
3305 # config.log. We remove comments because anyway the quotes in there
3306 # would cause problems or look ugly.
3307 # WARNING: Use '\'' to represent an apostrophe within the trap.
3308 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3309 trap 'exit_status=$?
3310 # Save into config.log some information that might help in debugging.
3314 $as_echo "## ---------------- ##
3315 ## Cache variables. ##
3316 ## ---------------- ##"
3318 # The following way of writing the cache mishandles newlines in values,
3320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3321 eval ac_val=\$$ac_var
3325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3329 _ | IFS | as_nl) ;; #(
3330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3331 *) { eval $ac_var=; unset $ac_var;} ;;
3336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3337 *${as_nl}ac_space=\ *)
3339 "s/'\''/'\''\\\\'\'''\''/g;
3340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3350 $as_echo "## ----------------- ##
3351 ## Output variables. ##
3352 ## ----------------- ##"
3354 for ac_var in $ac_subst_vars
3356 eval ac_val=\$$ac_var
3358 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3360 $as_echo "$ac_var='\''$ac_val'\''"
3364 if test -n "$ac_subst_files"; then
3365 $as_echo "## ------------------- ##
3366 ## File substitutions. ##
3367 ## ------------------- ##"
3369 for ac_var
in $ac_subst_files
3371 eval ac_val
=\$
$ac_var
3373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3375 $as_echo "$ac_var='\''$ac_val'\''"
3380 if test -s confdefs.h; then
3381 $as_echo "## ----------- ##
3388 test "$ac_signal" != 0 &&
3389 $as_echo "$as_me: caught signal $ac_signal"
3390 $as_echo "$as_me: exit $exit_status"
3392 rm -f core *.core core.conftest.* &&
3393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3396 for ac_signal
in 1 2 13 15; do
3397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3402 rm -f -r conftest
* confdefs.h
3404 $as_echo "/* confdefs.h */" > confdefs.h
3406 # Predefined preprocessor variables.
3408 cat >>confdefs.h
<<_ACEOF
3409 #define PACKAGE_NAME "$PACKAGE_NAME"
3412 cat >>confdefs.h
<<_ACEOF
3413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3416 cat >>confdefs.h
<<_ACEOF
3417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3420 cat >>confdefs.h
<<_ACEOF
3421 #define PACKAGE_STRING "$PACKAGE_STRING"
3424 cat >>confdefs.h
<<_ACEOF
3425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3428 cat >>confdefs.h
<<_ACEOF
3429 #define PACKAGE_URL "$PACKAGE_URL"
3433 # Let the site file select an alternate cache file if it wants to.
3434 # Prefer an explicitly selected file to automatically selected ones.
3437 if test -n "$CONFIG_SITE"; then
3438 # We do not want a PATH search for config.site.
3439 case $CONFIG_SITE in #((
3440 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3441 */*) ac_site_file1
=$CONFIG_SITE;;
3442 *) ac_site_file1
=.
/$CONFIG_SITE;;
3444 elif test "x$prefix" != xNONE
; then
3445 ac_site_file1
=$prefix/share
/config.site
3446 ac_site_file2
=$prefix/etc
/config.site
3448 ac_site_file1
=$ac_default_prefix/share
/config.site
3449 ac_site_file2
=$ac_default_prefix/etc
/config.site
3451 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3453 test "x$ac_site_file" = xNONE
&& continue
3454 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3456 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3457 sed 's/^/| /' "$ac_site_file" >&5
3459 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $?
"failed to load site script $ac_site_file
3462 See \`config.log' for more details" "$LINENO" 5; }
3466 if test -r "$cache_file"; then
3467 # Some versions of bash will fail to source /dev/null (special files
3468 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3469 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3471 $as_echo "$as_me: loading cache $cache_file" >&6;}
3473 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3474 *) .
"./$cache_file";;
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3479 $as_echo "$as_me: creating cache $cache_file" >&6;}
3483 gl_header_list
="$gl_header_list arpa/inet.h"
3484 gl_header_list
="$gl_header_list features.h"
3485 gl_func_list
="$gl_func_list canonicalize_file_name"
3486 gl_func_list
="$gl_func_list getcwd"
3487 gl_func_list
="$gl_func_list readlink"
3488 gl_func_list
="$gl_func_list realpath"
3489 gl_header_list
="$gl_header_list sys/param.h"
3490 gl_header_list
="$gl_header_list unistd.h"
3491 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3492 gl_header_list
="$gl_header_list sys/socket.h"
3493 gl_func_list
="$gl_func_list fchdir"
3494 gl_header_list
="$gl_header_list dirent.h"
3495 gl_func_list
="$gl_func_list fcntl"
3496 gl_func_list
="$gl_func_list symlink"
3497 gl_func_list
="$gl_func_list fdopendir"
3498 gl_func_list
="$gl_func_list mempcpy"
3499 gl_func_list
="$gl_func_list btowc"
3500 gl_func_list
="$gl_func_list isblank"
3501 gl_func_list
="$gl_func_list iswctype"
3502 gl_func_list
="$gl_func_list mbsrtowcs"
3503 gl_func_list
="$gl_func_list wmemchr"
3504 gl_func_list
="$gl_func_list wmemcpy"
3505 gl_func_list
="$gl_func_list wmempcpy"
3506 gl_header_list
="$gl_header_list wctype.h"
3507 gl_fnmatch_required
=GNU
3508 gl_header_list
="$gl_header_list sys/stat.h"
3509 gl_func_list
="$gl_func_list fstatat"
3510 gl_func_list
="$gl_func_list getdtablesize"
3511 gl_func_list
="$gl_func_list getlogin_r"
3512 gl_func_list
="$gl_func_list getprogname"
3513 gl_func_list
="$gl_func_list getexecname"
3514 gl_header_list
="$gl_header_list sys/time.h"
3515 gl_func_list
="$gl_func_list gettimeofday"
3516 gl_header_list
="$gl_header_list sys/cdefs.h"
3517 gl_func_list
="$gl_func_list getpwnam_r"
3518 gl_header_list
="$gl_header_list netdb.h"
3519 gl_header_list
="$gl_header_list netinet/in.h"
3520 gl_header_list
="$gl_header_list limits.h"
3521 gl_header_list
="$gl_header_list wchar.h"
3522 gl_header_list
="$gl_header_list stdint.h"
3523 gl_header_list
="$gl_header_list inttypes.h"
3524 gl_func_list
="$gl_func_list lstat"
3525 gl_header_list
="$gl_header_list math.h"
3526 gl_func_list
="$gl_func_list mbsinit"
3527 gl_func_list
="$gl_func_list mbrtowc"
3528 gl_header_list
="$gl_header_list sys/mman.h"
3529 gl_func_list
="$gl_func_list mprotect"
3530 gl_func_list
="$gl_func_list mkostemp"
3531 gl_func_list
="$gl_func_list openat"
3532 gl_func_list
="$gl_func_list link"
3533 gl_func_list
="$gl_func_list secure_getenv"
3534 gl_func_list
="$gl_func_list getuid"
3535 gl_func_list
="$gl_func_list geteuid"
3536 gl_func_list
="$gl_func_list getgid"
3537 gl_func_list
="$gl_func_list getegid"
3538 gl_func_list
="$gl_func_list setenv"
3539 gl_func_list
="$gl_func_list strdup"
3540 gl_header_list
="$gl_header_list sys/uio.h"
3541 gl_func_list
="$gl_func_list pipe"
3542 gl_func_list
="$gl_func_list iswcntrl"
3543 # Check that the precious variables saved in the cache have kept the same
3545 ac_cache_corrupted
=false
3546 for ac_var
in $ac_precious_vars; do
3547 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3548 eval ac_new_set
=\
$ac_env_${ac_var}_set
3549 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3550 eval ac_new_val
=\
$ac_env_${ac_var}_value
3551 case $ac_old_set,$ac_new_set in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3555 ac_cache_corrupted
=: ;;
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3559 ac_cache_corrupted
=: ;;
3562 if test "x$ac_old_val" != "x$ac_new_val"; then
3563 # differences in whitespace do not lead to failure.
3564 ac_old_val_w
=`echo x $ac_old_val`
3565 ac_new_val_w
=`echo x $ac_new_val`
3566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3569 ac_cache_corrupted
=:
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3573 eval $ac_var=\
$ac_old_val
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3576 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3578 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3581 # Pass precious variables to config.status.
3582 if test "$ac_new_set" = set; then
3584 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3585 *) ac_arg
=$ac_var=$ac_new_val ;;
3587 case " $ac_configure_args " in
3588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3589 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3593 if $ac_cache_corrupted; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3598 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3600 ## -------------------- ##
3601 ## Main body of script. ##
3602 ## -------------------- ##
3605 ac_cpp
='$CPP $CPPFLAGS'
3606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3615 ac_config_headers
="$ac_config_headers config.h:config.in"
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3619 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3620 # Check whether --enable-maintainer-mode was given.
3621 if test "${enable_maintainer_mode+set}" = set; then :
3622 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3624 USE_MAINTAINER_MODE
=no
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3628 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3629 if test $USE_MAINTAINER_MODE = yes; then
3630 MAINTAINER_MODE_TRUE
=
3631 MAINTAINER_MODE_FALSE
='#'
3633 MAINTAINER_MODE_TRUE
='#'
3634 MAINTAINER_MODE_FALSE
=
3637 MAINT
=$MAINTAINER_MODE_TRUE
3642 ac_cpp
='$CPP $CPPFLAGS'
3643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3648 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_CC+:} false
; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC
="$CC" # Let the user override the test.
3657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir
=.
3662 for ac_exec_ext
in '' $ac_executable_extensions; do
3663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3685 if test -z "$ac_cv_prog_CC"; then
3687 # Extract the first word of "gcc", so it can be a program name with args.
3688 set dummy gcc
; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$ac_ct_CC"; then
3695 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_CC
="gcc"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3715 if test -n "$ac_ct_CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3717 $as_echo "$ac_ct_CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3723 if test "x$ac_ct_CC" = x
; then
3726 case $cross_compiling:$ac_tool_warned in
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3730 ac_tool_warned
=yes ;;
3738 if test -z "$CC"; then
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3741 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false
; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC
="$CC" # Let the user override the test.
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_exec_ext
in '' $ac_executable_extensions; do
3756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3779 if test -z "$CC"; then
3780 # Extract the first word of "cc", so it can be a program name with args.
3781 set dummy cc
; ac_word
=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_CC+:} false
; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC
="$CC" # Let the user override the test.
3791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir
=.
3796 for ac_exec_ext
in '' $ac_executable_extensions; do
3797 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3799 ac_prog_rejected
=yes
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 if test $ac_prog_rejected = yes; then
3811 # We found a bogon in the path, so make sure we never use it.
3812 set dummy
$ac_cv_prog_CC
3814 if test $# != 0; then
3815 # We chose a different compiler from the bogus one.
3816 # However, it has the same basename, so the bogon will be chosen
3817 # first if we set CC to just the basename; use the full file name.
3819 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3825 if test -n "$CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3835 if test -z "$CC"; then
3836 if test -n "$ac_tool_prefix"; then
3837 for ac_prog
in cl.exe
3839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3840 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_CC+:} false
; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC
="$CC" # Let the user override the test.
3849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir
=.
3854 for ac_exec_ext
in '' $ac_executable_extensions; do
3855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$CC" && break
3879 if test -z "$CC"; then
3881 for ac_prog
in cl.exe
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy
$ac_prog; ac_word
=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir
=.
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_CC
="$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913 $as_echo "$ac_ct_CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$ac_ct_CC" && break
3923 if test "x$ac_ct_CC" = x
; then
3926 case $cross_compiling:$ac_tool_warned in
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3930 ac_tool_warned
=yes ;;
3939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $?
"no acceptable C compiler found in \$PATH
3942 See \`config.log' for more details" "$LINENO" 5; }
3944 # Provide some information about the compiler.
3945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3948 for ac_option
in --version -v -V -qversion; do
3949 { { ac_try
="$ac_compiler $ac_option >&5"
3951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3958 if test -s conftest.err; then
3960 ... rest of stderr output deleted ...
3961 10q' conftest.err >conftest.er1
3962 cat conftest.er1 >&5
3964 rm -f conftest.er1 conftest.err
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3980 ac_clean_files_save=$ac_clean_files
3981 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3982 # Try to create an executable without -o first, disregard a.out.
3983 # It will help us diagnose broken compilers, and finding out an intuition
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3986 $as_echo_n "checking whether the C compiler works... " >&6; }
3987 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3989 # The possible output files:
3990 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3993 for ac_file in $ac_files
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4002 if { { ac_try="$ac_link_default"
4004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4005 *) ac_try_echo
=$ac_try;;
4007 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_link_default") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4014 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4015 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4016 # so that the user can short-circuit this test for compilers unknown to
4018 for ac_file
in $ac_files ''
4020 test -f "$ac_file" ||
continue
4022 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4025 # We found the default executable, but exeext='' is most
4029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4031 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4033 # We set ac_cv_exeext here because the later test for it is not
4034 # safe: cross compilers may not add the suffix if given an `-o'
4035 # argument, so we may need to know it at that point already.
4036 # Even if this section looks crufty: it has the advantage of
4043 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4048 if test -z "$ac_file"; then :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.
$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error
77 "C compiler cannot create executables
4057 See \`config.log' for more details" "$LINENO" 5; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4063 $as_echo_n "checking for C compiler default output file name... " >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4065 $as_echo "$ac_file" >&6; }
4066 ac_exeext
=$ac_cv_exeext
4068 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4069 ac_clean_files
=$ac_clean_files_save
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4071 $as_echo_n "checking for suffix of executables... " >&6; }
4072 if { { ac_try
="$ac_link"
4074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_link") 2>&5
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }; then :
4083 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4084 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4085 # work properly (i.e., refer to `conftest.exe'), while it won't with
4087 for ac_file
in conftest.exe conftest conftest.
*; do
4088 test -f "$ac_file" ||
continue
4090 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4091 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 rm -f conftest conftest
$ac_cv_exeext
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4104 $as_echo "$ac_cv_exeext" >&6; }
4106 rm -f conftest.
$ac_ext
4107 EXEEXT
=$ac_cv_exeext
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4115 FILE *f = fopen ("conftest.out", "w");
4116 return ferror (f) || fclose (f) != 0;
4122 ac_clean_files
="$ac_clean_files conftest.out"
4123 # Check that the compiler produces executables we can run. If not, either
4124 # the compiler is broken, or we cross compile.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4126 $as_echo_n "checking whether we are cross compiling... " >&6; }
4127 if test "$cross_compiling" != yes; then
4128 { { ac_try
="$ac_link"
4130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134 $as_echo "$ac_try_echo"; } >&5
4135 (eval "$ac_link") 2>&5
4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }
4139 if { ac_try='./conftest$ac_cv_exeext'
4140 { { case "(($ac_try" in
4141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4142 *) ac_try_echo
=$ac_try;;
4144 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_try") 2>&5
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; }; then
4152 if test "$cross_compiling" = maybe
; then
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $?
"cannot run C compiled programs.
4158 If you meant to cross compile, use \`--host'.
4159 See \`config.log' for more details" "$LINENO" 5; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4164 $as_echo "$cross_compiling" >&6; }
4166 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4167 ac_clean_files
=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4169 $as_echo_n "checking for suffix of object files... " >&6; }
4170 if ${ac_cv_objext+:} false
; then :
4171 $as_echo_n "(cached) " >&6
4173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4184 rm -f conftest.o conftest.obj
4185 if { { ac_try
="$ac_compile"
4187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_compile") 2>&5
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }; then :
4196 for ac_file in conftest.o conftest.obj conftest.*; do
4197 test -f "$ac_file" || continue;
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4205 $as_echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4210 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4211 See \
`config.log' for more details" "$LINENO" 5; }
4213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4216 $as_echo "$ac_cv_objext" >&6; }
4217 OBJEXT=$ac_cv_objext
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4221 if ${ac_cv_c_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_c_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4248 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4254 ac_test_CFLAGS=${CFLAGS+set}
4255 ac_save_CFLAGS=$CFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4257 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4258 if ${ac_cv_prog_cc_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 ac_save_c_werror_flag=$ac_c_werror_flag
4262 ac_c_werror_flag=yes
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_c_try_compile "$LINENO"; then :
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_c_werror_flag=$ac_save_c_werror_flag
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_c_try_compile "$LINENO"; then :
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_c_werror_flag=$ac_save_c_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4318 $as_echo "$ac_cv_prog_cc_g" >&6; }
4319 if test "$ac_test_CFLAGS" = set; then
4320 CFLAGS=$ac_save_CFLAGS
4321 elif test $ac_cv_prog_cc_g = yes; then
4322 if test "$GCC" = yes; then
4328 if test "$GCC" = yes; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4335 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4336 if ${ac_cv_prog_cc_c89+:} false; then :
4337 $as_echo_n "(cached) " >&6
4339 ac_cv_prog_cc_c89=no
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4347 struct buf { int x; };
4348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4349 static char *e (p, i)
4355 static char *f (char * (*g) (char **, int), char **p, ...)
4360 s = g (p, va_arg (v,int));
4365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4366 function prototypes and stuff, but not '\xHH' hex character constants.
4367 These don't provoke an error unfortunately, instead are silently treated
4368 as 'x'. The following induces an error, until -std is added to get
4369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4370 array size at least. It's necessary to write '\x00'==0 to get something
4371 that's true only with -std. */
4372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4374 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4375 inside strings and character constants. */
4377 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4379 int test (int i, double x);
4380 struct s1 {int (*f) (int a);};
4381 struct s2 {int (*f) (double a);};
4382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4393 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4396 CC="$ac_save_CC $ac_arg"
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_prog_cc_c89=$ac_arg
4400 rm -f core conftest.err conftest.$ac_objext
4401 test "x$ac_cv_prog_cc_c89" != "xno" && break
4403 rm -f conftest.$ac_ext
4408 case "x$ac_cv_prog_cc_c89" in
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4411 $as_echo "none needed" >&6; } ;;
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4414 $as_echo "unsupported" >&6; } ;;
4416 CC="$CC $ac_cv_prog_cc_c89"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4418 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4420 if test "x$ac_cv_prog_cc_c89" != xno; then :
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4432 if test -f "$ac_dir/install-sh"; then
4434 ac_install_sh="$ac_aux_dir/install-sh -c"
4436 elif test -f "$ac_dir/install.sh"; then
4438 ac_install_sh="$ac_aux_dir/install.sh -c"
4440 elif test -f "$ac_dir/shtool"; then
4442 ac_install_sh="$ac_aux_dir/shtool install -c"
4446 if test -z "$ac_aux_dir"; then
4447 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4450 # These three variables are undocumented and unsupported,
4451 # and are intended to be withdrawn in a future Autoconf release.
4452 # They can cause serious problems if a builder's source tree is in a directory
4453 # whose full name contains unusual characters.
4454 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4455 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4456 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4459 # Expand $ac_aux_dir to an absolute path.
4460 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4468 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4469 if ${am_cv_prog_cc_c_o+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4483 # Make sure it works both with $CC and with simple cc.
4484 # Following AC_PROG_CC_C_O, we do the test twice because some
4485 # compilers refuse to overwrite an existing .o file with -o,
4486 # though they will create one.
4487 am_cv_prog_cc_c_o=yes
4489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } \
4494 && test -f conftest2.$ac_objext; then
4497 am_cv_prog_cc_c_o=no
4501 rm -f core conftest*
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4505 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4506 if test "$am_cv_prog_cc_c_o" != yes; then
4507 # Losing compiler, so override with the script.
4508 # FIXME: It is wrong to rewrite CC.
4509 # But if we don't then we get into trouble of one sort or another.
4510 # A longer-term fix would be to have automake use am__CC in this case,
4511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4512 CC="$am_aux_dir/compile $CC"
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4528 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4529 # On Suns, sometimes $CPP names a directory.
4530 if test -n "$CPP" && test -d "$CPP"; then
4533 if test -z "$CPP"; then
4534 if ${ac_cv_prog_CPP+:} false; then :
4535 $as_echo_n "(cached) " >&6
4537 # Double quotes because CPP needs to be expanded
4538 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4541 for ac_c_preproc_warn_flag in '' yes
4543 # Use a header file that comes with gcc, so configuring glibc
4544 # with a fresh cross-compiler works.
4545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4546 # <limits.h> exists even on freestanding compilers.
4547 # On the NeXT, cc -E runs the code through the compiler's parser,
4548 # not just through cpp. "Syntax error" is here to catch this case.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4552 # include <limits.h>
4554 # include <assert.h>
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4561 # Broken: fails on valid input.
4564 rm -f conftest.err conftest.i conftest.$ac_ext
4566 # OK, works on sane cases. Now check whether nonexistent headers
4567 # can be detected and how.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <ac_nonexistent.h>
4572 if ac_fn_c_try_cpp "$LINENO"; then :
4573 # Broken: success on invalid input.
4576 # Passes both tests.
4580 rm -f conftest.err conftest.i conftest.$ac_ext
4583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4584 rm -f conftest.i conftest.err conftest.
$ac_ext
4585 if $ac_preproc_ok; then :
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4598 $as_echo "$CPP" >&6; }
4600 for ac_c_preproc_warn_flag
in '' yes
4602 # Use a header file that comes with gcc, so configuring glibc
4603 # with a fresh cross-compiler works.
4604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4605 # <limits.h> exists even on freestanding compilers.
4606 # On the NeXT, cc -E runs the code through the compiler's parser,
4607 # not just through cpp. "Syntax error" is here to catch this case.
4608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4611 # include <limits.h>
4613 # include <assert.h>
4617 if ac_fn_c_try_cpp
"$LINENO"; then :
4620 # Broken: fails on valid input.
4623 rm -f conftest.err conftest.i conftest.
$ac_ext
4625 # OK, works on sane cases. Now check whether nonexistent headers
4626 # can be detected and how.
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <ac_nonexistent.h>
4631 if ac_fn_c_try_cpp
"$LINENO"; then :
4632 # Broken: success on invalid input.
4635 # Passes both tests.
4639 rm -f conftest.err conftest.i conftest.
$ac_ext
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.i conftest.err conftest.
$ac_ext
4644 if $ac_preproc_ok; then :
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4650 See \`config.log' for more details" "$LINENO" 5; }
4654 ac_cpp
='$CPP $CPPFLAGS'
4655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4662 if ${ac_cv_path_GREP+:} false
; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -z "$GREP"; then
4666 ac_path_GREP_found
=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4669 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4672 test -z "$as_dir" && as_dir
=.
4673 for ac_prog
in grep ggrep
; do
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4676 as_fn_executable_p
"$ac_path_GREP" ||
continue
4677 # Check for GNU ac_path_GREP and select it if it is found.
4678 # Check for GNU $ac_path_GREP
4679 case `"$ac_path_GREP" --version 2>&1` in
4681 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4684 $as_echo_n 0123456789 >"conftest.in"
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo 'GREP' >> "conftest.nl"
4691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4692 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4693 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_GREP
="$ac_path_GREP"
4697 ac_path_GREP_max
=$ac_count
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4702 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4705 $ac_path_GREP_found && break 3
4710 if test -z "$ac_cv_path_GREP"; then
4711 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4714 ac_cv_path_GREP
=$GREP
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4719 $as_echo "$ac_cv_path_GREP" >&6; }
4720 GREP
="$ac_cv_path_GREP"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4724 $as_echo_n "checking for egrep... " >&6; }
4725 if ${ac_cv_path_EGREP+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4729 then ac_cv_path_EGREP
="$GREP -E"
4731 if test -z "$EGREP"; then
4732 ac_path_EGREP_found
=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_prog
in egrep; do
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4742 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4743 # Check for GNU ac_path_EGREP and select it if it is found.
4744 # Check for GNU $ac_path_EGREP
4745 case `"$ac_path_EGREP" --version 2>&1` in
4747 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4750 $as_echo_n 0123456789 >"conftest.in"
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo 'EGREP' >> "conftest.nl"
4757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4758 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4759 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_EGREP
="$ac_path_EGREP"
4763 ac_path_EGREP_max
=$ac_count
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4768 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4771 $ac_path_EGREP_found && break 3
4776 if test -z "$ac_cv_path_EGREP"; then
4777 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4780 ac_cv_path_EGREP
=$EGREP
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4786 $as_echo "$ac_cv_path_EGREP" >&6; }
4787 EGREP
="$ac_cv_path_EGREP"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4791 $as_echo_n "checking for ANSI C header files... " >&6; }
4792 if ${ac_cv_header_stdc+:} false
; then :
4793 $as_echo_n "(cached) " >&6
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4810 if ac_fn_c_try_compile
"$LINENO"; then :
4811 ac_cv_header_stdc
=yes
4813 ac_cv_header_stdc
=no
4815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4817 if test $ac_cv_header_stdc = yes; then
4818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4825 $EGREP "memchr" >/dev
/null
2>&1; then :
4828 ac_cv_header_stdc
=no
4834 if test $ac_cv_header_stdc = yes; then
4835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "free" >/dev
/null
2>&1; then :
4845 ac_cv_header_stdc
=no
4851 if test $ac_cv_header_stdc = yes; then
4852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4853 if test "$cross_compiling" = yes; then :
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4860 #if ((' ' & 0x0FF) == 0x020)
4861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4864 # define ISLOWER(c) \
4865 (('a' <= (c) && (c) <= 'i') \
4866 || ('j' <= (c) && (c) <= 'r') \
4867 || ('s' <= (c) && (c) <= 'z'))
4868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4876 for (i = 0; i < 256; i++)
4877 if (XOR (islower (i), ISLOWER (i))
4878 || toupper (i) != TOUPPER (i))
4883 if ac_fn_c_try_run
"$LINENO"; then :
4886 ac_cv_header_stdc
=no
4888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4895 $as_echo "$ac_cv_header_stdc" >&6; }
4896 if test $ac_cv_header_stdc = yes; then
4898 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4903 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4904 inttypes.h stdint.h unistd.h
4906 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4907 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4909 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4910 cat >>confdefs.h
<<_ACEOF
4911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4920 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4921 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4928 if test "$MINIX" = yes; then
4930 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4933 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4936 $as_echo "#define _MINIX 1" >>confdefs.h
4939 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4945 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4946 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4947 $as_echo_n "(cached) " >&6
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4952 # define __EXTENSIONS__ 1
4953 $ac_includes_default
4962 if ac_fn_c_try_compile
"$LINENO"; then :
4963 ac_cv_safe_to_define___extensions__
=yes
4965 ac_cv_safe_to_define___extensions__
=no
4967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4971 test $ac_cv_safe_to_define___extensions__ = yes &&
4972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4976 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4978 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4980 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4982 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4984 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4986 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4988 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4990 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4992 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4994 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4996 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4999 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5000 if ${ac_cv_should_define__xopen_source+:} false
; then :
5001 $as_echo_n "(cached) " >&6
5003 ac_cv_should_define__xopen_source
=no
5004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5017 if ac_fn_c_try_compile
"$LINENO"; then :
5020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5023 #define _XOPEN_SOURCE 500
5034 if ac_fn_c_try_compile
"$LINENO"; then :
5035 ac_cv_should_define__xopen_source
=yes
5037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5042 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5043 test $ac_cv_should_define__xopen_source = yes &&
5044 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5057 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5058 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5072 gl_cv_c_amsterdam_compiler
=yes
5074 gl_cv_c_amsterdam_compiler
=no
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5081 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5083 if test $gl_cv_c_amsterdam_compiler = yes; then
5084 if test -z "$AR"; then
5087 if test -z "$ARFLAGS"; then
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog
in ar lib
"link -lib"
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_AR+:} false
; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$AR"; then
5102 ac_cv_prog_AR
="$AR" # Let the user override the test.
5104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir
=.
5109 for ac_exec_ext
in '' $ac_executable_extensions; do
5110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 if test -n "$AR"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5124 $as_echo "$AR" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$AR" && break
5134 if test -z "$AR"; then
5136 for ac_prog
in ar lib
"link -lib"
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy
$ac_prog; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$ac_ct_AR"; then
5146 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_AR
="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5166 if test -n "$ac_ct_AR"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5168 $as_echo "$ac_ct_AR" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$ac_ct_AR" && break
5178 if test "x$ac_ct_AR" = x
; then
5181 case $cross_compiling:$ac_tool_warned in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned
=yes ;;
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5194 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5195 if ${am_cv_ar_interface+:} false
; then :
5196 $as_echo_n "(cached) " >&6
5199 ac_cpp
='$CPP $CPPFLAGS'
5200 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5204 am_cv_ar_interface
=ar
5205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int some_variable = 0;
5209 if ac_fn_c_try_compile
"$LINENO"; then :
5210 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5212 (eval $am_ar_try) 2>&5
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5216 if test "$ac_status" -eq 0; then
5217 am_cv_ar_interface
=ar
5219 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5221 (eval $am_ar_try) 2>&5
5223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5224 test $ac_status = 0; }
5225 if test "$ac_status" -eq 0; then
5226 am_cv_ar_interface
=lib
5228 am_cv_ar_interface
=unknown
5231 rm -f conftest.lib libconftest.a
5234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5236 ac_cpp
='$CPP $CPPFLAGS'
5237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5243 $as_echo "$am_cv_ar_interface" >&6; }
5245 case $am_cv_ar_interface in
5249 # Microsoft lib, so override with the ar-lib wrapper script.
5250 # FIXME: It is wrong to rewrite AR.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__AR in this case,
5253 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5255 AR
="$am_aux_dir/ar-lib $AR"
5258 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5266 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_AR+:} false
; then :
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$AR"; then
5273 ac_cv_prog_AR
="$AR" # Let the user override the test.
5275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir
=.
5280 for ac_exec_ext
in '' $ac_executable_extensions; do
5281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 if test -n "$AR"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5295 $as_echo "$AR" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5303 if test -z "$ac_cv_prog_AR"; then
5305 # Extract the first word of "ar", so it can be a program name with args.
5306 set dummy
ar; ac_word
=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5310 $as_echo_n "(cached) " >&6
5312 if test -n "$ac_ct_AR"; then
5313 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir
=.
5320 for ac_exec_ext
in '' $ac_executable_extensions; do
5321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_ac_ct_AR
="ar"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5333 if test -n "$ac_ct_AR"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5335 $as_echo "$ac_ct_AR" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5341 if test "x$ac_ct_AR" = x
; then
5344 case $cross_compiling:$ac_tool_warned in
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned
=yes ;;
5356 if test -z "$ARFLAGS"; then
5362 if test -z "$RANLIB"; then
5363 if test $gl_cv_c_amsterdam_compiler = yes; then
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5368 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_RANLIB+:} false
; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -n "$RANLIB"; then
5375 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 RANLIB
=$ac_cv_prog_RANLIB
5395 if test -n "$RANLIB"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5397 $as_echo "$RANLIB" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test -z "$ac_cv_prog_RANLIB"; then
5406 ac_ct_RANLIB
=$RANLIB
5407 # Extract the first word of "ranlib", so it can be a program name with args.
5408 set dummy ranlib
; ac_word
=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$ac_ct_RANLIB"; then
5415 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5435 if test -n "$ac_ct_RANLIB"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5437 $as_echo "$ac_ct_RANLIB" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5443 if test "x$ac_ct_RANLIB" = x
; then
5446 case $cross_compiling:$ac_tool_warned in
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned
=yes ;;
5452 RANLIB
=$ac_ct_RANLIB
5455 RANLIB
="$ac_cv_prog_RANLIB"
5462 # Make sure we can run config.sub.
5463 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5464 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5467 $as_echo_n "checking build system type... " >&6; }
5468 if ${ac_cv_build+:} false
; then :
5469 $as_echo_n "(cached) " >&6
5471 ac_build_alias
=$build_alias
5472 test "x$ac_build_alias" = x
&&
5473 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5474 test "x$ac_build_alias" = x
&&
5475 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5476 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5477 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5481 $as_echo "$ac_cv_build" >&6; }
5482 case $ac_cv_build in
5484 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5487 ac_save_IFS
=$IFS; IFS
='-'
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5497 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5501 $as_echo_n "checking host system type... " >&6; }
5502 if ${ac_cv_host+:} false
; then :
5503 $as_echo_n "(cached) " >&6
5505 if test "x$host_alias" = x
; then
5506 ac_cv_host
=$ac_cv_build
5508 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5509 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5514 $as_echo "$ac_cv_host" >&6; }
5517 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5520 ac_save_IFS
=$IFS; IFS
='-'
5526 # Remember, the first character of IFS is used to create $*,
5527 # except with old shells:
5530 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5536 # IEEE behaviour is the default on all CPUs except Alpha and SH
5537 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5538 # and the GCC 4.1.2 manual).
5541 # On Alpha systems, a compiler option provides the behaviour.
5542 # See the ieee(3) manual page, also available at
5543 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5544 if test -n "$GCC"; then
5545 # GCC has the option -mieee.
5546 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5547 CPPFLAGS
="$CPPFLAGS -mieee"
5549 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5550 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5551 CPPFLAGS
="$CPPFLAGS -ieee"
5555 if test -n "$GCC"; then
5556 # GCC has the option -mieee.
5557 CPPFLAGS
="$CPPFLAGS -mieee"
5562 # Check whether --enable-largefile was given.
5563 if test "${enable_largefile+set}" = set; then :
5564 enableval
=$enable_largefile;
5567 if test "$enable_largefile" != no
; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5570 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5571 if ${ac_cv_sys_largefile_CC+:} false
; then :
5572 $as_echo_n "(cached) " >&6
5574 ac_cv_sys_largefile_CC
=no
5575 if test "$GCC" != yes; then
5578 # IRIX 6.2 and later do not support large files by default,
5579 # so use the C compiler's -n32 option if that helps.
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585 since some C++ compilers masquerading as C compilers
5586 incorrectly reject 9223372036854775807. */
5587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589 && LARGE_OFF_T % 2147483647 == 1)
5599 if ac_fn_c_try_compile
"$LINENO"; then :
5602 rm -f core conftest.err conftest.
$ac_objext
5604 if ac_fn_c_try_compile
"$LINENO"; then :
5605 ac_cv_sys_largefile_CC
=' -n32'; break
5607 rm -f core conftest.err conftest.
$ac_objext
5611 rm -f conftest.
$ac_ext
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5615 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5616 if test "$ac_cv_sys_largefile_CC" != no
; then
5617 CC
=$CC$ac_cv_sys_largefile_CC
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5621 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5622 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5623 $as_echo_n "(cached) " >&6
5626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5645 if ac_fn_c_try_compile
"$LINENO"; then :
5646 ac_cv_sys_file_offset_bits
=no
; break
5648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 #define _FILE_OFFSET_BITS 64
5652 #include <sys/types.h>
5653 /* Check that off_t can represent 2**63 - 1 correctly.
5654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5655 since some C++ compilers masquerading as C compilers
5656 incorrectly reject 9223372036854775807. */
5657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5659 && LARGE_OFF_T % 2147483647 == 1)
5669 if ac_fn_c_try_compile
"$LINENO"; then :
5670 ac_cv_sys_file_offset_bits
=64; break
5672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 ac_cv_sys_file_offset_bits
=unknown
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5678 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5679 case $ac_cv_sys_file_offset_bits in #(
5682 cat >>confdefs.h
<<_ACEOF
5683 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5688 if test $ac_cv_sys_file_offset_bits = unknown
; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5690 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5691 if ${ac_cv_sys_large_files+:} false
; then :
5692 $as_echo_n "(cached) " >&6
5695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5714 if ac_fn_c_try_compile
"$LINENO"; then :
5715 ac_cv_sys_large_files
=no
; break
5717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #define _LARGE_FILES 1
5721 #include <sys/types.h>
5722 /* Check that off_t can represent 2**63 - 1 correctly.
5723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5724 since some C++ compilers masquerading as C compilers
5725 incorrectly reject 9223372036854775807. */
5726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5728 && LARGE_OFF_T % 2147483647 == 1)
5738 if ac_fn_c_try_compile
"$LINENO"; then :
5739 ac_cv_sys_large_files
=1; break
5741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5742 ac_cv_sys_large_files
=unknown
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5747 $as_echo "$ac_cv_sys_large_files" >&6; }
5748 case $ac_cv_sys_large_files in #(
5751 cat >>confdefs.h
<<_ACEOF
5752 #define _LARGE_FILES $ac_cv_sys_large_files
5760 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5766 # Pre-early section.
5770 # Code from module absolute-header:
5771 # Code from module alloca:
5772 # Code from module alloca-opt:
5773 # Code from module arpa_inet:
5774 # Code from module assure:
5775 # Code from module at-internal:
5776 # Code from module canonicalize-lgpl:
5777 # Code from module chdir:
5778 # Code from module chdir-long:
5779 # Code from module cloexec:
5780 # Code from module close:
5781 # Code from module closedir:
5782 # Code from module configmake:
5783 # Code from module d-ino:
5784 # Code from module d-type:
5785 # Code from module dirent:
5786 # Code from module dirfd:
5787 # Code from module dirname-lgpl:
5788 # Code from module dosname:
5789 # Code from module double-slash-root:
5790 # Code from module dup:
5791 # Code from module dup2:
5792 # Code from module environ:
5793 # Code from module errno:
5794 # Code from module error:
5795 # Code from module exitfail:
5796 # Code from module extensions:
5797 # Code from module extern-inline:
5798 # Code from module fchdir:
5799 # Code from module fcntl:
5800 # Code from module fcntl-h:
5801 # Code from module fd-hook:
5802 # Code from module fdopendir:
5803 # Code from module filename:
5804 # Code from module filenamecat-lgpl:
5805 # Code from module flexmember:
5806 # Code from module float:
5807 # Code from module fnmatch:
5808 # Code from module fnmatch-gnu:
5809 # Code from module fpieee:
5811 # Code from module fpucw:
5812 # Code from module frexp:
5813 # Code from module frexpl:
5814 # Code from module fstat:
5815 # Code from module fstatat:
5816 # Code from module getcwd:
5817 # Code from module getcwd-lgpl:
5818 # Code from module getdtablesize:
5819 # Code from module getlogin_r:
5820 # Code from module getprogname:
5821 # Code from module gettext-h:
5822 # Code from module gettimeofday:
5823 # Code from module glob:
5824 # Code from module hard-locale:
5825 # Code from module include_next:
5826 # Code from module inet_ntop:
5827 # Code from module intprops:
5828 # Code from module inttypes:
5829 # Code from module inttypes-incomplete:
5830 # Code from module isnand-nolibm:
5831 # Code from module isnanl-nolibm:
5832 # Code from module largefile:
5834 # Code from module limits-h:
5835 # Code from module localcharset:
5836 # Code from module lstat:
5837 # Code from module malloc-posix:
5838 # Code from module malloca:
5839 # Code from module math:
5840 # Code from module mbrtowc:
5841 # Code from module mbsinit:
5842 # Code from module mbsrtowcs:
5843 # Code from module memchr:
5844 # Code from module memmem:
5845 # Code from module memmem-simple:
5846 # Code from module mempcpy:
5847 # Code from module memrchr:
5848 # Code from module mkdir:
5849 # Code from module mkdtemp:
5850 # Code from module mkostemp:
5851 # Code from module msvc-inval:
5852 # Code from module msvc-nothrow:
5853 # Code from module multiarch:
5854 # Code from module netinet_in:
5855 # Code from module nocrash:
5856 # Code from module open:
5857 # Code from module openat:
5858 # Code from module openat-die:
5859 # Code from module openat-h:
5860 # Code from module opendir:
5861 # Code from module pathmax:
5862 # Code from module rawmemchr:
5863 # Code from module readdir:
5864 # Code from module readlink:
5865 # Code from module realloc-posix:
5866 # Code from module rename:
5867 # Code from module rewinddir:
5868 # Code from module rmdir:
5869 # Code from module same-inode:
5870 # Code from module save-cwd:
5871 # Code from module secure_getenv:
5872 # Code from module setenv:
5873 # Code from module signal-h:
5874 # Code from module snippet/_Noreturn:
5875 # Code from module snippet/arg-nonnull:
5876 # Code from module snippet/c++defs:
5877 # Code from module snippet/warn-on-use:
5878 # Code from module socklen:
5879 # Code from module ssize_t:
5880 # Code from module stat:
5881 # Code from module stdalign:
5882 # Code from module stdbool:
5883 # Code from module stddef:
5884 # Code from module stdint:
5885 # Code from module stdio:
5886 # Code from module stdlib:
5887 # Code from module strchrnul:
5888 # Code from module strdup-posix:
5889 # Code from module streq:
5890 # Code from module strerror:
5891 # Code from module strerror-override:
5892 # Code from module string:
5893 # Code from module strnlen1:
5894 # Code from module strstr:
5895 # Code from module strstr-simple:
5896 # Code from module strtok_r:
5897 # Code from module sys_socket:
5898 # Code from module sys_stat:
5899 # Code from module sys_time:
5900 # Code from module sys_types:
5901 # Code from module sys_uio:
5902 # Code from module tempname:
5903 # Code from module time:
5904 # Code from module unistd:
5905 # Code from module unistd-safer:
5906 # Code from module unsetenv:
5907 # Code from module update-copyright:
5908 # Code from module verify:
5909 # Code from module wchar:
5910 # Code from module wctype-h:
5913 ac_cpp
='$CPP $CPPFLAGS'
5914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5919 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_CC+:} false
; then :
5923 $as_echo_n "(cached) " >&6
5925 if test -n "$CC"; then
5926 ac_cv_prog_CC
="$CC" # Let the user override the test.
5928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir
=.
5933 for ac_exec_ext
in '' $ac_executable_extensions; do
5934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 if test -n "$CC"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5948 $as_echo "$CC" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5956 if test -z "$ac_cv_prog_CC"; then
5958 # Extract the first word of "gcc", so it can be a program name with args.
5959 set dummy gcc
; ac_word
=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5963 $as_echo_n "(cached) " >&6
5965 if test -n "$ac_ct_CC"; then
5966 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir
=.
5973 for ac_exec_ext
in '' $ac_executable_extensions; do
5974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_CC
="gcc"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5986 if test -n "$ac_ct_CC"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5988 $as_echo "$ac_ct_CC" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5994 if test "x$ac_ct_CC" = x
; then
5997 case $cross_compiling:$ac_tool_warned in
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned
=yes ;;
6009 if test -z "$CC"; then
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6012 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_CC+:} false
; then :
6016 $as_echo_n "(cached) " >&6
6018 if test -n "$CC"; then
6019 ac_cv_prog_CC
="$CC" # Let the user override the test.
6021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir
=.
6026 for ac_exec_ext
in '' $ac_executable_extensions; do
6027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 if test -n "$CC"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6041 $as_echo "$CC" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6050 if test -z "$CC"; then
6051 # Extract the first word of "cc", so it can be a program name with args.
6052 set dummy cc
; ac_word
=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_CC+:} false
; then :
6056 $as_echo_n "(cached) " >&6
6058 if test -n "$CC"; then
6059 ac_cv_prog_CC
="$CC" # Let the user override the test.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6070 ac_prog_rejected
=yes
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 if test $ac_prog_rejected = yes; then
6082 # We found a bogon in the path, so make sure we never use it.
6083 set dummy
$ac_cv_prog_CC
6085 if test $# != 0; then
6086 # We chose a different compiler from the bogus one.
6087 # However, it has the same basename, so the bogon will be chosen
6088 # first if we set CC to just the basename; use the full file name.
6090 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6096 if test -n "$CC"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6098 $as_echo "$CC" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6106 if test -z "$CC"; then
6107 if test -n "$ac_tool_prefix"; then
6108 for ac_prog
in cl.exe
6110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6111 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_CC+:} false
; then :
6115 $as_echo_n "(cached) " >&6
6117 if test -n "$CC"; then
6118 ac_cv_prog_CC
="$CC" # Let the user override the test.
6120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir
=.
6125 for ac_exec_ext
in '' $ac_executable_extensions; do
6126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 if test -n "$CC"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6140 $as_echo "$CC" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6147 test -n "$CC" && break
6150 if test -z "$CC"; then
6152 for ac_prog
in cl.exe
6154 # Extract the first word of "$ac_prog", so it can be a program name with args.
6155 set dummy
$ac_prog; ac_word
=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6159 $as_echo_n "(cached) " >&6
6161 if test -n "$ac_ct_CC"; then
6162 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir
=.
6169 for ac_exec_ext
in '' $ac_executable_extensions; do
6170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_ac_ct_CC
="$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6182 if test -n "$ac_ct_CC"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6184 $as_echo "$ac_ct_CC" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6191 test -n "$ac_ct_CC" && break
6194 if test "x$ac_ct_CC" = x
; then
6197 case $cross_compiling:$ac_tool_warned in
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned
=yes ;;
6210 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6212 as_fn_error $?
"no acceptable C compiler found in \$PATH
6213 See \`config.log' for more details" "$LINENO" 5; }
6215 # Provide some information about the compiler.
6216 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6219 for ac_option
in --version -v -V -qversion; do
6220 { { ac_try
="$ac_compiler $ac_option >&5"
6222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6226 $as_echo "$ac_try_echo"; } >&5
6227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6229 if test -s conftest.err; then
6231 ... rest of stderr output deleted ...
6232 10q' conftest.err >conftest.er1
6233 cat conftest.er1 >&5
6235 rm -f conftest.er1 conftest.err
6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6241 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6242 if ${ac_cv_c_compiler_gnu+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6259 if ac_fn_c_try_compile "$LINENO"; then :
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6269 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6270 if test $ac_compiler_gnu = yes; then
6275 ac_test_CFLAGS=${CFLAGS+set}
6276 ac_save_CFLAGS=$CFLAGS
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6278 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6279 if ${ac_cv_prog_cc_g+:} false; then :
6280 $as_echo_n "(cached) " >&6
6282 ac_save_c_werror_flag=$ac_c_werror_flag
6283 ac_c_werror_flag=yes
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6297 if ac_fn_c_try_compile "$LINENO"; then :
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6312 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_c_werror_flag=$ac_save_c_werror_flag
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6328 if ac_fn_c_try_compile "$LINENO"; then :
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 ac_c_werror_flag=$ac_save_c_werror_flag
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6339 $as_echo "$ac_cv_prog_cc_g" >&6; }
6340 if test "$ac_test_CFLAGS" = set; then
6341 CFLAGS=$ac_save_CFLAGS
6342 elif test $ac_cv_prog_cc_g = yes; then
6343 if test "$GCC" = yes; then
6349 if test "$GCC" = yes; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6356 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6357 if ${ac_cv_prog_cc_c89+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 ac_cv_prog_cc_c89=no
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6368 struct buf { int x; };
6369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6370 static char *e (p, i)
6376 static char *f (char * (*g) (char **, int), char **p, ...)
6381 s = g (p, va_arg (v,int));
6386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6387 function prototypes and stuff, but not '\xHH' hex character constants.
6388 These don't provoke an error unfortunately, instead are silently treated
6389 as 'x'. The following induces an error, until -std is added to get
6390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6391 array size at least. It's necessary to write '\x00'==0 to get something
6392 that's true only with -std. */
6393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6396 inside strings and character constants. */
6398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6400 int test (int i, double x);
6401 struct s1 {int (*f) (int a);};
6402 struct s2 {int (*f) (double a);};
6403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6417 CC="$ac_save_CC $ac_arg"
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 ac_cv_prog_cc_c89=$ac_arg
6421 rm -f core conftest.err conftest.$ac_objext
6422 test "x$ac_cv_prog_cc_c89" != "xno" && break
6424 rm -f conftest.$ac_ext
6429 case "x$ac_cv_prog_cc_c89" in
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6432 $as_echo "none needed" >&6; } ;;
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6435 $as_echo "unsupported" >&6; } ;;
6437 CC="$CC $ac_cv_prog_cc_c89"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6439 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6441 if test "x$ac_cv_prog_cc_c89" != xno; then :
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6457 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6458 if ${am_cv_prog_cc_c_o+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6472 # Make sure it works both with $CC and with simple cc.
6473 # Following AC_PROG_CC_C_O, we do the test twice because some
6474 # compilers refuse to overwrite an existing .o file with -o,
6475 # though they will create one.
6476 am_cv_prog_cc_c_o=yes
6478 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6479 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } \
6483 && test -f conftest2.$ac_objext; then
6486 am_cv_prog_cc_c_o=no
6490 rm -f core conftest*
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6494 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6495 if test "$am_cv_prog_cc_c_o" != yes; then
6496 # Losing compiler, so override with the script.
6497 # FIXME: It is wrong to rewrite CC.
6498 # But if we don't then we get into trouble of one sort or another.
6499 # A longer-term fix would be to have automake use am__CC in this case,
6500 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6501 CC="$am_aux_dir/compile $CC"
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6514 $as_echo_n "checking target system type... " >&6; }
6515 if ${ac_cv_target+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test "x$target_alias" = x; then
6519 ac_cv_target=$ac_cv_host
6521 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6527 $as_echo "$ac_cv_target" >&6; }
6528 case $ac_cv_target in
6530 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6532 target=$ac_cv_target
6533 ac_save_IFS=$IFS; IFS='-'
6539 # Remember, the first character of IFS is used to create $*,
6540 # except with old shells:
6543 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6546 # The aliases save the names the user supplied, while $host etc.
6547 # will get canonicalized.
6548 test -n "$target_alias" &&
6549 test "$program_prefix$program_suffix$program_transform_name" = \
6551 program_prefix=${target_alias}-
6553 # The tests for host and target for $enable_largefile require
6558 # As the $enable_largefile decision depends on --enable-plugins we must set it
6559 # even in directories otherwise not depending on the $plugins option.
6563 for ac_header in dlfcn.h
6565 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6567 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_DLFCN_H 1
6576 for ac_header in windows.h
6578 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6580 if test "x$ac_cv_header_windows_h" = xyes; then :
6581 cat >>confdefs.h <<_ACEOF
6582 #define HAVE_WINDOWS_H 1
6590 # Check whether --enable-plugins was given.
6591 if test "${enable_plugins+set}" = set; then :
6592 enableval=$enable_plugins; case "${enableval}" in
6595 if test "$maybe_plugins" != "yes" ; then
6596 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6600 plugins=$maybe_plugins
6604 if test "$plugins" = "yes"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6606 $as_echo_n "checking for library containing dlsym... " >&6; }
6607 if ${ac_cv_search_dlsym+:} false; then :
6608 $as_echo_n "(cached) " >&6
6610 ac_func_search_save_LIBS=$LIBS
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 /* Override any GCC internal prototype to avoid an error.
6615 Use char because int might match the return type of a GCC
6616 builtin and then its argument prototype would still apply. */
6629 for ac_lib in '' dl; do
6630 if test -z "$ac_lib"; then
6631 ac_res="none required"
6634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6636 if ac_fn_c_try_link "$LINENO"; then :
6637 ac_cv_search_dlsym=$ac_res
6639 rm -f core conftest.err conftest.$ac_objext \
6641 if ${ac_cv_search_dlsym+:} false; then :
6645 if ${ac_cv_search_dlsym+:} false; then :
6648 ac_cv_search_dlsym=no
6651 LIBS=$ac_func_search_save_LIBS
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6654 $as_echo "$ac_cv_search_dlsym" >&6; }
6655 ac_res=$ac_cv_search_dlsym
6656 if test "$ac_res" != no; then :
6657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6665 sparc-*-solaris*|i[3-7]86-*-solaris*)
6666 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6667 # are mutually exclusive; and without procfs support, the bfd/ elf module
6668 # cannot provide certain routines such as elfcore_write_prpsinfo
6669 # or elfcore_write_prstatus. So unless the user explicitly requested
6670 # large-file support through the --enable-largefile switch, disable
6671 # large-file support in favor of procfs support.
6672 test "${target}" = "${host}" -a "x$plugins" = xno \
6673 && : ${enable_largefile="no"}
6677 # Check whether --enable-largefile was given.
6678 if test "${enable_largefile+set}" = set; then :
6679 enableval=$enable_largefile;
6682 if test "$enable_largefile" != no; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6685 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6686 if ${ac_cv_sys_largefile_CC+:} false; then :
6687 $as_echo_n "(cached) " >&6
6689 ac_cv_sys_largefile_CC=no
6690 if test "$GCC" != yes; then
6693 # IRIX 6.2 and later do not support large files by default,
6694 # so use the C compiler's -n32 option if that helps.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 /* Check that off_t can represent 2**63 - 1 correctly.
6699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6700 since some C++ compilers masquerading as C compilers
6701 incorrectly reject 9223372036854775807. */
6702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6704 && LARGE_OFF_T % 2147483647 == 1)
6714 if ac_fn_c_try_compile "$LINENO"; then :
6717 rm -f core conftest.err conftest.$ac_objext
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_sys_largefile_CC=' -n32'; break
6722 rm -f core conftest.err conftest.$ac_objext
6726 rm -f conftest.$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6730 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6731 if test "$ac_cv_sys_largefile_CC" != no; then
6732 CC=$CC$ac_cv_sys_largefile_CC
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6736 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6737 if ${ac_cv_sys_file_offset_bits+:} false; then :
6738 $as_echo_n "(cached) " >&6
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 /* Check that off_t can represent 2**63 - 1 correctly.
6745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6746 since some C++ compilers masquerading as C compilers
6747 incorrectly reject 9223372036854775807. */
6748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6750 && LARGE_OFF_T % 2147483647 == 1)
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 ac_cv_sys_file_offset_bits=no; break
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 #define _FILE_OFFSET_BITS 64
6767 #include <sys/types.h>
6768 /* Check that off_t can represent 2**63 - 1 correctly.
6769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6770 since some C++ compilers masquerading as C compilers
6771 incorrectly reject 9223372036854775807. */
6772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6774 && LARGE_OFF_T % 2147483647 == 1)
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 ac_cv_sys_file_offset_bits=64; break
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 ac_cv_sys_file_offset_bits=unknown
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6793 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6794 case $ac_cv_sys_file_offset_bits in #(
6797 cat >>confdefs.h <<_ACEOF
6798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6803 if test $ac_cv_sys_file_offset_bits = unknown; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6805 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6806 if ${ac_cv_sys_large_files+:} false; then :
6807 $as_echo_n "(cached) " >&6
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 /* Check that off_t can represent 2**63 - 1 correctly.
6814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6815 since some C++ compilers masquerading as C compilers
6816 incorrectly reject 9223372036854775807. */
6817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6819 && LARGE_OFF_T % 2147483647 == 1)
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 ac_cv_sys_large_files=no; break
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #define _LARGE_FILES 1
6836 #include <sys/types.h>
6837 /* Check that off_t can represent 2**63 - 1 correctly.
6838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6839 since some C++ compilers masquerading as C compilers
6840 incorrectly reject 9223372036854775807. */
6841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6843 && LARGE_OFF_T % 2147483647 == 1)
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 ac_cv_sys_large_files=1; break
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 ac_cv_sys_large_files=unknown
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6862 $as_echo "$ac_cv_sys_large_files" >&6; }
6863 case $ac_cv_sys_large_files in #(
6866 cat >>confdefs.h <<_ACEOF
6867 #define _LARGE_FILES $ac_cv_sys_large_files
6875 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6882 for ac_dir in .. "$srcdir"/..; do
6883 if test -f "$ac_dir/install-sh"; then
6885 ac_install_sh="$ac_aux_dir/install-sh -c"
6887 elif test -f "$ac_dir/install.sh"; then
6889 ac_install_sh="$ac_aux_dir/install.sh -c"
6891 elif test -f "$ac_dir/shtool"; then
6893 ac_install_sh="$ac_aux_dir/shtool install -c"
6897 if test -z "$ac_aux_dir"; then
6898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6901 # These three variables are undocumented and unsupported,
6902 # and are intended to be withdrawn in a future Autoconf release.
6903 # They can cause serious problems if a builder's source tree is in a directory
6904 # whose full name contains unusual characters.
6905 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6906 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6907 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6917 LIBC_FATAL_STDERR_=1
6918 export LIBC_FATAL_STDERR_
6920 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6921 if test "x$ac_cv_type_size_t" = xyes; then :
6925 cat >>confdefs.h <<_ACEOF
6926 #define size_t unsigned int
6931 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6932 # for constant arguments. Useless!
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6934 $as_echo_n "checking for working alloca.h... " >&6; }
6935 if ${ac_cv_working_alloca_h+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6944 char *p = (char *) alloca (2 * sizeof (int));
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 ac_cv_working_alloca_h=yes
6953 ac_cv_working_alloca_h=no
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6959 $as_echo "$ac_cv_working_alloca_h" >&6; }
6960 if test $ac_cv_working_alloca_h = yes; then
6962 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6967 $as_echo_n "checking for alloca... " >&6; }
6968 if ${ac_cv_func_alloca_works+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6974 # define alloca __builtin_alloca
6977 # include <malloc.h>
6978 # define alloca _alloca
6980 # ifdef HAVE_ALLOCA_H
6981 # include <alloca.h>
6986 # ifndef alloca /* predefined by HP cc +Olibcalls */
6987 void *alloca (size_t);
6997 char *p = (char *) alloca (1);
7003 if ac_fn_c_try_link "$LINENO"; then :
7004 ac_cv_func_alloca_works=yes
7006 ac_cv_func_alloca_works=no
7008 rm -f core conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7012 $as_echo "$ac_cv_func_alloca_works" >&6; }
7014 if test $ac_cv_func_alloca_works = yes; then
7016 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7019 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7020 # that cause trouble. Some versions do not even contain alloca or
7021 # contain a buggy version. If you still want to use their alloca,
7022 # use ar to extract alloca.o from them instead of compiling alloca.c.
7028 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7030 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
7034 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7035 if ${ac_cv_os_cray+:} false; then :
7036 $as_echo_n "(cached
) " >&6
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 #if defined CRAY && ! defined CRAY2
7047 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7048 $EGREP "webecray
" >/dev/null 2>&1; then :
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
7057 $as_echo "$ac_cv_os_cray" >&6; }
7058 if test $ac_cv_os_cray = yes; then
7059 for ac_func in _getb67 GETB67 getb67; do
7060 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7064 cat >>confdefs.h <<_ACEOF
7065 #define CRAY_STACKSEG_END $ac_func
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
7075 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7076 if ${ac_cv_c_stack_direction+:} false; then :
7077 $as_echo_n "(cached
) " >&6
7079 if test "$cross_compiling" = yes; then :
7080 ac_cv_c_stack_direction=0
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 $ac_includes_default
7086 find_stack_direction (int *addr, int depth)
7091 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7092 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7097 main (int argc, char **argv)
7099 return find_stack_direction (0, argc + !argv + 20) < 0;
7102 if ac_fn_c_try_run "$LINENO"; then :
7103 ac_cv_c_stack_direction=1
7105 ac_cv_c_stack_direction=-1
7107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7108 conftest.$ac_objext conftest.beam conftest.$ac_ext
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
7113 $as_echo "$ac_cv_c_stack_direction" >&6; }
7114 cat >>confdefs.h <<_ACEOF
7115 #define STACK_DIRECTION $ac_cv_c_stack_direction
7124 HAVE_DECL_INET_NTOP=1;
7125 HAVE_DECL_INET_PTON=1;
7126 REPLACE_INET_NTOP=0;
7127 REPLACE_INET_PTON=0;
7133 for ac_header in $gl_header_list
7135 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7136 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7138 cat >>confdefs.h <<_ACEOF
7139 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
7153 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
7154 if ${gl_cv_have_include_next+:} false; then :
7155 $as_echo_n "(cached
) " >&6
7157 rm -rf conftestd1a conftestd1b conftestd2
7158 mkdir conftestd1a conftestd1b conftestd2
7159 cat <<EOF > conftestd1a/conftest.h
7160 #define DEFINED_IN_CONFTESTD1
7161 #include_next <conftest.h>
7162 #ifdef DEFINED_IN_CONFTESTD2
7165 #error "include_next doesn
't work"
7168 cat <<EOF > conftestd1b/conftest.h
7169 #define DEFINED_IN_CONFTESTD1
7171 #include_next <conftest.h>
7172 #ifdef DEFINED_IN_CONFTESTD2
7175 #error "include_next doesn't work
"
7178 cat <<EOF > conftestd2/conftest.h
7179 #ifndef DEFINED_IN_CONFTESTD1
7180 #error "include_next
test doesn
't work"
7182 #define DEFINED_IN_CONFTESTD2
7184 gl_save_CPPFLAGS="$CPPFLAGS"
7185 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 #include <conftest.h>
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 gl_cv_have_include_next=yes
7193 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #include <conftest.h>
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 gl_cv_have_include_next=buggy
7201 gl_cv_have_include_next=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 CPPFLAGS="$gl_save_CPPFLAGS"
7208 rm -rf conftestd1a conftestd1b conftestd2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7212 $as_echo "$gl_cv_have_include_next" >&6; }
7213 PRAGMA_SYSTEM_HEADER=
7214 if test $gl_cv_have_include_next = yes; then
7215 INCLUDE_NEXT=include_next
7216 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7217 if test -n "$GCC"; then
7218 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7221 if test $gl_cv_have_include_next = buggy
; then
7222 INCLUDE_NEXT
=include
7223 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7225 INCLUDE_NEXT
=include
7226 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7233 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7234 if ${gl_cv_pragma_columns+:} false
; then :
7235 $as_echo_n "(cached) " >&6
7237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 $EGREP "choke me" >/dev
/null
2>&1; then :
7247 gl_cv_pragma_columns
=yes
7249 gl_cv_pragma_columns
=no
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7256 $as_echo "$gl_cv_pragma_columns" >&6; }
7257 if test $gl_cv_pragma_columns = yes; then
7258 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7277 if test $ac_cv_header_features_h = yes; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7285 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7286 if test -z "$MKDIR_P"; then
7287 if ${ac_cv_path_mkdir+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7291 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7294 test -z "$as_dir" && as_dir
=.
7295 for ac_prog
in mkdir gmkdir
; do
7296 for ac_exec_ext
in '' $ac_executable_extensions; do
7297 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7298 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7299 'mkdir (GNU coreutils) '* | \
7300 'mkdir (coreutils) '* | \
7301 'mkdir (fileutils) '4.1*)
7302 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7312 test -d .
/--version && rmdir .
/--version
7313 if test "${ac_cv_path_mkdir+set}" = set; then
7314 MKDIR_P
="$ac_cv_path_mkdir -p"
7316 # As a last resort, use the slow shell script. Don't cache a
7317 # value for MKDIR_P within a source directory, because that will
7318 # break other packages using the cache if that directory is
7319 # removed, or if the value is a relative name.
7320 MKDIR_P
="$ac_install_sh -d"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7324 $as_echo "$MKDIR_P" >&6; }
7329 GNULIB_CALLOC_POSIX
=0;
7330 GNULIB_CANONICALIZE_FILE_NAME
=0;
7331 GNULIB_GETLOADAVG
=0;
7334 GNULIB_MALLOC_POSIX
=0;
7341 GNULIB_POSIX_OPENPT
=0;
7348 GNULIB_REALLOC_POSIX
=0;
7351 GNULIB_SECURE_GETENV
=0;
7356 GNULIB_SYSTEM_POSIX
=0;
7362 HAVE_CANONICALIZE_FILE_NAME
=1;
7363 HAVE_DECL_GETLOADAVG
=1;
7371 HAVE_POSIX_OPENPT
=1;
7380 HAVE_SECURE_GETENV
=1;
7386 HAVE_STRUCT_RANDOM_DATA
=1;
7387 HAVE_SYS_LOADAVG_H
=0;
7389 HAVE_DECL_UNSETENV
=1;
7391 REPLACE_CANONICALIZE_FILE_NAME
=0;
7396 REPLACE_PTSNAME_R
=0;
7411 for ac_func
in $gl_func_list
7413 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7414 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7415 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7416 cat >>confdefs.h
<<_ACEOF
7417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7440 $as_echo_n "checking whether // is distinct from /... " >&6; }
7441 if ${gl_cv_double_slash_root+:} false
; then :
7442 $as_echo_n "(cached) " >&6
7444 if test x
"$cross_compiling" = xyes
; then
7445 # When cross-compiling, there is no way to tell whether // is special
7446 # short of a list of hosts. However, the only known hosts to date
7447 # that have a distinct // are Apollo DomainOS (too old to port to),
7448 # Cygwin, and z/OS. If anyone knows of another system for which // has
7449 # special semantics and is distinct from /, please report it to
7450 # <bug-gnulib@gnu.org>.
7452 *-cygwin | i370-ibm-openedition
)
7453 gl_cv_double_slash_root
=yes ;;
7455 # Be optimistic and assume that / and // are the same when we
7457 gl_cv_double_slash_root
='unknown, assuming no' ;;
7460 set x
`ls -di / // 2>/dev/null`
7461 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7462 gl_cv_double_slash_root
=no
7464 gl_cv_double_slash_root
=yes
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7469 $as_echo "$gl_cv_double_slash_root" >&6; }
7470 if test "$gl_cv_double_slash_root" = yes; then
7472 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7490 $as_echo_n "checking whether realpath works... " >&6; }
7491 if ${gl_cv_func_realpath_works+:} false
; then :
7492 $as_echo_n "(cached) " >&6
7497 if test "$cross_compiling" = yes; then :
7499 # Guess yes on glibc systems.
7500 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7501 # If we don't know, assume the worst.
7502 *) gl_cv_func_realpath_works
="guessing no" ;;
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7512 #if defined __MACH__ && defined __APPLE__
7513 /* Avoid a crash on Mac OS X. */
7514 #include <mach/mach.h>
7515 #include <mach/mach_error.h>
7516 #include <mach/thread_status.h>
7517 #include <mach/exception.h>
7518 #include <mach/task.h>
7519 #include <pthread.h>
7520 /* The exception port on which our thread listens. */
7521 static mach_port_t our_exception_port;
7522 /* The main function of the thread listening for exceptions of type
7525 mach_exception_thread (void *arg)
7527 /* Buffer for a message to be received. */
7529 mach_msg_header_t head;
7530 mach_msg_body_t msgh_body;
7533 mach_msg_return_t retval;
7534 /* Wait for a message on the exception port. */
7535 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7536 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7537 if (retval != MACH_MSG_SUCCESS)
7544 mach_port_t self = mach_task_self ();
7545 /* Allocate a port on which the thread shall listen for exceptions. */
7546 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7548 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7549 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7550 MACH_MSG_TYPE_MAKE_SEND)
7552 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7554 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7555 /* Create the thread listening on the exception port. */
7556 pthread_attr_t attr;
7558 if (pthread_attr_init (&attr) == 0
7559 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7560 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7561 pthread_attr_destroy (&attr);
7562 /* Replace the exception port info for these exceptions with our own.
7563 Note that we replace the exception port for the entire task, not only
7564 for a particular thread. This has the effect that when our exception
7565 port gets the message, the thread specific exception port has already
7566 been asked, and we don't need to bother about it.
7567 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7568 task_set_exception_ports (self, mask, our_exception_port,
7569 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7574 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7575 /* Avoid a crash on native Windows. */
7576 #define WIN32_LEAN_AND_MEAN
7577 #include <windows.h>
7578 #include <winerror.h>
7580 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7582 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7584 case EXCEPTION_ACCESS_VIOLATION:
7585 case EXCEPTION_IN_PAGE_ERROR:
7586 case EXCEPTION_STACK_OVERFLOW:
7587 case EXCEPTION_GUARD_PAGE:
7588 case EXCEPTION_PRIV_INSTRUCTION:
7589 case EXCEPTION_ILLEGAL_INSTRUCTION:
7590 case EXCEPTION_DATATYPE_MISALIGNMENT:
7591 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7592 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7595 return EXCEPTION_CONTINUE_SEARCH;
7600 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7603 /* Avoid a crash on POSIX systems. */
7606 /* A POSIX signal handler. */
7608 exception_handler (int sig)
7616 signal (SIGSEGV, exception_handler);
7619 signal (SIGBUS, exception_handler);
7633 char *name = realpath ("conftest.a", NULL);
7634 if (!(name && *name == '/'))
7639 char *name = realpath ("conftest.b/../conftest.a", NULL);
7645 char *name = realpath ("conftest.a/", NULL);
7651 char *name1 = realpath (".", NULL);
7652 char *name2 = realpath ("conftest.d//./..", NULL);
7653 if (! name1 || ! name2 || strcmp (name1, name2))
7665 if ac_fn_c_try_run
"$LINENO"; then :
7666 gl_cv_func_realpath_works
=yes
7668 gl_cv_func_realpath_works
=no
7670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7671 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7674 rm -rf conftest.a conftest.d
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7678 $as_echo "$gl_cv_func_realpath_works" >&6; }
7679 case "$gl_cv_func_realpath_works" in
7682 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7725 GNULIB_EUIDACCESS
=0;
7733 GNULIB_GETDOMAINNAME
=0;
7734 GNULIB_GETDTABLESIZE
=0;
7736 GNULIB_GETHOSTNAME
=0;
7738 GNULIB_GETLOGIN_R
=0;
7739 GNULIB_GETPAGESIZE
=0;
7740 GNULIB_GETUSERSHELL
=0;
7741 GNULIB_GROUP_MEMBER
=0;
7753 GNULIB_READLINKAT
=0;
7755 GNULIB_SETHOSTNAME
=0;
7760 GNULIB_UNISTD_H_NONBLOCKING
=0;
7761 GNULIB_UNISTD_H_SIGPIPE
=0;
7776 HAVE_GETDTABLESIZE
=1;
7781 HAVE_GROUP_MEMBER
=1;
7797 HAVE_DECL_ENVIRON
=1;
7799 HAVE_DECL_FDATASYNC
=1;
7800 HAVE_DECL_GETDOMAINNAME
=1;
7801 HAVE_DECL_GETLOGIN_R
=1;
7802 HAVE_DECL_GETPAGESIZE
=1;
7803 HAVE_DECL_GETUSERSHELL
=1;
7804 HAVE_DECL_SETHOSTNAME
=1;
7805 HAVE_DECL_TTYNAME_R
=1;
7813 REPLACE_FTRUNCATE
=0;
7815 REPLACE_GETDOMAINNAME
=0;
7816 REPLACE_GETDTABLESIZE
=0;
7817 REPLACE_GETLOGIN_R
=0;
7818 REPLACE_GETGROUPS
=0;
7819 REPLACE_GETPAGESIZE
=0;
7829 REPLACE_READLINKAT
=0;
7833 REPLACE_SYMLINKAT
=0;
7834 REPLACE_TTYNAME_R
=0;
7839 UNISTD_H_HAVE_WINSOCK2_H
=0;
7840 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7873 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7874 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7876 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7879 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7907 HAVE_DECL_FDOPENDIR
=1;
7914 REPLACE_FDOPENDIR
=0;
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7935 $as_echo_n "checking if environ is properly declared... " >&6; }
7936 if ${gt_cv_var_environ_declaration+:} false
; then :
7937 $as_echo_n "(cached) " >&6
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7945 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7948 extern struct { int foo; } environ;
7957 if ac_fn_c_try_compile
"$LINENO"; then :
7958 gt_cv_var_environ_declaration
=no
7960 gt_cv_var_environ_declaration
=yes
7962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7966 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7967 if test $gt_cv_var_environ_declaration = yes; then
7969 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7974 if test $gt_cv_var_environ_declaration != yes; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7981 $as_echo_n "checking for complete errno.h... " >&6; }
7982 if ${gl_cv_header_errno_h_complete+:} false
; then :
7983 $as_echo_n "(cached) " >&6
7986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7990 #if !defined ETXTBSY
7999 #if !defined ENOLINK
8005 #if !defined EMULTIHOP
8008 #if !defined EBADMSG
8011 #if !defined EOVERFLOW
8014 #if !defined ENOTSUP
8017 #if !defined ENETRESET
8020 #if !defined ECONNABORTED
8029 #if !defined ECANCELED
8032 #if !defined EOWNERDEAD
8035 #if !defined ENOTRECOVERABLE
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "booboo" >/dev
/null
2>&1; then :
8045 gl_cv_header_errno_h_complete
=no
8047 gl_cv_header_errno_h_complete
=yes
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8054 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8055 if test $gl_cv_header_errno_h_complete = yes; then
8066 if test $gl_cv_have_include_next = yes; then
8067 gl_cv_next_errno_h
='<'errno.h
'>'
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8070 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8071 if ${gl_cv_next_errno_h+:} false
; then :
8072 $as_echo_n "(cached) " >&6
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8082 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8083 *) gl_absname_cpp
="$ac_cpp" ;;
8088 gl_dirsep_regex
='[/\\]'
8091 gl_dirsep_regex
='\/'
8094 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8095 gl_header_literal_regex
=`echo 'errno.h' \
8096 | sed -e "$gl_make_literal_regex_sed"`
8097 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8098 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8104 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8105 sed -n "$gl_absolute_header_sed"`
8107 gl_header
=$gl_cv_absolute_errno_h
8108 gl_cv_next_errno_h
='"'$gl_header'"'
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8113 $as_echo "$gl_cv_next_errno_h" >&6; }
8115 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8117 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8119 gl_next_as_first_directive
='<'errno.h
'>'
8121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8122 gl_next_as_first_directive
=$gl_cv_next_errno_h
8124 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8132 if test -n "$ERRNO_H"; then
8133 GL_GENERATE_ERRNO_H_TRUE
=
8134 GL_GENERATE_ERRNO_H_FALSE
='#'
8136 GL_GENERATE_ERRNO_H_TRUE
='#'
8137 GL_GENERATE_ERRNO_H_FALSE
=
8141 if test -n "$ERRNO_H"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8143 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8144 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158 $EGREP "yes" >/dev
/null
2>&1; then :
8159 gl_cv_header_errno_h_EMULTIHOP
=yes
8161 gl_cv_header_errno_h_EMULTIHOP
=no
8165 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8169 #define _XOPEN_SOURCE_EXTENDED 1
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 $EGREP "yes" >/dev
/null
2>&1; then :
8178 gl_cv_header_errno_h_EMULTIHOP
=hidden
8182 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8183 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8184 #define _XOPEN_SOURCE_EXTENDED 1
8186 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8198 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8199 case $gl_cv_header_errno_h_EMULTIHOP in
8201 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8204 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8212 if test -n "$ERRNO_H"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8214 $as_echo_n "checking for ENOLINK value... " >&6; }
8215 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8216 $as_echo_n "(cached) " >&6
8219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8229 $EGREP "yes" >/dev
/null
2>&1; then :
8230 gl_cv_header_errno_h_ENOLINK
=yes
8232 gl_cv_header_errno_h_ENOLINK
=no
8236 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8240 #define _XOPEN_SOURCE_EXTENDED 1
8247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8248 $EGREP "yes" >/dev
/null
2>&1; then :
8249 gl_cv_header_errno_h_ENOLINK
=hidden
8253 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8254 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8255 #define _XOPEN_SOURCE_EXTENDED 1
8257 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8269 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8270 case $gl_cv_header_errno_h_ENOLINK in
8272 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8275 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8283 if test -n "$ERRNO_H"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8285 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8286 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8287 $as_echo_n "(cached) " >&6
8290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8300 $EGREP "yes" >/dev
/null
2>&1; then :
8301 gl_cv_header_errno_h_EOVERFLOW
=yes
8303 gl_cv_header_errno_h_EOVERFLOW
=no
8307 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8311 #define _XOPEN_SOURCE_EXTENDED 1
8318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8319 $EGREP "yes" >/dev
/null
2>&1; then :
8320 gl_cv_header_errno_h_EOVERFLOW
=hidden
8324 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8325 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8326 #define _XOPEN_SOURCE_EXTENDED 1
8328 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8340 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8341 case $gl_cv_header_errno_h_EOVERFLOW in
8343 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8346 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8354 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8355 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8361 cat >>confdefs.h
<<_ACEOF
8362 #define HAVE_DECL_STRERROR_R $ac_have_decl
8365 for ac_func
in strerror_r
8367 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8368 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8369 cat >>confdefs.h
<<_ACEOF
8370 #define HAVE_STRERROR_R 1
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8377 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8378 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8379 $as_echo_n "(cached) " >&6
8382 ac_cv_func_strerror_r_char_p
=no
8383 if test $ac_cv_have_decl_strerror_r = yes; then
8384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 $ac_includes_default
8392 char x = *strerror_r (0, buf, sizeof buf);
8393 char *p = strerror_r (0, buf, sizeof buf);
8400 if ac_fn_c_try_compile
"$LINENO"; then :
8401 ac_cv_func_strerror_r_char_p
=yes
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 # strerror_r is not declared. Choose between
8406 # systems that have relatively inaccessible declarations for the
8407 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8408 # former has a strerror_r that returns char*, while the latter
8409 # has a strerror_r that returns `int'.
8410 # This test should segfault on the DEC system.
8411 if test "$cross_compiling" = yes; then :
8414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 extern char *strerror_r ();
8422 char x = *strerror_r (0, buf, sizeof buf);
8423 return ! isalpha (x);
8428 if ac_fn_c_try_run
"$LINENO"; then :
8429 ac_cv_func_strerror_r_char_p
=yes
8431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8439 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8440 if test $ac_cv_func_strerror_r_char_p = yes; then
8442 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8447 XGETTEXT_EXTRA_OPTIONS
=
8453 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8454 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8460 cat >>confdefs.h
<<_ACEOF
8461 #define HAVE_DECL_FCHDIR $ac_have_decl
8467 GNULIB_NONBLOCKING
=0;
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8504 $as_echo_n "checking for working fcntl.h... " >&6; }
8505 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8506 $as_echo_n "(cached) " >&6
8508 if test "$cross_compiling" = yes; then :
8509 gl_cv_header_working_fcntl_h
=cross-compiling
8511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <sys/types.h>
8514 #include <sys/stat.h>
8516 # include <unistd.h>
8517 #else /* on Windows with MSVC */
8519 # include <stdlib.h>
8520 # defined sleep(n) _sleep ((n) * 1000)
8527 #define O_NOFOLLOW 0
8529 static int const constants[] =
8531 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8532 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8539 int result = !constants;
8542 static char const sym[] = "conftest.sym";
8543 if (symlink ("/dev/null", sym) != 0)
8547 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8554 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8558 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8569 static char const file[] = "confdefs.h";
8570 int fd = open (file, O_RDONLY | O_NOATIME);
8576 if (fstat (fd, &st0) != 0)
8582 if (read (fd, &c, 1) != 1)
8586 if (close (fd) != 0)
8591 if (stat (file, &st1) != 0)
8594 if (st0.st_atime != st1.st_atime)
8606 if ac_fn_c_try_run
"$LINENO"; then :
8607 gl_cv_header_working_fcntl_h
=yes
8610 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8611 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8612 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8613 *) gl_cv_header_working_fcntl_h
='no';;
8616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8622 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8624 case $gl_cv_header_working_fcntl_h in #(
8625 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8629 cat >>confdefs.h
<<_ACEOF
8630 #define HAVE_WORKING_O_NOATIME $ac_val
8634 case $gl_cv_header_working_fcntl_h in #(
8635 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8639 cat >>confdefs.h
<<_ACEOF
8640 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8644 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8645 if test "x$ac_cv_type_pid_t" = xyes
; then :
8649 cat >>confdefs.h
<<_ACEOF
8655 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8656 if test "x$ac_cv_type_mode_t" = xyes
; then :
8660 cat >>confdefs.h
<<_ACEOF
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8679 $as_echo_n "checking for mbstate_t... " >&6; }
8680 if ${ac_cv_type_mbstate_t+:} false
; then :
8681 $as_echo_n "(cached) " >&6
8683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8689 included before <wchar.h>. */
8697 mbstate_t x; return sizeof x;
8702 if ac_fn_c_try_compile
"$LINENO"; then :
8703 ac_cv_type_mbstate_t
=yes
8705 ac_cv_type_mbstate_t
=no
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8710 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8711 if test $ac_cv_type_mbstate_t = yes; then
8713 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8717 $as_echo "#define mbstate_t int" >>confdefs.h
8837 GNULIB_REMAINDERF
=0;
8838 GNULIB_REMAINDERL
=0;
8924 HAVE_DECL_COPYSIGNF
=1;
8941 HAVE_DECL_REMAINDER
=1;
8942 HAVE_DECL_REMAINDERL
=1;
9004 REPLACE_REMAINDER
=0;
9005 REPLACE_REMAINDERF
=0;
9006 REPLACE_REMAINDERL
=0;
9011 REPLACE_SIGNBIT_USING_GCC
=0;
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9019 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9020 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9021 $as_echo_n "(cached) " >&6
9024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9031 int e; return frexp (x, &e) > 0;
9036 if ac_fn_c_try_link
"$LINENO"; then :
9037 gl_cv_func_frexp_no_libm
=yes
9039 gl_cv_func_frexp_no_libm
=no
9041 rm -f core conftest.err conftest.
$ac_objext \
9042 conftest
$ac_exeext conftest.
$ac_ext
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9046 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9049 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9050 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9056 cat >>confdefs.h
<<_ACEOF
9057 #define HAVE_DECL_ALARM $ac_have_decl
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9063 $as_echo_n "checking whether long double and double are the same... " >&6; }
9064 if ${gl_cv_long_double_equals_double+:} false
; then :
9065 $as_echo_n "(cached) " >&6
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9073 typedef int check[sizeof (long double) == sizeof (double)
9074 && LDBL_MANT_DIG == DBL_MANT_DIG
9075 && LDBL_MAX_EXP == DBL_MAX_EXP
9076 && LDBL_MIN_EXP == DBL_MIN_EXP
9083 if ac_fn_c_try_compile
"$LINENO"; then :
9084 gl_cv_long_double_equals_double
=yes
9086 gl_cv_long_double_equals_double
=no
9088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9092 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9093 if test $gl_cv_long_double_equals_double = yes; then
9095 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9097 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9099 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9136 REPLACE_UTIMENSAT
=0;
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9139 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9140 if ${ac_cv_header_stat_broken+:} false
; then :
9141 $as_echo_n "(cached) " >&6
9143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 #include <sys/types.h>
9146 #include <sys/stat.h>
9148 #if defined S_ISBLK && defined S_IFDIR
9149 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9152 #if defined S_ISBLK && defined S_IFCHR
9153 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9156 #if defined S_ISLNK && defined S_IFREG
9157 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9160 #if defined S_ISSOCK && defined S_IFREG
9161 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9165 if ac_fn_c_try_compile
"$LINENO"; then :
9166 ac_cv_header_stat_broken
=no
9168 ac_cv_header_stat_broken
=yes
9170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9173 $as_echo "$ac_cv_header_stat_broken" >&6; }
9174 if test $ac_cv_header_stat_broken = yes; then
9176 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9190 $as_echo_n "checking for 64-bit off_t... " >&6; }
9191 if ${gl_cv_type_off_t_64+:} false
; then :
9192 $as_echo_n "(cached) " >&6
9194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include <sys/types.h>
9197 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9207 if ac_fn_c_try_compile
"$LINENO"; then :
9208 gl_cv_type_off_t_64
=yes
9210 gl_cv_type_off_t_64
=no
9212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9216 $as_echo "$gl_cv_type_off_t_64" >&6; }
9217 if test $gl_cv_type_off_t_64 = no
; then
9218 WINDOWS_64_BIT_OFF_T
=1
9220 WINDOWS_64_BIT_OFF_T
=0
9222 WINDOWS_64_BIT_ST_SIZE
=1
9225 WINDOWS_64_BIT_OFF_T
=0
9226 WINDOWS_64_BIT_ST_SIZE
=0
9250 if test $gl_cv_have_include_next = yes; then
9251 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9254 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9255 if ${gl_cv_next_sys_stat_h+:} false
; then :
9256 $as_echo_n "(cached) " >&6
9259 if test $ac_cv_header_sys_stat_h = yes; then
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 #include <sys/stat.h>
9269 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9270 *) gl_absname_cpp
="$ac_cpp" ;;
9275 gl_dirsep_regex
='[/\\]'
9278 gl_dirsep_regex
='\/'
9281 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9282 gl_header_literal_regex
=`echo 'sys/stat.h' \
9283 | sed -e "$gl_make_literal_regex_sed"`
9284 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9291 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9292 sed -n "$gl_absolute_header_sed"`
9294 gl_header
=$gl_cv_absolute_sys_stat_h
9295 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9297 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9303 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9305 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9307 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9309 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9312 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9314 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9326 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
9328 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
9332 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9333 #include <sys/stat.h>
9335 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9339 $as_echo "#define nlink_t int" >>confdefs.h
9345 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9346 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9348 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9349 if eval \
${$as_gl_Symbol+:} false
; then :
9350 $as_echo_n "(cached) " >&6
9352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #include <sys/stat.h>
9365 if ac_fn_c_try_compile
"$LINENO"; then :
9366 eval "$as_gl_Symbol=yes"
9368 eval "$as_gl_Symbol=no"
9370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9372 eval ac_res
=\$
$as_gl_Symbol
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9374 $as_echo "$ac_res" >&6; }
9375 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9376 cat >>confdefs.h
<<_ACEOF
9377 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9380 eval ac_cv_have_decl_
$gl_func=yes
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9387 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9388 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9389 $as_echo_n "(cached) " >&6
9391 rm -f conftest.sym conftest.
file
9393 if test "$cross_compiling" = yes; then :
9396 # Guess yes on glibc systems.
9397 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9399 # If we don't know, assume the worst.
9400 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 $ac_includes_default
9411 if (symlink ("conftest.file", "conftest.sym") != 0)
9413 /* Linux will dereference the symlink and fail, as required by
9414 POSIX. That is better in the sense that it means we will not
9415 have to compile and use the lstat wrapper. */
9416 return lstat ("conftest.sym/", &sbuf) == 0;
9422 if ac_fn_c_try_run
"$LINENO"; then :
9423 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9425 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9431 rm -f conftest.sym conftest.
file
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9435 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9436 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9439 cat >>confdefs.h
<<_ACEOF
9440 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9460 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9461 if ${gl_cv_func_getcwd_null+:} false
; then :
9462 $as_echo_n "(cached) " >&6
9464 if test "$cross_compiling" = yes; then :
9466 # Guess yes on glibc systems.
9467 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9468 # Guess yes on Cygwin.
9469 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9470 # If we don't know, assume the worst.
9471 *) gl_cv_func_getcwd_null
="guessing no";;
9475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9478 # include <stdlib.h>
9480 # include <unistd.h>
9481 # else /* on Windows with MSVC */
9482 # include <direct.h>
9492 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9493 /* mingw cwd does not start with '/', but getcwd does allocate.
9494 However, mingw fails to honor non-zero size. */
9496 if (chdir ("/") != 0)
9500 char *f = getcwd (NULL, 0);
9516 if ac_fn_c_try_run
"$LINENO"; then :
9517 gl_cv_func_getcwd_null
=yes
9519 gl_cv_func_getcwd_null
=no
9521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9522 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9527 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9531 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9532 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9533 $as_echo_n "(cached) " >&6
9535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9545 char *getcwd (char *, size_t);
9552 if ac_fn_c_try_compile
"$LINENO"; then :
9553 gl_cv_func_getcwd_posix_signature
=yes
9555 gl_cv_func_getcwd_posix_signature
=no
9557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9561 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9564 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9565 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9571 cat >>confdefs.h
<<_ACEOF
9572 #define HAVE_DECL_GETCWD $ac_have_decl
9582 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9583 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9589 cat >>confdefs.h
<<_ACEOF
9590 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9595 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9596 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9602 cat >>confdefs.h
<<_ACEOF
9603 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9613 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9614 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9620 cat >>confdefs.h
<<_ACEOF
9621 #define HAVE_DECL_GETLOGIN $ac_have_decl
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9636 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9637 if ${ac_cv_c_restrict+:} false
; then :
9638 $as_echo_n "(cached) " >&6
9641 # The order here caters to the fact that C++ does not require restrict.
9642 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 typedef int *int_ptr;
9646 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9647 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9648 int bar (int ip[$ac_kw]) { return ip[0]; }
9656 return foo (t) + bar (t);
9662 if ac_fn_c_try_compile
"$LINENO"; then :
9663 ac_cv_c_restrict
=$ac_kw
9665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9666 test "$ac_cv_c_restrict" != no
&& break
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9671 $as_echo "$ac_cv_c_restrict" >&6; }
9673 case $ac_cv_c_restrict in
9675 no
) $as_echo "#define restrict /**/" >>confdefs.h
9677 *) cat >>confdefs.h
<<_ACEOF
9678 #define restrict $ac_cv_c_restrict
9684 GNULIB_GETTIMEOFDAY
=0;
9685 HAVE_GETTIMEOFDAY
=1;
9686 HAVE_STRUCT_TIMEVAL
=1;
9689 REPLACE_GETTIMEOFDAY
=0;
9690 REPLACE_STRUCT_TIMEVAL
=0;
9722 if test $gl_cv_have_include_next = yes; then
9723 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9726 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9727 if ${gl_cv_next_sys_time_h+:} false
; then :
9728 $as_echo_n "(cached) " >&6
9731 if test $ac_cv_header_sys_time_h = yes; then
9736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 #include <sys/time.h>
9741 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9742 *) gl_absname_cpp
="$ac_cpp" ;;
9747 gl_dirsep_regex
='[/\\]'
9750 gl_dirsep_regex
='\/'
9753 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9754 gl_header_literal_regex
=`echo 'sys/time.h' \
9755 | sed -e "$gl_make_literal_regex_sed"`
9756 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9757 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9763 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9764 sed -n "$gl_absolute_header_sed"`
9766 gl_header
=$gl_cv_absolute_sys_time_h
9767 gl_cv_next_sys_time_h
='"'$gl_header'"'
9769 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9775 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9777 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9779 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9781 gl_next_as_first_directive
='<'sys
/time.h
'>'
9783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9784 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9786 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9792 if test $ac_cv_header_sys_time_h != yes; then
9806 if test $ac_cv_header_sys_socket_h != yes; then
9807 for ac_header
in winsock2.h
9809 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9810 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9811 cat >>confdefs.h
<<_ACEOF
9812 #define HAVE_WINSOCK2_H 1
9820 if test "$ac_cv_header_winsock2_h" = yes; then
9822 UNISTD_H_HAVE_WINSOCK2_H
=1
9823 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9830 $as_echo_n "checking for struct timeval... " >&6; }
9831 if ${gl_cv_sys_struct_timeval+:} false
; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9837 #include <sys/time.h>
9841 # include <winsock2.h>
9847 static struct timeval x; x.tv_sec = x.tv_usec;
9852 if ac_fn_c_try_compile
"$LINENO"; then :
9853 gl_cv_sys_struct_timeval
=yes
9855 gl_cv_sys_struct_timeval
=no
9857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9861 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9862 if test $gl_cv_sys_struct_timeval != yes; then
9863 HAVE_STRUCT_TIMEVAL
=0
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9866 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9867 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9868 $as_echo_n "(cached) " >&6
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9873 #include <sys/time.h>
9877 # include <winsock2.h>
9883 static struct timeval x;
9884 typedef int verify_tv_sec_type[
9885 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9892 if ac_fn_c_try_compile
"$LINENO"; then :
9893 gl_cv_sys_struct_timeval_tv_sec
=yes
9895 gl_cv_sys_struct_timeval_tv_sec
=no
9897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9901 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9902 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9903 REPLACE_STRUCT_TIMEVAL
=1
9908 for gl_func
in gettimeofday
; do
9909 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9911 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9912 if eval \
${$as_gl_Symbol+:} false
; then :
9913 $as_echo_n "(cached) " >&6
9915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9919 # include <sys/time.h>
9932 if ac_fn_c_try_compile
"$LINENO"; then :
9933 eval "$as_gl_Symbol=yes"
9935 eval "$as_gl_Symbol=no"
9937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9939 eval ac_res
=\$
$as_gl_Symbol
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9941 $as_echo "$ac_res" >&6; }
9942 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9943 cat >>confdefs.h
<<_ACEOF
9944 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9947 eval ac_cv_have_decl_
$gl_func=yes
9980 GNULIB_GETPEERNAME
=0;
9981 GNULIB_GETSOCKNAME
=0;
9982 GNULIB_GETSOCKOPT
=0;
9988 GNULIB_SETSOCKOPT
=0;
9991 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9992 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10004 if test $ac_cv_header_sys_socket_h = no
; then
10005 for ac_header
in ws2tcpip.h
10007 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
10008 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
10009 cat >>confdefs.h
<<_ACEOF
10010 #define HAVE_WS2TCPIP_H 1
10026 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10032 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10033 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10034 $as_echo_n "(cached) " >&6
10037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 #include <sys/socket.h>
10048 if ac_fn_c_try_compile
"$LINENO"; then :
10049 gl_cv_header_sys_socket_h_selfcontained
=yes
10051 gl_cv_header_sys_socket_h_selfcontained
=no
10053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10057 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10058 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10059 for ac_func
in shutdown
10061 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10062 if test "x$ac_cv_func_shutdown" = xyes
; then :
10063 cat >>confdefs.h
<<_ACEOF
10064 #define HAVE_SHUTDOWN 1
10070 if test $ac_cv_func_shutdown = yes; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10072 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10073 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10074 $as_echo_n "(cached) " >&6
10077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 #include <sys/socket.h>
10083 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10088 if ac_fn_c_try_compile
"$LINENO"; then :
10089 gl_cv_header_sys_socket_h_shut
=yes
10091 gl_cv_header_sys_socket_h_shut
=no
10093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10097 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10098 if test $gl_cv_header_sys_socket_h_shut = no
; then
10099 SYS_SOCKET_H
='sys/socket.h'
10103 # We need to check for ws2tcpip.h now.
10121 if test $gl_cv_have_include_next = yes; then
10122 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10125 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10126 if ${gl_cv_next_sys_socket_h+:} false
; then :
10127 $as_echo_n "(cached) " >&6
10130 if test $ac_cv_header_sys_socket_h = yes; then
10135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 #include <sys/socket.h>
10140 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10141 *) gl_absname_cpp
="$ac_cpp" ;;
10146 gl_dirsep_regex
='[/\\]'
10149 gl_dirsep_regex
='\/'
10152 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10153 gl_header_literal_regex
=`echo 'sys/socket.h' \
10154 | sed -e "$gl_make_literal_regex_sed"`
10155 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10156 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10162 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10163 sed -n "$gl_absolute_header_sed"`
10165 gl_header
=$gl_cv_absolute_sys_socket_h
10166 gl_cv_next_sys_socket_h
='"'$gl_header'"'
10168 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
10174 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
10176 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
10178 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10180 gl_next_as_first_directive
='<'sys
/socket.h
'>'
10182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10183 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
10185 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
10190 if test $ac_cv_header_sys_socket_h = yes; then
10191 HAVE_SYS_SOCKET_H
=1
10194 HAVE_SYS_SOCKET_H
=0
10195 if test $ac_cv_header_ws2tcpip_h = yes; then
10204 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10205 /* sys/types.h is not needed according to POSIX, but the
10206 sys/socket.h in i386-unknown-freebsd4.10 and
10207 powerpc-apple-darwin5.5 required it. */
10208 #include <sys/types.h>
10209 #ifdef HAVE_SYS_SOCKET_H
10210 #include <sys/socket.h>
10212 #ifdef HAVE_WS2TCPIP_H
10213 #include <ws2tcpip.h>
10217 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
10219 cat >>confdefs.h
<<_ACEOF
10220 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10225 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10226 /* sys/types.h is not needed according to POSIX, but the
10227 sys/socket.h in i386-unknown-freebsd4.10 and
10228 powerpc-apple-darwin5.5 required it. */
10229 #include <sys/types.h>
10230 #ifdef HAVE_SYS_SOCKET_H
10231 #include <sys/socket.h>
10233 #ifdef HAVE_WS2TCPIP_H
10234 #include <ws2tcpip.h>
10238 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
10240 cat >>confdefs.h
<<_ACEOF
10241 #define HAVE_SA_FAMILY_T 1
10247 if test $ac_cv_type_struct_sockaddr_storage = no
; then
10248 HAVE_STRUCT_SOCKADDR_STORAGE
=0
10250 if test $ac_cv_type_sa_family_t = no
; then
10253 if test $ac_cv_type_struct_sockaddr_storage != no
; then
10254 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10255 #ifdef HAVE_SYS_SOCKET_H
10256 #include <sys/socket.h>
10258 #ifdef HAVE_WS2TCPIP_H
10259 #include <ws2tcpip.h>
10263 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
10265 cat >>confdefs.h
<<_ACEOF
10266 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10271 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
10275 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
10276 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
10277 SYS_SOCKET_H
='sys/socket.h'
10289 if test $ac_cv_header_sys_socket_h != yes; then
10290 for ac_header
in winsock2.h
10292 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10293 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10294 cat >>confdefs.h
<<_ACEOF
10295 #define HAVE_WINSOCK2_H 1
10303 if test "$ac_cv_header_winsock2_h" = yes; then
10305 UNISTD_H_HAVE_WINSOCK2_H
=1
10306 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10314 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
10315 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10317 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10318 if eval \
${$as_gl_Symbol+:} false
; then :
10319 $as_echo_n "(cached) " >&6
10321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10324 /* Some systems require prerequisite headers. */
10325 #include <sys/types.h>
10326 #include <sys/socket.h>
10337 if ac_fn_c_try_compile
"$LINENO"; then :
10338 eval "$as_gl_Symbol=yes"
10340 eval "$as_gl_Symbol=no"
10342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10344 eval ac_res
=\$
$as_gl_Symbol
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10346 $as_echo "$ac_res" >&6; }
10347 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10348 cat >>confdefs.h
<<_ACEOF
10349 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10352 eval ac_cv_have_decl_
$gl_func=yes
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10373 $as_echo_n "checking for IPv4 sockets... " >&6; }
10374 if ${gl_cv_socket_ipv4+:} false
; then :
10375 $as_echo_n "(cached) " >&6
10377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #include <sys/types.h>
10380 #ifdef HAVE_SYS_SOCKET_H
10381 #include <sys/socket.h>
10383 #ifdef HAVE_NETINET_IN_H
10384 #include <netinet/in.h>
10386 #ifdef HAVE_WINSOCK2_H
10387 #include <winsock2.h>
10392 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10393 if (&x && &y && &z) return 0;
10398 if ac_fn_c_try_compile
"$LINENO"; then :
10399 gl_cv_socket_ipv4
=yes
10401 gl_cv_socket_ipv4
=no
10403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10407 $as_echo "$gl_cv_socket_ipv4" >&6; }
10408 if test $gl_cv_socket_ipv4 = yes; then
10410 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10415 $as_echo_n "checking for IPv6 sockets... " >&6; }
10416 if ${gl_cv_socket_ipv6+:} false
; then :
10417 $as_echo_n "(cached) " >&6
10419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10421 #include <sys/types.h>
10422 #ifdef HAVE_SYS_SOCKET_H
10423 #include <sys/socket.h>
10425 #ifdef HAVE_NETINET_IN_H
10426 #include <netinet/in.h>
10428 #ifdef HAVE_WINSOCK2_H
10429 #include <winsock2.h>
10431 #ifdef HAVE_WS2TCPIP_H
10432 #include <ws2tcpip.h>
10437 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10438 if (&x && &y && &z) return 0;
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 gl_cv_socket_ipv6
=yes
10446 gl_cv_socket_ipv6
=no
10448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10452 $as_echo "$gl_cv_socket_ipv6" >&6; }
10453 if test $gl_cv_socket_ipv6 = yes; then
10455 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10480 if test $gl_cv_have_include_next = yes; then
10481 gl_cv_next_limits_h
='<'limits.h
'>'
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10484 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10485 if ${gl_cv_next_limits_h+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10489 if test $ac_cv_header_limits_h = yes; then
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #include <limits.h>
10499 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10500 *) gl_absname_cpp
="$ac_cpp" ;;
10505 gl_dirsep_regex
='[/\\]'
10508 gl_dirsep_regex
='\/'
10511 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10512 gl_header_literal_regex
=`echo 'limits.h' \
10513 | sed -e "$gl_make_literal_regex_sed"`
10514 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10521 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10522 sed -n "$gl_absolute_header_sed"`
10524 gl_header
=$gl_cv_absolute_limits_h
10525 gl_cv_next_limits_h
='"'$gl_header'"'
10527 gl_cv_next_limits_h
='<'limits.h
'>'
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10533 $as_echo "$gl_cv_next_limits_h" >&6; }
10535 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10537 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10539 gl_next_as_first_directive
='<'limits.h
'>'
10541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10542 gl_next_as_first_directive
=$gl_cv_next_limits_h
10544 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10551 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10552 if ${gl_cv_header_limits_width+:} false
; then :
10553 $as_echo_n "(cached) " >&6
10555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10558 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10560 #include <limits.h>
10561 int ullw = ULLONG_WIDTH;
10570 if ac_fn_c_try_compile
"$LINENO"; then :
10571 gl_cv_header_limits_width
=yes
10573 gl_cv_header_limits_width
=no
10575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10578 $as_echo "$gl_cv_header_limits_width" >&6; }
10579 if test "$gl_cv_header_limits_width" = yes; then
10585 if test -n "$LIMITS_H"; then
10586 GL_GENERATE_LIMITS_H_TRUE
=
10587 GL_GENERATE_LIMITS_H_FALSE
='#'
10589 GL_GENERATE_LIMITS_H_TRUE
='#'
10590 GL_GENERATE_LIMITS_H_FALSE
=
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10596 $as_echo_n "checking for unsigned long long int... " >&6; }
10597 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10598 $as_echo_n "(cached) " >&6
10600 ac_cv_type_unsigned_long_long_int
=yes
10601 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10605 /* For now, do not test the preprocessor; as of 2007 there are too many
10606 implementations with broken preprocessors. Perhaps this can
10607 be revisited in 2012. In the meantime, code should not expect
10608 #if to work with literals wider than 32 bits. */
10609 /* Test literals. */
10610 long long int ll = 9223372036854775807ll;
10611 long long int nll = -9223372036854775807LL;
10612 unsigned long long int ull = 18446744073709551615ULL;
10613 /* Test constant expressions. */
10614 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10616 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10622 /* Test availability of runtime routines for shift and division. */
10623 long long int llmax = 9223372036854775807ll;
10624 unsigned long long int ullmax = 18446744073709551615ull;
10625 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10626 | (llmax / ll) | (llmax % ll)
10627 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10628 | (ullmax / ull) | (ullmax % ull));
10634 if ac_fn_c_try_link
"$LINENO"; then :
10637 ac_cv_type_unsigned_long_long_int
=no
10639 rm -f core conftest.err conftest.
$ac_objext \
10640 conftest
$ac_exeext conftest.
$ac_ext
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10644 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10645 if test $ac_cv_type_unsigned_long_long_int = yes; then
10647 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10654 $as_echo_n "checking for long long int... " >&6; }
10655 if ${ac_cv_type_long_long_int+:} false
; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_cv_type_long_long_int
=yes
10659 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10660 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10661 if test $ac_cv_type_long_long_int = yes; then
10662 if test "$cross_compiling" = yes; then :
10665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <limits.h>
10670 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10671 # define LLONG_MAX (HALF - 1 + HALF)
10676 long long int n = 1;
10680 long long int m = n << i;
10683 if (LLONG_MAX / 2 < m)
10691 if ac_fn_c_try_run
"$LINENO"; then :
10694 ac_cv_type_long_long_int
=no
10696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10704 $as_echo "$ac_cv_type_long_long_int" >&6; }
10705 if test $ac_cv_type_long_long_int = yes; then
10707 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10722 gl_cv_c_multiarch
=no
10723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #ifndef __APPLE_CC__
10726 not a universal capable compiler
10731 if ac_fn_c_try_compile
"$LINENO"; then :
10735 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10736 if test -n "$prev"; then
10738 i?
86 | x86_64 | ppc | ppc64
)
10739 if test -z "$arch" ||
test "$arch" = "$word"; then
10742 gl_cv_c_multiarch
=yes
10748 if test "x$word" = "x-arch"; then
10755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10756 if test $gl_cv_c_multiarch = yes; then
10757 APPLE_UNIVERSAL_BUILD
=1
10759 APPLE_UNIVERSAL_BUILD
=0
10768 if test $ac_cv_type_long_long_int = yes; then
10769 HAVE_LONG_LONG_INT
=1
10771 HAVE_LONG_LONG_INT
=0
10775 if test $ac_cv_type_unsigned_long_long_int = yes; then
10776 HAVE_UNSIGNED_LONG_LONG_INT
=1
10778 HAVE_UNSIGNED_LONG_LONG_INT
=0
10789 if test $ac_cv_header_wchar_h = yes; then
10796 if test $ac_cv_header_inttypes_h = yes; then
10803 if test $ac_cv_header_sys_types_h = yes; then
10825 if test $gl_cv_have_include_next = yes; then
10826 gl_cv_next_stdint_h
='<'stdint.h
'>'
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10829 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10830 if ${gl_cv_next_stdint_h+:} false
; then :
10831 $as_echo_n "(cached) " >&6
10834 if test $ac_cv_header_stdint_h = yes; then
10839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 #include <stdint.h>
10844 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10845 *) gl_absname_cpp
="$ac_cpp" ;;
10850 gl_dirsep_regex
='[/\\]'
10853 gl_dirsep_regex
='\/'
10856 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10857 gl_header_literal_regex
=`echo 'stdint.h' \
10858 | sed -e "$gl_make_literal_regex_sed"`
10859 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10860 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10866 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10867 sed -n "$gl_absolute_header_sed"`
10869 gl_header
=$gl_cv_absolute_stdint_h
10870 gl_cv_next_stdint_h
='"'$gl_header'"'
10872 gl_cv_next_stdint_h
='<'stdint.h
'>'
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10878 $as_echo "$gl_cv_next_stdint_h" >&6; }
10880 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10882 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10884 gl_next_as_first_directive
='<'stdint.h
'>'
10886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10887 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10889 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10894 if test $ac_cv_header_stdint_h = yes; then
10901 if test $ac_cv_header_stdint_h = yes; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10903 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10904 if ${gl_cv_header_working_stdint_h+:} false
; then :
10905 $as_echo_n "(cached) " >&6
10907 gl_cv_header_working_stdint_h
=no
10908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10912 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10913 #define __STDC_CONSTANT_MACROS 1
10914 #define __STDC_LIMIT_MACROS 1
10915 #include <stdint.h>
10916 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10917 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10918 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10922 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10923 included before <wchar.h>. */
10924 #include <stddef.h>
10925 #include <signal.h>
10927 # include <stdio.h>
10929 # include <wchar.h>
10934 int8_t a1 = INT8_MAX;
10935 int8_t a1min = INT8_MIN;
10938 int16_t a2 = INT16_MAX;
10939 int16_t a2min = INT16_MIN;
10942 int32_t a3 = INT32_MAX;
10943 int32_t a3min = INT32_MIN;
10946 int64_t a4 = INT64_MAX;
10947 int64_t a4min = INT64_MIN;
10950 uint8_t b1 = UINT8_MAX;
10952 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10955 uint16_t b2 = UINT16_MAX;
10958 uint32_t b3 = UINT32_MAX;
10961 uint64_t b4 = UINT64_MAX;
10963 int_least8_t c1 = INT8_C (0x7f);
10964 int_least8_t c1max = INT_LEAST8_MAX;
10965 int_least8_t c1min = INT_LEAST8_MIN;
10966 int_least16_t c2 = INT16_C (0x7fff);
10967 int_least16_t c2max = INT_LEAST16_MAX;
10968 int_least16_t c2min = INT_LEAST16_MIN;
10969 int_least32_t c3 = INT32_C (0x7fffffff);
10970 int_least32_t c3max = INT_LEAST32_MAX;
10971 int_least32_t c3min = INT_LEAST32_MIN;
10972 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10973 int_least64_t c4max = INT_LEAST64_MAX;
10974 int_least64_t c4min = INT_LEAST64_MIN;
10975 uint_least8_t d1 = UINT8_C (0xff);
10976 uint_least8_t d1max = UINT_LEAST8_MAX;
10977 uint_least16_t d2 = UINT16_C (0xffff);
10978 uint_least16_t d2max = UINT_LEAST16_MAX;
10979 uint_least32_t d3 = UINT32_C (0xffffffff);
10980 uint_least32_t d3max = UINT_LEAST32_MAX;
10981 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10982 uint_least64_t d4max = UINT_LEAST64_MAX;
10983 int_fast8_t e1 = INT_FAST8_MAX;
10984 int_fast8_t e1min = INT_FAST8_MIN;
10985 int_fast16_t e2 = INT_FAST16_MAX;
10986 int_fast16_t e2min = INT_FAST16_MIN;
10987 int_fast32_t e3 = INT_FAST32_MAX;
10988 int_fast32_t e3min = INT_FAST32_MIN;
10989 int_fast64_t e4 = INT_FAST64_MAX;
10990 int_fast64_t e4min = INT_FAST64_MIN;
10991 uint_fast8_t f1 = UINT_FAST8_MAX;
10992 uint_fast16_t f2 = UINT_FAST16_MAX;
10993 uint_fast32_t f3 = UINT_FAST32_MAX;
10994 uint_fast64_t f4 = UINT_FAST64_MAX;
10996 intptr_t g = INTPTR_MAX;
10997 intptr_t gmin = INTPTR_MIN;
11000 uintptr_t h = UINTPTR_MAX;
11002 intmax_t i = INTMAX_MAX;
11003 uintmax_t j = UINTMAX_MAX;
11005 /* Check that SIZE_MAX has the correct type, if possible. */
11006 #if 201112 <= __STDC_VERSION__
11007 int k = _Generic (SIZE_MAX, size_t: 0);
11008 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11009 || (0x5110 <= __SUNPRO_C && !__STDC__))
11011 extern __typeof__ (SIZE_MAX) k;
11014 #include <limits.h> /* for CHAR_BIT */
11015 #define TYPE_MINIMUM(t) \
11016 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11017 #define TYPE_MAXIMUM(t) \
11018 ((t) ((t) 0 < (t) -1 \
11020 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11023 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11024 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11026 /* Detect bug in FreeBSD 6.0 / ia64. */
11027 int check_SIG_ATOMIC:
11028 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11029 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11031 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11033 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11034 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11036 /* Detect bug in mingw. */
11038 WINT_MIN == TYPE_MINIMUM (wint_t)
11039 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11042 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11044 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11045 int check_UINT16_C:
11046 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11048 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11050 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11053 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11056 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11059 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11061 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11062 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11063 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11064 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11065 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11066 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11067 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11068 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11069 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11070 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11071 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11082 if ac_fn_c_try_compile
"$LINENO"; then :
11083 if test "$cross_compiling" = yes; then :
11084 gl_cv_header_working_stdint_h
=yes
11087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11091 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11092 #define __STDC_CONSTANT_MACROS 1
11093 #define __STDC_LIMIT_MACROS 1
11094 #include <stdint.h>
11097 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11098 included before <wchar.h>. */
11099 #include <stddef.h>
11100 #include <signal.h>
11102 # include <stdio.h>
11104 # include <wchar.h>
11109 #include <string.h>
11110 #define MVAL(macro) MVAL1(macro)
11111 #define MVAL1(expression) #expression
11112 static const char *macro_values[] =
11146 for (mv = macro_values; *mv != NULL; mv++)
11148 const char *value = *mv;
11149 /* Test whether it looks like a cast expression. */
11150 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11151 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11152 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11153 || strncmp (value, "((int)"/*)*/, 6) == 0
11154 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11155 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11156 return mv - macro_values + 1;
11164 if ac_fn_c_try_run
"$LINENO"; then :
11165 gl_cv_header_working_stdint_h
=yes
11167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11177 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11180 HAVE_C99_STDINT_H
=0
11181 HAVE_SYS_BITYPES_H
=0
11182 HAVE_SYS_INTTYPES_H
=0
11184 if test "$gl_cv_header_working_stdint_h" = yes; then
11185 HAVE_C99_STDINT_H
=1
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11187 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11188 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11189 $as_echo_n "(cached) " >&6
11191 gl_cv_header_stdint_predates_cxx11_h
=yes
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11196 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11197 #include <stdint.h>
11200 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11201 included before <wchar.h>. */
11202 #include <stddef.h>
11203 #include <signal.h>
11205 # include <stdio.h>
11207 # include <wchar.h>
11211 intmax_t im = INTMAX_MAX;
11212 int32_t i32 = INT32_C (0x7fffffff);
11222 if ac_fn_c_try_compile
"$LINENO"; then :
11223 gl_cv_header_stdint_predates_cxx11_h
=no
11225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11228 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11230 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11232 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11235 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11239 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11240 if ${gl_cv_header_stdint_width+:} false
; then :
11241 $as_echo_n "(cached) " >&6
11243 gl_cv_header_stdint_width
=no
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Work if build is not clean. */
11248 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11249 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11250 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11252 #include <stdint.h>
11254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11255 included before <wchar.h>. */
11256 #include <stddef.h>
11257 #include <signal.h>
11259 # include <stdio.h>
11261 # include <wchar.h>
11264 int iw = UINTMAX_WIDTH;
11274 if ac_fn_c_try_compile
"$LINENO"; then :
11275 gl_cv_header_stdint_width
=yes
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11280 $as_echo "$gl_cv_header_stdint_width" >&6; }
11281 if test "$gl_cv_header_stdint_width" = yes; then
11285 for ac_header
in sys
/inttypes.h sys
/bitypes.h
11287 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11289 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11290 cat >>confdefs.h
<<_ACEOF
11291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298 if test $ac_cv_header_sys_inttypes_h = yes; then
11299 HAVE_SYS_INTTYPES_H
=1
11301 if test $ac_cv_header_sys_bitypes_h = yes; then
11302 HAVE_SYS_BITYPES_H
=1
11306 if test $APPLE_UNIVERSAL_BUILD = 0; then
11309 for gltype
in ptrdiff_t size_t
; do
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11311 $as_echo_n "checking for bit size of $gltype... " >&6; }
11312 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11313 $as_echo_n "(cached) " >&6
11315 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11316 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11317 included before <wchar.h>. */
11318 #include <stddef.h>
11319 #include <signal.h>
11321 # include <stdio.h>
11323 # include <wchar.h>
11326 #include <limits.h>"; then :
11332 eval gl_cv_bitsizeof_
${gltype}=\
$result
11335 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11337 $as_echo "$ac_res" >&6; }
11338 eval result
=\
$gl_cv_bitsizeof_${gltype}
11339 if test $result = unknown
; then
11342 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11343 cat >>confdefs.h
<<_ACEOF
11344 #define BITSIZEOF_${GLTYPE} $result
11347 eval BITSIZEOF_
${GLTYPE}=\
$result
11354 for gltype
in sig_atomic_t wchar_t wint_t
; do
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11356 $as_echo_n "checking for bit size of $gltype... " >&6; }
11357 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11358 $as_echo_n "(cached) " >&6
11360 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11361 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11362 included before <wchar.h>. */
11363 #include <stddef.h>
11364 #include <signal.h>
11366 # include <stdio.h>
11368 # include <wchar.h>
11371 #include <limits.h>"; then :
11377 eval gl_cv_bitsizeof_
${gltype}=\
$result
11380 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11382 $as_echo "$ac_res" >&6; }
11383 eval result
=\
$gl_cv_bitsizeof_${gltype}
11384 if test $result = unknown
; then
11387 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11388 cat >>confdefs.h
<<_ACEOF
11389 #define BITSIZEOF_${GLTYPE} $result
11392 eval BITSIZEOF_
${GLTYPE}=\
$result
11398 for gltype
in sig_atomic_t wchar_t wint_t
; do
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11400 $as_echo_n "checking whether $gltype is signed... " >&6; }
11401 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11402 $as_echo_n "(cached) " >&6
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11408 included before <wchar.h>. */
11409 #include <stddef.h>
11410 #include <signal.h>
11412 # include <stdio.h>
11414 # include <wchar.h>
11417 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11426 if ac_fn_c_try_compile
"$LINENO"; then :
11431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11432 eval gl_cv_type_
${gltype}_signed
=\
$result
11435 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11438 eval result
=\
$gl_cv_type_${gltype}_signed
11439 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11440 if test "$result" = yes; then
11441 cat >>confdefs.h
<<_ACEOF
11442 #define HAVE_SIGNED_${GLTYPE} 1
11445 eval HAVE_SIGNED_
${GLTYPE}=1
11447 eval HAVE_SIGNED_
${GLTYPE}=0
11452 gl_cv_type_ptrdiff_t_signed
=yes
11453 gl_cv_type_size_t_signed
=no
11454 if test $APPLE_UNIVERSAL_BUILD = 0; then
11457 for gltype
in ptrdiff_t size_t
; do
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11459 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11460 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11461 $as_echo_n "(cached) " >&6
11463 eval gl_cv_type_
${gltype}_suffix
=no
11464 eval result
=\
$gl_cv_type_${gltype}_signed
11465 if test "$result" = yes; then
11470 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11472 '') gltype1
='int';;
11473 l
) gltype1
='long int';;
11474 ll
) gltype1
='long long int';;
11475 i64
) gltype1
='__int64';;
11476 u
) gltype1
='unsigned int';;
11477 ul
) gltype1
='unsigned long int';;
11478 ull
) gltype1
='unsigned long long int';;
11479 ui64
)gltype1
='unsigned __int64';;
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11485 included before <wchar.h>. */
11486 #include <stddef.h>
11487 #include <signal.h>
11489 # include <stdio.h>
11491 # include <wchar.h>
11494 extern $gltype foo;
11495 extern $gltype1 foo;
11504 if ac_fn_c_try_compile
"$LINENO"; then :
11505 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11508 eval result
=\
$gl_cv_type_${gltype}_suffix
11509 test "$result" != no
&& break
11512 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11514 $as_echo "$ac_res" >&6; }
11515 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11516 eval result
=\
$gl_cv_type_${gltype}_suffix
11517 test "$result" = no
&& result
=
11518 eval ${GLTYPE}_SUFFIX
=\
$result
11519 cat >>confdefs.h
<<_ACEOF
11520 #define ${GLTYPE}_SUFFIX $result
11529 for gltype
in sig_atomic_t wchar_t wint_t
; do
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11531 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11532 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11533 $as_echo_n "(cached) " >&6
11535 eval gl_cv_type_
${gltype}_suffix
=no
11536 eval result
=\
$gl_cv_type_${gltype}_signed
11537 if test "$result" = yes; then
11542 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11544 '') gltype1
='int';;
11545 l
) gltype1
='long int';;
11546 ll
) gltype1
='long long int';;
11547 i64
) gltype1
='__int64';;
11548 u
) gltype1
='unsigned int';;
11549 ul
) gltype1
='unsigned long int';;
11550 ull
) gltype1
='unsigned long long int';;
11551 ui64
)gltype1
='unsigned __int64';;
11553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11556 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11557 included before <wchar.h>. */
11558 #include <stddef.h>
11559 #include <signal.h>
11561 # include <stdio.h>
11563 # include <wchar.h>
11566 extern $gltype foo;
11567 extern $gltype1 foo;
11576 if ac_fn_c_try_compile
"$LINENO"; then :
11577 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11580 eval result
=\
$gl_cv_type_${gltype}_suffix
11581 test "$result" != no
&& break
11584 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11586 $as_echo "$ac_res" >&6; }
11587 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11588 eval result
=\
$gl_cv_type_${gltype}_suffix
11589 test "$result" = no
&& result
=
11590 eval ${GLTYPE}_SUFFIX
=\
$result
11591 cat >>confdefs.h
<<_ACEOF
11592 #define ${GLTYPE}_SUFFIX $result
11599 if test $BITSIZEOF_WINT_T -lt 32; then
11600 BITSIZEOF_WINT_T
=32
11605 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11607 if test -n "$LIMITS_H"; then
11608 GL_GENERATE_LIMITS_H_TRUE
=
11609 GL_GENERATE_LIMITS_H_FALSE
='#'
11611 GL_GENERATE_LIMITS_H_TRUE
='#'
11612 GL_GENERATE_LIMITS_H_FALSE
=
11620 if test -n "$STDINT_H"; then
11621 GL_GENERATE_STDINT_H_TRUE
=
11622 GL_GENERATE_STDINT_H_FALSE
='#'
11624 GL_GENERATE_STDINT_H_TRUE
='#'
11625 GL_GENERATE_STDINT_H_FALSE
=
11637 GNULIB_STRTOIMAX
=0;
11638 GNULIB_STRTOUMAX
=0;
11639 HAVE_DECL_IMAXABS
=1;
11640 HAVE_DECL_IMAXDIV
=1;
11641 HAVE_DECL_STRTOIMAX
=1;
11642 HAVE_DECL_STRTOUMAX
=1;
11643 REPLACE_STRTOIMAX
=0;
11644 REPLACE_STRTOUMAX
=0;
11645 INT32_MAX_LT_INTMAX_MAX
=1;
11646 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11647 PRI_MACROS_BROKEN
=0;
11648 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11649 UINT32_MAX_LT_UINTMAX_MAX
=1;
11650 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11678 if test $gl_cv_have_include_next = yes; then
11679 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11682 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11683 if ${gl_cv_next_inttypes_h+:} false
; then :
11684 $as_echo_n "(cached) " >&6
11687 if test $ac_cv_header_inttypes_h = yes; then
11692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694 #include <inttypes.h>
11697 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11698 *) gl_absname_cpp
="$ac_cpp" ;;
11703 gl_dirsep_regex
='[/\\]'
11706 gl_dirsep_regex
='\/'
11709 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11710 gl_header_literal_regex
=`echo 'inttypes.h' \
11711 | sed -e "$gl_make_literal_regex_sed"`
11712 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11713 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11719 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11720 sed -n "$gl_absolute_header_sed"`
11722 gl_header
=$gl_cv_absolute_inttypes_h
11723 gl_cv_next_inttypes_h
='"'$gl_header'"'
11725 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11731 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11733 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11735 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11737 gl_next_as_first_directive
='<'inttypes.h
'>'
11739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11740 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11742 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11751 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11752 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11754 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11755 if eval \
${$as_gl_Symbol+:} false
; then :
11756 $as_echo_n "(cached) " >&6
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <inttypes.h>
11771 if ac_fn_c_try_compile
"$LINENO"; then :
11772 eval "$as_gl_Symbol=yes"
11774 eval "$as_gl_Symbol=no"
11776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11778 eval ac_res
=\$
$as_gl_Symbol
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11782 cat >>confdefs.h
<<_ACEOF
11783 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11786 eval ac_cv_have_decl_
$gl_func=yes
11792 for ac_header
in inttypes.h
11794 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11796 cat >>confdefs.h
<<_ACEOF
11797 #define HAVE_INTTYPES_H 1
11804 if test $ac_cv_header_inttypes_h = yes; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11806 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11807 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11808 $as_echo_n "(cached) " >&6
11811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11814 #include <inttypes.h>
11827 if ac_fn_c_try_compile
"$LINENO"; then :
11828 gt_cv_inttypes_pri_broken
=no
11830 gt_cv_inttypes_pri_broken
=yes
11832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11836 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11838 if test "$gt_cv_inttypes_pri_broken" = yes; then
11840 cat >>confdefs.h
<<_ACEOF
11841 #define PRI_MACROS_BROKEN 1
11844 PRI_MACROS_BROKEN
=1
11846 PRI_MACROS_BROKEN
=0
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11852 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11853 if ${gl_cv_cc_double_expbit0+:} false
; then :
11854 $as_echo_n "(cached) " >&6
11857 if test "$cross_compiling" = yes; then :
11859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11862 #if defined arm || defined __arm || defined __arm__
11867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11868 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11869 gl_cv_cc_double_expbit0
="unknown"
11873 if ${ac_cv_c_bigendian+:} false
; then :
11874 $as_echo_n "(cached) " >&6
11876 ac_cv_c_bigendian
=unknown
11877 # See if we're dealing with a universal compiler.
11878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880 #ifndef __APPLE_CC__
11881 not a universal capable compiler
11886 if ac_fn_c_try_compile
"$LINENO"; then :
11888 # Check for potential -arch flags. It is not universal unless
11889 # there are at least two -arch flags with different values.
11892 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11893 if test -n "$ac_prev"; then
11895 i?
86 | x86_64 | ppc | ppc64
)
11896 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11899 ac_cv_c_bigendian
=universal
11905 elif test "x$ac_word" = "x-arch"; then
11910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11911 if test $ac_cv_c_bigendian = unknown
; then
11912 # See if sys/param.h defines the BYTE_ORDER macro.
11913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <sys/types.h>
11916 #include <sys/param.h>
11921 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11922 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11924 bogus endian macros
11931 if ac_fn_c_try_compile
"$LINENO"; then :
11932 # It does; now see whether it defined to BIG_ENDIAN or not.
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #include <sys/types.h>
11936 #include <sys/param.h>
11941 #if BYTE_ORDER != BIG_ENDIAN
11949 if ac_fn_c_try_compile
"$LINENO"; then :
11950 ac_cv_c_bigendian
=yes
11952 ac_cv_c_bigendian
=no
11954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11958 if test $ac_cv_c_bigendian = unknown
; then
11959 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #include <limits.h>
11967 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11968 bogus endian macros
11975 if ac_fn_c_try_compile
"$LINENO"; then :
11976 # It does; now see whether it defined to _BIG_ENDIAN or not.
11977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 #include <limits.h>
11984 #ifndef _BIG_ENDIAN
11992 if ac_fn_c_try_compile
"$LINENO"; then :
11993 ac_cv_c_bigendian
=yes
11995 ac_cv_c_bigendian
=no
11997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12001 if test $ac_cv_c_bigendian = unknown
; then
12002 # Compile a test program.
12003 if test "$cross_compiling" = yes; then :
12004 # Try to guess by grepping values from an object file.
12005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 short int ascii_mm[] =
12008 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12009 short int ascii_ii[] =
12010 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12011 int use_ascii (int i) {
12012 return ascii_mm[i] + ascii_ii[i];
12014 short int ebcdic_ii[] =
12015 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12016 short int ebcdic_mm[] =
12017 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12018 int use_ebcdic (int i) {
12019 return ebcdic_mm[i] + ebcdic_ii[i];
12026 return use_ascii (foo) == use_ebcdic (foo);
12031 if ac_fn_c_try_compile
"$LINENO"; then :
12032 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12033 ac_cv_c_bigendian
=yes
12035 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12036 if test "$ac_cv_c_bigendian" = unknown
; then
12037 ac_cv_c_bigendian
=no
12039 # finding both strings is unlikely to happen, but who knows?
12040 ac_cv_c_bigendian
=unknown
12044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 $ac_includes_default
12053 /* Are we little or big endian? From Harbison&Steele. */
12057 char c[sizeof (long int)];
12060 return u.c[sizeof (long int) - 1] == 1;
12066 if ac_fn_c_try_run
"$LINENO"; then :
12067 ac_cv_c_bigendian
=no
12069 ac_cv_c_bigendian
=yes
12071 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12072 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12078 case $ac_cv_c_bigendian in #(
12080 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12082 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12085 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12089 gl_cv_cc_double_expbit0
="unknown" ;;
12098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12102 #include <stddef.h>
12104 #include <string.h>
12106 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12107 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12108 static unsigned int ored_words[NWORDS];
12109 static unsigned int anded_words[NWORDS];
12110 static void add_to_ored_words (double x)
12114 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12115 memset (&m, 0, sizeof (memory_double));
12117 for (i = 0; i < NWORDS; i++)
12119 ored_words[i] |= m.word[i];
12120 anded_words[i] &= m.word[i];
12126 FILE *fp = fopen ("conftest.out", "w");
12129 for (j = 0; j < NWORDS; j++)
12130 anded_words[j] = ~ (unsigned int) 0;
12131 add_to_ored_words (0.25);
12132 add_to_ored_words (0.5);
12133 add_to_ored_words (1.0);
12134 add_to_ored_words (2.0);
12135 add_to_ored_words (4.0);
12136 /* Remove bits that are common (e.g. if representation of the first mantissa
12137 bit is explicit). */
12138 for (j = 0; j < NWORDS; j++)
12139 ored_words[j] &= ~anded_words[j];
12140 /* Now find the nonzero word. */
12141 for (j = 0; j < NWORDS; j++)
12142 if (ored_words[j] != 0)
12147 for (i = j + 1; i < NWORDS; i++)
12148 if (ored_words[i] != 0)
12150 fprintf (fp, "unknown");
12151 return (fclose (fp) != 0);
12154 if ((ored_words[j] >> i) & 1)
12156 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12157 return (fclose (fp) != 0);
12160 fprintf (fp, "unknown");
12161 return (fclose (fp) != 0);
12165 if ac_fn_c_try_run
"$LINENO"; then :
12166 gl_cv_cc_double_expbit0
=`cat conftest.out`
12168 gl_cv_cc_double_expbit0
="unknown"
12170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12178 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12179 case "$gl_cv_cc_double_expbit0" in
12181 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12182 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12184 cat >>confdefs.h
<<_ACEOF
12185 #define DBL_EXPBIT0_WORD $word
12189 cat >>confdefs.h
<<_ACEOF
12190 #define DBL_EXPBIT0_BIT $bit
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12198 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12199 if ${ac_cv_c_bigendian+:} false
; then :
12200 $as_echo_n "(cached) " >&6
12202 ac_cv_c_bigendian
=unknown
12203 # See if we're dealing with a universal compiler.
12204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #ifndef __APPLE_CC__
12207 not a universal capable compiler
12212 if ac_fn_c_try_compile
"$LINENO"; then :
12214 # Check for potential -arch flags. It is not universal unless
12215 # there are at least two -arch flags with different values.
12218 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12219 if test -n "$ac_prev"; then
12221 i?
86 | x86_64 | ppc | ppc64
)
12222 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12225 ac_cv_c_bigendian
=universal
12231 elif test "x$ac_word" = "x-arch"; then
12236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12237 if test $ac_cv_c_bigendian = unknown
; then
12238 # See if sys/param.h defines the BYTE_ORDER macro.
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include <sys/types.h>
12242 #include <sys/param.h>
12247 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12248 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12250 bogus endian macros
12257 if ac_fn_c_try_compile
"$LINENO"; then :
12258 # It does; now see whether it defined to BIG_ENDIAN or not.
12259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 #include <sys/types.h>
12262 #include <sys/param.h>
12267 #if BYTE_ORDER != BIG_ENDIAN
12275 if ac_fn_c_try_compile
"$LINENO"; then :
12276 ac_cv_c_bigendian
=yes
12278 ac_cv_c_bigendian
=no
12280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12284 if test $ac_cv_c_bigendian = unknown
; then
12285 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #include <limits.h>
12293 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12294 bogus endian macros
12301 if ac_fn_c_try_compile
"$LINENO"; then :
12302 # It does; now see whether it defined to _BIG_ENDIAN or not.
12303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #include <limits.h>
12310 #ifndef _BIG_ENDIAN
12318 if ac_fn_c_try_compile
"$LINENO"; then :
12319 ac_cv_c_bigendian
=yes
12321 ac_cv_c_bigendian
=no
12323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12327 if test $ac_cv_c_bigendian = unknown
; then
12328 # Compile a test program.
12329 if test "$cross_compiling" = yes; then :
12330 # Try to guess by grepping values from an object file.
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333 short int ascii_mm[] =
12334 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12335 short int ascii_ii[] =
12336 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12337 int use_ascii (int i) {
12338 return ascii_mm[i] + ascii_ii[i];
12340 short int ebcdic_ii[] =
12341 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12342 short int ebcdic_mm[] =
12343 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12344 int use_ebcdic (int i) {
12345 return ebcdic_mm[i] + ebcdic_ii[i];
12352 return use_ascii (foo) == use_ebcdic (foo);
12357 if ac_fn_c_try_compile
"$LINENO"; then :
12358 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12359 ac_cv_c_bigendian
=yes
12361 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12362 if test "$ac_cv_c_bigendian" = unknown
; then
12363 ac_cv_c_bigendian
=no
12365 # finding both strings is unlikely to happen, but who knows?
12366 ac_cv_c_bigendian
=unknown
12370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 $ac_includes_default
12379 /* Are we little or big endian? From Harbison&Steele. */
12383 char c[sizeof (long int)];
12386 return u.c[sizeof (long int) - 1] == 1;
12392 if ac_fn_c_try_run
"$LINENO"; then :
12393 ac_cv_c_bigendian
=no
12395 ac_cv_c_bigendian
=yes
12397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12404 $as_echo "$ac_cv_c_bigendian" >&6; }
12405 case $ac_cv_c_bigendian in #(
12407 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12413 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12417 as_fn_error $?
"unknown endianness
12418 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12424 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12425 if ${am_cv_langinfo_codeset+:} false
; then :
12426 $as_echo_n "(cached) " >&6
12428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #include <langinfo.h>
12434 char* cs = nl_langinfo(CODESET); return !cs;
12439 if ac_fn_c_try_link
"$LINENO"; then :
12440 am_cv_langinfo_codeset
=yes
12442 am_cv_langinfo_codeset
=no
12444 rm -f core conftest.err conftest.
$ac_objext \
12445 conftest
$ac_exeext conftest.
$ac_ext
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12449 $as_echo "$am_cv_langinfo_codeset" >&6; }
12450 if test $am_cv_langinfo_codeset = yes; then
12452 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12457 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12458 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12471 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12472 if ${ac_cv_gnu_library_2_1+:} false
; then :
12473 $as_echo_n "(cached) " >&6
12475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 #include <features.h>
12479 #ifdef __GNU_LIBRARY__
12480 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12490 $EGREP "Lucky" >/dev
/null
2>&1; then :
12491 ac_cv_gnu_library_2_1
=yes
12493 ac_cv_gnu_library_2_1
=no
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12501 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12503 GLIBC21
="$ac_cv_gnu_library_2_1"
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12513 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12514 if ${gl_cv_func_malloc_posix+:} false
; then :
12515 $as_echo_n "(cached) " >&6
12518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12524 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12532 if ac_fn_c_try_compile
"$LINENO"; then :
12533 gl_cv_func_malloc_posix
=yes
12535 gl_cv_func_malloc_posix
=no
12537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12541 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12545 for ac_header
in stdlib.h
12547 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12548 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12549 cat >>confdefs.h
<<_ACEOF
12550 #define HAVE_STDLIB_H 1
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12558 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12559 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12560 $as_echo_n "(cached) " >&6
12562 if test "$cross_compiling" = yes; then :
12564 # Guess yes on platforms where we know the result.
12565 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
12566 | hpux
* | solaris
* | cygwin
* | mingw
*)
12567 ac_cv_func_malloc_0_nonnull
=yes ;;
12568 # If we don't know, assume the worst.
12569 *) ac_cv_func_malloc_0_nonnull
=no
;;
12573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12576 # include <stdlib.h>
12584 char *p = malloc (0);
12593 if ac_fn_c_try_run
"$LINENO"; then :
12594 ac_cv_func_malloc_0_nonnull
=yes
12596 ac_cv_func_malloc_0_nonnull
=no
12598 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12599 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12605 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12606 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12607 gl_cv_func_malloc_0_nonnull
=1
12609 gl_cv_func_malloc_0_nonnull
=0
12613 cat >>confdefs.h
<<_ACEOF
12614 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12629 GNULIB_MBSRTOWCS
=0;
12630 GNULIB_MBSNRTOWCS
=0;
12632 GNULIB_WCSRTOMBS
=0;
12633 GNULIB_WCSNRTOMBS
=0;
12650 GNULIB_WCSCASECMP
=0;
12651 GNULIB_WCSNCASECMP
=0;
12688 HAVE_WCSNCASECMP
=1;
12701 HAVE_DECL_WCWIDTH
=1;
12702 REPLACE_MBSTATE_T
=0;
12708 REPLACE_MBSRTOWCS
=0;
12709 REPLACE_MBSNRTOWCS
=0;
12711 REPLACE_WCSRTOMBS
=0;
12712 REPLACE_WCSNRTOMBS
=0;
12714 REPLACE_WCSWIDTH
=0;
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12730 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12731 if ${gt_cv_locale_ja+:} false
; then :
12732 $as_echo_n "(cached) " >&6
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 #include <locale.h>
12740 #if HAVE_LANGINFO_CODESET
12741 # include <langinfo.h>
12743 #include <stdlib.h>
12744 #include <string.h>
12750 /* Check whether the given locale name is recognized by the system. */
12751 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12752 /* On native Windows, setlocale(category, "") looks at the system settings,
12753 not at the environment variables. Also, when an encoding suffix such
12754 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12755 category of the locale to "C". */
12756 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12757 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12760 if (setlocale (LC_ALL, "") == NULL) return 1;
12762 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12763 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12764 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12765 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12766 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12767 some unit tests fail.
12768 On MirBSD 10, when an unsupported locale is specified, setlocale()
12769 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12770 #if HAVE_LANGINFO_CODESET
12772 const char *cs = nl_langinfo (CODESET);
12773 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12774 || strcmp (cs, "UTF-8") == 0)
12779 /* On Cygwin, avoid locale names without encoding suffix, because the
12780 locale_charset() function relies on the encoding suffix. Note that
12781 LC_ALL is set on the command line. */
12782 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12784 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12785 on Cygwin 1.5.x. */
12786 if (MB_CUR_MAX == 1)
12788 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12789 This excludes the UTF-8 encoding (except on MirBSD). */
12790 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12791 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12792 for (p = buf; *p != '\0'; p++)
12793 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12800 (eval $ac_link) 2>&5
12802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12803 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12805 # Handle native Windows specially, because there setlocale() interprets
12806 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12807 # "fr" or "fra" as "French" or "French_France.1252",
12808 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12809 # "ja" as "Japanese" or "Japanese_Japan.932",
12812 # Note that on native Windows, the Japanese locale is
12813 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12814 # cannot use it here.
12815 gt_cv_locale_ja
=none
12818 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12819 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12820 # configure script would override the LC_ALL setting. Likewise for
12821 # LC_CTYPE, which is also set at the beginning of the configure script.
12822 # Test for the AIX locale name.
12823 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12824 gt_cv_locale_ja
=ja_JP
12826 # Test for the locale name with explicit encoding suffix.
12827 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12828 gt_cv_locale_ja
=ja_JP.EUC-JP
12830 # Test for the HP-UX, OSF/1, NetBSD locale name.
12831 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12832 gt_cv_locale_ja
=ja_JP.eucJP
12834 # Test for the IRIX, FreeBSD locale name.
12835 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12836 gt_cv_locale_ja
=ja_JP.EUC
12838 # Test for the Solaris 7 locale name.
12839 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12842 # Special test for NetBSD 1.6.
12843 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
12844 gt_cv_locale_ja
=ja_JP.eucJP
12847 gt_cv_locale_ja
=none
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12861 $as_echo "$gt_cv_locale_ja" >&6; }
12862 LOCALE_JA
=$gt_cv_locale_ja
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12869 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12870 if ${gt_cv_locale_zh_CN+:} false
; then :
12871 $as_echo_n "(cached) " >&6
12874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12877 #include <locale.h>
12878 #include <stdlib.h>
12880 #if HAVE_LANGINFO_CODESET
12881 # include <langinfo.h>
12883 #include <stdlib.h>
12884 #include <string.h>
12890 /* Check whether the given locale name is recognized by the system. */
12891 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12892 /* On native Windows, setlocale(category, "") looks at the system settings,
12893 not at the environment variables. Also, when an encoding suffix such
12894 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12895 category of the locale to "C". */
12896 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12897 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12900 if (setlocale (LC_ALL, "") == NULL) return 1;
12902 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12903 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12904 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12905 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12906 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12907 some unit tests fail.
12908 On MirBSD 10, when an unsupported locale is specified, setlocale()
12909 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12910 #if HAVE_LANGINFO_CODESET
12912 const char *cs = nl_langinfo (CODESET);
12913 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12914 || strcmp (cs, "UTF-8") == 0)
12919 /* On Cygwin, avoid locale names without encoding suffix, because the
12920 locale_charset() function relies on the encoding suffix. Note that
12921 LC_ALL is set on the command line. */
12922 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12924 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12925 This excludes the UTF-8 encoding (except on MirBSD). */
12926 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12927 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12928 for (p = buf; *p != '\0'; p++)
12929 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12931 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12932 single wide character. This excludes the GB2312 and GBK encodings. */
12933 if (mblen ("\203\062\332\066", 5) != 4)
12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12940 (eval $ac_link) 2>&5
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12945 # Handle native Windows specially, because there setlocale() interprets
12946 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12947 # "fr" or "fra" as "French" or "French_France.1252",
12948 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12949 # "ja" as "Japanese" or "Japanese_Japan.932",
12952 # Test for the hypothetical native Windows locale name.
12953 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12954 gt_cv_locale_zh_CN
=Chinese_China
.54936
12957 gt_cv_locale_zh_CN
=none
12961 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12962 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12963 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12964 gt_cv_locale_zh_CN
=none
12967 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12968 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12969 # configure script would override the LC_ALL setting. Likewise for
12970 # LC_CTYPE, which is also set at the beginning of the configure script.
12971 # Test for the locale name without encoding suffix.
12972 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12973 gt_cv_locale_zh_CN
=zh_CN
12975 # Test for the locale name with explicit encoding suffix.
12976 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12977 gt_cv_locale_zh_CN
=zh_CN.GB18030
12980 gt_cv_locale_zh_CN
=none
12986 # If there was a link error, due to mblen(), the system is so old that
12987 # it certainly doesn't have a chinese locale.
12988 gt_cv_locale_zh_CN
=none
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12994 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12995 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
13001 $as_echo_n "checking for a french Unicode locale... " >&6; }
13002 if ${gt_cv_locale_fr_utf8+:} false
; then :
13003 $as_echo_n "(cached) " >&6
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 #include <locale.h>
13011 #if HAVE_LANGINFO_CODESET
13012 # include <langinfo.h>
13014 #include <stdlib.h>
13015 #include <string.h>
13019 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13020 imitates locale dependent behaviour by looking at the environment
13021 variables, and all locales use the UTF-8 encoding. */
13022 #if !(defined __BEOS__ || defined __HAIKU__)
13023 /* Check whether the given locale name is recognized by the system. */
13024 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13025 /* On native Windows, setlocale(category, "") looks at the system settings,
13026 not at the environment variables. Also, when an encoding suffix such
13027 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13028 category of the locale to "C". */
13029 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13030 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13033 if (setlocale (LC_ALL, "") == NULL) return 1;
13035 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13036 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13037 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13038 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13039 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13040 some unit tests fail. */
13041 # if HAVE_LANGINFO_CODESET
13043 const char *cs = nl_langinfo (CODESET);
13044 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
13049 /* On Cygwin, avoid locale names without encoding suffix, because the
13050 locale_charset() function relies on the encoding suffix. Note that
13051 LC_ALL is set on the command line. */
13052 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13054 /* Check whether in the abbreviation of the second month, the second
13055 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
13056 two bytes long, with UTF-8 encoding. */
13057 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13058 if (strftime (buf, sizeof (buf), "%b", &t) < 4
13059 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
13062 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13063 /* Check whether the decimal separator is a comma.
13064 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13065 are nl_langinfo(RADIXCHAR) are both ".". */
13066 if (localeconv () ->decimal_point[0] != ',') return 1;
13072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13073 (eval $ac_link) 2>&5
13075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13078 # Handle native Windows specially, because there setlocale() interprets
13079 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13080 # "fr" or "fra" as "French" or "French_France.1252",
13081 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13082 # "ja" as "Japanese" or "Japanese_Japan.932",
13085 # Test for the hypothetical native Windows locale name.
13086 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13087 gt_cv_locale_fr_utf8
=French_France
.65001
13090 gt_cv_locale_fr_utf8
=none
13094 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13095 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13096 # configure script would override the LC_ALL setting. Likewise for
13097 # LC_CTYPE, which is also set at the beginning of the configure script.
13098 # Test for the usual locale name.
13099 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13100 gt_cv_locale_fr_utf8
=fr_FR
13102 # Test for the locale name with explicit encoding suffix.
13103 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13104 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
13106 # Test for the Solaris 7 locale name.
13107 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13108 gt_cv_locale_fr_utf8
=fr.UTF-8
13111 gt_cv_locale_fr_utf8
=none
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
13122 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
13123 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
13130 $as_echo_n "checking for a traditional french locale... " >&6; }
13131 if ${gt_cv_locale_fr+:} false
; then :
13132 $as_echo_n "(cached) " >&6
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 #include <locale.h>
13140 #if HAVE_LANGINFO_CODESET
13141 # include <langinfo.h>
13143 #include <stdlib.h>
13144 #include <string.h>
13148 /* Check whether the given locale name is recognized by the system. */
13149 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13150 /* On native Windows, setlocale(category, "") looks at the system settings,
13151 not at the environment variables. Also, when an encoding suffix such
13152 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13153 category of the locale to "C". */
13154 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13155 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13158 if (setlocale (LC_ALL, "") == NULL) return 1;
13160 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13161 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13162 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13163 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13164 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13165 some unit tests fail.
13166 On MirBSD 10, when an unsupported locale is specified, setlocale()
13167 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13168 #if HAVE_LANGINFO_CODESET
13170 const char *cs = nl_langinfo (CODESET);
13171 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13172 || strcmp (cs, "UTF-8") == 0)
13177 /* On Cygwin, avoid locale names without encoding suffix, because the
13178 locale_charset() function relies on the encoding suffix. Note that
13179 LC_ALL is set on the command line. */
13180 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13182 /* Check whether in the abbreviation of the second month, the second
13183 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
13184 one byte long. This excludes the UTF-8 encoding. */
13185 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13186 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
13187 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13188 /* Check whether the decimal separator is a comma.
13189 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13190 are nl_langinfo(RADIXCHAR) are both ".". */
13191 if (localeconv () ->decimal_point[0] != ',') return 1;
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13198 (eval $ac_link) 2>&5
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13203 # Handle native Windows specially, because there setlocale() interprets
13204 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13205 # "fr" or "fra" as "French" or "French_France.1252",
13206 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13207 # "ja" as "Japanese" or "Japanese_Japan.932",
13210 # Test for the native Windows locale name.
13211 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13212 gt_cv_locale_fr
=French_France
.1252
13215 gt_cv_locale_fr
=none
13219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13221 # configure script would override the LC_ALL setting. Likewise for
13222 # LC_CTYPE, which is also set at the beginning of the configure script.
13223 # Test for the usual locale name.
13224 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13225 gt_cv_locale_fr
=fr_FR
13227 # Test for the locale name with explicit encoding suffix.
13228 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13229 gt_cv_locale_fr
=fr_FR.ISO-8859-1
13231 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
13232 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13233 gt_cv_locale_fr
=fr_FR.ISO8859-1
13235 # Test for the HP-UX locale name.
13236 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13237 gt_cv_locale_fr
=fr_FR.iso88591
13239 # Test for the Solaris 7 locale name.
13240 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13244 gt_cv_locale_fr
=none
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
13257 $as_echo "$gt_cv_locale_fr" >&6; }
13258 LOCALE_FR
=$gt_cv_locale_fr
13278 GNULIB_RAWMEMCHR
=0;
13281 GNULIB_STRCHRNUL
=0;
13289 GNULIB_STRCASESTR
=0;
13296 GNULIB_MBSCASECMP
=0;
13297 GNULIB_MBSNCASECMP
=0;
13298 GNULIB_MBSPCASECMP
=0;
13299 GNULIB_MBSCASESTR
=0;
13306 GNULIB_STRERROR_R
=0;
13307 GNULIB_STRSIGNAL
=0;
13308 GNULIB_STRVERSCMP
=0;
13313 HAVE_DECL_MEMMEM
=1;
13315 HAVE_DECL_MEMRCHR
=1;
13320 HAVE_DECL_STRDUP
=1;
13321 HAVE_DECL_STRNDUP
=1;
13322 HAVE_DECL_STRNLEN
=1;
13326 HAVE_DECL_STRTOK_R
=1;
13327 HAVE_DECL_STRERROR_R
=1;
13328 HAVE_DECL_STRSIGNAL
=1;
13335 REPLACE_STRCASESTR
=0;
13336 REPLACE_STRCHRNUL
=0;
13337 REPLACE_STRERROR
=0;
13338 REPLACE_STRERROR_R
=0;
13342 REPLACE_STRSIGNAL
=0;
13343 REPLACE_STRTOK_R
=0;
13344 UNDEFINE_STRTOK_R
=0;
13350 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13351 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13352 # irrelevant for anonymous mappings.
13353 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
13354 if test "x$ac_cv_func_mmap" = xyes
; then :
13361 # Try to allow MAP_ANONYMOUS.
13362 gl_have_mmap_anonymous
=no
13363 if test $gl_have_mmap = yes; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13365 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 #include <sys/mman.h>
13370 #ifdef MAP_ANONYMOUS
13371 I cannot identify this map
13375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13376 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13377 gl_have_mmap_anonymous
=yes
13381 if test $gl_have_mmap_anonymous != yes; then
13382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13385 #include <sys/mman.h>
13387 I cannot identify this map
13391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13392 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13394 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13396 gl_have_mmap_anonymous
=yes
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13402 $as_echo "$gl_have_mmap_anonymous" >&6; }
13403 if test $gl_have_mmap_anonymous = yes; then
13405 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13427 if test $HAVE_MEMCHR = 1; then
13428 # Detect platform-specific bugs in some versions of glibc:
13429 # memchr should not dereference anything with length 0
13430 # http://bugzilla.redhat.com/499689
13431 # memchr should not dereference overestimated length after a match
13432 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13433 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13434 # Assume that memchr works on platforms that lack mprotect.
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13436 $as_echo_n "checking whether memchr works... " >&6; }
13437 if ${gl_cv_func_memchr_works+:} false
; then :
13438 $as_echo_n "(cached) " >&6
13440 if test "$cross_compiling" = yes; then :
13441 gl_cv_func_memchr_works
="guessing no"
13443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13446 #include <string.h>
13447 #if HAVE_SYS_MMAN_H
13448 # include <fcntl.h>
13449 # include <unistd.h>
13450 # include <sys/types.h>
13451 # include <sys/mman.h>
13453 # define MAP_FILE 0
13462 char *fence = NULL;
13463 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13464 # if HAVE_MAP_ANONYMOUS
13465 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13467 # else /* !HAVE_MAP_ANONYMOUS */
13468 const int flags = MAP_FILE | MAP_PRIVATE;
13469 int fd = open ("/dev/zero", O_RDONLY, 0666);
13473 int pagesize = getpagesize ();
13475 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13477 if (two_pages != (char *)(-1)
13478 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13479 fence = two_pages + pagesize;
13484 if (memchr (fence, 0, 0))
13486 strcpy (fence - 9, "12345678");
13487 if (memchr (fence - 9, 0, 79) != fence - 1)
13489 if (memchr (fence - 1, 0, 3) != fence - 1)
13498 if ac_fn_c_try_run
"$LINENO"; then :
13499 gl_cv_func_memchr_works
=yes
13501 gl_cv_func_memchr_works
=no
13503 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13504 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13509 $as_echo "$gl_cv_func_memchr_works" >&6; }
13510 if test "$gl_cv_func_memchr_works" != yes; then
13516 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13517 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
13523 cat >>confdefs.h
<<_ACEOF
13524 #define HAVE_DECL_MEMMEM $ac_have_decl
13532 for ac_func
in memmem
13534 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
13535 if test "x$ac_cv_func_memmem" = xyes
; then :
13536 cat >>confdefs.h
<<_ACEOF
13537 #define HAVE_MEMMEM 1
13543 if test $ac_cv_func_memmem = yes; then
13555 if test $ac_cv_have_decl_memmem = no
; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13559 $as_echo_n "checking whether memmem works... " >&6; }
13560 if ${gl_cv_func_memmem_works_always+:} false
; then :
13561 $as_echo_n "(cached) " >&6
13563 if test "$cross_compiling" = yes; then :
13564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13567 #ifdef __GNU_LIBRARY__
13568 #include <features.h>
13569 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13570 || __GLIBC_MINOR__ > 12)) \
13571 || (__GLIBC__ > 2)) \
13572 || defined __UCLIBC__
13575 #elif defined __CYGWIN__
13576 #include <cygwin/version.h>
13577 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13586 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13587 gl_cv_func_memmem_works_always
="guessing yes"
13589 gl_cv_func_memmem_works_always
="guessing no"
13595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 #include <string.h> /* for memmem */
13599 #define P "_EF_BF_BD"
13600 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13601 #define NEEDLE P P P P P
13608 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13610 /* Check for empty needle behavior. */
13612 const char *haystack = "AAA";
13613 if (memmem (haystack, 3, NULL, 0) != haystack)
13622 if ac_fn_c_try_run
"$LINENO"; then :
13623 gl_cv_func_memmem_works_always
=yes
13625 gl_cv_func_memmem_works_always
=no
13627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13634 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13635 case "$gl_cv_func_memmem_works_always" in
13645 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13646 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
13652 cat >>confdefs.h
<<_ACEOF
13653 #define HAVE_DECL_MEMRCHR $ac_have_decl
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13668 $as_echo_n "checking for promoted mode_t type... " >&6; }
13669 if ${gl_cv_promoted_mode_t+:} false
; then :
13670 $as_echo_n "(cached) " >&6
13673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675 #include <sys/types.h>
13679 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13684 if ac_fn_c_try_compile
"$LINENO"; then :
13685 gl_cv_promoted_mode_t
='int'
13687 gl_cv_promoted_mode_t
='mode_t'
13689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13693 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13695 cat >>confdefs.h
<<_ACEOF
13696 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13714 GNULIB_FPRINTF_POSIX
=0;
13730 GNULIB_OBSTACK_PRINTF
=0;
13731 GNULIB_OBSTACK_PRINTF_POSIX
=0;
13736 GNULIB_PRINTF_POSIX
=0;
13745 GNULIB_SPRINTF_POSIX
=0;
13746 GNULIB_STDIO_H_NONBLOCKING
=0;
13747 GNULIB_STDIO_H_SIGPIPE
=0;
13749 GNULIB_VASPRINTF
=0;
13754 GNULIB_VFPRINTF_POSIX
=0;
13756 GNULIB_VPRINTF_POSIX
=0;
13757 GNULIB_VSNPRINTF
=0;
13758 GNULIB_VSPRINTF_POSIX
=0;
13759 HAVE_DECL_FPURGE
=1;
13760 HAVE_DECL_FSEEKO
=1;
13761 HAVE_DECL_FTELLO
=1;
13762 HAVE_DECL_GETDELIM
=1;
13763 HAVE_DECL_GETLINE
=1;
13764 HAVE_DECL_OBSTACK_PRINTF
=1;
13765 HAVE_DECL_SNPRINTF
=1;
13766 HAVE_DECL_VSNPRINTF
=1;
13787 REPLACE_GETDELIM
=0;
13789 REPLACE_OBSTACK_PRINTF
=0;
13795 REPLACE_RENAMEAT
=0;
13796 REPLACE_SNPRINTF
=0;
13798 REPLACE_STDIO_READ_FUNCS
=0;
13799 REPLACE_STDIO_WRITE_FUNCS
=0;
13801 REPLACE_VASPRINTF
=0;
13802 REPLACE_VDPRINTF
=0;
13803 REPLACE_VFPRINTF
=0;
13805 REPLACE_VSNPRINTF
=0;
13806 REPLACE_VSPRINTF
=0;
13839 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13840 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
13846 cat >>confdefs.h
<<_ACEOF
13847 #define HAVE_DECL_SETENV $ac_have_decl
13865 if test $ac_cv_have_decl_setenv = no
; then
13885 for ac_header
in search.h
13887 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13888 if test "x$ac_cv_header_search_h" = xyes
; then :
13889 cat >>confdefs.h
<<_ACEOF
13890 #define HAVE_SEARCH_H 1
13897 for ac_func
in tsearch
13899 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
13900 if test "x$ac_cv_func_tsearch" = xyes
; then :
13901 cat >>confdefs.h
<<_ACEOF
13902 #define HAVE_TSEARCH 1
13911 GNULIB_PTHREAD_SIGMASK
=0;
13913 GNULIB_SIGNAL_H_SIGPIPE
=0;
13914 GNULIB_SIGPROCMASK
=0;
13915 GNULIB_SIGACTION
=0;
13916 HAVE_POSIX_SIGNALBLOCKING
=1;
13917 HAVE_PTHREAD_SIGMASK
=1;
13922 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
13924 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
13926 HAVE_SIGHANDLER_T
=1;
13927 REPLACE_PTHREAD_SIGMASK
=0;
13931 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13932 #include <signal.h>
13933 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13934 #include <sys/types.h>
13937 if test "x$ac_cv_type_sigset_t" = xyes
; then :
13939 cat >>confdefs.h
<<_ACEOF
13940 #define HAVE_SIGSET_T 1
13943 gl_cv_type_sigset_t
=yes
13945 gl_cv_type_sigset_t
=no
13948 if test $gl_cv_type_sigset_t != yes; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13953 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13954 if ${ac_cv_type_uid_t+:} false
; then :
13955 $as_echo_n "(cached) " >&6
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <sys/types.h>
13962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13963 $EGREP "uid_t" >/dev
/null
2>&1; then :
13964 ac_cv_type_uid_t
=yes
13966 ac_cv_type_uid_t
=no
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13972 $as_echo "$ac_cv_type_uid_t" >&6; }
13973 if test $ac_cv_type_uid_t = no
; then
13975 $as_echo "#define uid_t int" >>confdefs.h
13978 $as_echo "#define gid_t int" >>confdefs.h
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13983 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13984 if ${ac_cv_header_stdbool_h+:} false
; then :
13985 $as_echo_n "(cached) " >&6
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13990 #include <stdbool.h>
13995 typedef _Bool Bool;
13997 "error: bool is not defined"
14000 "error: false is not defined"
14003 "error: false is not 0"
14006 "error: true is not defined"
14009 "error: true is not 1"
14013 #ifndef __bool_true_false_are_defined
14014 "error: __bool_true_false_are_defined is not defined"
14017 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
14019 char a[true == 1 ? 1 : -1];
14020 char b[false == 0 ? 1 : -1];
14021 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14022 char d[(bool) 0.5 == true ? 1 : -1];
14023 /* See body of main program for 'e'. */
14024 char f[(Bool) 0.0 == false ? 1 : -1];
14026 char h[sizeof (Bool)];
14027 char i[sizeof s.t];
14028 enum { j = false, k = true, l = false * true, m = true * 256 };
14029 /* The following fails for
14030 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14032 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14033 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14034 /* Catch a bug in an HP-UX C compiler. See
14035 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14036 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14047 *pq |= q; *pq |= ! q;
14048 *qq |= q; *qq |= ! q;
14049 /* Refer to every declared value, to avoid compiler optimizations. */
14050 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14051 + !m + !n + !o + !p + !q + !pq + !qq);
14057 if ac_fn_c_try_compile
"$LINENO"; then :
14058 ac_cv_header_stdbool_h
=yes
14060 ac_cv_header_stdbool_h
=no
14062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14065 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14066 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14067 if test "x$ac_cv_type__Bool" = xyes
; then :
14069 cat >>confdefs.h
<<_ACEOF
14070 #define HAVE__BOOL 1
14079 HAVE_MAX_ALIGN_T
=1;
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14084 $as_echo_n "checking for wchar_t... " >&6; }
14085 if ${gt_cv_c_wchar_t+:} false
; then :
14086 $as_echo_n "(cached) " >&6
14088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <stddef.h>
14091 wchar_t foo = (wchar_t)'\0';
14100 if ac_fn_c_try_compile
"$LINENO"; then :
14101 gt_cv_c_wchar_t
=yes
14105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14108 $as_echo "$gt_cv_c_wchar_t" >&6; }
14109 if test $gt_cv_c_wchar_t = yes; then
14111 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14121 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
14122 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
14128 cat >>confdefs.h
<<_ACEOF
14129 #define HAVE_DECL_STRDUP $ac_have_decl
14134 REPLACE_STRERROR_0
=0
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
14136 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
14137 if ${gl_cv_func_strerror_0_works+:} false
; then :
14138 $as_echo_n "(cached) " >&6
14140 if test "$cross_compiling" = yes; then :
14142 # Guess yes on glibc systems.
14143 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
14144 # If we don't know, assume the worst.
14145 *) gl_cv_func_strerror_0_works
="guessing no" ;;
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 #include <string.h>
14160 str = strerror (0);
14161 if (!*str) result |= 1;
14162 if (errno) result |= 2;
14163 if (strstr (str, "nknown") || strstr (str, "ndefined"))
14170 if ac_fn_c_try_run
"$LINENO"; then :
14171 gl_cv_func_strerror_0_works
=yes
14173 gl_cv_func_strerror_0_works
=no
14175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
14182 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
14183 case "$gl_cv_func_strerror_0_works" in
14186 REPLACE_STRERROR_0
=1
14188 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
14204 if test $gl_cv_have_include_next = yes; then
14205 gl_cv_next_string_h
='<'string.h
'>'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
14208 $as_echo_n "checking absolute name of <string.h>... " >&6; }
14209 if ${gl_cv_next_string_h+:} false
; then :
14210 $as_echo_n "(cached) " >&6
14215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 #include <string.h>
14220 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14221 *) gl_absname_cpp
="$ac_cpp" ;;
14226 gl_dirsep_regex
='[/\\]'
14229 gl_dirsep_regex
='\/'
14232 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14233 gl_header_literal_regex
=`echo 'string.h' \
14234 | sed -e "$gl_make_literal_regex_sed"`
14235 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14236 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14242 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14243 sed -n "$gl_absolute_header_sed"`
14245 gl_header
=$gl_cv_absolute_string_h
14246 gl_cv_next_string_h
='"'$gl_header'"'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
14251 $as_echo "$gl_cv_next_string_h" >&6; }
14253 NEXT_STRING_H
=$gl_cv_next_string_h
14255 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14257 gl_next_as_first_directive
='<'string.h
'>'
14259 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14260 gl_next_as_first_directive
=$gl_cv_next_string_h
14262 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
14269 for gl_func
in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp
; do
14270 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14272 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14273 if eval \
${$as_gl_Symbol+:} false
; then :
14274 $as_echo_n "(cached) " >&6
14276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278 #include <string.h>
14289 if ac_fn_c_try_compile
"$LINENO"; then :
14290 eval "$as_gl_Symbol=yes"
14292 eval "$as_gl_Symbol=no"
14294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14296 eval ac_res
=\$
$as_gl_Symbol
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14298 $as_echo "$ac_res" >&6; }
14299 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
14300 cat >>confdefs.h
<<_ACEOF
14301 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14304 eval ac_cv_have_decl_
$gl_func=yes
14312 if test "$gl_cv_func_memchr_works" != yes; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14316 $as_echo_n "checking whether strstr works... " >&6; }
14317 if ${gl_cv_func_strstr_works_always+:} false
; then :
14318 $as_echo_n "(cached) " >&6
14320 if test "$cross_compiling" = yes; then :
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 #ifdef __GNU_LIBRARY__
14325 #include <features.h>
14326 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14327 || defined __UCLIBC__
14330 #elif defined __CYGWIN__
14331 #include <cygwin/version.h>
14332 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14342 gl_cv_func_strstr_works_always
="guessing yes"
14344 gl_cv_func_strstr_works_always
="guessing no"
14350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14353 #include <string.h> /* for strstr */
14354 #define P "_EF_BF_BD"
14355 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14356 #define NEEDLE P P P P P
14361 return !!strstr (HAYSTACK, NEEDLE);
14367 if ac_fn_c_try_run
"$LINENO"; then :
14368 gl_cv_func_strstr_works_always
=yes
14370 gl_cv_func_strstr_works_always
=no
14372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14379 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14380 case "$gl_cv_func_strstr_works_always" in
14389 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
14390 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
14396 cat >>confdefs.h
<<_ACEOF
14397 #define HAVE_DECL_STRTOK_R $ac_have_decl
14419 if test $gl_cv_have_include_next = yes; then
14420 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14423 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14424 if ${gl_cv_next_sys_types_h+:} false
; then :
14425 $as_echo_n "(cached) " >&6
14430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14432 #include <sys/types.h>
14435 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14436 *) gl_absname_cpp
="$ac_cpp" ;;
14441 gl_dirsep_regex
='[/\\]'
14444 gl_dirsep_regex
='\/'
14447 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14448 gl_header_literal_regex
=`echo 'sys/types.h' \
14449 | sed -e "$gl_make_literal_regex_sed"`
14450 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14451 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14457 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14458 sed -n "$gl_absolute_header_sed"`
14460 gl_header
=$gl_cv_absolute_sys_types_h
14461 gl_cv_next_sys_types_h
='"'$gl_header'"'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14466 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14468 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
14470 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14472 gl_next_as_first_directive
='<'sys
/types.h
'>'
14474 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14475 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
14477 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
14498 GNULIB_NANOSLEEP
=0;
14503 HAVE_DECL_LOCALTIME_R
=1;
14507 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14508 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14509 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14510 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14512 : ${GNULIB_GETTIMEOFDAY=0};
14514 REPLACE_LOCALTIME
=0;
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14525 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14526 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14527 $as_echo_n "(cached) " >&6
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14536 static struct timespec x; x.tv_sec = x.tv_nsec;
14541 if ac_fn_c_try_compile
"$LINENO"; then :
14542 gl_cv_sys_struct_timespec_in_time_h
=yes
14544 gl_cv_sys_struct_timespec_in_time_h
=no
14546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14549 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14551 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14552 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14553 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14554 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
14555 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14556 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14559 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14560 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14561 $as_echo_n "(cached) " >&6
14563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <sys/time.h>
14570 static struct timespec x; x.tv_sec = x.tv_nsec;
14575 if ac_fn_c_try_compile
"$LINENO"; then :
14576 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14578 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14583 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14584 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14585 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14588 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14589 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14590 $as_echo_n "(cached) " >&6
14592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594 #include <pthread.h>
14599 static struct timespec x; x.tv_sec = x.tv_nsec;
14604 if ac_fn_c_try_compile
"$LINENO"; then :
14605 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14607 gl_cv_sys_struct_timespec_in_pthread_h
=no
14609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14612 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14613 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14614 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14617 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14618 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
14619 $as_echo_n "(cached) " >&6
14621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 #include <unistd.h>
14628 static struct timespec x; x.tv_sec = x.tv_nsec;
14633 if ac_fn_c_try_compile
"$LINENO"; then :
14634 gl_cv_sys_struct_timespec_in_unistd_h
=yes
14636 gl_cv_sys_struct_timespec_in_unistd_h
=no
14638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14641 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14642 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14643 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
14664 if test $gl_cv_have_include_next = yes; then
14665 gl_cv_next_time_h
='<'time.h
'>'
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14668 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14669 if ${gl_cv_next_time_h+:} false
; then :
14670 $as_echo_n "(cached) " >&6
14675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14680 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14681 *) gl_absname_cpp
="$ac_cpp" ;;
14686 gl_dirsep_regex
='[/\\]'
14689 gl_dirsep_regex
='\/'
14692 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14693 gl_header_literal_regex
=`echo 'time.h' \
14694 | sed -e "$gl_make_literal_regex_sed"`
14695 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14696 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14702 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14703 sed -n "$gl_absolute_header_sed"`
14705 gl_header
=$gl_cv_absolute_time_h
14706 gl_cv_next_time_h
='"'$gl_header'"'
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14711 $as_echo "$gl_cv_next_time_h" >&6; }
14713 NEXT_TIME_H
=$gl_cv_next_time_h
14715 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14717 gl_next_as_first_directive
='<'time.h
'>'
14719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14720 gl_next_as_first_directive
=$gl_cv_next_time_h
14722 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14735 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14736 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
14742 cat >>confdefs.h
<<_ACEOF
14743 #define HAVE_DECL_UNSETENV $ac_have_decl
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14749 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14750 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
14751 $as_echo_n "(cached) " >&6
14753 gl_cv_header_wchar_h_correct_inline
=yes
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #define wcstod renamed_wcstod
14758 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14760 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14761 included before <wchar.h>. */
14762 #include <stddef.h>
14766 extern int zero (void);
14767 int main () { return zero(); }
14770 save_ac_compile
="$ac_compile"
14771 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14773 (eval $ac_compile) 2>&5
14775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776 test $ac_status = 0; }; then
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14780 #define wcstod renamed_wcstod
14781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14783 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14784 included before <wchar.h>. */
14785 #include <stddef.h>
14789 int zero (void) { return 0; }
14792 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14794 (eval $ac_compile) 2>&5
14796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14797 test $ac_status = 0; }; then
14798 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
14801 gl_cv_header_wchar_h_correct_inline
=no
14805 ac_compile
="$save_ac_compile"
14806 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14810 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14811 if test $gl_cv_header_wchar_h_correct_inline = no
; then
14812 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14813 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14814 C99 mode. You have four options:
14815 - Add the flag -fgnu89-inline to CC and reconfigure, or
14816 - Fix your include files, using parts of
14817 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14818 - Use a gcc version older than 4.3, or
14819 - Don't use the flags -std=c99 or -std=gnu99.
14820 Configuration aborted." "$LINENO" 5
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14825 $as_echo_n "checking for wint_t... " >&6; }
14826 if ${gt_cv_c_wint_t+:} false
; then :
14827 $as_echo_n "(cached) " >&6
14829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14832 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14834 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14835 before <wchar.h>. */
14836 #include <stddef.h>
14840 wint_t foo = (wchar_t)'\0';
14849 if ac_fn_c_try_compile
"$LINENO"; then :
14854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14857 $as_echo "$gt_cv_c_wint_t" >&6; }
14858 if test $gt_cv_c_wint_t = yes; then
14860 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14869 GNULIB_TOWCTRANS
=0;
14873 REPLACE_ISWBLANK
=0;
14882 GL_COND_LIBTOOL_TRUE
=
14883 GL_COND_LIBTOOL_FALSE
='#'
14885 GL_COND_LIBTOOL_TRUE
='#'
14886 GL_COND_LIBTOOL_FALSE
=
14889 gl_cond_libtool
=false
14892 gl_m4_base
='import/m4'
14902 gl_source_base
='import'
14905 if test $ac_cv_func_alloca_works = no
; then
14909 # Define an additional variable used in the Makefile substitution.
14910 if test $ac_cv_working_alloca_h = yes; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14912 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14913 if ${gl_cv_rpl_alloca+:} false
; then :
14914 $as_echo_n "(cached) " >&6
14917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14920 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
14927 gl_cv_rpl_alloca
=yes
14929 gl_cv_rpl_alloca
=no
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14936 $as_echo "$gl_cv_rpl_alloca" >&6; }
14937 if test $gl_cv_rpl_alloca = yes; then
14939 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14949 if test -n "$ALLOCA_H"; then
14950 GL_GENERATE_ALLOCA_H_TRUE
=
14951 GL_GENERATE_ALLOCA_H_FALSE
='#'
14953 GL_GENERATE_ALLOCA_H_TRUE
='#'
14954 GL_GENERATE_ALLOCA_H_FALSE
=
14968 if test $ac_cv_header_arpa_inet_h = yes; then
14989 if test $gl_cv_have_include_next = yes; then
14990 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
14993 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14994 if ${gl_cv_next_arpa_inet_h+:} false
; then :
14995 $as_echo_n "(cached) " >&6
14998 if test $ac_cv_header_arpa_inet_h = yes; then
15003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <arpa/inet.h>
15008 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15009 *) gl_absname_cpp
="$ac_cpp" ;;
15014 gl_dirsep_regex
='[/\\]'
15017 gl_dirsep_regex
='\/'
15020 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15021 gl_header_literal_regex
=`echo 'arpa/inet.h' \
15022 | sed -e "$gl_make_literal_regex_sed"`
15023 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15024 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15030 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15031 sed -n "$gl_absolute_header_sed"`
15033 gl_header
=$gl_cv_absolute_arpa_inet_h
15034 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
15036 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
15042 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
15044 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
15046 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15047 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15048 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
15050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15051 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
15053 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
15062 for gl_func
in inet_ntop inet_pton
; do
15063 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15065 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15066 if eval \
${$as_gl_Symbol+:} false
; then :
15067 $as_echo_n "(cached) " >&6
15069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15072 /* On some systems, this header is not self-consistent. */
15073 #if !(defined __GLIBC__ || defined __UCLIBC__)
15074 # include <sys/socket.h>
15077 # include <netdb.h>
15079 #include <arpa/inet.h>
15090 if ac_fn_c_try_compile
"$LINENO"; then :
15091 eval "$as_gl_Symbol=yes"
15093 eval "$as_gl_Symbol=no"
15095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15097 eval ac_res
=\$
$as_gl_Symbol
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15099 $as_echo "$ac_res" >&6; }
15100 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15101 cat >>confdefs.h
<<_ACEOF
15102 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15105 eval ac_cv_have_decl_
$gl_func=yes
15119 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
15124 if test $ac_cv_func_canonicalize_file_name = no
; then
15125 HAVE_CANONICALIZE_FILE_NAME
=0
15126 if test $ac_cv_func_realpath = no
; then
15129 case "$gl_cv_func_realpath_works" in
15131 *) REPLACE_REALPATH
=1 ;;
15135 case "$gl_cv_func_realpath_works" in
15139 REPLACE_CANONICALIZE_FILE_NAME
=1
15145 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
15154 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
15159 cat >>confdefs.h
<<_ACEOF
15160 #define GNULIB_CANONICALIZE_LGPL 1
15169 GNULIB_CANONICALIZE_FILE_NAME
=1
15175 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
15190 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
15205 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
15212 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
15213 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
15214 $as_echo_n "(cached) " >&6
15216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15219 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
15221 # include <unistd.h>
15223 #include <limits.h>
15224 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
15225 # include <sys/param.h>
15227 #if !defined PATH_MAX && defined MAXPATHLEN
15228 # define PATH_MAX MAXPATHLEN
15232 # define PATH_MAX 1024
15234 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15236 # define PATH_MAX 260
15240 have_arbitrary_file_name_length_limit
15243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15244 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
15245 gl_cv_have_arbitrary_file_name_length_limit
=yes
15247 gl_cv_have_arbitrary_file_name_length_limit
=no
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
15253 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
15255 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
15264 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
15270 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
15276 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15290 if test $ac_cv_header_sys_socket_h != yes; then
15291 for ac_header
in winsock2.h
15293 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15294 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
15295 cat >>confdefs.h
<<_ACEOF
15296 #define HAVE_WINSOCK2_H 1
15304 if test "$ac_cv_header_winsock2_h" = yes; then
15306 UNISTD_H_HAVE_WINSOCK2_H
=1
15307 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
15313 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
15318 if test $REPLACE_CLOSE = 0; then
15328 if test $ac_cv_func_fchdir = no
; then
15332 if test $HAVE_FCHDIR = 0; then
15338 if test $REPLACE_CLOSE = 1; then
15347 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
15361 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15368 for ac_func
in closedir
15370 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
15371 if test "x$ac_cv_func_closedir" = xyes
; then :
15372 cat >>confdefs.h
<<_ACEOF
15373 #define HAVE_CLOSEDIR 1
15379 if test $ac_cv_func_closedir = no
; then
15392 if test $ac_cv_func_fchdir = no
; then
15396 if test $HAVE_FCHDIR = 0; then
15397 if test $HAVE_CLOSEDIR = 1; then
15402 case $host_os,$HAVE_CLOSEDIR in
15404 REPLACE_CLOSEDIR
=1;;
15407 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
15416 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
15430 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
15435 if test "x$datarootdir" = x
; then
15436 datarootdir
='${datadir}'
15439 if test "x$docdir" = x
; then
15440 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
15443 if test "x$htmldir" = x
; then
15444 htmldir
='${docdir}'
15447 if test "x$dvidir" = x
; then
15451 if test "x$pdfdir" = x
; then
15455 if test "x$psdir" = x
; then
15459 if test "x$lispdir" = x
; then
15460 lispdir
='${datarootdir}/emacs/site-lisp'
15463 if test "x$localedir" = x
; then
15464 localedir
='${datarootdir}/locale'
15467 if test "x$runstatedir" = x
; then
15468 runstatedir
='${localstatedir}/run'
15472 pkglibexecdir
='${libexecdir}/${PACKAGE}'
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
15476 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
15477 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
15478 $as_echo_n "(cached) " >&6
15480 if test "$cross_compiling" = yes; then :
15482 # Guess yes on glibc systems with Linux kernel.
15483 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
15484 # If we don't know, assume the worst.
15485 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
15489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 #include <sys/types.h>
15492 #include <sys/stat.h>
15493 #include <dirent.h>
15498 DIR *dp = opendir (".");
15506 if (lstat (e->d_name, &st) != 0)
15508 if (e->d_ino != st.st_ino)
15517 if ac_fn_c_try_run
"$LINENO"; then :
15518 gl_cv_struct_dirent_d_ino
=yes
15520 gl_cv_struct_dirent_d_ino
=no
15522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15528 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15529 case "$gl_cv_struct_dirent_d_ino" in
15532 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15539 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15540 if ${gl_cv_struct_dirent_d_type+:} false
; then :
15541 $as_echo_n "(cached) " >&6
15543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h. */
15546 #include <sys/types.h>
15547 #include <dirent.h>
15552 struct dirent dp; dp.d_type = 0;
15557 if ac_fn_c_try_link
"$LINENO"; then :
15558 gl_cv_struct_dirent_d_type
=yes
15560 gl_cv_struct_dirent_d_type
=no
15562 rm -f core conftest.err conftest.
$ac_objext \
15563 conftest
$ac_exeext conftest.
$ac_ext
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15568 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15569 if test $gl_cv_struct_dirent_d_type = yes; then
15571 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15594 if test $gl_cv_have_include_next = yes; then
15595 gl_cv_next_dirent_h
='<'dirent.h
'>'
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15598 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15599 if ${gl_cv_next_dirent_h+:} false
; then :
15600 $as_echo_n "(cached) " >&6
15603 if test $ac_cv_header_dirent_h = yes; then
15608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 #include <dirent.h>
15613 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15614 *) gl_absname_cpp
="$ac_cpp" ;;
15619 gl_dirsep_regex
='[/\\]'
15622 gl_dirsep_regex
='\/'
15625 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15626 gl_header_literal_regex
=`echo 'dirent.h' \
15627 | sed -e "$gl_make_literal_regex_sed"`
15628 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15629 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15635 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15636 sed -n "$gl_absolute_header_sed"`
15638 gl_header
=$gl_cv_absolute_dirent_h
15639 gl_cv_next_dirent_h
='"'$gl_header'"'
15641 gl_cv_next_dirent_h
='<'dirent.h
'>'
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15647 $as_echo "$gl_cv_next_dirent_h" >&6; }
15649 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
15651 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15653 gl_next_as_first_directive
='<'dirent.h
'>'
15655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15656 gl_next_as_first_directive
=$gl_cv_next_dirent_h
15658 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
15663 if test $ac_cv_header_dirent_h = yes; then
15671 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
15672 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15674 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15675 if eval \
${$as_gl_Symbol+:} false
; then :
15676 $as_echo_n "(cached) " >&6
15678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #include <dirent.h>
15691 if ac_fn_c_try_compile
"$LINENO"; then :
15692 eval "$as_gl_Symbol=yes"
15694 eval "$as_gl_Symbol=no"
15696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15698 eval ac_res
=\$
$as_gl_Symbol
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15700 $as_echo "$ac_res" >&6; }
15701 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15702 cat >>confdefs.h
<<_ACEOF
15703 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15706 eval ac_cv_have_decl_
$gl_func=yes
15716 for ac_func
in dirfd
15718 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
15719 if test "x$ac_cv_func_dirfd" = xyes
; then :
15720 cat >>confdefs.h
<<_ACEOF
15721 #define HAVE_DIRFD 1
15727 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15728 #include <dirent.h>
15730 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
15736 cat >>confdefs.h
<<_ACEOF
15737 #define HAVE_DECL_DIRFD $ac_have_decl
15740 if test $ac_cv_have_decl_dirfd = no
; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15745 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15746 if ${gl_cv_func_dirfd_macro+:} false
; then :
15747 $as_echo_n "(cached) " >&6
15749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15752 #include <sys/types.h>
15753 #include <dirent.h>
15755 dirent_header_defines_dirfd
15758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
15760 gl_cv_func_dirfd_macro
=yes
15762 gl_cv_func_dirfd_macro
=no
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15768 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15770 # Use the replacement if we have no function or macro with that name,
15771 # or if OS/2 kLIBC whose dirfd() does not work.
15772 # Replace only if the system declares dirfd already.
15773 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15774 no
,no
,*,yes |
*,*,os2
*,yes)
15777 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15781 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
15782 ||
test $REPLACE_DIRFD = 1; then
15791 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15795 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15796 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
15797 $as_echo_n "(cached) " >&6
15800 dirfd_save_CFLAGS
=$CFLAGS
15801 for ac_expr
in d_fd dd_fd
; do
15803 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15807 #include <sys/types.h>
15808 #include <dirent.h>
15812 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15817 if ac_fn_c_try_compile
"$LINENO"; then :
15821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15822 CFLAGS
=$dirfd_save_CFLAGS
15823 test "$dir_fd_found" = yes && break
15825 test "$dir_fd_found" = yes || ac_expr
=no_such_member
15827 gl_cv_sys_dir_fd_member_name
=$ac_expr
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15832 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15833 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
15835 cat >>confdefs.h
<<_ACEOF
15836 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15854 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15865 $as_echo_n "checking whether // is distinct from /... " >&6; }
15866 if ${gl_cv_double_slash_root+:} false
; then :
15867 $as_echo_n "(cached) " >&6
15869 if test x
"$cross_compiling" = xyes
; then
15870 # When cross-compiling, there is no way to tell whether // is special
15871 # short of a list of hosts. However, the only known hosts to date
15872 # that have a distinct // are Apollo DomainOS (too old to port to),
15873 # Cygwin, and z/OS. If anyone knows of another system for which // has
15874 # special semantics and is distinct from /, please report it to
15875 # <bug-gnulib@gnu.org>.
15877 *-cygwin | i370-ibm-openedition
)
15878 gl_cv_double_slash_root
=yes ;;
15880 # Be optimistic and assume that / and // are the same when we
15882 gl_cv_double_slash_root
='unknown, assuming no' ;;
15885 set x
`ls -di / // 2>/dev/null`
15886 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
15887 gl_cv_double_slash_root
=no
15889 gl_cv_double_slash_root
=yes
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15894 $as_echo "$gl_cv_double_slash_root" >&6; }
15895 if test "$gl_cv_double_slash_root" = yes; then
15897 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15904 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15917 if test $ac_cv_func_fchdir = no
; then
15921 if test $HAVE_FCHDIR = 0; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15926 $as_echo_n "checking whether dup works... " >&6; }
15927 if ${gl_cv_func_dup_works+:} false
; then :
15928 $as_echo_n "(cached) " >&6
15930 if test "$cross_compiling" = yes; then :
15931 gl_cv_func_dup_works
='guessing yes'
15933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15935 #include <unistd.h>
15941 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15942 int fd = open (".", O_RDONLY);
15943 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15950 if ac_fn_c_try_run
"$LINENO"; then :
15951 gl_cv_func_dup_works
=yes
15953 gl_cv_func_dup_works
=no
15955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15962 $as_echo "$gl_cv_func_dup_works" >&6; }
15963 case "$gl_cv_func_dup_works" in
15970 if test $REPLACE_DUP = 1; then
15979 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
15994 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
16003 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
16006 if test $HAVE_DUP2 = 1; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
16008 $as_echo_n "checking whether dup2 works... " >&6; }
16009 if ${gl_cv_func_dup2_works+:} false
; then :
16010 $as_echo_n "(cached) " >&6
16012 if test "$cross_compiling" = yes; then :
16014 mingw
*) # on this platform, dup2 always returns 0 for success
16015 gl_cv_func_dup2_works
="guessing no" ;;
16016 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
16017 gl_cv_func_dup2_works
="guessing no" ;;
16019 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
16021 gl_cv_func_dup2_works
="guessing no" ;;
16022 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
16023 gl_cv_func_dup2_works
="guessing no" ;;
16024 *-android*) # implemented using dup3(), which fails if oldfd == newfd
16025 gl_cv_func_dup2_works
="guessing no" ;;
16026 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
16027 gl_cv_func_dup2_works
="guessing no" ;;
16028 *) gl_cv_func_dup2_works
="guessing yes" ;;
16031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16036 #include <limits.h>
16037 #include <sys/resource.h>
16038 #include <unistd.h>
16039 #ifndef RLIM_SAVED_CUR
16040 # define RLIM_SAVED_CUR RLIM_INFINITY
16042 #ifndef RLIM_SAVED_MAX
16043 # define RLIM_SAVED_MAX RLIM_INFINITY
16050 int bad_fd = INT_MAX;
16051 struct rlimit rlim;
16052 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16053 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16054 && rlim.rlim_cur != RLIM_INFINITY
16055 && rlim.rlim_cur != RLIM_SAVED_MAX
16056 && rlim.rlim_cur != RLIM_SAVED_CUR)
16057 bad_fd = rlim.rlim_cur;
16059 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
16062 if (dup2 (1, 1) != 1)
16065 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
16069 if (dup2 (0, 0) != -1)
16071 /* Many gnulib modules require POSIX conformance of EBADF. */
16072 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
16074 /* Flush out some cygwin core dumps. */
16075 if (dup2 (2, -1) != -1 || errno != EBADF)
16079 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
16081 int fd = open (".", O_RDONLY);
16084 else if (dup2 (fd, fd + 1) == -1)
16095 if ac_fn_c_try_run
"$LINENO"; then :
16096 gl_cv_func_dup2_works
=yes
16098 gl_cv_func_dup2_works
=no
16100 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16101 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
16107 $as_echo "$gl_cv_func_dup2_works" >&6; }
16108 case "$gl_cv_func_dup2_works" in
16112 for ac_func
in setdtablesize
16114 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
16115 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
16116 cat >>confdefs.h
<<_ACEOF
16117 #define HAVE_SETDTABLESIZE 1
16136 if test $ac_cv_func_fchdir = no
; then
16140 if test $HAVE_FCHDIR = 0; then
16141 if test $HAVE_DUP2 = 1; then
16147 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
16156 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
16171 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
16187 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
16194 $as_echo_n "checking for error_at_line... " >&6; }
16195 if ${ac_cv_lib_error_at_line+:} false
; then :
16196 $as_echo_n "(cached) " >&6
16198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16204 error_at_line (0, 0, "", 0, "an error occurred");
16209 if ac_fn_c_try_link
"$LINENO"; then :
16210 ac_cv_lib_error_at_line
=yes
16212 ac_cv_lib_error_at_line
=no
16214 rm -f core conftest.err conftest.
$ac_objext \
16215 conftest
$ac_exeext conftest.
$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
16218 $as_echo "$ac_cv_lib_error_at_line" >&6; }
16220 if test $ac_cv_lib_error_at_line = no
; then
16229 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
16238 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
16242 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
16256 if test $ac_cv_have_decl_fchdir = no
; then
16261 if test $HAVE_FCHDIR = 0; then
16270 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
16274 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
16277 $as_echo_n "checking whether open can visit directories... " >&6; }
16278 if ${gl_cv_func_open_directory_works+:} false
; then :
16279 $as_echo_n "(cached) " >&6
16281 if test "$cross_compiling" = yes; then :
16283 # Guess yes on glibc systems.
16284 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
16285 # If we don't know, assume the worst.
16286 *) gl_cv_func_open_directory_works
="guessing no" ;;
16290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16297 return open(".", O_RDONLY) < 0;
16302 if ac_fn_c_try_run
"$LINENO"; then :
16303 gl_cv_func_open_directory_works
=yes
16305 gl_cv_func_open_directory_works
=no
16307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
16313 $as_echo "$gl_cv_func_open_directory_works" >&6; }
16314 case "$gl_cv_func_open_directory_works" in
16318 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
16335 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
16350 if test $ac_cv_func_fcntl = no
; then
16360 if test $ac_cv_func_fcntl = no
; then
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16368 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16369 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
16370 $as_echo_n "(cached) " >&6
16372 if test "$cross_compiling" = yes; then :
16374 aix
* | cygwin
* | haiku
*)
16375 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
16376 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
16379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16383 #include <limits.h>
16384 #include <sys/resource.h>
16385 #include <unistd.h>
16386 #ifndef RLIM_SAVED_CUR
16387 # define RLIM_SAVED_CUR RLIM_INFINITY
16389 #ifndef RLIM_SAVED_MAX
16390 # define RLIM_SAVED_MAX RLIM_INFINITY
16397 int bad_fd = INT_MAX;
16398 struct rlimit rlim;
16399 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16400 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16401 && rlim.rlim_cur != RLIM_INFINITY
16402 && rlim.rlim_cur != RLIM_SAVED_MAX
16403 && rlim.rlim_cur != RLIM_SAVED_CUR)
16404 bad_fd = rlim.rlim_cur;
16405 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16406 if (errno != EINVAL) result |= 2;
16407 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16408 if (errno != EINVAL) result |= 8;
16409 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16412 fd = open (".", O_RDONLY);
16415 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16425 if ac_fn_c_try_run
"$LINENO"; then :
16426 gl_cv_func_fcntl_f_dupfd_works
=yes
16428 gl_cv_func_fcntl_f_dupfd_works
=no
16430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16436 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16437 case $gl_cv_func_fcntl_f_dupfd_works in
16448 if test $ac_cv_func_fcntl = no
; then
16455 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16460 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16461 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
16462 $as_echo_n "(cached) " >&6
16464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16468 #ifndef F_DUPFD_CLOEXEC
16480 if ac_fn_c_try_compile
"$LINENO"; then :
16481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16485 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16486 it to support the semantics on older kernels that failed with EINVAL. */
16498 if ac_fn_c_try_compile
"$LINENO"; then :
16499 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
16501 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
16503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16505 gl_cv_func_fcntl_f_dupfd_cloexec
=no
16507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16510 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16511 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
16521 if test $ac_cv_func_fcntl = no
; then
16539 if test $ac_cv_func_fchdir = no
; then
16543 if test $HAVE_FCHDIR = 0; then
16553 if test $ac_cv_func_fcntl = no
; then
16562 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
16571 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
16585 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16600 if test $gl_cv_have_include_next = yes; then
16601 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16604 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16605 if ${gl_cv_next_fcntl_h+:} false
; then :
16606 $as_echo_n "(cached) " >&6
16611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16616 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16617 *) gl_absname_cpp
="$ac_cpp" ;;
16622 gl_dirsep_regex
='[/\\]'
16625 gl_dirsep_regex
='\/'
16628 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16629 gl_header_literal_regex
=`echo 'fcntl.h' \
16630 | sed -e "$gl_make_literal_regex_sed"`
16631 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16632 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16638 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16639 sed -n "$gl_absolute_header_sed"`
16641 gl_header
=$gl_cv_absolute_fcntl_h
16642 gl_cv_next_fcntl_h
='"'$gl_header'"'
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16647 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16649 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
16651 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16653 gl_next_as_first_directive
='<'fcntl.h
'>'
16655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16656 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
16658 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
16669 for gl_func
in fcntl openat
; do
16670 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16672 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16673 if eval \
${$as_gl_Symbol+:} false
; then :
16674 $as_echo_n "(cached) " >&6
16676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16689 if ac_fn_c_try_compile
"$LINENO"; then :
16690 eval "$as_gl_Symbol=yes"
16692 eval "$as_gl_Symbol=no"
16694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16696 eval ac_res
=\$
$as_gl_Symbol
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16698 $as_echo "$ac_res" >&6; }
16699 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16700 cat >>confdefs.h
<<_ACEOF
16701 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16704 eval ac_cv_have_decl_
$gl_func=yes
16714 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16715 #include <dirent.h>
16718 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
16724 cat >>confdefs.h
<<_ACEOF
16725 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16727 if test $ac_have_decl = 1; then :
16730 HAVE_DECL_FDOPENDIR
=0
16740 if test $ac_cv_func_fdopendir = no
; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16744 $as_echo_n "checking whether fdopendir works... " >&6; }
16745 if ${gl_cv_func_fdopendir_works+:} false
; then :
16746 $as_echo_n "(cached) " >&6
16748 if test "$cross_compiling" = yes; then :
16750 # Guess yes on glibc systems.
16751 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
16752 # If we don't know, assume the worst.
16753 *) gl_cv_func_fdopendir_works
="guessing no" ;;
16757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16760 #include <dirent.h>
16762 #include <unistd.h>
16763 #if !HAVE_DECL_FDOPENDIR
16765 # ifdef __cplusplus
16768 DIR *fdopendir (int);
16775 int fd = open ("conftest.c", O_RDONLY);
16776 if (fd < 0) result |= 1;
16777 if (fdopendir (fd)) result |= 2;
16778 if (close (fd)) result |= 4;
16784 if ac_fn_c_try_run
"$LINENO"; then :
16785 gl_cv_func_fdopendir_works
=yes
16787 gl_cv_func_fdopendir_works
=no
16789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16795 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16796 case "$gl_cv_func_fdopendir_works" in
16799 REPLACE_FDOPENDIR
=1
16804 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
16813 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
16827 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16833 cat >>confdefs.h
<<_ACEOF
16834 #define GNULIB_FDOPENDIR 1
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16849 $as_echo_n "checking for flexible array member... " >&6; }
16850 if ${ac_cv_c_flexmember+:} false
; then :
16851 $as_echo_n "(cached) " >&6
16853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 #include <stdlib.h>
16857 #include <stddef.h>
16858 struct s { int n; double d[]; };
16862 int m = getchar ();
16863 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16864 nbytes += sizeof (struct s) - 1;
16865 nbytes -= nbytes % sizeof (struct s);
16866 struct s *p = malloc (nbytes);
16868 return p->d != (double *) NULL;
16873 if ac_fn_c_try_compile
"$LINENO"; then :
16874 ac_cv_c_flexmember
=yes
16876 ac_cv_c_flexmember
=no
16878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16881 $as_echo "$ac_cv_c_flexmember" >&6; }
16882 if test $ac_cv_c_flexmember = yes; then
16884 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16887 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16895 REPLACE_FLOAT_LDBL
=0
16897 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
16901 case "$host_cpu" in
16906 # On x86_64 systems, the C compiler may still be generating
16908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16915 $EGREP "yes" >/dev
/null
2>&1; then :
16926 case "$host_cpu" in
16934 aix
* | freebsd
* | linux
*)
16935 if test -n "$FLOAT_H"; then
16936 REPLACE_FLOAT_LDBL
=1
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16943 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16944 if ${gl_cv_func_itold_works+:} false
; then :
16945 $as_echo_n "(cached) " >&6
16948 if test "$cross_compiling" = yes; then :
16951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h. */
16953 #if defined __LP64__ || defined __arch64__
16957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16958 $EGREP "yes" >/dev
/null
2>&1; then :
16959 gl_cv_func_itold_works
="guessing no"
16961 gl_cv_func_itold_works
="guessing yes"
16966 *) gl_cv_func_itold_works
="guessing yes" ;;
16970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16974 volatile long double ld;
16983 if ac_fn_c_try_run
"$LINENO"; then :
16984 gl_cv_func_itold_works
=yes
16986 gl_cv_func_itold_works
=no
16988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16995 $as_echo "$gl_cv_func_itold_works" >&6; }
16996 case "$gl_cv_func_itold_works" in
17003 if test -n "$FLOAT_H"; then
17012 if test $gl_cv_have_include_next = yes; then
17013 gl_cv_next_float_h
='<'float.h
'>'
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17016 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17017 if ${gl_cv_next_float_h+:} false
; then :
17018 $as_echo_n "(cached) " >&6
17023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17028 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17029 *) gl_absname_cpp
="$ac_cpp" ;;
17034 gl_dirsep_regex
='[/\\]'
17037 gl_dirsep_regex
='\/'
17040 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17041 gl_header_literal_regex
=`echo 'float.h' \
17042 | sed -e "$gl_make_literal_regex_sed"`
17043 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17044 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17050 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17051 sed -n "$gl_absolute_header_sed"`
17053 gl_header
=$gl_cv_absolute_float_h
17054 gl_cv_next_float_h
='"'$gl_header'"'
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17059 $as_echo "$gl_cv_next_float_h" >&6; }
17061 NEXT_FLOAT_H
=$gl_cv_next_float_h
17063 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17065 gl_next_as_first_directive
='<'float.h
'>'
17067 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17068 gl_next_as_first_directive
=$gl_cv_next_float_h
17070 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
17077 if test -n "$FLOAT_H"; then
17078 GL_GENERATE_FLOAT_H_TRUE
=
17079 GL_GENERATE_FLOAT_H_FALSE
='#'
17081 GL_GENERATE_FLOAT_H_TRUE
='#'
17082 GL_GENERATE_FLOAT_H_FALSE
=
17087 if test $REPLACE_FLOAT_LDBL = 1; then
17096 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
17099 if test $REPLACE_ITOLD = 1; then
17108 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
17117 gl_fnmatch_required_lowercase
=`
17118 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17120 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17122 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17123 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
17124 $as_echo_n "(cached) " >&6
17126 if test $gl_fnmatch_required = GNU
; then
17127 gl_fnmatch_gnu_start
=
17128 gl_fnmatch_gnu_end
=
17130 gl_fnmatch_gnu_start
='#if 0'
17131 gl_fnmatch_gnu_end
='#endif'
17133 if test "$cross_compiling" = yes; then :
17134 eval "$gl_fnmatch_cache_var=\"guessing no\""
17136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 #include <fnmatch.h>
17140 y (char const *pattern, char const *string, int flags)
17142 return fnmatch (pattern, string, flags) == 0;
17145 n (char const *pattern, char const *string, int flags)
17147 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17153 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17154 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17155 static char const A_1[] = { 'A' - 1, 0 };
17156 static char const A01[] = { 'A' + 1, 0 };
17157 static char const a_1[] = { 'a' - 1, 0 };
17158 static char const a01[] = { 'a' + 1, 0 };
17159 static char const bs_1[] = { '\\\\' - 1, 0 };
17160 static char const bs01[] = { '\\\\' + 1, 0 };
17162 if (!n ("a*", "", 0))
17164 if (!y ("a*", "abc", 0))
17166 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17168 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17170 if (!y ("a\\\\bc", "abc", 0))
17172 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17174 if (!y ("*x", ".x", 0))
17176 if (!n ("*x", ".x", FNM_PERIOD))
17178 if (!y (Apat, "\\\\", 0))
17180 if (!y (Apat, "A", 0))
17182 if (!y (apat, "\\\\", 0))
17184 if (!y (apat, "a", 0))
17186 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17188 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17190 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17192 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17194 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17196 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17198 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17200 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17202 $gl_fnmatch_gnu_start
17203 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17205 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17207 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17209 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17211 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17213 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17215 $gl_fnmatch_gnu_end
17222 if ac_fn_c_try_run
"$LINENO"; then :
17223 eval "$gl_fnmatch_cache_var=yes"
17225 eval "$gl_fnmatch_cache_var=no"
17227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17233 eval ac_res
=\$
$gl_fnmatch_cache_var
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17235 $as_echo "$ac_res" >&6; }
17236 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17237 if test "$gl_fnmatch_result" = yes; then
17238 rm -f "$gl_source_base/fnmatch.h"
17240 FNMATCH_H
=fnmatch.h
17243 if test -n "$FNMATCH_H"; then
17244 GL_GENERATE_FNMATCH_H_TRUE
=
17245 GL_GENERATE_FNMATCH_H_FALSE
='#'
17247 GL_GENERATE_FNMATCH_H_TRUE
='#'
17248 GL_GENERATE_FNMATCH_H_FALSE
=
17252 if test -n "$FNMATCH_H"; then
17261 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
17265 cat >>confdefs.h
<<_ACEOF
17266 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17270 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17272 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17278 cat >>confdefs.h
<<_ACEOF
17279 #define HAVE_DECL_ISBLANK $ac_have_decl
17324 if test -n "$FNMATCH_H"; then
17333 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
17337 cat >>confdefs.h
<<_ACEOF
17338 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17342 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17344 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17350 cat >>confdefs.h
<<_ACEOF
17351 #define HAVE_DECL_ISBLANK $ac_have_decl
17395 if test $gl_cv_func_frexp_no_libm = no
; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
17397 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
17398 if ${gl_cv_func_frexp_in_libm+:} false
; then :
17399 $as_echo_n "(cached) " >&6
17404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17411 int e; return frexp (x, &e) > 0;
17416 if ac_fn_c_try_link
"$LINENO"; then :
17417 gl_cv_func_frexp_in_libm
=yes
17419 gl_cv_func_frexp_in_libm
=no
17421 rm -f core conftest.err conftest.
$ac_objext \
17422 conftest
$ac_exeext conftest.
$ac_ext
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
17427 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
17428 if test $gl_cv_func_frexp_in_libm = yes; then
17432 if test $gl_cv_func_frexp_no_libm = yes \
17433 ||
test $gl_cv_func_frexp_in_libm = yes; then
17435 LIBS
="$LIBS $FREXP_LIBM"
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
17446 $as_echo_n "checking whether frexp works... " >&6; }
17447 if ${gl_cv_func_frexp_works+:} false
; then :
17448 $as_echo_n "(cached) " >&6
17451 if test "$cross_compiling" = yes; then :
17453 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
17454 *) gl_cv_func_frexp_works
="guessing yes";;
17458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17463 #include <string.h>
17464 #if HAVE_DECL_ALARM
17465 # include <signal.h>
17466 # include <unistd.h>
17468 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17469 ICC 10.0 has a bug when optimizing the expression -zero.
17470 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
17471 to PowerPC on Mac OS X 10.5. */
17472 #if defined __hpux || defined __sgi || defined __ICC
17474 compute_minus_zero (void)
17476 return -DBL_MIN * DBL_MIN;
17478 # define minus_zero compute_minus_zero ()
17480 double minus_zero = -0.0;
17488 #if HAVE_DECL_ALARM
17489 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
17490 number. Let the test fail in this case. */
17491 signal (SIGALRM, SIG_DFL);
17494 /* Test on denormalized numbers. */
17495 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
17500 double y = frexp (x, &exp);
17501 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
17502 On NetBSD: y = 0.75. Correct: y = 0.5. */
17506 /* Test on infinite numbers. */
17510 double y = frexp (x, &exp);
17514 /* Test on negative zero. */
17518 double y = frexp (x, &exp);
17519 if (memcmp (&y, &x, sizeof x))
17525 if ac_fn_c_try_run
"$LINENO"; then :
17526 gl_cv_func_frexp_works
=yes
17528 gl_cv_func_frexp_works
=no
17530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
17537 $as_echo "$gl_cv_func_frexp_works" >&6; }
17540 case "$gl_cv_func_frexp_works" in
17541 *yes) gl_func_frexp
=yes ;;
17542 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
17547 if test $gl_func_frexp = yes; then
17549 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
17554 if test $gl_func_frexp != yes; then
17563 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
17577 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
17587 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
17589 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
17597 if test $HAVE_DECL_FREXPL = 1; then
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
17600 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
17601 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
17602 $as_echo_n "(cached) " >&6
17605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17612 int e; return frexpl (x, &e) > 0;
17617 if ac_fn_c_try_link
"$LINENO"; then :
17618 gl_cv_func_frexpl_no_libm
=yes
17620 gl_cv_func_frexpl_no_libm
=no
17622 rm -f core conftest.err conftest.
$ac_objext \
17623 conftest
$ac_exeext conftest.
$ac_ext
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
17627 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
17629 if test $gl_cv_func_frexpl_no_libm = no
; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
17631 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
17632 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
17633 $as_echo_n "(cached) " >&6
17638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17645 int e; return frexpl (x, &e) > 0;
17650 if ac_fn_c_try_link
"$LINENO"; then :
17651 gl_cv_func_frexpl_in_libm
=yes
17653 gl_cv_func_frexpl_in_libm
=no
17655 rm -f core conftest.err conftest.
$ac_objext \
17656 conftest
$ac_exeext conftest.
$ac_ext
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
17661 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
17662 if test $gl_cv_func_frexpl_in_libm = yes; then
17666 if test $gl_cv_func_frexpl_no_libm = yes \
17667 ||
test $gl_cv_func_frexpl_in_libm = yes; then
17669 LIBS
="$LIBS $FREXPL_LIBM"
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
17673 $as_echo_n "checking whether frexpl works... " >&6; }
17674 if ${gl_cv_func_frexpl_works+:} false
; then :
17675 $as_echo_n "(cached) " >&6
17678 if test "$cross_compiling" = yes; then :
17681 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
17682 gl_cv_func_frexpl_works
="guessing no";;
17683 *) gl_cv_func_frexpl_works
="guessing yes";;
17687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17692 /* Override the values of <float.h>, like done in float.in.h. */
17693 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
17694 # undef LDBL_MIN_EXP
17695 # define LDBL_MIN_EXP (-16381)
17697 #if defined __i386__ && defined __FreeBSD__
17698 # undef LDBL_MIN_EXP
17699 # define LDBL_MIN_EXP (-16381)
17701 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
17702 # undef LDBL_MIN_EXP
17703 # define LDBL_MIN_EXP DBL_MIN_EXP
17705 #if defined __sgi && (LDBL_MANT_DIG >= 106)
17706 # if defined __GNUC__
17707 # undef LDBL_MIN_EXP
17708 # define LDBL_MIN_EXP DBL_MIN_EXP
17715 long double frexpl (long double, int *);
17719 volatile long double x;
17720 /* Test on finite numbers that fails on AIX 5.1. */
17728 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
17729 function returns an invalid (incorrectly normalized) value: it returns
17730 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
17731 but the correct result is
17732 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
17736 long double y = frexpl (x, &exp);
17737 if (!(exp == 1 && y == 0.505L))
17740 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
17741 LDBL_MAX_EXP = 16384.
17742 In the loop end test, we test x against Infinity, rather than comparing
17743 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
17746 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
17757 /* Test on denormalized numbers. */
17760 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
17765 long double y = frexpl (x, &exp);
17766 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
17767 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
17768 if (exp != LDBL_MIN_EXP - 1)
17772 /* Test on infinite numbers. */
17776 long double y = frexpl (x, &exp);
17783 if ac_fn_c_try_run
"$LINENO"; then :
17784 gl_cv_func_frexpl_works
=yes
17786 gl_cv_func_frexpl_works
=no
17788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17789 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
17795 $as_echo "$gl_cv_func_frexpl_works" >&6; }
17798 case "$gl_cv_func_frexpl_works" in
17799 *yes) gl_func_frexpl
=yes ;;
17800 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
17805 if test $gl_func_frexpl = yes; then
17807 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
17811 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17812 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
17814 FREXPL_LIBM
="$FREXP_LIBM"
17821 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17830 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
17844 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
17852 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17857 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17871 if test $ac_cv_func_fchdir = no
; then
17875 if test $HAVE_FCHDIR = 0; then
17876 case "$gl_cv_func_open_directory_works" in
17885 if test $REPLACE_FSTAT = 1; then
17894 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
17909 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17925 if test $ac_cv_func_fstatat = no
; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17929 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17930 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
17931 $as_echo_n "(cached) " >&6
17933 if test "$cross_compiling" = yes; then :
17935 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
17936 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
17940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17944 #include <sys/stat.h>
17949 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17953 if ac_fn_c_try_run
"$LINENO"; then :
17954 gl_cv_func_fstatat_zero_flag
=yes
17956 gl_cv_func_fstatat_zero_flag
=no
17958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17965 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17967 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17969 *) REPLACE_FSTATAT
=1
17970 case $gl_cv_func_fstatat_zero_flag in
17973 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17981 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
17990 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
18004 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
18016 gl_cv_func_getcwd_path_max
=yes
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
18037 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
18038 if ${gl_cv_func_getcwd_path_max+:} false
; then :
18039 $as_echo_n "(cached) " >&6
18041 # Arrange for deletion of the temporary directory this test creates.
18042 ac_clean_files
="$ac_clean_files confdir3"
18043 if test "$cross_compiling" = yes; then :
18044 # Cross-compilation guesses:
18046 aix
*) # On AIX, it has the AIX bug.
18047 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
18048 gnu
*) # On Hurd, it is 'yes'.
18049 gl_cv_func_getcwd_path_max
=yes ;;
18050 linux
* | kfreebsd
*)
18051 # On older Linux+glibc it's 'no, but it is partly working',
18052 # on newer Linux+glibc it's 'yes'.
18053 # On Linux+musl libc, it's 'no, but it is partly working'.
18054 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
18055 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
18056 *) # If we don't know, assume the worst.
18057 gl_cv_func_getcwd_path_max
=no
;;
18061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18065 #include <stdlib.h>
18067 # include <unistd.h>
18069 # include <direct.h>
18071 #include <string.h>
18072 #include <limits.h>
18073 #include <sys/stat.h>
18074 #include <sys/types.h>
18078 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
18080 # include <unistd.h>
18082 #include <limits.h>
18083 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
18084 # include <sys/param.h>
18086 #if !defined PATH_MAX && defined MAXPATHLEN
18087 # define PATH_MAX MAXPATHLEN
18091 # define PATH_MAX 1024
18093 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18095 # define PATH_MAX 260
18100 # define AT_FDCWD 0
18102 #ifdef ENAMETOOLONG
18103 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
18105 # define is_ENAMETOOLONG(x) 0
18108 /* Use the getcwd function, not any macro. */
18111 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18115 # define S_IRWXU 0700
18118 /* The length of this name must be 8. */
18119 #define DIR_NAME "confdir3"
18120 #define DIR_NAME_LEN 8
18121 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
18123 /* The length of "../". */
18124 #define DOTDOTSLASH_LEN 3
18126 /* Leftover bytes in the buffer, to work around library or OS bugs. */
18127 #define BUF_SLOP 20
18133 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
18134 at least not on a local file system. And if we were to start worrying
18135 about remote file systems, we'd have to enable the wrapper function
18136 all of the time, just to be safe. That's not worth the cost. */
18138 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
18139 - DIR_NAME_SIZE - BUF_SLOP) \
18141 /* FIXME: Assuming there's a system for which this is true,
18142 this should be done in a compile test. */
18145 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
18146 + DIR_NAME_SIZE + BUF_SLOP];
18147 char *cwd = getcwd (buf, PATH_MAX);
18148 size_t initial_cwd_len;
18151 size_t n_chdirs = 0;
18156 cwd_len = initial_cwd_len = strlen (cwd);
18160 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
18163 cwd_len += DIR_NAME_SIZE;
18164 /* If mkdir or chdir fails, it could be that this system cannot create
18165 any file with an absolute name longer than PATH_MAX, such as cygwin.
18166 If so, leave fail as 0, because the current working directory can't
18167 be too long for getcwd if it can't even be created. For other
18168 errors, be pessimistic and consider that as a failure, too. */
18169 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
18171 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18176 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
18180 c = getcwd (buf, PATH_MAX);
18181 if (!c && errno == ENOENT)
18191 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18197 /* Our replacement needs to be able to stat() long ../../paths,
18198 so generate a path larger than PATH_MAX to check,
18199 avoiding the replacement if we can't stat(). */
18200 c = getcwd (buf, cwd_len + 1);
18201 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
18208 if (dotdot_max <= cwd_len - initial_cwd_len)
18210 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
18212 c = getcwd (buf, cwd_len + 1);
18215 if (! (errno == ERANGE || errno == ENOENT
18216 || is_ENAMETOOLONG (errno)))
18221 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
18229 if (c && strlen (c) != cwd_len)
18237 /* Leaving behind such a deep directory is not polite.
18238 So clean up here, right away, even though the driving
18239 shell script would also clean up. */
18243 /* Try rmdir first, in case the chdir failed. */
18245 for (i = 0; i <= n_chdirs; i++)
18247 if (chdir ("..") < 0)
18249 if (rmdir (DIR_NAME) != 0)
18259 if ac_fn_c_try_run
"$LINENO"; then :
18260 gl_cv_func_getcwd_path_max
=yes
18263 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
18264 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
18265 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
18266 *) gl_cv_func_getcwd_path_max
=no
;;
18269 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18270 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
18276 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
18278 case "$gl_cv_func_getcwd_null" in
18296 for ac_func
in getpagesize
18298 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18299 if test "x$ac_cv_func_getpagesize" = xyes
; then :
18300 cat >>confdefs.h
<<_ACEOF
18301 #define HAVE_GETPAGESIZE 1
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
18308 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
18309 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
18310 $as_echo_n "(cached) " >&6
18312 # Remove any remnants of a previous test.
18313 rm -rf confdir-14B---
18314 # Arrange for deletion of the temporary directory this test creates.
18315 ac_clean_files
="$ac_clean_files confdir-14B---"
18316 if test "$cross_compiling" = yes; then :
18317 gl_cv_func_getcwd_abort_bug
=yes
18319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18323 #include <stdlib.h>
18325 # include <unistd.h>
18326 #else /* on Windows with MSVC */
18327 # include <direct.h>
18329 #include <string.h>
18330 #include <sys/stat.h>
18333 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
18335 # include <unistd.h>
18337 #include <limits.h>
18338 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
18339 # include <sys/param.h>
18341 #if !defined PATH_MAX && defined MAXPATHLEN
18342 # define PATH_MAX MAXPATHLEN
18346 # define PATH_MAX 1024
18348 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18350 # define PATH_MAX 260
18354 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18358 # define S_IRWXU 0700
18361 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18362 #if ! HAVE_GETPAGESIZE
18363 # define getpagesize() 0
18366 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18367 the 16kB pagesize on ia64 linux. Those conditions make the code below
18368 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18369 #define TARGET_LEN (5 * 1024)
18375 size_t initial_cwd_len;
18378 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18379 this relatively expensive and invasive test if that's not true. */
18381 int bug_possible = PATH_MAX < getpagesize ();
18383 int bug_possible = 0;
18385 if (! bug_possible)
18388 cwd = getcwd (NULL, 0);
18392 initial_cwd_len = strlen (cwd);
18397 static char const dir_name[] = "confdir-14B---";
18398 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18399 / sizeof dir_name);
18401 for (d = 0; d < desired_depth; d++)
18403 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18405 if (! (errno == ERANGE || errno == ENAMETOOLONG
18406 || errno == ENOENT))
18407 fail = 3; /* Unable to construct deep hierarchy. */
18412 /* If libc has the bug in question, this invocation of getcwd
18413 results in a failed assertion. */
18414 cwd = getcwd (NULL, 0);
18416 fail = 4; /* getcwd didn't assert, but it failed for a long name
18417 where the answer could have been learned. */
18420 /* Call rmdir first, in case the above chdir failed. */
18424 if (chdir ("..") < 0)
18437 if ac_fn_c_try_run
"$LINENO"; then :
18438 gl_cv_func_getcwd_abort_bug
=no
18441 if test $ret -ge 128 ||
test $ret = 4; then
18442 gl_cv_func_getcwd_abort_bug
=yes
18444 gl_cv_func_getcwd_abort_bug
=no
18447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18454 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18455 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18463 case "$gl_cv_func_getcwd_path_max" in
18464 "no"|
"no, it has the AIX bug") ;;
18467 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18471 case "$gl_cv_func_getcwd_path_max" in
18472 "no, but it is partly working")
18474 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18477 "yes, but with shorter paths")
18479 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18484 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
18485 ||
test $gl_cv_func_getcwd_posix_signature != yes \
18486 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
18487 ||
test $gl_abort_bug = yes; then
18491 if test $REPLACE_GETCWD = 1; then
18500 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
18510 cat >>confdefs.h
<<_ACEOF
18511 #define GNULIB_GETCWD 1
18526 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18535 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18542 if test $REPLACE_GETCWD = 1; then
18551 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18565 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18586 if test $ac_cv_func_getdtablesize = yes &&
18587 test $ac_cv_have_decl_getdtablesize = yes; then
18588 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18589 # up to an unchangeable hard limit; all other platforms correctly
18590 # require setrlimit before getdtablesize() can report a larger value.
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18592 $as_echo_n "checking whether getdtablesize works... " >&6; }
18593 if ${gl_cv_func_getdtablesize_works+:} false
; then :
18594 $as_echo_n "(cached) " >&6
18596 if test "$cross_compiling" = yes; then :
18598 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
18599 gl_cv_func_getdtablesize_works
="guessing no" ;;
18600 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
18603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18606 #include <unistd.h>
18610 int size = getdtablesize();
18611 if (dup2 (0, getdtablesize()) != -1)
18613 if (size != getdtablesize())
18620 if ac_fn_c_try_run
"$LINENO"; then :
18621 gl_cv_func_getdtablesize_works
=yes
18623 gl_cv_func_getdtablesize_works
=no
18625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18632 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18633 case "$gl_cv_func_getdtablesize_works" in
18635 *) REPLACE_GETDTABLESIZE
=1 ;;
18638 HAVE_GETDTABLESIZE
=0
18641 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
18650 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
18659 GNULIB_GETDTABLESIZE
=1
18665 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18681 if test $ac_cv_have_decl_getlogin_r = no
; then
18682 HAVE_DECL_GETLOGIN_R
=0
18692 if test $ac_cv_func_getlogin_r = no
; then
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18698 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18699 if ${gl_cv_func_getlogin_r_works+:} false
; then :
18700 $as_echo_n "(cached) " >&6
18704 # Guess no on OSF/1.
18705 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
18706 # Guess yes otherwise.
18707 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
18709 if test "$cross_compiling" = yes; then :
18712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18715 #include <stddef.h>
18716 #include <unistd.h>
18717 #if !HAVE_DECL_GETLOGIN_R
18719 # ifdef __cplusplus
18722 int getlogin_r (char *, size_t);
18730 if (getlogin_r (buf, 0) == 0)
18732 if (getlogin_r (buf, 1) == 0)
18737 if ac_fn_c_try_run
"$LINENO"; then :
18738 gl_cv_func_getlogin_r_works
=yes
18741 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
18745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18746 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18752 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18753 case "$gl_cv_func_getlogin_r_works" in
18755 *) REPLACE_GETLOGIN_R
=1 ;;
18759 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
18768 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
18785 GNULIB_GETLOGIN_R
=1
18791 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18808 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18810 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
18816 cat >>confdefs.h
<<_ACEOF
18817 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18819 if test $ac_have_decl = 1; then :
18823 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18825 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
18831 cat >>confdefs.h
<<_ACEOF
18832 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18834 if test $ac_have_decl = 1; then :
18838 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18840 if test "x$ac_cv_have_decl___argv" = xyes
; then :
18846 cat >>confdefs.h
<<_ACEOF
18847 #define HAVE_DECL___ARGV $ac_have_decl
18849 if test $ac_have_decl = 1; then :
18854 # Incur the cost of this test only if none of the above worked.
18855 if test $ac_found = 0; then
18856 # On OpenBSD 5.1, using the global __progname variable appears to be
18857 # the only way to implement getprogname.
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18859 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18860 if ${gl_cv_var___progname+:} false
; then :
18861 $as_echo_n "(cached) " >&6
18864 gl_cv_var___progname
=
18865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867 extern char *__progname;
18871 return *__progname;
18877 if ac_fn_c_try_link
"$LINENO"; then :
18878 gl_cv_var___progname
=yes
18881 rm -f core conftest.err conftest.
$ac_objext \
18882 conftest
$ac_exeext conftest.
$ac_ext
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18887 $as_echo "$gl_cv_var___progname" >&6; }
18888 if test "$gl_cv_var___progname" = yes; then
18890 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18909 gl_gettimeofday_timezone
=void
18910 if test $ac_cv_func_gettimeofday != yes; then
18911 HAVE_GETTIMEOFDAY
=0
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18917 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18918 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
18919 $as_echo_n "(cached) " >&6
18921 if test "$cross_compiling" = yes; then :
18922 # When cross-compiling:
18924 # Guess all is fine on glibc systems.
18925 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18926 # If we don't know, assume the worst.
18927 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
18931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933 #include <string.h>
18934 #include <sys/time.h>
18936 #include <stdlib.h>
18944 struct tm saved_lt;
18946 lt = localtime (&t);
18948 gettimeofday (&tv, NULL);
18949 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18955 if ac_fn_c_try_run
"$LINENO"; then :
18956 gl_cv_func_gettimeofday_clobber
=no
18958 gl_cv_func_gettimeofday_clobber
=yes
18960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18966 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18968 case "$gl_cv_func_gettimeofday_clobber" in
18970 REPLACE_GETTIMEOFDAY
=1
18973 REPLACE_LOCALTIME
=1
18976 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18982 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18983 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
18984 $as_echo_n "(cached) " >&6
18986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18988 #include <sys/time.h>
18990 int gettimeofday (struct timeval *restrict, void *restrict);
18995 /* glibc uses struct timezone * rather than the POSIX void *
18996 if _GNU_SOURCE is defined. However, since the only portable
18997 use of gettimeofday uses NULL as the second parameter, and
18998 since the glibc definition is actually more typesafe, it is
18999 not worth wrapping this to get a compliant signature. */
19000 int (*f) (struct timeval *restrict, void *restrict)
19003 return !(x | c.tv_sec | c.tv_usec);
19009 if ac_fn_c_try_compile
"$LINENO"; then :
19010 gl_cv_func_gettimeofday_posix_signature
=yes
19012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19014 #include <sys/time.h>
19015 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
19025 if ac_fn_c_try_compile
"$LINENO"; then :
19026 gl_cv_func_gettimeofday_posix_signature
=almost
19028 gl_cv_func_gettimeofday_posix_signature
=no
19030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
19035 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
19036 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
19037 gl_gettimeofday_timezone
='struct timezone'
19038 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
19039 REPLACE_GETTIMEOFDAY
=1
19041 if test $REPLACE_STRUCT_TIMEVAL = 1; then
19042 REPLACE_GETTIMEOFDAY
=1
19047 cat >>confdefs.h
<<_ACEOF
19048 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
19052 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
19061 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
19064 for ac_header
in sys
/timeb.h
19066 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
19067 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
19068 cat >>confdefs.h
<<_ACEOF
19069 #define HAVE_SYS_TIMEB_H 1
19076 for ac_func
in _ftime
19078 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
19079 if test "x$ac_cv_func__ftime" = xyes
; then :
19080 cat >>confdefs.h
<<_ACEOF
19081 #define HAVE__FTIME 1
19094 GNULIB_GETTIMEOFDAY
=1
19100 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
19105 for ac_header
in glob.h
19107 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
19108 if test "x$ac_cv_header_glob_h" = xyes
; then :
19109 cat >>confdefs.h
<<_ACEOF
19110 #define HAVE_GLOB_H 1
19120 if test -z "$GLOB_H"; then
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
19122 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
19123 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
19124 $as_echo_n "(cached) " >&6
19126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19128 #include <gnu-versions.h>
19129 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
19131 if ac_fn_c_try_compile
"$LINENO"; then :
19132 gl_cv_gnu_glob_interface_version_1
=yes
19134 gl_cv_gnu_glob_interface_version_1
=no
19136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
19139 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
19141 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
19146 if test -z "$GLOB_H"; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
19148 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
19149 if ${gl_cv_glob_lists_symlinks+:} false
; then :
19150 $as_echo_n "(cached) " >&6
19152 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
19153 gl_cv_glob_lists_symlinks
=maybe
19155 # If we can't make a symlink, then we cannot test this issue. Be
19156 # pessimistic about this.
19157 gl_cv_glob_lists_symlinks
=no
19160 if test $gl_cv_glob_lists_symlinks = maybe
; then
19161 if test "$cross_compiling" = yes; then :
19162 gl_cv_glob_lists_symlinks
=no
19164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19167 #include <stddef.h>
19173 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
19178 if ac_fn_c_try_run
"$LINENO"; then :
19179 gl_cv_glob_lists_symlinks
=yes
19181 gl_cv_glob_lists_symlinks
=no
19183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
19190 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
19192 if test $gl_cv_glob_lists_symlinks = no
; then
19197 rm -f conf$$
-globtest
19200 if test -n "$GLOB_H"; then
19201 GL_GENERATE_GLOB_H_TRUE
=
19202 GL_GENERATE_GLOB_H_FALSE
='#'
19204 GL_GENERATE_GLOB_H_TRUE
='#'
19205 GL_GENERATE_GLOB_H_FALSE
=
19209 if test -n "$GLOB_H"; then
19218 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
19230 if test $ac_cv_header_sys_cdefs_h = yes; then
19272 if test $ac_cv_header_sys_socket_h != yes; then
19273 for ac_header
in winsock2.h
19275 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19276 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
19277 cat >>confdefs.h
<<_ACEOF
19278 #define HAVE_WINSOCK2_H 1
19286 if test "$ac_cv_header_winsock2_h" = yes; then
19288 UNISTD_H_HAVE_WINSOCK2_H
=1
19289 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19295 if test $HAVE_WINSOCK2_H = 1; then
19296 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
19298 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19304 cat >>confdefs.h
<<_ACEOF
19305 #define HAVE_DECL_INET_NTOP $ac_have_decl
19308 if test $ac_cv_have_decl_inet_ntop = yes; then
19309 REPLACE_INET_NTOP
=1
19310 INET_NTOP_LIB
="-lws2_32"
19312 HAVE_DECL_INET_NTOP
=0
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
19318 $as_echo_n "checking for library containing inet_ntop... " >&6; }
19319 if ${ac_cv_search_inet_ntop+:} false
; then :
19320 $as_echo_n "(cached) " >&6
19322 ac_func_search_save_LIBS
=$LIBS
19323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19326 /* Override any GCC internal prototype to avoid an error.
19327 Use char because int might match the return type of a GCC
19328 builtin and then its argument prototype would still apply. */
19336 return inet_ntop ();
19341 for ac_lib
in '' nsl resolv
; do
19342 if test -z "$ac_lib"; then
19343 ac_res
="none required"
19346 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19348 if ac_fn_c_try_link
"$LINENO"; then :
19349 ac_cv_search_inet_ntop
=$ac_res
19351 rm -f core conftest.err conftest.
$ac_objext \
19353 if ${ac_cv_search_inet_ntop+:} false
; then :
19357 if ${ac_cv_search_inet_ntop+:} false
; then :
19360 ac_cv_search_inet_ntop
=no
19362 rm conftest.
$ac_ext
19363 LIBS
=$ac_func_search_save_LIBS
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19366 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19367 ac_res
=$ac_cv_search_inet_ntop
19368 if test "$ac_res" != no
; then :
19369 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19372 for ac_func
in inet_ntop
19374 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19375 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
19376 cat >>confdefs.h
<<_ACEOF
19377 #define HAVE_INET_NTOP 1
19383 if test $ac_cv_func_inet_ntop = no
; then
19391 if test "$ac_cv_search_inet_ntop" != "no" \
19392 && test "$ac_cv_search_inet_ntop" != "none required"; then
19393 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
19403 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19405 # include <netdb.h>
19409 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19415 cat >>confdefs.h
<<_ACEOF
19416 #define HAVE_DECL_INET_NTOP $ac_have_decl
19419 if test $ac_cv_have_decl_inet_ntop = no
; then
19420 HAVE_DECL_INET_NTOP
=0
19425 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
19434 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
19456 if test -n "$STDINT_H"; then
19457 PRIPTR_PREFIX
='"l"'
19459 for glpfx
in '' l ll I64
; do
19461 '') gltype1
='int';;
19462 l
) gltype1
='long int';;
19463 ll
) gltype1
='long long int';;
19464 I64
) gltype1
='__int64';;
19466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19468 #include <stdint.h>
19469 extern intptr_t foo;
19470 extern $gltype1 foo;
19479 if ac_fn_c_try_compile
"$LINENO"; then :
19480 PRIPTR_PREFIX
='"'$glpfx'"'
19482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19483 test -n "$PRIPTR_PREFIX" && break
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19490 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19491 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
19492 $as_echo_n "(cached) " >&6
19494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19496 /* Work also in C++ mode. */
19497 #define __STDC_LIMIT_MACROS 1
19499 /* Work if build is not clean. */
19500 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19502 #include <limits.h>
19504 #include <stdint.h>
19507 #if defined INT32_MAX && defined INTMAX_MAX
19508 #define CONDITION (INT32_MAX < INTMAX_MAX)
19509 #elif HAVE_LONG_LONG_INT
19510 #define CONDITION (sizeof (int) < sizeof (long long int))
19512 #define CONDITION 0
19514 int test[CONDITION ? 1 : -1];
19523 if ac_fn_c_try_compile
"$LINENO"; then :
19524 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
19526 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
19528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19531 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19532 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19533 INT32_MAX_LT_INTMAX_MAX
=1;
19535 INT32_MAX_LT_INTMAX_MAX
=0;
19539 if test $APPLE_UNIVERSAL_BUILD = 0; then
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19542 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19543 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
19544 $as_echo_n "(cached) " >&6
19546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19548 /* Work also in C++ mode. */
19549 #define __STDC_LIMIT_MACROS 1
19551 /* Work if build is not clean. */
19552 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19554 #include <limits.h>
19556 #include <stdint.h>
19559 #if defined INT64_MAX
19560 #define CONDITION (INT64_MAX == LONG_MAX)
19561 #elif HAVE_LONG_LONG_INT
19562 #define CONDITION (sizeof (long long int) == sizeof (long int))
19564 #define CONDITION 0
19566 int test[CONDITION ? 1 : -1];
19575 if ac_fn_c_try_compile
"$LINENO"; then :
19576 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
19578 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
19580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19583 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19584 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19585 INT64_MAX_EQ_LONG_MAX
=1;
19587 INT64_MAX_EQ_LONG_MAX
=0;
19592 INT64_MAX_EQ_LONG_MAX
=-1
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19596 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19597 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
19598 $as_echo_n "(cached) " >&6
19600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19602 /* Work also in C++ mode. */
19603 #define __STDC_LIMIT_MACROS 1
19605 /* Work if build is not clean. */
19606 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19608 #include <limits.h>
19610 #include <stdint.h>
19613 #if defined UINT32_MAX && defined UINTMAX_MAX
19614 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19615 #elif HAVE_LONG_LONG_INT
19616 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19618 #define CONDITION 0
19620 int test[CONDITION ? 1 : -1];
19629 if ac_fn_c_try_compile
"$LINENO"; then :
19630 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
19632 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
19634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19637 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19638 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19639 UINT32_MAX_LT_UINTMAX_MAX
=1;
19641 UINT32_MAX_LT_UINTMAX_MAX
=0;
19645 if test $APPLE_UNIVERSAL_BUILD = 0; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19648 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19649 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
19650 $as_echo_n "(cached) " >&6
19652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19653 /* end confdefs.h. */
19654 /* Work also in C++ mode. */
19655 #define __STDC_LIMIT_MACROS 1
19657 /* Work if build is not clean. */
19658 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19660 #include <limits.h>
19662 #include <stdint.h>
19665 #if defined UINT64_MAX
19666 #define CONDITION (UINT64_MAX == ULONG_MAX)
19667 #elif HAVE_LONG_LONG_INT
19668 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19670 #define CONDITION 0
19672 int test[CONDITION ? 1 : -1];
19681 if ac_fn_c_try_compile
"$LINENO"; then :
19682 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
19684 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
19686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19689 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19690 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19691 UINT64_MAX_EQ_ULONG_MAX
=1;
19693 UINT64_MAX_EQ_ULONG_MAX
=0;
19698 UINT64_MAX_EQ_ULONG_MAX
=-1
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19706 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19707 if ${gl_cv_func_isnand_no_libm+:} false
; then :
19708 $as_echo_n "(cached) " >&6
19711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19716 # define isnand(x) __builtin_isnan ((double)(x))
19719 # define isnand(x) isnan ((double)(x))
19730 if ac_fn_c_try_link
"$LINENO"; then :
19731 gl_cv_func_isnand_no_libm
=yes
19733 gl_cv_func_isnand_no_libm
=no
19735 rm -f core conftest.err conftest.
$ac_objext \
19736 conftest
$ac_exeext conftest.
$ac_ext
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19740 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19742 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
19743 if test $gl_cv_func_isnand_no_libm = yes; then
19745 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19749 if test $gl_func_isnand_no_libm != yes; then
19758 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19767 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19768 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
19769 $as_echo_n "(cached) " >&6
19772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19773 /* end confdefs.h. */
19777 # define isnanl(x) __builtin_isnanl ((long double)(x))
19778 #elif defined isnan
19780 # define isnanl(x) isnan ((long double)(x))
19791 if ac_fn_c_try_link
"$LINENO"; then :
19792 gl_cv_func_isnanl_no_libm
=yes
19794 gl_cv_func_isnanl_no_libm
=no
19796 rm -f core conftest.err conftest.
$ac_objext \
19797 conftest
$ac_exeext conftest.
$ac_ext
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19801 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19803 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
19804 if test $gl_func_isnanl_no_libm = yes; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19810 $as_echo_n "checking whether isnanl works... " >&6; }
19811 if ${gl_cv_func_isnanl_works+:} false
; then :
19812 $as_echo_n "(cached) " >&6
19815 if test "$cross_compiling" = yes; then :
19816 gl_cv_func_isnanl_works
="guessing yes"
19818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h. */
19822 #include <limits.h>
19826 # define isnanl(x) __builtin_isnanl ((long double)(x))
19827 #elif defined isnan
19829 # define isnanl(x) isnan ((long double)(x))
19832 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19833 typedef union { unsigned int word[NWORDS]; long double value; }
19834 memory_long_double;
19835 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19836 runtime type conversion. */
19838 static long double NaNl ()
19841 return zero / zero;
19844 # define NaNl() (0.0L / 0.0L)
19850 if (!isnanl (NaNl ()))
19854 memory_long_double m;
19857 /* The isnanl function should be immune against changes in the sign bit and
19858 in the mantissa bits. The xor operation twiddles a bit that can only be
19859 a sign bit or a mantissa bit (since the exponent never extends to
19862 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19863 for (i = 0; i < NWORDS; i++)
19865 if (!isnanl (m.value))
19869 #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
19870 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19871 of 'unsigned int' words. */
19872 # ifdef WORDS_BIGENDIAN
19873 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19874 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19875 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19876 (unsigned int) (mantlo) << 16 \
19879 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19880 { mantlo, manthi, exponent }
19883 static memory_long_double x =
19884 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19885 if (!isnanl (x.value))
19889 /* Signalling NaN. */
19890 static memory_long_double x =
19891 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19892 if (!isnanl (x.value))
19895 /* isnanl should return something even for noncanonical values. */
19896 { /* Pseudo-NaN. */
19897 static memory_long_double x =
19898 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19899 if (isnanl (x.value) && !isnanl (x.value))
19902 { /* Pseudo-Infinity. */
19903 static memory_long_double x =
19904 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19905 if (isnanl (x.value) && !isnanl (x.value))
19908 { /* Pseudo-Zero. */
19909 static memory_long_double x =
19910 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19911 if (isnanl (x.value) && !isnanl (x.value))
19914 { /* Unnormalized number. */
19915 static memory_long_double x =
19916 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19917 if (isnanl (x.value) && !isnanl (x.value))
19920 { /* Pseudo-Denormal. */
19921 static memory_long_double x =
19922 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19923 if (isnanl (x.value) && !isnanl (x.value))
19931 if ac_fn_c_try_run
"$LINENO"; then :
19932 gl_cv_func_isnanl_works
=yes
19934 gl_cv_func_isnanl_works
=no
19936 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19937 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19943 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19945 case "$gl_cv_func_isnanl_works" in
19947 *) gl_func_isnanl_no_libm
=no
;;
19950 if test $gl_func_isnanl_no_libm = yes; then
19952 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19956 if test $gl_func_isnanl_no_libm != yes; then
19965 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19971 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19972 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
19973 $as_echo_n "(cached) " >&6
19976 if test "$cross_compiling" = yes; then :
19978 gl_cv_cc_long_double_expbit0
="unknown"
19981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19985 #include <stddef.h>
19987 #include <string.h>
19989 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19990 typedef union { long double value; unsigned int word[NWORDS]; }
19991 memory_long_double;
19992 static unsigned int ored_words[NWORDS];
19993 static unsigned int anded_words[NWORDS];
19994 static void add_to_ored_words (long double x)
19996 memory_long_double m;
19998 /* Clear it first, in case
19999 sizeof (long double) < sizeof (memory_long_double). */
20000 memset (&m, 0, sizeof (memory_long_double));
20002 for (i = 0; i < NWORDS; i++)
20004 ored_words[i] |= m.word[i];
20005 anded_words[i] &= m.word[i];
20011 FILE *fp = fopen ("conftest.out", "w");
20014 for (j = 0; j < NWORDS; j++)
20015 anded_words[j] = ~ (unsigned int) 0;
20016 add_to_ored_words (0.25L);
20017 add_to_ored_words (0.5L);
20018 add_to_ored_words (1.0L);
20019 add_to_ored_words (2.0L);
20020 add_to_ored_words (4.0L);
20021 /* Remove bits that are common (e.g. if representation of the first mantissa
20022 bit is explicit). */
20023 for (j = 0; j < NWORDS; j++)
20024 ored_words[j] &= ~anded_words[j];
20025 /* Now find the nonzero word. */
20026 for (j = 0; j < NWORDS; j++)
20027 if (ored_words[j] != 0)
20032 for (i = j + 1; i < NWORDS; i++)
20033 if (ored_words[i] != 0)
20035 fprintf (fp, "unknown");
20036 return (fclose (fp) != 0);
20039 if ((ored_words[j] >> i) & 1)
20041 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20042 return (fclose (fp) != 0);
20045 fprintf (fp, "unknown");
20046 return (fclose (fp) != 0);
20050 if ac_fn_c_try_run
"$LINENO"; then :
20051 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
20053 gl_cv_cc_long_double_expbit0
="unknown"
20055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20056 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
20063 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
20064 case "$gl_cv_cc_long_double_expbit0" in
20066 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20067 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
20069 cat >>confdefs.h
<<_ACEOF
20070 #define LDBL_EXPBIT0_WORD $word
20074 cat >>confdefs.h
<<_ACEOF
20075 #define LDBL_EXPBIT0_BIT $bit
20100 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
20111 if test $ac_cv_func_lstat = yes; then
20113 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
20122 if test $REPLACE_LSTAT = 1; then
20131 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20146 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
20153 if test $gl_cv_func_malloc_posix = yes; then
20155 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
20161 if test $REPLACE_MALLOC = 1; then
20170 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
20178 GNULIB_MALLOC_POSIX
=1
20184 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
20209 if test $gl_cv_have_include_next = yes; then
20210 gl_cv_next_math_h
='<'math.h
'>'
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
20213 $as_echo_n "checking absolute name of <math.h>... " >&6; }
20214 if ${gl_cv_next_math_h+:} false
; then :
20215 $as_echo_n "(cached) " >&6
20218 if test $ac_cv_header_math_h = yes; then
20223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20228 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20229 *) gl_absname_cpp
="$ac_cpp" ;;
20234 gl_dirsep_regex
='[/\\]'
20237 gl_dirsep_regex
='\/'
20240 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20241 gl_header_literal_regex
=`echo 'math.h' \
20242 | sed -e "$gl_make_literal_regex_sed"`
20243 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20244 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20250 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20251 sed -n "$gl_absolute_header_sed"`
20253 gl_header
=$gl_cv_absolute_math_h
20254 gl_cv_next_math_h
='"'$gl_header'"'
20256 gl_cv_next_math_h
='<'math.h
'>'
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
20262 $as_echo "$gl_cv_next_math_h" >&6; }
20264 NEXT_MATH_H
=$gl_cv_next_math_h
20266 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20268 gl_next_as_first_directive
='<'math.h
'>'
20270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20271 gl_next_as_first_directive
=$gl_cv_next_math_h
20273 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
20280 $as_echo_n "checking whether NAN macro works... " >&6; }
20281 if ${gl_cv_header_math_nan_works+:} false
; then :
20282 $as_echo_n "(cached) " >&6
20284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20285 /* end confdefs.h. */
20290 /* Solaris 10 has a broken definition of NAN. Other platforms
20291 fail to provide NAN, or provide it only in C99 mode; this
20292 test only needs to fail when NAN is provided but wrong. */
20302 if ac_fn_c_try_compile
"$LINENO"; then :
20303 gl_cv_header_math_nan_works
=yes
20305 gl_cv_header_math_nan_works
=no
20307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
20310 $as_echo "$gl_cv_header_math_nan_works" >&6; }
20311 if test $gl_cv_header_math_nan_works = no
; then
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
20315 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
20316 if ${gl_cv_header_math_huge_val_works+:} false
; then :
20317 $as_echo_n "(cached) " >&6
20319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20325 /* Solaris 10 has a broken definition of HUGE_VAL. */
20326 double d = HUGE_VAL;
20332 if ac_fn_c_try_compile
"$LINENO"; then :
20333 gl_cv_header_math_huge_val_works
=yes
20335 gl_cv_header_math_huge_val_works
=no
20337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
20340 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
20341 if test $gl_cv_header_math_huge_val_works = no
; then
20346 for gl_func
in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl
; do
20347 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20349 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20350 if eval \
${$as_gl_Symbol+:} false
; then :
20351 $as_echo_n "(cached) " >&6
20353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20365 if ac_fn_c_try_compile
"$LINENO"; then :
20366 eval "$as_gl_Symbol=yes"
20368 eval "$as_gl_Symbol=no"
20370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20372 eval ac_res
=\$
$as_gl_Symbol
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20374 $as_echo "$ac_res" >&6; }
20375 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
20376 cat >>confdefs.h
<<_ACEOF
20377 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20380 eval ac_cv_have_decl_
$gl_func=yes
20407 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20412 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20413 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20414 $as_echo_n "(cached) " >&6
20418 # Guess no on AIX and OSF/1.
20419 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20420 # Guess yes otherwise.
20421 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20423 if test $LOCALE_JA != none
; then
20424 if test "$cross_compiling" = yes; then :
20427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 #include <locale.h>
20431 #include <string.h>
20432 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20434 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20435 included before <wchar.h>. */
20436 #include <stddef.h>
20442 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20444 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20448 memset (&state, '\0', sizeof (mbstate_t));
20449 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20450 if (mbsinit (&state))
20456 if ac_fn_c_try_run
"$LINENO"; then :
20457 gl_cv_func_mbrtowc_incomplete_state
=yes
20459 gl_cv_func_mbrtowc_incomplete_state
=no
20461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20469 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20475 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20476 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20477 $as_echo_n "(cached) " >&6
20481 # Guess no on Solaris 8.
20482 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20483 # Guess yes otherwise.
20484 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20486 if test $LOCALE_ZH_CN != none
; then
20487 if test "$cross_compiling" = yes; then :
20490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20493 #include <locale.h>
20494 #include <stdlib.h>
20495 #include <string.h>
20496 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20498 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20499 included before <wchar.h>. */
20500 #include <stddef.h>
20506 /* This fails on Solaris 8:
20507 mbrtowc returns 2, and sets wc to 0x00F0.
20508 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20509 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20511 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20515 memset (&state, '\0', sizeof (mbstate_t));
20516 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20517 && mbtowc (&wc, input + 3, 6) == 4)
20523 if ac_fn_c_try_run
"$LINENO"; then :
20524 gl_cv_func_mbrtowc_sanitycheck
=yes
20526 gl_cv_func_mbrtowc_sanitycheck
=no
20528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20536 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20538 REPLACE_MBSTATE_T
=0
20539 case "$gl_cv_func_mbrtowc_incomplete_state" in
20541 *) REPLACE_MBSTATE_T
=1 ;;
20543 case "$gl_cv_func_mbrtowc_sanitycheck" in
20545 *) REPLACE_MBSTATE_T
=1 ;;
20548 REPLACE_MBSTATE_T
=1
20559 if test $ac_cv_func_mbrtowc = no
; then
20561 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20562 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20564 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20565 included before <wchar.h>. */
20566 #include <stddef.h>
20572 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
20578 cat >>confdefs.h
<<_ACEOF
20579 #define HAVE_DECL_MBRTOWC $ac_have_decl
20582 if test $ac_cv_have_decl_mbrtowc = yes; then
20586 if test $REPLACE_MBSTATE_T = 1; then
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20593 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20594 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
20595 $as_echo_n "(cached) " >&6
20599 # Guess no on Solaris.
20600 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
20601 # Guess yes otherwise.
20602 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
20604 if test $LOCALE_FR_UTF8 != none
; then
20605 if test "$cross_compiling" = yes; then :
20608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20609 /* end confdefs.h. */
20611 #include <locale.h>
20612 #include <stdlib.h>
20613 #include <string.h>
20614 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20616 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20617 included before <wchar.h>. */
20618 #include <stddef.h>
20626 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20628 char input[] = "\303\237er";
20633 memset (&state, '\0', sizeof (mbstate_t));
20634 wc = (wchar_t) 0xBADFACE;
20635 ret = mbrtowc (&wc, input, 5, &state);
20638 if (!mbsinit (&state))
20641 memset (&state, '\0', sizeof (mbstate_t));
20642 ret = mbrtowc (NULL, input, 5, &state);
20643 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20645 if (!mbsinit (&state))
20651 if ac_fn_c_try_run
"$LINENO"; then :
20652 gl_cv_func_mbrtowc_null_arg1
=yes
20654 gl_cv_func_mbrtowc_null_arg1
=no
20656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20664 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20670 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20671 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
20672 $as_echo_n "(cached) " >&6
20676 # Guess no on OSF/1.
20677 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
20678 # Guess yes otherwise.
20679 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
20681 if test $LOCALE_FR_UTF8 != none
; then
20682 if test "$cross_compiling" = yes; then :
20685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20686 /* end confdefs.h. */
20688 #include <locale.h>
20689 #include <string.h>
20690 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20692 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20693 included before <wchar.h>. */
20694 #include <stddef.h>
20700 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20706 memset (&state, '\0', sizeof (mbstate_t));
20707 wc = (wchar_t) 0xBADFACE;
20708 mbrtowc (&wc, NULL, 5, &state);
20709 /* Check that wc was not modified. */
20710 if (wc != (wchar_t) 0xBADFACE)
20716 if ac_fn_c_try_run
"$LINENO"; then :
20717 gl_cv_func_mbrtowc_null_arg2
=yes
20719 gl_cv_func_mbrtowc_null_arg2
=no
20721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20729 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20737 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20738 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
20739 $as_echo_n "(cached) " >&6
20743 # Guess no on HP-UX, Solaris, native Windows.
20744 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
20745 # Guess yes otherwise.
20746 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
20748 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
20749 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
20750 if test "$cross_compiling" = yes; then :
20753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20756 #include <locale.h>
20757 #include <string.h>
20758 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20760 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20761 included before <wchar.h>. */
20762 #include <stddef.h>
20769 int found_some_locale = 0;
20770 /* This fails on Solaris. */
20771 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20773 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20777 memset (&state, '\0', sizeof (mbstate_t));
20778 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20781 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20784 found_some_locale = 1;
20786 /* This fails on HP-UX 11.11. */
20787 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20789 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20793 memset (&state, '\0', sizeof (mbstate_t));
20794 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20797 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20800 found_some_locale = 1;
20802 /* This fails on native Windows. */
20803 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20805 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20809 memset (&state, '\0', sizeof (mbstate_t));
20810 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20813 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20816 found_some_locale = 1;
20818 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20820 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20824 memset (&state, '\0', sizeof (mbstate_t));
20825 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20828 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20831 found_some_locale = 1;
20833 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20835 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20839 memset (&state, '\0', sizeof (mbstate_t));
20840 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20843 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20846 found_some_locale = 1;
20848 return (found_some_locale ? result : 77);
20851 if ac_fn_c_try_run
"$LINENO"; then :
20852 gl_cv_func_mbrtowc_retval
=yes
20854 if test $?
!= 77; then
20855 gl_cv_func_mbrtowc_retval
=no
20859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20867 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20873 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20874 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
20875 $as_echo_n "(cached) " >&6
20879 # Guess no on Solaris 8 and 9.
20880 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
20881 # Guess yes otherwise.
20882 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
20884 if test $LOCALE_ZH_CN != none
; then
20885 if test "$cross_compiling" = yes; then :
20888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20891 #include <locale.h>
20892 #include <string.h>
20893 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20896 included before <wchar.h>. */
20897 #include <stddef.h>
20903 /* This fails on Solaris 8 and 9. */
20904 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20909 memset (&state, '\0', sizeof (mbstate_t));
20910 if (mbrtowc (&wc, "", 1, &state) != 0)
20916 if ac_fn_c_try_run
"$LINENO"; then :
20917 gl_cv_func_mbrtowc_nul_retval
=yes
20919 gl_cv_func_mbrtowc_nul_retval
=no
20921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20929 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20934 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20935 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
20936 $as_echo_n "(cached) " >&6
20940 # Guess no on AIX and glibc systems.
20942 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
20943 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
20945 if test "$cross_compiling" = yes; then :
20948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20949 /* end confdefs.h. */
20953 static mbstate_t mbs;
20957 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20960 if ac_fn_c_try_run
"$LINENO"; then :
20961 gl_cv_func_mbrtowc_empty_input
=yes
20963 gl_cv_func_mbrtowc_empty_input
=no
20965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20972 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20976 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20977 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
20978 $as_echo_n "(cached) " >&6
20981 gl_cv_C_locale_sans_EILSEQ
="guessing no"
20983 if test "$cross_compiling" = yes; then :
20986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h. */
20988 #include <limits.h>
20989 #include <locale.h>
20997 char *locale = setlocale (LC_ALL, "C");
21000 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
21004 mbstate_t mbs = { 0, };
21005 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
21015 if ac_fn_c_try_run
"$LINENO"; then :
21016 gl_cv_C_locale_sans_EILSEQ
=yes
21018 gl_cv_C_locale_sans_EILSEQ
=no
21020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
21026 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
21028 case "$gl_cv_func_mbrtowc_null_arg1" in
21031 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
21036 case "$gl_cv_func_mbrtowc_null_arg2" in
21039 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
21044 case "$gl_cv_func_mbrtowc_retval" in
21047 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
21052 case "$gl_cv_func_mbrtowc_nul_retval" in
21055 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
21060 case "$gl_cv_func_mbrtowc_empty_input" in
21063 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
21068 case $gl_cv_C_locale_sans_EILSEQ in
21071 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
21079 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
21088 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
21105 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
21132 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21137 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21138 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21139 $as_echo_n "(cached) " >&6
21143 # Guess no on AIX and OSF/1.
21144 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21145 # Guess yes otherwise.
21146 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21148 if test $LOCALE_JA != none
; then
21149 if test "$cross_compiling" = yes; then :
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21155 #include <locale.h>
21156 #include <string.h>
21157 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21159 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21160 included before <wchar.h>. */
21161 #include <stddef.h>
21167 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21169 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21173 memset (&state, '\0', sizeof (mbstate_t));
21174 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21175 if (mbsinit (&state))
21181 if ac_fn_c_try_run
"$LINENO"; then :
21182 gl_cv_func_mbrtowc_incomplete_state
=yes
21184 gl_cv_func_mbrtowc_incomplete_state
=no
21186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21194 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21200 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21201 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21202 $as_echo_n "(cached) " >&6
21206 # Guess no on Solaris 8.
21207 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21208 # Guess yes otherwise.
21209 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21211 if test $LOCALE_ZH_CN != none
; then
21212 if test "$cross_compiling" = yes; then :
21215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21218 #include <locale.h>
21219 #include <stdlib.h>
21220 #include <string.h>
21221 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21223 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21224 included before <wchar.h>. */
21225 #include <stddef.h>
21231 /* This fails on Solaris 8:
21232 mbrtowc returns 2, and sets wc to 0x00F0.
21233 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21234 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21236 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21240 memset (&state, '\0', sizeof (mbstate_t));
21241 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21242 && mbtowc (&wc, input + 3, 6) == 4)
21248 if ac_fn_c_try_run
"$LINENO"; then :
21249 gl_cv_func_mbrtowc_sanitycheck
=yes
21251 gl_cv_func_mbrtowc_sanitycheck
=no
21253 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21254 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21261 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21263 REPLACE_MBSTATE_T
=0
21264 case "$gl_cv_func_mbrtowc_incomplete_state" in
21266 *) REPLACE_MBSTATE_T
=1 ;;
21268 case "$gl_cv_func_mbrtowc_sanitycheck" in
21270 *) REPLACE_MBSTATE_T
=1 ;;
21273 REPLACE_MBSTATE_T
=1
21284 if test $ac_cv_func_mbsinit = no
; then
21286 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
21287 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21289 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21290 included before <wchar.h>. */
21291 #include <stddef.h>
21297 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
21303 cat >>confdefs.h
<<_ACEOF
21304 #define HAVE_DECL_MBSINIT $ac_have_decl
21307 if test $ac_cv_have_decl_mbsinit = yes; then
21311 if test $REPLACE_MBSTATE_T = 1; then
21315 mingw
*) REPLACE_MBSINIT
=1 ;;
21320 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
21329 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
21346 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21372 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21377 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21378 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21379 $as_echo_n "(cached) " >&6
21383 # Guess no on AIX and OSF/1.
21384 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21385 # Guess yes otherwise.
21386 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21388 if test $LOCALE_JA != none
; then
21389 if test "$cross_compiling" = yes; then :
21392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21393 /* end confdefs.h. */
21395 #include <locale.h>
21396 #include <string.h>
21397 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21399 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21400 included before <wchar.h>. */
21401 #include <stddef.h>
21407 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21409 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21413 memset (&state, '\0', sizeof (mbstate_t));
21414 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21415 if (mbsinit (&state))
21421 if ac_fn_c_try_run
"$LINENO"; then :
21422 gl_cv_func_mbrtowc_incomplete_state
=yes
21424 gl_cv_func_mbrtowc_incomplete_state
=no
21426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21434 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21440 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21441 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21442 $as_echo_n "(cached) " >&6
21446 # Guess no on Solaris 8.
21447 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21448 # Guess yes otherwise.
21449 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21451 if test $LOCALE_ZH_CN != none
; then
21452 if test "$cross_compiling" = yes; then :
21455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 #include <locale.h>
21459 #include <stdlib.h>
21460 #include <string.h>
21461 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21463 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21464 included before <wchar.h>. */
21465 #include <stddef.h>
21471 /* This fails on Solaris 8:
21472 mbrtowc returns 2, and sets wc to 0x00F0.
21473 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21474 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21476 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21480 memset (&state, '\0', sizeof (mbstate_t));
21481 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21482 && mbtowc (&wc, input + 3, 6) == 4)
21488 if ac_fn_c_try_run
"$LINENO"; then :
21489 gl_cv_func_mbrtowc_sanitycheck
=yes
21491 gl_cv_func_mbrtowc_sanitycheck
=no
21493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21501 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21503 REPLACE_MBSTATE_T
=0
21504 case "$gl_cv_func_mbrtowc_incomplete_state" in
21506 *) REPLACE_MBSTATE_T
=1 ;;
21508 case "$gl_cv_func_mbrtowc_sanitycheck" in
21510 *) REPLACE_MBSTATE_T
=1 ;;
21513 REPLACE_MBSTATE_T
=1
21524 if test $ac_cv_func_mbsrtowcs = no
; then
21526 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21527 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21529 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21530 included before <wchar.h>. */
21531 #include <stddef.h>
21537 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
21543 cat >>confdefs.h
<<_ACEOF
21544 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21547 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21548 REPLACE_MBSRTOWCS
=1
21551 if test $REPLACE_MBSTATE_T = 1; then
21552 REPLACE_MBSRTOWCS
=1
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21561 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21562 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
21563 $as_echo_n "(cached) " >&6
21567 # Guess no on HP-UX, Solaris, mingw.
21568 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
21569 # Guess yes otherwise.
21570 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
21572 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
21573 if test "$cross_compiling" = yes; then :
21576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21577 /* end confdefs.h. */
21579 #include <locale.h>
21580 #include <string.h>
21581 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21583 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21584 included before <wchar.h>. */
21585 #include <stddef.h>
21592 /* Test whether the function supports a NULL destination argument.
21593 This fails on native Windows. */
21594 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21596 const char input[] = "\337er";
21597 const char *src = input;
21600 memset (&state, '\0', sizeof (mbstate_t));
21601 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21605 /* Test whether the function works when started with a conversion state
21606 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21607 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21609 const char input[] = "B\303\274\303\237er";
21612 memset (&state, '\0', sizeof (mbstate_t));
21613 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21614 if (!mbsinit (&state))
21616 const char *src = input + 2;
21617 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21621 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21623 const char input[] = "<\306\374\313\334\270\354>";
21626 memset (&state, '\0', sizeof (mbstate_t));
21627 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21628 if (!mbsinit (&state))
21630 const char *src = input + 4;
21631 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21635 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21637 const char input[] = "B\250\271\201\060\211\070er";
21640 memset (&state, '\0', sizeof (mbstate_t));
21641 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21642 if (!mbsinit (&state))
21644 const char *src = input + 2;
21645 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21652 if ac_fn_c_try_run
"$LINENO"; then :
21653 gl_cv_func_mbsrtowcs_works
=yes
21655 gl_cv_func_mbsrtowcs_works
=no
21657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21665 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21667 case "$gl_cv_func_mbsrtowcs_works" in
21669 *) REPLACE_MBSRTOWCS
=1 ;;
21674 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
21683 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21693 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21710 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21715 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
21724 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
21727 for ac_header
in bp-sym.h
21729 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21730 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
21731 cat >>confdefs.h
<<_ACEOF
21732 #define HAVE_BP_SYM_H 1
21752 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21758 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21760 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21761 if ${gl_cv_func_memmem_works_fast+:} false
; then :
21762 $as_echo_n "(cached) " >&6
21764 if test "$cross_compiling" = yes; then :
21765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21766 /* end confdefs.h. */
21768 #include <features.h>
21769 #ifdef __GNU_LIBRARY__
21770 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21771 && !defined __UCLIBC__
21776 #include <cygwin/version.h>
21777 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21784 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21785 gl_cv_func_memmem_works_fast
="guessing yes"
21787 gl_cv_func_memmem_works_fast
="guessing no"
21793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 #include <signal.h> /* for signal */
21797 #include <string.h> /* for memmem */
21798 #include <stdlib.h> /* for malloc */
21799 #include <unistd.h> /* for alarm */
21800 static void quit (int sig) { _exit (sig + 128); }
21807 size_t m = 1000000;
21808 char *haystack = (char *) malloc (2 * m + 1);
21809 char *needle = (char *) malloc (m + 1);
21810 /* Failure to compile this test due to missing alarm is okay,
21811 since all such platforms (mingw) also lack memmem. */
21812 signal (SIGALRM, quit);
21814 /* Check for quadratic performance. */
21815 if (haystack && needle)
21817 memset (haystack, 'A', 2 * m);
21818 haystack[2 * m] = 'B';
21819 memset (needle, 'A', m);
21821 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21830 if ac_fn_c_try_run
"$LINENO"; then :
21831 gl_cv_func_memmem_works_fast
=yes
21833 gl_cv_func_memmem_works_fast
=no
21835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21842 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21843 case "$gl_cv_func_memmem_works_fast" in
21851 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21860 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21867 for ac_func
in memmem
21869 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
21870 if test "x$ac_cv_func_memmem" = xyes
; then :
21871 cat >>confdefs.h
<<_ACEOF
21872 #define HAVE_MEMMEM 1
21878 if test $ac_cv_func_memmem = yes; then
21890 if test $ac_cv_have_decl_memmem = no
; then
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21894 $as_echo_n "checking whether memmem works... " >&6; }
21895 if ${gl_cv_func_memmem_works_always+:} false
; then :
21896 $as_echo_n "(cached) " >&6
21898 if test "$cross_compiling" = yes; then :
21899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21902 #ifdef __GNU_LIBRARY__
21903 #include <features.h>
21904 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21905 || __GLIBC_MINOR__ > 12)) \
21906 || (__GLIBC__ > 2)) \
21907 || defined __UCLIBC__
21910 #elif defined __CYGWIN__
21911 #include <cygwin/version.h>
21912 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21921 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21922 gl_cv_func_memmem_works_always
="guessing yes"
21924 gl_cv_func_memmem_works_always
="guessing no"
21930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21933 #include <string.h> /* for memmem */
21934 #define P "_EF_BF_BD"
21935 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21936 #define NEEDLE P P P P P
21943 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21945 /* Check for empty needle behavior. */
21947 const char *haystack = "AAA";
21948 if (memmem (haystack, 3, NULL, 0) != haystack)
21957 if ac_fn_c_try_run
"$LINENO"; then :
21958 gl_cv_func_memmem_works_always
=yes
21960 gl_cv_func_memmem_works_always
=no
21962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21969 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21970 case "$gl_cv_func_memmem_works_always" in
21979 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21988 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
22002 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
22012 for ac_func
in mempcpy
22014 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
22015 if test "x$ac_cv_func_mempcpy" = xyes
; then :
22016 cat >>confdefs.h
<<_ACEOF
22017 #define HAVE_MEMPCPY 1
22023 if test $ac_cv_func_mempcpy = no
; then
22027 if test $HAVE_MEMPCPY = 0; then
22036 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
22053 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
22068 if test $ac_cv_have_decl_memrchr = no
; then
22069 HAVE_DECL_MEMRCHR
=0
22072 for ac_func
in memrchr
22074 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
22075 if test "x$ac_cv_func_memrchr" = xyes
; then :
22076 cat >>confdefs.h
<<_ACEOF
22077 #define HAVE_MEMRCHR 1
22084 if test $ac_cv_func_memrchr = no
; then
22093 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
22108 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
22121 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
22122 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
22123 $as_echo_n "(cached) " >&6
22125 rm -rf conftest.dir
22126 if test "$cross_compiling" = yes; then :
22128 # Guess yes on glibc systems.
22129 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
22130 # If we don't know, assume the worst.
22131 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
22135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22138 # include <sys/types.h>
22139 # include <sys/stat.h>
22144 return mkdir ("conftest.dir/", 0700);
22149 if ac_fn_c_try_run
"$LINENO"; then :
22150 gl_cv_func_mkdir_trailing_slash_works
=yes
22152 gl_cv_func_mkdir_trailing_slash_works
=no
22154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22158 rm -rf conftest.dir
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
22163 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
22164 case "$gl_cv_func_mkdir_trailing_slash_works" in
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
22172 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
22173 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
22174 $as_echo_n "(cached) " >&6
22176 rm -rf conftest.dir
22177 if test "$cross_compiling" = yes; then :
22179 # Guess yes on glibc systems.
22180 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
22181 # If we don't know, assume the worst.
22182 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
22186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h. */
22189 # include <sys/types.h>
22190 # include <sys/stat.h>
22195 return !mkdir ("conftest.dir/./", 0700);
22200 if ac_fn_c_try_run
"$LINENO"; then :
22201 gl_cv_func_mkdir_trailing_dot_works
=yes
22203 gl_cv_func_mkdir_trailing_dot_works
=no
22205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22209 rm -rf conftest.dir
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
22214 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
22215 case "$gl_cv_func_mkdir_trailing_dot_works" in
22220 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
22225 if test $REPLACE_MKDIR = 1; then
22234 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
22239 for ac_func
in mkdtemp
22241 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22242 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
22243 cat >>confdefs.h
<<_ACEOF
22244 #define HAVE_MKDTEMP 1
22250 if test $ac_cv_func_mkdtemp = no
; then
22254 if test $HAVE_MKDTEMP = 0; then
22263 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
22279 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22295 if test $ac_cv_func_mkostemp != yes; then
22299 if test $HAVE_MKOSTEMP = 0; then
22308 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
22315 cat >>confdefs.h
<<_ACEOF
22316 #define GNULIB_MKOSTEMP 1
22331 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
22336 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22345 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
22349 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22358 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22364 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22365 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
22366 $as_echo_n "(cached) " >&6
22369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22370 /* end confdefs.h. */
22371 #include <netinet/in.h>
22380 if ac_fn_c_try_compile
"$LINENO"; then :
22381 gl_cv_header_netinet_in_h_selfcontained
=yes
22383 gl_cv_header_netinet_in_h_selfcontained
=no
22385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22389 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22390 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22393 NETINET_IN_H
='netinet/in.h'
22394 for ac_header
in netinet
/in.h
22396 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22397 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
22398 cat >>confdefs.h
<<_ACEOF
22399 #define HAVE_NETINET_IN_H 1
22421 if test $gl_cv_have_include_next = yes; then
22422 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22425 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22426 if ${gl_cv_next_netinet_in_h+:} false
; then :
22427 $as_echo_n "(cached) " >&6
22430 if test $ac_cv_header_netinet_in_h = yes; then
22435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h. */
22437 #include <netinet/in.h>
22440 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22441 *) gl_absname_cpp
="$ac_cpp" ;;
22446 gl_dirsep_regex
='[/\\]'
22449 gl_dirsep_regex
='\/'
22452 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22453 gl_header_literal_regex
=`echo 'netinet/in.h' \
22454 | sed -e "$gl_make_literal_regex_sed"`
22455 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22462 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22463 sed -n "$gl_absolute_header_sed"`
22465 gl_header
=$gl_cv_absolute_netinet_in_h
22466 gl_cv_next_netinet_in_h
='"'$gl_header'"'
22468 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22474 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22476 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
22478 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22480 gl_next_as_first_directive
='<'netinet
/in.h
'>'
22482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22483 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
22485 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
22490 if test $ac_cv_header_netinet_in_h = yes; then
22491 HAVE_NETINET_IN_H
=1
22493 HAVE_NETINET_IN_H
=0
22498 if test -n "$NETINET_IN_H"; then
22499 GL_GENERATE_NETINET_IN_H_TRUE
=
22500 GL_GENERATE_NETINET_IN_H_FALSE
='#'
22502 GL_GENERATE_NETINET_IN_H_TRUE
='#'
22503 GL_GENERATE_NETINET_IN_H_FALSE
=
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22523 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22524 if ${gl_cv_func_open_slash+:} false
; then :
22525 $as_echo_n "(cached) " >&6
22527 # Assume that if we have lstat, we can also check symlinks.
22528 if test $ac_cv_func_lstat = yes; then
22530 ln -s conftest.tmp conftest.lnk
22532 if test "$cross_compiling" = yes; then :
22535 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
22536 gl_cv_func_open_slash
="guessing no" ;;
22538 gl_cv_func_open_slash
="guessing yes" ;;
22542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22547 # include <unistd.h>
22553 if (open ("conftest.lnk/", O_RDONLY) != -1)
22556 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22561 if ac_fn_c_try_run
"$LINENO"; then :
22562 gl_cv_func_open_slash
=yes
22564 gl_cv_func_open_slash
=no
22566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22570 rm -f conftest.sl conftest.tmp conftest.lnk
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22574 $as_echo "$gl_cv_func_open_slash" >&6; }
22575 case "$gl_cv_func_open_slash" in
22578 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22586 if test $REPLACE_OPEN = 0; then
22596 if test $ac_cv_func_fchdir = no
; then
22600 if test $HAVE_FCHDIR = 0; then
22607 if test $REPLACE_OPEN = 1; then
22616 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
22634 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22649 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22653 # Solaris 9 has *at functions, but uniformly mishandles trailing
22654 # slash in all of them.
22662 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
22671 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
22680 cat >>confdefs.h
<<_ACEOF
22681 #define GNULIB_OPENAT 1
22695 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22702 for ac_func
in opendir
22704 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
22705 if test "x$ac_cv_func_opendir" = xyes
; then :
22706 cat >>confdefs.h
<<_ACEOF
22707 #define HAVE_OPENDIR 1
22713 if test $ac_cv_func_opendir = no
; then
22726 if test $ac_cv_func_fchdir = no
; then
22730 if test $HAVE_FCHDIR = 0; then
22731 if test $HAVE_OPENDIR = 1; then
22736 case $host_os,$HAVE_OPENDIR in
22738 REPLACE_OPENDIR
=1;;
22741 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
22750 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
22764 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22781 for ac_func
in rawmemchr
22783 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22784 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
22785 cat >>confdefs.h
<<_ACEOF
22786 #define HAVE_RAWMEMCHR 1
22792 if test $ac_cv_func_rawmemchr = no
; then
22796 if test $HAVE_RAWMEMCHR = 0; then
22805 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
22820 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22827 for ac_func
in readdir
22829 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
22830 if test "x$ac_cv_func_readdir" = xyes
; then :
22831 cat >>confdefs.h
<<_ACEOF
22832 #define HAVE_READDIR 1
22838 if test $ac_cv_func_readdir = no
; then
22842 if test $HAVE_READDIR = 0; then
22851 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
22865 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22878 if test $ac_cv_func_readlink = no
; then
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22882 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22883 if ${gl_cv_decl_readlink_works+:} false
; then :
22884 $as_echo_n "(cached) " >&6
22886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22888 #include <unistd.h>
22889 /* Cause compilation failure if original declaration has wrong type. */
22890 ssize_t readlink (const char *, char *, size_t);
22899 if ac_fn_c_try_compile
"$LINENO"; then :
22900 gl_cv_decl_readlink_works
=yes
22902 gl_cv_decl_readlink_works
=no
22904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22907 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22909 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22910 if ${gl_cv_func_readlink_works+:} false
; then :
22911 $as_echo_n "(cached) " >&6
22913 # We have readlink, so assume ln -s works.
22914 ln -s conftest.no-such conftest.link
22915 ln -s conftest.link conftest.lnk2
22916 if test "$cross_compiling" = yes; then :
22918 # Guess yes on glibc systems.
22919 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22920 # If we don't know, assume the worst.
22921 *) gl_cv_func_readlink_works
="guessing no" ;;
22925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22926 /* end confdefs.h. */
22927 #include <unistd.h>
22933 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22938 if ac_fn_c_try_run
"$LINENO"; then :
22939 gl_cv_func_readlink_works
=yes
22941 gl_cv_func_readlink_works
=no
22943 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22944 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22947 rm -f conftest.link conftest.lnk2
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22950 $as_echo "$gl_cv_func_readlink_works" >&6; }
22951 case "$gl_cv_func_readlink_works" in
22953 if test "$gl_cv_decl_readlink_works" != yes; then
22959 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22966 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22975 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22992 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22999 if test $gl_cv_func_malloc_posix = yes; then
23001 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
23007 if test $REPLACE_REALLOC = 1; then
23016 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
23024 GNULIB_REALLOC_POSIX
=1
23030 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
23046 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
23047 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
23048 $as_echo_n "(cached) " >&6
23050 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
23051 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
23052 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23053 # Assume that if we have lstat, we can also check symlinks.
23054 if test $ac_cv_func_lstat = yes; then
23055 ln -s conftest.f conftest.lnk
23057 if test "$cross_compiling" = yes; then :
23059 # Guess yes on glibc systems.
23060 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
23061 # If we don't know, assume the worst.
23062 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
23066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h. */
23069 # include <stdio.h>
23070 # include <stdlib.h>
23076 if (rename ("conftest.f1", "conftest.f2/") == 0)
23078 if (rename ("conftest.d1", "conftest.d2/") != 0)
23081 if (rename ("conftest.f", "conftest.lnk/") == 0)
23090 if ac_fn_c_try_run
"$LINENO"; then :
23091 gl_cv_func_rename_slash_dst_works
=yes
23093 gl_cv_func_rename_slash_dst_works
=no
23095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23099 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
23103 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
23104 case "$gl_cv_func_rename_slash_dst_works" in
23109 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
23115 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
23116 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
23117 $as_echo_n "(cached) " >&6
23119 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
23120 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
23121 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23122 # Assume that if we have lstat, we can also check symlinks.
23123 if test $ac_cv_func_lstat = yes; then
23124 ln -s conftest.f conftest.lnk
23126 if test "$cross_compiling" = yes; then :
23128 # Guess yes on glibc systems.
23129 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
23130 # If we don't know, assume the worst.
23131 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
23135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23138 # include <stdio.h>
23139 # include <stdlib.h>
23145 if (rename ("conftest.f1/", "conftest.d3") == 0)
23147 if (rename ("conftest.d1/", "conftest.d2") != 0)
23150 if (rename ("conftest.lnk/", "conftest.f") == 0)
23159 if ac_fn_c_try_run
"$LINENO"; then :
23160 gl_cv_func_rename_slash_src_works
=yes
23162 gl_cv_func_rename_slash_src_works
=no
23164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23168 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
23172 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
23173 case "$gl_cv_func_rename_slash_src_works" in
23178 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
23191 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
23192 if ${gl_cv_func_rename_link_works+:} false
; then :
23193 $as_echo_n "(cached) " >&6
23195 if test $ac_cv_func_link = yes; then
23196 rm -rf conftest.f conftest.f1
23197 if touch conftest.f
&& ln conftest.f conftest.f1
&&
23198 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
23199 if test "$cross_compiling" = yes; then :
23201 # Guess yes on glibc systems.
23202 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
23203 # If we don't know, assume the worst.
23204 *) gl_cv_func_rename_link_works
="guessing no" ;;
23208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23211 # include <stdio.h>
23212 # include <stdlib.h>
23213 # include <unistd.h>
23219 if (rename ("conftest.f", "conftest.f1"))
23221 if (unlink ("conftest.f1"))
23223 if (rename ("conftest.f", "conftest.f"))
23225 if (rename ("conftest.f1", "conftest.f1") == 0)
23233 if ac_fn_c_try_run
"$LINENO"; then :
23234 gl_cv_func_rename_link_works
=yes
23236 gl_cv_func_rename_link_works
=no
23238 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23239 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23243 gl_cv_func_rename_link_works
="guessing no"
23245 rm -rf conftest.f conftest.f1
23247 gl_cv_func_rename_link_works
=yes
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
23252 $as_echo "$gl_cv_func_rename_link_works" >&6; }
23253 case "$gl_cv_func_rename_link_works" in
23258 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
23264 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
23265 if ${gl_cv_func_rename_dest_works+:} false
; then :
23266 $as_echo_n "(cached) " >&6
23268 rm -rf conftest.f conftest.d1 conftest.d2
23269 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
23270 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23271 if test "$cross_compiling" = yes; then :
23273 # Guess yes on glibc systems.
23274 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
23275 # If we don't know, assume the worst.
23276 *) gl_cv_func_rename_dest_works
="guessing no" ;;
23280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h. */
23283 # include <stdio.h>
23284 # include <stdlib.h>
23290 if (rename ("conftest.d1", "conftest.d2") != 0)
23292 if (rename ("conftest.d2", "conftest.f") == 0)
23300 if ac_fn_c_try_run
"$LINENO"; then :
23301 gl_cv_func_rename_dest_works
=yes
23303 gl_cv_func_rename_dest_works
=no
23305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23309 rm -rf conftest.f conftest.d1 conftest.d2
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
23313 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
23314 case "$gl_cv_func_rename_dest_works" in
23319 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
23324 if test $REPLACE_RENAME = 1; then
23333 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
23347 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23354 for ac_func
in rewinddir
23356 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23357 if test "x$ac_cv_func_rewinddir" = xyes
; then :
23358 cat >>confdefs.h
<<_ACEOF
23359 #define HAVE_REWINDDIR 1
23365 if test $ac_cv_func_rewinddir = no
; then
23369 if test $HAVE_REWINDDIR = 0; then
23378 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
23392 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23406 $as_echo_n "checking whether rmdir works... " >&6; }
23407 if ${gl_cv_func_rmdir_works+:} false
; then :
23408 $as_echo_n "(cached) " >&6
23411 touch conftest.
file
23412 if test "$cross_compiling" = yes; then :
23414 # Guess yes on glibc systems.
23415 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
23416 # If we don't know, assume the worst.
23417 *) gl_cv_func_rmdir_works
="guessing no" ;;
23421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23422 /* end confdefs.h. */
23426 # include <unistd.h>
23427 #else /* on Windows with MSVC */
23428 # include <direct.h>
23435 if (!rmdir ("conftest.file/"))
23437 else if (errno != ENOTDIR)
23439 if (!rmdir ("conftest.dir/./"))
23447 if ac_fn_c_try_run
"$LINENO"; then :
23448 gl_cv_func_rmdir_works
=yes
23450 gl_cv_func_rmdir_works
=no
23452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23456 rm -rf conftest.dir conftest.
file
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23459 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23460 case "$gl_cv_func_rmdir_works" in
23467 if test $REPLACE_RMDIR = 1; then
23476 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
23490 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23514 if test $ac_cv_func_secure_getenv = no
; then
23515 HAVE_SECURE_GETENV
=0
23518 if test $HAVE_SECURE_GETENV = 0; then
23527 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
23530 for ac_func
in __secure_getenv
23532 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23533 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
23534 cat >>confdefs.h
<<_ACEOF
23535 #define HAVE___SECURE_GETENV 1
23541 if test $ac_cv_func___secure_getenv = no
; then
23542 for ac_func
in issetugid
23544 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
23545 if test "x$ac_cv_func_issetugid" = xyes
; then :
23546 cat >>confdefs.h
<<_ACEOF
23547 #define HAVE_ISSETUGID 1
23577 GNULIB_SECURE_GETENV
=1
23583 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23589 if test $ac_cv_func_setenv = no
; then
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23593 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23594 if ${gl_cv_func_setenv_works+:} false
; then :
23595 $as_echo_n "(cached) " >&6
23597 if test "$cross_compiling" = yes; then :
23599 # Guess yes on glibc systems.
23600 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
23601 # If we don't know, assume the worst.
23602 *) gl_cv_func_setenv_works
="guessing no" ;;
23606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23609 #include <stdlib.h>
23611 #include <string.h>
23619 if (setenv ("", "", 0) != -1)
23621 else if (errno != EINVAL)
23625 if (setenv ("a", "=", 1) != 0)
23627 else if (strcmp (getenv ("a"), "=") != 0)
23636 if ac_fn_c_try_run
"$LINENO"; then :
23637 gl_cv_func_setenv_works
=yes
23639 gl_cv_func_setenv_works
=no
23641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23647 $as_echo "$gl_cv_func_setenv_works" >&6; }
23648 case "$gl_cv_func_setenv_works" in
23656 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
23665 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
23679 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23694 if test $gl_cv_have_include_next = yes; then
23695 gl_cv_next_signal_h
='<'signal.h
'>'
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23698 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23699 if ${gl_cv_next_signal_h+:} false
; then :
23700 $as_echo_n "(cached) " >&6
23705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23706 /* end confdefs.h. */
23707 #include <signal.h>
23710 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23711 *) gl_absname_cpp
="$ac_cpp" ;;
23716 gl_dirsep_regex
='[/\\]'
23719 gl_dirsep_regex
='\/'
23722 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23723 gl_header_literal_regex
=`echo 'signal.h' \
23724 | sed -e "$gl_make_literal_regex_sed"`
23725 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23726 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23732 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23733 sed -n "$gl_absolute_header_sed"`
23735 gl_header
=$gl_cv_absolute_signal_h
23736 gl_cv_next_signal_h
='"'$gl_header'"'
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23741 $as_echo "$gl_cv_next_signal_h" >&6; }
23743 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23745 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23747 gl_next_as_first_directive
='<'signal.h
'>'
23749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23750 gl_next_as_first_directive
=$gl_cv_next_signal_h
23752 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23758 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23759 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23760 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23761 #include <signal.h>
23764 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
23767 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23776 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23777 #include <signal.h>
23780 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
23783 HAVE_SIGHANDLER_T
=0
23788 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
23789 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23792 if eval \
${$as_gl_Symbol+:} false
; then :
23793 $as_echo_n "(cached) " >&6
23795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h. */
23797 #include <signal.h>
23808 if ac_fn_c_try_compile
"$LINENO"; then :
23809 eval "$as_gl_Symbol=yes"
23811 eval "$as_gl_Symbol=no"
23813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23815 eval ac_res
=\$
$as_gl_Symbol
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23817 $as_echo "$ac_res" >&6; }
23818 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23819 cat >>confdefs.h
<<_ACEOF
23820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23823 eval ac_cv_have_decl_
$gl_func=yes
23828 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23829 /* <sys/types.h> is not needed according to POSIX, but the
23830 <sys/socket.h> in i386-unknown-freebsd4.10 and
23831 powerpc-apple-darwin5.5 required it. */
23832 #include <sys/types.h>
23833 #if HAVE_SYS_SOCKET_H
23834 # include <sys/socket.h>
23835 #elif HAVE_WS2TCPIP_H
23836 # include <ws2tcpip.h>
23840 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23844 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23845 if ${gl_cv_socklen_t_equiv+:} false
; then :
23846 $as_echo_n "(cached) " >&6
23848 # Systems have either "struct sockaddr *" or
23849 # "void *" as the second argument to getpeername
23850 gl_cv_socklen_t_equiv
=
23851 for arg2
in "struct sockaddr" void
; do
23852 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23854 /* end confdefs.h. */
23855 #include <sys/types.h>
23856 #include <sys/socket.h>
23858 int getpeername (int, $arg2 *, $t *);
23863 getpeername (0, 0, &len);
23868 if ac_fn_c_try_compile
"$LINENO"; then :
23869 gl_cv_socklen_t_equiv
="$t"
23871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23872 test "$gl_cv_socklen_t_equiv" != "" && break
23874 test "$gl_cv_socklen_t_equiv" != "" && break
23879 if test "$gl_cv_socklen_t_equiv" = ""; then
23880 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23883 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23885 cat >>confdefs.h
<<_ACEOF
23886 #define socklen_t $gl_cv_socklen_t_equiv
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23893 $as_echo_n "checking for ssize_t... " >&6; }
23894 if ${gt_cv_ssize_t+:} false
; then :
23895 $as_echo_n "(cached) " >&6
23897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23898 /* end confdefs.h. */
23899 #include <sys/types.h>
23903 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23909 if ac_fn_c_try_compile
"$LINENO"; then :
23914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23917 $as_echo "$gt_cv_ssize_t" >&6; }
23918 if test $gt_cv_ssize_t = no
; then
23920 $as_echo "#define ssize_t int" >>confdefs.h
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23934 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23935 if ${gl_cv_func_stat_dir_slash+:} false
; then :
23936 $as_echo_n "(cached) " >&6
23938 if test "$cross_compiling" = yes; then :
23940 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23941 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23945 /* end confdefs.h. */
23946 #include <sys/stat.h>
23951 struct stat st; return stat (".", &st) != stat ("./", &st);
23956 if ac_fn_c_try_run
"$LINENO"; then :
23957 gl_cv_func_stat_dir_slash
=yes
23959 gl_cv_func_stat_dir_slash
=no
23961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23967 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23969 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23970 if ${gl_cv_func_stat_file_slash+:} false
; then :
23971 $as_echo_n "(cached) " >&6
23974 # Assume that if we have lstat, we can also check symlinks.
23975 if test $ac_cv_func_lstat = yes; then
23976 ln -s conftest.tmp conftest.lnk
23978 if test "$cross_compiling" = yes; then :
23980 # Guess yes on glibc systems.
23981 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23982 # If we don't know, assume the worst.
23983 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989 #include <sys/stat.h>
23996 if (!stat ("conftest.tmp/", &st))
23999 if (!stat ("conftest.lnk/", &st))
24008 if ac_fn_c_try_run
"$LINENO"; then :
24009 gl_cv_func_stat_file_slash
=yes
24011 gl_cv_func_stat_file_slash
=no
24013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24014 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24017 rm -f conftest.tmp conftest.lnk
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24020 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24021 case $gl_cv_func_stat_dir_slash in
24022 *no
) REPLACE_STAT
=1
24024 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24027 case $gl_cv_func_stat_file_slash in
24028 *no
) REPLACE_STAT
=1
24030 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24034 if test $REPLACE_STAT = 1; then
24043 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
24058 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
24064 $as_echo_n "checking for working stdalign.h... " >&6; }
24065 if ${gl_cv_header_working_stdalign_h+:} false
; then :
24066 $as_echo_n "(cached) " >&6
24068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24069 /* end confdefs.h. */
24070 #include <stdalign.h>
24071 #include <stddef.h>
24073 /* Test that alignof yields a result consistent with offsetof.
24074 This catches GCC bug 52023
24075 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
24077 template <class t> struct alignof_helper { char a; t b; };
24078 # define ao(type) offsetof (alignof_helper<type>, b)
24080 # define ao(type) offsetof (struct { char a; type b; }, b)
24082 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
24083 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
24084 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
24086 /* Test _Alignas only on platforms where gnulib can help. */
24088 ((defined __cplusplus && 201103 <= __cplusplus) \
24089 || (defined __APPLE__ && defined __MACH__ \
24090 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
24092 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
24093 || __ICC || 0x5110 <= __SUNPRO_C \
24094 || 1300 <= _MSC_VER)
24095 struct alignas_test { char c; char alignas (8) alignas_8; };
24096 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
24108 if ac_fn_c_try_compile
"$LINENO"; then :
24109 gl_cv_header_working_stdalign_h
=yes
24111 gl_cv_header_working_stdalign_h
=no
24113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
24116 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
24118 if test $gl_cv_header_working_stdalign_h = yes; then
24121 STDALIGN_H
='stdalign.h'
24125 if test -n "$STDALIGN_H"; then
24126 GL_GENERATE_STDALIGN_H_TRUE
=
24127 GL_GENERATE_STDALIGN_H_FALSE
='#'
24129 GL_GENERATE_STDALIGN_H_TRUE
='#'
24130 GL_GENERATE_STDALIGN_H_FALSE
=
24137 # Define two additional variables used in the Makefile substitution.
24139 if test "$ac_cv_header_stdbool_h" = yes; then
24142 STDBOOL_H
='stdbool.h'
24145 if test -n "$STDBOOL_H"; then
24146 GL_GENERATE_STDBOOL_H_TRUE
=
24147 GL_GENERATE_STDBOOL_H_FALSE
='#'
24149 GL_GENERATE_STDBOOL_H_TRUE
='#'
24150 GL_GENERATE_STDBOOL_H_FALSE
=
24154 if test "$ac_cv_type__Bool" = yes; then
24165 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
24168 if test "x$ac_cv_type_max_align_t" = xyes
; then :
24171 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
24174 if test $gt_cv_c_wchar_t = no
; then
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24179 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24180 if ${gl_cv_decl_null_works+:} false
; then :
24181 $as_echo_n "(cached) " >&6
24183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #include <stddef.h>
24186 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24196 if ac_fn_c_try_compile
"$LINENO"; then :
24197 gl_cv_decl_null_works
=yes
24199 gl_cv_decl_null_works
=no
24201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24204 $as_echo "$gl_cv_decl_null_works" >&6; }
24205 if test $gl_cv_decl_null_works = no
; then
24210 if test -n "$STDDEF_H"; then
24211 GL_GENERATE_STDDEF_H_TRUE
=
24212 GL_GENERATE_STDDEF_H_FALSE
='#'
24214 GL_GENERATE_STDDEF_H_TRUE
='#'
24215 GL_GENERATE_STDDEF_H_FALSE
=
24218 if test -n "$STDDEF_H"; then
24227 if test $gl_cv_have_include_next = yes; then
24228 gl_cv_next_stddef_h
='<'stddef.h
'>'
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24231 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24232 if ${gl_cv_next_stddef_h+:} false
; then :
24233 $as_echo_n "(cached) " >&6
24238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24239 /* end confdefs.h. */
24240 #include <stddef.h>
24243 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24244 *) gl_absname_cpp
="$ac_cpp" ;;
24249 gl_dirsep_regex
='[/\\]'
24252 gl_dirsep_regex
='\/'
24255 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24256 gl_header_literal_regex
=`echo 'stddef.h' \
24257 | sed -e "$gl_make_literal_regex_sed"`
24258 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24259 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24265 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24266 sed -n "$gl_absolute_header_sed"`
24268 gl_header
=$gl_cv_absolute_stddef_h
24269 gl_cv_next_stddef_h
='"'$gl_header'"'
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24274 $as_echo "$gl_cv_next_stddef_h" >&6; }
24276 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
24278 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24280 gl_next_as_first_directive
='<'stddef.h
'>'
24282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24283 gl_next_as_first_directive
=$gl_cv_next_stddef_h
24285 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24295 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
24306 if test $gl_cv_have_include_next = yes; then
24307 gl_cv_next_stdio_h
='<'stdio.h
'>'
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24310 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24311 if ${gl_cv_next_stdio_h+:} false
; then :
24312 $as_echo_n "(cached) " >&6
24317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24318 /* end confdefs.h. */
24322 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24323 *) gl_absname_cpp
="$ac_cpp" ;;
24328 gl_dirsep_regex
='[/\\]'
24331 gl_dirsep_regex
='\/'
24334 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24335 gl_header_literal_regex
=`echo 'stdio.h' \
24336 | sed -e "$gl_make_literal_regex_sed"`
24337 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24338 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24344 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24345 sed -n "$gl_absolute_header_sed"`
24347 gl_header
=$gl_cv_absolute_stdio_h
24348 gl_cv_next_stdio_h
='"'$gl_header'"'
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24353 $as_echo "$gl_cv_next_stdio_h" >&6; }
24355 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24357 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24359 gl_next_as_first_directive
='<'stdio.h
'>'
24361 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24362 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24364 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24371 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24372 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
24373 $as_echo_n "(cached) " >&6
24375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24378 #define __STDC_FORMAT_MACROS 1
24380 #include <inttypes.h>
24381 /* For non-mingw systems, compilation will trivially succeed.
24382 For mingw, compilation will succeed for older mingw (system
24383 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24384 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
24385 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24386 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24397 if ac_fn_c_try_compile
"$LINENO"; then :
24398 gl_cv_func_printf_attribute_flavor
=system
24400 gl_cv_func_printf_attribute_flavor
=gnu
24402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24405 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24406 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
24408 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24415 cat >>confdefs.h
<<_ACEOF
24416 #define GNULIB_FSCANF 1
24423 cat >>confdefs.h
<<_ACEOF
24424 #define GNULIB_SCANF 1
24449 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
24450 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24452 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24453 if eval \
${$as_gl_Symbol+:} false
; then :
24454 $as_echo_n "(cached) " >&6
24456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24457 /* end confdefs.h. */
24469 if ac_fn_c_try_compile
"$LINENO"; then :
24470 eval "$as_gl_Symbol=yes"
24472 eval "$as_gl_Symbol=no"
24474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24476 eval ac_res
=\$
$as_gl_Symbol
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24478 $as_echo "$ac_res" >&6; }
24479 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24480 cat >>confdefs.h
<<_ACEOF
24481 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24484 eval ac_cv_have_decl_
$gl_func=yes
24499 if test $gl_cv_have_include_next = yes; then
24500 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24503 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24504 if ${gl_cv_next_stdlib_h+:} false
; then :
24505 $as_echo_n "(cached) " >&6
24510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h. */
24512 #include <stdlib.h>
24515 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24516 *) gl_absname_cpp
="$ac_cpp" ;;
24521 gl_dirsep_regex
='[/\\]'
24524 gl_dirsep_regex
='\/'
24527 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24528 gl_header_literal_regex
=`echo 'stdlib.h' \
24529 | sed -e "$gl_make_literal_regex_sed"`
24530 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24531 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24537 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24538 sed -n "$gl_absolute_header_sed"`
24540 gl_header
=$gl_cv_absolute_stdlib_h
24541 gl_cv_next_stdlib_h
='"'$gl_header'"'
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24546 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24548 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24550 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24552 gl_next_as_first_directive
='<'stdlib.h
'>'
24554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24555 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24557 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24564 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
24565 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24567 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24568 if eval \
${$as_gl_Symbol+:} false
; then :
24569 $as_echo_n "(cached) " >&6
24571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24572 /* end confdefs.h. */
24573 #include <stdlib.h>
24574 #if HAVE_SYS_LOADAVG_H
24575 # include <sys/loadavg.h>
24578 # include <random.h>
24590 if ac_fn_c_try_compile
"$LINENO"; then :
24591 eval "$as_gl_Symbol=yes"
24593 eval "$as_gl_Symbol=no"
24595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24597 eval ac_res
=\$
$as_gl_Symbol
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24599 $as_echo "$ac_res" >&6; }
24600 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24601 cat >>confdefs.h
<<_ACEOF
24602 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24605 eval ac_cv_have_decl_
$gl_func=yes
24614 for ac_func
in strchrnul
24616 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24617 if test "x$ac_cv_func_strchrnul" = xyes
; then :
24618 cat >>confdefs.h
<<_ACEOF
24619 #define HAVE_STRCHRNUL 1
24625 if test $ac_cv_func_strchrnul = no
; then
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24629 $as_echo_n "checking whether strchrnul works... " >&6; }
24630 if ${gl_cv_func_strchrnul_works+:} false
; then :
24631 $as_echo_n "(cached) " >&6
24633 if test "$cross_compiling" = yes; then :
24634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24635 /* end confdefs.h. */
24637 #if defined __CYGWIN__
24638 #include <cygwin/version.h>
24639 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24648 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24649 gl_cv_func_strchrnul_works
="guessing yes"
24651 gl_cv_func_strchrnul_works
="guessing no"
24657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h. */
24660 #include <string.h> /* for strchrnul */
24665 const char *buf = "a";
24666 return strchrnul (buf, 'b') != buf + 1;
24672 if ac_fn_c_try_run
"$LINENO"; then :
24673 gl_cv_func_strchrnul_works
=yes
24675 gl_cv_func_strchrnul_works
=no
24677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24684 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24685 case "$gl_cv_func_strchrnul_works" in
24687 *) REPLACE_STRCHRNUL
=1 ;;
24691 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
24700 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
24715 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24729 if test $ac_cv_func_strdup = yes; then
24730 if test $gl_cv_func_malloc_posix != yes; then
24741 if test $ac_cv_have_decl_strdup = no
; then
24745 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
24754 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
24769 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24778 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24780 $as_echo_n "checking for working strerror function... " >&6; }
24781 if ${gl_cv_func_working_strerror+:} false
; then :
24782 $as_echo_n "(cached) " >&6
24784 if test "$cross_compiling" = yes; then :
24786 # Guess yes on glibc systems.
24787 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
24788 # If we don't know, assume the worst.
24789 *) gl_cv_func_working_strerror
="guessing no" ;;
24793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24794 /* end confdefs.h. */
24795 #include <string.h>
24800 if (!*strerror (-2)) return 1;
24805 if ac_fn_c_try_run
"$LINENO"; then :
24806 gl_cv_func_working_strerror
=yes
24808 gl_cv_func_working_strerror
=no
24810 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24811 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24817 $as_echo "$gl_cv_func_working_strerror" >&6; }
24818 case "$gl_cv_func_working_strerror" in
24829 if test $REPLACE_STRERROR = 1; then
24838 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
24843 cat >>confdefs.h
<<_ACEOF
24844 #define GNULIB_STRERROR 1
24859 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24865 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
24874 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
24886 if test $ac_cv_header_sys_socket_h != yes; then
24887 for ac_header
in winsock2.h
24889 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24890 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
24891 cat >>confdefs.h
<<_ACEOF
24892 #define HAVE_WINSOCK2_H 1
24900 if test "$ac_cv_header_winsock2_h" = yes; then
24902 UNISTD_H_HAVE_WINSOCK2_H
=1
24903 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24915 if test $REPLACE_STRSTR = 0; then
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24917 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24918 if ${gl_cv_func_strstr_linear+:} false
; then :
24919 $as_echo_n "(cached) " >&6
24921 if test "$cross_compiling" = yes; then :
24922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24925 #include <features.h>
24926 #ifdef __GNU_LIBRARY__
24927 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24928 && !(defined __i386__ || defined __x86_64__) \
24929 && !defined __UCLIBC__
24934 #include <cygwin/version.h>
24935 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24942 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24943 gl_cv_func_strstr_linear
="guessing yes"
24945 gl_cv_func_strstr_linear
="guessing no"
24951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24952 /* end confdefs.h. */
24955 /* z/OS does not deliver signals while strstr() is running (thanks to
24956 restrictions on its LE runtime), which prevents us from limiting the
24957 running time of this test. */
24958 # error "This test does not work properly on z/OS"
24960 #include <signal.h> /* for signal */
24961 #include <string.h> /* for strstr */
24962 #include <stdlib.h> /* for malloc */
24963 #include <unistd.h> /* for alarm */
24964 static void quit (int sig) { _exit (sig + 128); }
24971 size_t m = 1000000;
24972 char *haystack = (char *) malloc (2 * m + 2);
24973 char *needle = (char *) malloc (m + 2);
24974 /* Failure to compile this test due to missing alarm is okay,
24975 since all such platforms (mingw) also have quadratic strstr. */
24976 signal (SIGALRM, quit);
24978 /* Check for quadratic performance. */
24979 if (haystack && needle)
24981 memset (haystack, 'A', 2 * m);
24982 haystack[2 * m] = 'B';
24983 haystack[2 * m + 1] = 0;
24984 memset (needle, 'A', m);
24987 if (!strstr (haystack, needle))
24996 if ac_fn_c_try_run
"$LINENO"; then :
24997 gl_cv_func_strstr_linear
=yes
24999 gl_cv_func_strstr_linear
=no
25001 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25002 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
25008 $as_echo "$gl_cv_func_strstr_linear" >&6; }
25009 case "$gl_cv_func_strstr_linear" in
25017 if test $REPLACE_STRSTR = 1; then
25026 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
25032 if test "$gl_cv_func_memchr_works" != yes; then
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
25036 $as_echo_n "checking whether strstr works... " >&6; }
25037 if ${gl_cv_func_strstr_works_always+:} false
; then :
25038 $as_echo_n "(cached) " >&6
25040 if test "$cross_compiling" = yes; then :
25041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25042 /* end confdefs.h. */
25044 #ifdef __GNU_LIBRARY__
25045 #include <features.h>
25046 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
25047 || defined __UCLIBC__
25050 #elif defined __CYGWIN__
25051 #include <cygwin/version.h>
25052 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25061 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25062 gl_cv_func_strstr_works_always
="guessing yes"
25064 gl_cv_func_strstr_works_always
="guessing no"
25070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25071 /* end confdefs.h. */
25073 #include <string.h> /* for strstr */
25074 #define P "_EF_BF_BD"
25075 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25076 #define NEEDLE P P P P P
25081 return !!strstr (HAYSTACK, NEEDLE);
25087 if ac_fn_c_try_run
"$LINENO"; then :
25088 gl_cv_func_strstr_works_always
=yes
25090 gl_cv_func_strstr_works_always
=no
25092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
25099 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
25100 case "$gl_cv_func_strstr_works_always" in
25108 if test $REPLACE_STRSTR = 1; then
25117 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
25131 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
25139 for ac_func
in strtok_r
25141 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
25142 if test "x$ac_cv_func_strtok_r" = xyes
; then :
25143 cat >>confdefs.h
<<_ACEOF
25144 #define HAVE_STRTOK_R 1
25150 if test $ac_cv_func_strtok_r = yes; then
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
25153 $as_echo_n "checking whether strtok_r works... " >&6; }
25154 if ${gl_cv_func_strtok_r_works+:} false
; then :
25155 $as_echo_n "(cached) " >&6
25157 if test "$cross_compiling" = yes; then :
25160 # Guess no on glibc systems.
25161 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
25162 *) gl_cv_func_strtok_r_works
="guessing yes";;
25166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h. */
25169 #ifndef __OPTIMIZE__
25170 # define __OPTIMIZE__ 1
25172 #undef __OPTIMIZE_SIZE__
25173 #undef __NO_INLINE__
25174 #include <stdlib.h>
25175 #include <string.h>
25180 static const char dummy[] = "\177\01a";
25181 char delimiters[] = "xxxxxxxx";
25182 char *save_ptr = (char *) dummy;
25183 strtok_r (delimiters, "x", &save_ptr);
25184 strtok_r (NULL, "x", &save_ptr);
25192 if ac_fn_c_try_run
"$LINENO"; then :
25193 gl_cv_func_strtok_r_works
=yes
25195 gl_cv_func_strtok_r_works
=no
25197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
25204 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
25205 case "$gl_cv_func_strtok_r_works" in
25207 UNDEFINE_STRTOK_R
=1
25220 if test $ac_cv_have_decl_strtok_r = no
; then
25221 HAVE_DECL_STRTOK_R
=0
25224 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
25233 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
25250 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
25276 if test $gl_cv_have_include_next = yes; then
25277 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25280 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25281 if ${gl_cv_next_sys_stat_h+:} false
; then :
25282 $as_echo_n "(cached) " >&6
25285 if test $ac_cv_header_sys_stat_h = yes; then
25290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25291 /* end confdefs.h. */
25292 #include <sys/stat.h>
25295 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25296 *) gl_absname_cpp
="$ac_cpp" ;;
25301 gl_dirsep_regex
='[/\\]'
25304 gl_dirsep_regex
='\/'
25307 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25308 gl_header_literal_regex
=`echo 'sys/stat.h' \
25309 | sed -e "$gl_make_literal_regex_sed"`
25310 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25311 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25317 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25318 sed -n "$gl_absolute_header_sed"`
25320 gl_header
=$gl_cv_absolute_sys_stat_h
25321 gl_cv_next_sys_stat_h
='"'$gl_header'"'
25323 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25329 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25331 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
25333 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25335 gl_next_as_first_directive
='<'sys
/stat.h
'>'
25337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25338 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
25340 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
25352 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25354 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25358 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25359 #include <sys/stat.h>
25361 if test "x$ac_cv_type_nlink_t" = xyes
; then :
25365 $as_echo "#define nlink_t int" >>confdefs.h
25371 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
25372 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25374 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25375 if eval \
${$as_gl_Symbol+:} false
; then :
25376 $as_echo_n "(cached) " >&6
25378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h. */
25380 #include <sys/stat.h>
25391 if ac_fn_c_try_compile
"$LINENO"; then :
25392 eval "$as_gl_Symbol=yes"
25394 eval "$as_gl_Symbol=no"
25396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25398 eval ac_res
=\$
$as_gl_Symbol
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25400 $as_echo "$ac_res" >&6; }
25401 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25402 cat >>confdefs.h
<<_ACEOF
25403 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25406 eval ac_cv_have_decl_
$gl_func=yes
25435 if test $gl_cv_have_include_next = yes; then
25436 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25439 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25440 if ${gl_cv_next_sys_uio_h+:} false
; then :
25441 $as_echo_n "(cached) " >&6
25444 if test $ac_cv_header_sys_uio_h = yes; then
25449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25451 #include <sys/uio.h>
25454 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25455 *) gl_absname_cpp
="$ac_cpp" ;;
25460 gl_dirsep_regex
='[/\\]'
25463 gl_dirsep_regex
='\/'
25466 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25467 gl_header_literal_regex
=`echo 'sys/uio.h' \
25468 | sed -e "$gl_make_literal_regex_sed"`
25469 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25470 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25476 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25477 sed -n "$gl_absolute_header_sed"`
25479 gl_header
=$gl_cv_absolute_sys_uio_h
25480 gl_cv_next_sys_uio_h
='"'$gl_header'"'
25482 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25488 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25490 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
25492 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25493 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25494 gl_next_as_first_directive
='<'sys
/uio.h
'>'
25496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25497 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
25499 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
25504 if test $ac_cv_header_sys_uio_h = yes; then
25538 if test $gl_cv_have_include_next = yes; then
25539 gl_cv_next_unistd_h
='<'unistd.h
'>'
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25542 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25543 if ${gl_cv_next_unistd_h+:} false
; then :
25544 $as_echo_n "(cached) " >&6
25547 if test $ac_cv_header_unistd_h = yes; then
25552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25553 /* end confdefs.h. */
25554 #include <unistd.h>
25557 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25558 *) gl_absname_cpp
="$ac_cpp" ;;
25563 gl_dirsep_regex
='[/\\]'
25566 gl_dirsep_regex
='\/'
25569 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25570 gl_header_literal_regex
=`echo 'unistd.h' \
25571 | sed -e "$gl_make_literal_regex_sed"`
25572 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25573 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25579 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25580 sed -n "$gl_absolute_header_sed"`
25582 gl_header
=$gl_cv_absolute_unistd_h
25583 gl_cv_next_unistd_h
='"'$gl_header'"'
25585 gl_cv_next_unistd_h
='<'unistd.h
'>'
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25591 $as_echo "$gl_cv_next_unistd_h" >&6; }
25593 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25595 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25597 gl_next_as_first_directive
='<'unistd.h
'>'
25599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25600 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25602 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25607 if test $ac_cv_header_unistd_h = yes; then
25619 for gl_func
in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sethostname
sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
25620 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25622 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25623 if eval \
${$as_gl_Symbol+:} false
; then :
25624 $as_echo_n "(cached) " >&6
25626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25627 /* end confdefs.h. */
25630 # include <unistd.h>
25632 /* Some systems declare various items in the wrong headers. */
25633 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25634 # include <fcntl.h>
25635 # include <stdio.h>
25636 # include <stdlib.h>
25637 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25651 if ac_fn_c_try_compile
"$LINENO"; then :
25652 eval "$as_gl_Symbol=yes"
25654 eval "$as_gl_Symbol=no"
25656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25658 eval ac_res
=\$
$as_gl_Symbol
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25660 $as_echo "$ac_res" >&6; }
25661 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25662 cat >>confdefs.h
<<_ACEOF
25663 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25666 eval ac_cv_have_decl_
$gl_func=yes
25689 if test $ac_cv_have_decl_unsetenv = no
; then
25690 HAVE_DECL_UNSETENV
=0
25692 for ac_func
in unsetenv
25694 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25695 if test "x$ac_cv_func_unsetenv" = xyes
; then :
25696 cat >>confdefs.h
<<_ACEOF
25697 #define HAVE_UNSETENV 1
25703 if test $ac_cv_func_unsetenv = no
; then
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25708 $as_echo_n "checking for unsetenv() return type... " >&6; }
25709 if ${gt_cv_func_unsetenv_ret+:} false
; then :
25710 $as_echo_n "(cached) " >&6
25712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h. */
25716 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25717 #include <stdlib.h>
25722 int unsetenv (const char *name);
25732 if ac_fn_c_try_compile
"$LINENO"; then :
25733 gt_cv_func_unsetenv_ret
='int'
25735 gt_cv_func_unsetenv_ret
='void'
25737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25740 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25741 if test $gt_cv_func_unsetenv_ret = 'void'; then
25743 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25749 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25750 if ${gl_cv_func_unsetenv_works+:} false
; then :
25751 $as_echo_n "(cached) " >&6
25753 if test "$cross_compiling" = yes; then :
25755 # Guess yes on glibc systems.
25756 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25757 # If we don't know, assume the worst.
25758 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25765 #include <stdlib.h>
25767 extern char **environ;
25773 char entry1[] = "a=1";
25774 char entry2[] = "b=2";
25775 char *env[] = { entry1, entry2, NULL };
25776 if (putenv ((char *) "a=1")) return 1;
25777 if (putenv (entry2)) return 2;
25780 if (getenv ("a")) return 3;
25781 if (!unsetenv ("") || errno != EINVAL) return 4;
25784 if (!getenv ("a")) return 5;
25787 if (getenv ("a")) return 6;
25793 if ac_fn_c_try_run
"$LINENO"; then :
25794 gl_cv_func_unsetenv_works
=yes
25796 gl_cv_func_unsetenv_works
=no
25798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25804 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25805 case "$gl_cv_func_unsetenv_works" in
25813 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25822 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25846 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25868 if test $gl_cv_have_include_next = yes; then
25869 gl_cv_next_wchar_h
='<'wchar.h
'>'
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25872 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25873 if ${gl_cv_next_wchar_h+:} false
; then :
25874 $as_echo_n "(cached) " >&6
25877 if test $ac_cv_header_wchar_h = yes; then
25882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25883 /* end confdefs.h. */
25887 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25888 *) gl_absname_cpp
="$ac_cpp" ;;
25893 gl_dirsep_regex
='[/\\]'
25896 gl_dirsep_regex
='\/'
25899 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25900 gl_header_literal_regex
=`echo 'wchar.h' \
25901 | sed -e "$gl_make_literal_regex_sed"`
25902 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25909 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25910 sed -n "$gl_absolute_header_sed"`
25912 gl_header
=$gl_cv_absolute_wchar_h
25913 gl_cv_next_wchar_h
='"'$gl_header'"'
25915 gl_cv_next_wchar_h
='<'wchar.h
'>'
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25921 $as_echo "$gl_cv_next_wchar_h" >&6; }
25923 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
25925 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25927 gl_next_as_first_directive
='<'wchar.h
'>'
25929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25930 gl_next_as_first_directive
=$gl_cv_next_wchar_h
25932 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
25937 if test $ac_cv_header_wchar_h = yes; then
25947 if test $gt_cv_c_wint_t = yes; then
25955 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth
; do
25956 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25958 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25959 if eval \
${$as_gl_Symbol+:} false
; then :
25960 $as_echo_n "(cached) " >&6
25962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25963 /* end confdefs.h. */
25965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25968 included before <wchar.h>. */
25969 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25970 # include <stddef.h>
25971 # include <stdio.h>
25985 if ac_fn_c_try_compile
"$LINENO"; then :
25986 eval "$as_gl_Symbol=yes"
25988 eval "$as_gl_Symbol=no"
25990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25992 eval ac_res
=\$
$as_gl_Symbol
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25994 $as_echo "$ac_res" >&6; }
25995 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25996 cat >>confdefs.h
<<_ACEOF
25997 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26000 eval ac_cv_have_decl_
$gl_func=yes
26016 if test $ac_cv_func_iswcntrl = yes; then
26024 if test $gt_cv_c_wint_t = yes; then
26046 if test $gl_cv_have_include_next = yes; then
26047 gl_cv_next_wctype_h
='<'wctype.h
'>'
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
26050 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
26051 if ${gl_cv_next_wctype_h+:} false
; then :
26052 $as_echo_n "(cached) " >&6
26055 if test $ac_cv_header_wctype_h = yes; then
26060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26061 /* end confdefs.h. */
26062 #include <wctype.h>
26065 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26066 *) gl_absname_cpp
="$ac_cpp" ;;
26071 gl_dirsep_regex
='[/\\]'
26074 gl_dirsep_regex
='\/'
26077 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26078 gl_header_literal_regex
=`echo 'wctype.h' \
26079 | sed -e "$gl_make_literal_regex_sed"`
26080 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26081 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26087 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26088 sed -n "$gl_absolute_header_sed"`
26090 gl_header
=$gl_cv_absolute_wctype_h
26091 gl_cv_next_wctype_h
='"'$gl_header'"'
26093 gl_cv_next_wctype_h
='<'wctype.h
'>'
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
26099 $as_echo "$gl_cv_next_wctype_h" >&6; }
26101 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
26103 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26105 gl_next_as_first_directive
='<'wctype.h
'>'
26107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26108 gl_next_as_first_directive
=$gl_cv_next_wctype_h
26110 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
26115 if test $ac_cv_header_wctype_h = yes; then
26116 if test $ac_cv_func_iswcntrl = yes; then
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
26118 $as_echo_n "checking whether iswcntrl works... " >&6; }
26119 if ${gl_cv_func_iswcntrl_works+:} false
; then :
26120 $as_echo_n "(cached) " >&6
26123 if test "$cross_compiling" = yes; then :
26124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h. */
26126 #include <stdlib.h>
26127 #if __GNU_LIBRARY__ == 1
26128 Linux libc5 i18n is broken.
26138 if ac_fn_c_try_compile
"$LINENO"; then :
26139 gl_cv_func_iswcntrl_works
="guessing yes"
26141 gl_cv_func_iswcntrl_works
="guessing no"
26143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h. */
26149 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26150 included before <wchar.h>.
26151 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26152 must be included before <wchar.h>. */
26153 #include <stddef.h>
26157 #include <wctype.h>
26158 int main () { return iswprint ('x') == 0; }
26161 if ac_fn_c_try_run
"$LINENO"; then :
26162 gl_cv_func_iswcntrl_works
=yes
26164 gl_cv_func_iswcntrl_works
=no
26166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
26173 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
26181 case "$gl_cv_func_iswcntrl_works" in
26182 *yes) REPLACE_ISWCNTRL
=0 ;;
26183 *) REPLACE_ISWCNTRL
=1 ;;
26187 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
26191 if test $REPLACE_ISWCNTRL = 1; then
26194 for ac_func
in towlower
26196 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
26197 if test "x$ac_cv_func_towlower" = xyes
; then :
26198 cat >>confdefs.h
<<_ACEOF
26199 #define HAVE_TOWLOWER 1
26205 if test $ac_cv_func_towlower = yes; then
26208 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26209 included before <wchar.h>.
26210 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26211 must be included before <wchar.h>. */
26212 #include <stddef.h>
26217 # include <wctype.h>
26221 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
26227 cat >>confdefs.h
<<_ACEOF
26228 #define HAVE_DECL_TOWLOWER $ac_have_decl
26231 if test $ac_cv_have_decl_towlower = yes; then
26240 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
26245 $as_echo_n "checking for wctype_t... " >&6; }
26246 if ${gl_cv_type_wctype_t+:} false
; then :
26247 $as_echo_n "(cached) " >&6
26249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h. */
26251 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26252 included before <wchar.h>.
26253 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26254 must be included before <wchar.h>. */
26255 #include <stddef.h>
26260 # include <wctype.h>
26272 if ac_fn_c_try_compile
"$LINENO"; then :
26273 gl_cv_type_wctype_t
=yes
26275 gl_cv_type_wctype_t
=no
26277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
26281 $as_echo "$gl_cv_type_wctype_t" >&6; }
26282 if test $gl_cv_type_wctype_t = no
; then
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
26287 $as_echo_n "checking for wctrans_t... " >&6; }
26288 if ${gl_cv_type_wctrans_t+:} false
; then :
26289 $as_echo_n "(cached) " >&6
26291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26293 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26294 included before <wchar.h>.
26295 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26296 must be included before <wchar.h>. */
26297 #include <stddef.h>
26301 #include <wctype.h>
26312 if ac_fn_c_try_compile
"$LINENO"; then :
26313 gl_cv_type_wctrans_t
=yes
26315 gl_cv_type_wctrans_t
=no
26317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
26321 $as_echo "$gl_cv_type_wctrans_t" >&6; }
26322 if test $gl_cv_type_wctrans_t = no
; then
26327 for gl_func
in wctype iswctype wctrans towctrans
; do
26328 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26330 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26331 if eval \
${$as_gl_Symbol+:} false
; then :
26332 $as_echo_n "(cached) " >&6
26334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26337 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26339 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26340 included before <wchar.h>. */
26341 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26342 # include <stddef.h>
26343 # include <stdio.h>
26345 # include <wchar.h>
26347 #include <wctype.h>
26358 if ac_fn_c_try_compile
"$LINENO"; then :
26359 eval "$as_gl_Symbol=yes"
26361 eval "$as_gl_Symbol=no"
26363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26365 eval ac_res
=\$
$as_gl_Symbol
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26367 $as_echo "$ac_res" >&6; }
26368 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26369 cat >>confdefs.h
<<_ACEOF
26370 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26373 eval ac_cv_have_decl_
$gl_func=yes
26378 # End of code from modules
26399 gl_source_base
='tests'
26400 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
26402 gl_module_indicator_condition
=$gltests_WITNESS
26412 LIBGNU_LIBDEPS
="$gl_libdeps"
26414 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26418 # We don't use automake, but gnulib does. This line lets us generate
26420 am__api_version
='1.15'
26422 # Find a good install program. We prefer a C program (faster),
26423 # so one script is as good as another. But avoid the broken or
26424 # incompatible versions:
26425 # SysV /etc/install, /usr/sbin/install
26426 # SunOS /usr/etc/install
26427 # IRIX /sbin/install
26429 # AmigaOS /C/install, which installs bootblocks on floppy discs
26430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26433 # OS/2's system install, which has a completely different semantic
26434 # ./install, which can be erroneously created by make from ./install.sh.
26435 # Reject install programs that cannot install multiple files.
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26437 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26438 if test -z "$INSTALL"; then
26439 if ${ac_cv_path_install+:} false
; then :
26440 $as_echo_n "(cached) " >&6
26442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26443 for as_dir
in $PATH
26446 test -z "$as_dir" && as_dir
=.
26447 # Account for people who put trailing slashes in PATH elements.
26448 case $as_dir/ in #((
26449 .
/ | .
// |
/[cC
]/* | \
26450 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
26451 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
26454 # OSF1 and SCO ODT 3.0 have their own names for install.
26455 # Don't use installbsd from OSF since it installs stuff as root
26457 for ac_prog
in ginstall scoinst
install; do
26458 for ac_exec_ext
in '' $ac_executable_extensions; do
26459 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
26460 if test $ac_prog = install &&
26461 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26462 # AIX install. It has an incompatible calling convention.
26464 elif test $ac_prog = install &&
26465 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26466 # program-specific install script used by HP pwplus--don't use.
26469 rm -rf conftest.one conftest.two conftest.dir
26470 echo one
> conftest.one
26471 echo two
> conftest.two
26473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
26474 test -s conftest.one
&& test -s conftest.two
&&
26475 test -s conftest.dir
/conftest.one
&&
26476 test -s conftest.dir
/conftest.two
26478 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
26491 rm -rf conftest.one conftest.two conftest.dir
26494 if test "${ac_cv_path_install+set}" = set; then
26495 INSTALL
=$ac_cv_path_install
26497 # As a last resort, use the slow shell script. Don't cache a
26498 # value for INSTALL within a source directory, because that will
26499 # break other packages using the cache if that directory is
26500 # removed, or if the value is a relative name.
26501 INSTALL
=$ac_install_sh
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26505 $as_echo "$INSTALL" >&6; }
26507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26508 # It thinks the first close brace ends the variable substitution.
26509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
26511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
26513 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26516 $as_echo_n "checking whether build environment is sane... " >&6; }
26517 # Reject unsafe characters in $srcdir or the absolute working directory
26518 # name. Accept space and tab only in the latter.
26522 *[\\\"\
#\$\&\'\`$am_lf]*)
26523 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
26526 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
26527 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26530 # Do 'set' in a subshell so we don't clobber the current shell's
26531 # arguments. Must try -L first in case configure is actually a
26532 # symlink; some systems play weird games with the mod time of symlinks
26533 # (eg FreeBSD returns the mod time of the symlink's containing
26537 for am_try
in 1 2; do
26538 echo "timestamp, slept: $am_has_slept" > conftest.
file
26539 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26540 if test "$*" = "X"; then
26542 set X
`ls -t "$srcdir/configure" conftest.file`
26544 if test "$*" != "X $srcdir/configure conftest.file" \
26545 && test "$*" != "X conftest.file $srcdir/configure"; then
26547 # If neither matched, then we have a broken ls. This can happen
26548 # if, for instance, CONFIG_SHELL is bash and it inherits a
26549 # broken ls alias from the environment. This has actually
26550 # happened. Such a system could not be considered "sane".
26551 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
26552 alias in your environment" "$LINENO" 5
26554 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
26561 test "$2" = conftest.
file
26567 as_fn_error $?
"newly created file is older than distributed files!
26568 Check your system clock" "$LINENO" 5
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26571 $as_echo "yes" >&6; }
26572 # If we didn't sleep, we still need to ensure time stamps of config.status and
26573 # generated files are strictly newer.
26575 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
26580 rm -f conftest.
file
26582 test "$program_prefix" != NONE
&&
26583 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
26584 # Use a double $ so make ignores it.
26585 test "$program_suffix" != NONE
&&
26586 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
26587 # Double any \ or $.
26588 # By default was `s,x,x', remove it if useless.
26589 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
26590 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
26592 if test x
"${MISSING+set}" != xset
; then
26593 case $am_aux_dir in
26595 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
26597 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
26600 # Use eval to expand $SHELL
26601 if eval "$MISSING --is-lightweight"; then
26602 am_missing_run
="$MISSING "
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26606 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26609 if test x
"${install_sh+set}" != xset
; then
26610 case $am_aux_dir in
26612 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
26614 install_sh
="\${SHELL} $am_aux_dir/install-sh"
26618 # Installed binaries are usually stripped using 'strip' when the user
26619 # run "make install-strip". However 'strip' might not be the right
26620 # tool to use in cross-compilation environments, therefore Automake
26621 # will honor the 'STRIP' environment variable to overrule this program.
26622 if test "$cross_compiling" != no
; then
26623 if test -n "$ac_tool_prefix"; then
26624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26625 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26627 $as_echo_n "checking for $ac_word... " >&6; }
26628 if ${ac_cv_prog_STRIP+:} false
; then :
26629 $as_echo_n "(cached) " >&6
26631 if test -n "$STRIP"; then
26632 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
26634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26635 for as_dir
in $PATH
26638 test -z "$as_dir" && as_dir
=.
26639 for ac_exec_ext
in '' $ac_executable_extensions; do
26640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26641 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
26642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26651 STRIP
=$ac_cv_prog_STRIP
26652 if test -n "$STRIP"; then
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26654 $as_echo "$STRIP" >&6; }
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657 $as_echo "no" >&6; }
26662 if test -z "$ac_cv_prog_STRIP"; then
26664 # Extract the first word of "strip", so it can be a program name with args.
26665 set dummy strip
; ac_word
=$2
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26667 $as_echo_n "checking for $ac_word... " >&6; }
26668 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
26669 $as_echo_n "(cached) " >&6
26671 if test -n "$ac_ct_STRIP"; then
26672 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
26674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26675 for as_dir
in $PATH
26678 test -z "$as_dir" && as_dir
=.
26679 for ac_exec_ext
in '' $ac_executable_extensions; do
26680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26681 ac_cv_prog_ac_ct_STRIP
="strip"
26682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26691 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
26692 if test -n "$ac_ct_STRIP"; then
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26694 $as_echo "$ac_ct_STRIP" >&6; }
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 $as_echo "no" >&6; }
26700 if test "x$ac_ct_STRIP" = x
; then
26703 case $cross_compiling:$ac_tool_warned in
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26707 ac_tool_warned
=yes ;;
26712 STRIP
="$ac_cv_prog_STRIP"
26716 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
26718 for ac_prog
in gawk mawk nawk
awk
26720 # Extract the first word of "$ac_prog", so it can be a program name with args.
26721 set dummy
$ac_prog; ac_word
=$2
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26723 $as_echo_n "checking for $ac_word... " >&6; }
26724 if ${ac_cv_prog_AWK+:} false
; then :
26725 $as_echo_n "(cached) " >&6
26727 if test -n "$AWK"; then
26728 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
26730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26731 for as_dir
in $PATH
26734 test -z "$as_dir" && as_dir
=.
26735 for ac_exec_ext
in '' $ac_executable_extensions; do
26736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26737 ac_cv_prog_AWK
="$ac_prog"
26738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26747 AWK
=$ac_cv_prog_AWK
26748 if test -n "$AWK"; then
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26750 $as_echo "$AWK" >&6; }
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26753 $as_echo "no" >&6; }
26757 test -n "$AWK" && break
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26761 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26763 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26764 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
26765 $as_echo_n "(cached) " >&6
26767 cat >conftest.
make <<\_ACEOF
26770 @
echo '@@@%%%=$(MAKE)=@@@%%%'
26772 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26773 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26774 *@@@
%%%=?
*=@@@
%%%*)
26775 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
26777 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
26779 rm -f conftest.
make
26781 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26783 $as_echo "yes" >&6; }
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787 $as_echo "no" >&6; }
26788 SET_MAKE
="MAKE=${MAKE-make}"
26791 rm -rf .tst
2>/dev
/null
26792 mkdir .tst
2>/dev
/null
26793 if test -d .tst
; then
26798 rmdir .tst
2>/dev
/null
26800 DEPDIR
="${am__leading_dot}deps"
26802 ac_config_commands
="$ac_config_commands depfiles"
26805 am_make
=${MAKE-make}
26806 cat > confinc
<< 'END'
26808 @
echo this is the am__doit target
26811 # If we don't find an include directive, just comment out the code.
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26817 # First try GNU make style include.
26818 echo "include confinc" > confmf
26819 # Ignore all kinds of additional output from 'make'.
26820 case `$am_make -s -f confmf 2> /dev/null` in #(
26821 *the\ am__doit\ target
*)
26822 am__include
=include
26827 # Now try BSD make style include.
26828 if test "$am__include" = "#"; then
26829 echo '.include "confinc"' > confmf
26830 case `$am_make -s -f confmf 2> /dev/null` in #(
26831 *the\ am__doit\ target
*)
26832 am__include
=.include
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26841 $as_echo "$_am_result" >&6; }
26842 rm -f confinc confmf
26844 # Check whether --enable-dependency-tracking was given.
26845 if test "${enable_dependency_tracking+set}" = set; then :
26846 enableval
=$enable_dependency_tracking;
26849 if test "x$enable_dependency_tracking" != xno
; then
26850 am_depcomp
="$ac_aux_dir/depcomp"
26854 if test "x$enable_dependency_tracking" != xno; then
26863 # Check whether --enable-silent-rules was given.
26864 if test "${enable_silent_rules+set}" = set; then :
26865 enableval
=$enable_silent_rules;
26868 case $enable_silent_rules in # (((
26869 yes) AM_DEFAULT_VERBOSITY
=0;;
26870 no
) AM_DEFAULT_VERBOSITY
=1;;
26871 *) AM_DEFAULT_VERBOSITY
=1;;
26873 am_make
=${MAKE-make}
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26875 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26876 if ${am_cv_make_support_nested_variables+:} false
; then :
26877 $as_echo_n "(cached) " >&6
26879 if $as_echo 'TRUE=$(BAR$(V))
26885 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26886 am_cv_make_support_nested_variables
=yes
26888 am_cv_make_support_nested_variables
=no
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26892 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26893 if test $am_cv_make_support_nested_variables = yes; then
26895 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26897 AM_V
=$AM_DEFAULT_VERBOSITY
26898 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26902 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26903 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26904 # is not polluted with repeated "-I."
26905 am__isrc
=' -I$(srcdir)'
26906 # test to see if srcdir already configured
26907 if test -f $srcdir/config.status
; then
26908 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26912 # test whether we have cygpath
26913 if test -z "$CYGPATH_W"; then
26914 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
26915 CYGPATH_W
='cygpath -w'
26922 # Define the identity of the package.
26924 VERSION
='UNUSED-VERSION'
26927 # Some tools Automake needs.
26929 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26932 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
26935 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26938 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
26941 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
26943 # For better backward compatibility. To be removed once Automake 1.9.x
26944 # dies out for good. For more background, see:
26945 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26946 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26947 mkdir_p
='$(MKDIR_P)'
26949 # We need awk for the "check" target (and possibly the TAP driver). The
26950 # system "awk" is bad on some platforms.
26951 # Always define AMTAR for backward compatibility. Yes, it's still used
26952 # in the wild :-( We should find a proper way to deprecate it ...
26953 AMTAR
='$${TAR-tar}'
26956 # We'll loop over all known methods to create a tar archive until one works.
26957 _am_tools
='gnutar pax cpio none'
26959 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
26965 depcc
="$CC" am_compiler_list
=
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26968 $as_echo_n "checking dependency style of $depcc... " >&6; }
26969 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
26970 $as_echo_n "(cached) " >&6
26972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26973 # We make a subdir and do the tests there. Otherwise we can end up
26974 # making bogus files that we don't know about and never remove. For
26975 # instance it was reported that on HP-UX the gcc test will end up
26976 # making a dummy file named 'D' -- because '-MD' means "put the output
26978 rm -rf conftest.dir
26980 # Copy depcomp to subdir because otherwise we won't find it if we're
26981 # using a relative directory.
26982 cp "$am_depcomp" conftest.dir
26984 # We will build objects and dependencies in a subdirectory because
26985 # it helps to detect inapplicable dependency modes. For instance
26986 # both Tru64's cc and ICC support -MD to output dependencies as a
26987 # side effect of compilation, but ICC will put the dependencies in
26988 # the current directory while Tru64 will put them in the object
26992 am_cv_CC_dependencies_compiler_type
=none
26993 if test "$am_compiler_list" = ""; then
26994 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26996 am__universal
=false
26997 case " $depcc " in #(
26998 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
27001 for depmode
in $am_compiler_list; do
27002 # Setup a source with many dependencies, because some compilers
27003 # like to wrap large dependency lists on column 80 (with \), and
27004 # we should not choose a depcomp mode which is confused by this.
27006 # We need to recreate these files for each test, as the compiler may
27007 # overwrite some of them when testing with obscure command lines.
27008 # This happens at least with the AIX C compiler.
27010 for i
in 1 2 3 4 5 6; do
27011 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
27012 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27013 # Solaris 10 /bin/sh.
27014 echo '/* dummy */' > sub
/conftst
$i.h
27016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27018 # We check with '-c' and '-o' for the sake of the "dashmstdout"
27019 # mode. It turns out that the SunPro C++ compiler does not properly
27020 # handle '-M -o', and we need to detect this. Also, some Intel
27021 # versions had trouble with output in subdirs.
27022 am__obj
=sub
/conftest.
${OBJEXT-o}
27023 am__minus_obj
="-o $am__obj"
27026 # This depmode causes a compiler race in universal mode.
27027 test "$am__universal" = false ||
continue
27030 # After this tag, mechanisms are not by side-effect, so they'll
27031 # only be used when explicitly requested.
27032 if test "x$enable_dependency_tracking" = xyes
; then
27038 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
27039 # This compiler won't grok '-c -o', but also, the minuso test has
27040 # not run yet. These depmodes are late enough in the game, and
27041 # so weak that their functioning should not be impacted.
27042 am__obj
=conftest.
${OBJEXT-o}
27047 if depmode
=$depmode \
27048 source=sub
/conftest.c object
=$am__obj \
27049 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
27050 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
27051 >/dev
/null
2>conftest.err
&&
27052 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
27053 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
27054 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
27055 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
27056 # icc doesn't choke on unknown options, it will just issue warnings
27057 # or remarks (even with -Werror). So we grep stderr for any message
27058 # that says an option was ignored or not supported.
27059 # When given -MP, icc 7.0 and 7.1 complain thusly:
27060 # icc: Command line warning: ignoring option '-M'; no argument required
27061 # The diagnosis changed in icc 8.0:
27062 # icc: Command line remark: option '-MP' not supported
27063 if (grep 'ignoring option' conftest.err ||
27064 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
27065 am_cv_CC_dependencies_compiler_type
=$depmode
27072 rm -rf conftest.dir
27074 am_cv_CC_dependencies_compiler_type
=none
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
27079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
27080 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
27083 test "x$enable_dependency_tracking" != xno \
27084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
27085 am__fastdepCC_TRUE
=
27086 am__fastdepCC_FALSE
='#'
27088 am__fastdepCC_TRUE
='#'
27089 am__fastdepCC_FALSE
=
27094 # POSIX will say in a future version that running "rm -f" with no argument
27095 # is OK; and we want to be able to make that assumption in our Makefile
27096 # recipes. So use an aggressive probe to check that the usage we want is
27097 # actually supported "in the wild" to an acceptable degree.
27098 # See automake bug#10828.
27099 # To make any issue more visible, cause the running configure to be aborted
27100 # by default if the 'rm' program in use doesn't match our expectations; the
27101 # user can still override this though.
27102 if rm -f && rm -fr && rm -rf; then : OK
; else
27106 Your 'rm' program seems unable to run without file operands specified
27107 on the command line, even when the '-f' option is present. This is contrary
27108 to the behaviour of most rm programs out there, and not conforming with
27109 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
27111 Please tell bug-automake@gnu.org about your system, including the value
27112 of your $PATH and any error possibly output before this message. This
27113 can help us improve future automake versions.
27116 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
27117 echo 'Configuration will proceed anyway, since you have set the' >&2
27118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
27122 Aborting the configuration process, to ensure you take notice of the issue.
27124 You can download and install GNU coreutils to get an 'rm' implementation
27125 that behaves properly: <http://www.gnu.org/software/coreutils/>.
27127 If you want to complete the configuration process using your problematic
27128 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
27129 to "yes", and re-run configure.
27132 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
27137 # Check whether --enable-silent-rules was given.
27138 if test "${enable_silent_rules+set}" = set; then :
27139 enableval
=$enable_silent_rules;
27142 case $enable_silent_rules in # (((
27143 yes) AM_DEFAULT_VERBOSITY
=0;;
27144 no
) AM_DEFAULT_VERBOSITY
=1;;
27145 *) AM_DEFAULT_VERBOSITY
=0;;
27147 am_make
=${MAKE-make}
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
27149 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
27150 if ${am_cv_make_support_nested_variables+:} false
; then :
27151 $as_echo_n "(cached) " >&6
27153 if $as_echo 'TRUE=$(BAR$(V))
27159 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
27160 am_cv_make_support_nested_variables
=yes
27162 am_cv_make_support_nested_variables
=no
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
27166 $as_echo "$am_cv_make_support_nested_variables" >&6; }
27167 if test $am_cv_make_support_nested_variables = yes; then
27169 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
27171 AM_V
=$AM_DEFAULT_VERBOSITY
27172 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
27177 # --------------------- #
27178 # Checks for programs. #
27179 # --------------------- #
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
27183 $as_echo_n "checking whether ln -s works... " >&6; }
27185 if test "$LN_S" = "ln -s"; then
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27187 $as_echo "yes" >&6; }
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
27190 $as_echo "no, using $LN_S" >&6; }
27193 if test -n "$ac_tool_prefix"; then
27194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
27195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27197 $as_echo_n "checking for $ac_word... " >&6; }
27198 if ${ac_cv_prog_RANLIB+:} false; then :
27199 $as_echo_n "(cached) " >&6
27201 if test -n "$RANLIB"; then
27202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27205 for as_dir in $PATH
27208 test -z "$as_dir" && as_dir=.
27209 for ac_exec_ext in '' $ac_executable_extensions; do
27210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
27212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27221 RANLIB=$ac_cv_prog_RANLIB
27222 if test -n "$RANLIB"; then
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
27224 $as_echo "$RANLIB" >&6; }
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27227 $as_echo "no" >&6; }
27232 if test -z "$ac_cv_prog_RANLIB"; then
27233 ac_ct_RANLIB=$RANLIB
27234 # Extract the first word of "ranlib", so it can be a program name with args.
27235 set dummy ranlib; ac_word=$2
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27237 $as_echo_n "checking for $ac_word... " >&6; }
27238 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
27239 $as_echo_n "(cached) " >&6
27241 if test -n "$ac_ct_RANLIB"; then
27242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245 for as_dir in $PATH
27248 test -z "$as_dir" && as_dir=.
27249 for ac_exec_ext in '' $ac_executable_extensions; do
27250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27251 ac_cv_prog_ac_ct_RANLIB="ranlib"
27252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
27262 if test -n "$ac_ct_RANLIB"; then
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
27264 $as_echo "$ac_ct_RANLIB" >&6; }
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27267 $as_echo "no" >&6; }
27270 if test "x$ac_ct_RANLIB" = x; then
27273 case $cross_compiling:$ac_tool_warned in
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27277 ac_tool_warned=yes ;;
27279 RANLIB=$ac_ct_RANLIB
27282 RANLIB="$ac_cv_prog_RANLIB"
27286 if test -n "$ac_tool_prefix"; then
27287 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
27288 set dummy ${ac_tool_prefix}ar; ac_word=$2
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27290 $as_echo_n "checking for $ac_word... " >&6; }
27291 if ${ac_cv_prog_AR+:} false; then :
27292 $as_echo_n "(cached) " >&6
27294 if test -n "$AR"; then
27295 ac_cv_prog_AR="$AR" # Let the user override the test.
27297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27298 for as_dir in $PATH
27301 test -z "$as_dir" && as_dir=.
27302 for ac_exec_ext in '' $ac_executable_extensions; do
27303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27304 ac_cv_prog_AR="${ac_tool_prefix}ar"
27305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27315 if test -n "$AR"; then
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27317 $as_echo "$AR" >&6; }
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27320 $as_echo "no" >&6; }
27325 if test -z "$ac_cv_prog_AR"; then
27327 # Extract the first word of "ar", so it can be a program name with args.
27328 set dummy ar; ac_word=$2
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27330 $as_echo_n "checking for $ac_word... " >&6; }
27331 if ${ac_cv_prog_ac_ct_AR+:} false; then :
27332 $as_echo_n "(cached) " >&6
27334 if test -n "$ac_ct_AR"; then
27335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
27337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27338 for as_dir in $PATH
27341 test -z "$as_dir" && as_dir=.
27342 for ac_exec_ext in '' $ac_executable_extensions; do
27343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27344 ac_cv_prog_ac_ct_AR="ar"
27345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27354 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27355 if test -n "$ac_ct_AR"; then
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27357 $as_echo "$ac_ct_AR" >&6; }
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27360 $as_echo "no" >&6; }
27363 if test "x$ac_ct_AR" = x; then
27366 case $cross_compiling:$ac_tool_warned in
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27370 ac_tool_warned=yes ;;
27375 AR="$ac_cv_prog_AR"
27379 # ---------------------- #
27380 # Checks for libraries. #
27381 # ---------------------- #
27383 ac_config_files="$ac_config_files Makefile import/Makefile"
27385 ac_config_commands="$ac_config_commands default"
27387 cat >confcache <<\_ACEOF
27388 # This file is a shell script that caches the results of configure
27389 # tests run on this system so they can be shared between configure
27390 # scripts and configure runs, see configure's option
--config-cache.
27391 # It is not useful on other systems. If it contains results you don't
27392 # want to keep, you may remove or edit it.
27394 # config.status only pays attention to the cache file if you give it
27395 # the --recheck option to rerun configure.
27397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27399 # following values.
27403 # The following way of writing the cache mishandles newlines in values,
27404 # but we know of no workaround that is simple, portable, and efficient.
27405 # So, we kill variables containing newlines.
27406 # Ultrix sh set writes to stderr and can't be redirected directly,
27407 # and sets the high bit in the cache file unless we assign to the vars.
27409 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27410 eval ac_val
=\$
$ac_var
27414 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27418 _ | IFS | as_nl
) ;; #(
27419 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27420 *) { eval $ac_var=; unset $ac_var;} ;;
27426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27427 *${as_nl}ac_space
=\
*)
27428 # `set' does not quote correctly, so add quotes: double-quote
27429 # substitution turns \\\\ into \\, and sed turns \\ into \.
27432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27435 # `set' quotes correctly as required by POSIX, so do not add quotes.
27436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27449 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27450 if test -w "$cache_file"; then
27451 if test "x$cache_file" != "x/dev/null"; then
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27453 $as_echo "$as_me: updating cache $cache_file" >&6;}
27454 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
27455 cat confcache
>"$cache_file"
27457 case $cache_file in #(
27459 mv -f confcache
"$cache_file"$$
&&
27460 mv -f "$cache_file"$$
"$cache_file" ;; #(
27462 mv -f confcache
"$cache_file" ;;
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27473 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27474 # Let make expand exec_prefix.
27475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27477 DEFS
=-DHAVE_CONFIG_H
27481 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27482 # 1. Remove the extension, and $U if already installed.
27483 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27484 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27486 # will be set to the directory where LIBOBJS objects are built.
27487 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27488 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27490 LIBOBJS
=$ac_libobjs
27492 LTLIBOBJS
=$ac_ltlibobjs
27495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27496 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
27497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27499 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27500 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
27501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27503 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27504 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27507 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27508 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27511 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27512 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27515 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27516 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27519 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27520 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
27521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27523 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27524 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27527 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27528 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27531 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27532 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
27533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27537 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27538 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27541 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27542 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27545 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27546 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27549 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27550 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27556 if test -n "$gl_LIBOBJS"; then
27557 # Remove the extension.
27558 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27559 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27560 gl_libobjs
="$gl_libobjs $i.$ac_objext"
27561 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
27564 gl_LIBOBJS
=$gl_libobjs
27566 gl_LTLIBOBJS
=$gl_ltlibobjs
27572 if test -n "$gltests_LIBOBJS"; then
27573 # Remove the extension.
27574 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27575 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27576 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
27577 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
27580 gltests_LIBOBJS
=$gltests_libobjs
27582 gltests_LTLIBOBJS
=$gltests_ltlibobjs
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27586 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27587 if test -n "$am_sleep_pid"; then
27588 # Hide warnings about reused PIDs.
27589 wait $am_sleep_pid 2>/dev
/null
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27592 $as_echo "done" >&6; }
27593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27594 as_fn_error $?
"conditional \"AMDEP\" was never defined.
27595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27598 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
27599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27601 if test -n "$EXEEXT"; then
27603 am__EXEEXT_FALSE
='#'
27605 am__EXEEXT_TRUE
='#'
27610 : "${CONFIG_STATUS=./config.status}"
27612 ac_clean_files_save
=$ac_clean_files
27613 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27619 # Generated by $as_me.
27620 # Run this file to recreate the current configuration.
27621 # Compiler output produced by configure, useful for debugging
27622 # configure, is in config.log if it exists.
27625 ac_cs_recheck=false
27628 SHELL=\${CONFIG_SHELL-$SHELL}
27631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27632 ## -------------------- ##
27633 ## M4sh Initialization. ##
27634 ## -------------------- ##
27636 # Be more Bourne compatible
27637 DUALCASE
=1; export DUALCASE
# for MKS sh
27638 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27642 # is contrary to our usage. Disable this feature.
27643 alias -g '${1+"$@"}'='"$@"'
27644 setopt NO_GLOB_SUBST
27646 case `(set -o) 2>/dev/null` in #(
27658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27659 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27662 # Prefer a ksh shell builtin over an external printf program on Solaris,
27663 # but without wasting forks for bash or zsh.
27664 if test -z "$BASH_VERSION$ZSH_VERSION" \
27665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27666 as_echo='print
-r --'
27667 as_echo_n='print
-rn --'
27668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27669 as_echo='printf %s
\n'
27670 as_echo_n='printf %s
'
27672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27673 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27674 as_echo_n='/usr
/ucb
/echo -n'
27676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27677 as_echo_n_body='eval
27681 expr "X$arg" : "X\\(.*\\)$as_nl";
27682 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27684 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27686 export as_echo_n_body
27687 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27689 export as_echo_body
27690 as_echo='sh
-c $as_echo_body as_echo
'
27693 # The user is always right.
27694 if test "${PATH_SEPARATOR+set}" != set; then
27696 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27697 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27704 # We need space, tab and new line, in precisely that order. Quoting is
27705 # there to prevent editors from complaining about space-tab.
27706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27707 # splitting by setting IFS to empty value.)
27710 # Find who we are. Look in the path if we contain no directory separator.
27713 *[\\/]* ) as_myself=$0 ;;
27714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27715 for as_dir in $PATH
27718 test -z "$as_dir" && as_dir=.
27719 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27725 # We did not find ourselves, most probably we were run as `sh COMMAND'
27726 # in which case we are not to be found in the path.
27727 if test "x$as_myself" = x
; then
27730 if test ! -f "$as_myself"; then
27731 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27735 # Unset variables that we do not need and which cause bugs (e.g. in
27736 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27737 # suppresses any "Segmentation fault" message there. '((' could
27738 # trigger a bug in pdksh 5.2.14.
27739 for as_var
in BASH_ENV ENV MAIL MAILPATH
27740 do eval test x\
${$as_var+set} = xset \
27741 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27754 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27757 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27758 # ----------------------------------------
27759 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27760 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27761 # script with STATUS, using 1 if that was 0.
27764 as_status
=$1; test $as_status -eq 0 && as_status
=1
27766 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27767 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27769 $as_echo "$as_me: error: $2" >&2
27770 as_fn_exit
$as_status
27774 # as_fn_set_status STATUS
27775 # -----------------------
27776 # Set $? to STATUS, without forking.
27777 as_fn_set_status
()
27780 } # as_fn_set_status
27782 # as_fn_exit STATUS
27783 # -----------------
27784 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27788 as_fn_set_status
$1
27794 # Portably unset VAR.
27797 { eval $1=; unset $1;}
27799 as_unset
=as_fn_unset
27800 # as_fn_append VAR VALUE
27801 # ----------------------
27802 # Append the text in VALUE to the end of the definition contained in VAR. Take
27803 # advantage of any shell optimizations that allow amortized linear growth over
27804 # repeated appends, instead of the typical quadratic growth present in naive
27806 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27807 eval 'as_fn_append ()
27818 # as_fn_arith ARG...
27819 # ------------------
27820 # Perform arithmetic evaluation on the ARGs, and store the result in the
27821 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27822 # must be portable across $(()) and expr.
27823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27824 eval 'as_fn_arith ()
27831 as_val
=`expr "$@" || test $? -eq 1`
27836 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27837 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27843 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27844 as_basename
=basename
27849 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27855 as_me
=`$as_basename -- "$0" ||
27856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27857 X"$0" : 'X\(//\)$' \| \
27858 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27860 sed '/^.*\/\([^/][^/]*\)\/*$/{
27874 # Avoid depending upon Character Ranges.
27875 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27876 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27877 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27878 as_cr_digits
='0123456789'
27879 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27881 ECHO_C
= ECHO_N
= ECHO_T
=
27882 case `echo -n x` in #(((((
27884 case `echo 'xy\c'` in
27885 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27887 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27894 rm -f conf$$ conf$$.exe conf$$.
file
27895 if test -d conf$$.dir
; then
27896 rm -f conf$$.dir
/conf$$.
file
27899 mkdir conf$$.dir
2>/dev
/null
27901 if (echo >conf$$.
file) 2>/dev
/null
; then
27902 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27904 # ... but there are two gotchas:
27905 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27906 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27907 # In both cases, we have to default to `cp -pR'.
27908 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27910 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27918 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27919 rmdir conf$$.dir
2>/dev
/null
27924 # Create "$as_dir" as a directory, including parents if necessary.
27929 -*) as_dir
=.
/$as_dir;;
27931 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27935 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27936 *) as_qdir
=$as_dir;;
27938 as_dirs
="'$as_qdir' $as_dirs"
27939 as_dir
=`$as_dirname -- "$as_dir" ||
27940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27941 X"$as_dir" : 'X\(//\)[^/]' \| \
27942 X"$as_dir" : 'X\(//\)$' \| \
27943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27944 $as_echo X"$as_dir" |
27945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27949 /^X\(\/\/\)[^/].*/{
27962 test -d "$as_dir" && break
27964 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27965 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
27969 if mkdir
-p .
2>/dev
/null
; then
27970 as_mkdir_p
='mkdir -p "$as_dir"'
27972 test -d .
/-p && rmdir .
/-p
27977 # as_fn_executable_p FILE
27978 # -----------------------
27979 # Test if FILE is an executable regular file.
27980 as_fn_executable_p
()
27982 test -f "$1" && test -x "$1"
27983 } # as_fn_executable_p
27984 as_test_x
='test -x'
27985 as_executable_p
=as_fn_executable_p
27987 # Sed expression to map a string onto a valid CPP name.
27988 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27990 # Sed expression to map a string onto a valid variable name.
27991 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27995 ## ----------------------------------- ##
27996 ## Main body of $CONFIG_STATUS script. ##
27997 ## ----------------------------------- ##
27999 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28002 # Save the log message, to keep $0 and so on meaningful, and to
28003 # report actual input values of CONFIG_FILES etc. instead of their
28004 # values after options handling.
28006 This file was extended by libgnu $as_me UNUSED-VERSION, which was
28007 generated by GNU Autoconf 2.69. Invocation command line was
28009 CONFIG_FILES = $CONFIG_FILES
28010 CONFIG_HEADERS = $CONFIG_HEADERS
28011 CONFIG_LINKS = $CONFIG_LINKS
28012 CONFIG_COMMANDS = $CONFIG_COMMANDS
28015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28020 case $ac_config_files in *"
28021 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28024 case $ac_config_headers in *"
28025 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28030 # Files that config.status was made for.
28031 config_files="$ac_config_files"
28032 config_headers="$ac_config_headers"
28033 config_commands="$ac_config_commands"
28037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28039 \`$as_me' instantiates files and other configuration actions
28040 from templates according to the current configuration. Unless the files
28041 and actions are specified as TAGs, all are instantiated by default.
28043 Usage: $0 [OPTION]... [TAG]...
28045 -h, --help print this help, then exit
28046 -V, --version print version number and configuration settings, then exit
28047 --config print configuration, then exit
28048 -q, --quiet, --silent
28049 do not print progress messages
28050 -d, --debug don't remove temporary files
28051 --recheck update $as_me by reconfiguring in the same conditions
28052 --file=FILE[:TEMPLATE]
28053 instantiate the configuration file FILE
28054 --header=FILE[:TEMPLATE]
28055 instantiate the configuration header FILE
28057 Configuration files:
28060 Configuration headers:
28063 Configuration commands:
28066 Report bugs to the package provider."
28069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28070 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28072 libgnu config.status UNUSED-VERSION
28073 configured by $0, generated by GNU Autoconf 2.69,
28074 with options \\"\$ac_cs_config\\"
28076 Copyright (C) 2012 Free Software Foundation, Inc.
28077 This config.status script is free software; the Free Software Foundation
28078 gives unlimited permission to copy, distribute and modify it."
28085 test -n "\$AWK" || AWK=awk
28088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28089 # The default lists apply if the user does not specify any file.
28095 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28096 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28100 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28112 # Handling of the options.
28113 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28115 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28116 $as_echo "$ac_cs_version"; exit ;;
28117 --config |
--confi |
--conf |
--con |
--co |
--c )
28118 $as_echo "$ac_cs_config"; exit ;;
28119 --debug |
--debu |
--deb |
--de |
--d |
-d )
28121 --file |
--fil |
--fi |
--f )
28124 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28125 '') as_fn_error $?
"missing file argument" ;;
28127 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28128 ac_need_defaults
=false
;;
28129 --header |
--heade |
--head |
--hea )
28132 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28134 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28135 ac_need_defaults
=false
;;
28137 # Conflict between --help and --header
28138 as_fn_error $?
"ambiguous option: \`$1'
28139 Try \`$0 --help' for more information.";;
28140 --help |
--hel |
-h )
28141 $as_echo "$ac_cs_usage"; exit ;;
28142 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28143 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28146 # This is an error.
28147 -*) as_fn_error $?
"unrecognized option: \`$1'
28148 Try \`$0 --help' for more information." ;;
28150 *) as_fn_append ac_config_targets
" $1"
28151 ac_need_defaults
=false
;;
28157 ac_configure_extra_args
=
28159 if $ac_cs_silent; then
28161 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28166 if \$ac_cs_recheck; then
28167 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28169 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28170 CONFIG_SHELL='$SHELL'
28171 export CONFIG_SHELL
28176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28180 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28181 ## Running $as_me. ##
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28191 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28197 # Handling of arguments.
28198 for ac_config_target
in $ac_config_targets
28200 case $ac_config_target in
28201 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
28202 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28203 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28204 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
28205 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28207 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28212 # If the user did not use the arguments to specify the items to instantiate,
28213 # then the envvar interface is used. Set only those that are not.
28214 # We use the long form for the default assignment because of an extremely
28215 # bizarre bug on SunOS 4.1.3.
28216 if $ac_need_defaults; then
28217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28222 # Have a temporary directory for convenience. Make it in the build tree
28223 # simply because there is no reason against having it here, and in addition,
28224 # creating and moving files from /tmp can sometimes cause problems.
28225 # Hook for its removal unless debugging.
28226 # Note that there is a small window in which the directory will not be cleaned:
28227 # after its creation but before its name has been assigned to `$tmp'.
28231 trap 'exit_status=$?
28232 : "${ac_tmp:=$tmp}"
28233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28235 trap 'as_fn_exit 1' 1 2 13 15
28237 # Create a (secure) tmp directory for tmp files.
28240 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28244 tmp
=.
/conf$$
-$RANDOM
28245 (umask 077 && mkdir
"$tmp")
28246 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
28249 # Set up the scripts for CONFIG_FILES section.
28250 # No need to generate them if there are no CONFIG_FILES.
28251 # This happens for instance with `./config.status config.h'.
28252 if test -n "$CONFIG_FILES"; then
28255 ac_cr
=`echo X | tr X '\015'`
28256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28257 # But we know of no other shell where ac_cr would be empty at this
28258 # point, so we can use a bashism as a fallback.
28259 if test "x$ac_cr" = x
; then
28260 eval ac_cr
=\$
\'\\r
\'
28262 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28266 ac_cs_awk_cr
=$ac_cr
28269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28274 echo "cat >conf$$subs.awk <<_ACEOF" &&
28275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28277 } >conf$$subs.sh ||
28278 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28281 for ac_last_try in false false false false false :; do
28282 . ./conf$$subs.sh ||
28283 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28285 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28286 if test $ac_delim_n = $ac_delim_num; then
28288 elif $ac_last_try; then
28289 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28291 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28294 rm -f conf$$subs.sh
28296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28297 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
28301 s/^/S["/; s
/!.
*/"]=/
28311 s/\(.\{148\}\)..*/\1/
28313 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28318 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28325 s/\(.\{148\}\)..*/\1/
28327 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28331 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28336 ' <conf$$subs.awk | sed '
28341 ' >>$CONFIG_STATUS || ac_write_fail=1
28342 rm -f conf$$subs.awk
28343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28345 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
28346 for (key in S) S_is_set[key] = 1
28352 nfields = split(line, field, "@
")
28354 len = length(field[1])
28355 for (i = 2; i < nfields; i++) {
28357 keylen = length(key)
28358 if (S_is_set[key]) {
28360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28361 len += length(value) + length(field[++i])
28372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28373 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28374 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28377 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
28378 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
28381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
28383 # trailing colons and then remove the whole line if VPATH becomes empty
28384 # (actually we leave an empty line to preserve line numbers).
28385 if test "x
$srcdir" = x.; then
28386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28405 fi # test -n "$CONFIG_FILES"
28407 # Set up the scripts for CONFIG_HEADERS section.
28408 # No need to generate them if there are no CONFIG_HEADERS.
28409 # This happens for instance with `./config.status Makefile'.
28410 if test -n "$CONFIG_HEADERS"; then
28411 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
28415 # Transform confdefs.h into an awk script `defines.awk', embedded as
28416 # here-document in config.status, that substitutes the proper values into
28417 # config.h.in to produce config.h.
28419 # Create a delimiter string that does not exist in confdefs.h, to ease
28420 # handling of long lines.
28422 for ac_last_try in false false :; do
28423 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
28424 if test -z "$ac_tt"; then
28426 elif $ac_last_try; then
28427 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
28429 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28433 # For the awk script, D is an array of macro values keyed by name,
28434 # likewise P contains macro parameters if any. Preserve backslash
28435 # newline sequences.
28437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28439 s/.\{148\}/&'"$ac_delim"'/g
28442 s/^[ ]*#[ ]*define[ ][ ]*/ /
28449 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28451 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28456 D["\
1"]=" \
3\\\\\\n
"\\/p
28458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28463 s/.\{148\}/&'"$ac_delim"'/g
28468 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28471 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28473 ' <confdefs.h | sed '
28474 s/'"$ac_delim"'/"\\\
28475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28478 for (key in D) D_is_set[key] = 1
28481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28483 split(line, arg, " ")
28484 if (arg[1] == "#") {
28488 defundef
= substr
(arg
[1], 2)
28491 split(mac1
, mac2
, "(") #)
28493 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28494 if (D_is_set
[macro
]) {
28495 # Preserve the white space surrounding the "#".
28496 print prefix
"define", macro P
[macro
] D
[macro
]
28499 # Replace #undef with comments. This is necessary, for example,
28500 # in the case of _POSIX_SOURCE, which is predefined and required
28501 # on some systems where configure will not decide to define it.
28502 if (defundef
== "undef") {
28503 print
"/*", prefix defundef
, macro
, "*/"
28511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28512 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
28513 fi # test -n "$CONFIG_HEADERS"
28516 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28521 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28523 case $ac_mode$ac_tag in
28525 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28526 :[FH
]-) ac_tag
=-:-;;
28527 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28544 -) ac_f
="$ac_tmp/stdin";;
28545 *) # Look for the file first in the build tree, then in the source tree
28546 # (if the path is not absolute). The absolute path cannot be DOS-style,
28547 # because $ac_f cannot contain `:'.
28551 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28553 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28555 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28556 as_fn_append ac_file_inputs
" '$ac_f'"
28559 # Let's still pretend it is `configure' which instantiates (i.e., don't
28560 # use $as_me), people would be surprised to read:
28561 # /* config.h. Generated by config.status. */
28562 configure_input
='Generated from '`
28563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28565 if test x
"$ac_file" != x-
; then
28566 configure_input
="$ac_file. $configure_input"
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28568 $as_echo "$as_me: creating $ac_file" >&6;}
28570 # Neutralize special characters interpreted by sed in replacement strings.
28571 case $configure_input in #(
28572 *\
&* |
*\|
* |
*\\* )
28573 ac_sed_conf_input
=`$as_echo "$configure_input" |
28574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28575 *) ac_sed_conf_input
=$configure_input;;
28579 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
28580 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
28585 ac_dir
=`$as_dirname -- "$ac_file" ||
28586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28587 X"$ac_file" : 'X\(//\)[^/]' \| \
28588 X"$ac_file" : 'X\(//\)$' \| \
28589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28590 $as_echo X"$ac_file" |
28591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28595 /^X\(\/\/\)[^/].*/{
28608 as_dir
="$ac_dir"; as_fn_mkdir_p
28612 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28614 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28615 # A ".." for each directory in $ac_dir_suffix.
28616 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28617 case $ac_top_builddir_sub in
28618 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28619 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28622 ac_abs_top_builddir
=$ac_pwd
28623 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28624 # for backward compatibility:
28625 ac_top_builddir
=$ac_top_build_prefix
28628 .
) # We are building in place.
28630 ac_top_srcdir
=$ac_top_builddir_sub
28631 ac_abs_top_srcdir
=$ac_pwd ;;
28632 [\\/]* | ?
:[\\/]* ) # Absolute name.
28633 ac_srcdir
=$srcdir$ac_dir_suffix;
28634 ac_top_srcdir
=$srcdir
28635 ac_abs_top_srcdir
=$srcdir ;;
28636 *) # Relative name.
28637 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28638 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28639 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28641 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28651 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28652 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28654 ac_MKDIR_P
=$MKDIR_P
28656 [\\/$
]* | ?
:[\\/]* ) ;;
28657 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28662 # If the template does not know about datarootdir, expand it.
28663 # FIXME: This hack should be removed a few years after 2.60.
28664 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28676 *datarootdir
*) ac_datarootdir_seen
=yes;;
28677 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28679 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28682 ac_datarootdir_hack='
28683 s&@datadir@&$datadir&g
28684 s&@docdir@&$docdir&g
28685 s&@infodir@&$infodir&g
28686 s&@localedir@&$localedir&g
28687 s&@mandir@&$mandir&g
28688 s&\\\${datarootdir}&$datarootdir&g' ;;
28692 # Neutralize VPATH when `$srcdir' = `.'.
28693 # Shell code in configure.ac might set extrasub.
28694 # FIXME: do we really want to maintain this feature?
28695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28696 ac_sed_extra="$ac_vpsub
28699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28701 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28702 s|@configure_input@|
$ac_sed_conf_input|
;t t
28703 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28704 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28705 s
&@srcdir@
&$ac_srcdir&;t t
28706 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28707 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28708 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28709 s
&@builddir@
&$ac_builddir&;t t
28710 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28711 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28712 s
&@INSTALL@
&$ac_INSTALL&;t t
28713 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28714 $ac_datarootdir_hack
28716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
28717 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
28719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
28721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28722 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28724 which seems to be undefined. Please make sure it is defined" >&5
28725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28726 which seems to be undefined. Please make sure it is defined" >&2;}
28728 rm -f "$ac_tmp/stdin"
28730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28739 if test x"$ac_file" != x-; then
28741 $as_echo "/* $configure_input */" \
28742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28743 } >"$ac_tmp/config.h" \
28744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28750 mv "$ac_tmp/config.h" "$ac_file" \
28751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28754 $as_echo "/* $configure_input */" \
28755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28756 || as_fn_error $? "could not create -" "$LINENO" 5
28758 # Compute "$ac_file"'s index
in $config_headers.
28761 for _am_header
in $config_headers :; do
28762 case $_am_header in
28763 $_am_arg |
$_am_arg:* )
28766 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28771 X"$_am_arg" : 'X\(//\)[^/]' \| \
28772 X"$_am_arg" : 'X\(//\)$' \| \
28773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28774 $as_echo X"$_am_arg" |
28775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28779 /^X\(\/\/\)[^/].*/{
28791 s/.*/./; q'`/stamp-h
$_am_stamp_count
28794 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28795 $as_echo "$as_me: executing $ac_file commands" >&6;}
28800 case $ac_file$ac_mode in
28801 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28802 # Older Autoconf quotes --file arguments for eval, but not when files
28803 # are listed without --file. Let's play safe and only enable the eval
28804 # if we detect the quoting.
28805 case $CONFIG_FILES in
28806 *\'*) eval set x
"$CONFIG_FILES" ;;
28807 *) set x
$CONFIG_FILES ;;
28812 # Strip MF so we end up with the name of the file.
28813 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28814 # Check whether this is an Automake generated Makefile or not.
28815 # We used to match only the files named 'Makefile.in', but
28816 # some people rename them; so instead we look at the file content.
28817 # Grep'ing the first line is not enough: some people post-process
28818 # each Makefile.in and add a new line on top of each file to say so.
28819 # Grep'ing the whole file is not good either: AIX grep has a line
28820 # limit of 2048, but all sed's we know have understand at least 4000.
28821 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28822 dirpart
=`$as_dirname -- "$mf" ||
28823 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28824 X"$mf" : 'X\(//\)[^/]' \| \
28825 X"$mf" : 'X\(//\)$' \| \
28826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28832 /^X\(\/\/\)[^/].*/{
28848 # Extract the definition of DEPDIR, am__include, and am__quote
28849 # from the Makefile without running 'make'.
28850 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28851 test -z "$DEPDIR" && continue
28852 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28853 test -z "$am__include" && continue
28854 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28855 # Find all dependency output files, they are included files with
28856 # $(DEPDIR) in their names. We invoke sed twice because it is the
28857 # simplest approach to changing $(DEPDIR) to its actual value in the
28859 for file in `sed -n "
28860 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28861 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28862 # Make sure the directory exists.
28863 test -f "$dirpart/$file" && continue
28864 fdir
=`$as_dirname -- "$file" ||
28865 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28866 X"$file" : 'X\(//\)[^/]' \| \
28867 X"$file" : 'X\(//\)$' \| \
28868 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28869 $as_echo X"$file" |
28870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28874 /^X\(\/\/\)[^/].*/{
28887 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28888 # echo "creating $dirpart/$file"
28889 echo '# dummy' > "$dirpart/$file"
28895 case x
$CONFIG_HEADERS in
28896 xconfig.h
:config.
in)
28907 ac_clean_files
=$ac_clean_files_save
28909 test $ac_write_fail = 0 ||
28910 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28913 # configure is writing to config.log, and then calls config.status.
28914 # config.status does its own redirection, appending to config.log.
28915 # Unfortunately, on DOS this fails, as config.log is still kept open
28916 # by configure, so config.status won't be able to write to it; its
28917 # output is simply discarded. So we exec the FD to /dev/null,
28918 # effectively closing config.log, so it can be properly (re)opened and
28919 # appended to by config.status. When coming back to configure, we
28920 # need to make the FD available again.
28921 if test "$no_create" != yes; then
28923 ac_config_status_args
=
28924 test "$silent" = yes &&
28925 ac_config_status_args
="$ac_config_status_args --quiet"
28927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28930 # would make configure fail if this is the last instruction.
28931 $ac_cs_success || as_fn_exit
1
28933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28935 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}