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
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
695 UNISTD_H_DEFINES_STRUCT_TIMESPEC
696 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
697 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
698 TIME_H_DEFINES_STRUCT_TIMESPEC
699 NEXT_AS_FIRST_DIRECTIVE_TIME_H
710 HAVE_DECL_LOCALTIME_R
718 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
721 NEXT_AS_FIRST_DIRECTIVE_STRING_H
723 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
725 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
727 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
729 GL_GENERATE_STDDEF_H_FALSE
730 GL_GENERATE_STDDEF_H_TRUE
736 GL_GENERATE_STDBOOL_H_FALSE
737 GL_GENERATE_STDBOOL_H_TRUE
739 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
742 REPLACE_PTHREAD_SIGMASK
744 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
745 HAVE_STRUCT_SIGACTION_SA_SIGACTION
751 HAVE_POSIX_SIGNALBLOCKING
754 GNULIB_SIGNAL_H_SIGPIPE
756 GNULIB_PTHREAD_SIGMASK
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
774 REPLACE_OBSTACK_PRINTF
799 HAVE_DECL_OBSTACK_PRINTF
805 GNULIB_VSPRINTF_POSIX
809 GNULIB_VFPRINTF_POSIX
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
1026 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1061 HAVE_SIGNED_SIG_ATOMIC_T
1064 BITSIZEOF_SIG_ATOMIC_T
1067 APPLE_UNIVERSAL_BUILD
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1082 GL_GENERATE_GLOB_H_FALSE
1083 GL_GENERATE_GLOB_H_TRUE
1085 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1087 REPLACE_STRUCT_TIMEVAL
1088 REPLACE_GETTIMEOFDAY
1096 WINDOWS_64_BIT_ST_SIZE
1097 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1133 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1139 REPLACE_SIGNBIT_USING_GCC
1208 HAVE_DECL_REMAINDERL
1389 GL_GENERATE_FNMATCH_H_FALSE
1390 GL_GENERATE_FNMATCH_H_TRUE
1393 GL_GENERATE_FLOAT_H_FALSE
1394 GL_GENERATE_FLOAT_H_TRUE
1396 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1398 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1415 GL_GENERATE_ERRNO_H_FALSE
1416 GL_GENERATE_ERRNO_H_TRUE
1418 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1421 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1424 PRAGMA_SYSTEM_HEADER
1425 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1452 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1453 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1454 UNISTD_H_HAVE_WINSOCK2_H
1477 REPLACE_GETDTABLESIZE
1478 REPLACE_GETDOMAINNAME
1489 HAVE_DECL_SETHOSTNAME
1490 HAVE_DECL_GETUSERSHELL
1491 HAVE_DECL_GETPAGESIZE
1492 HAVE_DECL_GETLOGIN_R
1493 HAVE_DECL_GETDOMAINNAME
1532 GNULIB_UNISTD_H_SIGPIPE
1533 GNULIB_UNISTD_H_NONBLOCKING
1559 GNULIB_GETDTABLESIZE
1560 GNULIB_GETDOMAINNAME
1590 REPLACE_CANONICALIZE_FILE_NAME
1595 HAVE_STRUCT_RANDOM_DATA
1618 HAVE_DECL_GETLOADAVG
1619 HAVE_CANONICALIZE_FILE_NAME
1630 GNULIB_SECURE_GETENV
1633 GNULIB_REALLOC_POSIX
1651 GNULIB_CANONICALIZE_FILE_NAME
1655 GL_GENERATE_ALLOCA_H_FALSE
1656 GL_GENERATE_ALLOCA_H_TRUE
1659 GL_COND_LIBTOOL_FALSE
1660 GL_COND_LIBTOOL_TRUE
1688 MAINTAINER_MODE_FALSE
1689 MAINTAINER_MODE_TRUE
1717 program_transform_name
1730 enable_option_checking
1731 enable_maintainer_mode
1733 enable_dependency_tracking
1736 ac_precious_vars
='build_alias
1747 # Initialize some variables set by options.
1749 ac_init_version
=false
1750 ac_unrecognized_opts
=
1751 ac_unrecognized_sep
=
1752 # The variables have the same names as the options, with
1753 # dashes changed to underlines.
1754 cache_file
=/dev
/null
1761 program_transform_name
=s
,x
,x
,
1769 # Installation directory options.
1770 # These are left unexpanded so users can "make install exec_prefix=/foo"
1771 # and all the variables that are supposed to be based on exec_prefix
1772 # by default will actually change.
1773 # Use braces instead of parens because sh, perl, etc. also accept them.
1774 # (The list follows the same order as the GNU Coding Standards.)
1775 bindir
='${exec_prefix}/bin'
1776 sbindir
='${exec_prefix}/sbin'
1777 libexecdir
='${exec_prefix}/libexec'
1778 datarootdir
='${prefix}/share'
1779 datadir
='${datarootdir}'
1780 sysconfdir
='${prefix}/etc'
1781 sharedstatedir
='${prefix}/com'
1782 localstatedir
='${prefix}/var'
1783 includedir
='${prefix}/include'
1784 oldincludedir
='/usr/include'
1785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1786 infodir
='${datarootdir}/info'
1791 libdir
='${exec_prefix}/lib'
1792 localedir
='${datarootdir}/locale'
1793 mandir
='${datarootdir}/man'
1799 # If the previous option needs an argument, assign it.
1800 if test -n "$ac_prev"; then
1801 eval $ac_prev=\
$ac_option
1807 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1812 # Accept the important Cygnus configure options, so we can diagnose typos.
1814 case $ac_dashdash$ac_option in
1818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1821 bindir
=$ac_optarg ;;
1823 -build |
--build |
--buil |
--bui |
--bu)
1824 ac_prev
=build_alias
;;
1825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1826 build_alias
=$ac_optarg ;;
1828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1830 ac_prev
=cache_file
;;
1831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1833 cache_file
=$ac_optarg ;;
1835 --config-cache |
-C)
1836 cache_file
=config.cache
;;
1838 -datadir |
--datadir |
--datadi |
--datad)
1840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1841 datadir
=$ac_optarg ;;
1843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1844 |
--dataroo |
--dataro |
--datar)
1845 ac_prev
=datarootdir
;;
1846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1848 datarootdir
=$ac_optarg ;;
1850 -disable-* |
--disable-*)
1851 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1852 # Reject names that are not valid shell variable names.
1853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1854 as_fn_error $?
"invalid feature name: $ac_useropt"
1855 ac_useropt_orig
=$ac_useropt
1856 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1857 case $ac_user_opts in
1859 "enable_
$ac_useropt"
1861 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1862 ac_unrecognized_sep
=', ';;
1864 eval enable_
$ac_useropt=no
;;
1866 -docdir |
--docdir |
--docdi |
--doc |
--do)
1868 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1869 docdir
=$ac_optarg ;;
1871 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1873 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1874 dvidir
=$ac_optarg ;;
1876 -enable-* |
--enable-*)
1877 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1878 # Reject names that are not valid shell variable names.
1879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1880 as_fn_error $?
"invalid feature name: $ac_useropt"
1881 ac_useropt_orig
=$ac_useropt
1882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1883 case $ac_user_opts in
1885 "enable_
$ac_useropt"
1887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1888 ac_unrecognized_sep
=', ';;
1890 eval enable_
$ac_useropt=\
$ac_optarg ;;
1892 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1893 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1894 |
--exec |
--exe |
--ex)
1895 ac_prev
=exec_prefix
;;
1896 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1897 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1898 |
--exec=* |
--exe=* |
--ex=*)
1899 exec_prefix
=$ac_optarg ;;
1901 -gas |
--gas |
--ga |
--g)
1902 # Obsolete; use --with-gas.
1905 -help |
--help |
--hel |
--he |
-h)
1906 ac_init_help
=long
;;
1907 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1908 ac_init_help
=recursive
;;
1909 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1910 ac_init_help
=short
;;
1912 -host |
--host |
--hos |
--ho)
1913 ac_prev
=host_alias
;;
1914 -host=* |
--host=* |
--hos=* |
--ho=*)
1915 host_alias
=$ac_optarg ;;
1917 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1919 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1921 htmldir
=$ac_optarg ;;
1923 -includedir |
--includedir |
--includedi |
--included |
--include \
1924 |
--includ |
--inclu |
--incl |
--inc)
1925 ac_prev
=includedir
;;
1926 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1927 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1928 includedir
=$ac_optarg ;;
1930 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1932 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1933 infodir
=$ac_optarg ;;
1935 -libdir |
--libdir |
--libdi |
--libd)
1937 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1938 libdir
=$ac_optarg ;;
1940 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1941 |
--libexe |
--libex |
--libe)
1942 ac_prev
=libexecdir
;;
1943 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1944 |
--libexe=* |
--libex=* |
--libe=*)
1945 libexecdir
=$ac_optarg ;;
1947 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1948 ac_prev
=localedir
;;
1949 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1950 localedir
=$ac_optarg ;;
1952 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1953 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1954 ac_prev
=localstatedir
;;
1955 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1956 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1957 localstatedir
=$ac_optarg ;;
1959 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1961 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1962 mandir
=$ac_optarg ;;
1964 -nfp |
--nfp |
--nf)
1965 # Obsolete; use --without-fp.
1968 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1969 |
--no-cr |
--no-c |
-n)
1972 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1973 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1976 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1977 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1978 |
--oldin |
--oldi |
--old |
--ol |
--o)
1979 ac_prev
=oldincludedir
;;
1980 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1981 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1982 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1983 oldincludedir
=$ac_optarg ;;
1985 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1987 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1988 prefix
=$ac_optarg ;;
1990 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1991 |
--program-pre |
--program-pr |
--program-p)
1992 ac_prev
=program_prefix
;;
1993 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1994 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1995 program_prefix
=$ac_optarg ;;
1997 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1998 |
--program-suf |
--program-su |
--program-s)
1999 ac_prev
=program_suffix
;;
2000 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2001 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2002 program_suffix
=$ac_optarg ;;
2004 -program-transform-name |
--program-transform-name \
2005 |
--program-transform-nam |
--program-transform-na \
2006 |
--program-transform-n |
--program-transform- \
2007 |
--program-transform |
--program-transfor \
2008 |
--program-transfo |
--program-transf \
2009 |
--program-trans |
--program-tran \
2010 |
--progr-tra |
--program-tr |
--program-t)
2011 ac_prev
=program_transform_name
;;
2012 -program-transform-name=* |
--program-transform-name=* \
2013 |
--program-transform-nam=* |
--program-transform-na=* \
2014 |
--program-transform-n=* |
--program-transform-=* \
2015 |
--program-transform=* |
--program-transfor=* \
2016 |
--program-transfo=* |
--program-transf=* \
2017 |
--program-trans=* |
--program-tran=* \
2018 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2019 program_transform_name
=$ac_optarg ;;
2021 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2023 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2024 pdfdir
=$ac_optarg ;;
2026 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2028 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2031 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2032 |
-silent |
--silent |
--silen |
--sile |
--sil)
2035 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2037 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2039 sbindir
=$ac_optarg ;;
2041 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2042 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2043 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2045 ac_prev
=sharedstatedir
;;
2046 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2047 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2048 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2050 sharedstatedir
=$ac_optarg ;;
2052 -site |
--site |
--sit)
2054 -site=* |
--site=* |
--sit=*)
2057 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2059 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2060 srcdir
=$ac_optarg ;;
2062 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2063 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2064 ac_prev
=sysconfdir
;;
2065 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2066 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2067 sysconfdir
=$ac_optarg ;;
2069 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2070 ac_prev
=target_alias
;;
2071 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2072 target_alias
=$ac_optarg ;;
2074 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2077 -version |
--version |
--versio |
--versi |
--vers |
-V)
2078 ac_init_version
=: ;;
2081 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2082 # Reject names that are not valid shell variable names.
2083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2084 as_fn_error $?
"invalid package name: $ac_useropt"
2085 ac_useropt_orig
=$ac_useropt
2086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2087 case $ac_user_opts in
2091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2092 ac_unrecognized_sep
=', ';;
2094 eval with_
$ac_useropt=\
$ac_optarg ;;
2096 -without-* |
--without-*)
2097 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2098 # Reject names that are not valid shell variable names.
2099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2100 as_fn_error $?
"invalid package name: $ac_useropt"
2101 ac_useropt_orig
=$ac_useropt
2102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2103 case $ac_user_opts in
2107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2108 ac_unrecognized_sep
=', ';;
2110 eval with_
$ac_useropt=no
;;
2113 # Obsolete; use --with-x.
2116 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2117 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2118 ac_prev
=x_includes
;;
2119 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2120 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2121 x_includes
=$ac_optarg ;;
2123 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2124 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2125 ac_prev
=x_libraries
;;
2126 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2127 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2128 x_libraries
=$ac_optarg ;;
2130 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2131 Try \`$0 --help' for more information"
2135 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2136 # Reject names that are not valid shell variable names.
2137 case $ac_envvar in #(
2138 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2139 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2141 eval $ac_envvar=\
$ac_optarg
2142 export $ac_envvar ;;
2145 # FIXME: should be removed in autoconf 3.0.
2146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2155 if test -n "$ac_prev"; then
2156 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2157 as_fn_error $?
"missing argument to $ac_option"
2160 if test -n "$ac_unrecognized_opts"; then
2161 case $enable_option_checking in
2163 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2168 # Check all directory arguments for consistency.
2169 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2170 datadir sysconfdir sharedstatedir localstatedir includedir \
2171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2172 libdir localedir mandir
2174 eval ac_val
=\$
$ac_var
2175 # Remove trailing slashes.
2178 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2179 eval $ac_var=\
$ac_val;;
2181 # Be sure to have absolute directory names.
2183 [\\/$
]* | ?
:[\\/]* ) continue;;
2184 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2186 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2189 # There might be people who depend on the old broken behavior: `$host'
2190 # used to hold the argument of --host etc.
2191 # FIXME: To remove some day.
2194 target
=$target_alias
2196 # FIXME: To remove some day.
2197 if test "x$host_alias" != x
; then
2198 if test "x$build_alias" = x
; then
2199 cross_compiling
=maybe
2200 elif test "x$build_alias" != "x$host_alias"; then
2206 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2208 test "$silent" = yes && exec 6>/dev
/null
2211 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2212 ac_ls_di
=`ls -di .` &&
2213 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2214 as_fn_error $?
"working directory cannot be determined"
2215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2216 as_fn_error $?
"pwd does not report name of working directory"
2219 # Find the source files, if location was not specified.
2220 if test -z "$srcdir"; then
2221 ac_srcdir_defaulted
=yes
2222 # Try the directory containing this script, then the parent directory.
2223 ac_confdir
=`$as_dirname -- "$as_myself" ||
2224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2225 X"$as_myself" : 'X\(//\)[^/]' \| \
2226 X"$as_myself" : 'X\(//\)$' \| \
2227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2228 $as_echo X"$as_myself" |
2229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2247 if test ! -r "$srcdir/$ac_unique_file"; then
2251 ac_srcdir_defaulted
=no
2253 if test ! -r "$srcdir/$ac_unique_file"; then
2254 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2255 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2257 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2261 # When building in place, set srcdir=.
2262 if test "$ac_abs_confdir" = "$ac_pwd"; then
2265 # Remove unnecessary trailing slashes from srcdir.
2266 # Double slashes in file names in object file debugging info
2267 # mess up M-x gdb in Emacs.
2269 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2271 for ac_var
in $ac_precious_vars; do
2272 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2273 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2274 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2275 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2279 # Report the --help message.
2281 if test "$ac_init_help" = "long"; then
2282 # Omit some internal or obsolete options to make the list less imposing.
2283 # This message is too long to be a string in the A/UX 3.1 sh.
2285 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2287 Usage: $0 [OPTION]... [VAR=VALUE]...
2289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2290 VAR=VALUE. See below for descriptions of some of the useful variables.
2292 Defaults for the options are specified in brackets.
2295 -h, --help display this help and exit
2296 --help=short display options specific to this package
2297 --help=recursive display the short help of all the included packages
2298 -V, --version display version information and exit
2299 -q, --quiet, --silent do not print \`checking ...' messages
2300 --cache-file=FILE cache test results in FILE [disabled]
2301 -C, --config-cache alias for \`--cache-file=config.cache'
2302 -n, --no-create do not create output files
2303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2305 Installation directories:
2306 --prefix=PREFIX install architecture-independent files in PREFIX
2307 [$ac_default_prefix]
2308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2311 By default, \`make install' will install all the files in
2312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2314 for instance \`--prefix=\$HOME'.
2316 For better control, use the options below.
2318 Fine tuning of the installation directories:
2319 --bindir=DIR user executables [EPREFIX/bin]
2320 --sbindir=DIR system admin executables [EPREFIX/sbin]
2321 --libexecdir=DIR program executables [EPREFIX/libexec]
2322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2325 --libdir=DIR object code libraries [EPREFIX/lib]
2326 --includedir=DIR C header files [PREFIX/include]
2327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2330 --infodir=DIR info documentation [DATAROOTDIR/info]
2331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2332 --mandir=DIR man documentation [DATAROOTDIR/man]
2333 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2334 --htmldir=DIR html documentation [DOCDIR]
2335 --dvidir=DIR dvi documentation [DOCDIR]
2336 --pdfdir=DIR pdf documentation [DOCDIR]
2337 --psdir=DIR ps documentation [DOCDIR]
2343 --program-prefix=PREFIX prepend PREFIX to installed program names
2344 --program-suffix=SUFFIX append SUFFIX to installed program names
2345 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2348 --build=BUILD configure
for building on BUILD
[guessed
]
2349 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2350 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2354 if test -n "$ac_init_help"; then
2355 case $ac_init_help in
2356 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2361 --disable-option-checking ignore unrecognized
--enable/--with options
2362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2364 --enable-maintainer-mode
2365 enable make rules and dependencies not useful
(and
2366 sometimes confusing
) to the casual installer
2367 --disable-largefile omit support
for large files
2368 --enable-dependency-tracking
2369 do not reject slow dependency extractors
2370 --disable-dependency-tracking
2371 speeds up one-time build
2372 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2373 --disable-silent-rules verbose build output
(undo
: "make V=0")
2375 Some influential environment variables
:
2376 CC C compiler
command
2377 CFLAGS C compiler flags
2378 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2379 nonstandard directory
<lib dir
>
2380 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2381 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2382 you have headers
in a nonstandard directory
<include dir
>
2385 Use these variables to override the choices made by
`configure' or to help
2386 it to find libraries and programs with nonstandard names/locations.
2388 Report bugs to the package provider.
2393 if test "$ac_init_help" = "recursive"; then
2394 # If there are subdirs, report their specific --help.
2395 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2396 test -d "$ac_dir" ||
2397 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2404 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2405 # A ".." for each directory in $ac_dir_suffix.
2406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2407 case $ac_top_builddir_sub in
2408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2412 ac_abs_top_builddir=$ac_pwd
2413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2414 # for backward compatibility:
2415 ac_top_builddir=$ac_top_build_prefix
2418 .) # We are building in place.
2420 ac_top_srcdir=$ac_top_builddir_sub
2421 ac_abs_top_srcdir=$ac_pwd ;;
2422 [\\/]* | ?:[\\/]* ) # Absolute name.
2423 ac_srcdir=$srcdir$ac_dir_suffix;
2424 ac_top_srcdir=$srcdir
2425 ac_abs_top_srcdir=$srcdir ;;
2427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2428 ac_top_srcdir=$ac_top_build_prefix$srcdir
2429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2433 cd "$ac_dir" || { ac_status=$?; continue; }
2434 # Check for guested configure.
2435 if test -f "$ac_srcdir/configure.gnu"; then
2437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2438 elif test -f "$ac_srcdir/configure"; then
2440 $SHELL "$ac_srcdir/configure" --help=recursive
2442 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2444 cd "$ac_pwd" || { ac_status=$?; break; }
2448 test -n "$ac_init_help" && exit $ac_status
2449 if $ac_init_version; then
2451 libgnu configure UNUSED-VERSION
2452 generated by GNU Autoconf 2.69
2454 Copyright (C) 2012 Free Software Foundation, Inc.
2455 This configure script is free software; the Free Software Foundation
2456 gives unlimited permission to copy, distribute and modify it.
2461 ## ------------------------ ##
2462 ## Autoconf initialization. ##
2463 ## ------------------------ ##
2465 # ac_fn_c_try_compile LINENO
2466 # --------------------------
2467 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2468 ac_fn_c_try_compile ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 rm -f conftest.$ac_objext
2472 if { { ac_try="$ac_compile"
2474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2475 *) ac_try_echo
=$ac_try;;
2477 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478 $as_echo "$ac_try_echo"; } >&5
2479 (eval "$ac_compile") 2>conftest.err
2481 if test -s conftest.err
; then
2482 grep -v '^ *+' conftest.err
>conftest.er1
2483 cat conftest.er1
>&5
2484 mv -f conftest.er1 conftest.err
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && {
2488 test -z "$ac_c_werror_flag" ||
2489 test ! -s conftest.err
2490 } && test -s conftest.
$ac_objext; then :
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.
$ac_ext >&5
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status
$ac_retval
2501 } # ac_fn_c_try_compile
2503 # ac_fn_c_try_cpp LINENO
2504 # ----------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2509 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } > conftest.i && {
2525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2526 test ! -s conftest.err
2530 $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 as_fn_set_status $ac_retval
2540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2541 # -------------------------------------------------------
2542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2543 # the include files in INCLUDES and setting the cache variable VAR
2545 ac_fn_c_check_header_mongrel ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 if eval \${$3+:} false; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2558 # Is the header compilable?
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2560 $as_echo_n "checking $2 usability... " >&6; }
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_header_compiler=yes
2569 ac_header_compiler=no
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2573 $as_echo "$ac_header_compiler" >&6; }
2575 # Is the header present?
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2577 $as_echo_n "checking $2 presence... " >&6; }
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2583 ac_header_preproc=yes
2585 ac_header_preproc=no
2587 rm -f conftest.err conftest.i conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2589 $as_echo "$ac_header_preproc" >&6; }
2591 # So? What about this header?
2592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2603 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2607 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615 $as_echo_n "(cached) " >&6
2617 eval "$3=\$ac_header_compiler"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2625 } # ac_fn_c_check_header_mongrel
2627 # ac_fn_c_try_run LINENO
2628 # ----------------------
2629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2630 # that executables *can* be run.
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 if { { ac_try="$ac_link"
2636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2637 *) ac_try_echo
=$ac_try;;
2639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link") 2>&5
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2645 { { case "(($ac_try" in
2646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650 $as_echo "$ac_try_echo"; } >&5
2651 (eval "$ac_try") 2>&5
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }; }; then :
2657 $as_echo "$as_me: program exited with status $ac_status" >&5
2658 $as_echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 ac_retval=$ac_status
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665 as_fn_set_status $ac_retval
2669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2670 # -------------------------------------------------------
2671 # Tests whether HEADER exists and can be compiled using the include files in
2672 # INCLUDES, setting the cache variable VAR accordingly.
2673 ac_fn_c_check_header_compile ()
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2677 $as_echo_n "checking for $2... " >&6; }
2678 if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2686 if ac_fn_c_try_compile "$LINENO"; then :
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 } # ac_fn_c_check_header_compile
2700 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2701 # -------------------------------------------
2702 # Tests whether TYPE exists after having included INCLUDES, setting cache
2703 # variable VAR accordingly.
2704 ac_fn_c_check_type ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2738 if ac_fn_c_try_compile "$LINENO"; then :
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_c_check_type
2754 # ac_fn_c_try_link LINENO
2755 # -----------------------
2756 # Try to link conftest.$ac_ext, and return whether this succeeded.
2759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { { ac_try="$ac_link"
2763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2764 *) ac_try_echo
=$ac_try;;
2766 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_link") 2>conftest.err
2770 if test -s conftest.err
; then
2771 grep -v '^ *+' conftest.err
>conftest.er1
2772 cat conftest.er1
>&5
2773 mv -f conftest.er1 conftest.err
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; } && {
2777 test -z "$ac_c_werror_flag" ||
2778 test ! -s conftest.err
2779 } && test -s conftest
$ac_exeext && {
2780 test "$cross_compiling" = yes ||
2781 test -x conftest
$ac_exeext
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2792 # interfere with the next link command; also delete a directory that is
2793 # left behind by Apple's compiler. We do this before executing the actions.
2794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2796 as_fn_set_status
$ac_retval
2798 } # ac_fn_c_try_link
2800 # ac_fn_c_check_func LINENO FUNC VAR
2801 # ----------------------------------
2802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2803 ac_fn_c_check_func
()
2805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2807 $as_echo_n "checking for $2... " >&6; }
2808 if eval \
${$3+:} false
; then :
2809 $as_echo_n "(cached) " >&6
2811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2815 #define $2 innocuous_$2
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $2 (); below.
2819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 <limits.h> exists even on freestanding compilers. */
2823 # include <limits.h>
2825 # include <assert.h>
2830 /* Override any GCC internal prototype to avoid an error.
2831 Use char because int might match the return type of a GCC
2832 builtin and then its argument prototype would still apply. */
2837 /* The GNU C library defines this for functions which it implements
2838 to always fail with ENOSYS. Some functions are actually named
2839 something starting with __ and the normal name is an alias. */
2840 #if defined __stub_$2 || defined __stub___$2
2852 if ac_fn_c_try_link
"$LINENO"; then :
2857 rm -f core conftest.err conftest.
$ac_objext \
2858 conftest
$ac_exeext conftest.
$ac_ext
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2862 $as_echo "$ac_res" >&6; }
2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2865 } # ac_fn_c_check_func
2867 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2868 # ---------------------------------------------
2869 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2871 ac_fn_c_check_decl
()
2873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2874 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2875 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2877 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2878 if eval \
${$3+:} false
; then :
2879 $as_echo_n "(cached) " >&6
2881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2887 #ifndef $as_decl_name
2889 (void) $as_decl_use;
2891 (void) $as_decl_name;
2899 if ac_fn_c_try_compile
"$LINENO"; then :
2904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911 } # ac_fn_c_check_decl
2913 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2914 # --------------------------------------------
2915 # Tries to find the compile-time value of EXPR in a program that includes
2916 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2918 ac_fn_c_compute_int
()
2920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2921 if test "$cross_compiling" = yes; then
2922 # Depending upon the size, compute the lo and hi bounds.
2923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2929 static int test_array [1 - 2 * !(($2) >= 0)];
2931 return test_array [0];
2937 if ac_fn_c_try_compile
"$LINENO"; then :
2940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2948 return test_array [0];
2954 if ac_fn_c_try_compile
"$LINENO"; then :
2955 ac_hi
=$ac_mid; break
2957 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2958 if test $ac_lo -le $ac_mid; then
2962 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2973 static int test_array [1 - 2 * !(($2) < 0)];
2975 return test_array [0];
2981 if ac_fn_c_try_compile
"$LINENO"; then :
2984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2992 return test_array [0];
2998 if ac_fn_c_try_compile
"$LINENO"; then :
2999 ac_lo
=$ac_mid; break
3001 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3002 if test $ac_mid -le $ac_hi; then
3006 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 # Binary search between lo and hi bounds.
3017 while test "x$ac_lo" != "x$ac_hi"; do
3018 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3027 return test_array [0];
3033 if ac_fn_c_try_compile
"$LINENO"; then :
3036 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3041 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3048 static long int longval () { return $2; }
3049 static unsigned long int ulongval () { return $2; }
3056 FILE *f = fopen ("conftest.val", "w");
3061 long int i = longval ();
3064 fprintf (f, "%ld", i);
3068 unsigned long int i = ulongval ();
3071 fprintf (f, "%lu", i);
3073 /* Do not output a trailing newline, as this causes \r\n confusion
3074 on some platforms. */
3075 return ferror (f) || fclose (f) != 0;
3081 if ac_fn_c_try_run
"$LINENO"; then :
3082 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092 as_fn_set_status
$ac_retval
3094 } # ac_fn_c_compute_int
3095 cat >config.log
<<_ACEOF
3096 This file contains any messages produced by compilers while
3097 running configure, to aid debugging if configure makes a mistake.
3099 It was created by libgnu $as_me UNUSED-VERSION, which was
3100 generated by GNU Autoconf 2.69. Invocation command line was
3112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 $as_echo "PATH: $as_dir"
3152 # Keep a trace of the command line.
3153 # Strip out --no-create and --no-recursion so they do not pile up.
3154 # Strip out --silent because we don't want to record it for future runs.
3155 # Also quote any args containing shell meta-characters.
3156 # Make two passes to allow for proper duplicate-argument suppression.
3160 ac_must_keep_next
=false
3166 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3167 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3168 |
-silent |
--silent |
--silen |
--sile |
--sil)
3171 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3176 as_fn_append ac_configure_args1
" '$ac_arg'"
3177 if test $ac_must_keep_next = true
; then
3178 ac_must_keep_next
=false
# Got value, back to normal.
3181 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3182 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3183 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3184 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3185 case "$ac_configure_args0 " in
3186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3189 -* ) ac_must_keep_next
=true
;;
3192 as_fn_append ac_configure_args
" '$ac_arg'"
3197 { ac_configure_args0
=; unset ac_configure_args0
;}
3198 { ac_configure_args1
=; unset ac_configure_args1
;}
3200 # When interrupted or exit'd, cleanup temporary files, and complete
3201 # config.log. We remove comments because anyway the quotes in there
3202 # would cause problems or look ugly.
3203 # WARNING: Use '\'' to represent an apostrophe within the trap.
3204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3205 trap 'exit_status=$?
3206 # Save into config.log some information that might help in debugging.
3210 $as_echo "## ---------------- ##
3211 ## Cache variables. ##
3212 ## ---------------- ##"
3214 # The following way of writing the cache mishandles newlines in values,
3216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3217 eval ac_val=\$$ac_var
3221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3225 _ | IFS | as_nl) ;; #(
3226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3227 *) { eval $ac_var=; unset $ac_var;} ;;
3232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3233 *${as_nl}ac_space=\ *)
3235 "s/'\''/'\''\\\\'\'''\''/g;
3236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3246 $as_echo "## ----------------- ##
3247 ## Output variables. ##
3248 ## ----------------- ##"
3250 for ac_var in $ac_subst_vars
3252 eval ac_val=\$$ac_var
3254 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256 $as_echo "$ac_var='\''$ac_val'\''"
3260 if test -n "$ac_subst_files"; then
3261 $as_echo "## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##"
3265 for ac_var
in $ac_subst_files
3267 eval ac_val
=\$
$ac_var
3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271 $as_echo "$ac_var='\''$ac_val'\''"
3276 if test -s confdefs.h; then
3277 $as_echo "## ----------- ##
3284 test "$ac_signal" != 0 &&
3285 $as_echo "$as_me: caught signal $ac_signal"
3286 $as_echo "$as_me: exit $exit_status"
3288 rm -f core *.core core.conftest.* &&
3289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3292 for ac_signal
in 1 2 13 15; do
3293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3298 rm -f -r conftest
* confdefs.h
3300 $as_echo "/* confdefs.h */" > confdefs.h
3302 # Predefined preprocessor variables.
3304 cat >>confdefs.h
<<_ACEOF
3305 #define PACKAGE_NAME "$PACKAGE_NAME"
3308 cat >>confdefs.h
<<_ACEOF
3309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3312 cat >>confdefs.h
<<_ACEOF
3313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3316 cat >>confdefs.h
<<_ACEOF
3317 #define PACKAGE_STRING "$PACKAGE_STRING"
3320 cat >>confdefs.h
<<_ACEOF
3321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3324 cat >>confdefs.h
<<_ACEOF
3325 #define PACKAGE_URL "$PACKAGE_URL"
3329 # Let the site file select an alternate cache file if it wants to.
3330 # Prefer an explicitly selected file to automatically selected ones.
3333 if test -n "$CONFIG_SITE"; then
3334 # We do not want a PATH search for config.site.
3335 case $CONFIG_SITE in #((
3336 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3337 */*) ac_site_file1
=$CONFIG_SITE;;
3338 *) ac_site_file1
=.
/$CONFIG_SITE;;
3340 elif test "x$prefix" != xNONE
; then
3341 ac_site_file1
=$prefix/share
/config.site
3342 ac_site_file2
=$prefix/etc
/config.site
3344 ac_site_file1
=$ac_default_prefix/share
/config.site
3345 ac_site_file2
=$ac_default_prefix/etc
/config.site
3347 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3349 test "x$ac_site_file" = xNONE
&& continue
3350 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3353 sed 's/^/| /' "$ac_site_file" >&5
3355 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $?
"failed to load site script $ac_site_file
3358 See \`config.log' for more details" "$LINENO" 5; }
3362 if test -r "$cache_file"; then
3363 # Some versions of bash will fail to source /dev/null (special files
3364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3365 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3367 $as_echo "$as_me: loading cache $cache_file" >&6;}
3369 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3370 *) .
"./$cache_file";;
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3375 $as_echo "$as_me: creating cache $cache_file" >&6;}
3379 gl_func_list
="$gl_func_list canonicalize_file_name"
3380 gl_func_list
="$gl_func_list getcwd"
3381 gl_func_list
="$gl_func_list readlink"
3382 gl_func_list
="$gl_func_list realpath"
3383 gl_header_list
="$gl_header_list sys/param.h"
3384 gl_header_list
="$gl_header_list unistd.h"
3385 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3386 gl_header_list
="$gl_header_list sys/socket.h"
3387 gl_func_list
="$gl_func_list fchdir"
3388 gl_header_list
="$gl_header_list dirent.h"
3389 gl_func_list
="$gl_func_list fcntl"
3390 gl_func_list
="$gl_func_list symlink"
3391 gl_func_list
="$gl_func_list fdopendir"
3392 gl_func_list
="$gl_func_list mempcpy"
3393 gl_func_list
="$gl_func_list btowc"
3394 gl_func_list
="$gl_func_list isblank"
3395 gl_func_list
="$gl_func_list iswctype"
3396 gl_func_list
="$gl_func_list mbsrtowcs"
3397 gl_func_list
="$gl_func_list wmemchr"
3398 gl_func_list
="$gl_func_list wmemcpy"
3399 gl_func_list
="$gl_func_list wmempcpy"
3400 gl_header_list
="$gl_header_list wctype.h"
3401 gl_fnmatch_required
=GNU
3402 gl_header_list
="$gl_header_list sys/stat.h"
3403 gl_func_list
="$gl_func_list fstatat"
3404 gl_func_list
="$gl_func_list getdtablesize"
3405 gl_func_list
="$gl_func_list getlogin_r"
3406 gl_func_list
="$gl_func_list getprogname"
3407 gl_func_list
="$gl_func_list getexecname"
3408 gl_header_list
="$gl_header_list sys/time.h"
3409 gl_func_list
="$gl_func_list gettimeofday"
3410 gl_header_list
="$gl_header_list sys/cdefs.h"
3411 gl_func_list
="$gl_func_list getpwnam_r"
3412 gl_header_list
="$gl_header_list limits.h"
3413 gl_header_list
="$gl_header_list wchar.h"
3414 gl_header_list
="$gl_header_list stdint.h"
3415 gl_header_list
="$gl_header_list inttypes.h"
3416 gl_func_list
="$gl_func_list lstat"
3417 gl_header_list
="$gl_header_list math.h"
3418 gl_func_list
="$gl_func_list mbsinit"
3419 gl_func_list
="$gl_func_list mbrtowc"
3420 gl_header_list
="$gl_header_list sys/mman.h"
3421 gl_func_list
="$gl_func_list mprotect"
3422 gl_func_list
="$gl_func_list mkstemp"
3423 gl_func_list
="$gl_func_list openat"
3424 gl_func_list
="$gl_func_list link"
3425 gl_func_list
="$gl_func_list secure_getenv"
3426 gl_func_list
="$gl_func_list getuid"
3427 gl_func_list
="$gl_func_list geteuid"
3428 gl_func_list
="$gl_func_list getgid"
3429 gl_func_list
="$gl_func_list getegid"
3430 gl_func_list
="$gl_func_list setenv"
3431 gl_func_list
="$gl_func_list strdup"
3432 gl_func_list
="$gl_func_list pipe"
3433 gl_header_list
="$gl_header_list features.h"
3434 gl_func_list
="$gl_func_list iswcntrl"
3435 # Check that the precious variables saved in the cache have kept the same
3437 ac_cache_corrupted
=false
3438 for ac_var
in $ac_precious_vars; do
3439 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3440 eval ac_new_set
=\
$ac_env_${ac_var}_set
3441 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3442 eval ac_new_val
=\
$ac_env_${ac_var}_value
3443 case $ac_old_set,$ac_new_set in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3446 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3447 ac_cache_corrupted
=: ;;
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3450 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3451 ac_cache_corrupted
=: ;;
3454 if test "x$ac_old_val" != "x$ac_new_val"; then
3455 # differences in whitespace do not lead to failure.
3456 ac_old_val_w
=`echo x $ac_old_val`
3457 ac_new_val_w
=`echo x $ac_new_val`
3458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3460 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3461 ac_cache_corrupted
=:
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3464 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3465 eval $ac_var=\
$ac_old_val
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3468 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3470 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3473 # Pass precious variables to config.status.
3474 if test "$ac_new_set" = set; then
3476 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3477 *) ac_arg
=$ac_var=$ac_new_val ;;
3479 case " $ac_configure_args " in
3480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3481 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3485 if $ac_cache_corrupted; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3489 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3490 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3492 ## -------------------- ##
3493 ## Main body of script. ##
3494 ## -------------------- ##
3497 ac_cpp
='$CPP $CPPFLAGS'
3498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3504 ac_config_headers
="$ac_config_headers config.h:config.in"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3509 # Check whether --enable-maintainer-mode was given.
3510 if test "${enable_maintainer_mode+set}" = set; then :
3511 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3513 USE_MAINTAINER_MODE
=no
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3518 if test $USE_MAINTAINER_MODE = yes; then
3519 MAINTAINER_MODE_TRUE
=
3520 MAINTAINER_MODE_FALSE
='#'
3522 MAINTAINER_MODE_TRUE
='#'
3523 MAINTAINER_MODE_FALSE
=
3526 MAINT
=$MAINTAINER_MODE_TRUE
3531 ac_cpp
='$CPP $CPPFLAGS'
3532 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3537 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false
; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC
="$CC" # Let the user override the test.
3546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir
=.
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_CC"; then
3576 # Extract the first word of "gcc", so it can be a program name with args.
3577 set dummy gcc
; ac_word
=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$ac_ct_CC"; then
3584 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir
=.
3591 for ac_exec_ext
in '' $ac_executable_extensions; do
3592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CC
="gcc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 $as_echo "$ac_ct_CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_CC" = x
; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned
=yes ;;
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3630 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false
; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3668 if test -z "$CC"; then
3669 # Extract the first word of "cc", so it can be a program name with args.
3670 set dummy cc
; ac_word
=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false
; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC
="$CC" # Let the user override the test.
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688 ac_prog_rejected
=yes
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 if test $ac_prog_rejected = yes; then
3700 # We found a bogon in the path, so make sure we never use it.
3701 set dummy
$ac_cv_prog_CC
3703 if test $# != 0; then
3704 # We chose a different compiler from the bogus one.
3705 # However, it has the same basename, so the bogon will be chosen
3706 # first if we set CC to just the basename; use the full file name.
3708 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog
in cl.exe
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false
; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC
="$CC" # Let the user override the test.
3738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir
=.
3743 for ac_exec_ext
in '' $ac_executable_extensions; do
3744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3765 test -n "$CC" && break
3768 if test -z "$CC"; then
3770 for ac_prog
in cl.exe
3772 # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy
$ac_prog; ac_word
=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3777 $as_echo_n "(cached) " >&6
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir
=.
3787 for ac_exec_ext
in '' $ac_executable_extensions; do
3788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC
="$ac_prog"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 $as_echo "$ac_ct_CC" >&6; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3809 test -n "$ac_ct_CC" && break
3812 if test "x$ac_ct_CC" = x
; then
3815 case $cross_compiling:$ac_tool_warned in
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned
=yes ;;
3828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $?
"no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 for ac_option
in --version -v -V -qversion; do
3838 { { ac_try
="$ac_compiler $ac_option >&5"
3840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847 if test -s conftest.err; then
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3853 rm -f conftest.er1 conftest.err
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 $as_echo_n "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882 for ac_file in $ac_files
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 if { { ac_try="$ac_link_default"
3893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3894 *) ac_try_echo
=$ac_try;;
3896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3907 for ac_file
in $ac_files ''
3909 test -f "$ac_file" ||
continue
3911 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3914 # We found the default executable, but exeext='' is most
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3920 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3932 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3937 if test -z "$ac_file"; then :
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.
$ac_ext >&5
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error
77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 $as_echo_n "checking for C compiler default output file name... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 $as_echo "$ac_file" >&6; }
3955 ac_exeext
=$ac_cv_exeext
3957 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3958 ac_clean_files
=$ac_clean_files_save
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try
="$ac_link"
3963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3973 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 for ac_file
in conftest.exe conftest conftest.
*; do
3977 test -f "$ac_file" ||
continue
3979 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3980 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details" "$LINENO" 5; }
3991 rm -f conftest conftest
$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.
$ac_ext
3996 EXEEXT
=$ac_cv_exeext
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4004 FILE *f = fopen ("conftest.out", "w");
4005 return ferror (f) || fclose (f) != 0;
4011 ac_clean_files
="$ac_clean_files conftest.out"
4012 # Check that the compiler produces executables we can run. If not, either
4013 # the compiler is broken, or we cross compile.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4015 $as_echo_n "checking whether we are cross compiling... " >&6; }
4016 if test "$cross_compiling" != yes; then
4017 { { ac_try
="$ac_link"
4019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_link") 2>&5
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }
4028 if { ac_try='./conftest$ac_cv_exeext'
4029 { { case "(($ac_try" in
4030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4031 *) ac_try_echo
=$ac_try;;
4033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_try") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; }; then
4041 if test "$cross_compiling" = maybe
; then
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $?
"cannot run C compiled programs.
4047 If you meant to cross compile, use \`--host'.
4048 See \`config.log' for more details" "$LINENO" 5; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4053 $as_echo "$cross_compiling" >&6; }
4055 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4056 ac_clean_files
=$ac_clean_files_save
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4058 $as_echo_n "checking for suffix of object files... " >&6; }
4059 if ${ac_cv_objext+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 rm -f conftest.o conftest.obj
4074 if { { ac_try
="$ac_compile"
4076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compile") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 for ac_file in conftest.o conftest.obj conftest.*; do
4086 test -f "$ac_file" || continue;
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
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 object files
: cannot compile
4100 See \
`config.log' for more details" "$LINENO" 5; }
4102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105 $as_echo "$ac_cv_objext" >&6; }
4106 OBJEXT=$ac_cv_objext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"; then :
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4217 if test "$GCC" = yes; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_cv_prog_cc_c89=no
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
4289 rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 rm -f conftest.$ac_ext
4297 case "x$ac_cv_prog_cc_c89" in
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4321 if test -f "$ac_dir/install-sh"; then
4323 ac_install_sh="$ac_aux_dir/install-sh -c"
4325 elif test -f "$ac_dir/install.sh"; then
4327 ac_install_sh="$ac_aux_dir/install.sh -c"
4329 elif test -f "$ac_dir/shtool"; then
4331 ac_install_sh="$ac_aux_dir/shtool install -c"
4335 if test -z "$ac_aux_dir"; then
4336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4339 # These three variables are undocumented and unsupported,
4340 # and are intended to be withdrawn in a future Autoconf release.
4341 # They can cause serious problems if a builder's source tree is in a directory
4342 # whose full name contains unusual characters.
4343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4348 # Expand $ac_aux_dir to an absolute path.
4349 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4358 if ${am_cv_prog_cc_c_o+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 # Make sure it works both with $CC and with simple cc.
4373 # Following AC_PROG_CC_C_O, we do the test twice because some
4374 # compilers refuse to overwrite an existing .o file with -o,
4375 # though they will create one.
4376 am_cv_prog_cc_c_o=yes
4378 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } \
4383 && test -f conftest2.$ac_objext; then
4386 am_cv_prog_cc_c_o=no
4390 rm -f core conftest*
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4395 if test "$am_cv_prog_cc_c_o" != yes; then
4396 # Losing compiler, so override with the script.
4397 # FIXME: It is wrong to rewrite CC.
4398 # But if we don't then we get into trouble of one sort or another.
4399 # A longer-term fix would be to have automake use am__CC in this case,
4400 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401 CC="$am_aux_dir/compile $CC"
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4417 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4418 # On Suns, sometimes $CPP names a directory.
4419 if test -n "$CPP" && test -d "$CPP"; then
4422 if test -z "$CPP"; then
4423 if ${ac_cv_prog_CPP+:} false; then :
4424 $as_echo_n "(cached) " >&6
4426 # Double quotes because CPP needs to be expanded
4427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4441 # include <limits.h>
4443 # include <assert.h>
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4450 # Broken: fails on valid input.
4453 rm -f conftest.err conftest.i conftest.$ac_ext
4455 # OK, works on sane cases. Now check whether nonexistent headers
4456 # can be detected and how.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <ac_nonexistent.h>
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: success on invalid input.
4465 # Passes both tests.
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.i conftest.err conftest.
$ac_ext
4474 if $ac_preproc_ok; then :
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4487 $as_echo "$CPP" >&6; }
4489 for ac_c_preproc_warn_flag
in '' yes
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 # include <limits.h>
4502 # include <assert.h>
4506 if ac_fn_c_try_cpp
"$LINENO"; then :
4509 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.i conftest.
$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if ac_fn_c_try_cpp
"$LINENO"; then :
4521 # Broken: success on invalid input.
4524 # Passes both tests.
4528 rm -f conftest.err conftest.i conftest.
$ac_ext
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.
$ac_ext
4533 if $ac_preproc_ok; then :
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4539 See \`config.log' for more details" "$LINENO" 5; }
4543 ac_cpp
='$CPP $CPPFLAGS'
4544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4551 if ${ac_cv_path_GREP+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -z "$GREP"; then
4555 ac_path_GREP_found
=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_prog
in grep ggrep
; do
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4565 as_fn_executable_p
"$ac_path_GREP" ||
continue
4566 # Check for GNU ac_path_GREP and select it if it is found.
4567 # Check for GNU $ac_path_GREP
4568 case `"$ac_path_GREP" --version 2>&1` in
4570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4573 $as_echo_n 0123456789 >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'GREP' >> "conftest.nl"
4580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_GREP
="$ac_path_GREP"
4586 ac_path_GREP_max
=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4594 $ac_path_GREP_found && break 3
4599 if test -z "$ac_cv_path_GREP"; then
4600 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 ac_cv_path_GREP
=$GREP
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4608 $as_echo "$ac_cv_path_GREP" >&6; }
4609 GREP
="$ac_cv_path_GREP"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4613 $as_echo_n "checking for egrep... " >&6; }
4614 if ${ac_cv_path_EGREP+:} false
; then :
4615 $as_echo_n "(cached) " >&6
4617 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4618 then ac_cv_path_EGREP
="$GREP -E"
4620 if test -z "$EGREP"; then
4621 ac_path_EGREP_found
=false
4622 # Loop through the user's path and test for each of PROGNAME-LIST
4623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4624 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4627 test -z "$as_dir" && as_dir
=.
4628 for ac_prog
in egrep; do
4629 for ac_exec_ext
in '' $ac_executable_extensions; do
4630 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4631 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4632 # Check for GNU ac_path_EGREP and select it if it is found.
4633 # Check for GNU $ac_path_EGREP
4634 case `"$ac_path_EGREP" --version 2>&1` in
4636 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4639 $as_echo_n 0123456789 >"conftest.in"
4642 cat "conftest.in" "conftest.in" >"conftest.tmp"
4643 mv "conftest.tmp" "conftest.in"
4644 cp "conftest.in" "conftest.nl"
4645 $as_echo 'EGREP' >> "conftest.nl"
4646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4647 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4648 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4650 # Best one so far, save it but keep looking for a better one
4651 ac_cv_path_EGREP
="$ac_path_EGREP"
4652 ac_path_EGREP_max
=$ac_count
4654 # 10*(2^10) chars as input seems more than enough
4655 test $ac_count -gt 10 && break
4657 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4660 $ac_path_EGREP_found && break 3
4665 if test -z "$ac_cv_path_EGREP"; then
4666 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 ac_cv_path_EGREP
=$EGREP
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4675 $as_echo "$ac_cv_path_EGREP" >&6; }
4676 EGREP
="$ac_cv_path_EGREP"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4680 $as_echo_n "checking for ANSI C header files... " >&6; }
4681 if ${ac_cv_header_stdc+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4699 if ac_fn_c_try_compile
"$LINENO"; then :
4700 ac_cv_header_stdc
=yes
4702 ac_cv_header_stdc
=no
4704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4706 if test $ac_cv_header_stdc = yes; then
4707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 $EGREP "memchr" >/dev
/null
2>&1; then :
4717 ac_cv_header_stdc
=no
4723 if test $ac_cv_header_stdc = yes; then
4724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "free" >/dev
/null
2>&1; then :
4734 ac_cv_header_stdc
=no
4740 if test $ac_cv_header_stdc = yes; then
4741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4742 if test "$cross_compiling" = yes; then :
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 #if ((' ' & 0x0FF) == 0x020)
4750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4753 # define ISLOWER(c) \
4754 (('a' <= (c) && (c) <= 'i') \
4755 || ('j' <= (c) && (c) <= 'r') \
4756 || ('s' <= (c) && (c) <= 'z'))
4757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4765 for (i = 0; i < 256; i++)
4766 if (XOR (islower (i), ISLOWER (i))
4767 || toupper (i) != TOUPPER (i))
4772 if ac_fn_c_try_run
"$LINENO"; then :
4775 ac_cv_header_stdc
=no
4777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4784 $as_echo "$ac_cv_header_stdc" >&6; }
4785 if test $ac_cv_header_stdc = yes; then
4787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4793 inttypes.h stdint.h unistd.h
4795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4798 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4799 cat >>confdefs.h
<<_ACEOF
4800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4809 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4810 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4817 if test "$MINIX" = yes; then
4819 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4822 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4825 $as_echo "#define _MINIX 1" >>confdefs.h
4828 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4835 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4841 # define __EXTENSIONS__ 1
4842 $ac_includes_default
4851 if ac_fn_c_try_compile
"$LINENO"; then :
4852 ac_cv_safe_to_define___extensions__
=yes
4854 ac_cv_safe_to_define___extensions__
=no
4856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4859 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4860 test $ac_cv_safe_to_define___extensions__ = yes &&
4861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4865 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4867 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4869 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4871 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4873 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4875 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4877 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4879 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4881 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4883 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4888 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4889 if ${ac_cv_should_define__xopen_source+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4892 ac_cv_should_define__xopen_source
=no
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4906 if ac_fn_c_try_compile
"$LINENO"; then :
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4912 #define _XOPEN_SOURCE 500
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4924 ac_cv_should_define__xopen_source
=yes
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4931 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4932 test $ac_cv_should_define__xopen_source = yes &&
4933 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4946 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4947 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
4948 $as_echo_n "(cached) " >&6
4951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4961 gl_cv_c_amsterdam_compiler
=yes
4963 gl_cv_c_amsterdam_compiler
=no
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4970 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4972 if test $gl_cv_c_amsterdam_compiler = yes; then
4973 if test -z "$AR"; then
4976 if test -z "$ARFLAGS"; then
4980 if test -n "$ac_tool_prefix"; then
4981 for ac_prog
in ar lib
"link -lib"
4983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_AR+:} false
; then :
4988 $as_echo_n "(cached) " >&6
4990 if test -n "$AR"; then
4991 ac_cv_prog_AR
="$AR" # Let the user override the test.
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_exec_ext
in '' $ac_executable_extensions; do
4999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 if test -n "$AR"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5013 $as_echo "$AR" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 test -n "$AR" && break
5023 if test -z "$AR"; then
5025 for ac_prog
in ar lib
"link -lib"
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy
$ac_prog; ac_word
=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5032 $as_echo_n "(cached) " >&6
5034 if test -n "$ac_ct_AR"; then
5035 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir
=.
5042 for ac_exec_ext
in '' $ac_executable_extensions; do
5043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_ac_ct_AR
="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5055 if test -n "$ac_ct_AR"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5057 $as_echo "$ac_ct_AR" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$ac_ct_AR" && break
5067 if test "x$ac_ct_AR" = x
; then
5070 case $cross_compiling:$ac_tool_warned in
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned
=yes ;;
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5083 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5084 if ${am_cv_ar_interface+:} false
; then :
5085 $as_echo_n "(cached) " >&6
5088 ac_cpp
='$CPP $CPPFLAGS'
5089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5093 am_cv_ar_interface
=ar
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int some_variable = 0;
5098 if ac_fn_c_try_compile
"$LINENO"; then :
5099 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5101 (eval $am_ar_try) 2>&5
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if test "$ac_status" -eq 0; then
5106 am_cv_ar_interface
=ar
5108 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5110 (eval $am_ar_try) 2>&5
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }
5114 if test "$ac_status" -eq 0; then
5115 am_cv_ar_interface
=lib
5117 am_cv_ar_interface
=unknown
5120 rm -f conftest.lib libconftest.a
5123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5125 ac_cpp
='$CPP $CPPFLAGS'
5126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5132 $as_echo "$am_cv_ar_interface" >&6; }
5134 case $am_cv_ar_interface in
5138 # Microsoft lib, so override with the ar-lib wrapper script.
5139 # FIXME: It is wrong to rewrite AR.
5140 # But if we don't then we get into trouble of one sort or another.
5141 # A longer-term fix would be to have automake use am__AR in this case,
5142 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5144 AR
="$am_aux_dir/ar-lib $AR"
5147 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5155 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_AR+:} false
; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR
="$AR" # Let the user override the test.
5164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir
=.
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 if test -n "$AR"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5184 $as_echo "$AR" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5192 if test -z "$ac_cv_prog_AR"; then
5194 # Extract the first word of "ar", so it can be a program name with args.
5195 set dummy
ar; ac_word
=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -n "$ac_ct_AR"; then
5202 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir
=.
5209 for ac_exec_ext
in '' $ac_executable_extensions; do
5210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_AR
="ar"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5222 if test -n "$ac_ct_AR"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5224 $as_echo "$ac_ct_AR" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5230 if test "x$ac_ct_AR" = x
; then
5233 case $cross_compiling:$ac_tool_warned in
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned
=yes ;;
5245 if test -z "$ARFLAGS"; then
5251 if test -z "$RANLIB"; then
5252 if test $gl_cv_c_amsterdam_compiler = yes; then
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5257 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_RANLIB+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$RANLIB"; then
5264 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 RANLIB
=$ac_cv_prog_RANLIB
5284 if test -n "$RANLIB"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5286 $as_echo "$RANLIB" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_RANLIB"; then
5295 ac_ct_RANLIB
=$RANLIB
5296 # Extract the first word of "ranlib", so it can be a program name with args.
5297 set dummy ranlib
; ac_word
=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5301 $as_echo_n "(cached) " >&6
5303 if test -n "$ac_ct_RANLIB"; then
5304 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir
=.
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5324 if test -n "$ac_ct_RANLIB"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5326 $as_echo "$ac_ct_RANLIB" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_RANLIB" = x
; then
5335 case $cross_compiling:$ac_tool_warned in
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned
=yes ;;
5341 RANLIB
=$ac_ct_RANLIB
5344 RANLIB
="$ac_cv_prog_RANLIB"
5351 # Make sure we can run config.sub.
5352 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5353 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5356 $as_echo_n "checking build system type... " >&6; }
5357 if ${ac_cv_build+:} false
; then :
5358 $as_echo_n "(cached) " >&6
5360 ac_build_alias
=$build_alias
5361 test "x$ac_build_alias" = x
&&
5362 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5363 test "x$ac_build_alias" = x
&&
5364 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5365 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5366 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5370 $as_echo "$ac_cv_build" >&6; }
5371 case $ac_cv_build in
5373 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5376 ac_save_IFS
=$IFS; IFS
='-'
5382 # Remember, the first character of IFS is used to create $*,
5383 # except with old shells:
5386 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5390 $as_echo_n "checking host system type... " >&6; }
5391 if ${ac_cv_host+:} false
; then :
5392 $as_echo_n "(cached) " >&6
5394 if test "x$host_alias" = x
; then
5395 ac_cv_host
=$ac_cv_build
5397 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5398 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5403 $as_echo "$ac_cv_host" >&6; }
5406 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5409 ac_save_IFS
=$IFS; IFS
='-'
5415 # Remember, the first character of IFS is used to create $*,
5416 # except with old shells:
5419 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5425 # IEEE behaviour is the default on all CPUs except Alpha and SH
5426 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5427 # and the GCC 4.1.2 manual).
5430 # On Alpha systems, a compiler option provides the behaviour.
5431 # See the ieee(3) manual page, also available at
5432 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5433 if test -n "$GCC"; then
5434 # GCC has the option -mieee.
5435 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5436 CPPFLAGS
="$CPPFLAGS -mieee"
5438 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5439 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5440 CPPFLAGS
="$CPPFLAGS -ieee"
5444 if test -n "$GCC"; then
5445 # GCC has the option -mieee.
5446 CPPFLAGS
="$CPPFLAGS -mieee"
5451 # Check whether --enable-largefile was given.
5452 if test "${enable_largefile+set}" = set; then :
5453 enableval
=$enable_largefile;
5456 if test "$enable_largefile" != no
; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5459 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5460 if ${ac_cv_sys_largefile_CC+:} false
; then :
5461 $as_echo_n "(cached) " >&6
5463 ac_cv_sys_largefile_CC
=no
5464 if test "$GCC" != yes; then
5467 # IRIX 6.2 and later do not support large files by default,
5468 # so use the C compiler's -n32 option if that helps.
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 /* Check that off_t can represent 2**63 - 1 correctly.
5473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474 since some C++ compilers masquerading as C compilers
5475 incorrectly reject 9223372036854775807. */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478 && LARGE_OFF_T % 2147483647 == 1)
5488 if ac_fn_c_try_compile
"$LINENO"; then :
5491 rm -f core conftest.err conftest.
$ac_objext
5493 if ac_fn_c_try_compile
"$LINENO"; then :
5494 ac_cv_sys_largefile_CC
=' -n32'; break
5496 rm -f core conftest.err conftest.
$ac_objext
5500 rm -f conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5504 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5505 if test "$ac_cv_sys_largefile_CC" != no
; then
5506 CC
=$CC$ac_cv_sys_largefile_CC
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5510 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5511 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5512 $as_echo_n "(cached) " >&6
5515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <sys/types.h>
5518 /* Check that off_t can represent 2**63 - 1 correctly.
5519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5520 since some C++ compilers masquerading as C compilers
5521 incorrectly reject 9223372036854775807. */
5522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5524 && LARGE_OFF_T % 2147483647 == 1)
5534 if ac_fn_c_try_compile
"$LINENO"; then :
5535 ac_cv_sys_file_offset_bits
=no
; break
5537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #define _FILE_OFFSET_BITS 64
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5558 if ac_fn_c_try_compile
"$LINENO"; then :
5559 ac_cv_sys_file_offset_bits
=64; break
5561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5562 ac_cv_sys_file_offset_bits
=unknown
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5567 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5568 case $ac_cv_sys_file_offset_bits in #(
5571 cat >>confdefs.h
<<_ACEOF
5572 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5577 if test $ac_cv_sys_file_offset_bits = unknown
; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5579 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5580 if ${ac_cv_sys_large_files+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 if ac_fn_c_try_compile
"$LINENO"; then :
5604 ac_cv_sys_large_files
=no
; break
5606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define _LARGE_FILES 1
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5627 if ac_fn_c_try_compile
"$LINENO"; then :
5628 ac_cv_sys_large_files
=1; break
5630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 ac_cv_sys_large_files
=unknown
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5636 $as_echo "$ac_cv_sys_large_files" >&6; }
5637 case $ac_cv_sys_large_files in #(
5640 cat >>confdefs.h
<<_ACEOF
5641 #define _LARGE_FILES $ac_cv_sys_large_files
5649 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5655 # Pre-early section.
5659 # Code from module absolute-header:
5660 # Code from module alloca:
5661 # Code from module alloca-opt:
5662 # Code from module assure:
5663 # Code from module at-internal:
5664 # Code from module canonicalize-lgpl:
5665 # Code from module chdir:
5666 # Code from module chdir-long:
5667 # Code from module cloexec:
5668 # Code from module close:
5669 # Code from module closedir:
5670 # Code from module configmake:
5671 # Code from module d-ino:
5672 # Code from module d-type:
5673 # Code from module dirent:
5674 # Code from module dirfd:
5675 # Code from module dirname-lgpl:
5676 # Code from module dosname:
5677 # Code from module double-slash-root:
5678 # Code from module dup:
5679 # Code from module dup2:
5680 # Code from module environ:
5681 # Code from module errno:
5682 # Code from module error:
5683 # Code from module exitfail:
5684 # Code from module extensions:
5685 # Code from module extern-inline:
5686 # Code from module fchdir:
5687 # Code from module fcntl:
5688 # Code from module fcntl-h:
5689 # Code from module fd-hook:
5690 # Code from module fdopendir:
5691 # Code from module filename:
5692 # Code from module filenamecat-lgpl:
5693 # Code from module flexmember:
5694 # Code from module float:
5695 # Code from module fnmatch:
5696 # Code from module fnmatch-gnu:
5697 # Code from module fpieee:
5699 # Code from module fpucw:
5700 # Code from module frexp:
5701 # Code from module frexpl:
5702 # Code from module fstat:
5703 # Code from module fstatat:
5704 # Code from module getcwd:
5705 # Code from module getcwd-lgpl:
5706 # Code from module getdtablesize:
5707 # Code from module getlogin_r:
5708 # Code from module getprogname:
5709 # Code from module gettext-h:
5710 # Code from module gettimeofday:
5711 # Code from module glob:
5712 # Code from module hard-locale:
5713 # Code from module include_next:
5714 # Code from module intprops:
5715 # Code from module inttypes:
5716 # Code from module inttypes-incomplete:
5717 # Code from module isnand-nolibm:
5718 # Code from module isnanl-nolibm:
5719 # Code from module largefile:
5721 # Code from module limits-h:
5722 # Code from module localcharset:
5723 # Code from module lstat:
5724 # Code from module malloc-posix:
5725 # Code from module malloca:
5726 # Code from module math:
5727 # Code from module mbrtowc:
5728 # Code from module mbsinit:
5729 # Code from module mbsrtowcs:
5730 # Code from module memchr:
5731 # Code from module memmem:
5732 # Code from module memmem-simple:
5733 # Code from module mempcpy:
5734 # Code from module memrchr:
5735 # Code from module mkdir:
5736 # Code from module mkstemp:
5737 # Code from module msvc-inval:
5738 # Code from module msvc-nothrow:
5739 # Code from module multiarch:
5740 # Code from module nocrash:
5741 # Code from module open:
5742 # Code from module openat:
5743 # Code from module openat-die:
5744 # Code from module openat-h:
5745 # Code from module opendir:
5746 # Code from module pathmax:
5747 # Code from module rawmemchr:
5748 # Code from module readdir:
5749 # Code from module readlink:
5750 # Code from module realloc-posix:
5751 # Code from module rename:
5752 # Code from module rewinddir:
5753 # Code from module rmdir:
5754 # Code from module same-inode:
5755 # Code from module save-cwd:
5756 # Code from module secure_getenv:
5757 # Code from module setenv:
5758 # Code from module signal-h:
5759 # Code from module snippet/_Noreturn:
5760 # Code from module snippet/arg-nonnull:
5761 # Code from module snippet/c++defs:
5762 # Code from module snippet/warn-on-use:
5763 # Code from module ssize_t:
5764 # Code from module stat:
5765 # Code from module stdbool:
5766 # Code from module stddef:
5767 # Code from module stdint:
5768 # Code from module stdio:
5769 # Code from module stdlib:
5770 # Code from module strchrnul:
5771 # Code from module strdup-posix:
5772 # Code from module streq:
5773 # Code from module strerror:
5774 # Code from module strerror-override:
5775 # Code from module string:
5776 # Code from module strnlen1:
5777 # Code from module strstr:
5778 # Code from module strstr-simple:
5779 # Code from module strtok_r:
5780 # Code from module sys_stat:
5781 # Code from module sys_time:
5782 # Code from module sys_types:
5783 # Code from module tempname:
5784 # Code from module time:
5785 # Code from module unistd:
5786 # Code from module unistd-safer:
5787 # Code from module unsetenv:
5788 # Code from module update-copyright:
5789 # Code from module verify:
5790 # Code from module wchar:
5791 # Code from module wctype-h:
5794 ac_cpp
='$CPP $CPPFLAGS'
5795 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5800 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_CC+:} false
; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$CC"; then
5807 ac_cv_prog_CC
="$CC" # Let the user override the test.
5809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir
=.
5814 for ac_exec_ext
in '' $ac_executable_extensions; do
5815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 if test -n "$CC"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5829 $as_echo "$CC" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5837 if test -z "$ac_cv_prog_CC"; then
5839 # Extract the first word of "gcc", so it can be a program name with args.
5840 set dummy gcc
; ac_word
=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 if test -n "$ac_ct_CC"; then
5847 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir
=.
5854 for ac_exec_ext
in '' $ac_executable_extensions; do
5855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_ac_ct_CC
="gcc"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5867 if test -n "$ac_ct_CC"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5869 $as_echo "$ac_ct_CC" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5875 if test "x$ac_ct_CC" = x
; then
5878 case $cross_compiling:$ac_tool_warned in
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned
=yes ;;
5890 if test -z "$CC"; then
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5893 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_CC+:} false
; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$CC"; then
5900 ac_cv_prog_CC
="$CC" # Let the user override the test.
5902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir
=.
5907 for ac_exec_ext
in '' $ac_executable_extensions; do
5908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 if test -n "$CC"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5922 $as_echo "$CC" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5931 if test -z "$CC"; then
5932 # Extract the first word of "cc", so it can be a program name with args.
5933 set dummy cc
; ac_word
=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_CC+:} false
; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$CC"; then
5940 ac_cv_prog_CC
="$CC" # Let the user override the test.
5943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir
=.
5948 for ac_exec_ext
in '' $ac_executable_extensions; do
5949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5951 ac_prog_rejected
=yes
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 if test $ac_prog_rejected = yes; then
5963 # We found a bogon in the path, so make sure we never use it.
5964 set dummy
$ac_cv_prog_CC
5966 if test $# != 0; then
5967 # We chose a different compiler from the bogus one.
5968 # However, it has the same basename, so the bogon will be chosen
5969 # first if we set CC to just the basename; use the full file name.
5971 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5977 if test -n "$CC"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5979 $as_echo "$CC" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5987 if test -z "$CC"; then
5988 if test -n "$ac_tool_prefix"; then
5989 for ac_prog
in cl.exe
5991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5992 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_CC+:} false
; then :
5996 $as_echo_n "(cached) " >&6
5998 if test -n "$CC"; then
5999 ac_cv_prog_CC
="$CC" # Let the user override the test.
6001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir
=.
6006 for ac_exec_ext
in '' $ac_executable_extensions; do
6007 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 if test -n "$CC"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6021 $as_echo "$CC" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6028 test -n "$CC" && break
6031 if test -z "$CC"; then
6033 for ac_prog
in cl.exe
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy
$ac_prog; ac_word
=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$ac_ct_CC"; then
6043 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir
=.
6050 for ac_exec_ext
in '' $ac_executable_extensions; do
6051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_ac_ct_CC
="$ac_prog"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6063 if test -n "$ac_ct_CC"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6065 $as_echo "$ac_ct_CC" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6072 test -n "$ac_ct_CC" && break
6075 if test "x$ac_ct_CC" = x
; then
6078 case $cross_compiling:$ac_tool_warned in
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned
=yes ;;
6091 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 as_fn_error $?
"no acceptable C compiler found in \$PATH
6094 See \`config.log' for more details" "$LINENO" 5; }
6096 # Provide some information about the compiler.
6097 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6100 for ac_option
in --version -v -V -qversion; do
6101 { { ac_try
="$ac_compiler $ac_option >&5"
6103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6107 $as_echo "$ac_try_echo"; } >&5
6108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6110 if test -s conftest.err; then
6112 ... rest of stderr output deleted ...
6113 10q' conftest.err >conftest.er1
6114 cat conftest.er1 >&5
6116 rm -f conftest.er1 conftest.err
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118 test $ac_status = 0; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6122 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6123 if ${ac_cv_c_compiler_gnu+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6140 if ac_fn_c_try_compile "$LINENO"; then :
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6150 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6151 if test $ac_compiler_gnu = yes; then
6156 ac_test_CFLAGS=${CFLAGS+set}
6157 ac_save_CFLAGS=$CFLAGS
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6159 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6160 if ${ac_cv_prog_cc_g+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 ac_save_c_werror_flag=$ac_c_werror_flag
6164 ac_c_werror_flag=yes
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6178 if ac_fn_c_try_compile "$LINENO"; then :
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6193 if ac_fn_c_try_compile "$LINENO"; then :
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6209 if ac_fn_c_try_compile "$LINENO"; then :
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 ac_c_werror_flag=$ac_save_c_werror_flag
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6220 $as_echo "$ac_cv_prog_cc_g" >&6; }
6221 if test "$ac_test_CFLAGS" = set; then
6222 CFLAGS=$ac_save_CFLAGS
6223 elif test $ac_cv_prog_cc_g = yes; then
6224 if test "$GCC" = yes; then
6230 if test "$GCC" = yes; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6237 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6238 if ${ac_cv_prog_cc_c89+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 ac_cv_prog_cc_c89=no
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6249 struct buf { int x; };
6250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6251 static char *e (p, i)
6257 static char *f (char * (*g) (char **, int), char **p, ...)
6262 s = g (p, va_arg (v,int));
6267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6268 function prototypes and stuff, but not '\xHH' hex character constants.
6269 These don't provoke an error unfortunately, instead are silently treated
6270 as 'x'. The following induces an error, until -std is added to get
6271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6272 array size at least. It's necessary to write '\x00'==0 to get something
6273 that's true only with -std. */
6274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6277 inside strings and character constants. */
6279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6281 int test (int i, double x);
6282 struct s1 {int (*f) (int a);};
6283 struct s2 {int (*f) (double a);};
6284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6298 CC="$ac_save_CC $ac_arg"
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 ac_cv_prog_cc_c89=$ac_arg
6302 rm -f core conftest.err conftest.$ac_objext
6303 test "x$ac_cv_prog_cc_c89" != "xno" && break
6305 rm -f conftest.$ac_ext
6310 case "x$ac_cv_prog_cc_c89" in
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6313 $as_echo "none needed" >&6; } ;;
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6316 $as_echo "unsupported" >&6; } ;;
6318 CC="$CC $ac_cv_prog_cc_c89"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6320 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6322 if test "x$ac_cv_prog_cc_c89" != xno; then :
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6338 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6339 if ${am_cv_prog_cc_c_o+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6353 # Make sure it works both with $CC and with simple cc.
6354 # Following AC_PROG_CC_C_O, we do the test twice because some
6355 # compilers refuse to overwrite an existing .o file with -o,
6356 # though they will create one.
6357 am_cv_prog_cc_c_o=yes
6359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } \
6364 && test -f conftest2.$ac_objext; then
6367 am_cv_prog_cc_c_o=no
6371 rm -f core conftest*
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6375 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6376 if test "$am_cv_prog_cc_c_o" != yes; then
6377 # Losing compiler, so override with the script.
6378 # FIXME: It is wrong to rewrite CC.
6379 # But if we don't then we get into trouble of one sort or another.
6380 # A longer-term fix would be to have automake use am__CC in this case,
6381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6382 CC="$am_aux_dir/compile $CC"
6385 ac_cpp='$CPP $CPPFLAGS'
6386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6395 for ac_dir in ../.. "$srcdir"/../..; do
6396 if test -f "$ac_dir/install-sh"; then
6398 ac_install_sh="$ac_aux_dir/install-sh -c"
6400 elif test -f "$ac_dir/install.sh"; then
6402 ac_install_sh="$ac_aux_dir/install.sh -c"
6404 elif test -f "$ac_dir/shtool"; then
6406 ac_install_sh="$ac_aux_dir/shtool install -c"
6410 if test -z "$ac_aux_dir"; then
6411 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6414 # These three variables are undocumented and unsupported,
6415 # and are intended to be withdrawn in a future Autoconf release.
6416 # They can cause serious problems if a builder's source tree is in a directory
6417 # whose full name contains unusual characters.
6418 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6419 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6420 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6424 $as_echo_n "checking target system type... " >&6; }
6425 if ${ac_cv_target+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test "x$target_alias" = x; then
6429 ac_cv_target=$ac_cv_host
6431 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6437 $as_echo "$ac_cv_target" >&6; }
6438 case $ac_cv_target in
6440 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6442 target=$ac_cv_target
6443 ac_save_IFS=$IFS; IFS='-'
6449 # Remember, the first character of IFS is used to create $*,
6450 # except with old shells:
6453 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6456 # The aliases save the names the user supplied, while $host etc.
6457 # will get canonicalized.
6458 test -n "$target_alias" &&
6459 test "$program_prefix$program_suffix$program_transform_name" = \
6461 program_prefix=${target_alias}-
6469 LIBC_FATAL_STDERR_=1
6470 export LIBC_FATAL_STDERR_
6472 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6473 if test "x$ac_cv_type_size_t" = xyes; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define size_t unsigned int
6483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6484 # for constant arguments. Useless!
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6486 $as_echo_n "checking for working alloca.h... " >&6; }
6487 if ${ac_cv_working_alloca_h+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6496 char *p = (char *) alloca (2 * sizeof (int));
6502 if ac_fn_c_try_link "$LINENO"; then :
6503 ac_cv_working_alloca_h=yes
6505 ac_cv_working_alloca_h=no
6507 rm -f core conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6511 $as_echo "$ac_cv_working_alloca_h" >&6; }
6512 if test $ac_cv_working_alloca_h = yes; then
6514 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6519 $as_echo_n "checking for alloca... " >&6; }
6520 if ${ac_cv_func_alloca_works+:} false; then :
6521 $as_echo_n "(cached) " >&6
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6526 # define alloca __builtin_alloca
6529 # include <malloc.h>
6530 # define alloca _alloca
6532 # ifdef HAVE_ALLOCA_H
6533 # include <alloca.h>
6538 # ifndef alloca /* predefined by HP cc +Olibcalls */
6539 void *alloca (size_t);
6549 char *p = (char *) alloca (1);
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 ac_cv_func_alloca_works=yes
6558 ac_cv_func_alloca_works=no
6560 rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6564 $as_echo "$ac_cv_func_alloca_works" >&6; }
6566 if test $ac_cv_func_alloca_works = yes; then
6568 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6572 # that cause trouble. Some versions do not even contain alloca or
6573 # contain a buggy version. If you still want to use their alloca,
6574 # use ar to extract alloca.o from them instead of compiling alloca.c.
6580 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6582 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
6586 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
6587 if ${ac_cv_os_cray+:} false; then :
6588 $as_echo_n "(cached
) " >&6
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #if defined CRAY && ! defined CRAY2
6599 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6600 $EGREP "webecray
" >/dev/null 2>&1; then :
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
6609 $as_echo "$ac_cv_os_cray" >&6; }
6610 if test $ac_cv_os_cray = yes; then
6611 for ac_func in _getb67 GETB67 getb67; do
6612 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6614 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6616 cat >>confdefs.h <<_ACEOF
6617 #define CRAY_STACKSEG_END $ac_func
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
6627 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
6628 if ${ac_cv_c_stack_direction+:} false; then :
6629 $as_echo_n "(cached
) " >&6
6631 if test "$cross_compiling" = yes; then :
6632 ac_cv_c_stack_direction=0
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 $ac_includes_default
6638 find_stack_direction (int *addr, int depth)
6643 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6644 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6649 main (int argc, char **argv)
6651 return find_stack_direction (0, argc + !argv + 20) < 0;
6654 if ac_fn_c_try_run "$LINENO"; then :
6655 ac_cv_c_stack_direction=1
6657 ac_cv_c_stack_direction=-1
6659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6660 conftest.$ac_objext conftest.beam conftest.$ac_ext
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
6665 $as_echo "$ac_cv_c_stack_direction" >&6; }
6666 cat >>confdefs.h <<_ACEOF
6667 #define STACK_DIRECTION $ac_cv_c_stack_direction
6676 GNULIB_CALLOC_POSIX=0;
6677 GNULIB_CANONICALIZE_FILE_NAME=0;
6678 GNULIB_GETLOADAVG=0;
6681 GNULIB_MALLOC_POSIX=0;
6688 GNULIB_POSIX_OPENPT=0;
6695 GNULIB_REALLOC_POSIX=0;
6698 GNULIB_SECURE_GETENV=0;
6703 GNULIB_SYSTEM_POSIX=0;
6709 HAVE_CANONICALIZE_FILE_NAME=1;
6710 HAVE_DECL_GETLOADAVG=1;
6718 HAVE_POSIX_OPENPT=1;
6727 HAVE_SECURE_GETENV=1;
6733 HAVE_STRUCT_RANDOM_DATA=1;
6734 HAVE_SYS_LOADAVG_H=0;
6736 HAVE_DECL_UNSETENV=1;
6738 REPLACE_CANONICALIZE_FILE_NAME=0;
6743 REPLACE_PTSNAME_R=0;
6758 for ac_func in $gl_func_list
6760 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
// is distinct from
/" >&5
6787 $as_echo_n "checking whether
// is distinct from
/...
" >&6; }
6788 if ${gl_cv_double_slash_root+:} false; then :
6789 $as_echo_n "(cached
) " >&6
6791 if test x"$cross_compiling" = xyes ; then
6792 # When cross-compiling, there is no way to tell whether // is special
6793 # short of a list of hosts. However, the only known hosts to date
6794 # that have a distinct // are Apollo DomainOS (too old to port to),
6795 # Cygwin, and z/OS. If anyone knows of another system for which // has
6796 # special semantics and is distinct from /, please report it to
6797 # <bug-gnulib@gnu.org>.
6799 *-cygwin | i370-ibm-openedition)
6800 gl_cv_double_slash_root=yes ;;
6802 # Be optimistic and assume that / and // are the same when we
6804 gl_cv_double_slash_root='unknown, assuming no' ;;
6807 set x `ls -di / // 2>/dev/null`
6808 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6809 gl_cv_double_slash_root=no
6811 gl_cv_double_slash_root=yes
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gl_cv_double_slash_root" >&5
6816 $as_echo "$gl_cv_double_slash_root" >&6; }
6817 if test "$gl_cv_double_slash_root" = yes; then
6819 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6837 $as_echo_n "checking whether realpath works... " >&6; }
6838 if ${gl_cv_func_realpath_works+:} false
; then :
6839 $as_echo_n "(cached) " >&6
6844 if test "$cross_compiling" = yes; then :
6846 # Guess yes on glibc systems.
6847 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
6848 # If we don't know, assume the worst.
6849 *) gl_cv_func_realpath_works
="guessing no" ;;
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6859 #if defined __MACH__ && defined __APPLE__
6860 /* Avoid a crash on Mac OS X. */
6861 #include <mach/mach.h>
6862 #include <mach/mach_error.h>
6863 #include <mach/thread_status.h>
6864 #include <mach/exception.h>
6865 #include <mach/task.h>
6866 #include <pthread.h>
6867 /* The exception port on which our thread listens. */
6868 static mach_port_t our_exception_port;
6869 /* The main function of the thread listening for exceptions of type
6872 mach_exception_thread (void *arg)
6874 /* Buffer for a message to be received. */
6876 mach_msg_header_t head;
6877 mach_msg_body_t msgh_body;
6880 mach_msg_return_t retval;
6881 /* Wait for a message on the exception port. */
6882 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6883 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6884 if (retval != MACH_MSG_SUCCESS)
6891 mach_port_t self = mach_task_self ();
6892 /* Allocate a port on which the thread shall listen for exceptions. */
6893 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6895 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6896 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6897 MACH_MSG_TYPE_MAKE_SEND)
6899 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6901 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6902 /* Create the thread listening on the exception port. */
6903 pthread_attr_t attr;
6905 if (pthread_attr_init (&attr) == 0
6906 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6907 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6908 pthread_attr_destroy (&attr);
6909 /* Replace the exception port info for these exceptions with our own.
6910 Note that we replace the exception port for the entire task, not only
6911 for a particular thread. This has the effect that when our exception
6912 port gets the message, the thread specific exception port has already
6913 been asked, and we don't need to bother about it.
6914 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6915 task_set_exception_ports (self, mask, our_exception_port,
6916 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6921 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6922 /* Avoid a crash on native Windows. */
6923 #define WIN32_LEAN_AND_MEAN
6924 #include <windows.h>
6925 #include <winerror.h>
6927 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6929 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6931 case EXCEPTION_ACCESS_VIOLATION:
6932 case EXCEPTION_IN_PAGE_ERROR:
6933 case EXCEPTION_STACK_OVERFLOW:
6934 case EXCEPTION_GUARD_PAGE:
6935 case EXCEPTION_PRIV_INSTRUCTION:
6936 case EXCEPTION_ILLEGAL_INSTRUCTION:
6937 case EXCEPTION_DATATYPE_MISALIGNMENT:
6938 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6939 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6942 return EXCEPTION_CONTINUE_SEARCH;
6947 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6950 /* Avoid a crash on POSIX systems. */
6953 /* A POSIX signal handler. */
6955 exception_handler (int sig)
6963 signal (SIGSEGV, exception_handler);
6966 signal (SIGBUS, exception_handler);
6980 char *name = realpath ("conftest.a", NULL);
6981 if (!(name && *name == '/'))
6986 char *name = realpath ("conftest.b/../conftest.a", NULL);
6992 char *name = realpath ("conftest.a/", NULL);
6998 char *name1 = realpath (".", NULL);
6999 char *name2 = realpath ("conftest.d//./..", NULL);
7000 if (! name1 || ! name2 || strcmp (name1, name2))
7012 if ac_fn_c_try_run
"$LINENO"; then :
7013 gl_cv_func_realpath_works
=yes
7015 gl_cv_func_realpath_works
=no
7017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7021 rm -rf conftest.a conftest.d
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7025 $as_echo "$gl_cv_func_realpath_works" >&6; }
7026 case "$gl_cv_func_realpath_works" in
7029 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7038 for ac_header
in $gl_header_list
7040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7042 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7043 cat >>confdefs.h
<<_ACEOF
7044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7088 GNULIB_EUIDACCESS
=0;
7096 GNULIB_GETDOMAINNAME
=0;
7097 GNULIB_GETDTABLESIZE
=0;
7099 GNULIB_GETHOSTNAME
=0;
7101 GNULIB_GETLOGIN_R
=0;
7102 GNULIB_GETPAGESIZE
=0;
7103 GNULIB_GETUSERSHELL
=0;
7104 GNULIB_GROUP_MEMBER
=0;
7116 GNULIB_READLINKAT
=0;
7118 GNULIB_SETHOSTNAME
=0;
7123 GNULIB_UNISTD_H_NONBLOCKING
=0;
7124 GNULIB_UNISTD_H_SIGPIPE
=0;
7139 HAVE_GETDTABLESIZE
=1;
7144 HAVE_GROUP_MEMBER
=1;
7160 HAVE_DECL_ENVIRON
=1;
7162 HAVE_DECL_FDATASYNC
=1;
7163 HAVE_DECL_GETDOMAINNAME
=1;
7164 HAVE_DECL_GETLOGIN_R
=1;
7165 HAVE_DECL_GETPAGESIZE
=1;
7166 HAVE_DECL_GETUSERSHELL
=1;
7167 HAVE_DECL_SETHOSTNAME
=1;
7168 HAVE_DECL_TTYNAME_R
=1;
7176 REPLACE_FTRUNCATE
=0;
7178 REPLACE_GETDOMAINNAME
=0;
7179 REPLACE_GETDTABLESIZE
=0;
7180 REPLACE_GETLOGIN_R
=0;
7181 REPLACE_GETGROUPS
=0;
7182 REPLACE_GETPAGESIZE
=0;
7192 REPLACE_READLINKAT
=0;
7196 REPLACE_SYMLINKAT
=0;
7197 REPLACE_TTYNAME_R
=0;
7202 UNISTD_H_HAVE_WINSOCK2_H
=0;
7203 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7236 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7237 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7239 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7242 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7270 HAVE_DECL_FDOPENDIR
=1;
7277 REPLACE_FDOPENDIR
=0;
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7282 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7283 if ${gl_cv_have_include_next+:} false
; then :
7284 $as_echo_n "(cached) " >&6
7286 rm -rf conftestd1a conftestd1b conftestd2
7287 mkdir conftestd1a conftestd1b conftestd2
7288 cat <<EOF > conftestd1a/conftest.h
7289 #define DEFINED_IN_CONFTESTD1
7290 #include_next <conftest.h>
7291 #ifdef DEFINED_IN_CONFTESTD2
7294 #error "include_next doesn't work"
7297 cat <<EOF > conftestd1b/conftest.h
7298 #define DEFINED_IN_CONFTESTD1
7300 #include_next <conftest.h>
7301 #ifdef DEFINED_IN_CONFTESTD2
7304 #error "include_next doesn't work"
7307 cat <<EOF > conftestd2/conftest.h
7308 #ifndef DEFINED_IN_CONFTESTD1
7309 #error "include_next test doesn't work"
7311 #define DEFINED_IN_CONFTESTD2
7313 gl_save_CPPFLAGS
="$CPPFLAGS"
7314 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <conftest.h>
7319 if ac_fn_c_try_compile
"$LINENO"; then :
7320 gl_cv_have_include_next
=yes
7322 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 #include <conftest.h>
7327 if ac_fn_c_try_compile
"$LINENO"; then :
7328 gl_cv_have_include_next
=buggy
7330 gl_cv_have_include_next
=no
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7336 CPPFLAGS
="$gl_save_CPPFLAGS"
7337 rm -rf conftestd1a conftestd1b conftestd2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7341 $as_echo "$gl_cv_have_include_next" >&6; }
7342 PRAGMA_SYSTEM_HEADER
=
7343 if test $gl_cv_have_include_next = yes; then
7344 INCLUDE_NEXT
=include_next
7345 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7346 if test -n "$GCC"; then
7347 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7350 if test $gl_cv_have_include_next = buggy
; then
7351 INCLUDE_NEXT
=include
7352 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7354 INCLUDE_NEXT
=include
7355 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7362 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7363 if ${gl_cv_pragma_columns+:} false
; then :
7364 $as_echo_n "(cached) " >&6
7366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375 $EGREP "choke me" >/dev
/null
2>&1; then :
7376 gl_cv_pragma_columns
=yes
7378 gl_cv_pragma_columns
=no
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7385 $as_echo "$gl_cv_pragma_columns" >&6; }
7386 if test $gl_cv_pragma_columns = yes; then
7387 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7412 $as_echo_n "checking if environ is properly declared... " >&6; }
7413 if ${gt_cv_var_environ_declaration+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7422 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7425 extern struct { int foo; } environ;
7434 if ac_fn_c_try_compile
"$LINENO"; then :
7435 gt_cv_var_environ_declaration
=no
7437 gt_cv_var_environ_declaration
=yes
7439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7443 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7444 if test $gt_cv_var_environ_declaration = yes; then
7446 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7451 if test $gt_cv_var_environ_declaration != yes; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7458 $as_echo_n "checking for complete errno.h... " >&6; }
7459 if ${gl_cv_header_errno_h_complete+:} false
; then :
7460 $as_echo_n "(cached) " >&6
7463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7467 #if !defined ETXTBSY
7476 #if !defined ENOLINK
7482 #if !defined EMULTIHOP
7485 #if !defined EBADMSG
7488 #if !defined EOVERFLOW
7491 #if !defined ENOTSUP
7494 #if !defined ENETRESET
7497 #if !defined ECONNABORTED
7506 #if !defined ECANCELED
7509 #if !defined EOWNERDEAD
7512 #if !defined ENOTRECOVERABLE
7520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7521 $EGREP "booboo" >/dev
/null
2>&1; then :
7522 gl_cv_header_errno_h_complete
=no
7524 gl_cv_header_errno_h_complete
=yes
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7531 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7532 if test $gl_cv_header_errno_h_complete = yes; then
7543 if test $gl_cv_have_include_next = yes; then
7544 gl_cv_next_errno_h
='<'errno.h
'>'
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7547 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7548 if ${gl_cv_next_errno_h+:} false
; then :
7549 $as_echo_n "(cached) " >&6
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7559 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7560 *) gl_absname_cpp
="$ac_cpp" ;;
7565 gl_dirsep_regex
='[/\\]'
7568 gl_dirsep_regex
='\/'
7571 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7572 gl_header_literal_regex
=`echo 'errno.h' \
7573 | sed -e "$gl_make_literal_regex_sed"`
7574 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7575 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7581 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7582 sed -n "$gl_absolute_header_sed"`
7584 gl_header
=$gl_cv_absolute_errno_h
7585 gl_cv_next_errno_h
='"'$gl_header'"'
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7590 $as_echo "$gl_cv_next_errno_h" >&6; }
7592 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7594 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7596 gl_next_as_first_directive
='<'errno.h
'>'
7598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7599 gl_next_as_first_directive
=$gl_cv_next_errno_h
7601 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7609 if test -n "$ERRNO_H"; then
7610 GL_GENERATE_ERRNO_H_TRUE
=
7611 GL_GENERATE_ERRNO_H_FALSE
='#'
7613 GL_GENERATE_ERRNO_H_TRUE
='#'
7614 GL_GENERATE_ERRNO_H_FALSE
=
7618 if test -n "$ERRNO_H"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7620 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7621 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7622 $as_echo_n "(cached) " >&6
7625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "yes" >/dev
/null
2>&1; then :
7636 gl_cv_header_errno_h_EMULTIHOP
=yes
7638 gl_cv_header_errno_h_EMULTIHOP
=no
7642 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7646 #define _XOPEN_SOURCE_EXTENDED 1
7653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7654 $EGREP "yes" >/dev
/null
2>&1; then :
7655 gl_cv_header_errno_h_EMULTIHOP
=hidden
7659 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7660 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7661 #define _XOPEN_SOURCE_EXTENDED 1
7663 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7675 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7676 case $gl_cv_header_errno_h_EMULTIHOP in
7678 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
7681 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
7689 if test -n "$ERRNO_H"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7691 $as_echo_n "checking for ENOLINK value... " >&6; }
7692 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
7693 $as_echo_n "(cached) " >&6
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "yes" >/dev
/null
2>&1; then :
7707 gl_cv_header_errno_h_ENOLINK
=yes
7709 gl_cv_header_errno_h_ENOLINK
=no
7713 if test $gl_cv_header_errno_h_ENOLINK = no
; then
7714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7717 #define _XOPEN_SOURCE_EXTENDED 1
7724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725 $EGREP "yes" >/dev
/null
2>&1; then :
7726 gl_cv_header_errno_h_ENOLINK
=hidden
7730 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
7731 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7732 #define _XOPEN_SOURCE_EXTENDED 1
7734 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7746 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7747 case $gl_cv_header_errno_h_ENOLINK in
7749 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
7752 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
7760 if test -n "$ERRNO_H"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7762 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7763 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7777 $EGREP "yes" >/dev
/null
2>&1; then :
7778 gl_cv_header_errno_h_EOVERFLOW
=yes
7780 gl_cv_header_errno_h_EOVERFLOW
=no
7784 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 #define _XOPEN_SOURCE_EXTENDED 1
7795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7796 $EGREP "yes" >/dev
/null
2>&1; then :
7797 gl_cv_header_errno_h_EOVERFLOW
=hidden
7801 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
7802 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7803 #define _XOPEN_SOURCE_EXTENDED 1
7805 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7817 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7818 case $gl_cv_header_errno_h_EOVERFLOW in
7820 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
7823 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
7831 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7832 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
7838 cat >>confdefs.h
<<_ACEOF
7839 #define HAVE_DECL_STRERROR_R $ac_have_decl
7842 for ac_func
in strerror_r
7844 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7845 if test "x$ac_cv_func_strerror_r" = xyes
; then :
7846 cat >>confdefs.h
<<_ACEOF
7847 #define HAVE_STRERROR_R 1
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7854 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7855 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
7856 $as_echo_n "(cached) " >&6
7859 ac_cv_func_strerror_r_char_p
=no
7860 if test $ac_cv_have_decl_strerror_r = yes; then
7861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 $ac_includes_default
7869 char x = *strerror_r (0, buf, sizeof buf);
7870 char *p = strerror_r (0, buf, sizeof buf);
7877 if ac_fn_c_try_compile
"$LINENO"; then :
7878 ac_cv_func_strerror_r_char_p
=yes
7880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7882 # strerror_r is not declared. Choose between
7883 # systems that have relatively inaccessible declarations for the
7884 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7885 # former has a strerror_r that returns char*, while the latter
7886 # has a strerror_r that returns `int'.
7887 # This test should segfault on the DEC system.
7888 if test "$cross_compiling" = yes; then :
7891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 extern char *strerror_r ();
7899 char x = *strerror_r (0, buf, sizeof buf);
7900 return ! isalpha (x);
7905 if ac_fn_c_try_run
"$LINENO"; then :
7906 ac_cv_func_strerror_r_char_p
=yes
7908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7916 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7917 if test $ac_cv_func_strerror_r_char_p = yes; then
7919 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7927 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7928 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
7934 cat >>confdefs.h
<<_ACEOF
7935 #define HAVE_DECL_FCHDIR $ac_have_decl
7941 GNULIB_NONBLOCKING
=0;
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7978 $as_echo_n "checking for working fcntl.h... " >&6; }
7979 if ${gl_cv_header_working_fcntl_h+:} false
; then :
7980 $as_echo_n "(cached) " >&6
7982 if test "$cross_compiling" = yes; then :
7983 gl_cv_header_working_fcntl_h
=cross-compiling
7985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <sys/types.h>
7988 #include <sys/stat.h>
7990 # include <unistd.h>
7991 #else /* on Windows with MSVC */
7993 # include <stdlib.h>
7994 # defined sleep(n) _sleep ((n) * 1000)
8001 #define O_NOFOLLOW 0
8003 static int const constants[] =
8005 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8006 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8013 int result = !constants;
8016 static char const sym[] = "conftest.sym";
8017 if (symlink ("/dev/null", sym) != 0)
8021 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8028 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8032 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8043 static char const file[] = "confdefs.h";
8044 int fd = open (file, O_RDONLY | O_NOATIME);
8050 if (fstat (fd, &st0) != 0)
8056 if (read (fd, &c, 1) != 1)
8060 if (close (fd) != 0)
8065 if (stat (file, &st1) != 0)
8068 if (st0.st_atime != st1.st_atime)
8080 if ac_fn_c_try_run
"$LINENO"; then :
8081 gl_cv_header_working_fcntl_h
=yes
8084 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8085 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8086 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8087 *) gl_cv_header_working_fcntl_h
='no';;
8090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8096 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8098 case $gl_cv_header_working_fcntl_h in #(
8099 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8103 cat >>confdefs.h
<<_ACEOF
8104 #define HAVE_WORKING_O_NOATIME $ac_val
8108 case $gl_cv_header_working_fcntl_h in #(
8109 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8113 cat >>confdefs.h
<<_ACEOF
8114 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8118 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8119 if test "x$ac_cv_type_pid_t" = xyes
; then :
8123 cat >>confdefs.h
<<_ACEOF
8129 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8130 if test "x$ac_cv_type_mode_t" = xyes
; then :
8134 cat >>confdefs.h
<<_ACEOF
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8153 $as_echo_n "checking for mbstate_t... " >&6; }
8154 if ${ac_cv_type_mbstate_t+:} false
; then :
8155 $as_echo_n "(cached) " >&6
8157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8162 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8163 included before <wchar.h>. */
8171 mbstate_t x; return sizeof x;
8176 if ac_fn_c_try_compile
"$LINENO"; then :
8177 ac_cv_type_mbstate_t
=yes
8179 ac_cv_type_mbstate_t
=no
8181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8184 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8185 if test $ac_cv_type_mbstate_t = yes; then
8187 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8191 $as_echo "#define mbstate_t int" >>confdefs.h
8311 GNULIB_REMAINDERF
=0;
8312 GNULIB_REMAINDERL
=0;
8398 HAVE_DECL_COPYSIGNF
=1;
8415 HAVE_DECL_REMAINDER
=1;
8416 HAVE_DECL_REMAINDERL
=1;
8478 REPLACE_REMAINDER
=0;
8479 REPLACE_REMAINDERF
=0;
8480 REPLACE_REMAINDERL
=0;
8485 REPLACE_SIGNBIT_USING_GCC
=0;
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8493 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8494 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8495 $as_echo_n "(cached) " >&6
8498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8505 int e; return frexp (x, &e) > 0;
8510 if ac_fn_c_try_link
"$LINENO"; then :
8511 gl_cv_func_frexp_no_libm
=yes
8513 gl_cv_func_frexp_no_libm
=no
8515 rm -f core conftest.err conftest.
$ac_objext \
8516 conftest
$ac_exeext conftest.
$ac_ext
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8520 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8523 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8524 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8530 cat >>confdefs.h
<<_ACEOF
8531 #define HAVE_DECL_ALARM $ac_have_decl
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8537 $as_echo_n "checking whether long double and double are the same... " >&6; }
8538 if ${gl_cv_long_double_equals_double+:} false
; then :
8539 $as_echo_n "(cached) " >&6
8541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8547 typedef int check[sizeof (long double) == sizeof (double)
8548 && LDBL_MANT_DIG == DBL_MANT_DIG
8549 && LDBL_MAX_EXP == DBL_MAX_EXP
8550 && LDBL_MIN_EXP == DBL_MIN_EXP
8557 if ac_fn_c_try_compile
"$LINENO"; then :
8558 gl_cv_long_double_equals_double
=yes
8560 gl_cv_long_double_equals_double
=no
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8566 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8567 if test $gl_cv_long_double_equals_double = yes; then
8569 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8571 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
8573 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
8610 REPLACE_UTIMENSAT
=0;
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8613 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8614 if ${ac_cv_header_stat_broken+:} false
; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/stat.h>
8622 #if defined S_ISBLK && defined S_IFDIR
8623 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8626 #if defined S_ISBLK && defined S_IFCHR
8627 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8630 #if defined S_ISLNK && defined S_IFREG
8631 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8634 #if defined S_ISSOCK && defined S_IFREG
8635 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8639 if ac_fn_c_try_compile
"$LINENO"; then :
8640 ac_cv_header_stat_broken
=no
8642 ac_cv_header_stat_broken
=yes
8644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8647 $as_echo "$ac_cv_header_stat_broken" >&6; }
8648 if test $ac_cv_header_stat_broken = yes; then
8650 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8664 $as_echo_n "checking for 64-bit off_t... " >&6; }
8665 if ${gl_cv_type_off_t_64+:} false
; then :
8666 $as_echo_n "(cached) " >&6
8668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670 #include <sys/types.h>
8671 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8681 if ac_fn_c_try_compile
"$LINENO"; then :
8682 gl_cv_type_off_t_64
=yes
8684 gl_cv_type_off_t_64
=no
8686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8690 $as_echo "$gl_cv_type_off_t_64" >&6; }
8691 if test $gl_cv_type_off_t_64 = no
; then
8692 WINDOWS_64_BIT_OFF_T
=1
8694 WINDOWS_64_BIT_OFF_T
=0
8696 WINDOWS_64_BIT_ST_SIZE
=1
8699 WINDOWS_64_BIT_OFF_T
=0
8700 WINDOWS_64_BIT_ST_SIZE
=0
8724 if test $gl_cv_have_include_next = yes; then
8725 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8728 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8729 if ${gl_cv_next_sys_stat_h+:} false
; then :
8730 $as_echo_n "(cached) " >&6
8733 if test $ac_cv_header_sys_stat_h = yes; then
8738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <sys/stat.h>
8743 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8744 *) gl_absname_cpp
="$ac_cpp" ;;
8749 gl_dirsep_regex
='[/\\]'
8752 gl_dirsep_regex
='\/'
8755 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8756 gl_header_literal_regex
=`echo 'sys/stat.h' \
8757 | sed -e "$gl_make_literal_regex_sed"`
8758 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8765 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8766 sed -n "$gl_absolute_header_sed"`
8768 gl_header
=$gl_cv_absolute_sys_stat_h
8769 gl_cv_next_sys_stat_h
='"'$gl_header'"'
8771 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8777 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8779 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
8781 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8783 gl_next_as_first_directive
='<'sys
/stat.h
'>'
8785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8786 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
8788 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
8800 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8802 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8806 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8807 #include <sys/stat.h>
8809 if test "x$ac_cv_type_nlink_t" = xyes
; then :
8813 $as_echo "#define nlink_t int" >>confdefs.h
8819 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
8820 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8822 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8823 if eval \
${$as_gl_Symbol+:} false
; then :
8824 $as_echo_n "(cached) " >&6
8826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 #include <sys/stat.h>
8839 if ac_fn_c_try_compile
"$LINENO"; then :
8840 eval "$as_gl_Symbol=yes"
8842 eval "$as_gl_Symbol=no"
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8846 eval ac_res
=\$
$as_gl_Symbol
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8848 $as_echo "$ac_res" >&6; }
8849 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
8850 cat >>confdefs.h
<<_ACEOF
8851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8854 eval ac_cv_have_decl_
$gl_func=yes
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8861 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8862 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8865 rm -f conftest.sym conftest.
file
8867 if test "$cross_compiling" = yes; then :
8870 # Guess yes on glibc systems.
8871 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
8873 # If we don't know, assume the worst.
8874 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
8878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 $ac_includes_default
8885 if (symlink ("conftest.file", "conftest.sym") != 0)
8887 /* Linux will dereference the symlink and fail, as required by
8888 POSIX. That is better in the sense that it means we will not
8889 have to compile and use the lstat wrapper. */
8890 return lstat ("conftest.sym/", &sbuf) == 0;
8896 if ac_fn_c_try_run
"$LINENO"; then :
8897 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
8899 gl_cv_func_lstat_dereferences_slashed_symlink
=no
8901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8905 rm -f conftest.sym conftest.
file
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8909 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8910 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8913 cat >>confdefs.h
<<_ACEOF
8914 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
8934 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
8935 if ${gl_cv_func_getcwd_null+:} false
; then :
8936 $as_echo_n "(cached) " >&6
8938 if test "$cross_compiling" = yes; then :
8940 # Guess yes on glibc systems.
8941 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
8942 # Guess yes on Cygwin.
8943 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
8944 # If we don't know, assume the worst.
8945 *) gl_cv_func_getcwd_null
="guessing no";;
8949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8952 # include <stdlib.h>
8954 # include <unistd.h>
8955 # else /* on Windows with MSVC */
8956 # include <direct.h>
8966 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8967 /* mingw cwd does not start with '/', but getcwd does allocate.
8968 However, mingw fails to honor non-zero size. */
8970 if (chdir ("/") != 0)
8974 char *f = getcwd (NULL, 0);
8990 if ac_fn_c_try_run
"$LINENO"; then :
8991 gl_cv_func_getcwd_null
=yes
8993 gl_cv_func_getcwd_null
=no
8995 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8996 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9001 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9005 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9006 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9007 $as_echo_n "(cached) " >&6
9009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9019 char *getcwd (char *, size_t);
9026 if ac_fn_c_try_compile
"$LINENO"; then :
9027 gl_cv_func_getcwd_posix_signature
=yes
9029 gl_cv_func_getcwd_posix_signature
=no
9031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9035 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9038 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9039 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9045 cat >>confdefs.h
<<_ACEOF
9046 #define HAVE_DECL_GETCWD $ac_have_decl
9056 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9057 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9063 cat >>confdefs.h
<<_ACEOF
9064 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9069 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9070 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9076 cat >>confdefs.h
<<_ACEOF
9077 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9087 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9088 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9094 cat >>confdefs.h
<<_ACEOF
9095 #define HAVE_DECL_GETLOGIN $ac_have_decl
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9110 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9111 if ${ac_cv_c_restrict+:} false
; then :
9112 $as_echo_n "(cached) " >&6
9115 # The order here caters to the fact that C++ does not require restrict.
9116 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 typedef int *int_ptr;
9120 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9121 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9122 int bar (int ip[$ac_kw]) { return ip[0]; }
9130 return foo (t) + bar (t);
9136 if ac_fn_c_try_compile
"$LINENO"; then :
9137 ac_cv_c_restrict
=$ac_kw
9139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9140 test "$ac_cv_c_restrict" != no
&& break
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9145 $as_echo "$ac_cv_c_restrict" >&6; }
9147 case $ac_cv_c_restrict in
9149 no
) $as_echo "#define restrict /**/" >>confdefs.h
9151 *) cat >>confdefs.h
<<_ACEOF
9152 #define restrict $ac_cv_c_restrict
9158 GNULIB_GETTIMEOFDAY
=0;
9159 HAVE_GETTIMEOFDAY
=1;
9160 HAVE_STRUCT_TIMEVAL
=1;
9163 REPLACE_GETTIMEOFDAY
=0;
9164 REPLACE_STRUCT_TIMEVAL
=0;
9196 if test $gl_cv_have_include_next = yes; then
9197 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9200 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9201 if ${gl_cv_next_sys_time_h+:} false
; then :
9202 $as_echo_n "(cached) " >&6
9205 if test $ac_cv_header_sys_time_h = yes; then
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <sys/time.h>
9215 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9216 *) gl_absname_cpp
="$ac_cpp" ;;
9221 gl_dirsep_regex
='[/\\]'
9224 gl_dirsep_regex
='\/'
9227 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9228 gl_header_literal_regex
=`echo 'sys/time.h' \
9229 | sed -e "$gl_make_literal_regex_sed"`
9230 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9237 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9238 sed -n "$gl_absolute_header_sed"`
9240 gl_header
=$gl_cv_absolute_sys_time_h
9241 gl_cv_next_sys_time_h
='"'$gl_header'"'
9243 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9249 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9251 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9253 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9255 gl_next_as_first_directive
='<'sys
/time.h
'>'
9257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9258 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9260 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9266 if test $ac_cv_header_sys_time_h != yes; then
9280 if test $ac_cv_header_sys_socket_h != yes; then
9281 for ac_header
in winsock2.h
9283 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9284 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9285 cat >>confdefs.h
<<_ACEOF
9286 #define HAVE_WINSOCK2_H 1
9294 if test "$ac_cv_header_winsock2_h" = yes; then
9296 UNISTD_H_HAVE_WINSOCK2_H
=1
9297 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9304 $as_echo_n "checking for struct timeval... " >&6; }
9305 if ${gl_cv_sys_struct_timeval+:} false
; then :
9306 $as_echo_n "(cached) " >&6
9308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9311 #include <sys/time.h>
9315 # include <winsock2.h>
9321 static struct timeval x; x.tv_sec = x.tv_usec;
9326 if ac_fn_c_try_compile
"$LINENO"; then :
9327 gl_cv_sys_struct_timeval
=yes
9329 gl_cv_sys_struct_timeval
=no
9331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9335 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9336 if test $gl_cv_sys_struct_timeval != yes; then
9337 HAVE_STRUCT_TIMEVAL
=0
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9340 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9341 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9342 $as_echo_n "(cached) " >&6
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 #include <sys/time.h>
9351 # include <winsock2.h>
9357 static struct timeval x;
9358 typedef int verify_tv_sec_type[
9359 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9366 if ac_fn_c_try_compile
"$LINENO"; then :
9367 gl_cv_sys_struct_timeval_tv_sec
=yes
9369 gl_cv_sys_struct_timeval_tv_sec
=no
9371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9375 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9376 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9377 REPLACE_STRUCT_TIMEVAL
=1
9382 for gl_func
in gettimeofday
; do
9383 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9385 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9386 if eval \
${$as_gl_Symbol+:} false
; then :
9387 $as_echo_n "(cached) " >&6
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9393 # include <sys/time.h>
9406 if ac_fn_c_try_compile
"$LINENO"; then :
9407 eval "$as_gl_Symbol=yes"
9409 eval "$as_gl_Symbol=no"
9411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9413 eval ac_res
=\$
$as_gl_Symbol
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9415 $as_echo "$ac_res" >&6; }
9416 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9417 cat >>confdefs.h
<<_ACEOF
9418 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9421 eval ac_cv_have_decl_
$gl_func=yes
9465 if test $gl_cv_have_include_next = yes; then
9466 gl_cv_next_limits_h
='<'limits.h
'>'
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
9469 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
9470 if ${gl_cv_next_limits_h+:} false
; then :
9471 $as_echo_n "(cached) " >&6
9474 if test $ac_cv_header_limits_h = yes; then
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9484 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9485 *) gl_absname_cpp
="$ac_cpp" ;;
9490 gl_dirsep_regex
='[/\\]'
9493 gl_dirsep_regex
='\/'
9496 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9497 gl_header_literal_regex
=`echo 'limits.h' \
9498 | sed -e "$gl_make_literal_regex_sed"`
9499 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9500 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9506 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9507 sed -n "$gl_absolute_header_sed"`
9509 gl_header
=$gl_cv_absolute_limits_h
9510 gl_cv_next_limits_h
='"'$gl_header'"'
9512 gl_cv_next_limits_h
='<'limits.h
'>'
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
9518 $as_echo "$gl_cv_next_limits_h" >&6; }
9520 NEXT_LIMITS_H
=$gl_cv_next_limits_h
9522 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9524 gl_next_as_first_directive
='<'limits.h
'>'
9526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9527 gl_next_as_first_directive
=$gl_cv_next_limits_h
9529 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
9536 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
9537 if ${gl_cv_header_limits_width+:} false
; then :
9538 $as_echo_n "(cached) " >&6
9540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9543 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9546 int ullw = ULLONG_WIDTH;
9555 if ac_fn_c_try_compile
"$LINENO"; then :
9556 gl_cv_header_limits_width
=yes
9558 gl_cv_header_limits_width
=no
9560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
9563 $as_echo "$gl_cv_header_limits_width" >&6; }
9564 if test "$gl_cv_header_limits_width" = yes; then
9570 if test -n "$LIMITS_H"; then
9571 GL_GENERATE_LIMITS_H_TRUE
=
9572 GL_GENERATE_LIMITS_H_FALSE
='#'
9574 GL_GENERATE_LIMITS_H_TRUE
='#'
9575 GL_GENERATE_LIMITS_H_FALSE
=
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9581 $as_echo_n "checking for unsigned long long int... " >&6; }
9582 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
9583 $as_echo_n "(cached) " >&6
9585 ac_cv_type_unsigned_long_long_int
=yes
9586 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9590 /* For now, do not test the preprocessor; as of 2007 there are too many
9591 implementations with broken preprocessors. Perhaps this can
9592 be revisited in 2012. In the meantime, code should not expect
9593 #if to work with literals wider than 32 bits. */
9594 /* Test literals. */
9595 long long int ll = 9223372036854775807ll;
9596 long long int nll = -9223372036854775807LL;
9597 unsigned long long int ull = 18446744073709551615ULL;
9598 /* Test constant expressions. */
9599 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9601 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9607 /* Test availability of runtime routines for shift and division. */
9608 long long int llmax = 9223372036854775807ll;
9609 unsigned long long int ullmax = 18446744073709551615ull;
9610 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9611 | (llmax / ll) | (llmax % ll)
9612 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9613 | (ullmax / ull) | (ullmax % ull));
9619 if ac_fn_c_try_link
"$LINENO"; then :
9622 ac_cv_type_unsigned_long_long_int
=no
9624 rm -f core conftest.err conftest.
$ac_objext \
9625 conftest
$ac_exeext conftest.
$ac_ext
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9629 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9630 if test $ac_cv_type_unsigned_long_long_int = yes; then
9632 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9639 $as_echo_n "checking for long long int... " >&6; }
9640 if ${ac_cv_type_long_long_int+:} false
; then :
9641 $as_echo_n "(cached) " >&6
9643 ac_cv_type_long_long_int
=yes
9644 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9645 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9646 if test $ac_cv_type_long_long_int = yes; then
9647 if test "$cross_compiling" = yes; then :
9650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9655 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9656 # define LLONG_MAX (HALF - 1 + HALF)
9661 long long int n = 1;
9665 long long int m = n << i;
9668 if (LLONG_MAX / 2 < m)
9676 if ac_fn_c_try_run
"$LINENO"; then :
9679 ac_cv_type_long_long_int
=no
9681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9682 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9689 $as_echo "$ac_cv_type_long_long_int" >&6; }
9690 if test $ac_cv_type_long_long_int = yes; then
9692 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9707 gl_cv_c_multiarch
=no
9708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #ifndef __APPLE_CC__
9711 not a universal capable compiler
9716 if ac_fn_c_try_compile
"$LINENO"; then :
9720 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9721 if test -n "$prev"; then
9723 i?
86 | x86_64 | ppc | ppc64
)
9724 if test -z "$arch" ||
test "$arch" = "$word"; then
9727 gl_cv_c_multiarch
=yes
9733 if test "x$word" = "x-arch"; then
9740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9741 if test $gl_cv_c_multiarch = yes; then
9742 APPLE_UNIVERSAL_BUILD
=1
9744 APPLE_UNIVERSAL_BUILD
=0
9753 if test $ac_cv_type_long_long_int = yes; then
9754 HAVE_LONG_LONG_INT
=1
9756 HAVE_LONG_LONG_INT
=0
9760 if test $ac_cv_type_unsigned_long_long_int = yes; then
9761 HAVE_UNSIGNED_LONG_LONG_INT
=1
9763 HAVE_UNSIGNED_LONG_LONG_INT
=0
9774 if test $ac_cv_header_wchar_h = yes; then
9781 if test $ac_cv_header_inttypes_h = yes; then
9788 if test $ac_cv_header_sys_types_h = yes; then
9810 if test $gl_cv_have_include_next = yes; then
9811 gl_cv_next_stdint_h
='<'stdint.h
'>'
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
9814 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9815 if ${gl_cv_next_stdint_h+:} false
; then :
9816 $as_echo_n "(cached) " >&6
9819 if test $ac_cv_header_stdint_h = yes; then
9824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9829 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9830 *) gl_absname_cpp
="$ac_cpp" ;;
9835 gl_dirsep_regex
='[/\\]'
9838 gl_dirsep_regex
='\/'
9841 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9842 gl_header_literal_regex
=`echo 'stdint.h' \
9843 | sed -e "$gl_make_literal_regex_sed"`
9844 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9845 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9851 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9852 sed -n "$gl_absolute_header_sed"`
9854 gl_header
=$gl_cv_absolute_stdint_h
9855 gl_cv_next_stdint_h
='"'$gl_header'"'
9857 gl_cv_next_stdint_h
='<'stdint.h
'>'
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
9863 $as_echo "$gl_cv_next_stdint_h" >&6; }
9865 NEXT_STDINT_H
=$gl_cv_next_stdint_h
9867 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9869 gl_next_as_first_directive
='<'stdint.h
'>'
9871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9872 gl_next_as_first_directive
=$gl_cv_next_stdint_h
9874 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
9879 if test $ac_cv_header_stdint_h = yes; then
9886 if test $ac_cv_header_stdint_h = yes; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
9888 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
9889 if ${gl_cv_header_working_stdint_h+:} false
; then :
9890 $as_echo_n "(cached) " >&6
9892 gl_cv_header_working_stdint_h
=no
9893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9897 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9898 #define __STDC_CONSTANT_MACROS 1
9899 #define __STDC_LIMIT_MACROS 1
9901 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
9902 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
9903 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
9907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9908 included before <wchar.h>. */
9919 int8_t a1 = INT8_MAX;
9920 int8_t a1min = INT8_MIN;
9923 int16_t a2 = INT16_MAX;
9924 int16_t a2min = INT16_MIN;
9927 int32_t a3 = INT32_MAX;
9928 int32_t a3min = INT32_MIN;
9931 int64_t a4 = INT64_MAX;
9932 int64_t a4min = INT64_MIN;
9935 uint8_t b1 = UINT8_MAX;
9937 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9940 uint16_t b2 = UINT16_MAX;
9943 uint32_t b3 = UINT32_MAX;
9946 uint64_t b4 = UINT64_MAX;
9948 int_least8_t c1 = INT8_C (0x7f);
9949 int_least8_t c1max = INT_LEAST8_MAX;
9950 int_least8_t c1min = INT_LEAST8_MIN;
9951 int_least16_t c2 = INT16_C (0x7fff);
9952 int_least16_t c2max = INT_LEAST16_MAX;
9953 int_least16_t c2min = INT_LEAST16_MIN;
9954 int_least32_t c3 = INT32_C (0x7fffffff);
9955 int_least32_t c3max = INT_LEAST32_MAX;
9956 int_least32_t c3min = INT_LEAST32_MIN;
9957 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9958 int_least64_t c4max = INT_LEAST64_MAX;
9959 int_least64_t c4min = INT_LEAST64_MIN;
9960 uint_least8_t d1 = UINT8_C (0xff);
9961 uint_least8_t d1max = UINT_LEAST8_MAX;
9962 uint_least16_t d2 = UINT16_C (0xffff);
9963 uint_least16_t d2max = UINT_LEAST16_MAX;
9964 uint_least32_t d3 = UINT32_C (0xffffffff);
9965 uint_least32_t d3max = UINT_LEAST32_MAX;
9966 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9967 uint_least64_t d4max = UINT_LEAST64_MAX;
9968 int_fast8_t e1 = INT_FAST8_MAX;
9969 int_fast8_t e1min = INT_FAST8_MIN;
9970 int_fast16_t e2 = INT_FAST16_MAX;
9971 int_fast16_t e2min = INT_FAST16_MIN;
9972 int_fast32_t e3 = INT_FAST32_MAX;
9973 int_fast32_t e3min = INT_FAST32_MIN;
9974 int_fast64_t e4 = INT_FAST64_MAX;
9975 int_fast64_t e4min = INT_FAST64_MIN;
9976 uint_fast8_t f1 = UINT_FAST8_MAX;
9977 uint_fast16_t f2 = UINT_FAST16_MAX;
9978 uint_fast32_t f3 = UINT_FAST32_MAX;
9979 uint_fast64_t f4 = UINT_FAST64_MAX;
9981 intptr_t g = INTPTR_MAX;
9982 intptr_t gmin = INTPTR_MIN;
9985 uintptr_t h = UINTPTR_MAX;
9987 intmax_t i = INTMAX_MAX;
9988 uintmax_t j = UINTMAX_MAX;
9990 /* Check that SIZE_MAX has the correct type, if possible. */
9991 #if 201112 <= __STDC_VERSION__
9992 int k = _Generic (SIZE_MAX, size_t: 0);
9993 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9994 || (0x5110 <= __SUNPRO_C && !__STDC__))
9996 extern __typeof__ (SIZE_MAX) k;
9999 #include <limits.h> /* for CHAR_BIT */
10000 #define TYPE_MINIMUM(t) \
10001 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10002 #define TYPE_MAXIMUM(t) \
10003 ((t) ((t) 0 < (t) -1 \
10005 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10008 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10009 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10011 /* Detect bug in FreeBSD 6.0 / ia64. */
10012 int check_SIG_ATOMIC:
10013 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10014 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10016 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10018 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10019 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10021 /* Detect bug in mingw. */
10023 WINT_MIN == TYPE_MINIMUM (wint_t)
10024 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10027 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10029 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10030 int check_UINT16_C:
10031 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10033 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10035 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10038 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10041 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10044 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10046 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10047 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10048 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10049 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10050 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10051 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10052 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10053 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10054 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10055 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10056 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10067 if ac_fn_c_try_compile
"$LINENO"; then :
10068 if test "$cross_compiling" = yes; then :
10069 gl_cv_header_working_stdint_h
=yes
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10076 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10077 #define __STDC_CONSTANT_MACROS 1
10078 #define __STDC_LIMIT_MACROS 1
10079 #include <stdint.h>
10082 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10083 included before <wchar.h>. */
10084 #include <stddef.h>
10085 #include <signal.h>
10087 # include <stdio.h>
10089 # include <wchar.h>
10094 #include <string.h>
10095 #define MVAL(macro) MVAL1(macro)
10096 #define MVAL1(expression) #expression
10097 static const char *macro_values[] =
10131 for (mv = macro_values; *mv != NULL; mv++)
10133 const char *value = *mv;
10134 /* Test whether it looks like a cast expression. */
10135 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10136 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10137 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10138 || strncmp (value, "((int)"/*)*/, 6) == 0
10139 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10140 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10141 return mv - macro_values + 1;
10149 if ac_fn_c_try_run
"$LINENO"; then :
10150 gl_cv_header_working_stdint_h
=yes
10152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10162 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10165 HAVE_C99_STDINT_H
=0
10166 HAVE_SYS_BITYPES_H
=0
10167 HAVE_SYS_INTTYPES_H
=0
10169 if test "$gl_cv_header_working_stdint_h" = yes; then
10170 HAVE_C99_STDINT_H
=1
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10172 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10173 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
10174 $as_echo_n "(cached) " >&6
10176 gl_cv_header_stdint_predates_cxx11_h
=yes
10177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10181 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10182 #include <stdint.h>
10185 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10186 included before <wchar.h>. */
10187 #include <stddef.h>
10188 #include <signal.h>
10190 # include <stdio.h>
10192 # include <wchar.h>
10196 intmax_t im = INTMAX_MAX;
10197 int32_t i32 = INT32_C (0x7fffffff);
10207 if ac_fn_c_try_compile
"$LINENO"; then :
10208 gl_cv_header_stdint_predates_cxx11_h
=no
10210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10213 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10215 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10217 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10220 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10224 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10225 if ${gl_cv_header_stdint_width+:} false
; then :
10226 $as_echo_n "(cached) " >&6
10228 gl_cv_header_stdint_width
=no
10229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Work if build is not clean. */
10233 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10234 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10235 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10237 #include <stdint.h>
10239 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10240 included before <wchar.h>. */
10241 #include <stddef.h>
10242 #include <signal.h>
10244 # include <stdio.h>
10246 # include <wchar.h>
10249 int iw = UINTMAX_WIDTH;
10259 if ac_fn_c_try_compile
"$LINENO"; then :
10260 gl_cv_header_stdint_width
=yes
10262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10265 $as_echo "$gl_cv_header_stdint_width" >&6; }
10266 if test "$gl_cv_header_stdint_width" = yes; then
10270 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10272 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10274 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10275 cat >>confdefs.h
<<_ACEOF
10276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283 if test $ac_cv_header_sys_inttypes_h = yes; then
10284 HAVE_SYS_INTTYPES_H
=1
10286 if test $ac_cv_header_sys_bitypes_h = yes; then
10287 HAVE_SYS_BITYPES_H
=1
10291 if test $APPLE_UNIVERSAL_BUILD = 0; then
10294 for gltype
in ptrdiff_t size_t
; do
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10296 $as_echo_n "checking for bit size of $gltype... " >&6; }
10297 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10298 $as_echo_n "(cached) " >&6
10300 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10301 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10302 included before <wchar.h>. */
10303 #include <stddef.h>
10304 #include <signal.h>
10306 # include <stdio.h>
10308 # include <wchar.h>
10311 #include <limits.h>"; then :
10317 eval gl_cv_bitsizeof_
${gltype}=\
$result
10320 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10322 $as_echo "$ac_res" >&6; }
10323 eval result
=\
$gl_cv_bitsizeof_${gltype}
10324 if test $result = unknown
; then
10327 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10328 cat >>confdefs.h
<<_ACEOF
10329 #define BITSIZEOF_${GLTYPE} $result
10332 eval BITSIZEOF_
${GLTYPE}=\
$result
10339 for gltype
in sig_atomic_t wchar_t wint_t
; do
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10341 $as_echo_n "checking for bit size of $gltype... " >&6; }
10342 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10343 $as_echo_n "(cached) " >&6
10345 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10346 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10347 included before <wchar.h>. */
10348 #include <stddef.h>
10349 #include <signal.h>
10351 # include <stdio.h>
10353 # include <wchar.h>
10356 #include <limits.h>"; then :
10362 eval gl_cv_bitsizeof_
${gltype}=\
$result
10365 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10367 $as_echo "$ac_res" >&6; }
10368 eval result
=\
$gl_cv_bitsizeof_${gltype}
10369 if test $result = unknown
; then
10372 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10373 cat >>confdefs.h
<<_ACEOF
10374 #define BITSIZEOF_${GLTYPE} $result
10377 eval BITSIZEOF_
${GLTYPE}=\
$result
10383 for gltype
in sig_atomic_t wchar_t wint_t
; do
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10385 $as_echo_n "checking whether $gltype is signed... " >&6; }
10386 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
10387 $as_echo_n "(cached) " >&6
10389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10393 included before <wchar.h>. */
10394 #include <stddef.h>
10395 #include <signal.h>
10397 # include <stdio.h>
10399 # include <wchar.h>
10402 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10411 if ac_fn_c_try_compile
"$LINENO"; then :
10416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10417 eval gl_cv_type_
${gltype}_signed
=\
$result
10420 eval ac_res
=\
$gl_cv_type_${gltype}_signed
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10422 $as_echo "$ac_res" >&6; }
10423 eval result
=\
$gl_cv_type_${gltype}_signed
10424 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10425 if test "$result" = yes; then
10426 cat >>confdefs.h
<<_ACEOF
10427 #define HAVE_SIGNED_${GLTYPE} 1
10430 eval HAVE_SIGNED_
${GLTYPE}=1
10432 eval HAVE_SIGNED_
${GLTYPE}=0
10437 gl_cv_type_ptrdiff_t_signed
=yes
10438 gl_cv_type_size_t_signed
=no
10439 if test $APPLE_UNIVERSAL_BUILD = 0; then
10442 for gltype
in ptrdiff_t size_t
; do
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10444 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10445 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
10446 $as_echo_n "(cached) " >&6
10448 eval gl_cv_type_
${gltype}_suffix
=no
10449 eval result
=\
$gl_cv_type_${gltype}_signed
10450 if test "$result" = yes; then
10455 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10457 '') gltype1
='int';;
10458 l
) gltype1
='long int';;
10459 ll
) gltype1
='long long int';;
10460 i64
) gltype1
='__int64';;
10461 u
) gltype1
='unsigned int';;
10462 ul
) gltype1
='unsigned long int';;
10463 ull
) gltype1
='unsigned long long int';;
10464 ui64
)gltype1
='unsigned __int64';;
10466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10469 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10470 included before <wchar.h>. */
10471 #include <stddef.h>
10472 #include <signal.h>
10474 # include <stdio.h>
10476 # include <wchar.h>
10479 extern $gltype foo;
10480 extern $gltype1 foo;
10489 if ac_fn_c_try_compile
"$LINENO"; then :
10490 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10493 eval result
=\
$gl_cv_type_${gltype}_suffix
10494 test "$result" != no
&& break
10497 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10499 $as_echo "$ac_res" >&6; }
10500 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10501 eval result
=\
$gl_cv_type_${gltype}_suffix
10502 test "$result" = no
&& result
=
10503 eval ${GLTYPE}_SUFFIX
=\
$result
10504 cat >>confdefs.h
<<_ACEOF
10505 #define ${GLTYPE}_SUFFIX $result
10514 for gltype
in sig_atomic_t wchar_t wint_t
; do
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10516 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10517 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
10518 $as_echo_n "(cached) " >&6
10520 eval gl_cv_type_
${gltype}_suffix
=no
10521 eval result
=\
$gl_cv_type_${gltype}_signed
10522 if test "$result" = yes; then
10527 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10529 '') gltype1
='int';;
10530 l
) gltype1
='long int';;
10531 ll
) gltype1
='long long int';;
10532 i64
) gltype1
='__int64';;
10533 u
) gltype1
='unsigned int';;
10534 ul
) gltype1
='unsigned long int';;
10535 ull
) gltype1
='unsigned long long int';;
10536 ui64
)gltype1
='unsigned __int64';;
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10542 included before <wchar.h>. */
10543 #include <stddef.h>
10544 #include <signal.h>
10546 # include <stdio.h>
10548 # include <wchar.h>
10551 extern $gltype foo;
10552 extern $gltype1 foo;
10561 if ac_fn_c_try_compile
"$LINENO"; then :
10562 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10565 eval result
=\
$gl_cv_type_${gltype}_suffix
10566 test "$result" != no
&& break
10569 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10571 $as_echo "$ac_res" >&6; }
10572 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10573 eval result
=\
$gl_cv_type_${gltype}_suffix
10574 test "$result" = no
&& result
=
10575 eval ${GLTYPE}_SUFFIX
=\
$result
10576 cat >>confdefs.h
<<_ACEOF
10577 #define ${GLTYPE}_SUFFIX $result
10584 if test $BITSIZEOF_WINT_T -lt 32; then
10585 BITSIZEOF_WINT_T
=32
10590 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
10592 if test -n "$LIMITS_H"; then
10593 GL_GENERATE_LIMITS_H_TRUE
=
10594 GL_GENERATE_LIMITS_H_FALSE
='#'
10596 GL_GENERATE_LIMITS_H_TRUE
='#'
10597 GL_GENERATE_LIMITS_H_FALSE
=
10605 if test -n "$STDINT_H"; then
10606 GL_GENERATE_STDINT_H_TRUE
=
10607 GL_GENERATE_STDINT_H_FALSE
='#'
10609 GL_GENERATE_STDINT_H_TRUE
='#'
10610 GL_GENERATE_STDINT_H_FALSE
=
10622 GNULIB_STRTOIMAX
=0;
10623 GNULIB_STRTOUMAX
=0;
10624 HAVE_DECL_IMAXABS
=1;
10625 HAVE_DECL_IMAXDIV
=1;
10626 HAVE_DECL_STRTOIMAX
=1;
10627 HAVE_DECL_STRTOUMAX
=1;
10628 REPLACE_STRTOIMAX
=0;
10629 REPLACE_STRTOUMAX
=0;
10630 INT32_MAX_LT_INTMAX_MAX
=1;
10631 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10632 PRI_MACROS_BROKEN
=0;
10633 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10634 UINT32_MAX_LT_UINTMAX_MAX
=1;
10635 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10663 if test $gl_cv_have_include_next = yes; then
10664 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10667 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10668 if ${gl_cv_next_inttypes_h+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10672 if test $ac_cv_header_inttypes_h = yes; then
10677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include <inttypes.h>
10682 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10683 *) gl_absname_cpp
="$ac_cpp" ;;
10688 gl_dirsep_regex
='[/\\]'
10691 gl_dirsep_regex
='\/'
10694 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10695 gl_header_literal_regex
=`echo 'inttypes.h' \
10696 | sed -e "$gl_make_literal_regex_sed"`
10697 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10698 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10704 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10705 sed -n "$gl_absolute_header_sed"`
10707 gl_header
=$gl_cv_absolute_inttypes_h
10708 gl_cv_next_inttypes_h
='"'$gl_header'"'
10710 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
10716 $as_echo "$gl_cv_next_inttypes_h" >&6; }
10718 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
10720 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10722 gl_next_as_first_directive
='<'inttypes.h
'>'
10724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10725 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
10727 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
10736 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
10737 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10739 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10740 if eval \
${$as_gl_Symbol+:} false
; then :
10741 $as_echo_n "(cached) " >&6
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 #include <inttypes.h>
10756 if ac_fn_c_try_compile
"$LINENO"; then :
10757 eval "$as_gl_Symbol=yes"
10759 eval "$as_gl_Symbol=no"
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 eval ac_res
=\$
$as_gl_Symbol
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10765 $as_echo "$ac_res" >&6; }
10766 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10767 cat >>confdefs.h
<<_ACEOF
10768 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10771 eval ac_cv_have_decl_
$gl_func=yes
10777 for ac_header
in inttypes.h
10779 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10780 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
10781 cat >>confdefs.h
<<_ACEOF
10782 #define HAVE_INTTYPES_H 1
10789 if test $ac_cv_header_inttypes_h = yes; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
10791 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
10792 if ${gt_cv_inttypes_pri_broken+:} false
; then :
10793 $as_echo_n "(cached) " >&6
10796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 #include <inttypes.h>
10812 if ac_fn_c_try_compile
"$LINENO"; then :
10813 gt_cv_inttypes_pri_broken
=no
10815 gt_cv_inttypes_pri_broken
=yes
10817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
10821 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
10823 if test "$gt_cv_inttypes_pri_broken" = yes; then
10825 cat >>confdefs.h
<<_ACEOF
10826 #define PRI_MACROS_BROKEN 1
10829 PRI_MACROS_BROKEN
=1
10831 PRI_MACROS_BROKEN
=0
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10837 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10838 if ${gl_cv_cc_double_expbit0+:} false
; then :
10839 $as_echo_n "(cached) " >&6
10842 if test "$cross_compiling" = yes; then :
10844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10847 #if defined arm || defined __arm || defined __arm__
10852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10853 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
10854 gl_cv_cc_double_expbit0
="unknown"
10858 if ${ac_cv_c_bigendian+:} false
; then :
10859 $as_echo_n "(cached) " >&6
10861 ac_cv_c_bigendian
=unknown
10862 # See if we're dealing with a universal compiler.
10863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 #ifndef __APPLE_CC__
10866 not a universal capable compiler
10871 if ac_fn_c_try_compile
"$LINENO"; then :
10873 # Check for potential -arch flags. It is not universal unless
10874 # there are at least two -arch flags with different values.
10877 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10878 if test -n "$ac_prev"; then
10880 i?
86 | x86_64 | ppc | ppc64
)
10881 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10884 ac_cv_c_bigendian
=universal
10890 elif test "x$ac_word" = "x-arch"; then
10895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10896 if test $ac_cv_c_bigendian = unknown
; then
10897 # See if sys/param.h defines the BYTE_ORDER macro.
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 #include <sys/types.h>
10901 #include <sys/param.h>
10906 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10907 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10909 bogus endian macros
10916 if ac_fn_c_try_compile
"$LINENO"; then :
10917 # It does; now see whether it defined to BIG_ENDIAN or not.
10918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10920 #include <sys/types.h>
10921 #include <sys/param.h>
10926 #if BYTE_ORDER != BIG_ENDIAN
10934 if ac_fn_c_try_compile
"$LINENO"; then :
10935 ac_cv_c_bigendian
=yes
10937 ac_cv_c_bigendian
=no
10939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10943 if test $ac_cv_c_bigendian = unknown
; then
10944 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947 #include <limits.h>
10952 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10953 bogus endian macros
10960 if ac_fn_c_try_compile
"$LINENO"; then :
10961 # It does; now see whether it defined to _BIG_ENDIAN or not.
10962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 #include <limits.h>
10969 #ifndef _BIG_ENDIAN
10977 if ac_fn_c_try_compile
"$LINENO"; then :
10978 ac_cv_c_bigendian
=yes
10980 ac_cv_c_bigendian
=no
10982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10986 if test $ac_cv_c_bigendian = unknown
; then
10987 # Compile a test program.
10988 if test "$cross_compiling" = yes; then :
10989 # Try to guess by grepping values from an object file.
10990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 short int ascii_mm[] =
10993 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10994 short int ascii_ii[] =
10995 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10996 int use_ascii (int i) {
10997 return ascii_mm[i] + ascii_ii[i];
10999 short int ebcdic_ii[] =
11000 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11001 short int ebcdic_mm[] =
11002 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11003 int use_ebcdic (int i) {
11004 return ebcdic_mm[i] + ebcdic_ii[i];
11011 return use_ascii (foo) == use_ebcdic (foo);
11016 if ac_fn_c_try_compile
"$LINENO"; then :
11017 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11018 ac_cv_c_bigendian
=yes
11020 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11021 if test "$ac_cv_c_bigendian" = unknown
; then
11022 ac_cv_c_bigendian
=no
11024 # finding both strings is unlikely to happen, but who knows?
11025 ac_cv_c_bigendian
=unknown
11029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 $ac_includes_default
11038 /* Are we little or big endian? From Harbison&Steele. */
11042 char c[sizeof (long int)];
11045 return u.c[sizeof (long int) - 1] == 1;
11051 if ac_fn_c_try_run
"$LINENO"; then :
11052 ac_cv_c_bigendian
=no
11054 ac_cv_c_bigendian
=yes
11056 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11057 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11063 case $ac_cv_c_bigendian in #(
11065 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
11067 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
11070 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11074 gl_cv_cc_double_expbit0
="unknown" ;;
11083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11087 #include <stddef.h>
11089 #include <string.h>
11091 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11092 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11093 static unsigned int ored_words[NWORDS];
11094 static unsigned int anded_words[NWORDS];
11095 static void add_to_ored_words (double x)
11099 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11100 memset (&m, 0, sizeof (memory_double));
11102 for (i = 0; i < NWORDS; i++)
11104 ored_words[i] |= m.word[i];
11105 anded_words[i] &= m.word[i];
11111 FILE *fp = fopen ("conftest.out", "w");
11114 for (j = 0; j < NWORDS; j++)
11115 anded_words[j] = ~ (unsigned int) 0;
11116 add_to_ored_words (0.25);
11117 add_to_ored_words (0.5);
11118 add_to_ored_words (1.0);
11119 add_to_ored_words (2.0);
11120 add_to_ored_words (4.0);
11121 /* Remove bits that are common (e.g. if representation of the first mantissa
11122 bit is explicit). */
11123 for (j = 0; j < NWORDS; j++)
11124 ored_words[j] &= ~anded_words[j];
11125 /* Now find the nonzero word. */
11126 for (j = 0; j < NWORDS; j++)
11127 if (ored_words[j] != 0)
11132 for (i = j + 1; i < NWORDS; i++)
11133 if (ored_words[i] != 0)
11135 fprintf (fp, "unknown");
11136 return (fclose (fp) != 0);
11139 if ((ored_words[j] >> i) & 1)
11141 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11142 return (fclose (fp) != 0);
11145 fprintf (fp, "unknown");
11146 return (fclose (fp) != 0);
11150 if ac_fn_c_try_run
"$LINENO"; then :
11151 gl_cv_cc_double_expbit0
=`cat conftest.out`
11153 gl_cv_cc_double_expbit0
="unknown"
11155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11163 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11164 case "$gl_cv_cc_double_expbit0" in
11166 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11167 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11169 cat >>confdefs.h
<<_ACEOF
11170 #define DBL_EXPBIT0_WORD $word
11174 cat >>confdefs.h
<<_ACEOF
11175 #define DBL_EXPBIT0_BIT $bit
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11183 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11184 if ${ac_cv_c_bigendian+:} false
; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_cv_c_bigendian
=unknown
11188 # See if we're dealing with a universal compiler.
11189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191 #ifndef __APPLE_CC__
11192 not a universal capable compiler
11197 if ac_fn_c_try_compile
"$LINENO"; then :
11199 # Check for potential -arch flags. It is not universal unless
11200 # there are at least two -arch flags with different values.
11203 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11204 if test -n "$ac_prev"; then
11206 i?
86 | x86_64 | ppc | ppc64
)
11207 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11210 ac_cv_c_bigendian
=universal
11216 elif test "x$ac_word" = "x-arch"; then
11221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11222 if test $ac_cv_c_bigendian = unknown
; then
11223 # See if sys/param.h defines the BYTE_ORDER macro.
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #include <sys/types.h>
11227 #include <sys/param.h>
11232 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11233 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11235 bogus endian macros
11242 if ac_fn_c_try_compile
"$LINENO"; then :
11243 # It does; now see whether it defined to BIG_ENDIAN or not.
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #include <sys/types.h>
11247 #include <sys/param.h>
11252 #if BYTE_ORDER != BIG_ENDIAN
11260 if ac_fn_c_try_compile
"$LINENO"; then :
11261 ac_cv_c_bigendian
=yes
11263 ac_cv_c_bigendian
=no
11265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11269 if test $ac_cv_c_bigendian = unknown
; then
11270 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273 #include <limits.h>
11278 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11279 bogus endian macros
11286 if ac_fn_c_try_compile
"$LINENO"; then :
11287 # It does; now see whether it defined to _BIG_ENDIAN or not.
11288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #include <limits.h>
11295 #ifndef _BIG_ENDIAN
11303 if ac_fn_c_try_compile
"$LINENO"; then :
11304 ac_cv_c_bigendian
=yes
11306 ac_cv_c_bigendian
=no
11308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11312 if test $ac_cv_c_bigendian = unknown
; then
11313 # Compile a test program.
11314 if test "$cross_compiling" = yes; then :
11315 # Try to guess by grepping values from an object file.
11316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 short int ascii_mm[] =
11319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11320 short int ascii_ii[] =
11321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11322 int use_ascii (int i) {
11323 return ascii_mm[i] + ascii_ii[i];
11325 short int ebcdic_ii[] =
11326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11327 short int ebcdic_mm[] =
11328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11329 int use_ebcdic (int i) {
11330 return ebcdic_mm[i] + ebcdic_ii[i];
11337 return use_ascii (foo) == use_ebcdic (foo);
11342 if ac_fn_c_try_compile
"$LINENO"; then :
11343 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11344 ac_cv_c_bigendian
=yes
11346 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11347 if test "$ac_cv_c_bigendian" = unknown
; then
11348 ac_cv_c_bigendian
=no
11350 # finding both strings is unlikely to happen, but who knows?
11351 ac_cv_c_bigendian
=unknown
11355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 $ac_includes_default
11364 /* Are we little or big endian? From Harbison&Steele. */
11368 char c[sizeof (long int)];
11371 return u.c[sizeof (long int) - 1] == 1;
11377 if ac_fn_c_try_run
"$LINENO"; then :
11378 ac_cv_c_bigendian
=no
11380 ac_cv_c_bigendian
=yes
11382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11389 $as_echo "$ac_cv_c_bigendian" >&6; }
11390 case $ac_cv_c_bigendian in #(
11392 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11398 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11402 as_fn_error $?
"unknown endianness
11403 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11409 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11410 if ${am_cv_langinfo_codeset+:} false
; then :
11411 $as_echo_n "(cached) " >&6
11413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415 #include <langinfo.h>
11419 char* cs = nl_langinfo(CODESET); return !cs;
11424 if ac_fn_c_try_link
"$LINENO"; then :
11425 am_cv_langinfo_codeset
=yes
11427 am_cv_langinfo_codeset
=no
11429 rm -f core conftest.err conftest.
$ac_objext \
11430 conftest
$ac_exeext conftest.
$ac_ext
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11434 $as_echo "$am_cv_langinfo_codeset" >&6; }
11435 if test $am_cv_langinfo_codeset = yes; then
11437 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11442 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11443 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
11449 cat >>confdefs.h
<<_ACEOF
11450 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11456 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11457 if ${ac_cv_gnu_library_2_1+:} false
; then :
11458 $as_echo_n "(cached) " >&6
11460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11463 #include <features.h>
11464 #ifdef __GNU_LIBRARY__
11465 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11475 $EGREP "Lucky" >/dev
/null
2>&1; then :
11476 ac_cv_gnu_library_2_1
=yes
11478 ac_cv_gnu_library_2_1
=no
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11486 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11488 GLIBC21
="$ac_cv_gnu_library_2_1"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
11498 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
11499 if ${gl_cv_func_malloc_posix+:} false
; then :
11500 $as_echo_n "(cached) " >&6
11503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11509 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11517 if ac_fn_c_try_compile
"$LINENO"; then :
11518 gl_cv_func_malloc_posix
=yes
11520 gl_cv_func_malloc_posix
=no
11522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
11526 $as_echo "$gl_cv_func_malloc_posix" >&6; }
11530 for ac_header
in stdlib.h
11532 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11533 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
11534 cat >>confdefs.h
<<_ACEOF
11535 #define HAVE_STDLIB_H 1
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11543 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11544 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
11545 $as_echo_n "(cached) " >&6
11547 if test "$cross_compiling" = yes; then :
11549 # Guess yes on platforms where we know the result.
11550 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
11551 | hpux
* | solaris
* | cygwin
* | mingw
*)
11552 ac_cv_func_malloc_0_nonnull
=yes ;;
11553 # If we don't know, assume the worst.
11554 *) ac_cv_func_malloc_0_nonnull
=no
;;
11558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11561 # include <stdlib.h>
11569 char *p = malloc (0);
11578 if ac_fn_c_try_run
"$LINENO"; then :
11579 ac_cv_func_malloc_0_nonnull
=yes
11581 ac_cv_func_malloc_0_nonnull
=no
11583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11590 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11591 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11592 gl_cv_func_malloc_0_nonnull
=1
11594 gl_cv_func_malloc_0_nonnull
=0
11598 cat >>confdefs.h
<<_ACEOF
11599 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
11614 GNULIB_MBSRTOWCS
=0;
11615 GNULIB_MBSNRTOWCS
=0;
11617 GNULIB_WCSRTOMBS
=0;
11618 GNULIB_WCSNRTOMBS
=0;
11635 GNULIB_WCSCASECMP
=0;
11636 GNULIB_WCSNCASECMP
=0;
11673 HAVE_WCSNCASECMP
=1;
11686 HAVE_DECL_WCWIDTH
=1;
11687 REPLACE_MBSTATE_T
=0;
11693 REPLACE_MBSRTOWCS
=0;
11694 REPLACE_MBSNRTOWCS
=0;
11696 REPLACE_WCSRTOMBS
=0;
11697 REPLACE_WCSNRTOMBS
=0;
11699 REPLACE_WCSWIDTH
=0;
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11715 $as_echo_n "checking for a traditional japanese locale... " >&6; }
11716 if ${gt_cv_locale_ja+:} false
; then :
11717 $as_echo_n "(cached) " >&6
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11723 #include <locale.h>
11725 #if HAVE_LANGINFO_CODESET
11726 # include <langinfo.h>
11728 #include <stdlib.h>
11729 #include <string.h>
11735 /* Check whether the given locale name is recognized by the system. */
11736 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11737 /* On native Windows, setlocale(category, "") looks at the system settings,
11738 not at the environment variables. Also, when an encoding suffix such
11739 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11740 category of the locale to "C". */
11741 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11742 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11745 if (setlocale (LC_ALL, "") == NULL) return 1;
11747 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11748 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11749 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11750 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11751 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11752 some unit tests fail.
11753 On MirBSD 10, when an unsupported locale is specified, setlocale()
11754 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11755 #if HAVE_LANGINFO_CODESET
11757 const char *cs = nl_langinfo (CODESET);
11758 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11759 || strcmp (cs, "UTF-8") == 0)
11764 /* On Cygwin, avoid locale names without encoding suffix, because the
11765 locale_charset() function relies on the encoding suffix. Note that
11766 LC_ALL is set on the command line. */
11767 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11769 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11770 on Cygwin 1.5.x. */
11771 if (MB_CUR_MAX == 1)
11773 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11774 This excludes the UTF-8 encoding (except on MirBSD). */
11775 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11776 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11777 for (p = buf; *p != '\0'; p++)
11778 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11785 (eval $ac_link) 2>&5
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11790 # Handle native Windows specially, because there setlocale() interprets
11791 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11792 # "fr" or "fra" as "French" or "French_France.1252",
11793 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11794 # "ja" as "Japanese" or "Japanese_Japan.932",
11797 # Note that on native Windows, the Japanese locale is
11798 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11799 # cannot use it here.
11800 gt_cv_locale_ja
=none
11803 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11804 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11805 # configure script would override the LC_ALL setting. Likewise for
11806 # LC_CTYPE, which is also set at the beginning of the configure script.
11807 # Test for the AIX locale name.
11808 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11809 gt_cv_locale_ja
=ja_JP
11811 # Test for the locale name with explicit encoding suffix.
11812 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11813 gt_cv_locale_ja
=ja_JP.EUC-JP
11815 # Test for the HP-UX, OSF/1, NetBSD locale name.
11816 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11817 gt_cv_locale_ja
=ja_JP.eucJP
11819 # Test for the IRIX, FreeBSD locale name.
11820 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11821 gt_cv_locale_ja
=ja_JP.EUC
11823 # Test for the Solaris 7 locale name.
11824 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11827 # Special test for NetBSD 1.6.
11828 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
11829 gt_cv_locale_ja
=ja_JP.eucJP
11832 gt_cv_locale_ja
=none
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11846 $as_echo "$gt_cv_locale_ja" >&6; }
11847 LOCALE_JA
=$gt_cv_locale_ja
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
11854 $as_echo_n "checking for a transitional chinese locale... " >&6; }
11855 if ${gt_cv_locale_zh_CN+:} false
; then :
11856 $as_echo_n "(cached) " >&6
11859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11862 #include <locale.h>
11863 #include <stdlib.h>
11865 #if HAVE_LANGINFO_CODESET
11866 # include <langinfo.h>
11868 #include <stdlib.h>
11869 #include <string.h>
11875 /* Check whether the given locale name is recognized by the system. */
11876 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11877 /* On native Windows, setlocale(category, "") looks at the system settings,
11878 not at the environment variables. Also, when an encoding suffix such
11879 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11880 category of the locale to "C". */
11881 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11882 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11885 if (setlocale (LC_ALL, "") == NULL) return 1;
11887 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11888 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11889 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11890 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11891 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11892 some unit tests fail.
11893 On MirBSD 10, when an unsupported locale is specified, setlocale()
11894 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11895 #if HAVE_LANGINFO_CODESET
11897 const char *cs = nl_langinfo (CODESET);
11898 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11899 || strcmp (cs, "UTF-8") == 0)
11904 /* On Cygwin, avoid locale names without encoding suffix, because the
11905 locale_charset() function relies on the encoding suffix. Note that
11906 LC_ALL is set on the command line. */
11907 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11909 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11910 This excludes the UTF-8 encoding (except on MirBSD). */
11911 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11912 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11913 for (p = buf; *p != '\0'; p++)
11914 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11916 /* Check whether a typical GB18030 multibyte sequence is recognized as a
11917 single wide character. This excludes the GB2312 and GBK encodings. */
11918 if (mblen ("\203\062\332\066", 5) != 4)
11924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925 (eval $ac_link) 2>&5
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11930 # Handle native Windows specially, because there setlocale() interprets
11931 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11932 # "fr" or "fra" as "French" or "French_France.1252",
11933 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11934 # "ja" as "Japanese" or "Japanese_Japan.932",
11937 # Test for the hypothetical native Windows locale name.
11938 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11939 gt_cv_locale_zh_CN
=Chinese_China
.54936
11942 gt_cv_locale_zh_CN
=none
11946 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
11947 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
11948 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
11949 gt_cv_locale_zh_CN
=none
11952 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11953 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11954 # configure script would override the LC_ALL setting. Likewise for
11955 # LC_CTYPE, which is also set at the beginning of the configure script.
11956 # Test for the locale name without encoding suffix.
11957 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11958 gt_cv_locale_zh_CN
=zh_CN
11960 # Test for the locale name with explicit encoding suffix.
11961 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11962 gt_cv_locale_zh_CN
=zh_CN.GB18030
11965 gt_cv_locale_zh_CN
=none
11971 # If there was a link error, due to mblen(), the system is so old that
11972 # it certainly doesn't have a chinese locale.
11973 gt_cv_locale_zh_CN
=none
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
11979 $as_echo "$gt_cv_locale_zh_CN" >&6; }
11980 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11986 $as_echo_n "checking for a french Unicode locale... " >&6; }
11987 if ${gt_cv_locale_fr_utf8+:} false
; then :
11988 $as_echo_n "(cached) " >&6
11991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 #include <locale.h>
11996 #if HAVE_LANGINFO_CODESET
11997 # include <langinfo.h>
11999 #include <stdlib.h>
12000 #include <string.h>
12004 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12005 imitates locale dependent behaviour by looking at the environment
12006 variables, and all locales use the UTF-8 encoding. */
12007 #if !(defined __BEOS__ || defined __HAIKU__)
12008 /* Check whether the given locale name is recognized by the system. */
12009 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12010 /* On native Windows, setlocale(category, "") looks at the system settings,
12011 not at the environment variables. Also, when an encoding suffix such
12012 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12013 category of the locale to "C". */
12014 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12015 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12018 if (setlocale (LC_ALL, "") == NULL) return 1;
12020 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12021 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12022 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12023 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12024 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12025 some unit tests fail. */
12026 # if HAVE_LANGINFO_CODESET
12028 const char *cs = nl_langinfo (CODESET);
12029 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12034 /* On Cygwin, avoid locale names without encoding suffix, because the
12035 locale_charset() function relies on the encoding suffix. Note that
12036 LC_ALL is set on the command line. */
12037 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12039 /* Check whether in the abbreviation of the second month, the second
12040 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12041 two bytes long, with UTF-8 encoding. */
12042 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12043 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12044 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12047 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12048 /* Check whether the decimal separator is a comma.
12049 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12050 are nl_langinfo(RADIXCHAR) are both ".". */
12051 if (localeconv () ->decimal_point[0] != ',') return 1;
12057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12058 (eval $ac_link) 2>&5
12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12063 # Handle native Windows specially, because there setlocale() interprets
12064 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12065 # "fr" or "fra" as "French" or "French_France.1252",
12066 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12067 # "ja" as "Japanese" or "Japanese_Japan.932",
12070 # Test for the hypothetical native Windows locale name.
12071 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12072 gt_cv_locale_fr_utf8
=French_France
.65001
12075 gt_cv_locale_fr_utf8
=none
12079 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12080 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12081 # configure script would override the LC_ALL setting. Likewise for
12082 # LC_CTYPE, which is also set at the beginning of the configure script.
12083 # Test for the usual locale name.
12084 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12085 gt_cv_locale_fr_utf8
=fr_FR
12087 # Test for the locale name with explicit encoding suffix.
12088 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12089 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12091 # Test for the Solaris 7 locale name.
12092 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12093 gt_cv_locale_fr_utf8
=fr.UTF-8
12096 gt_cv_locale_fr_utf8
=none
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12107 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12108 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12115 $as_echo_n "checking for a traditional french locale... " >&6; }
12116 if ${gt_cv_locale_fr+:} false
; then :
12117 $as_echo_n "(cached) " >&6
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 #include <locale.h>
12125 #if HAVE_LANGINFO_CODESET
12126 # include <langinfo.h>
12128 #include <stdlib.h>
12129 #include <string.h>
12133 /* Check whether the given locale name is recognized by the system. */
12134 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12135 /* On native Windows, setlocale(category, "") looks at the system settings,
12136 not at the environment variables. Also, when an encoding suffix such
12137 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12138 category of the locale to "C". */
12139 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12140 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12143 if (setlocale (LC_ALL, "") == NULL) return 1;
12145 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12146 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12147 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12148 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12149 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12150 some unit tests fail.
12151 On MirBSD 10, when an unsupported locale is specified, setlocale()
12152 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12153 #if HAVE_LANGINFO_CODESET
12155 const char *cs = nl_langinfo (CODESET);
12156 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12157 || strcmp (cs, "UTF-8") == 0)
12162 /* On Cygwin, avoid locale names without encoding suffix, because the
12163 locale_charset() function relies on the encoding suffix. Note that
12164 LC_ALL is set on the command line. */
12165 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12167 /* Check whether in the abbreviation of the second month, the second
12168 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12169 one byte long. This excludes the UTF-8 encoding. */
12170 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12171 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12172 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12173 /* Check whether the decimal separator is a comma.
12174 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12175 are nl_langinfo(RADIXCHAR) are both ".". */
12176 if (localeconv () ->decimal_point[0] != ',') return 1;
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12188 # Handle native Windows specially, because there setlocale() interprets
12189 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12190 # "fr" or "fra" as "French" or "French_France.1252",
12191 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12192 # "ja" as "Japanese" or "Japanese_Japan.932",
12195 # Test for the native Windows locale name.
12196 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12197 gt_cv_locale_fr
=French_France
.1252
12200 gt_cv_locale_fr
=none
12204 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12205 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12206 # configure script would override the LC_ALL setting. Likewise for
12207 # LC_CTYPE, which is also set at the beginning of the configure script.
12208 # Test for the usual locale name.
12209 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12210 gt_cv_locale_fr
=fr_FR
12212 # Test for the locale name with explicit encoding suffix.
12213 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12214 gt_cv_locale_fr
=fr_FR.ISO-8859-1
12216 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12217 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12218 gt_cv_locale_fr
=fr_FR.ISO8859-1
12220 # Test for the HP-UX locale name.
12221 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12222 gt_cv_locale_fr
=fr_FR.iso88591
12224 # Test for the Solaris 7 locale name.
12225 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12229 gt_cv_locale_fr
=none
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12242 $as_echo "$gt_cv_locale_fr" >&6; }
12243 LOCALE_FR
=$gt_cv_locale_fr
12263 GNULIB_RAWMEMCHR
=0;
12266 GNULIB_STRCHRNUL
=0;
12274 GNULIB_STRCASESTR
=0;
12281 GNULIB_MBSCASECMP
=0;
12282 GNULIB_MBSNCASECMP
=0;
12283 GNULIB_MBSPCASECMP
=0;
12284 GNULIB_MBSCASESTR
=0;
12291 GNULIB_STRERROR_R
=0;
12292 GNULIB_STRSIGNAL
=0;
12293 GNULIB_STRVERSCMP
=0;
12298 HAVE_DECL_MEMMEM
=1;
12300 HAVE_DECL_MEMRCHR
=1;
12305 HAVE_DECL_STRDUP
=1;
12306 HAVE_DECL_STRNDUP
=1;
12307 HAVE_DECL_STRNLEN
=1;
12311 HAVE_DECL_STRTOK_R
=1;
12312 HAVE_DECL_STRERROR_R
=1;
12313 HAVE_DECL_STRSIGNAL
=1;
12320 REPLACE_STRCASESTR
=0;
12321 REPLACE_STRCHRNUL
=0;
12322 REPLACE_STRERROR
=0;
12323 REPLACE_STRERROR_R
=0;
12327 REPLACE_STRSIGNAL
=0;
12328 REPLACE_STRTOK_R
=0;
12329 UNDEFINE_STRTOK_R
=0;
12335 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12336 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12337 # irrelevant for anonymous mappings.
12338 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
12339 if test "x$ac_cv_func_mmap" = xyes
; then :
12346 # Try to allow MAP_ANONYMOUS.
12347 gl_have_mmap_anonymous
=no
12348 if test $gl_have_mmap = yes; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12350 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12354 #include <sys/mman.h>
12355 #ifdef MAP_ANONYMOUS
12356 I cannot identify this map
12360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12361 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
12362 gl_have_mmap_anonymous
=yes
12366 if test $gl_have_mmap_anonymous != yes; then
12367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12370 #include <sys/mman.h>
12372 I cannot identify this map
12376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12377 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
12379 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12381 gl_have_mmap_anonymous
=yes
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12387 $as_echo "$gl_have_mmap_anonymous" >&6; }
12388 if test $gl_have_mmap_anonymous = yes; then
12390 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12412 if test $HAVE_MEMCHR = 1; then
12413 # Detect platform-specific bugs in some versions of glibc:
12414 # memchr should not dereference anything with length 0
12415 # http://bugzilla.redhat.com/499689
12416 # memchr should not dereference overestimated length after a match
12417 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12418 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12419 # Assume that memchr works on platforms that lack mprotect.
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12421 $as_echo_n "checking whether memchr works... " >&6; }
12422 if ${gl_cv_func_memchr_works+:} false
; then :
12423 $as_echo_n "(cached) " >&6
12425 if test "$cross_compiling" = yes; then :
12426 gl_cv_func_memchr_works
="guessing no"
12428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 #include <string.h>
12432 #if HAVE_SYS_MMAN_H
12433 # include <fcntl.h>
12434 # include <unistd.h>
12435 # include <sys/types.h>
12436 # include <sys/mman.h>
12438 # define MAP_FILE 0
12447 char *fence = NULL;
12448 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12449 # if HAVE_MAP_ANONYMOUS
12450 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12452 # else /* !HAVE_MAP_ANONYMOUS */
12453 const int flags = MAP_FILE | MAP_PRIVATE;
12454 int fd = open ("/dev/zero", O_RDONLY, 0666);
12458 int pagesize = getpagesize ();
12460 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12462 if (two_pages != (char *)(-1)
12463 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12464 fence = two_pages + pagesize;
12469 if (memchr (fence, 0, 0))
12471 strcpy (fence - 9, "12345678");
12472 if (memchr (fence - 9, 0, 79) != fence - 1)
12474 if (memchr (fence - 1, 0, 3) != fence - 1)
12483 if ac_fn_c_try_run
"$LINENO"; then :
12484 gl_cv_func_memchr_works
=yes
12486 gl_cv_func_memchr_works
=no
12488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12494 $as_echo "$gl_cv_func_memchr_works" >&6; }
12495 if test "$gl_cv_func_memchr_works" != yes; then
12501 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12502 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
12508 cat >>confdefs.h
<<_ACEOF
12509 #define HAVE_DECL_MEMMEM $ac_have_decl
12517 for ac_func
in memmem
12519 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
12520 if test "x$ac_cv_func_memmem" = xyes
; then :
12521 cat >>confdefs.h
<<_ACEOF
12522 #define HAVE_MEMMEM 1
12528 if test $ac_cv_func_memmem = yes; then
12540 if test $ac_cv_have_decl_memmem = no
; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12544 $as_echo_n "checking whether memmem works... " >&6; }
12545 if ${gl_cv_func_memmem_works_always+:} false
; then :
12546 $as_echo_n "(cached) " >&6
12548 if test "$cross_compiling" = yes; then :
12549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 #ifdef __GNU_LIBRARY__
12553 #include <features.h>
12554 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12555 || __GLIBC_MINOR__ > 12)) \
12556 || (__GLIBC__ > 2)) \
12557 || defined __UCLIBC__
12560 #elif defined __CYGWIN__
12561 #include <cygwin/version.h>
12562 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12571 $EGREP "Lucky user" >/dev
/null
2>&1; then :
12572 gl_cv_func_memmem_works_always
="guessing yes"
12574 gl_cv_func_memmem_works_always
="guessing no"
12580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12583 #include <string.h> /* for memmem */
12584 #define P "_EF_BF_BD"
12585 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12586 #define NEEDLE P P P P P
12593 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12595 /* Check for empty needle behavior. */
12597 const char *haystack = "AAA";
12598 if (memmem (haystack, 3, NULL, 0) != haystack)
12607 if ac_fn_c_try_run
"$LINENO"; then :
12608 gl_cv_func_memmem_works_always
=yes
12610 gl_cv_func_memmem_works_always
=no
12612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12619 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12620 case "$gl_cv_func_memmem_works_always" in
12630 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
12631 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
12637 cat >>confdefs.h
<<_ACEOF
12638 #define HAVE_DECL_MEMRCHR $ac_have_decl
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
12653 $as_echo_n "checking for promoted mode_t type... " >&6; }
12654 if ${gl_cv_promoted_mode_t+:} false
; then :
12655 $as_echo_n "(cached) " >&6
12658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 #include <sys/types.h>
12664 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
12669 if ac_fn_c_try_compile
"$LINENO"; then :
12670 gl_cv_promoted_mode_t
='int'
12672 gl_cv_promoted_mode_t
='mode_t'
12674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12678 $as_echo "$gl_cv_promoted_mode_t" >&6; }
12680 cat >>confdefs.h
<<_ACEOF
12681 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
12699 GNULIB_FPRINTF_POSIX
=0;
12715 GNULIB_OBSTACK_PRINTF
=0;
12716 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12721 GNULIB_PRINTF_POSIX
=0;
12730 GNULIB_SPRINTF_POSIX
=0;
12731 GNULIB_STDIO_H_NONBLOCKING
=0;
12732 GNULIB_STDIO_H_SIGPIPE
=0;
12734 GNULIB_VASPRINTF
=0;
12739 GNULIB_VFPRINTF_POSIX
=0;
12741 GNULIB_VPRINTF_POSIX
=0;
12742 GNULIB_VSNPRINTF
=0;
12743 GNULIB_VSPRINTF_POSIX
=0;
12744 HAVE_DECL_FPURGE
=1;
12745 HAVE_DECL_FSEEKO
=1;
12746 HAVE_DECL_FTELLO
=1;
12747 HAVE_DECL_GETDELIM
=1;
12748 HAVE_DECL_GETLINE
=1;
12749 HAVE_DECL_OBSTACK_PRINTF
=1;
12750 HAVE_DECL_SNPRINTF
=1;
12751 HAVE_DECL_VSNPRINTF
=1;
12772 REPLACE_GETDELIM
=0;
12774 REPLACE_OBSTACK_PRINTF
=0;
12780 REPLACE_RENAMEAT
=0;
12781 REPLACE_SNPRINTF
=0;
12783 REPLACE_STDIO_READ_FUNCS
=0;
12784 REPLACE_STDIO_WRITE_FUNCS
=0;
12786 REPLACE_VASPRINTF
=0;
12787 REPLACE_VDPRINTF
=0;
12788 REPLACE_VFPRINTF
=0;
12790 REPLACE_VSNPRINTF
=0;
12791 REPLACE_VSPRINTF
=0;
12824 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
12825 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
12831 cat >>confdefs.h
<<_ACEOF
12832 #define HAVE_DECL_SETENV $ac_have_decl
12850 if test $ac_cv_have_decl_setenv = no
; then
12870 for ac_header
in search.h
12872 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
12873 if test "x$ac_cv_header_search_h" = xyes
; then :
12874 cat >>confdefs.h
<<_ACEOF
12875 #define HAVE_SEARCH_H 1
12882 for ac_func
in tsearch
12884 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
12885 if test "x$ac_cv_func_tsearch" = xyes
; then :
12886 cat >>confdefs.h
<<_ACEOF
12887 #define HAVE_TSEARCH 1
12896 GNULIB_PTHREAD_SIGMASK
=0;
12898 GNULIB_SIGNAL_H_SIGPIPE
=0;
12899 GNULIB_SIGPROCMASK
=0;
12900 GNULIB_SIGACTION
=0;
12901 HAVE_POSIX_SIGNALBLOCKING
=1;
12902 HAVE_PTHREAD_SIGMASK
=1;
12907 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
12909 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
12911 HAVE_SIGHANDLER_T
=1;
12912 REPLACE_PTHREAD_SIGMASK
=0;
12916 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
12917 #include <signal.h>
12918 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
12919 #include <sys/types.h>
12922 if test "x$ac_cv_type_sigset_t" = xyes
; then :
12924 cat >>confdefs.h
<<_ACEOF
12925 #define HAVE_SIGSET_T 1
12928 gl_cv_type_sigset_t
=yes
12930 gl_cv_type_sigset_t
=no
12933 if test $gl_cv_type_sigset_t != yes; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12938 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12939 if ${ac_cv_type_uid_t+:} false
; then :
12940 $as_echo_n "(cached) " >&6
12942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944 #include <sys/types.h>
12947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12948 $EGREP "uid_t" >/dev
/null
2>&1; then :
12949 ac_cv_type_uid_t
=yes
12951 ac_cv_type_uid_t
=no
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12957 $as_echo "$ac_cv_type_uid_t" >&6; }
12958 if test $ac_cv_type_uid_t = no
; then
12960 $as_echo "#define uid_t int" >>confdefs.h
12963 $as_echo "#define gid_t int" >>confdefs.h
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12968 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12969 if ${ac_cv_header_stdbool_h+:} false
; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12975 #include <stdbool.h>
12980 typedef _Bool Bool;
12982 "error: bool is not defined"
12985 "error: false is not defined"
12988 "error: false is not 0"
12991 "error: true is not defined"
12994 "error: true is not 1"
12998 #ifndef __bool_true_false_are_defined
12999 "error: __bool_true_false_are_defined is not defined"
13002 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13004 char a[true == 1 ? 1 : -1];
13005 char b[false == 0 ? 1 : -1];
13006 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13007 char d[(bool) 0.5 == true ? 1 : -1];
13008 /* See body of main program for 'e'. */
13009 char f[(Bool) 0.0 == false ? 1 : -1];
13011 char h[sizeof (Bool)];
13012 char i[sizeof s.t];
13013 enum { j = false, k = true, l = false * true, m = true * 256 };
13014 /* The following fails for
13015 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13017 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13018 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13019 /* Catch a bug in an HP-UX C compiler. See
13020 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13021 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13032 *pq |= q; *pq |= ! q;
13033 *qq |= q; *qq |= ! q;
13034 /* Refer to every declared value, to avoid compiler optimizations. */
13035 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13036 + !m + !n + !o + !p + !q + !pq + !qq);
13042 if ac_fn_c_try_compile
"$LINENO"; then :
13043 ac_cv_header_stdbool_h
=yes
13045 ac_cv_header_stdbool_h
=no
13047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13050 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13051 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13052 if test "x$ac_cv_type__Bool" = xyes
; then :
13054 cat >>confdefs.h
<<_ACEOF
13055 #define HAVE__BOOL 1
13064 HAVE_MAX_ALIGN_T
=1;
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13069 $as_echo_n "checking for wchar_t... " >&6; }
13070 if ${gt_cv_c_wchar_t+:} false
; then :
13071 $as_echo_n "(cached) " >&6
13073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 #include <stddef.h>
13076 wchar_t foo = (wchar_t)'\0';
13085 if ac_fn_c_try_compile
"$LINENO"; then :
13086 gt_cv_c_wchar_t
=yes
13090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13093 $as_echo "$gt_cv_c_wchar_t" >&6; }
13094 if test $gt_cv_c_wchar_t = yes; then
13096 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13106 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13107 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_DECL_STRDUP $ac_have_decl
13119 REPLACE_STRERROR_0
=0
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13121 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13122 if ${gl_cv_func_strerror_0_works+:} false
; then :
13123 $as_echo_n "(cached) " >&6
13125 if test "$cross_compiling" = yes; then :
13127 # Guess yes on glibc systems.
13128 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13129 # If we don't know, assume the worst.
13130 *) gl_cv_func_strerror_0_works
="guessing no" ;;
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <string.h>
13145 str = strerror (0);
13146 if (!*str) result |= 1;
13147 if (errno) result |= 2;
13148 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13155 if ac_fn_c_try_run
"$LINENO"; then :
13156 gl_cv_func_strerror_0_works
=yes
13158 gl_cv_func_strerror_0_works
=no
13160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13167 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13168 case "$gl_cv_func_strerror_0_works" in
13171 REPLACE_STRERROR_0
=1
13173 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13189 if test $gl_cv_have_include_next = yes; then
13190 gl_cv_next_string_h
='<'string.h
'>'
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13193 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13194 if ${gl_cv_next_string_h+:} false
; then :
13195 $as_echo_n "(cached) " >&6
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 #include <string.h>
13205 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13206 *) gl_absname_cpp
="$ac_cpp" ;;
13211 gl_dirsep_regex
='[/\\]'
13214 gl_dirsep_regex
='\/'
13217 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13218 gl_header_literal_regex
=`echo 'string.h' \
13219 | sed -e "$gl_make_literal_regex_sed"`
13220 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13221 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13227 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13228 sed -n "$gl_absolute_header_sed"`
13230 gl_header
=$gl_cv_absolute_string_h
13231 gl_cv_next_string_h
='"'$gl_header'"'
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13236 $as_echo "$gl_cv_next_string_h" >&6; }
13238 NEXT_STRING_H
=$gl_cv_next_string_h
13240 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13242 gl_next_as_first_directive
='<'string.h
'>'
13244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13245 gl_next_as_first_directive
=$gl_cv_next_string_h
13247 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13254 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
13255 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13257 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13258 if eval \
${$as_gl_Symbol+:} false
; then :
13259 $as_echo_n "(cached) " >&6
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 #include <string.h>
13274 if ac_fn_c_try_compile
"$LINENO"; then :
13275 eval "$as_gl_Symbol=yes"
13277 eval "$as_gl_Symbol=no"
13279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13281 eval ac_res
=\$
$as_gl_Symbol
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13283 $as_echo "$ac_res" >&6; }
13284 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13285 cat >>confdefs.h
<<_ACEOF
13286 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13289 eval ac_cv_have_decl_
$gl_func=yes
13297 if test "$gl_cv_func_memchr_works" != yes; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13301 $as_echo_n "checking whether strstr works... " >&6; }
13302 if ${gl_cv_func_strstr_works_always+:} false
; then :
13303 $as_echo_n "(cached) " >&6
13305 if test "$cross_compiling" = yes; then :
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 #ifdef __GNU_LIBRARY__
13310 #include <features.h>
13311 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13312 || defined __UCLIBC__
13315 #elif defined __CYGWIN__
13316 #include <cygwin/version.h>
13317 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13327 gl_cv_func_strstr_works_always
="guessing yes"
13329 gl_cv_func_strstr_works_always
="guessing no"
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 #include <string.h> /* for strstr */
13339 #define P "_EF_BF_BD"
13340 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13341 #define NEEDLE P P P P P
13346 return !!strstr (HAYSTACK, NEEDLE);
13352 if ac_fn_c_try_run
"$LINENO"; then :
13353 gl_cv_func_strstr_works_always
=yes
13355 gl_cv_func_strstr_works_always
=no
13357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13364 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13365 case "$gl_cv_func_strstr_works_always" in
13374 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
13375 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
13381 cat >>confdefs.h
<<_ACEOF
13382 #define HAVE_DECL_STRTOK_R $ac_have_decl
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13387 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13388 if test -z "$MKDIR_P"; then
13389 if ${ac_cv_path_mkdir+:} false
; then :
13390 $as_echo_n "(cached) " >&6
13392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13393 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
13396 test -z "$as_dir" && as_dir
=.
13397 for ac_prog
in mkdir gmkdir
; do
13398 for ac_exec_ext
in '' $ac_executable_extensions; do
13399 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
13400 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13401 'mkdir (GNU coreutils) '* | \
13402 'mkdir (coreutils) '* | \
13403 'mkdir (fileutils) '4.1*)
13404 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
13414 test -d .
/--version && rmdir .
/--version
13415 if test "${ac_cv_path_mkdir+set}" = set; then
13416 MKDIR_P
="$ac_cv_path_mkdir -p"
13418 # As a last resort, use the slow shell script. Don't cache a
13419 # value for MKDIR_P within a source directory, because that will
13420 # break other packages using the cache if that directory is
13421 # removed, or if the value is a relative name.
13422 MKDIR_P
="$ac_install_sh -d"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13426 $as_echo "$MKDIR_P" >&6; }
13446 if test $gl_cv_have_include_next = yes; then
13447 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13450 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13451 if ${gl_cv_next_sys_types_h+:} false
; then :
13452 $as_echo_n "(cached) " >&6
13457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <sys/types.h>
13462 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13463 *) gl_absname_cpp
="$ac_cpp" ;;
13468 gl_dirsep_regex
='[/\\]'
13471 gl_dirsep_regex
='\/'
13474 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13475 gl_header_literal_regex
=`echo 'sys/types.h' \
13476 | sed -e "$gl_make_literal_regex_sed"`
13477 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13478 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13484 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13485 sed -n "$gl_absolute_header_sed"`
13487 gl_header
=$gl_cv_absolute_sys_types_h
13488 gl_cv_next_sys_types_h
='"'$gl_header'"'
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13493 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13495 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
13497 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13499 gl_next_as_first_directive
='<'sys
/types.h
'>'
13501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13502 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
13504 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
13518 GNULIB_NANOSLEEP
=0;
13523 HAVE_DECL_LOCALTIME_R
=1;
13527 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
13528 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
13529 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
13530 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
13532 : ${GNULIB_GETTIMEOFDAY=0};
13534 REPLACE_LOCALTIME
=0;
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
13545 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
13546 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
13547 $as_echo_n "(cached) " >&6
13549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13556 static struct timespec x; x.tv_sec = x.tv_nsec;
13561 if ac_fn_c_try_compile
"$LINENO"; then :
13562 gl_cv_sys_struct_timespec_in_time_h
=yes
13564 gl_cv_sys_struct_timespec_in_time_h
=no
13566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
13569 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
13571 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
13572 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
13573 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
13574 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
13575 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
13576 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
13579 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
13580 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
13581 $as_echo_n "(cached) " >&6
13583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <sys/time.h>
13590 static struct timespec x; x.tv_sec = x.tv_nsec;
13595 if ac_fn_c_try_compile
"$LINENO"; then :
13596 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
13598 gl_cv_sys_struct_timespec_in_sys_time_h
=no
13600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
13603 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
13604 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
13605 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
13608 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
13609 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
13610 $as_echo_n "(cached) " >&6
13612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <pthread.h>
13619 static struct timespec x; x.tv_sec = x.tv_nsec;
13624 if ac_fn_c_try_compile
"$LINENO"; then :
13625 gl_cv_sys_struct_timespec_in_pthread_h
=yes
13627 gl_cv_sys_struct_timespec_in_pthread_h
=no
13629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
13632 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
13633 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
13634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
13637 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
13638 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
13639 $as_echo_n "(cached) " >&6
13641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 #include <unistd.h>
13648 static struct timespec x; x.tv_sec = x.tv_nsec;
13653 if ac_fn_c_try_compile
"$LINENO"; then :
13654 gl_cv_sys_struct_timespec_in_unistd_h
=yes
13656 gl_cv_sys_struct_timespec_in_unistd_h
=no
13658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
13661 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
13662 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
13663 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
13684 if test $gl_cv_have_include_next = yes; then
13685 gl_cv_next_time_h
='<'time.h
'>'
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
13688 $as_echo_n "checking absolute name of <time.h>... " >&6; }
13689 if ${gl_cv_next_time_h+:} false
; then :
13690 $as_echo_n "(cached) " >&6
13695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13700 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13701 *) gl_absname_cpp
="$ac_cpp" ;;
13706 gl_dirsep_regex
='[/\\]'
13709 gl_dirsep_regex
='\/'
13712 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13713 gl_header_literal_regex
=`echo 'time.h' \
13714 | sed -e "$gl_make_literal_regex_sed"`
13715 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13716 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13722 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13723 sed -n "$gl_absolute_header_sed"`
13725 gl_header
=$gl_cv_absolute_time_h
13726 gl_cv_next_time_h
='"'$gl_header'"'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
13731 $as_echo "$gl_cv_next_time_h" >&6; }
13733 NEXT_TIME_H
=$gl_cv_next_time_h
13735 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13737 gl_next_as_first_directive
='<'time.h
'>'
13739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13740 gl_next_as_first_directive
=$gl_cv_next_time_h
13742 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
13755 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13756 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
13762 cat >>confdefs.h
<<_ACEOF
13763 #define HAVE_DECL_UNSETENV $ac_have_decl
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13769 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13770 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
13771 $as_echo_n "(cached) " >&6
13773 gl_cv_header_wchar_h_correct_inline
=yes
13774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13777 #define wcstod renamed_wcstod
13778 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13780 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13781 included before <wchar.h>. */
13782 #include <stddef.h>
13786 extern int zero (void);
13787 int main () { return zero(); }
13790 save_ac_compile
="$ac_compile"
13791 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13793 (eval $ac_compile) 2>&5
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; }; then
13797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 #define wcstod renamed_wcstod
13801 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13803 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13804 included before <wchar.h>. */
13805 #include <stddef.h>
13809 int zero (void) { return 0; }
13812 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13814 (eval $ac_compile) 2>&5
13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817 test $ac_status = 0; }; then
13818 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
13821 gl_cv_header_wchar_h_correct_inline
=no
13825 ac_compile
="$save_ac_compile"
13826 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13830 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13831 if test $gl_cv_header_wchar_h_correct_inline = no
; then
13832 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13833 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13834 C99 mode. You have four options:
13835 - Add the flag -fgnu89-inline to CC and reconfigure, or
13836 - Fix your include files, using parts of
13837 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13838 - Use a gcc version older than 4.3, or
13839 - Don't use the flags -std=c99 or -std=gnu99.
13840 Configuration aborted." "$LINENO" 5
13856 if test $ac_cv_header_features_h = yes; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13865 $as_echo_n "checking for wint_t... " >&6; }
13866 if ${gt_cv_c_wint_t+:} false
; then :
13867 $as_echo_n "(cached) " >&6
13869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13874 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13875 before <wchar.h>. */
13876 #include <stddef.h>
13880 wint_t foo = (wchar_t)'\0';
13889 if ac_fn_c_try_compile
"$LINENO"; then :
13894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13897 $as_echo "$gt_cv_c_wint_t" >&6; }
13898 if test $gt_cv_c_wint_t = yes; then
13900 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13909 GNULIB_TOWCTRANS
=0;
13913 REPLACE_ISWBLANK
=0;
13922 GL_COND_LIBTOOL_TRUE
=
13923 GL_COND_LIBTOOL_FALSE
='#'
13925 GL_COND_LIBTOOL_TRUE
='#'
13926 GL_COND_LIBTOOL_FALSE
=
13929 gl_cond_libtool
=false
13932 gl_m4_base
='import/m4'
13942 gl_source_base
='import'
13945 if test $ac_cv_func_alloca_works = no
; then
13949 # Define an additional variable used in the Makefile substitution.
13950 if test $ac_cv_working_alloca_h = yes; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13952 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13953 if ${gl_cv_rpl_alloca+:} false
; then :
13954 $as_echo_n "(cached) " >&6
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
13967 gl_cv_rpl_alloca
=yes
13969 gl_cv_rpl_alloca
=no
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13976 $as_echo "$gl_cv_rpl_alloca" >&6; }
13977 if test $gl_cv_rpl_alloca = yes; then
13979 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13989 if test -n "$ALLOCA_H"; then
13990 GL_GENERATE_ALLOCA_H_TRUE
=
13991 GL_GENERATE_ALLOCA_H_FALSE
='#'
13993 GL_GENERATE_ALLOCA_H_TRUE
='#'
13994 GL_GENERATE_ALLOCA_H_FALSE
=
14006 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
14011 if test $ac_cv_func_canonicalize_file_name = no
; then
14012 HAVE_CANONICALIZE_FILE_NAME
=0
14013 if test $ac_cv_func_realpath = no
; then
14016 case "$gl_cv_func_realpath_works" in
14018 *) REPLACE_REALPATH
=1 ;;
14022 case "$gl_cv_func_realpath_works" in
14026 REPLACE_CANONICALIZE_FILE_NAME
=1
14032 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14041 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14046 cat >>confdefs.h
<<_ACEOF
14047 #define GNULIB_CANONICALIZE_LGPL 1
14056 GNULIB_CANONICALIZE_FILE_NAME
=1
14062 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14077 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14092 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14099 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14100 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
14101 $as_echo_n "(cached) " >&6
14103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14106 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14108 # include <unistd.h>
14110 #include <limits.h>
14111 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14112 # include <sys/param.h>
14114 #if !defined PATH_MAX && defined MAXPATHLEN
14115 # define PATH_MAX MAXPATHLEN
14119 # define PATH_MAX 1024
14121 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14123 # define PATH_MAX 260
14127 have_arbitrary_file_name_length_limit
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
14132 gl_cv_have_arbitrary_file_name_length_limit
=yes
14134 gl_cv_have_arbitrary_file_name_length_limit
=no
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14140 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14142 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14151 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
14157 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14163 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14177 if test $ac_cv_header_sys_socket_h != yes; then
14178 for ac_header
in winsock2.h
14180 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14181 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
14182 cat >>confdefs.h
<<_ACEOF
14183 #define HAVE_WINSOCK2_H 1
14191 if test "$ac_cv_header_winsock2_h" = yes; then
14193 UNISTD_H_HAVE_WINSOCK2_H
=1
14194 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
14200 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14205 if test $REPLACE_CLOSE = 0; then
14215 if test $ac_cv_func_fchdir = no
; then
14219 if test $HAVE_FCHDIR = 0; then
14225 if test $REPLACE_CLOSE = 1; then
14234 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
14248 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
14255 for ac_func
in closedir
14257 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
14258 if test "x$ac_cv_func_closedir" = xyes
; then :
14259 cat >>confdefs.h
<<_ACEOF
14260 #define HAVE_CLOSEDIR 1
14266 if test $ac_cv_func_closedir = no
; then
14279 if test $ac_cv_func_fchdir = no
; then
14283 if test $HAVE_FCHDIR = 0; then
14284 if test $HAVE_CLOSEDIR = 1; then
14289 case $host_os,$HAVE_CLOSEDIR in
14291 REPLACE_CLOSEDIR
=1;;
14294 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
14303 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
14317 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
14322 if test "x$datarootdir" = x
; then
14323 datarootdir
='${datadir}'
14326 if test "x$docdir" = x
; then
14327 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
14330 if test "x$htmldir" = x
; then
14331 htmldir
='${docdir}'
14334 if test "x$dvidir" = x
; then
14338 if test "x$pdfdir" = x
; then
14342 if test "x$psdir" = x
; then
14346 if test "x$lispdir" = x
; then
14347 lispdir
='${datarootdir}/emacs/site-lisp'
14350 if test "x$localedir" = x
; then
14351 localedir
='${datarootdir}/locale'
14354 if test "x$runstatedir" = x
; then
14355 runstatedir
='${localstatedir}/run'
14359 pkglibexecdir
='${libexecdir}/${PACKAGE}'
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
14363 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
14364 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 if test "$cross_compiling" = yes; then :
14369 # Guess yes on glibc systems with Linux kernel.
14370 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
14371 # If we don't know, assume the worst.
14372 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
14376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #include <sys/types.h>
14379 #include <sys/stat.h>
14380 #include <dirent.h>
14385 DIR *dp = opendir (".");
14393 if (lstat (e->d_name, &st) != 0)
14395 if (e->d_ino != st.st_ino)
14404 if ac_fn_c_try_run
"$LINENO"; then :
14405 gl_cv_struct_dirent_d_ino
=yes
14407 gl_cv_struct_dirent_d_ino
=no
14409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
14415 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
14416 case "$gl_cv_struct_dirent_d_ino" in
14419 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
14426 $as_echo_n "checking for d_type member in directory struct... " >&6; }
14427 if ${gl_cv_struct_dirent_d_type+:} false
; then :
14428 $as_echo_n "(cached) " >&6
14430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14433 #include <sys/types.h>
14434 #include <dirent.h>
14439 struct dirent dp; dp.d_type = 0;
14444 if ac_fn_c_try_link
"$LINENO"; then :
14445 gl_cv_struct_dirent_d_type
=yes
14447 gl_cv_struct_dirent_d_type
=no
14449 rm -f core conftest.err conftest.
$ac_objext \
14450 conftest
$ac_exeext conftest.
$ac_ext
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
14455 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
14456 if test $gl_cv_struct_dirent_d_type = yes; then
14458 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
14481 if test $gl_cv_have_include_next = yes; then
14482 gl_cv_next_dirent_h
='<'dirent.h
'>'
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
14485 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
14486 if ${gl_cv_next_dirent_h+:} false
; then :
14487 $as_echo_n "(cached) " >&6
14490 if test $ac_cv_header_dirent_h = yes; then
14495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 #include <dirent.h>
14500 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14501 *) gl_absname_cpp
="$ac_cpp" ;;
14506 gl_dirsep_regex
='[/\\]'
14509 gl_dirsep_regex
='\/'
14512 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14513 gl_header_literal_regex
=`echo 'dirent.h' \
14514 | sed -e "$gl_make_literal_regex_sed"`
14515 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14516 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14522 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14523 sed -n "$gl_absolute_header_sed"`
14525 gl_header
=$gl_cv_absolute_dirent_h
14526 gl_cv_next_dirent_h
='"'$gl_header'"'
14528 gl_cv_next_dirent_h
='<'dirent.h
'>'
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
14534 $as_echo "$gl_cv_next_dirent_h" >&6; }
14536 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
14538 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14540 gl_next_as_first_directive
='<'dirent.h
'>'
14542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14543 gl_next_as_first_directive
=$gl_cv_next_dirent_h
14545 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
14550 if test $ac_cv_header_dirent_h = yes; then
14558 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
14559 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14561 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14562 if eval \
${$as_gl_Symbol+:} false
; then :
14563 $as_echo_n "(cached) " >&6
14565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <dirent.h>
14578 if ac_fn_c_try_compile
"$LINENO"; then :
14579 eval "$as_gl_Symbol=yes"
14581 eval "$as_gl_Symbol=no"
14583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14585 eval ac_res
=\$
$as_gl_Symbol
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14587 $as_echo "$ac_res" >&6; }
14588 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
14589 cat >>confdefs.h
<<_ACEOF
14590 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14593 eval ac_cv_have_decl_
$gl_func=yes
14603 for ac_func
in dirfd
14605 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
14606 if test "x$ac_cv_func_dirfd" = xyes
; then :
14607 cat >>confdefs.h
<<_ACEOF
14608 #define HAVE_DIRFD 1
14614 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
14615 #include <dirent.h>
14617 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
14623 cat >>confdefs.h
<<_ACEOF
14624 #define HAVE_DECL_DIRFD $ac_have_decl
14627 if test $ac_cv_have_decl_dirfd = no
; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
14632 $as_echo_n "checking whether dirfd is a macro... " >&6; }
14633 if ${gl_cv_func_dirfd_macro+:} false
; then :
14634 $as_echo_n "(cached) " >&6
14636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14639 #include <sys/types.h>
14640 #include <dirent.h>
14642 dirent_header_defines_dirfd
14645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14646 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
14647 gl_cv_func_dirfd_macro
=yes
14649 gl_cv_func_dirfd_macro
=no
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
14655 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
14657 # Use the replacement if we have no function or macro with that name,
14658 # or if OS/2 kLIBC whose dirfd() does not work.
14659 # Replace only if the system declares dirfd already.
14660 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
14661 no
,no
,*,yes |
*,*,os2
*,yes)
14664 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
14668 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
14669 ||
test $REPLACE_DIRFD = 1; then
14678 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
14682 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
14683 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
14684 $as_echo_n "(cached) " >&6
14687 dirfd_save_CFLAGS
=$CFLAGS
14688 for ac_expr
in d_fd dd_fd
; do
14690 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
14691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14694 #include <sys/types.h>
14695 #include <dirent.h>
14699 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
14704 if ac_fn_c_try_compile
"$LINENO"; then :
14708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14709 CFLAGS
=$dirfd_save_CFLAGS
14710 test "$dir_fd_found" = yes && break
14712 test "$dir_fd_found" = yes || ac_expr
=no_such_member
14714 gl_cv_sys_dir_fd_member_name
=$ac_expr
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
14719 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
14720 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
14722 cat >>confdefs.h
<<_ACEOF
14723 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
14741 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14752 $as_echo_n "checking whether // is distinct from /... " >&6; }
14753 if ${gl_cv_double_slash_root+:} false
; then :
14754 $as_echo_n "(cached) " >&6
14756 if test x
"$cross_compiling" = xyes
; then
14757 # When cross-compiling, there is no way to tell whether // is special
14758 # short of a list of hosts. However, the only known hosts to date
14759 # that have a distinct // are Apollo DomainOS (too old to port to),
14760 # Cygwin, and z/OS. If anyone knows of another system for which // has
14761 # special semantics and is distinct from /, please report it to
14762 # <bug-gnulib@gnu.org>.
14764 *-cygwin | i370-ibm-openedition
)
14765 gl_cv_double_slash_root
=yes ;;
14767 # Be optimistic and assume that / and // are the same when we
14769 gl_cv_double_slash_root
='unknown, assuming no' ;;
14772 set x
`ls -di / // 2>/dev/null`
14773 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
14774 gl_cv_double_slash_root
=no
14776 gl_cv_double_slash_root
=yes
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14781 $as_echo "$gl_cv_double_slash_root" >&6; }
14782 if test "$gl_cv_double_slash_root" = yes; then
14784 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14791 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14804 if test $ac_cv_func_fchdir = no
; then
14808 if test $HAVE_FCHDIR = 0; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
14813 $as_echo_n "checking whether dup works... " >&6; }
14814 if ${gl_cv_func_dup_works+:} false
; then :
14815 $as_echo_n "(cached) " >&6
14817 if test "$cross_compiling" = yes; then :
14818 gl_cv_func_dup_works
='guessing yes'
14820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822 #include <unistd.h>
14828 /* On OS/2 kLIBC, dup does not work on a directory fd. */
14829 int fd = open (".", O_RDONLY);
14830 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
14837 if ac_fn_c_try_run
"$LINENO"; then :
14838 gl_cv_func_dup_works
=yes
14840 gl_cv_func_dup_works
=no
14842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
14849 $as_echo "$gl_cv_func_dup_works" >&6; }
14850 case "$gl_cv_func_dup_works" in
14857 if test $REPLACE_DUP = 1; then
14866 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
14881 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
14890 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
14893 if test $HAVE_DUP2 = 1; then
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
14895 $as_echo_n "checking whether dup2 works... " >&6; }
14896 if ${gl_cv_func_dup2_works+:} false
; then :
14897 $as_echo_n "(cached) " >&6
14899 if test "$cross_compiling" = yes; then :
14901 mingw
*) # on this platform, dup2 always returns 0 for success
14902 gl_cv_func_dup2_works
="guessing no" ;;
14903 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
14904 gl_cv_func_dup2_works
="guessing no" ;;
14906 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
14908 gl_cv_func_dup2_works
="guessing no" ;;
14909 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
14910 gl_cv_func_dup2_works
="guessing no" ;;
14911 *-android*) # implemented using dup3(), which fails if oldfd == newfd
14912 gl_cv_func_dup2_works
="guessing no" ;;
14913 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
14914 gl_cv_func_dup2_works
="guessing no" ;;
14915 *) gl_cv_func_dup2_works
="guessing yes" ;;
14918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14923 #include <limits.h>
14924 #include <sys/resource.h>
14925 #include <unistd.h>
14926 #ifndef RLIM_SAVED_CUR
14927 # define RLIM_SAVED_CUR RLIM_INFINITY
14929 #ifndef RLIM_SAVED_MAX
14930 # define RLIM_SAVED_MAX RLIM_INFINITY
14937 int bad_fd = INT_MAX;
14938 struct rlimit rlim;
14939 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14940 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14941 && rlim.rlim_cur != RLIM_INFINITY
14942 && rlim.rlim_cur != RLIM_SAVED_MAX
14943 && rlim.rlim_cur != RLIM_SAVED_CUR)
14944 bad_fd = rlim.rlim_cur;
14946 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
14949 if (dup2 (1, 1) != 1)
14952 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
14956 if (dup2 (0, 0) != -1)
14958 /* Many gnulib modules require POSIX conformance of EBADF. */
14959 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
14961 /* Flush out some cygwin core dumps. */
14962 if (dup2 (2, -1) != -1 || errno != EBADF)
14966 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
14968 int fd = open (".", O_RDONLY);
14971 else if (dup2 (fd, fd + 1) == -1)
14982 if ac_fn_c_try_run
"$LINENO"; then :
14983 gl_cv_func_dup2_works
=yes
14985 gl_cv_func_dup2_works
=no
14987 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14988 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
14994 $as_echo "$gl_cv_func_dup2_works" >&6; }
14995 case "$gl_cv_func_dup2_works" in
14999 for ac_func
in setdtablesize
15001 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15002 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
15003 cat >>confdefs.h
<<_ACEOF
15004 #define HAVE_SETDTABLESIZE 1
15023 if test $ac_cv_func_fchdir = no
; then
15027 if test $HAVE_FCHDIR = 0; then
15028 if test $HAVE_DUP2 = 1; then
15034 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
15043 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
15058 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15074 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15081 $as_echo_n "checking for error_at_line... " >&6; }
15082 if ${ac_cv_lib_error_at_line+:} false
; then :
15083 $as_echo_n "(cached) " >&6
15085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15091 error_at_line (0, 0, "", 0, "an error occurred");
15096 if ac_fn_c_try_link
"$LINENO"; then :
15097 ac_cv_lib_error_at_line
=yes
15099 ac_cv_lib_error_at_line
=no
15101 rm -f core conftest.err conftest.
$ac_objext \
15102 conftest
$ac_exeext conftest.
$ac_ext
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15105 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15107 if test $ac_cv_lib_error_at_line = no
; then
15116 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
15136 if test $ac_cv_have_decl_fchdir = no
; then
15141 if test $HAVE_FCHDIR = 0; then
15150 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
15154 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15157 $as_echo_n "checking whether open can visit directories... " >&6; }
15158 if ${gl_cv_func_open_directory_works+:} false
; then :
15159 $as_echo_n "(cached) " >&6
15161 if test "$cross_compiling" = yes; then :
15163 # Guess yes on glibc systems.
15164 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
15165 # If we don't know, assume the worst.
15166 *) gl_cv_func_open_directory_works
="guessing no" ;;
15170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15177 return open(".", O_RDONLY) < 0;
15182 if ac_fn_c_try_run
"$LINENO"; then :
15183 gl_cv_func_open_directory_works
=yes
15185 gl_cv_func_open_directory_works
=no
15187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15193 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15194 case "$gl_cv_func_open_directory_works" in
15198 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15215 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15230 if test $ac_cv_func_fcntl = no
; then
15240 if test $ac_cv_func_fcntl = no
; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
15248 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
15249 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
15250 $as_echo_n "(cached) " >&6
15252 if test "$cross_compiling" = yes; then :
15254 aix
* | cygwin
* | haiku
*)
15255 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
15256 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
15259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15263 #include <limits.h>
15264 #include <sys/resource.h>
15265 #include <unistd.h>
15266 #ifndef RLIM_SAVED_CUR
15267 # define RLIM_SAVED_CUR RLIM_INFINITY
15269 #ifndef RLIM_SAVED_MAX
15270 # define RLIM_SAVED_MAX RLIM_INFINITY
15277 int bad_fd = INT_MAX;
15278 struct rlimit rlim;
15279 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15280 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15281 && rlim.rlim_cur != RLIM_INFINITY
15282 && rlim.rlim_cur != RLIM_SAVED_MAX
15283 && rlim.rlim_cur != RLIM_SAVED_CUR)
15284 bad_fd = rlim.rlim_cur;
15285 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
15286 if (errno != EINVAL) result |= 2;
15287 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
15288 if (errno != EINVAL) result |= 8;
15289 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
15292 fd = open (".", O_RDONLY);
15295 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
15305 if ac_fn_c_try_run
"$LINENO"; then :
15306 gl_cv_func_fcntl_f_dupfd_works
=yes
15308 gl_cv_func_fcntl_f_dupfd_works
=no
15310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
15316 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
15317 case $gl_cv_func_fcntl_f_dupfd_works in
15328 if test $ac_cv_func_fcntl = no
; then
15335 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
15340 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
15341 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
15342 $as_echo_n "(cached) " >&6
15344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15348 #ifndef F_DUPFD_CLOEXEC
15360 if ac_fn_c_try_compile
"$LINENO"; then :
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15365 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
15366 it to support the semantics on older kernels that failed with EINVAL. */
15378 if ac_fn_c_try_compile
"$LINENO"; then :
15379 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
15381 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
15383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15385 gl_cv_func_fcntl_f_dupfd_cloexec
=no
15387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
15390 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
15391 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
15401 if test $ac_cv_func_fcntl = no
; then
15419 if test $ac_cv_func_fchdir = no
; then
15423 if test $HAVE_FCHDIR = 0; then
15433 if test $ac_cv_func_fcntl = no
; then
15442 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
15451 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
15465 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
15480 if test $gl_cv_have_include_next = yes; then
15481 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
15484 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
15485 if ${gl_cv_next_fcntl_h+:} false
; then :
15486 $as_echo_n "(cached) " >&6
15491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15496 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15497 *) gl_absname_cpp
="$ac_cpp" ;;
15502 gl_dirsep_regex
='[/\\]'
15505 gl_dirsep_regex
='\/'
15508 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15509 gl_header_literal_regex
=`echo 'fcntl.h' \
15510 | sed -e "$gl_make_literal_regex_sed"`
15511 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15512 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15518 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15519 sed -n "$gl_absolute_header_sed"`
15521 gl_header
=$gl_cv_absolute_fcntl_h
15522 gl_cv_next_fcntl_h
='"'$gl_header'"'
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
15527 $as_echo "$gl_cv_next_fcntl_h" >&6; }
15529 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
15531 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15532 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15533 gl_next_as_first_directive
='<'fcntl.h
'>'
15535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15536 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
15538 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
15549 for gl_func
in fcntl openat
; do
15550 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15552 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15553 if eval \
${$as_gl_Symbol+:} false
; then :
15554 $as_echo_n "(cached) " >&6
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15569 if ac_fn_c_try_compile
"$LINENO"; then :
15570 eval "$as_gl_Symbol=yes"
15572 eval "$as_gl_Symbol=no"
15574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15576 eval ac_res
=\$
$as_gl_Symbol
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15578 $as_echo "$ac_res" >&6; }
15579 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15580 cat >>confdefs.h
<<_ACEOF
15581 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15584 eval ac_cv_have_decl_
$gl_func=yes
15594 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
15595 #include <dirent.h>
15598 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
15604 cat >>confdefs.h
<<_ACEOF
15605 #define HAVE_DECL_FDOPENDIR $ac_have_decl
15607 if test $ac_have_decl = 1; then :
15610 HAVE_DECL_FDOPENDIR
=0
15620 if test $ac_cv_func_fdopendir = no
; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
15624 $as_echo_n "checking whether fdopendir works... " >&6; }
15625 if ${gl_cv_func_fdopendir_works+:} false
; then :
15626 $as_echo_n "(cached) " >&6
15628 if test "$cross_compiling" = yes; then :
15630 # Guess yes on glibc systems.
15631 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
15632 # If we don't know, assume the worst.
15633 *) gl_cv_func_fdopendir_works
="guessing no" ;;
15637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 #include <dirent.h>
15642 #include <unistd.h>
15643 #if !HAVE_DECL_FDOPENDIR
15645 # ifdef __cplusplus
15648 DIR *fdopendir (int);
15655 int fd = open ("conftest.c", O_RDONLY);
15656 if (fd < 0) result |= 1;
15657 if (fdopendir (fd)) result |= 2;
15658 if (close (fd)) result |= 4;
15664 if ac_fn_c_try_run
"$LINENO"; then :
15665 gl_cv_func_fdopendir_works
=yes
15667 gl_cv_func_fdopendir_works
=no
15669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15670 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
15675 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
15676 case "$gl_cv_func_fdopendir_works" in
15679 REPLACE_FDOPENDIR
=1
15684 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
15693 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
15707 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
15713 cat >>confdefs.h
<<_ACEOF
15714 #define GNULIB_FDOPENDIR 1
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
15729 $as_echo_n "checking for flexible array member... " >&6; }
15730 if ${ac_cv_c_flexmember+:} false
; then :
15731 $as_echo_n "(cached) " >&6
15733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 #include <stdlib.h>
15737 #include <stddef.h>
15738 struct s { int n; double d[]; };
15742 int m = getchar ();
15743 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
15744 nbytes += sizeof (struct s) - 1;
15745 nbytes -= nbytes % sizeof (struct s);
15746 struct s *p = malloc (nbytes);
15748 return p->d != (double *) NULL;
15753 if ac_fn_c_try_compile
"$LINENO"; then :
15754 ac_cv_c_flexmember
=yes
15756 ac_cv_c_flexmember
=no
15758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
15761 $as_echo "$ac_cv_c_flexmember" >&6; }
15762 if test $ac_cv_c_flexmember = yes; then
15764 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
15767 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
15775 REPLACE_FLOAT_LDBL
=0
15777 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
15781 case "$host_cpu" in
15786 # On x86_64 systems, the C compiler may still be generating
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
15794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15795 $EGREP "yes" >/dev
/null
2>&1; then :
15806 case "$host_cpu" in
15814 aix
* | freebsd
* | linux
*)
15815 if test -n "$FLOAT_H"; then
15816 REPLACE_FLOAT_LDBL
=1
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
15823 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
15824 if ${gl_cv_func_itold_works+:} false
; then :
15825 $as_echo_n "(cached) " >&6
15828 if test "$cross_compiling" = yes; then :
15831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 #if defined __LP64__ || defined __arch64__
15837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15838 $EGREP "yes" >/dev
/null
2>&1; then :
15839 gl_cv_func_itold_works
="guessing no"
15841 gl_cv_func_itold_works
="guessing yes"
15846 *) gl_cv_func_itold_works
="guessing yes" ;;
15850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15854 volatile long double ld;
15863 if ac_fn_c_try_run
"$LINENO"; then :
15864 gl_cv_func_itold_works
=yes
15866 gl_cv_func_itold_works
=no
15868 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15869 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
15875 $as_echo "$gl_cv_func_itold_works" >&6; }
15876 case "$gl_cv_func_itold_works" in
15883 if test -n "$FLOAT_H"; then
15892 if test $gl_cv_have_include_next = yes; then
15893 gl_cv_next_float_h
='<'float.h
'>'
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
15896 $as_echo_n "checking absolute name of <float.h>... " >&6; }
15897 if ${gl_cv_next_float_h+:} false
; then :
15898 $as_echo_n "(cached) " >&6
15903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15908 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15909 *) gl_absname_cpp
="$ac_cpp" ;;
15914 gl_dirsep_regex
='[/\\]'
15917 gl_dirsep_regex
='\/'
15920 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15921 gl_header_literal_regex
=`echo 'float.h' \
15922 | sed -e "$gl_make_literal_regex_sed"`
15923 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15924 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15930 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15931 sed -n "$gl_absolute_header_sed"`
15933 gl_header
=$gl_cv_absolute_float_h
15934 gl_cv_next_float_h
='"'$gl_header'"'
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
15939 $as_echo "$gl_cv_next_float_h" >&6; }
15941 NEXT_FLOAT_H
=$gl_cv_next_float_h
15943 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15945 gl_next_as_first_directive
='<'float.h
'>'
15947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15948 gl_next_as_first_directive
=$gl_cv_next_float_h
15950 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
15957 if test -n "$FLOAT_H"; then
15958 GL_GENERATE_FLOAT_H_TRUE
=
15959 GL_GENERATE_FLOAT_H_FALSE
='#'
15961 GL_GENERATE_FLOAT_H_TRUE
='#'
15962 GL_GENERATE_FLOAT_H_FALSE
=
15967 if test $REPLACE_FLOAT_LDBL = 1; then
15976 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
15979 if test $REPLACE_ITOLD = 1; then
15988 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
15997 gl_fnmatch_required_lowercase
=`
15998 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16000 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16002 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16003 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
16004 $as_echo_n "(cached) " >&6
16006 if test $gl_fnmatch_required = GNU
; then
16007 gl_fnmatch_gnu_start
=
16008 gl_fnmatch_gnu_end
=
16010 gl_fnmatch_gnu_start
='#if 0'
16011 gl_fnmatch_gnu_end
='#endif'
16013 if test "$cross_compiling" = yes; then :
16014 eval "$gl_fnmatch_cache_var=\"guessing no\""
16016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 #include <fnmatch.h>
16020 y (char const *pattern, char const *string, int flags)
16022 return fnmatch (pattern, string, flags) == 0;
16025 n (char const *pattern, char const *string, int flags)
16027 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16033 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16034 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16035 static char const A_1[] = { 'A' - 1, 0 };
16036 static char const A01[] = { 'A' + 1, 0 };
16037 static char const a_1[] = { 'a' - 1, 0 };
16038 static char const a01[] = { 'a' + 1, 0 };
16039 static char const bs_1[] = { '\\\\' - 1, 0 };
16040 static char const bs01[] = { '\\\\' + 1, 0 };
16042 if (!n ("a*", "", 0))
16044 if (!y ("a*", "abc", 0))
16046 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16048 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16050 if (!y ("a\\\\bc", "abc", 0))
16052 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16054 if (!y ("*x", ".x", 0))
16056 if (!n ("*x", ".x", FNM_PERIOD))
16058 if (!y (Apat, "\\\\", 0))
16060 if (!y (Apat, "A", 0))
16062 if (!y (apat, "\\\\", 0))
16064 if (!y (apat, "a", 0))
16066 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16068 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16070 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16072 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16074 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16076 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16078 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16080 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16082 $gl_fnmatch_gnu_start
16083 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16085 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16087 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16089 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16091 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16093 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16095 $gl_fnmatch_gnu_end
16102 if ac_fn_c_try_run
"$LINENO"; then :
16103 eval "$gl_fnmatch_cache_var=yes"
16105 eval "$gl_fnmatch_cache_var=no"
16107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16113 eval ac_res
=\$
$gl_fnmatch_cache_var
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16115 $as_echo "$ac_res" >&6; }
16116 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16117 if test "$gl_fnmatch_result" = yes; then
16118 rm -f "$gl_source_base/fnmatch.h"
16120 FNMATCH_H
=fnmatch.h
16123 if test -n "$FNMATCH_H"; then
16124 GL_GENERATE_FNMATCH_H_TRUE
=
16125 GL_GENERATE_FNMATCH_H_FALSE
='#'
16127 GL_GENERATE_FNMATCH_H_TRUE
='#'
16128 GL_GENERATE_FNMATCH_H_FALSE
=
16132 if test -n "$FNMATCH_H"; then
16141 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16145 cat >>confdefs.h
<<_ACEOF
16146 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16150 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16152 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16158 cat >>confdefs.h
<<_ACEOF
16159 #define HAVE_DECL_ISBLANK $ac_have_decl
16204 if test -n "$FNMATCH_H"; then
16213 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16217 cat >>confdefs.h
<<_ACEOF
16218 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16222 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16224 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16230 cat >>confdefs.h
<<_ACEOF
16231 #define HAVE_DECL_ISBLANK $ac_have_decl
16275 if test $gl_cv_func_frexp_no_libm = no
; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
16277 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
16278 if ${gl_cv_func_frexp_in_libm+:} false
; then :
16279 $as_echo_n "(cached) " >&6
16284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16291 int e; return frexp (x, &e) > 0;
16296 if ac_fn_c_try_link
"$LINENO"; then :
16297 gl_cv_func_frexp_in_libm
=yes
16299 gl_cv_func_frexp_in_libm
=no
16301 rm -f core conftest.err conftest.
$ac_objext \
16302 conftest
$ac_exeext conftest.
$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
16307 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
16308 if test $gl_cv_func_frexp_in_libm = yes; then
16312 if test $gl_cv_func_frexp_no_libm = yes \
16313 ||
test $gl_cv_func_frexp_in_libm = yes; then
16315 LIBS
="$LIBS $FREXP_LIBM"
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
16326 $as_echo_n "checking whether frexp works... " >&6; }
16327 if ${gl_cv_func_frexp_works+:} false
; then :
16328 $as_echo_n "(cached) " >&6
16331 if test "$cross_compiling" = yes; then :
16333 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
16334 *) gl_cv_func_frexp_works
="guessing yes";;
16338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16343 #include <string.h>
16344 #if HAVE_DECL_ALARM
16345 # include <signal.h>
16346 # include <unistd.h>
16348 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16349 ICC 10.0 has a bug when optimizing the expression -zero.
16350 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
16351 to PowerPC on Mac OS X 10.5. */
16352 #if defined __hpux || defined __sgi || defined __ICC
16354 compute_minus_zero (void)
16356 return -DBL_MIN * DBL_MIN;
16358 # define minus_zero compute_minus_zero ()
16360 double minus_zero = -0.0;
16368 #if HAVE_DECL_ALARM
16369 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
16370 number. Let the test fail in this case. */
16371 signal (SIGALRM, SIG_DFL);
16374 /* Test on denormalized numbers. */
16375 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
16380 double y = frexp (x, &exp);
16381 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
16382 On NetBSD: y = 0.75. Correct: y = 0.5. */
16386 /* Test on infinite numbers. */
16390 double y = frexp (x, &exp);
16394 /* Test on negative zero. */
16398 double y = frexp (x, &exp);
16399 if (memcmp (&y, &x, sizeof x))
16405 if ac_fn_c_try_run
"$LINENO"; then :
16406 gl_cv_func_frexp_works
=yes
16408 gl_cv_func_frexp_works
=no
16410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16417 $as_echo "$gl_cv_func_frexp_works" >&6; }
16420 case "$gl_cv_func_frexp_works" in
16421 *yes) gl_func_frexp
=yes ;;
16422 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
16427 if test $gl_func_frexp = yes; then
16429 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
16434 if test $gl_func_frexp != yes; then
16443 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
16457 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
16467 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16469 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
16477 if test $HAVE_DECL_FREXPL = 1; then
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
16480 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
16481 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
16482 $as_echo_n "(cached) " >&6
16485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16492 int e; return frexpl (x, &e) > 0;
16497 if ac_fn_c_try_link
"$LINENO"; then :
16498 gl_cv_func_frexpl_no_libm
=yes
16500 gl_cv_func_frexpl_no_libm
=no
16502 rm -f core conftest.err conftest.
$ac_objext \
16503 conftest
$ac_exeext conftest.
$ac_ext
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16507 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16509 if test $gl_cv_func_frexpl_no_libm = no
; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
16511 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
16512 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
16513 $as_echo_n "(cached) " >&6
16518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16525 int e; return frexpl (x, &e) > 0;
16530 if ac_fn_c_try_link
"$LINENO"; then :
16531 gl_cv_func_frexpl_in_libm
=yes
16533 gl_cv_func_frexpl_in_libm
=no
16535 rm -f core conftest.err conftest.
$ac_objext \
16536 conftest
$ac_exeext conftest.
$ac_ext
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
16541 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
16542 if test $gl_cv_func_frexpl_in_libm = yes; then
16546 if test $gl_cv_func_frexpl_no_libm = yes \
16547 ||
test $gl_cv_func_frexpl_in_libm = yes; then
16549 LIBS
="$LIBS $FREXPL_LIBM"
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16553 $as_echo_n "checking whether frexpl works... " >&6; }
16554 if ${gl_cv_func_frexpl_works+:} false
; then :
16555 $as_echo_n "(cached) " >&6
16558 if test "$cross_compiling" = yes; then :
16561 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
16562 gl_cv_func_frexpl_works
="guessing no";;
16563 *) gl_cv_func_frexpl_works
="guessing yes";;
16567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16572 /* Override the values of <float.h>, like done in float.in.h. */
16573 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16574 # undef LDBL_MIN_EXP
16575 # define LDBL_MIN_EXP (-16381)
16577 #if defined __i386__ && defined __FreeBSD__
16578 # undef LDBL_MIN_EXP
16579 # define LDBL_MIN_EXP (-16381)
16581 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
16582 # undef LDBL_MIN_EXP
16583 # define LDBL_MIN_EXP DBL_MIN_EXP
16585 #if defined __sgi && (LDBL_MANT_DIG >= 106)
16586 # if defined __GNUC__
16587 # undef LDBL_MIN_EXP
16588 # define LDBL_MIN_EXP DBL_MIN_EXP
16595 long double frexpl (long double, int *);
16599 volatile long double x;
16600 /* Test on finite numbers that fails on AIX 5.1. */
16608 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
16609 function returns an invalid (incorrectly normalized) value: it returns
16610 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16611 but the correct result is
16612 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
16616 long double y = frexpl (x, &exp);
16617 if (!(exp == 1 && y == 0.505L))
16620 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
16621 LDBL_MAX_EXP = 16384.
16622 In the loop end test, we test x against Infinity, rather than comparing
16623 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
16626 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16637 /* Test on denormalized numbers. */
16640 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16645 long double y = frexpl (x, &exp);
16646 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16647 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
16648 if (exp != LDBL_MIN_EXP - 1)
16652 /* Test on infinite numbers. */
16656 long double y = frexpl (x, &exp);
16663 if ac_fn_c_try_run
"$LINENO"; then :
16664 gl_cv_func_frexpl_works
=yes
16666 gl_cv_func_frexpl_works
=no
16668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16675 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16678 case "$gl_cv_func_frexpl_works" in
16679 *yes) gl_func_frexpl
=yes ;;
16680 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
16685 if test $gl_func_frexpl = yes; then
16687 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
16691 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
16692 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
16694 FREXPL_LIBM
="$FREXP_LIBM"
16701 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
16710 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
16724 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
16732 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16737 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16751 if test $ac_cv_func_fchdir = no
; then
16755 if test $HAVE_FCHDIR = 0; then
16756 case "$gl_cv_func_open_directory_works" in
16765 if test $REPLACE_FSTAT = 1; then
16774 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
16789 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
16805 if test $ac_cv_func_fstatat = no
; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
16809 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
16810 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
16811 $as_echo_n "(cached) " >&6
16813 if test "$cross_compiling" = yes; then :
16815 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
16816 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
16820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16824 #include <sys/stat.h>
16829 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
16833 if ac_fn_c_try_run
"$LINENO"; then :
16834 gl_cv_func_fstatat_zero_flag
=yes
16836 gl_cv_func_fstatat_zero_flag
=no
16838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
16845 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
16847 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
16849 *) REPLACE_FSTATAT
=1
16850 case $gl_cv_func_fstatat_zero_flag in
16853 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
16861 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
16870 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
16884 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
16896 gl_cv_func_getcwd_path_max
=yes
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
16917 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
16918 if ${gl_cv_func_getcwd_path_max+:} false
; then :
16919 $as_echo_n "(cached) " >&6
16921 # Arrange for deletion of the temporary directory this test creates.
16922 ac_clean_files
="$ac_clean_files confdir3"
16923 if test "$cross_compiling" = yes; then :
16925 aix
*) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
16926 *) gl_cv_func_getcwd_path_max
=no
;;
16929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16933 #include <stdlib.h>
16935 # include <unistd.h>
16937 # include <direct.h>
16939 #include <string.h>
16940 #include <limits.h>
16941 #include <sys/stat.h>
16942 #include <sys/types.h>
16946 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16948 # include <unistd.h>
16950 #include <limits.h>
16951 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16952 # include <sys/param.h>
16954 #if !defined PATH_MAX && defined MAXPATHLEN
16955 # define PATH_MAX MAXPATHLEN
16959 # define PATH_MAX 1024
16961 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16963 # define PATH_MAX 260
16968 # define AT_FDCWD 0
16970 #ifdef ENAMETOOLONG
16971 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
16973 # define is_ENAMETOOLONG(x) 0
16976 /* Use the getcwd function, not any macro. */
16979 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16983 # define S_IRWXU 0700
16986 /* The length of this name must be 8. */
16987 #define DIR_NAME "confdir3"
16988 #define DIR_NAME_LEN 8
16989 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
16991 /* The length of "../". */
16992 #define DOTDOTSLASH_LEN 3
16994 /* Leftover bytes in the buffer, to work around library or OS bugs. */
16995 #define BUF_SLOP 20
17001 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17002 at least not on a local file system. And if we were to start worrying
17003 about remote file systems, we'd have to enable the wrapper function
17004 all of the time, just to be safe. That's not worth the cost. */
17006 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17007 - DIR_NAME_SIZE - BUF_SLOP) \
17009 /* FIXME: Assuming there's a system for which this is true,
17010 this should be done in a compile test. */
17013 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17014 + DIR_NAME_SIZE + BUF_SLOP];
17015 char *cwd = getcwd (buf, PATH_MAX);
17016 size_t initial_cwd_len;
17019 size_t n_chdirs = 0;
17024 cwd_len = initial_cwd_len = strlen (cwd);
17028 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17031 cwd_len += DIR_NAME_SIZE;
17032 /* If mkdir or chdir fails, it could be that this system cannot create
17033 any file with an absolute name longer than PATH_MAX, such as cygwin.
17034 If so, leave fail as 0, because the current working directory can't
17035 be too long for getcwd if it can't even be created. For other
17036 errors, be pessimistic and consider that as a failure, too. */
17037 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17039 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17044 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17048 c = getcwd (buf, PATH_MAX);
17049 if (!c && errno == ENOENT)
17059 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17065 /* Our replacement needs to be able to stat() long ../../paths,
17066 so generate a path larger than PATH_MAX to check,
17067 avoiding the replacement if we can't stat(). */
17068 c = getcwd (buf, cwd_len + 1);
17069 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17076 if (dotdot_max <= cwd_len - initial_cwd_len)
17078 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17080 c = getcwd (buf, cwd_len + 1);
17083 if (! (errno == ERANGE || errno == ENOENT
17084 || is_ENAMETOOLONG (errno)))
17089 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17097 if (c && strlen (c) != cwd_len)
17105 /* Leaving behind such a deep directory is not polite.
17106 So clean up here, right away, even though the driving
17107 shell script would also clean up. */
17111 /* Try rmdir first, in case the chdir failed. */
17113 for (i = 0; i <= n_chdirs; i++)
17115 if (chdir ("..") < 0)
17117 if (rmdir (DIR_NAME) != 0)
17127 if ac_fn_c_try_run
"$LINENO"; then :
17128 gl_cv_func_getcwd_path_max
=yes
17131 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17132 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17133 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17134 *) gl_cv_func_getcwd_path_max
=no
;;
17137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17138 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17144 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17146 case "$gl_cv_func_getcwd_null" in
17164 for ac_func
in getpagesize
17166 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17167 if test "x$ac_cv_func_getpagesize" = xyes
; then :
17168 cat >>confdefs.h
<<_ACEOF
17169 #define HAVE_GETPAGESIZE 1
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17176 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17177 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17178 $as_echo_n "(cached) " >&6
17180 # Remove any remnants of a previous test.
17181 rm -rf confdir-14B---
17182 # Arrange for deletion of the temporary directory this test creates.
17183 ac_clean_files
="$ac_clean_files confdir-14B---"
17184 if test "$cross_compiling" = yes; then :
17185 gl_cv_func_getcwd_abort_bug
=yes
17187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17191 #include <stdlib.h>
17193 # include <unistd.h>
17194 #else /* on Windows with MSVC */
17195 # include <direct.h>
17197 #include <string.h>
17198 #include <sys/stat.h>
17201 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17203 # include <unistd.h>
17205 #include <limits.h>
17206 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17207 # include <sys/param.h>
17209 #if !defined PATH_MAX && defined MAXPATHLEN
17210 # define PATH_MAX MAXPATHLEN
17214 # define PATH_MAX 1024
17216 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17218 # define PATH_MAX 260
17222 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17226 # define S_IRWXU 0700
17229 /* FIXME: skip the run-test altogether on systems without getpagesize. */
17230 #if ! HAVE_GETPAGESIZE
17231 # define getpagesize() 0
17234 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
17235 the 16kB pagesize on ia64 linux. Those conditions make the code below
17236 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
17237 #define TARGET_LEN (5 * 1024)
17243 size_t initial_cwd_len;
17246 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
17247 this relatively expensive and invasive test if that's not true. */
17249 int bug_possible = PATH_MAX < getpagesize ();
17251 int bug_possible = 0;
17253 if (! bug_possible)
17256 cwd = getcwd (NULL, 0);
17260 initial_cwd_len = strlen (cwd);
17265 static char const dir_name[] = "confdir-14B---";
17266 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
17267 / sizeof dir_name);
17269 for (d = 0; d < desired_depth; d++)
17271 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
17273 if (! (errno == ERANGE || errno == ENAMETOOLONG
17274 || errno == ENOENT))
17275 fail = 3; /* Unable to construct deep hierarchy. */
17280 /* If libc has the bug in question, this invocation of getcwd
17281 results in a failed assertion. */
17282 cwd = getcwd (NULL, 0);
17284 fail = 4; /* getcwd didn't assert, but it failed for a long name
17285 where the answer could have been learned. */
17288 /* Call rmdir first, in case the above chdir failed. */
17292 if (chdir ("..") < 0)
17305 if ac_fn_c_try_run
"$LINENO"; then :
17306 gl_cv_func_getcwd_abort_bug
=no
17309 if test $ret -ge 128 ||
test $ret = 4; then
17310 gl_cv_func_getcwd_abort_bug
=yes
17312 gl_cv_func_getcwd_abort_bug
=no
17315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
17322 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
17323 if test $gl_cv_func_getcwd_abort_bug = yes; then :
17331 case "$gl_cv_func_getcwd_path_max" in
17332 "no"|
"no, it has the AIX bug") ;;
17335 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
17339 case "$gl_cv_func_getcwd_path_max" in
17340 "no, but it is partly working")
17342 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
17345 "yes, but with shorter paths")
17347 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
17352 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
17353 ||
test $gl_cv_func_getcwd_posix_signature != yes \
17354 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
17355 ||
test $gl_abort_bug = yes; then
17359 if test $REPLACE_GETCWD = 1; then
17368 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
17378 cat >>confdefs.h
<<_ACEOF
17379 #define GNULIB_GETCWD 1
17394 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17403 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
17410 if test $REPLACE_GETCWD = 1; then
17419 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
17433 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17454 if test $ac_cv_func_getdtablesize = yes &&
17455 test $ac_cv_have_decl_getdtablesize = yes; then
17456 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
17457 # up to an unchangeable hard limit; all other platforms correctly
17458 # require setrlimit before getdtablesize() can report a larger value.
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
17460 $as_echo_n "checking whether getdtablesize works... " >&6; }
17461 if ${gl_cv_func_getdtablesize_works+:} false
; then :
17462 $as_echo_n "(cached) " >&6
17464 if test "$cross_compiling" = yes; then :
17466 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
17467 gl_cv_func_getdtablesize_works
="guessing no" ;;
17468 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
17471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17474 #include <unistd.h>
17478 int size = getdtablesize();
17479 if (dup2 (0, getdtablesize()) != -1)
17481 if (size != getdtablesize())
17488 if ac_fn_c_try_run
"$LINENO"; then :
17489 gl_cv_func_getdtablesize_works
=yes
17491 gl_cv_func_getdtablesize_works
=no
17493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
17500 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
17501 case "$gl_cv_func_getdtablesize_works" in
17503 *) REPLACE_GETDTABLESIZE
=1 ;;
17506 HAVE_GETDTABLESIZE
=0
17509 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
17518 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
17527 GNULIB_GETDTABLESIZE
=1
17533 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
17549 if test $ac_cv_have_decl_getlogin_r = no
; then
17550 HAVE_DECL_GETLOGIN_R
=0
17560 if test $ac_cv_func_getlogin_r = no
; then
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
17566 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
17567 if ${gl_cv_func_getlogin_r_works+:} false
; then :
17568 $as_echo_n "(cached) " >&6
17572 # Guess no on OSF/1.
17573 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
17574 # Guess yes otherwise.
17575 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
17577 if test "$cross_compiling" = yes; then :
17580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17583 #include <stddef.h>
17584 #include <unistd.h>
17585 #if !HAVE_DECL_GETLOGIN_R
17587 # ifdef __cplusplus
17590 int getlogin_r (char *, size_t);
17598 if (getlogin_r (buf, 0) == 0)
17600 if (getlogin_r (buf, 1) == 0)
17605 if ac_fn_c_try_run
"$LINENO"; then :
17606 gl_cv_func_getlogin_r_works
=yes
17609 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
17613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
17620 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
17621 case "$gl_cv_func_getlogin_r_works" in
17623 *) REPLACE_GETLOGIN_R
=1 ;;
17627 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
17636 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
17653 GNULIB_GETLOGIN_R
=1
17659 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
17676 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17678 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
17684 cat >>confdefs.h
<<_ACEOF
17685 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
17687 if test $ac_have_decl = 1; then :
17691 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17693 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
17699 cat >>confdefs.h
<<_ACEOF
17700 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17702 if test $ac_have_decl = 1; then :
17706 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17708 if test "x$ac_cv_have_decl___argv" = xyes
; then :
17714 cat >>confdefs.h
<<_ACEOF
17715 #define HAVE_DECL___ARGV $ac_have_decl
17717 if test $ac_have_decl = 1; then :
17722 # Incur the cost of this test only if none of the above worked.
17723 if test $ac_found = 0; then
17724 # On OpenBSD 5.1, using the global __progname variable appears to be
17725 # the only way to implement getprogname.
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17727 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
17728 if ${gl_cv_var___progname+:} false
; then :
17729 $as_echo_n "(cached) " >&6
17732 gl_cv_var___progname
=
17733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735 extern char *__progname;
17739 return *__progname;
17745 if ac_fn_c_try_link
"$LINENO"; then :
17746 gl_cv_var___progname
=yes
17749 rm -f core conftest.err conftest.
$ac_objext \
17750 conftest
$ac_exeext conftest.
$ac_ext
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
17755 $as_echo "$gl_cv_var___progname" >&6; }
17756 if test "$gl_cv_var___progname" = yes; then
17758 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
17777 gl_gettimeofday_timezone
=void
17778 if test $ac_cv_func_gettimeofday != yes; then
17779 HAVE_GETTIMEOFDAY
=0
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
17785 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
17786 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
17787 $as_echo_n "(cached) " >&6
17789 if test "$cross_compiling" = yes; then :
17790 # When cross-compiling:
17792 # Guess all is fine on glibc systems.
17793 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
17794 # If we don't know, assume the worst.
17795 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
17799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801 #include <string.h>
17802 #include <sys/time.h>
17804 #include <stdlib.h>
17812 struct tm saved_lt;
17814 lt = localtime (&t);
17816 gettimeofday (&tv, NULL);
17817 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
17823 if ac_fn_c_try_run
"$LINENO"; then :
17824 gl_cv_func_gettimeofday_clobber
=no
17826 gl_cv_func_gettimeofday_clobber
=yes
17828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
17834 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
17836 case "$gl_cv_func_gettimeofday_clobber" in
17838 REPLACE_GETTIMEOFDAY
=1
17841 REPLACE_LOCALTIME
=1
17844 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
17850 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
17851 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
17852 $as_echo_n "(cached) " >&6
17854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856 #include <sys/time.h>
17858 int gettimeofday (struct timeval *restrict, void *restrict);
17863 /* glibc uses struct timezone * rather than the POSIX void *
17864 if _GNU_SOURCE is defined. However, since the only portable
17865 use of gettimeofday uses NULL as the second parameter, and
17866 since the glibc definition is actually more typesafe, it is
17867 not worth wrapping this to get a compliant signature. */
17868 int (*f) (struct timeval *restrict, void *restrict)
17871 return !(x | c.tv_sec | c.tv_usec);
17877 if ac_fn_c_try_compile
"$LINENO"; then :
17878 gl_cv_func_gettimeofday_posix_signature
=yes
17880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <sys/time.h>
17883 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
17893 if ac_fn_c_try_compile
"$LINENO"; then :
17894 gl_cv_func_gettimeofday_posix_signature
=almost
17896 gl_cv_func_gettimeofday_posix_signature
=no
17898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
17903 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
17904 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
17905 gl_gettimeofday_timezone
='struct timezone'
17906 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
17907 REPLACE_GETTIMEOFDAY
=1
17909 if test $REPLACE_STRUCT_TIMEVAL = 1; then
17910 REPLACE_GETTIMEOFDAY
=1
17915 cat >>confdefs.h
<<_ACEOF
17916 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
17920 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
17929 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
17932 for ac_header
in sys
/timeb.h
17934 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
17935 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
17936 cat >>confdefs.h
<<_ACEOF
17937 #define HAVE_SYS_TIMEB_H 1
17944 for ac_func
in _ftime
17946 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
17947 if test "x$ac_cv_func__ftime" = xyes
; then :
17948 cat >>confdefs.h
<<_ACEOF
17949 #define HAVE__FTIME 1
17962 GNULIB_GETTIMEOFDAY
=1
17968 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
17973 for ac_header
in glob.h
17975 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
17976 if test "x$ac_cv_header_glob_h" = xyes
; then :
17977 cat >>confdefs.h
<<_ACEOF
17978 #define HAVE_GLOB_H 1
17988 if test -z "$GLOB_H"; then
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
17990 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
17991 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
17992 $as_echo_n "(cached) " >&6
17994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 #include <gnu-versions.h>
17997 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
17999 if ac_fn_c_try_compile
"$LINENO"; then :
18000 gl_cv_gnu_glob_interface_version_1
=yes
18002 gl_cv_gnu_glob_interface_version_1
=no
18004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18007 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18009 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18014 if test -z "$GLOB_H"; then
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18016 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18017 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18018 $as_echo_n "(cached) " >&6
18020 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18021 gl_cv_glob_lists_symlinks
=maybe
18023 # If we can't make a symlink, then we cannot test this issue. Be
18024 # pessimistic about this.
18025 gl_cv_glob_lists_symlinks
=no
18028 if test $gl_cv_glob_lists_symlinks = maybe
; then
18029 if test "$cross_compiling" = yes; then :
18030 gl_cv_glob_lists_symlinks
=no
18032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18035 #include <stddef.h>
18041 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18046 if ac_fn_c_try_run
"$LINENO"; then :
18047 gl_cv_glob_lists_symlinks
=yes
18049 gl_cv_glob_lists_symlinks
=no
18051 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18052 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18058 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18060 if test $gl_cv_glob_lists_symlinks = no
; then
18065 rm -f conf$$
-globtest
18068 if test -n "$GLOB_H"; then
18069 GL_GENERATE_GLOB_H_TRUE
=
18070 GL_GENERATE_GLOB_H_FALSE
='#'
18072 GL_GENERATE_GLOB_H_TRUE
='#'
18073 GL_GENERATE_GLOB_H_FALSE
=
18077 if test -n "$GLOB_H"; then
18086 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18098 if test $ac_cv_header_sys_cdefs_h = yes; then
18127 if test -n "$STDINT_H"; then
18128 PRIPTR_PREFIX
='"l"'
18130 for glpfx
in '' l ll I64
; do
18132 '') gltype1
='int';;
18133 l
) gltype1
='long int';;
18134 ll
) gltype1
='long long int';;
18135 I64
) gltype1
='__int64';;
18137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18138 /* end confdefs.h. */
18139 #include <stdint.h>
18140 extern intptr_t foo;
18141 extern $gltype1 foo;
18150 if ac_fn_c_try_compile
"$LINENO"; then :
18151 PRIPTR_PREFIX
='"'$glpfx'"'
18153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18154 test -n "$PRIPTR_PREFIX" && break
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
18161 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
18162 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
18163 $as_echo_n "(cached) " >&6
18165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18167 /* Work also in C++ mode. */
18168 #define __STDC_LIMIT_MACROS 1
18170 /* Work if build is not clean. */
18171 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18173 #include <limits.h>
18175 #include <stdint.h>
18178 #if defined INT32_MAX && defined INTMAX_MAX
18179 #define CONDITION (INT32_MAX < INTMAX_MAX)
18180 #elif HAVE_LONG_LONG_INT
18181 #define CONDITION (sizeof (int) < sizeof (long long int))
18183 #define CONDITION 0
18185 int test[CONDITION ? 1 : -1];
18194 if ac_fn_c_try_compile
"$LINENO"; then :
18195 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
18197 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
18199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
18202 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
18203 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
18204 INT32_MAX_LT_INTMAX_MAX
=1;
18206 INT32_MAX_LT_INTMAX_MAX
=0;
18210 if test $APPLE_UNIVERSAL_BUILD = 0; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
18213 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
18214 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
18215 $as_echo_n "(cached) " >&6
18217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18219 /* Work also in C++ mode. */
18220 #define __STDC_LIMIT_MACROS 1
18222 /* Work if build is not clean. */
18223 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18225 #include <limits.h>
18227 #include <stdint.h>
18230 #if defined INT64_MAX
18231 #define CONDITION (INT64_MAX == LONG_MAX)
18232 #elif HAVE_LONG_LONG_INT
18233 #define CONDITION (sizeof (long long int) == sizeof (long int))
18235 #define CONDITION 0
18237 int test[CONDITION ? 1 : -1];
18246 if ac_fn_c_try_compile
"$LINENO"; then :
18247 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
18249 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
18251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
18254 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
18255 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
18256 INT64_MAX_EQ_LONG_MAX
=1;
18258 INT64_MAX_EQ_LONG_MAX
=0;
18263 INT64_MAX_EQ_LONG_MAX
=-1
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
18267 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
18268 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
18269 $as_echo_n "(cached) " >&6
18271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273 /* Work also in C++ mode. */
18274 #define __STDC_LIMIT_MACROS 1
18276 /* Work if build is not clean. */
18277 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18279 #include <limits.h>
18281 #include <stdint.h>
18284 #if defined UINT32_MAX && defined UINTMAX_MAX
18285 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
18286 #elif HAVE_LONG_LONG_INT
18287 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
18289 #define CONDITION 0
18291 int test[CONDITION ? 1 : -1];
18300 if ac_fn_c_try_compile
"$LINENO"; then :
18301 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
18303 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
18305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
18308 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
18309 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
18310 UINT32_MAX_LT_UINTMAX_MAX
=1;
18312 UINT32_MAX_LT_UINTMAX_MAX
=0;
18316 if test $APPLE_UNIVERSAL_BUILD = 0; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
18319 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
18320 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
18321 $as_echo_n "(cached) " >&6
18323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 /* Work also in C++ mode. */
18326 #define __STDC_LIMIT_MACROS 1
18328 /* Work if build is not clean. */
18329 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18331 #include <limits.h>
18333 #include <stdint.h>
18336 #if defined UINT64_MAX
18337 #define CONDITION (UINT64_MAX == ULONG_MAX)
18338 #elif HAVE_LONG_LONG_INT
18339 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
18341 #define CONDITION 0
18343 int test[CONDITION ? 1 : -1];
18352 if ac_fn_c_try_compile
"$LINENO"; then :
18353 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
18355 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
18357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
18360 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
18361 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
18362 UINT64_MAX_EQ_ULONG_MAX
=1;
18364 UINT64_MAX_EQ_ULONG_MAX
=0;
18369 UINT64_MAX_EQ_ULONG_MAX
=-1
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
18377 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
18378 if ${gl_cv_func_isnand_no_libm+:} false
; then :
18379 $as_echo_n "(cached) " >&6
18382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18387 # define isnand(x) __builtin_isnan ((double)(x))
18390 # define isnand(x) isnan ((double)(x))
18401 if ac_fn_c_try_link
"$LINENO"; then :
18402 gl_cv_func_isnand_no_libm
=yes
18404 gl_cv_func_isnand_no_libm
=no
18406 rm -f core conftest.err conftest.
$ac_objext \
18407 conftest
$ac_exeext conftest.
$ac_ext
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
18411 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
18413 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
18414 if test $gl_cv_func_isnand_no_libm = yes; then
18416 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
18420 if test $gl_func_isnand_no_libm != yes; then
18429 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
18438 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
18439 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
18440 $as_echo_n "(cached) " >&6
18443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18448 # define isnanl(x) __builtin_isnanl ((long double)(x))
18449 #elif defined isnan
18451 # define isnanl(x) isnan ((long double)(x))
18462 if ac_fn_c_try_link
"$LINENO"; then :
18463 gl_cv_func_isnanl_no_libm
=yes
18465 gl_cv_func_isnanl_no_libm
=no
18467 rm -f core conftest.err conftest.
$ac_objext \
18468 conftest
$ac_exeext conftest.
$ac_ext
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
18472 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
18474 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
18475 if test $gl_func_isnanl_no_libm = yes; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
18481 $as_echo_n "checking whether isnanl works... " >&6; }
18482 if ${gl_cv_func_isnanl_works+:} false
; then :
18483 $as_echo_n "(cached) " >&6
18486 if test "$cross_compiling" = yes; then :
18487 gl_cv_func_isnanl_works
="guessing yes"
18489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18493 #include <limits.h>
18497 # define isnanl(x) __builtin_isnanl ((long double)(x))
18498 #elif defined isnan
18500 # define isnanl(x) isnan ((long double)(x))
18503 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18504 typedef union { unsigned int word[NWORDS]; long double value; }
18505 memory_long_double;
18506 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
18507 runtime type conversion. */
18509 static long double NaNl ()
18512 return zero / zero;
18515 # define NaNl() (0.0L / 0.0L)
18521 if (!isnanl (NaNl ()))
18525 memory_long_double m;
18528 /* The isnanl function should be immune against changes in the sign bit and
18529 in the mantissa bits. The xor operation twiddles a bit that can only be
18530 a sign bit or a mantissa bit (since the exponent never extends to
18533 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
18534 for (i = 0; i < NWORDS; i++)
18536 if (!isnanl (m.value))
18540 #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
18541 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18542 of 'unsigned int' words. */
18543 # ifdef WORDS_BIGENDIAN
18544 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18545 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18546 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
18547 (unsigned int) (mantlo) << 16 \
18550 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18551 { mantlo, manthi, exponent }
18554 static memory_long_double x =
18555 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18556 if (!isnanl (x.value))
18560 /* Signalling NaN. */
18561 static memory_long_double x =
18562 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18563 if (!isnanl (x.value))
18566 /* isnanl should return something even for noncanonical values. */
18567 { /* Pseudo-NaN. */
18568 static memory_long_double x =
18569 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18570 if (isnanl (x.value) && !isnanl (x.value))
18573 { /* Pseudo-Infinity. */
18574 static memory_long_double x =
18575 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18576 if (isnanl (x.value) && !isnanl (x.value))
18579 { /* Pseudo-Zero. */
18580 static memory_long_double x =
18581 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18582 if (isnanl (x.value) && !isnanl (x.value))
18585 { /* Unnormalized number. */
18586 static memory_long_double x =
18587 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18588 if (isnanl (x.value) && !isnanl (x.value))
18591 { /* Pseudo-Denormal. */
18592 static memory_long_double x =
18593 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18594 if (isnanl (x.value) && !isnanl (x.value))
18602 if ac_fn_c_try_run
"$LINENO"; then :
18603 gl_cv_func_isnanl_works
=yes
18605 gl_cv_func_isnanl_works
=no
18607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
18614 $as_echo "$gl_cv_func_isnanl_works" >&6; }
18616 case "$gl_cv_func_isnanl_works" in
18618 *) gl_func_isnanl_no_libm
=no
;;
18621 if test $gl_func_isnanl_no_libm = yes; then
18623 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
18627 if test $gl_func_isnanl_no_libm != yes; then
18636 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
18642 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
18643 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
18644 $as_echo_n "(cached) " >&6
18647 if test "$cross_compiling" = yes; then :
18649 gl_cv_cc_long_double_expbit0
="unknown"
18652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18656 #include <stddef.h>
18658 #include <string.h>
18660 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18661 typedef union { long double value; unsigned int word[NWORDS]; }
18662 memory_long_double;
18663 static unsigned int ored_words[NWORDS];
18664 static unsigned int anded_words[NWORDS];
18665 static void add_to_ored_words (long double x)
18667 memory_long_double m;
18669 /* Clear it first, in case
18670 sizeof (long double) < sizeof (memory_long_double). */
18671 memset (&m, 0, sizeof (memory_long_double));
18673 for (i = 0; i < NWORDS; i++)
18675 ored_words[i] |= m.word[i];
18676 anded_words[i] &= m.word[i];
18682 FILE *fp = fopen ("conftest.out", "w");
18685 for (j = 0; j < NWORDS; j++)
18686 anded_words[j] = ~ (unsigned int) 0;
18687 add_to_ored_words (0.25L);
18688 add_to_ored_words (0.5L);
18689 add_to_ored_words (1.0L);
18690 add_to_ored_words (2.0L);
18691 add_to_ored_words (4.0L);
18692 /* Remove bits that are common (e.g. if representation of the first mantissa
18693 bit is explicit). */
18694 for (j = 0; j < NWORDS; j++)
18695 ored_words[j] &= ~anded_words[j];
18696 /* Now find the nonzero word. */
18697 for (j = 0; j < NWORDS; j++)
18698 if (ored_words[j] != 0)
18703 for (i = j + 1; i < NWORDS; i++)
18704 if (ored_words[i] != 0)
18706 fprintf (fp, "unknown");
18707 return (fclose (fp) != 0);
18710 if ((ored_words[j] >> i) & 1)
18712 fprintf (fp, "word %d bit %d", (int) j, (int) i);
18713 return (fclose (fp) != 0);
18716 fprintf (fp, "unknown");
18717 return (fclose (fp) != 0);
18721 if ac_fn_c_try_run
"$LINENO"; then :
18722 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
18724 gl_cv_cc_long_double_expbit0
="unknown"
18726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18727 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
18734 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
18735 case "$gl_cv_cc_long_double_expbit0" in
18737 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
18738 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
18740 cat >>confdefs.h
<<_ACEOF
18741 #define LDBL_EXPBIT0_WORD $word
18745 cat >>confdefs.h
<<_ACEOF
18746 #define LDBL_EXPBIT0_BIT $bit
18771 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18782 if test $ac_cv_func_lstat = yes; then
18784 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18793 if test $REPLACE_LSTAT = 1; then
18802 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
18817 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
18824 if test $gl_cv_func_malloc_posix = yes; then
18826 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18832 if test $REPLACE_MALLOC = 1; then
18841 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18849 GNULIB_MALLOC_POSIX
=1
18855 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18880 if test $gl_cv_have_include_next = yes; then
18881 gl_cv_next_math_h
='<'math.h
'>'
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
18884 $as_echo_n "checking absolute name of <math.h>... " >&6; }
18885 if ${gl_cv_next_math_h+:} false
; then :
18886 $as_echo_n "(cached) " >&6
18889 if test $ac_cv_header_math_h = yes; then
18894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18899 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18900 *) gl_absname_cpp
="$ac_cpp" ;;
18905 gl_dirsep_regex
='[/\\]'
18908 gl_dirsep_regex
='\/'
18911 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18912 gl_header_literal_regex
=`echo 'math.h' \
18913 | sed -e "$gl_make_literal_regex_sed"`
18914 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18921 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18922 sed -n "$gl_absolute_header_sed"`
18924 gl_header
=$gl_cv_absolute_math_h
18925 gl_cv_next_math_h
='"'$gl_header'"'
18927 gl_cv_next_math_h
='<'math.h
'>'
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
18933 $as_echo "$gl_cv_next_math_h" >&6; }
18935 NEXT_MATH_H
=$gl_cv_next_math_h
18937 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18939 gl_next_as_first_directive
='<'math.h
'>'
18941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18942 gl_next_as_first_directive
=$gl_cv_next_math_h
18944 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
18951 $as_echo_n "checking whether NAN macro works... " >&6; }
18952 if ${gl_cv_header_math_nan_works+:} false
; then :
18953 $as_echo_n "(cached) " >&6
18955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18961 /* Solaris 10 has a broken definition of NAN. Other platforms
18962 fail to provide NAN, or provide it only in C99 mode; this
18963 test only needs to fail when NAN is provided but wrong. */
18973 if ac_fn_c_try_compile
"$LINENO"; then :
18974 gl_cv_header_math_nan_works
=yes
18976 gl_cv_header_math_nan_works
=no
18978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
18981 $as_echo "$gl_cv_header_math_nan_works" >&6; }
18982 if test $gl_cv_header_math_nan_works = no
; then
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
18986 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
18987 if ${gl_cv_header_math_huge_val_works+:} false
; then :
18988 $as_echo_n "(cached) " >&6
18990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18996 /* Solaris 10 has a broken definition of HUGE_VAL. */
18997 double d = HUGE_VAL;
19003 if ac_fn_c_try_compile
"$LINENO"; then :
19004 gl_cv_header_math_huge_val_works
=yes
19006 gl_cv_header_math_huge_val_works
=no
19008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19011 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19012 if test $gl_cv_header_math_huge_val_works = no
; then
19017 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
19018 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19020 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19021 if eval \
${$as_gl_Symbol+:} false
; then :
19022 $as_echo_n "(cached) " >&6
19024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19036 if ac_fn_c_try_compile
"$LINENO"; then :
19037 eval "$as_gl_Symbol=yes"
19039 eval "$as_gl_Symbol=no"
19041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19043 eval ac_res
=\$
$as_gl_Symbol
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19045 $as_echo "$ac_res" >&6; }
19046 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
19047 cat >>confdefs.h
<<_ACEOF
19048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19051 eval ac_cv_have_decl_
$gl_func=yes
19078 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19083 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19084 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19085 $as_echo_n "(cached) " >&6
19089 # Guess no on AIX and OSF/1.
19090 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19091 # Guess yes otherwise.
19092 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19094 if test $LOCALE_JA != none
; then
19095 if test "$cross_compiling" = yes; then :
19098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19101 #include <locale.h>
19102 #include <string.h>
19103 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19105 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19106 included before <wchar.h>. */
19107 #include <stddef.h>
19113 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19115 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19119 memset (&state, '\0', sizeof (mbstate_t));
19120 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19121 if (mbsinit (&state))
19127 if ac_fn_c_try_run
"$LINENO"; then :
19128 gl_cv_func_mbrtowc_incomplete_state
=yes
19130 gl_cv_func_mbrtowc_incomplete_state
=no
19132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19140 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19146 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19147 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19148 $as_echo_n "(cached) " >&6
19152 # Guess no on Solaris 8.
19153 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19154 # Guess yes otherwise.
19155 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19157 if test $LOCALE_ZH_CN != none
; then
19158 if test "$cross_compiling" = yes; then :
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19164 #include <locale.h>
19165 #include <stdlib.h>
19166 #include <string.h>
19167 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19169 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19170 included before <wchar.h>. */
19171 #include <stddef.h>
19177 /* This fails on Solaris 8:
19178 mbrtowc returns 2, and sets wc to 0x00F0.
19179 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19180 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19182 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19186 memset (&state, '\0', sizeof (mbstate_t));
19187 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19188 && mbtowc (&wc, input + 3, 6) == 4)
19194 if ac_fn_c_try_run
"$LINENO"; then :
19195 gl_cv_func_mbrtowc_sanitycheck
=yes
19197 gl_cv_func_mbrtowc_sanitycheck
=no
19199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19207 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19209 REPLACE_MBSTATE_T
=0
19210 case "$gl_cv_func_mbrtowc_incomplete_state" in
19212 *) REPLACE_MBSTATE_T
=1 ;;
19214 case "$gl_cv_func_mbrtowc_sanitycheck" in
19216 *) REPLACE_MBSTATE_T
=1 ;;
19219 REPLACE_MBSTATE_T
=1
19230 if test $ac_cv_func_mbrtowc = no
; then
19232 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
19233 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19235 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19236 included before <wchar.h>. */
19237 #include <stddef.h>
19243 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
19249 cat >>confdefs.h
<<_ACEOF
19250 #define HAVE_DECL_MBRTOWC $ac_have_decl
19253 if test $ac_cv_have_decl_mbrtowc = yes; then
19257 if test $REPLACE_MBSTATE_T = 1; then
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19264 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19265 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
19266 $as_echo_n "(cached) " >&6
19270 # Guess no on Solaris.
19271 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
19272 # Guess yes otherwise.
19273 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
19275 if test $LOCALE_FR_UTF8 != none
; then
19276 if test "$cross_compiling" = yes; then :
19279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19282 #include <locale.h>
19283 #include <stdlib.h>
19284 #include <string.h>
19285 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19287 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19288 included before <wchar.h>. */
19289 #include <stddef.h>
19297 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19299 char input[] = "\303\237er";
19304 memset (&state, '\0', sizeof (mbstate_t));
19305 wc = (wchar_t) 0xBADFACE;
19306 ret = mbrtowc (&wc, input, 5, &state);
19309 if (!mbsinit (&state))
19312 memset (&state, '\0', sizeof (mbstate_t));
19313 ret = mbrtowc (NULL, input, 5, &state);
19314 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19316 if (!mbsinit (&state))
19322 if ac_fn_c_try_run
"$LINENO"; then :
19323 gl_cv_func_mbrtowc_null_arg1
=yes
19325 gl_cv_func_mbrtowc_null_arg1
=no
19327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19335 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19341 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19342 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
19343 $as_echo_n "(cached) " >&6
19347 # Guess no on OSF/1.
19348 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
19349 # Guess yes otherwise.
19350 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
19352 if test $LOCALE_FR_UTF8 != none
; then
19353 if test "$cross_compiling" = yes; then :
19356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19359 #include <locale.h>
19360 #include <string.h>
19361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19363 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19364 included before <wchar.h>. */
19365 #include <stddef.h>
19371 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19377 memset (&state, '\0', sizeof (mbstate_t));
19378 wc = (wchar_t) 0xBADFACE;
19379 mbrtowc (&wc, NULL, 5, &state);
19380 /* Check that wc was not modified. */
19381 if (wc != (wchar_t) 0xBADFACE)
19387 if ac_fn_c_try_run
"$LINENO"; then :
19388 gl_cv_func_mbrtowc_null_arg2
=yes
19390 gl_cv_func_mbrtowc_null_arg2
=no
19392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19400 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19408 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19409 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
19410 $as_echo_n "(cached) " >&6
19414 # Guess no on HP-UX, Solaris, native Windows.
19415 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
19416 # Guess yes otherwise.
19417 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
19419 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
19420 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
19421 if test "$cross_compiling" = yes; then :
19424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19427 #include <locale.h>
19428 #include <string.h>
19429 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19431 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19432 included before <wchar.h>. */
19433 #include <stddef.h>
19440 int found_some_locale = 0;
19441 /* This fails on Solaris. */
19442 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19444 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19448 memset (&state, '\0', sizeof (mbstate_t));
19449 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19452 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19455 found_some_locale = 1;
19457 /* This fails on HP-UX 11.11. */
19458 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19460 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19464 memset (&state, '\0', sizeof (mbstate_t));
19465 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19468 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19471 found_some_locale = 1;
19473 /* This fails on native Windows. */
19474 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19476 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19480 memset (&state, '\0', sizeof (mbstate_t));
19481 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19484 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19487 found_some_locale = 1;
19489 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19491 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19495 memset (&state, '\0', sizeof (mbstate_t));
19496 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19499 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19502 found_some_locale = 1;
19504 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19506 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19510 memset (&state, '\0', sizeof (mbstate_t));
19511 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19514 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19517 found_some_locale = 1;
19519 return (found_some_locale ? result : 77);
19522 if ac_fn_c_try_run
"$LINENO"; then :
19523 gl_cv_func_mbrtowc_retval
=yes
19525 if test $?
!= 77; then
19526 gl_cv_func_mbrtowc_retval
=no
19530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19538 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19544 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19545 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
19546 $as_echo_n "(cached) " >&6
19550 # Guess no on Solaris 8 and 9.
19551 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
19552 # Guess yes otherwise.
19553 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
19555 if test $LOCALE_ZH_CN != none
; then
19556 if test "$cross_compiling" = yes; then :
19559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19562 #include <locale.h>
19563 #include <string.h>
19564 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19566 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19567 included before <wchar.h>. */
19568 #include <stddef.h>
19574 /* This fails on Solaris 8 and 9. */
19575 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19580 memset (&state, '\0', sizeof (mbstate_t));
19581 if (mbrtowc (&wc, "", 1, &state) != 0)
19587 if ac_fn_c_try_run
"$LINENO"; then :
19588 gl_cv_func_mbrtowc_nul_retval
=yes
19590 gl_cv_func_mbrtowc_nul_retval
=no
19592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19600 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
19605 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
19606 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
19607 $as_echo_n "(cached) " >&6
19611 # Guess no on AIX and glibc systems.
19613 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
19614 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
19616 if test "$cross_compiling" = yes; then :
19619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19624 static mbstate_t mbs;
19628 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
19631 if ac_fn_c_try_run
"$LINENO"; then :
19632 gl_cv_func_mbrtowc_empty_input
=yes
19634 gl_cv_func_mbrtowc_empty_input
=no
19636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19637 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
19643 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
19647 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
19648 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
19649 $as_echo_n "(cached) " >&6
19652 gl_cv_C_locale_sans_EILSEQ
="guessing no"
19654 if test "$cross_compiling" = yes; then :
19657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <limits.h>
19660 #include <locale.h>
19668 char *locale = setlocale (LC_ALL, "C");
19671 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
19675 mbstate_t mbs = { 0, };
19676 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
19686 if ac_fn_c_try_run
"$LINENO"; then :
19687 gl_cv_C_locale_sans_EILSEQ
=yes
19689 gl_cv_C_locale_sans_EILSEQ
=no
19691 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19692 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
19697 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
19699 case "$gl_cv_func_mbrtowc_null_arg1" in
19702 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19707 case "$gl_cv_func_mbrtowc_null_arg2" in
19710 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19715 case "$gl_cv_func_mbrtowc_retval" in
19718 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19723 case "$gl_cv_func_mbrtowc_nul_retval" in
19726 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19731 case "$gl_cv_func_mbrtowc_empty_input" in
19734 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
19739 case $gl_cv_C_locale_sans_EILSEQ in
19742 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
19750 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
19759 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
19776 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19803 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19808 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19809 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19810 $as_echo_n "(cached) " >&6
19814 # Guess no on AIX and OSF/1.
19815 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19816 # Guess yes otherwise.
19817 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19819 if test $LOCALE_JA != none
; then
19820 if test "$cross_compiling" = yes; then :
19823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h. */
19826 #include <locale.h>
19827 #include <string.h>
19828 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19830 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19831 included before <wchar.h>. */
19832 #include <stddef.h>
19838 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19840 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19844 memset (&state, '\0', sizeof (mbstate_t));
19845 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19846 if (mbsinit (&state))
19852 if ac_fn_c_try_run
"$LINENO"; then :
19853 gl_cv_func_mbrtowc_incomplete_state
=yes
19855 gl_cv_func_mbrtowc_incomplete_state
=no
19857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19865 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19871 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19872 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19873 $as_echo_n "(cached) " >&6
19877 # Guess no on Solaris 8.
19878 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19879 # Guess yes otherwise.
19880 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19882 if test $LOCALE_ZH_CN != none
; then
19883 if test "$cross_compiling" = yes; then :
19886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19887 /* end confdefs.h. */
19889 #include <locale.h>
19890 #include <stdlib.h>
19891 #include <string.h>
19892 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19894 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19895 included before <wchar.h>. */
19896 #include <stddef.h>
19902 /* This fails on Solaris 8:
19903 mbrtowc returns 2, and sets wc to 0x00F0.
19904 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19905 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19907 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19911 memset (&state, '\0', sizeof (mbstate_t));
19912 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19913 && mbtowc (&wc, input + 3, 6) == 4)
19919 if ac_fn_c_try_run
"$LINENO"; then :
19920 gl_cv_func_mbrtowc_sanitycheck
=yes
19922 gl_cv_func_mbrtowc_sanitycheck
=no
19924 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19925 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19932 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19934 REPLACE_MBSTATE_T
=0
19935 case "$gl_cv_func_mbrtowc_incomplete_state" in
19937 *) REPLACE_MBSTATE_T
=1 ;;
19939 case "$gl_cv_func_mbrtowc_sanitycheck" in
19941 *) REPLACE_MBSTATE_T
=1 ;;
19944 REPLACE_MBSTATE_T
=1
19955 if test $ac_cv_func_mbsinit = no
; then
19957 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19958 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19960 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19961 included before <wchar.h>. */
19962 #include <stddef.h>
19968 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
19974 cat >>confdefs.h
<<_ACEOF
19975 #define HAVE_DECL_MBSINIT $ac_have_decl
19978 if test $ac_cv_have_decl_mbsinit = yes; then
19982 if test $REPLACE_MBSTATE_T = 1; then
19986 mingw
*) REPLACE_MBSINIT
=1 ;;
19991 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
20000 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
20017 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20043 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20048 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20049 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20050 $as_echo_n "(cached) " >&6
20054 # Guess no on AIX and OSF/1.
20055 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20056 # Guess yes otherwise.
20057 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20059 if test $LOCALE_JA != none
; then
20060 if test "$cross_compiling" = yes; then :
20063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20066 #include <locale.h>
20067 #include <string.h>
20068 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20070 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20071 included before <wchar.h>. */
20072 #include <stddef.h>
20078 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20080 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20084 memset (&state, '\0', sizeof (mbstate_t));
20085 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20086 if (mbsinit (&state))
20092 if ac_fn_c_try_run
"$LINENO"; then :
20093 gl_cv_func_mbrtowc_incomplete_state
=yes
20095 gl_cv_func_mbrtowc_incomplete_state
=no
20097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20105 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20111 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20112 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20113 $as_echo_n "(cached) " >&6
20117 # Guess no on Solaris 8.
20118 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20119 # Guess yes otherwise.
20120 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20122 if test $LOCALE_ZH_CN != none
; then
20123 if test "$cross_compiling" = yes; then :
20126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20129 #include <locale.h>
20130 #include <stdlib.h>
20131 #include <string.h>
20132 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20134 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20135 included before <wchar.h>. */
20136 #include <stddef.h>
20142 /* This fails on Solaris 8:
20143 mbrtowc returns 2, and sets wc to 0x00F0.
20144 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20145 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20147 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20151 memset (&state, '\0', sizeof (mbstate_t));
20152 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20153 && mbtowc (&wc, input + 3, 6) == 4)
20159 if ac_fn_c_try_run
"$LINENO"; then :
20160 gl_cv_func_mbrtowc_sanitycheck
=yes
20162 gl_cv_func_mbrtowc_sanitycheck
=no
20164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20172 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20174 REPLACE_MBSTATE_T
=0
20175 case "$gl_cv_func_mbrtowc_incomplete_state" in
20177 *) REPLACE_MBSTATE_T
=1 ;;
20179 case "$gl_cv_func_mbrtowc_sanitycheck" in
20181 *) REPLACE_MBSTATE_T
=1 ;;
20184 REPLACE_MBSTATE_T
=1
20195 if test $ac_cv_func_mbsrtowcs = no
; then
20197 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
20198 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20200 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20201 included before <wchar.h>. */
20202 #include <stddef.h>
20208 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
20214 cat >>confdefs.h
<<_ACEOF
20215 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
20218 if test $ac_cv_have_decl_mbsrtowcs = yes; then
20219 REPLACE_MBSRTOWCS
=1
20222 if test $REPLACE_MBSTATE_T = 1; then
20223 REPLACE_MBSRTOWCS
=1
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
20232 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
20233 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
20234 $as_echo_n "(cached) " >&6
20238 # Guess no on HP-UX, Solaris, mingw.
20239 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
20240 # Guess yes otherwise.
20241 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
20243 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
20244 if test "$cross_compiling" = yes; then :
20247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20250 #include <locale.h>
20251 #include <string.h>
20252 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20254 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20255 included before <wchar.h>. */
20256 #include <stddef.h>
20263 /* Test whether the function supports a NULL destination argument.
20264 This fails on native Windows. */
20265 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
20267 const char input[] = "\337er";
20268 const char *src = input;
20271 memset (&state, '\0', sizeof (mbstate_t));
20272 if (mbsrtowcs (NULL, &src, 1, &state) != 3
20276 /* Test whether the function works when started with a conversion state
20277 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
20278 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20280 const char input[] = "B\303\274\303\237er";
20283 memset (&state, '\0', sizeof (mbstate_t));
20284 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20285 if (!mbsinit (&state))
20287 const char *src = input + 2;
20288 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20292 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20294 const char input[] = "<\306\374\313\334\270\354>";
20297 memset (&state, '\0', sizeof (mbstate_t));
20298 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
20299 if (!mbsinit (&state))
20301 const char *src = input + 4;
20302 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
20306 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20308 const char input[] = "B\250\271\201\060\211\070er";
20311 memset (&state, '\0', sizeof (mbstate_t));
20312 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20313 if (!mbsinit (&state))
20315 const char *src = input + 2;
20316 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20323 if ac_fn_c_try_run
"$LINENO"; then :
20324 gl_cv_func_mbsrtowcs_works
=yes
20326 gl_cv_func_mbsrtowcs_works
=no
20328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
20336 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
20338 case "$gl_cv_func_mbsrtowcs_works" in
20340 *) REPLACE_MBSRTOWCS
=1 ;;
20345 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
20354 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
20364 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
20381 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
20386 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
20395 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
20398 for ac_header
in bp-sym.h
20400 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20401 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
20402 cat >>confdefs.h
<<_ACEOF
20403 #define HAVE_BP_SYM_H 1
20423 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20429 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
20431 $as_echo_n "checking whether memmem works in linear time... " >&6; }
20432 if ${gl_cv_func_memmem_works_fast+:} false
; then :
20433 $as_echo_n "(cached) " >&6
20435 if test "$cross_compiling" = yes; then :
20436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20439 #include <features.h>
20440 #ifdef __GNU_LIBRARY__
20441 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
20442 && !defined __UCLIBC__
20447 #include <cygwin/version.h>
20448 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
20454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20455 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20456 gl_cv_func_memmem_works_fast
="guessing yes"
20458 gl_cv_func_memmem_works_fast
="guessing no"
20464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20467 #include <signal.h> /* for signal */
20468 #include <string.h> /* for memmem */
20469 #include <stdlib.h> /* for malloc */
20470 #include <unistd.h> /* for alarm */
20471 static void quit (int sig) { _exit (sig + 128); }
20478 size_t m = 1000000;
20479 char *haystack = (char *) malloc (2 * m + 1);
20480 char *needle = (char *) malloc (m + 1);
20481 /* Failure to compile this test due to missing alarm is okay,
20482 since all such platforms (mingw) also lack memmem. */
20483 signal (SIGALRM, quit);
20485 /* Check for quadratic performance. */
20486 if (haystack && needle)
20488 memset (haystack, 'A', 2 * m);
20489 haystack[2 * m] = 'B';
20490 memset (needle, 'A', m);
20492 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
20501 if ac_fn_c_try_run
"$LINENO"; then :
20502 gl_cv_func_memmem_works_fast
=yes
20504 gl_cv_func_memmem_works_fast
=no
20506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
20513 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
20514 case "$gl_cv_func_memmem_works_fast" in
20522 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
20531 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
20538 for ac_func
in memmem
20540 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
20541 if test "x$ac_cv_func_memmem" = xyes
; then :
20542 cat >>confdefs.h
<<_ACEOF
20543 #define HAVE_MEMMEM 1
20549 if test $ac_cv_func_memmem = yes; then
20561 if test $ac_cv_have_decl_memmem = no
; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20565 $as_echo_n "checking whether memmem works... " >&6; }
20566 if ${gl_cv_func_memmem_works_always+:} false
; then :
20567 $as_echo_n "(cached) " >&6
20569 if test "$cross_compiling" = yes; then :
20570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20573 #ifdef __GNU_LIBRARY__
20574 #include <features.h>
20575 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20576 || __GLIBC_MINOR__ > 12)) \
20577 || (__GLIBC__ > 2)) \
20578 || defined __UCLIBC__
20581 #elif defined __CYGWIN__
20582 #include <cygwin/version.h>
20583 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20592 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20593 gl_cv_func_memmem_works_always
="guessing yes"
20595 gl_cv_func_memmem_works_always
="guessing no"
20601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h. */
20604 #include <string.h> /* for memmem */
20605 #define P "_EF_BF_BD"
20606 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20607 #define NEEDLE P P P P P
20614 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20616 /* Check for empty needle behavior. */
20618 const char *haystack = "AAA";
20619 if (memmem (haystack, 3, NULL, 0) != haystack)
20628 if ac_fn_c_try_run
"$LINENO"; then :
20629 gl_cv_func_memmem_works_always
=yes
20631 gl_cv_func_memmem_works_always
=no
20633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20640 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20641 case "$gl_cv_func_memmem_works_always" in
20650 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
20659 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
20673 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
20683 for ac_func
in mempcpy
20685 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20686 if test "x$ac_cv_func_mempcpy" = xyes
; then :
20687 cat >>confdefs.h
<<_ACEOF
20688 #define HAVE_MEMPCPY 1
20694 if test $ac_cv_func_mempcpy = no
; then
20698 if test $HAVE_MEMPCPY = 0; then
20707 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
20724 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20739 if test $ac_cv_have_decl_memrchr = no
; then
20740 HAVE_DECL_MEMRCHR
=0
20743 for ac_func
in memrchr
20745 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
20746 if test "x$ac_cv_func_memrchr" = xyes
; then :
20747 cat >>confdefs.h
<<_ACEOF
20748 #define HAVE_MEMRCHR 1
20755 if test $ac_cv_func_memrchr = no
; then
20764 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
20779 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
20792 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
20793 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
20794 $as_echo_n "(cached) " >&6
20796 rm -rf conftest.dir
20797 if test "$cross_compiling" = yes; then :
20799 # Guess yes on glibc systems.
20800 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
20801 # If we don't know, assume the worst.
20802 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
20806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h. */
20809 # include <sys/types.h>
20810 # include <sys/stat.h>
20815 return mkdir ("conftest.dir/", 0700);
20820 if ac_fn_c_try_run
"$LINENO"; then :
20821 gl_cv_func_mkdir_trailing_slash_works
=yes
20823 gl_cv_func_mkdir_trailing_slash_works
=no
20825 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20826 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20829 rm -rf conftest.dir
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
20834 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
20835 case "$gl_cv_func_mkdir_trailing_slash_works" in
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
20843 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
20844 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
20845 $as_echo_n "(cached) " >&6
20847 rm -rf conftest.dir
20848 if test "$cross_compiling" = yes; then :
20850 # Guess yes on glibc systems.
20851 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
20852 # If we don't know, assume the worst.
20853 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
20857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20858 /* end confdefs.h. */
20860 # include <sys/types.h>
20861 # include <sys/stat.h>
20866 return !mkdir ("conftest.dir/./", 0700);
20871 if ac_fn_c_try_run
"$LINENO"; then :
20872 gl_cv_func_mkdir_trailing_dot_works
=yes
20874 gl_cv_func_mkdir_trailing_dot_works
=no
20876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20880 rm -rf conftest.dir
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
20885 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
20886 case "$gl_cv_func_mkdir_trailing_dot_works" in
20891 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
20896 if test $REPLACE_MKDIR = 1; then
20905 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
20918 if test $ac_cv_func_mkstemp = yes; then
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
20920 $as_echo_n "checking for working mkstemp... " >&6; }
20921 if ${gl_cv_func_working_mkstemp+:} false
; then :
20922 $as_echo_n "(cached) " >&6
20925 mkdir conftest.mkstemp
20926 if test "$cross_compiling" = yes; then :
20928 # Guess yes on glibc systems.
20929 *-gnu*) gl_cv_func_working_mkstemp
="guessing yes" ;;
20930 # If we don't know, assume the worst.
20931 *) gl_cv_func_working_mkstemp
="guessing no" ;;
20935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20937 $ac_includes_default
20943 off_t large = (off_t) 4294967295u;
20945 large = 2147483647;
20947 for (i = 0; i < 70; i++)
20949 char templ[] = "conftest.mkstemp/coXXXXXX";
20950 int (*mkstemp_function) (char *) = mkstemp;
20951 int fd = mkstemp_function (templ);
20957 if (lseek (fd, large, SEEK_SET) != large)
20959 if (fstat (fd, &st) < 0)
20961 else if (st.st_mode & 0077)
20972 if ac_fn_c_try_run
"$LINENO"; then :
20973 gl_cv_func_working_mkstemp
=yes
20975 gl_cv_func_working_mkstemp
=no
20977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20981 rm -rf conftest.mkstemp
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
20985 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
20986 case "$gl_cv_func_working_mkstemp" in
20996 if test $HAVE_MKSTEMP = 0 ||
test $REPLACE_MKSTEMP = 1; then
21005 gl_LIBOBJS
="$gl_LIBOBJS mkstemp.$ac_objext"
21021 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
21026 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21035 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
21039 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21048 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
21067 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
21068 if ${gl_cv_func_open_slash+:} false
; then :
21069 $as_echo_n "(cached) " >&6
21071 # Assume that if we have lstat, we can also check symlinks.
21072 if test $ac_cv_func_lstat = yes; then
21074 ln -s conftest.tmp conftest.lnk
21076 if test "$cross_compiling" = yes; then :
21079 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
21080 gl_cv_func_open_slash
="guessing no" ;;
21082 gl_cv_func_open_slash
="guessing yes" ;;
21086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h. */
21091 # include <unistd.h>
21097 if (open ("conftest.lnk/", O_RDONLY) != -1)
21100 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
21105 if ac_fn_c_try_run
"$LINENO"; then :
21106 gl_cv_func_open_slash
=yes
21108 gl_cv_func_open_slash
=no
21110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21111 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21114 rm -f conftest.sl conftest.tmp conftest.lnk
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
21118 $as_echo "$gl_cv_func_open_slash" >&6; }
21119 case "$gl_cv_func_open_slash" in
21122 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
21130 if test $REPLACE_OPEN = 0; then
21140 if test $ac_cv_func_fchdir = no
; then
21144 if test $HAVE_FCHDIR = 0; then
21151 if test $REPLACE_OPEN = 1; then
21160 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
21178 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
21193 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
21197 # Solaris 9 has *at functions, but uniformly mishandles trailing
21198 # slash in all of them.
21206 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
21215 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
21224 cat >>confdefs.h
<<_ACEOF
21225 #define GNULIB_OPENAT 1
21239 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
21246 for ac_func
in opendir
21248 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
21249 if test "x$ac_cv_func_opendir" = xyes
; then :
21250 cat >>confdefs.h
<<_ACEOF
21251 #define HAVE_OPENDIR 1
21257 if test $ac_cv_func_opendir = no
; then
21270 if test $ac_cv_func_fchdir = no
; then
21274 if test $HAVE_FCHDIR = 0; then
21275 if test $HAVE_OPENDIR = 1; then
21280 case $host_os,$HAVE_OPENDIR in
21282 REPLACE_OPENDIR
=1;;
21285 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
21294 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
21308 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
21325 for ac_func
in rawmemchr
21327 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
21328 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
21329 cat >>confdefs.h
<<_ACEOF
21330 #define HAVE_RAWMEMCHR 1
21336 if test $ac_cv_func_rawmemchr = no
; then
21340 if test $HAVE_RAWMEMCHR = 0; then
21349 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
21364 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
21371 for ac_func
in readdir
21373 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
21374 if test "x$ac_cv_func_readdir" = xyes
; then :
21375 cat >>confdefs.h
<<_ACEOF
21376 #define HAVE_READDIR 1
21382 if test $ac_cv_func_readdir = no
; then
21386 if test $HAVE_READDIR = 0; then
21395 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
21409 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
21422 if test $ac_cv_func_readlink = no
; then
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21426 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21427 if ${gl_cv_decl_readlink_works+:} false
; then :
21428 $as_echo_n "(cached) " >&6
21430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21431 /* end confdefs.h. */
21432 #include <unistd.h>
21433 /* Cause compilation failure if original declaration has wrong type. */
21434 ssize_t readlink (const char *, char *, size_t);
21443 if ac_fn_c_try_compile
"$LINENO"; then :
21444 gl_cv_decl_readlink_works
=yes
21446 gl_cv_decl_readlink_works
=no
21448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21451 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21453 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21454 if ${gl_cv_func_readlink_works+:} false
; then :
21455 $as_echo_n "(cached) " >&6
21457 # We have readlink, so assume ln -s works.
21458 ln -s conftest.no-such conftest.link
21459 ln -s conftest.link conftest.lnk2
21460 if test "$cross_compiling" = yes; then :
21462 # Guess yes on glibc systems.
21463 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21464 # If we don't know, assume the worst.
21465 *) gl_cv_func_readlink_works
="guessing no" ;;
21469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21471 #include <unistd.h>
21477 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21482 if ac_fn_c_try_run
"$LINENO"; then :
21483 gl_cv_func_readlink_works
=yes
21485 gl_cv_func_readlink_works
=no
21487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21488 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21491 rm -f conftest.link conftest.lnk2
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21494 $as_echo "$gl_cv_func_readlink_works" >&6; }
21495 case "$gl_cv_func_readlink_works" in
21497 if test "$gl_cv_decl_readlink_works" != yes; then
21503 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21510 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21519 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21536 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
21543 if test $gl_cv_func_malloc_posix = yes; then
21545 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
21551 if test $REPLACE_REALLOC = 1; then
21560 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
21568 GNULIB_REALLOC_POSIX
=1
21574 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
21590 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
21591 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
21592 $as_echo_n "(cached) " >&6
21594 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21595 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
21596 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21597 # Assume that if we have lstat, we can also check symlinks.
21598 if test $ac_cv_func_lstat = yes; then
21599 ln -s conftest.f conftest.lnk
21601 if test "$cross_compiling" = yes; then :
21603 # Guess yes on glibc systems.
21604 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
21605 # If we don't know, assume the worst.
21606 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
21610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21613 # include <stdio.h>
21614 # include <stdlib.h>
21620 if (rename ("conftest.f1", "conftest.f2/") == 0)
21622 if (rename ("conftest.d1", "conftest.d2/") != 0)
21625 if (rename ("conftest.f", "conftest.lnk/") == 0)
21634 if ac_fn_c_try_run
"$LINENO"; then :
21635 gl_cv_func_rename_slash_dst_works
=yes
21637 gl_cv_func_rename_slash_dst_works
=no
21639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21640 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21643 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
21647 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
21648 case "$gl_cv_func_rename_slash_dst_works" in
21653 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
21659 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
21660 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
21661 $as_echo_n "(cached) " >&6
21663 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21664 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
21665 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21666 # Assume that if we have lstat, we can also check symlinks.
21667 if test $ac_cv_func_lstat = yes; then
21668 ln -s conftest.f conftest.lnk
21670 if test "$cross_compiling" = yes; then :
21672 # Guess yes on glibc systems.
21673 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
21674 # If we don't know, assume the worst.
21675 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
21679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h. */
21682 # include <stdio.h>
21683 # include <stdlib.h>
21689 if (rename ("conftest.f1/", "conftest.d3") == 0)
21691 if (rename ("conftest.d1/", "conftest.d2") != 0)
21694 if (rename ("conftest.lnk/", "conftest.f") == 0)
21703 if ac_fn_c_try_run
"$LINENO"; then :
21704 gl_cv_func_rename_slash_src_works
=yes
21706 gl_cv_func_rename_slash_src_works
=no
21708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21712 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
21716 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
21717 case "$gl_cv_func_rename_slash_src_works" in
21722 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
21735 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
21736 if ${gl_cv_func_rename_link_works+:} false
; then :
21737 $as_echo_n "(cached) " >&6
21739 if test $ac_cv_func_link = yes; then
21740 rm -rf conftest.f conftest.f1
21741 if touch conftest.f
&& ln conftest.f conftest.f1
&&
21742 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
21743 if test "$cross_compiling" = yes; then :
21745 # Guess yes on glibc systems.
21746 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
21747 # If we don't know, assume the worst.
21748 *) gl_cv_func_rename_link_works
="guessing no" ;;
21752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21753 /* end confdefs.h. */
21755 # include <stdio.h>
21756 # include <stdlib.h>
21757 # include <unistd.h>
21763 if (rename ("conftest.f", "conftest.f1"))
21765 if (unlink ("conftest.f1"))
21767 if (rename ("conftest.f", "conftest.f"))
21769 if (rename ("conftest.f1", "conftest.f1") == 0)
21777 if ac_fn_c_try_run
"$LINENO"; then :
21778 gl_cv_func_rename_link_works
=yes
21780 gl_cv_func_rename_link_works
=no
21782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21787 gl_cv_func_rename_link_works
="guessing no"
21789 rm -rf conftest.f conftest.f1
21791 gl_cv_func_rename_link_works
=yes
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
21796 $as_echo "$gl_cv_func_rename_link_works" >&6; }
21797 case "$gl_cv_func_rename_link_works" in
21802 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
21808 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
21809 if ${gl_cv_func_rename_dest_works+:} false
; then :
21810 $as_echo_n "(cached) " >&6
21812 rm -rf conftest.f conftest.d1 conftest.d2
21813 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
21814 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21815 if test "$cross_compiling" = yes; then :
21817 # Guess yes on glibc systems.
21818 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
21819 # If we don't know, assume the worst.
21820 *) gl_cv_func_rename_dest_works
="guessing no" ;;
21824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h. */
21827 # include <stdio.h>
21828 # include <stdlib.h>
21834 if (rename ("conftest.d1", "conftest.d2") != 0)
21836 if (rename ("conftest.d2", "conftest.f") == 0)
21844 if ac_fn_c_try_run
"$LINENO"; then :
21845 gl_cv_func_rename_dest_works
=yes
21847 gl_cv_func_rename_dest_works
=no
21849 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21850 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21853 rm -rf conftest.f conftest.d1 conftest.d2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
21857 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
21858 case "$gl_cv_func_rename_dest_works" in
21863 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
21868 if test $REPLACE_RENAME = 1; then
21877 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
21891 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
21898 for ac_func
in rewinddir
21900 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
21901 if test "x$ac_cv_func_rewinddir" = xyes
; then :
21902 cat >>confdefs.h
<<_ACEOF
21903 #define HAVE_REWINDDIR 1
21909 if test $ac_cv_func_rewinddir = no
; then
21913 if test $HAVE_REWINDDIR = 0; then
21922 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
21936 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
21950 $as_echo_n "checking whether rmdir works... " >&6; }
21951 if ${gl_cv_func_rmdir_works+:} false
; then :
21952 $as_echo_n "(cached) " >&6
21955 touch conftest.
file
21956 if test "$cross_compiling" = yes; then :
21958 # Guess yes on glibc systems.
21959 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
21960 # If we don't know, assume the worst.
21961 *) gl_cv_func_rmdir_works
="guessing no" ;;
21965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21970 # include <unistd.h>
21971 #else /* on Windows with MSVC */
21972 # include <direct.h>
21979 if (!rmdir ("conftest.file/"))
21981 else if (errno != ENOTDIR)
21983 if (!rmdir ("conftest.dir/./"))
21991 if ac_fn_c_try_run
"$LINENO"; then :
21992 gl_cv_func_rmdir_works
=yes
21994 gl_cv_func_rmdir_works
=no
21996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22000 rm -rf conftest.dir conftest.
file
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
22003 $as_echo "$gl_cv_func_rmdir_works" >&6; }
22004 case "$gl_cv_func_rmdir_works" in
22011 if test $REPLACE_RMDIR = 1; then
22020 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
22034 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
22058 if test $ac_cv_func_secure_getenv = no
; then
22059 HAVE_SECURE_GETENV
=0
22062 if test $HAVE_SECURE_GETENV = 0; then
22071 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
22074 for ac_func
in __secure_getenv
22076 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
22077 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
22078 cat >>confdefs.h
<<_ACEOF
22079 #define HAVE___SECURE_GETENV 1
22085 if test $ac_cv_func___secure_getenv = no
; then
22086 for ac_func
in issetugid
22088 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
22089 if test "x$ac_cv_func_issetugid" = xyes
; then :
22090 cat >>confdefs.h
<<_ACEOF
22091 #define HAVE_ISSETUGID 1
22121 GNULIB_SECURE_GETENV
=1
22127 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
22133 if test $ac_cv_func_setenv = no
; then
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22137 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22138 if ${gl_cv_func_setenv_works+:} false
; then :
22139 $as_echo_n "(cached) " >&6
22141 if test "$cross_compiling" = yes; then :
22143 # Guess yes on glibc systems.
22144 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
22145 # If we don't know, assume the worst.
22146 *) gl_cv_func_setenv_works
="guessing no" ;;
22150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22153 #include <stdlib.h>
22155 #include <string.h>
22163 if (setenv ("", "", 0) != -1)
22165 else if (errno != EINVAL)
22169 if (setenv ("a", "=", 1) != 0)
22171 else if (strcmp (getenv ("a"), "=") != 0)
22180 if ac_fn_c_try_run
"$LINENO"; then :
22181 gl_cv_func_setenv_works
=yes
22183 gl_cv_func_setenv_works
=no
22185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22191 $as_echo "$gl_cv_func_setenv_works" >&6; }
22192 case "$gl_cv_func_setenv_works" in
22200 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
22209 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
22223 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22238 if test $gl_cv_have_include_next = yes; then
22239 gl_cv_next_signal_h
='<'signal.h
'>'
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22242 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22243 if ${gl_cv_next_signal_h+:} false
; then :
22244 $as_echo_n "(cached) " >&6
22249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22251 #include <signal.h>
22254 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22255 *) gl_absname_cpp
="$ac_cpp" ;;
22260 gl_dirsep_regex
='[/\\]'
22263 gl_dirsep_regex
='\/'
22266 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22267 gl_header_literal_regex
=`echo 'signal.h' \
22268 | sed -e "$gl_make_literal_regex_sed"`
22269 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22270 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22276 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22277 sed -n "$gl_absolute_header_sed"`
22279 gl_header
=$gl_cv_absolute_signal_h
22280 gl_cv_next_signal_h
='"'$gl_header'"'
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22285 $as_echo "$gl_cv_next_signal_h" >&6; }
22287 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22289 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22291 gl_next_as_first_directive
='<'signal.h
'>'
22293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22294 gl_next_as_first_directive
=$gl_cv_next_signal_h
22296 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22302 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22303 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22304 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22305 #include <signal.h>
22308 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
22311 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22320 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22321 #include <signal.h>
22324 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
22327 HAVE_SIGHANDLER_T
=0
22332 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
22333 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22335 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22336 if eval \
${$as_gl_Symbol+:} false
; then :
22337 $as_echo_n "(cached) " >&6
22339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22341 #include <signal.h>
22352 if ac_fn_c_try_compile
"$LINENO"; then :
22353 eval "$as_gl_Symbol=yes"
22355 eval "$as_gl_Symbol=no"
22357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22359 eval ac_res
=\$
$as_gl_Symbol
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22361 $as_echo "$ac_res" >&6; }
22362 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22363 cat >>confdefs.h
<<_ACEOF
22364 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22367 eval ac_cv_have_decl_
$gl_func=yes
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22374 $as_echo_n "checking for ssize_t... " >&6; }
22375 if ${gt_cv_ssize_t+:} false
; then :
22376 $as_echo_n "(cached) " >&6
22378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22380 #include <sys/types.h>
22384 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22390 if ac_fn_c_try_compile
"$LINENO"; then :
22395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22398 $as_echo "$gt_cv_ssize_t" >&6; }
22399 if test $gt_cv_ssize_t = no
; then
22401 $as_echo "#define ssize_t int" >>confdefs.h
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22415 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22416 if ${gl_cv_func_stat_dir_slash+:} false
; then :
22417 $as_echo_n "(cached) " >&6
22419 if test "$cross_compiling" = yes; then :
22421 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22422 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22426 /* end confdefs.h. */
22427 #include <sys/stat.h>
22432 struct stat st; return stat (".", &st) != stat ("./", &st);
22437 if ac_fn_c_try_run
"$LINENO"; then :
22438 gl_cv_func_stat_dir_slash
=yes
22440 gl_cv_func_stat_dir_slash
=no
22442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22448 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22450 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22451 if ${gl_cv_func_stat_file_slash+:} false
; then :
22452 $as_echo_n "(cached) " >&6
22455 # Assume that if we have lstat, we can also check symlinks.
22456 if test $ac_cv_func_lstat = yes; then
22457 ln -s conftest.tmp conftest.lnk
22459 if test "$cross_compiling" = yes; then :
22461 # Guess yes on glibc systems.
22462 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
22463 # If we don't know, assume the worst.
22464 *) gl_cv_func_stat_file_slash
="guessing no" ;;
22468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22470 #include <sys/stat.h>
22477 if (!stat ("conftest.tmp/", &st))
22480 if (!stat ("conftest.lnk/", &st))
22489 if ac_fn_c_try_run
"$LINENO"; then :
22490 gl_cv_func_stat_file_slash
=yes
22492 gl_cv_func_stat_file_slash
=no
22494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22498 rm -f conftest.tmp conftest.lnk
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22501 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22502 case $gl_cv_func_stat_dir_slash in
22503 *no
) REPLACE_STAT
=1
22505 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22508 case $gl_cv_func_stat_file_slash in
22509 *no
) REPLACE_STAT
=1
22511 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22515 if test $REPLACE_STAT = 1; then
22524 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22539 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
22546 # Define two additional variables used in the Makefile substitution.
22548 if test "$ac_cv_header_stdbool_h" = yes; then
22551 STDBOOL_H
='stdbool.h'
22554 if test -n "$STDBOOL_H"; then
22555 GL_GENERATE_STDBOOL_H_TRUE
=
22556 GL_GENERATE_STDBOOL_H_FALSE
='#'
22558 GL_GENERATE_STDBOOL_H_TRUE
='#'
22559 GL_GENERATE_STDBOOL_H_FALSE
=
22563 if test "$ac_cv_type__Bool" = yes; then
22574 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
22577 if test "x$ac_cv_type_max_align_t" = xyes
; then :
22580 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
22583 if test $gt_cv_c_wchar_t = no
; then
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22588 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22589 if ${gl_cv_decl_null_works+:} false
; then :
22590 $as_echo_n "(cached) " >&6
22592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22594 #include <stddef.h>
22595 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22605 if ac_fn_c_try_compile
"$LINENO"; then :
22606 gl_cv_decl_null_works
=yes
22608 gl_cv_decl_null_works
=no
22610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22613 $as_echo "$gl_cv_decl_null_works" >&6; }
22614 if test $gl_cv_decl_null_works = no
; then
22619 if test -n "$STDDEF_H"; then
22620 GL_GENERATE_STDDEF_H_TRUE
=
22621 GL_GENERATE_STDDEF_H_FALSE
='#'
22623 GL_GENERATE_STDDEF_H_TRUE
='#'
22624 GL_GENERATE_STDDEF_H_FALSE
=
22627 if test -n "$STDDEF_H"; then
22636 if test $gl_cv_have_include_next = yes; then
22637 gl_cv_next_stddef_h
='<'stddef.h
'>'
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22640 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22641 if ${gl_cv_next_stddef_h+:} false
; then :
22642 $as_echo_n "(cached) " >&6
22647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22648 /* end confdefs.h. */
22649 #include <stddef.h>
22652 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22653 *) gl_absname_cpp
="$ac_cpp" ;;
22658 gl_dirsep_regex
='[/\\]'
22661 gl_dirsep_regex
='\/'
22664 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22665 gl_header_literal_regex
=`echo 'stddef.h' \
22666 | sed -e "$gl_make_literal_regex_sed"`
22667 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22668 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22674 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22675 sed -n "$gl_absolute_header_sed"`
22677 gl_header
=$gl_cv_absolute_stddef_h
22678 gl_cv_next_stddef_h
='"'$gl_header'"'
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22683 $as_echo "$gl_cv_next_stddef_h" >&6; }
22685 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22687 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22688 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22689 gl_next_as_first_directive
='<'stddef.h
'>'
22691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22692 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22694 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22704 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
22715 if test $gl_cv_have_include_next = yes; then
22716 gl_cv_next_stdio_h
='<'stdio.h
'>'
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22719 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22720 if ${gl_cv_next_stdio_h+:} false
; then :
22721 $as_echo_n "(cached) " >&6
22726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h. */
22731 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22732 *) gl_absname_cpp
="$ac_cpp" ;;
22737 gl_dirsep_regex
='[/\\]'
22740 gl_dirsep_regex
='\/'
22743 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22744 gl_header_literal_regex
=`echo 'stdio.h' \
22745 | sed -e "$gl_make_literal_regex_sed"`
22746 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22747 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22753 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22754 sed -n "$gl_absolute_header_sed"`
22756 gl_header
=$gl_cv_absolute_stdio_h
22757 gl_cv_next_stdio_h
='"'$gl_header'"'
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22762 $as_echo "$gl_cv_next_stdio_h" >&6; }
22764 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22766 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22768 gl_next_as_first_directive
='<'stdio.h
'>'
22770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22771 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22773 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
22780 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
22781 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
22782 $as_echo_n "(cached) " >&6
22784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22785 /* end confdefs.h. */
22787 #define __STDC_FORMAT_MACROS 1
22789 #include <inttypes.h>
22790 /* For non-mingw systems, compilation will trivially succeed.
22791 For mingw, compilation will succeed for older mingw (system
22792 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
22793 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
22794 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
22795 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
22806 if ac_fn_c_try_compile
"$LINENO"; then :
22807 gl_cv_func_printf_attribute_flavor
=system
22809 gl_cv_func_printf_attribute_flavor
=gnu
22811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
22814 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
22815 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
22817 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
22824 cat >>confdefs.h
<<_ACEOF
22825 #define GNULIB_FSCANF 1
22832 cat >>confdefs.h
<<_ACEOF
22833 #define GNULIB_SCANF 1
22858 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
22859 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22861 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22862 if eval \
${$as_gl_Symbol+:} false
; then :
22863 $as_echo_n "(cached) " >&6
22865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h. */
22878 if ac_fn_c_try_compile
"$LINENO"; then :
22879 eval "$as_gl_Symbol=yes"
22881 eval "$as_gl_Symbol=no"
22883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22885 eval ac_res
=\$
$as_gl_Symbol
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22887 $as_echo "$ac_res" >&6; }
22888 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22889 cat >>confdefs.h
<<_ACEOF
22890 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22893 eval ac_cv_have_decl_
$gl_func=yes
22908 if test $gl_cv_have_include_next = yes; then
22909 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22912 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22913 if ${gl_cv_next_stdlib_h+:} false
; then :
22914 $as_echo_n "(cached) " >&6
22919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22920 /* end confdefs.h. */
22921 #include <stdlib.h>
22924 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22925 *) gl_absname_cpp
="$ac_cpp" ;;
22930 gl_dirsep_regex
='[/\\]'
22933 gl_dirsep_regex
='\/'
22936 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22937 gl_header_literal_regex
=`echo 'stdlib.h' \
22938 | sed -e "$gl_make_literal_regex_sed"`
22939 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22946 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22947 sed -n "$gl_absolute_header_sed"`
22949 gl_header
=$gl_cv_absolute_stdlib_h
22950 gl_cv_next_stdlib_h
='"'$gl_header'"'
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22955 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22957 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22959 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22960 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22961 gl_next_as_first_directive
='<'stdlib.h
'>'
22963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22964 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22966 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22973 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
22974 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22976 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22977 if eval \
${$as_gl_Symbol+:} false
; then :
22978 $as_echo_n "(cached) " >&6
22980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22982 #include <stdlib.h>
22983 #if HAVE_SYS_LOADAVG_H
22984 # include <sys/loadavg.h>
22987 # include <random.h>
22999 if ac_fn_c_try_compile
"$LINENO"; then :
23000 eval "$as_gl_Symbol=yes"
23002 eval "$as_gl_Symbol=no"
23004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23006 eval ac_res
=\$
$as_gl_Symbol
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23009 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23010 cat >>confdefs.h
<<_ACEOF
23011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23014 eval ac_cv_have_decl_
$gl_func=yes
23023 for ac_func
in strchrnul
23025 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
23026 if test "x$ac_cv_func_strchrnul" = xyes
; then :
23027 cat >>confdefs.h
<<_ACEOF
23028 #define HAVE_STRCHRNUL 1
23034 if test $ac_cv_func_strchrnul = no
; then
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
23038 $as_echo_n "checking whether strchrnul works... " >&6; }
23039 if ${gl_cv_func_strchrnul_works+:} false
; then :
23040 $as_echo_n "(cached) " >&6
23042 if test "$cross_compiling" = yes; then :
23043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23044 /* end confdefs.h. */
23046 #if defined __CYGWIN__
23047 #include <cygwin/version.h>
23048 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
23056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23057 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23058 gl_cv_func_strchrnul_works
="guessing yes"
23060 gl_cv_func_strchrnul_works
="guessing no"
23066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h. */
23069 #include <string.h> /* for strchrnul */
23074 const char *buf = "a";
23075 return strchrnul (buf, 'b') != buf + 1;
23081 if ac_fn_c_try_run
"$LINENO"; then :
23082 gl_cv_func_strchrnul_works
=yes
23084 gl_cv_func_strchrnul_works
=no
23086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
23093 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
23094 case "$gl_cv_func_strchrnul_works" in
23096 *) REPLACE_STRCHRNUL
=1 ;;
23100 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
23109 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
23124 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
23138 if test $ac_cv_func_strdup = yes; then
23139 if test $gl_cv_func_malloc_posix != yes; then
23150 if test $ac_cv_have_decl_strdup = no
; then
23154 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
23163 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
23178 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
23187 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23189 $as_echo_n "checking for working strerror function... " >&6; }
23190 if ${gl_cv_func_working_strerror+:} false
; then :
23191 $as_echo_n "(cached) " >&6
23193 if test "$cross_compiling" = yes; then :
23195 # Guess yes on glibc systems.
23196 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
23197 # If we don't know, assume the worst.
23198 *) gl_cv_func_working_strerror
="guessing no" ;;
23202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23204 #include <string.h>
23209 if (!*strerror (-2)) return 1;
23214 if ac_fn_c_try_run
"$LINENO"; then :
23215 gl_cv_func_working_strerror
=yes
23217 gl_cv_func_working_strerror
=no
23219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23226 $as_echo "$gl_cv_func_working_strerror" >&6; }
23227 case "$gl_cv_func_working_strerror" in
23238 if test $REPLACE_STRERROR = 1; then
23247 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
23252 cat >>confdefs.h
<<_ACEOF
23253 #define GNULIB_STRERROR 1
23268 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23274 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
23283 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
23295 if test $ac_cv_header_sys_socket_h != yes; then
23296 for ac_header
in winsock2.h
23298 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23299 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
23300 cat >>confdefs.h
<<_ACEOF
23301 #define HAVE_WINSOCK2_H 1
23309 if test "$ac_cv_header_winsock2_h" = yes; then
23311 UNISTD_H_HAVE_WINSOCK2_H
=1
23312 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23324 if test $REPLACE_STRSTR = 0; then
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
23326 $as_echo_n "checking whether strstr works in linear time... " >&6; }
23327 if ${gl_cv_func_strstr_linear+:} false
; then :
23328 $as_echo_n "(cached) " >&6
23330 if test "$cross_compiling" = yes; then :
23331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h. */
23334 #include <features.h>
23335 #ifdef __GNU_LIBRARY__
23336 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23337 && !(defined __i386__ || defined __x86_64__) \
23338 && !defined __UCLIBC__
23343 #include <cygwin/version.h>
23344 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23351 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23352 gl_cv_func_strstr_linear
="guessing yes"
23354 gl_cv_func_strstr_linear
="guessing no"
23360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23361 /* end confdefs.h. */
23364 /* z/OS does not deliver signals while strstr() is running (thanks to
23365 restrictions on its LE runtime), which prevents us from limiting the
23366 running time of this test. */
23367 # error "This test does not work properly on z/OS"
23369 #include <signal.h> /* for signal */
23370 #include <string.h> /* for strstr */
23371 #include <stdlib.h> /* for malloc */
23372 #include <unistd.h> /* for alarm */
23373 static void quit (int sig) { _exit (sig + 128); }
23380 size_t m = 1000000;
23381 char *haystack = (char *) malloc (2 * m + 2);
23382 char *needle = (char *) malloc (m + 2);
23383 /* Failure to compile this test due to missing alarm is okay,
23384 since all such platforms (mingw) also have quadratic strstr. */
23385 signal (SIGALRM, quit);
23387 /* Check for quadratic performance. */
23388 if (haystack && needle)
23390 memset (haystack, 'A', 2 * m);
23391 haystack[2 * m] = 'B';
23392 haystack[2 * m + 1] = 0;
23393 memset (needle, 'A', m);
23396 if (!strstr (haystack, needle))
23405 if ac_fn_c_try_run
"$LINENO"; then :
23406 gl_cv_func_strstr_linear
=yes
23408 gl_cv_func_strstr_linear
=no
23410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
23417 $as_echo "$gl_cv_func_strstr_linear" >&6; }
23418 case "$gl_cv_func_strstr_linear" in
23426 if test $REPLACE_STRSTR = 1; then
23435 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23441 if test "$gl_cv_func_memchr_works" != yes; then
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
23445 $as_echo_n "checking whether strstr works... " >&6; }
23446 if ${gl_cv_func_strstr_works_always+:} false
; then :
23447 $as_echo_n "(cached) " >&6
23449 if test "$cross_compiling" = yes; then :
23450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23451 /* end confdefs.h. */
23453 #ifdef __GNU_LIBRARY__
23454 #include <features.h>
23455 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23456 || defined __UCLIBC__
23459 #elif defined __CYGWIN__
23460 #include <cygwin/version.h>
23461 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23470 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23471 gl_cv_func_strstr_works_always
="guessing yes"
23473 gl_cv_func_strstr_works_always
="guessing no"
23479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23480 /* end confdefs.h. */
23482 #include <string.h> /* for strstr */
23483 #define P "_EF_BF_BD"
23484 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23485 #define NEEDLE P P P P P
23490 return !!strstr (HAYSTACK, NEEDLE);
23496 if ac_fn_c_try_run
"$LINENO"; then :
23497 gl_cv_func_strstr_works_always
=yes
23499 gl_cv_func_strstr_works_always
=no
23501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23502 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
23508 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
23509 case "$gl_cv_func_strstr_works_always" in
23517 if test $REPLACE_STRSTR = 1; then
23526 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23540 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
23548 for ac_func
in strtok_r
23550 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23551 if test "x$ac_cv_func_strtok_r" = xyes
; then :
23552 cat >>confdefs.h
<<_ACEOF
23553 #define HAVE_STRTOK_R 1
23559 if test $ac_cv_func_strtok_r = yes; then
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23562 $as_echo_n "checking whether strtok_r works... " >&6; }
23563 if ${gl_cv_func_strtok_r_works+:} false
; then :
23564 $as_echo_n "(cached) " >&6
23566 if test "$cross_compiling" = yes; then :
23569 # Guess no on glibc systems.
23570 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
23571 *) gl_cv_func_strtok_r_works
="guessing yes";;
23575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23578 #ifndef __OPTIMIZE__
23579 # define __OPTIMIZE__ 1
23581 #undef __OPTIMIZE_SIZE__
23582 #undef __NO_INLINE__
23583 #include <stdlib.h>
23584 #include <string.h>
23589 static const char dummy[] = "\177\01a";
23590 char delimiters[] = "xxxxxxxx";
23591 char *save_ptr = (char *) dummy;
23592 strtok_r (delimiters, "x", &save_ptr);
23593 strtok_r (NULL, "x", &save_ptr);
23601 if ac_fn_c_try_run
"$LINENO"; then :
23602 gl_cv_func_strtok_r_works
=yes
23604 gl_cv_func_strtok_r_works
=no
23606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23613 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23614 case "$gl_cv_func_strtok_r_works" in
23616 UNDEFINE_STRTOK_R
=1
23629 if test $ac_cv_have_decl_strtok_r = no
; then
23630 HAVE_DECL_STRTOK_R
=0
23633 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
23642 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
23659 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
23683 if test $gl_cv_have_include_next = yes; then
23684 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23687 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23688 if ${gl_cv_next_sys_stat_h+:} false
; then :
23689 $as_echo_n "(cached) " >&6
23692 if test $ac_cv_header_sys_stat_h = yes; then
23697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <sys/stat.h>
23702 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23703 *) gl_absname_cpp
="$ac_cpp" ;;
23708 gl_dirsep_regex
='[/\\]'
23711 gl_dirsep_regex
='\/'
23714 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23715 gl_header_literal_regex
=`echo 'sys/stat.h' \
23716 | sed -e "$gl_make_literal_regex_sed"`
23717 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23718 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23724 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23725 sed -n "$gl_absolute_header_sed"`
23727 gl_header
=$gl_cv_absolute_sys_stat_h
23728 gl_cv_next_sys_stat_h
='"'$gl_header'"'
23730 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23736 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23738 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23740 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23742 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23745 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23747 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23759 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23761 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23765 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23766 #include <sys/stat.h>
23768 if test "x$ac_cv_type_nlink_t" = xyes
; then :
23772 $as_echo "#define nlink_t int" >>confdefs.h
23778 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
23779 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23781 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23782 if eval \
${$as_gl_Symbol+:} false
; then :
23783 $as_echo_n "(cached) " >&6
23785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23787 #include <sys/stat.h>
23798 if ac_fn_c_try_compile
"$LINENO"; then :
23799 eval "$as_gl_Symbol=yes"
23801 eval "$as_gl_Symbol=no"
23803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23805 eval ac_res
=\$
$as_gl_Symbol
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23807 $as_echo "$ac_res" >&6; }
23808 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23809 cat >>confdefs.h
<<_ACEOF
23810 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23813 eval ac_cv_have_decl_
$gl_func=yes
23851 if test $gl_cv_have_include_next = yes; then
23852 gl_cv_next_unistd_h
='<'unistd.h
'>'
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23855 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23856 if ${gl_cv_next_unistd_h+:} false
; then :
23857 $as_echo_n "(cached) " >&6
23860 if test $ac_cv_header_unistd_h = yes; then
23865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h. */
23867 #include <unistd.h>
23870 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23871 *) gl_absname_cpp
="$ac_cpp" ;;
23876 gl_dirsep_regex
='[/\\]'
23879 gl_dirsep_regex
='\/'
23882 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23883 gl_header_literal_regex
=`echo 'unistd.h' \
23884 | sed -e "$gl_make_literal_regex_sed"`
23885 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23886 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23892 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23893 sed -n "$gl_absolute_header_sed"`
23895 gl_header
=$gl_cv_absolute_unistd_h
23896 gl_cv_next_unistd_h
='"'$gl_header'"'
23898 gl_cv_next_unistd_h
='<'unistd.h
'>'
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23904 $as_echo "$gl_cv_next_unistd_h" >&6; }
23906 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23908 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23910 gl_next_as_first_directive
='<'unistd.h
'>'
23912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23913 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23915 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23920 if test $ac_cv_header_unistd_h = yes; then
23932 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
23933 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23936 if eval \
${$as_gl_Symbol+:} false
; then :
23937 $as_echo_n "(cached) " >&6
23939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23940 /* end confdefs.h. */
23943 # include <unistd.h>
23945 /* Some systems declare various items in the wrong headers. */
23946 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23947 # include <fcntl.h>
23948 # include <stdio.h>
23949 # include <stdlib.h>
23950 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23964 if ac_fn_c_try_compile
"$LINENO"; then :
23965 eval "$as_gl_Symbol=yes"
23967 eval "$as_gl_Symbol=no"
23969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23971 eval ac_res
=\$
$as_gl_Symbol
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23973 $as_echo "$ac_res" >&6; }
23974 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23975 cat >>confdefs.h
<<_ACEOF
23976 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23979 eval ac_cv_have_decl_
$gl_func=yes
24002 if test $ac_cv_have_decl_unsetenv = no
; then
24003 HAVE_DECL_UNSETENV
=0
24005 for ac_func
in unsetenv
24007 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24008 if test "x$ac_cv_func_unsetenv" = xyes
; then :
24009 cat >>confdefs.h
<<_ACEOF
24010 #define HAVE_UNSETENV 1
24016 if test $ac_cv_func_unsetenv = no
; then
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24021 $as_echo_n "checking for unsetenv() return type... " >&6; }
24022 if ${gt_cv_func_unsetenv_ret+:} false
; then :
24023 $as_echo_n "(cached) " >&6
24025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24026 /* end confdefs.h. */
24029 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24030 #include <stdlib.h>
24035 int unsetenv (const char *name);
24045 if ac_fn_c_try_compile
"$LINENO"; then :
24046 gt_cv_func_unsetenv_ret
='int'
24048 gt_cv_func_unsetenv_ret
='void'
24050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24053 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24054 if test $gt_cv_func_unsetenv_ret = 'void'; then
24056 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24062 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24063 if ${gl_cv_func_unsetenv_works+:} false
; then :
24064 $as_echo_n "(cached) " >&6
24066 if test "$cross_compiling" = yes; then :
24068 # Guess yes on glibc systems.
24069 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
24070 # If we don't know, assume the worst.
24071 *) gl_cv_func_unsetenv_works
="guessing no" ;;
24075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h. */
24078 #include <stdlib.h>
24080 extern char **environ;
24086 char entry1[] = "a=1";
24087 char entry2[] = "b=2";
24088 char *env[] = { entry1, entry2, NULL };
24089 if (putenv ((char *) "a=1")) return 1;
24090 if (putenv (entry2)) return 2;
24093 if (getenv ("a")) return 3;
24094 if (!unsetenv ("") || errno != EINVAL) return 4;
24097 if (!getenv ("a")) return 5;
24100 if (getenv ("a")) return 6;
24106 if ac_fn_c_try_run
"$LINENO"; then :
24107 gl_cv_func_unsetenv_works
=yes
24109 gl_cv_func_unsetenv_works
=no
24111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24117 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24118 case "$gl_cv_func_unsetenv_works" in
24126 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
24135 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
24159 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24181 if test $gl_cv_have_include_next = yes; then
24182 gl_cv_next_wchar_h
='<'wchar.h
'>'
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24185 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24186 if ${gl_cv_next_wchar_h+:} false
; then :
24187 $as_echo_n "(cached) " >&6
24190 if test $ac_cv_header_wchar_h = yes; then
24195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24196 /* end confdefs.h. */
24200 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24201 *) gl_absname_cpp
="$ac_cpp" ;;
24206 gl_dirsep_regex
='[/\\]'
24209 gl_dirsep_regex
='\/'
24212 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24213 gl_header_literal_regex
=`echo 'wchar.h' \
24214 | sed -e "$gl_make_literal_regex_sed"`
24215 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24222 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24223 sed -n "$gl_absolute_header_sed"`
24225 gl_header
=$gl_cv_absolute_wchar_h
24226 gl_cv_next_wchar_h
='"'$gl_header'"'
24228 gl_cv_next_wchar_h
='<'wchar.h
'>'
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24234 $as_echo "$gl_cv_next_wchar_h" >&6; }
24236 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
24238 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24240 gl_next_as_first_directive
='<'wchar.h
'>'
24242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24243 gl_next_as_first_directive
=$gl_cv_next_wchar_h
24245 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
24250 if test $ac_cv_header_wchar_h = yes; then
24260 if test $gt_cv_c_wint_t = yes; then
24268 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
24269 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24271 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24272 if eval \
${$as_gl_Symbol+:} false
; then :
24273 $as_echo_n "(cached) " >&6
24275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24276 /* end confdefs.h. */
24278 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24280 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24281 included before <wchar.h>. */
24282 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24283 # include <stddef.h>
24284 # include <stdio.h>
24298 if ac_fn_c_try_compile
"$LINENO"; then :
24299 eval "$as_gl_Symbol=yes"
24301 eval "$as_gl_Symbol=no"
24303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24305 eval ac_res
=\$
$as_gl_Symbol
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24307 $as_echo "$ac_res" >&6; }
24308 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24309 cat >>confdefs.h
<<_ACEOF
24310 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24313 eval ac_cv_have_decl_
$gl_func=yes
24329 if test $ac_cv_func_iswcntrl = yes; then
24337 if test $gt_cv_c_wint_t = yes; then
24359 if test $gl_cv_have_include_next = yes; then
24360 gl_cv_next_wctype_h
='<'wctype.h
'>'
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24363 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24364 if ${gl_cv_next_wctype_h+:} false
; then :
24365 $as_echo_n "(cached) " >&6
24368 if test $ac_cv_header_wctype_h = yes; then
24373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h. */
24375 #include <wctype.h>
24378 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24379 *) gl_absname_cpp
="$ac_cpp" ;;
24384 gl_dirsep_regex
='[/\\]'
24387 gl_dirsep_regex
='\/'
24390 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24391 gl_header_literal_regex
=`echo 'wctype.h' \
24392 | sed -e "$gl_make_literal_regex_sed"`
24393 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24394 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24400 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24401 sed -n "$gl_absolute_header_sed"`
24403 gl_header
=$gl_cv_absolute_wctype_h
24404 gl_cv_next_wctype_h
='"'$gl_header'"'
24406 gl_cv_next_wctype_h
='<'wctype.h
'>'
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24412 $as_echo "$gl_cv_next_wctype_h" >&6; }
24414 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
24416 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24418 gl_next_as_first_directive
='<'wctype.h
'>'
24420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24421 gl_next_as_first_directive
=$gl_cv_next_wctype_h
24423 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
24428 if test $ac_cv_header_wctype_h = yes; then
24429 if test $ac_cv_func_iswcntrl = yes; then
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24431 $as_echo_n "checking whether iswcntrl works... " >&6; }
24432 if ${gl_cv_func_iswcntrl_works+:} false
; then :
24433 $as_echo_n "(cached) " >&6
24436 if test "$cross_compiling" = yes; then :
24437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24438 /* end confdefs.h. */
24439 #include <stdlib.h>
24440 #if __GNU_LIBRARY__ == 1
24441 Linux libc5 i18n is broken.
24451 if ac_fn_c_try_compile
"$LINENO"; then :
24452 gl_cv_func_iswcntrl_works
="guessing yes"
24454 gl_cv_func_iswcntrl_works
="guessing no"
24456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h. */
24462 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24463 included before <wchar.h>.
24464 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24465 must be included before <wchar.h>. */
24466 #include <stddef.h>
24470 #include <wctype.h>
24471 int main () { return iswprint ('x') == 0; }
24474 if ac_fn_c_try_run
"$LINENO"; then :
24475 gl_cv_func_iswcntrl_works
=yes
24477 gl_cv_func_iswcntrl_works
=no
24479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24486 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24494 case "$gl_cv_func_iswcntrl_works" in
24495 *yes) REPLACE_ISWCNTRL
=0 ;;
24496 *) REPLACE_ISWCNTRL
=1 ;;
24500 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
24504 if test $REPLACE_ISWCNTRL = 1; then
24507 for ac_func
in towlower
24509 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
24510 if test "x$ac_cv_func_towlower" = xyes
; then :
24511 cat >>confdefs.h
<<_ACEOF
24512 #define HAVE_TOWLOWER 1
24518 if test $ac_cv_func_towlower = yes; then
24521 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24522 included before <wchar.h>.
24523 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24524 must be included before <wchar.h>. */
24525 #include <stddef.h>
24530 # include <wctype.h>
24534 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
24540 cat >>confdefs.h
<<_ACEOF
24541 #define HAVE_DECL_TOWLOWER $ac_have_decl
24544 if test $ac_cv_have_decl_towlower = yes; then
24553 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24558 $as_echo_n "checking for wctype_t... " >&6; }
24559 if ${gl_cv_type_wctype_t+:} false
; then :
24560 $as_echo_n "(cached) " >&6
24562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24565 included before <wchar.h>.
24566 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24567 must be included before <wchar.h>. */
24568 #include <stddef.h>
24573 # include <wctype.h>
24585 if ac_fn_c_try_compile
"$LINENO"; then :
24586 gl_cv_type_wctype_t
=yes
24588 gl_cv_type_wctype_t
=no
24590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24594 $as_echo "$gl_cv_type_wctype_t" >&6; }
24595 if test $gl_cv_type_wctype_t = no
; then
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24600 $as_echo_n "checking for wctrans_t... " >&6; }
24601 if ${gl_cv_type_wctrans_t+:} false
; then :
24602 $as_echo_n "(cached) " >&6
24604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24606 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24607 included before <wchar.h>.
24608 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24609 must be included before <wchar.h>. */
24610 #include <stddef.h>
24614 #include <wctype.h>
24625 if ac_fn_c_try_compile
"$LINENO"; then :
24626 gl_cv_type_wctrans_t
=yes
24628 gl_cv_type_wctrans_t
=no
24630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24634 $as_echo "$gl_cv_type_wctrans_t" >&6; }
24635 if test $gl_cv_type_wctrans_t = no
; then
24640 for gl_func
in wctype iswctype wctrans towctrans
; do
24641 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24643 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24644 if eval \
${$as_gl_Symbol+:} false
; then :
24645 $as_echo_n "(cached) " >&6
24647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24650 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24652 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24653 included before <wchar.h>. */
24654 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24655 # include <stddef.h>
24656 # include <stdio.h>
24658 # include <wchar.h>
24660 #include <wctype.h>
24671 if ac_fn_c_try_compile
"$LINENO"; then :
24672 eval "$as_gl_Symbol=yes"
24674 eval "$as_gl_Symbol=no"
24676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24678 eval ac_res
=\$
$as_gl_Symbol
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24680 $as_echo "$ac_res" >&6; }
24681 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24682 cat >>confdefs.h
<<_ACEOF
24683 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24686 eval ac_cv_have_decl_
$gl_func=yes
24691 # End of code from modules
24712 gl_source_base
='tests'
24713 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
24715 gl_module_indicator_condition
=$gltests_WITNESS
24725 LIBGNU_LIBDEPS
="$gl_libdeps"
24727 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24731 # We don't use automake, but gnulib does. This line lets us generate
24733 am__api_version
='1.15'
24735 # Find a good install program. We prefer a C program (faster),
24736 # so one script is as good as another. But avoid the broken or
24737 # incompatible versions:
24738 # SysV /etc/install, /usr/sbin/install
24739 # SunOS /usr/etc/install
24740 # IRIX /sbin/install
24742 # AmigaOS /C/install, which installs bootblocks on floppy discs
24743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
24745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24746 # OS/2's system install, which has a completely different semantic
24747 # ./install, which can be erroneously created by make from ./install.sh.
24748 # Reject install programs that cannot install multiple files.
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24751 if test -z "$INSTALL"; then
24752 if ${ac_cv_path_install+:} false
; then :
24753 $as_echo_n "(cached) " >&6
24755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24756 for as_dir
in $PATH
24759 test -z "$as_dir" && as_dir
=.
24760 # Account for people who put trailing slashes in PATH elements.
24761 case $as_dir/ in #((
24762 .
/ | .
// |
/[cC
]/* | \
24763 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
24764 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
24767 # OSF1 and SCO ODT 3.0 have their own names for install.
24768 # Don't use installbsd from OSF since it installs stuff as root
24770 for ac_prog
in ginstall scoinst
install; do
24771 for ac_exec_ext
in '' $ac_executable_extensions; do
24772 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
24773 if test $ac_prog = install &&
24774 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24775 # AIX install. It has an incompatible calling convention.
24777 elif test $ac_prog = install &&
24778 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24779 # program-specific install script used by HP pwplus--don't use.
24782 rm -rf conftest.one conftest.two conftest.dir
24783 echo one
> conftest.one
24784 echo two
> conftest.two
24786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
24787 test -s conftest.one
&& test -s conftest.two
&&
24788 test -s conftest.dir
/conftest.one
&&
24789 test -s conftest.dir
/conftest.two
24791 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
24804 rm -rf conftest.one conftest.two conftest.dir
24807 if test "${ac_cv_path_install+set}" = set; then
24808 INSTALL
=$ac_cv_path_install
24810 # As a last resort, use the slow shell script. Don't cache a
24811 # value for INSTALL within a source directory, because that will
24812 # break other packages using the cache if that directory is
24813 # removed, or if the value is a relative name.
24814 INSTALL
=$ac_install_sh
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24818 $as_echo "$INSTALL" >&6; }
24820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24821 # It thinks the first close brace ends the variable substitution.
24822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
24824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
24826 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24829 $as_echo_n "checking whether build environment is sane... " >&6; }
24830 # Reject unsafe characters in $srcdir or the absolute working directory
24831 # name. Accept space and tab only in the latter.
24835 *[\\\"\
#\$\&\'\`$am_lf]*)
24836 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
24839 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
24840 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
24843 # Do 'set' in a subshell so we don't clobber the current shell's
24844 # arguments. Must try -L first in case configure is actually a
24845 # symlink; some systems play weird games with the mod time of symlinks
24846 # (eg FreeBSD returns the mod time of the symlink's containing
24850 for am_try
in 1 2; do
24851 echo "timestamp, slept: $am_has_slept" > conftest.
file
24852 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
24853 if test "$*" = "X"; then
24855 set X
`ls -t "$srcdir/configure" conftest.file`
24857 if test "$*" != "X $srcdir/configure conftest.file" \
24858 && test "$*" != "X conftest.file $srcdir/configure"; then
24860 # If neither matched, then we have a broken ls. This can happen
24861 # if, for instance, CONFIG_SHELL is bash and it inherits a
24862 # broken ls alias from the environment. This has actually
24863 # happened. Such a system could not be considered "sane".
24864 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
24865 alias in your environment" "$LINENO" 5
24867 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
24874 test "$2" = conftest.
file
24880 as_fn_error $?
"newly created file is older than distributed files!
24881 Check your system clock" "$LINENO" 5
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884 $as_echo "yes" >&6; }
24885 # If we didn't sleep, we still need to ensure time stamps of config.status and
24886 # generated files are strictly newer.
24888 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
24893 rm -f conftest.
file
24895 test "$program_prefix" != NONE
&&
24896 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
24897 # Use a double $ so make ignores it.
24898 test "$program_suffix" != NONE
&&
24899 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
24900 # Double any \ or $.
24901 # By default was `s,x,x', remove it if useless.
24902 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
24903 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
24905 if test x
"${MISSING+set}" != xset
; then
24906 case $am_aux_dir in
24908 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
24910 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
24913 # Use eval to expand $SHELL
24914 if eval "$MISSING --is-lightweight"; then
24915 am_missing_run
="$MISSING "
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
24919 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24922 if test x
"${install_sh+set}" != xset
; then
24923 case $am_aux_dir in
24925 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
24927 install_sh
="\${SHELL} $am_aux_dir/install-sh"
24931 # Installed binaries are usually stripped using 'strip' when the user
24932 # run "make install-strip". However 'strip' might not be the right
24933 # tool to use in cross-compilation environments, therefore Automake
24934 # will honor the 'STRIP' environment variable to overrule this program.
24935 if test "$cross_compiling" != no
; then
24936 if test -n "$ac_tool_prefix"; then
24937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24938 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24940 $as_echo_n "checking for $ac_word... " >&6; }
24941 if ${ac_cv_prog_STRIP+:} false
; then :
24942 $as_echo_n "(cached) " >&6
24944 if test -n "$STRIP"; then
24945 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
24947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24948 for as_dir
in $PATH
24951 test -z "$as_dir" && as_dir
=.
24952 for ac_exec_ext
in '' $ac_executable_extensions; do
24953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24954 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
24955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24964 STRIP
=$ac_cv_prog_STRIP
24965 if test -n "$STRIP"; then
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24967 $as_echo "$STRIP" >&6; }
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24970 $as_echo "no" >&6; }
24975 if test -z "$ac_cv_prog_STRIP"; then
24977 # Extract the first word of "strip", so it can be a program name with args.
24978 set dummy strip
; ac_word
=$2
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24980 $as_echo_n "checking for $ac_word... " >&6; }
24981 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
24982 $as_echo_n "(cached) " >&6
24984 if test -n "$ac_ct_STRIP"; then
24985 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
24987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24988 for as_dir
in $PATH
24991 test -z "$as_dir" && as_dir
=.
24992 for ac_exec_ext
in '' $ac_executable_extensions; do
24993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24994 ac_cv_prog_ac_ct_STRIP
="strip"
24995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25004 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
25005 if test -n "$ac_ct_STRIP"; then
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
25007 $as_echo "$ac_ct_STRIP" >&6; }
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25010 $as_echo "no" >&6; }
25013 if test "x$ac_ct_STRIP" = x
; then
25016 case $cross_compiling:$ac_tool_warned in
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25020 ac_tool_warned
=yes ;;
25025 STRIP
="$ac_cv_prog_STRIP"
25029 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
25031 for ac_prog
in gawk mawk nawk
awk
25033 # Extract the first word of "$ac_prog", so it can be a program name with args.
25034 set dummy
$ac_prog; ac_word
=$2
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25036 $as_echo_n "checking for $ac_word... " >&6; }
25037 if ${ac_cv_prog_AWK+:} false
; then :
25038 $as_echo_n "(cached) " >&6
25040 if test -n "$AWK"; then
25041 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
25043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25044 for as_dir
in $PATH
25047 test -z "$as_dir" && as_dir
=.
25048 for ac_exec_ext
in '' $ac_executable_extensions; do
25049 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25050 ac_cv_prog_AWK
="$ac_prog"
25051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25060 AWK
=$ac_cv_prog_AWK
25061 if test -n "$AWK"; then
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25063 $as_echo "$AWK" >&6; }
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25066 $as_echo "no" >&6; }
25070 test -n "$AWK" && break
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25076 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25077 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
25078 $as_echo_n "(cached) " >&6
25080 cat >conftest.
make <<\_ACEOF
25083 @
echo '@@@%%%=$(MAKE)=@@@%%%'
25085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
25087 *@@@
%%%=?
*=@@@
%%%*)
25088 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
25090 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
25092 rm -f conftest.
make
25094 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25096 $as_echo "yes" >&6; }
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100 $as_echo "no" >&6; }
25101 SET_MAKE
="MAKE=${MAKE-make}"
25104 rm -rf .tst
2>/dev
/null
25105 mkdir .tst
2>/dev
/null
25106 if test -d .tst
; then
25111 rmdir .tst
2>/dev
/null
25113 DEPDIR
="${am__leading_dot}deps"
25115 ac_config_commands
="$ac_config_commands depfiles"
25118 am_make
=${MAKE-make}
25119 cat > confinc
<< 'END'
25121 @
echo this is the am__doit target
25124 # If we don't find an include directive, just comment out the code.
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25126 $as_echo_n "checking for style of include used by $am_make... " >&6; }
25130 # First try GNU make style include.
25131 echo "include confinc" > confmf
25132 # Ignore all kinds of additional output from 'make'.
25133 case `$am_make -s -f confmf 2> /dev/null` in #(
25134 *the\ am__doit\ target
*)
25135 am__include
=include
25140 # Now try BSD make style include.
25141 if test "$am__include" = "#"; then
25142 echo '.include "confinc"' > confmf
25143 case `$am_make -s -f confmf 2> /dev/null` in #(
25144 *the\ am__doit\ target
*)
25145 am__include
=.include
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
25154 $as_echo "$_am_result" >&6; }
25155 rm -f confinc confmf
25157 # Check whether --enable-dependency-tracking was given.
25158 if test "${enable_dependency_tracking+set}" = set; then :
25159 enableval
=$enable_dependency_tracking;
25162 if test "x$enable_dependency_tracking" != xno
; then
25163 am_depcomp
="$ac_aux_dir/depcomp"
25167 if test "x$enable_dependency_tracking" != xno; then
25176 # Check whether --enable-silent-rules was given.
25177 if test "${enable_silent_rules+set}" = set; then :
25178 enableval
=$enable_silent_rules;
25181 case $enable_silent_rules in # (((
25182 yes) AM_DEFAULT_VERBOSITY
=0;;
25183 no
) AM_DEFAULT_VERBOSITY
=1;;
25184 *) AM_DEFAULT_VERBOSITY
=1;;
25186 am_make
=${MAKE-make}
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25188 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25189 if ${am_cv_make_support_nested_variables+:} false
; then :
25190 $as_echo_n "(cached) " >&6
25192 if $as_echo 'TRUE=$(BAR$(V))
25198 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25199 am_cv_make_support_nested_variables
=yes
25201 am_cv_make_support_nested_variables
=no
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25205 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25206 if test $am_cv_make_support_nested_variables = yes; then
25208 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25210 AM_V
=$AM_DEFAULT_VERBOSITY
25211 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25215 if test "`cd $srcdir && pwd`" != "`pwd`"; then
25216 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25217 # is not polluted with repeated "-I."
25218 am__isrc
=' -I$(srcdir)'
25219 # test to see if srcdir already configured
25220 if test -f $srcdir/config.status
; then
25221 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25225 # test whether we have cygpath
25226 if test -z "$CYGPATH_W"; then
25227 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
25228 CYGPATH_W
='cygpath -w'
25235 # Define the identity of the package.
25237 VERSION
='UNUSED-VERSION'
25240 # Some tools Automake needs.
25242 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
25245 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
25248 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25251 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
25254 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
25256 # For better backward compatibility. To be removed once Automake 1.9.x
25257 # dies out for good. For more background, see:
25258 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
25259 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
25260 mkdir_p
='$(MKDIR_P)'
25262 # We need awk for the "check" target (and possibly the TAP driver). The
25263 # system "awk" is bad on some platforms.
25264 # Always define AMTAR for backward compatibility. Yes, it's still used
25265 # in the wild :-( We should find a proper way to deprecate it ...
25266 AMTAR
='$${TAR-tar}'
25269 # We'll loop over all known methods to create a tar archive until one works.
25270 _am_tools
='gnutar pax cpio none'
25272 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
25278 depcc
="$CC" am_compiler_list
=
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25281 $as_echo_n "checking dependency style of $depcc... " >&6; }
25282 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
25283 $as_echo_n "(cached) " >&6
25285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25286 # We make a subdir and do the tests there. Otherwise we can end up
25287 # making bogus files that we don't know about and never remove. For
25288 # instance it was reported that on HP-UX the gcc test will end up
25289 # making a dummy file named 'D' -- because '-MD' means "put the output
25291 rm -rf conftest.dir
25293 # Copy depcomp to subdir because otherwise we won't find it if we're
25294 # using a relative directory.
25295 cp "$am_depcomp" conftest.dir
25297 # We will build objects and dependencies in a subdirectory because
25298 # it helps to detect inapplicable dependency modes. For instance
25299 # both Tru64's cc and ICC support -MD to output dependencies as a
25300 # side effect of compilation, but ICC will put the dependencies in
25301 # the current directory while Tru64 will put them in the object
25305 am_cv_CC_dependencies_compiler_type
=none
25306 if test "$am_compiler_list" = ""; then
25307 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25309 am__universal
=false
25310 case " $depcc " in #(
25311 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
25314 for depmode
in $am_compiler_list; do
25315 # Setup a source with many dependencies, because some compilers
25316 # like to wrap large dependency lists on column 80 (with \), and
25317 # we should not choose a depcomp mode which is confused by this.
25319 # We need to recreate these files for each test, as the compiler may
25320 # overwrite some of them when testing with obscure command lines.
25321 # This happens at least with the AIX C compiler.
25323 for i
in 1 2 3 4 5 6; do
25324 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
25325 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25326 # Solaris 10 /bin/sh.
25327 echo '/* dummy */' > sub
/conftst
$i.h
25329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25331 # We check with '-c' and '-o' for the sake of the "dashmstdout"
25332 # mode. It turns out that the SunPro C++ compiler does not properly
25333 # handle '-M -o', and we need to detect this. Also, some Intel
25334 # versions had trouble with output in subdirs.
25335 am__obj
=sub
/conftest.
${OBJEXT-o}
25336 am__minus_obj
="-o $am__obj"
25339 # This depmode causes a compiler race in universal mode.
25340 test "$am__universal" = false ||
continue
25343 # After this tag, mechanisms are not by side-effect, so they'll
25344 # only be used when explicitly requested.
25345 if test "x$enable_dependency_tracking" = xyes
; then
25351 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
25352 # This compiler won't grok '-c -o', but also, the minuso test has
25353 # not run yet. These depmodes are late enough in the game, and
25354 # so weak that their functioning should not be impacted.
25355 am__obj
=conftest.
${OBJEXT-o}
25360 if depmode
=$depmode \
25361 source=sub
/conftest.c object
=$am__obj \
25362 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
25363 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
25364 >/dev
/null
2>conftest.err
&&
25365 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25366 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25367 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
25368 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
25369 # icc doesn't choke on unknown options, it will just issue warnings
25370 # or remarks (even with -Werror). So we grep stderr for any message
25371 # that says an option was ignored or not supported.
25372 # When given -MP, icc 7.0 and 7.1 complain thusly:
25373 # icc: Command line warning: ignoring option '-M'; no argument required
25374 # The diagnosis changed in icc 8.0:
25375 # icc: Command line remark: option '-MP' not supported
25376 if (grep 'ignoring option' conftest.err ||
25377 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
25378 am_cv_CC_dependencies_compiler_type
=$depmode
25385 rm -rf conftest.dir
25387 am_cv_CC_dependencies_compiler_type
=none
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
25392 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
25393 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
25396 test "x$enable_dependency_tracking" != xno \
25397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
25398 am__fastdepCC_TRUE
=
25399 am__fastdepCC_FALSE
='#'
25401 am__fastdepCC_TRUE
='#'
25402 am__fastdepCC_FALSE
=
25407 # POSIX will say in a future version that running "rm -f" with no argument
25408 # is OK; and we want to be able to make that assumption in our Makefile
25409 # recipes. So use an aggressive probe to check that the usage we want is
25410 # actually supported "in the wild" to an acceptable degree.
25411 # See automake bug#10828.
25412 # To make any issue more visible, cause the running configure to be aborted
25413 # by default if the 'rm' program in use doesn't match our expectations; the
25414 # user can still override this though.
25415 if rm -f && rm -fr && rm -rf; then : OK
; else
25419 Your 'rm' program seems unable to run without file operands specified
25420 on the command line, even when the '-f' option is present. This is contrary
25421 to the behaviour of most rm programs out there, and not conforming with
25422 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
25424 Please tell bug-automake@gnu.org about your system, including the value
25425 of your $PATH and any error possibly output before this message. This
25426 can help us improve future automake versions.
25429 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
25430 echo 'Configuration will proceed anyway, since you have set the' >&2
25431 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
25435 Aborting the configuration process, to ensure you take notice of the issue.
25437 You can download and install GNU coreutils to get an 'rm' implementation
25438 that behaves properly: <http://www.gnu.org/software/coreutils/>.
25440 If you want to complete the configuration process using your problematic
25441 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
25442 to "yes", and re-run configure.
25445 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
25450 # Check whether --enable-silent-rules was given.
25451 if test "${enable_silent_rules+set}" = set; then :
25452 enableval
=$enable_silent_rules;
25455 case $enable_silent_rules in # (((
25456 yes) AM_DEFAULT_VERBOSITY
=0;;
25457 no
) AM_DEFAULT_VERBOSITY
=1;;
25458 *) AM_DEFAULT_VERBOSITY
=0;;
25460 am_make
=${MAKE-make}
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25462 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25463 if ${am_cv_make_support_nested_variables+:} false
; then :
25464 $as_echo_n "(cached) " >&6
25466 if $as_echo 'TRUE=$(BAR$(V))
25472 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25473 am_cv_make_support_nested_variables
=yes
25475 am_cv_make_support_nested_variables
=no
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25479 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25480 if test $am_cv_make_support_nested_variables = yes; then
25482 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25484 AM_V
=$AM_DEFAULT_VERBOSITY
25485 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25490 # --------------------- #
25491 # Checks for programs. #
25492 # --------------------- #
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25496 $as_echo_n "checking whether ln -s works... " >&6; }
25498 if test "$LN_S" = "ln -s"; then
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25500 $as_echo "yes" >&6; }
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25503 $as_echo "no, using $LN_S" >&6; }
25506 if test -n "$ac_tool_prefix"; then
25507 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25508 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25510 $as_echo_n "checking for $ac_word... " >&6; }
25511 if ${ac_cv_prog_RANLIB+:} false; then :
25512 $as_echo_n "(cached) " >&6
25514 if test -n "$RANLIB"; then
25515 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25518 for as_dir in $PATH
25521 test -z "$as_dir" && as_dir=.
25522 for ac_exec_ext in '' $ac_executable_extensions; do
25523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25524 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25534 RANLIB=$ac_cv_prog_RANLIB
25535 if test -n "$RANLIB"; then
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25537 $as_echo "$RANLIB" >&6; }
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540 $as_echo "no" >&6; }
25545 if test -z "$ac_cv_prog_RANLIB"; then
25546 ac_ct_RANLIB=$RANLIB
25547 # Extract the first word of "ranlib", so it can be a program name with args.
25548 set dummy ranlib; ac_word=$2
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25550 $as_echo_n "checking for $ac_word... " >&6; }
25551 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25552 $as_echo_n "(cached) " >&6
25554 if test -n "$ac_ct_RANLIB"; then
25555 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25558 for as_dir in $PATH
25561 test -z "$as_dir" && as_dir=.
25562 for ac_exec_ext in '' $ac_executable_extensions; do
25563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25564 ac_cv_prog_ac_ct_RANLIB="ranlib"
25565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25574 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25575 if test -n "$ac_ct_RANLIB"; then
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25577 $as_echo "$ac_ct_RANLIB" >&6; }
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25580 $as_echo "no" >&6; }
25583 if test "x$ac_ct_RANLIB" = x; then
25586 case $cross_compiling:$ac_tool_warned in
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25590 ac_tool_warned=yes ;;
25592 RANLIB=$ac_ct_RANLIB
25595 RANLIB="$ac_cv_prog_RANLIB"
25599 if test -n "$ac_tool_prefix"; then
25600 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25601 set dummy ${ac_tool_prefix}ar; ac_word=$2
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25603 $as_echo_n "checking for $ac_word... " >&6; }
25604 if ${ac_cv_prog_AR+:} false; then :
25605 $as_echo_n "(cached) " >&6
25607 if test -n "$AR"; then
25608 ac_cv_prog_AR="$AR" # Let the user override the test.
25610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25611 for as_dir in $PATH
25614 test -z "$as_dir" && as_dir=.
25615 for ac_exec_ext in '' $ac_executable_extensions; do
25616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25617 ac_cv_prog_AR="${ac_tool_prefix}ar"
25618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25628 if test -n "$AR"; then
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25630 $as_echo "$AR" >&6; }
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25633 $as_echo "no" >&6; }
25638 if test -z "$ac_cv_prog_AR"; then
25640 # Extract the first word of "ar", so it can be a program name with args.
25641 set dummy ar; ac_word=$2
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25643 $as_echo_n "checking for $ac_word... " >&6; }
25644 if ${ac_cv_prog_ac_ct_AR+:} false; then :
25645 $as_echo_n "(cached) " >&6
25647 if test -n "$ac_ct_AR"; then
25648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
25650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25651 for as_dir in $PATH
25654 test -z "$as_dir" && as_dir=.
25655 for ac_exec_ext in '' $ac_executable_extensions; do
25656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25657 ac_cv_prog_ac_ct_AR="ar"
25658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
25668 if test -n "$ac_ct_AR"; then
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25670 $as_echo "$ac_ct_AR" >&6; }
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 $as_echo "no" >&6; }
25676 if test "x$ac_ct_AR" = x; then
25679 case $cross_compiling:$ac_tool_warned in
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25683 ac_tool_warned=yes ;;
25688 AR="$ac_cv_prog_AR"
25692 # ---------------------- #
25693 # Checks for libraries. #
25694 # ---------------------- #
25696 ac_config_files="$ac_config_files Makefile import/Makefile"
25698 ac_config_commands="$ac_config_commands default"
25700 cat >confcache <<\_ACEOF
25701 # This file is a shell script that caches the results of configure
25702 # tests run on this system so they can be shared between configure
25703 # scripts and configure runs, see configure's option
--config-cache.
25704 # It is not useful on other systems. If it contains results you don't
25705 # want to keep, you may remove or edit it.
25707 # config.status only pays attention to the cache file if you give it
25708 # the --recheck option to rerun configure.
25710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25712 # following values.
25716 # The following way of writing the cache mishandles newlines in values,
25717 # but we know of no workaround that is simple, portable, and efficient.
25718 # So, we kill variables containing newlines.
25719 # Ultrix sh set writes to stderr and can't be redirected directly,
25720 # and sets the high bit in the cache file unless we assign to the vars.
25722 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25723 eval ac_val
=\$
$ac_var
25727 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25728 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25731 _ | IFS | as_nl
) ;; #(
25732 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25733 *) { eval $ac_var=; unset $ac_var;} ;;
25739 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25740 *${as_nl}ac_space
=\
*)
25741 # `set' does not quote correctly, so add quotes: double-quote
25742 # substitution turns \\\\ into \\, and sed turns \\ into \.
25745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25748 # `set' quotes correctly as required by POSIX, so do not add quotes.
25749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25760 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25762 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25763 if test -w "$cache_file"; then
25764 if test "x$cache_file" != "x/dev/null"; then
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25766 $as_echo "$as_me: updating cache $cache_file" >&6;}
25767 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
25768 cat confcache
>"$cache_file"
25770 case $cache_file in #(
25772 mv -f confcache
"$cache_file"$$
&&
25773 mv -f "$cache_file"$$
"$cache_file" ;; #(
25775 mv -f confcache
"$cache_file" ;;
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25781 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25786 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25787 # Let make expand exec_prefix.
25788 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25790 DEFS
=-DHAVE_CONFIG_H
25794 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25795 # 1. Remove the extension, and $U if already installed.
25796 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25797 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25799 # will be set to the directory where LIBOBJS objects are built.
25800 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25801 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25803 LIBOBJS
=$ac_libobjs
25805 LTLIBOBJS
=$ac_ltlibobjs
25808 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25809 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
25810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25812 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25813 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
25814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25816 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25817 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25820 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25821 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25824 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25825 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25828 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
25829 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
25830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25832 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
25833 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
25834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25836 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25837 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25840 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25841 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25844 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25845 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
25846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25850 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25851 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25854 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25855 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25861 if test -n "$gl_LIBOBJS"; then
25862 # Remove the extension.
25863 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25864 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25865 gl_libobjs
="$gl_libobjs $i.$ac_objext"
25866 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
25869 gl_LIBOBJS
=$gl_libobjs
25871 gl_LTLIBOBJS
=$gl_ltlibobjs
25877 if test -n "$gltests_LIBOBJS"; then
25878 # Remove the extension.
25879 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25880 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25881 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
25882 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
25885 gltests_LIBOBJS
=$gltests_libobjs
25887 gltests_LTLIBOBJS
=$gltests_ltlibobjs
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25892 if test -n "$am_sleep_pid"; then
25893 # Hide warnings about reused PIDs.
25894 wait $am_sleep_pid 2>/dev
/null
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25897 $as_echo "done" >&6; }
25898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25899 as_fn_error $?
"conditional \"AMDEP\" was never defined.
25900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25903 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
25904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25906 if test -n "$EXEEXT"; then
25908 am__EXEEXT_FALSE
='#'
25910 am__EXEEXT_TRUE
='#'
25915 : "${CONFIG_STATUS=./config.status}"
25917 ac_clean_files_save
=$ac_clean_files
25918 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25920 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25922 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25924 # Generated by $as_me.
25925 # Run this file to recreate the current configuration.
25926 # Compiler output produced by configure, useful for debugging
25927 # configure, is in config.log if it exists.
25930 ac_cs_recheck=false
25933 SHELL=\${CONFIG_SHELL-$SHELL}
25936 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25937 ## -------------------- ##
25938 ## M4sh Initialization. ##
25939 ## -------------------- ##
25941 # Be more Bourne compatible
25942 DUALCASE
=1; export DUALCASE
# for MKS sh
25943 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25946 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25947 # is contrary to our usage. Disable this feature.
25948 alias -g '${1+"$@"}'='"$@"'
25949 setopt NO_GLOB_SUBST
25951 case `(set -o) 2>/dev/null` in #(
25963 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25964 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25966 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25967 # Prefer a ksh shell builtin over an external printf program on Solaris,
25968 # but without wasting forks for bash or zsh.
25969 if test -z "$BASH_VERSION$ZSH_VERSION" \
25970 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25971 as_echo='print
-r --'
25972 as_echo_n='print
-rn --'
25973 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25974 as_echo='printf %s
\n'
25975 as_echo_n='printf %s
'
25977 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25978 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25979 as_echo_n='/usr
/ucb
/echo -n'
25981 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25982 as_echo_n_body='eval
25986 expr "X$arg" : "X\\(.*\\)$as_nl";
25987 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25989 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25991 export as_echo_n_body
25992 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25994 export as_echo_body
25995 as_echo='sh
-c $as_echo_body as_echo
'
25998 # The user is always right.
25999 if test "${PATH_SEPARATOR+set}" != set; then
26001 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26002 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26009 # We need space, tab and new line, in precisely that order. Quoting is
26010 # there to prevent editors from complaining about space-tab.
26011 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26012 # splitting by setting IFS to empty value.)
26015 # Find who we are. Look in the path if we contain no directory separator.
26018 *[\\/]* ) as_myself=$0 ;;
26019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26020 for as_dir in $PATH
26023 test -z "$as_dir" && as_dir=.
26024 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26030 # We did not find ourselves, most probably we were run as `sh COMMAND'
26031 # in which case we are not to be found in the path.
26032 if test "x$as_myself" = x
; then
26035 if test ! -f "$as_myself"; then
26036 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26040 # Unset variables that we do not need and which cause bugs (e.g. in
26041 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26042 # suppresses any "Segmentation fault" message there. '((' could
26043 # trigger a bug in pdksh 5.2.14.
26044 for as_var
in BASH_ENV ENV MAIL MAILPATH
26045 do eval test x\
${$as_var+set} = xset \
26046 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26059 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26062 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26063 # ----------------------------------------
26064 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26065 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26066 # script with STATUS, using 1 if that was 0.
26069 as_status
=$1; test $as_status -eq 0 && as_status
=1
26071 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26072 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26074 $as_echo "$as_me: error: $2" >&2
26075 as_fn_exit
$as_status
26079 # as_fn_set_status STATUS
26080 # -----------------------
26081 # Set $? to STATUS, without forking.
26082 as_fn_set_status
()
26085 } # as_fn_set_status
26087 # as_fn_exit STATUS
26088 # -----------------
26089 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26093 as_fn_set_status
$1
26099 # Portably unset VAR.
26102 { eval $1=; unset $1;}
26104 as_unset
=as_fn_unset
26105 # as_fn_append VAR VALUE
26106 # ----------------------
26107 # Append the text in VALUE to the end of the definition contained in VAR. Take
26108 # advantage of any shell optimizations that allow amortized linear growth over
26109 # repeated appends, instead of the typical quadratic growth present in naive
26111 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26112 eval 'as_fn_append ()
26123 # as_fn_arith ARG...
26124 # ------------------
26125 # Perform arithmetic evaluation on the ARGs, and store the result in the
26126 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26127 # must be portable across $(()) and expr.
26128 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26129 eval 'as_fn_arith ()
26136 as_val
=`expr "$@" || test $? -eq 1`
26141 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26142 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26148 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26149 as_basename
=basename
26154 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26160 as_me
=`$as_basename -- "$0" ||
26161 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26162 X"$0" : 'X\(//\)$' \| \
26163 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26165 sed '/^.*\/\([^/][^/]*\)\/*$/{
26179 # Avoid depending upon Character Ranges.
26180 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26181 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26182 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26183 as_cr_digits
='0123456789'
26184 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26186 ECHO_C
= ECHO_N
= ECHO_T
=
26187 case `echo -n x` in #(((((
26189 case `echo 'xy\c'` in
26190 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26192 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26199 rm -f conf$$ conf$$.exe conf$$.
file
26200 if test -d conf$$.dir
; then
26201 rm -f conf$$.dir
/conf$$.
file
26204 mkdir conf$$.dir
2>/dev
/null
26206 if (echo >conf$$.
file) 2>/dev
/null
; then
26207 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26209 # ... but there are two gotchas:
26210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26212 # In both cases, we have to default to `cp -pR'.
26213 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26215 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26223 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26224 rmdir conf$$.dir
2>/dev
/null
26229 # Create "$as_dir" as a directory, including parents if necessary.
26234 -*) as_dir
=.
/$as_dir;;
26236 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26240 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26241 *) as_qdir
=$as_dir;;
26243 as_dirs
="'$as_qdir' $as_dirs"
26244 as_dir
=`$as_dirname -- "$as_dir" ||
26245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26246 X"$as_dir" : 'X\(//\)[^/]' \| \
26247 X"$as_dir" : 'X\(//\)$' \| \
26248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26249 $as_echo X"$as_dir" |
26250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26254 /^X\(\/\/\)[^/].*/{
26267 test -d "$as_dir" && break
26269 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26270 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
26274 if mkdir
-p .
2>/dev
/null
; then
26275 as_mkdir_p
='mkdir -p "$as_dir"'
26277 test -d .
/-p && rmdir .
/-p
26282 # as_fn_executable_p FILE
26283 # -----------------------
26284 # Test if FILE is an executable regular file.
26285 as_fn_executable_p
()
26287 test -f "$1" && test -x "$1"
26288 } # as_fn_executable_p
26289 as_test_x
='test -x'
26290 as_executable_p
=as_fn_executable_p
26292 # Sed expression to map a string onto a valid CPP name.
26293 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26295 # Sed expression to map a string onto a valid variable name.
26296 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26300 ## ----------------------------------- ##
26301 ## Main body of $CONFIG_STATUS script. ##
26302 ## ----------------------------------- ##
26304 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26307 # Save the log message, to keep $0 and so on meaningful, and to
26308 # report actual input values of CONFIG_FILES etc. instead of their
26309 # values after options handling.
26311 This file was extended by libgnu $as_me UNUSED-VERSION, which was
26312 generated by GNU Autoconf 2.69. Invocation command line was
26314 CONFIG_FILES = $CONFIG_FILES
26315 CONFIG_HEADERS = $CONFIG_HEADERS
26316 CONFIG_LINKS = $CONFIG_LINKS
26317 CONFIG_COMMANDS = $CONFIG_COMMANDS
26320 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26325 case $ac_config_files in *"
26326 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26329 case $ac_config_headers in *"
26330 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26335 # Files that config.status was made for.
26336 config_files="$ac_config_files"
26337 config_headers="$ac_config_headers"
26338 config_commands="$ac_config_commands"
26342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26344 \`$as_me' instantiates files and other configuration actions
26345 from templates according to the current configuration. Unless the files
26346 and actions are specified as TAGs, all are instantiated by default.
26348 Usage: $0 [OPTION]... [TAG]...
26350 -h, --help print this help, then exit
26351 -V, --version print version number and configuration settings, then exit
26352 --config print configuration, then exit
26353 -q, --quiet, --silent
26354 do not print progress messages
26355 -d, --debug don't remove temporary files
26356 --recheck update $as_me by reconfiguring in the same conditions
26357 --file=FILE[:TEMPLATE]
26358 instantiate the configuration file FILE
26359 --header=FILE[:TEMPLATE]
26360 instantiate the configuration header FILE
26362 Configuration files:
26365 Configuration headers:
26368 Configuration commands:
26371 Report bugs to the package provider."
26374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26375 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26377 libgnu config.status UNUSED-VERSION
26378 configured by $0, generated by GNU Autoconf 2.69,
26379 with options \\"\$ac_cs_config\\"
26381 Copyright (C) 2012 Free Software Foundation, Inc.
26382 This config.status script is free software; the Free Software Foundation
26383 gives unlimited permission to copy, distribute and modify it."
26390 test -n "\$AWK" || AWK=awk
26393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26394 # The default lists apply if the user does not specify any file.
26400 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26401 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26405 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26417 # Handling of the options.
26418 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26420 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26421 $as_echo "$ac_cs_version"; exit ;;
26422 --config |
--confi |
--conf |
--con |
--co |
--c )
26423 $as_echo "$ac_cs_config"; exit ;;
26424 --debug |
--debu |
--deb |
--de |
--d |
-d )
26426 --file |
--fil |
--fi |
--f )
26429 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26430 '') as_fn_error $?
"missing file argument" ;;
26432 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26433 ac_need_defaults
=false
;;
26434 --header |
--heade |
--head |
--hea )
26437 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26439 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26440 ac_need_defaults
=false
;;
26442 # Conflict between --help and --header
26443 as_fn_error $?
"ambiguous option: \`$1'
26444 Try \`$0 --help' for more information.";;
26445 --help |
--hel |
-h )
26446 $as_echo "$ac_cs_usage"; exit ;;
26447 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26448 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26451 # This is an error.
26452 -*) as_fn_error $?
"unrecognized option: \`$1'
26453 Try \`$0 --help' for more information." ;;
26455 *) as_fn_append ac_config_targets
" $1"
26456 ac_need_defaults
=false
;;
26462 ac_configure_extra_args
=
26464 if $ac_cs_silent; then
26466 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26471 if \$ac_cs_recheck; then
26472 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26474 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26475 CONFIG_SHELL='$SHELL'
26476 export CONFIG_SHELL
26481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26486 ## Running $as_me. ##
26492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26502 # Handling of arguments.
26503 for ac_config_target
in $ac_config_targets
26505 case $ac_config_target in
26506 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
26507 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26508 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26509 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
26510 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26512 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26517 # If the user did not use the arguments to specify the items to instantiate,
26518 # then the envvar interface is used. Set only those that are not.
26519 # We use the long form for the default assignment because of an extremely
26520 # bizarre bug on SunOS 4.1.3.
26521 if $ac_need_defaults; then
26522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26524 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26527 # Have a temporary directory for convenience. Make it in the build tree
26528 # simply because there is no reason against having it here, and in addition,
26529 # creating and moving files from /tmp can sometimes cause problems.
26530 # Hook for its removal unless debugging.
26531 # Note that there is a small window in which the directory will not be cleaned:
26532 # after its creation but before its name has been assigned to `$tmp'.
26536 trap 'exit_status=$?
26537 : "${ac_tmp:=$tmp}"
26538 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26540 trap 'as_fn_exit 1' 1 2 13 15
26542 # Create a (secure) tmp directory for tmp files.
26545 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26549 tmp
=.
/conf$$
-$RANDOM
26550 (umask 077 && mkdir
"$tmp")
26551 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
26554 # Set up the scripts for CONFIG_FILES section.
26555 # No need to generate them if there are no CONFIG_FILES.
26556 # This happens for instance with `./config.status config.h'.
26557 if test -n "$CONFIG_FILES"; then
26560 ac_cr
=`echo X | tr X '\015'`
26561 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26562 # But we know of no other shell where ac_cr would be empty at this
26563 # point, so we can use a bashism as a fallback.
26564 if test "x$ac_cr" = x
; then
26565 eval ac_cr
=\$
\'\\r
\'
26567 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26568 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26571 ac_cs_awk_cr
=$ac_cr
26574 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26579 echo "cat >conf$$subs.awk <<_ACEOF" &&
26580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26582 } >conf$$subs.sh ||
26583 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26586 for ac_last_try in false false false false false :; do
26587 . ./conf$$subs.sh ||
26588 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26590 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26591 if test $ac_delim_n = $ac_delim_num; then
26593 elif $ac_last_try; then
26594 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26596 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26599 rm -f conf$$subs.sh
26601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
26606 s/^/S["/; s
/!.
*/"]=/
26616 s/\(.\{148\}\)..*/\1/
26618 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26623 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26630 s/\(.\{148\}\)..*/\1/
26632 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26636 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26641 ' <conf$$subs.awk | sed '
26646 ' >>$CONFIG_STATUS || ac_write_fail=1
26647 rm -f conf$$subs.awk
26648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
26651 for (key in S) S_is_set[key] = 1
26657 nfields = split(line, field, "@
")
26659 len = length(field[1])
26660 for (i = 2; i < nfields; i++) {
26662 keylen = length(key)
26663 if (S_is_set[key]) {
26665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26666 len += length(value) + length(field[++i])
26677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26678 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26679 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26682 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
26683 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
26686 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26687 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
26688 # trailing colons and then remove the whole line if VPATH becomes empty
26689 # (actually we leave an empty line to preserve line numbers).
26690 if test "x
$srcdir" = x.; then
26691 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26710 fi # test -n "$CONFIG_FILES"
26712 # Set up the scripts for CONFIG_HEADERS section.
26713 # No need to generate them if there are no CONFIG_HEADERS.
26714 # This happens for instance with `./config.status Makefile'.
26715 if test -n "$CONFIG_HEADERS"; then
26716 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
26720 # Transform confdefs.h into an awk script `defines.awk', embedded as
26721 # here-document in config.status, that substitutes the proper values into
26722 # config.h.in to produce config.h.
26724 # Create a delimiter string that does not exist in confdefs.h, to ease
26725 # handling of long lines.
26727 for ac_last_try in false false :; do
26728 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
26729 if test -z "$ac_tt"; then
26731 elif $ac_last_try; then
26732 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
26734 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26738 # For the awk script, D is an array of macro values keyed by name,
26739 # likewise P contains macro parameters if any. Preserve backslash
26740 # newline sequences.
26742 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26744 s/.\{148\}/&'"$ac_delim"'/g
26747 s/^[ ]*#[ ]*define[ ][ ]*/ /
26754 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26756 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26760 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26761 D["\
1"]=" \
3\\\\\\n
"\\/p
26763 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26768 s/.\{148\}/&'"$ac_delim"'/g
26773 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26776 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26778 ' <confdefs.h | sed '
26779 s/'"$ac_delim"'/"\\\
26780 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26783 for (key in D) D_is_set[key] = 1
26786 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26788 split(line, arg, " ")
26789 if (arg[1] == "#") {
26793 defundef
= substr
(arg
[1], 2)
26796 split(mac1
, mac2
, "(") #)
26798 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26799 if (D_is_set
[macro
]) {
26800 # Preserve the white space surrounding the "#".
26801 print prefix
"define", macro P
[macro
] D
[macro
]
26804 # Replace #undef with comments. This is necessary, for example,
26805 # in the case of _POSIX_SOURCE, which is predefined and required
26806 # on some systems where configure will not decide to define it.
26807 if (defundef
== "undef") {
26808 print
"/*", prefix defundef
, macro
, "*/"
26816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26817 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
26818 fi # test -n "$CONFIG_HEADERS"
26821 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26826 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26828 case $ac_mode$ac_tag in
26830 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26831 :[FH
]-) ac_tag
=-:-;;
26832 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26849 -) ac_f
="$ac_tmp/stdin";;
26850 *) # Look for the file first in the build tree, then in the source tree
26851 # (if the path is not absolute). The absolute path cannot be DOS-style,
26852 # because $ac_f cannot contain `:'.
26856 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26858 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26860 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26861 as_fn_append ac_file_inputs
" '$ac_f'"
26864 # Let's still pretend it is `configure' which instantiates (i.e., don't
26865 # use $as_me), people would be surprised to read:
26866 # /* config.h. Generated by config.status. */
26867 configure_input
='Generated from '`
26868 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26870 if test x
"$ac_file" != x-
; then
26871 configure_input
="$ac_file. $configure_input"
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26873 $as_echo "$as_me: creating $ac_file" >&6;}
26875 # Neutralize special characters interpreted by sed in replacement strings.
26876 case $configure_input in #(
26877 *\
&* |
*\|
* |
*\\* )
26878 ac_sed_conf_input
=`$as_echo "$configure_input" |
26879 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26880 *) ac_sed_conf_input
=$configure_input;;
26884 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
26885 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
26890 ac_dir
=`$as_dirname -- "$ac_file" ||
26891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892 X"$ac_file" : 'X\(//\)[^/]' \| \
26893 X"$ac_file" : 'X\(//\)$' \| \
26894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26895 $as_echo X"$ac_file" |
26896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26900 /^X\(\/\/\)[^/].*/{
26913 as_dir
="$ac_dir"; as_fn_mkdir_p
26917 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26919 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26920 # A ".." for each directory in $ac_dir_suffix.
26921 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26922 case $ac_top_builddir_sub in
26923 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26924 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26927 ac_abs_top_builddir
=$ac_pwd
26928 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26929 # for backward compatibility:
26930 ac_top_builddir
=$ac_top_build_prefix
26933 .
) # We are building in place.
26935 ac_top_srcdir
=$ac_top_builddir_sub
26936 ac_abs_top_srcdir
=$ac_pwd ;;
26937 [\\/]* | ?
:[\\/]* ) # Absolute name.
26938 ac_srcdir
=$srcdir$ac_dir_suffix;
26939 ac_top_srcdir
=$srcdir
26940 ac_abs_top_srcdir
=$srcdir ;;
26941 *) # Relative name.
26942 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26943 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26944 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26946 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26956 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26957 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26959 ac_MKDIR_P
=$MKDIR_P
26961 [\\/$
]* | ?
:[\\/]* ) ;;
26962 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26967 # If the template does not know about datarootdir, expand it.
26968 # FIXME: This hack should be removed a few years after 2.60.
26969 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26980 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26981 *datarootdir
*) ac_datarootdir_seen
=yes;;
26982 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26984 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26987 ac_datarootdir_hack='
26988 s&@datadir@&$datadir&g
26989 s&@docdir@&$docdir&g
26990 s&@infodir@&$infodir&g
26991 s&@localedir@&$localedir&g
26992 s&@mandir@&$mandir&g
26993 s&\\\${datarootdir}&$datarootdir&g' ;;
26997 # Neutralize VPATH when `$srcdir' = `.'.
26998 # Shell code in configure.ac might set extrasub.
26999 # FIXME: do we really want to maintain this feature?
27000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27001 ac_sed_extra="$ac_vpsub
27004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27006 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27007 s|@configure_input@|
$ac_sed_conf_input|
;t t
27008 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27009 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27010 s
&@srcdir@
&$ac_srcdir&;t t
27011 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27012 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27013 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27014 s
&@builddir@
&$ac_builddir&;t t
27015 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27016 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27017 s
&@INSTALL@
&$ac_INSTALL&;t t
27018 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27019 $ac_datarootdir_hack
27021 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
27022 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
27024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
27026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27027 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27029 which seems to be undefined. Please make sure it is defined" >&5
27030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27031 which seems to be undefined. Please make sure it is defined" >&2;}
27033 rm -f "$ac_tmp/stdin"
27035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27044 if test x"$ac_file" != x-; then
27046 $as_echo "/* $configure_input */" \
27047 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27048 } >"$ac_tmp/config.h" \
27049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27050 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27052 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27055 mv "$ac_tmp/config.h" "$ac_file" \
27056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27059 $as_echo "/* $configure_input */" \
27060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27061 || as_fn_error $? "could not create -" "$LINENO" 5
27063 # Compute "$ac_file"'s index
in $config_headers.
27066 for _am_header
in $config_headers :; do
27067 case $_am_header in
27068 $_am_arg |
$_am_arg:* )
27071 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27074 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27075 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27076 X"$_am_arg" : 'X\(//\)[^/]' \| \
27077 X"$_am_arg" : 'X\(//\)$' \| \
27078 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27079 $as_echo X"$_am_arg" |
27080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27084 /^X\(\/\/\)[^/].*/{
27096 s/.*/./; q'`/stamp-h
$_am_stamp_count
27099 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27100 $as_echo "$as_me: executing $ac_file commands" >&6;}
27105 case $ac_file$ac_mode in
27106 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27107 # Older Autoconf quotes --file arguments for eval, but not when files
27108 # are listed without --file. Let's play safe and only enable the eval
27109 # if we detect the quoting.
27110 case $CONFIG_FILES in
27111 *\'*) eval set x
"$CONFIG_FILES" ;;
27112 *) set x
$CONFIG_FILES ;;
27117 # Strip MF so we end up with the name of the file.
27118 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27119 # Check whether this is an Automake generated Makefile or not.
27120 # We used to match only the files named 'Makefile.in', but
27121 # some people rename them; so instead we look at the file content.
27122 # Grep'ing the first line is not enough: some people post-process
27123 # each Makefile.in and add a new line on top of each file to say so.
27124 # Grep'ing the whole file is not good either: AIX grep has a line
27125 # limit of 2048, but all sed's we know have understand at least 4000.
27126 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27127 dirpart
=`$as_dirname -- "$mf" ||
27128 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27129 X"$mf" : 'X\(//\)[^/]' \| \
27130 X"$mf" : 'X\(//\)$' \| \
27131 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27137 /^X\(\/\/\)[^/].*/{
27153 # Extract the definition of DEPDIR, am__include, and am__quote
27154 # from the Makefile without running 'make'.
27155 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27156 test -z "$DEPDIR" && continue
27157 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27158 test -z "$am__include" && continue
27159 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27160 # Find all dependency output files, they are included files with
27161 # $(DEPDIR) in their names. We invoke sed twice because it is the
27162 # simplest approach to changing $(DEPDIR) to its actual value in the
27164 for file in `sed -n "
27165 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27166 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27167 # Make sure the directory exists.
27168 test -f "$dirpart/$file" && continue
27169 fdir
=`$as_dirname -- "$file" ||
27170 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27171 X"$file" : 'X\(//\)[^/]' \| \
27172 X"$file" : 'X\(//\)$' \| \
27173 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27174 $as_echo X"$file" |
27175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27179 /^X\(\/\/\)[^/].*/{
27192 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27193 # echo "creating $dirpart/$file"
27194 echo '# dummy' > "$dirpart/$file"
27200 case x
$CONFIG_HEADERS in
27201 xconfig.h
:config.
in)
27212 ac_clean_files
=$ac_clean_files_save
27214 test $ac_write_fail = 0 ||
27215 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27218 # configure is writing to config.log, and then calls config.status.
27219 # config.status does its own redirection, appending to config.log.
27220 # Unfortunately, on DOS this fails, as config.log is still kept open
27221 # by configure, so config.status won't be able to write to it; its
27222 # output is simply discarded. So we exec the FD to /dev/null,
27223 # effectively closing config.log, so it can be properly (re)opened and
27224 # appended to by config.status. When coming back to configure, we
27225 # need to make the FD available again.
27226 if test "$no_create" != yes; then
27228 ac_config_status_args
=
27229 test "$silent" = yes &&
27230 ac_config_status_args
="$ac_config_status_args --quiet"
27232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27235 # would make configure fail if this is the last instruction.
27236 $ac_cs_success || as_fn_exit
1
27238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}