2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 gl_use_threads_default
=
625 gl_fnmatch_required
=POSIX
626 ac_subst_vars
='am__EXEEXT_FALSE
656 INSTALL_STRIP_PROGRAM
677 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_UIO_H
721 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
723 NEXT_AS_FIRST_DIRECTIVE_STRING_H
725 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
727 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
729 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
731 GL_GENERATE_STDDEF_H_FALSE
732 GL_GENERATE_STDDEF_H_TRUE
738 GL_GENERATE_STDBOOL_H_FALSE
739 GL_GENERATE_STDBOOL_H_TRUE
741 GL_GENERATE_STDALIGN_H_FALSE
742 GL_GENERATE_STDALIGN_H_TRUE
744 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
747 REPLACE_PTHREAD_SIGMASK
749 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
750 HAVE_STRUCT_SIGACTION_SA_SIGACTION
756 HAVE_POSIX_SIGNALBLOCKING
759 GNULIB_SIGNAL_H_SIGPIPE
761 GNULIB_PTHREAD_SIGMASK
769 REPLACE_STDIO_WRITE_FUNCS
770 REPLACE_STDIO_READ_FUNCS
779 REPLACE_OBSTACK_PRINTF
804 HAVE_DECL_OBSTACK_PRINTF
810 GNULIB_VSPRINTF_POSIX
814 GNULIB_VFPRINTF_POSIX
821 GNULIB_STDIO_H_SIGPIPE
822 GNULIB_STDIO_H_NONBLOCKING
837 GNULIB_OBSTACK_PRINTF_POSIX
838 GNULIB_OBSTACK_PRINTF
863 GL_GENERATE_NETINET_IN_H_FALSE
864 GL_GENERATE_NETINET_IN_H_TRUE
867 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1037 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1046 LOCALCHARSET_TESTS_ENVIRONMENT
1048 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1050 UINT64_MAX_EQ_ULONG_MAX
1051 UINT32_MAX_LT_UINTMAX_MAX
1054 INT64_MAX_EQ_LONG_MAX
1055 INT32_MAX_LT_INTMAX_MAX
1066 GL_GENERATE_STDINT_H_FALSE
1067 GL_GENERATE_STDINT_H_TRUE
1079 HAVE_SIGNED_SIG_ATOMIC_T
1082 BITSIZEOF_SIG_ATOMIC_T
1085 APPLE_UNIVERSAL_BUILD
1087 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1092 HAVE_UNSIGNED_LONG_LONG_INT
1094 GL_GENERATE_LIMITS_H_FALSE
1095 GL_GENERATE_LIMITS_H_TRUE
1097 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1101 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1105 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1106 HAVE_STRUCT_SOCKADDR_STORAGE
1124 GL_GENERATE_GLOB_H_FALSE
1125 GL_GENERATE_GLOB_H_TRUE
1127 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1129 REPLACE_STRUCT_TIMEVAL
1130 REPLACE_GETTIMEOFDAY
1138 WINDOWS_64_BIT_ST_SIZE
1139 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1175 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1181 REPLACE_SIGNBIT_USING_GCC
1250 HAVE_DECL_REMAINDERL
1431 GL_GENERATE_FNMATCH_H_FALSE
1432 GL_GENERATE_FNMATCH_H_TRUE
1435 GL_GENERATE_FLOAT_H_FALSE
1436 GL_GENERATE_FLOAT_H_TRUE
1438 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1440 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1457 GL_GENERATE_ERRNO_H_FALSE
1458 GL_GENERATE_ERRNO_H_TRUE
1460 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1463 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1490 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1491 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1492 UNISTD_H_HAVE_WINSOCK2_H
1515 REPLACE_GETDTABLESIZE
1516 REPLACE_GETDOMAINNAME
1527 HAVE_DECL_SETHOSTNAME
1528 HAVE_DECL_GETUSERSHELL
1529 HAVE_DECL_GETPAGESIZE
1530 HAVE_DECL_GETLOGIN_R
1531 HAVE_DECL_GETDOMAINNAME
1570 GNULIB_UNISTD_H_SIGPIPE
1571 GNULIB_UNISTD_H_NONBLOCKING
1597 GNULIB_GETDTABLESIZE
1598 GNULIB_GETDOMAINNAME
1628 REPLACE_CANONICALIZE_FILE_NAME
1633 HAVE_STRUCT_RANDOM_DATA
1656 HAVE_DECL_GETLOADAVG
1657 HAVE_CANONICALIZE_FILE_NAME
1668 GNULIB_SECURE_GETENV
1671 GNULIB_REALLOC_POSIX
1689 GNULIB_CANONICALIZE_FILE_NAME
1695 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1698 PRAGMA_SYSTEM_HEADER
1699 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1708 GL_GENERATE_ALLOCA_H_FALSE
1709 GL_GENERATE_ALLOCA_H_TRUE
1712 GL_COND_LIBTOOL_FALSE
1713 GL_COND_LIBTOOL_TRUE
1741 MAINTAINER_MODE_FALSE
1742 MAINTAINER_MODE_TRUE
1770 program_transform_name
1783 enable_option_checking
1784 enable_maintainer_mode
1791 enable_dependency_tracking
1794 ac_precious_vars
='build_alias
1805 # Initialize some variables set by options.
1807 ac_init_version
=false
1808 ac_unrecognized_opts
=
1809 ac_unrecognized_sep
=
1810 # The variables have the same names as the options, with
1811 # dashes changed to underlines.
1812 cache_file
=/dev
/null
1819 program_transform_name
=s
,x
,x
,
1827 # Installation directory options.
1828 # These are left unexpanded so users can "make install exec_prefix=/foo"
1829 # and all the variables that are supposed to be based on exec_prefix
1830 # by default will actually change.
1831 # Use braces instead of parens because sh, perl, etc. also accept them.
1832 # (The list follows the same order as the GNU Coding Standards.)
1833 bindir
='${exec_prefix}/bin'
1834 sbindir
='${exec_prefix}/sbin'
1835 libexecdir
='${exec_prefix}/libexec'
1836 datarootdir
='${prefix}/share'
1837 datadir
='${datarootdir}'
1838 sysconfdir
='${prefix}/etc'
1839 sharedstatedir
='${prefix}/com'
1840 localstatedir
='${prefix}/var'
1841 includedir
='${prefix}/include'
1842 oldincludedir
='/usr/include'
1843 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1844 infodir
='${datarootdir}/info'
1849 libdir
='${exec_prefix}/lib'
1850 localedir
='${datarootdir}/locale'
1851 mandir
='${datarootdir}/man'
1857 # If the previous option needs an argument, assign it.
1858 if test -n "$ac_prev"; then
1859 eval $ac_prev=\
$ac_option
1865 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1870 # Accept the important Cygnus configure options, so we can diagnose typos.
1872 case $ac_dashdash$ac_option in
1876 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1878 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1879 bindir
=$ac_optarg ;;
1881 -build |
--build |
--buil |
--bui |
--bu)
1882 ac_prev
=build_alias
;;
1883 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1884 build_alias
=$ac_optarg ;;
1886 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1887 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1888 ac_prev
=cache_file
;;
1889 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1890 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1891 cache_file
=$ac_optarg ;;
1893 --config-cache |
-C)
1894 cache_file
=config.cache
;;
1896 -datadir |
--datadir |
--datadi |
--datad)
1898 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1899 datadir
=$ac_optarg ;;
1901 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1902 |
--dataroo |
--dataro |
--datar)
1903 ac_prev
=datarootdir
;;
1904 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1905 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1906 datarootdir
=$ac_optarg ;;
1908 -disable-* |
--disable-*)
1909 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1910 # Reject names that are not valid shell variable names.
1911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1912 as_fn_error $?
"invalid feature name: $ac_useropt"
1913 ac_useropt_orig
=$ac_useropt
1914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1915 case $ac_user_opts in
1917 "enable_
$ac_useropt"
1919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1920 ac_unrecognized_sep
=', ';;
1922 eval enable_
$ac_useropt=no
;;
1924 -docdir |
--docdir |
--docdi |
--doc |
--do)
1926 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1927 docdir
=$ac_optarg ;;
1929 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1931 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1932 dvidir
=$ac_optarg ;;
1934 -enable-* |
--enable-*)
1935 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1936 # Reject names that are not valid shell variable names.
1937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1938 as_fn_error $?
"invalid feature name: $ac_useropt"
1939 ac_useropt_orig
=$ac_useropt
1940 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1941 case $ac_user_opts in
1943 "enable_
$ac_useropt"
1945 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1946 ac_unrecognized_sep
=', ';;
1948 eval enable_
$ac_useropt=\
$ac_optarg ;;
1950 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1951 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1952 |
--exec |
--exe |
--ex)
1953 ac_prev
=exec_prefix
;;
1954 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1955 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1956 |
--exec=* |
--exe=* |
--ex=*)
1957 exec_prefix
=$ac_optarg ;;
1959 -gas |
--gas |
--ga |
--g)
1960 # Obsolete; use --with-gas.
1963 -help |
--help |
--hel |
--he |
-h)
1964 ac_init_help
=long
;;
1965 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1966 ac_init_help
=recursive
;;
1967 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1968 ac_init_help
=short
;;
1970 -host |
--host |
--hos |
--ho)
1971 ac_prev
=host_alias
;;
1972 -host=* |
--host=* |
--hos=* |
--ho=*)
1973 host_alias
=$ac_optarg ;;
1975 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1977 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1979 htmldir
=$ac_optarg ;;
1981 -includedir |
--includedir |
--includedi |
--included |
--include \
1982 |
--includ |
--inclu |
--incl |
--inc)
1983 ac_prev
=includedir
;;
1984 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1985 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1986 includedir
=$ac_optarg ;;
1988 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1990 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1991 infodir
=$ac_optarg ;;
1993 -libdir |
--libdir |
--libdi |
--libd)
1995 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1996 libdir
=$ac_optarg ;;
1998 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1999 |
--libexe |
--libex |
--libe)
2000 ac_prev
=libexecdir
;;
2001 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2002 |
--libexe=* |
--libex=* |
--libe=*)
2003 libexecdir
=$ac_optarg ;;
2005 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2006 ac_prev
=localedir
;;
2007 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2008 localedir
=$ac_optarg ;;
2010 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2011 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2012 ac_prev
=localstatedir
;;
2013 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2014 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2015 localstatedir
=$ac_optarg ;;
2017 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2019 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2020 mandir
=$ac_optarg ;;
2022 -nfp |
--nfp |
--nf)
2023 # Obsolete; use --without-fp.
2026 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2027 |
--no-cr |
--no-c |
-n)
2030 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2031 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2034 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2035 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2036 |
--oldin |
--oldi |
--old |
--ol |
--o)
2037 ac_prev
=oldincludedir
;;
2038 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2039 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2040 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2041 oldincludedir
=$ac_optarg ;;
2043 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2045 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2046 prefix
=$ac_optarg ;;
2048 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2049 |
--program-pre |
--program-pr |
--program-p)
2050 ac_prev
=program_prefix
;;
2051 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2052 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2053 program_prefix
=$ac_optarg ;;
2055 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2056 |
--program-suf |
--program-su |
--program-s)
2057 ac_prev
=program_suffix
;;
2058 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2059 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2060 program_suffix
=$ac_optarg ;;
2062 -program-transform-name |
--program-transform-name \
2063 |
--program-transform-nam |
--program-transform-na \
2064 |
--program-transform-n |
--program-transform- \
2065 |
--program-transform |
--program-transfor \
2066 |
--program-transfo |
--program-transf \
2067 |
--program-trans |
--program-tran \
2068 |
--progr-tra |
--program-tr |
--program-t)
2069 ac_prev
=program_transform_name
;;
2070 -program-transform-name=* |
--program-transform-name=* \
2071 |
--program-transform-nam=* |
--program-transform-na=* \
2072 |
--program-transform-n=* |
--program-transform-=* \
2073 |
--program-transform=* |
--program-transfor=* \
2074 |
--program-transfo=* |
--program-transf=* \
2075 |
--program-trans=* |
--program-tran=* \
2076 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2077 program_transform_name
=$ac_optarg ;;
2079 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2081 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2082 pdfdir
=$ac_optarg ;;
2084 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2086 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2089 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2090 |
-silent |
--silent |
--silen |
--sile |
--sil)
2093 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2095 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2097 sbindir
=$ac_optarg ;;
2099 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2100 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2101 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2103 ac_prev
=sharedstatedir
;;
2104 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2105 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2106 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2108 sharedstatedir
=$ac_optarg ;;
2110 -site |
--site |
--sit)
2112 -site=* |
--site=* |
--sit=*)
2115 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2117 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2118 srcdir
=$ac_optarg ;;
2120 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2121 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2122 ac_prev
=sysconfdir
;;
2123 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2124 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2125 sysconfdir
=$ac_optarg ;;
2127 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2128 ac_prev
=target_alias
;;
2129 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2130 target_alias
=$ac_optarg ;;
2132 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2135 -version |
--version |
--versio |
--versi |
--vers |
-V)
2136 ac_init_version
=: ;;
2139 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2140 # Reject names that are not valid shell variable names.
2141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2142 as_fn_error $?
"invalid package name: $ac_useropt"
2143 ac_useropt_orig
=$ac_useropt
2144 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2145 case $ac_user_opts in
2149 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2150 ac_unrecognized_sep
=', ';;
2152 eval with_
$ac_useropt=\
$ac_optarg ;;
2154 -without-* |
--without-*)
2155 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2156 # Reject names that are not valid shell variable names.
2157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2158 as_fn_error $?
"invalid package name: $ac_useropt"
2159 ac_useropt_orig
=$ac_useropt
2160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2161 case $ac_user_opts in
2165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2166 ac_unrecognized_sep
=', ';;
2168 eval with_
$ac_useropt=no
;;
2171 # Obsolete; use --with-x.
2174 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2175 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2176 ac_prev
=x_includes
;;
2177 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2178 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2179 x_includes
=$ac_optarg ;;
2181 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2182 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2183 ac_prev
=x_libraries
;;
2184 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2185 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2186 x_libraries
=$ac_optarg ;;
2188 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2189 Try \`$0 --help' for more information"
2193 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2194 # Reject names that are not valid shell variable names.
2195 case $ac_envvar in #(
2196 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2197 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2199 eval $ac_envvar=\
$ac_optarg
2200 export $ac_envvar ;;
2203 # FIXME: should be removed in autoconf 3.0.
2204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2213 if test -n "$ac_prev"; then
2214 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2215 as_fn_error $?
"missing argument to $ac_option"
2218 if test -n "$ac_unrecognized_opts"; then
2219 case $enable_option_checking in
2221 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2226 # Check all directory arguments for consistency.
2227 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2228 datadir sysconfdir sharedstatedir localstatedir includedir \
2229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2230 libdir localedir mandir
2232 eval ac_val
=\$
$ac_var
2233 # Remove trailing slashes.
2236 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2237 eval $ac_var=\
$ac_val;;
2239 # Be sure to have absolute directory names.
2241 [\\/$
]* | ?
:[\\/]* ) continue;;
2242 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2244 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2247 # There might be people who depend on the old broken behavior: `$host'
2248 # used to hold the argument of --host etc.
2249 # FIXME: To remove some day.
2252 target
=$target_alias
2254 # FIXME: To remove some day.
2255 if test "x$host_alias" != x
; then
2256 if test "x$build_alias" = x
; then
2257 cross_compiling
=maybe
2258 elif test "x$build_alias" != "x$host_alias"; then
2264 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2266 test "$silent" = yes && exec 6>/dev
/null
2269 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2270 ac_ls_di
=`ls -di .` &&
2271 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2272 as_fn_error $?
"working directory cannot be determined"
2273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2274 as_fn_error $?
"pwd does not report name of working directory"
2277 # Find the source files, if location was not specified.
2278 if test -z "$srcdir"; then
2279 ac_srcdir_defaulted
=yes
2280 # Try the directory containing this script, then the parent directory.
2281 ac_confdir
=`$as_dirname -- "$as_myself" ||
2282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2283 X"$as_myself" : 'X\(//\)[^/]' \| \
2284 X"$as_myself" : 'X\(//\)$' \| \
2285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2286 $as_echo X"$as_myself" |
2287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2305 if test ! -r "$srcdir/$ac_unique_file"; then
2309 ac_srcdir_defaulted
=no
2311 if test ! -r "$srcdir/$ac_unique_file"; then
2312 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2313 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2315 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2319 # When building in place, set srcdir=.
2320 if test "$ac_abs_confdir" = "$ac_pwd"; then
2323 # Remove unnecessary trailing slashes from srcdir.
2324 # Double slashes in file names in object file debugging info
2325 # mess up M-x gdb in Emacs.
2327 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2329 for ac_var
in $ac_precious_vars; do
2330 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2331 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2332 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2333 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2337 # Report the --help message.
2339 if test "$ac_init_help" = "long"; then
2340 # Omit some internal or obsolete options to make the list less imposing.
2341 # This message is too long to be a string in the A/UX 3.1 sh.
2343 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2345 Usage: $0 [OPTION]... [VAR=VALUE]...
2347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2348 VAR=VALUE. See below for descriptions of some of the useful variables.
2350 Defaults for the options are specified in brackets.
2353 -h, --help display this help and exit
2354 --help=short display options specific to this package
2355 --help=recursive display the short help of all the included packages
2356 -V, --version display version information and exit
2357 -q, --quiet, --silent do not print \`checking ...' messages
2358 --cache-file=FILE cache test results in FILE [disabled]
2359 -C, --config-cache alias for \`--cache-file=config.cache'
2360 -n, --no-create do not create output files
2361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2363 Installation directories:
2364 --prefix=PREFIX install architecture-independent files in PREFIX
2365 [$ac_default_prefix]
2366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2369 By default, \`make install' will install all the files in
2370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2372 for instance \`--prefix=\$HOME'.
2374 For better control, use the options below.
2376 Fine tuning of the installation directories:
2377 --bindir=DIR user executables [EPREFIX/bin]
2378 --sbindir=DIR system admin executables [EPREFIX/sbin]
2379 --libexecdir=DIR program executables [EPREFIX/libexec]
2380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2383 --libdir=DIR object code libraries [EPREFIX/lib]
2384 --includedir=DIR C header files [PREFIX/include]
2385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2388 --infodir=DIR info documentation [DATAROOTDIR/info]
2389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2390 --mandir=DIR man documentation [DATAROOTDIR/man]
2391 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2392 --htmldir=DIR html documentation [DOCDIR]
2393 --dvidir=DIR dvi documentation [DOCDIR]
2394 --pdfdir=DIR pdf documentation [DOCDIR]
2395 --psdir=DIR ps documentation [DOCDIR]
2401 --program-prefix=PREFIX prepend PREFIX to installed program names
2402 --program-suffix=SUFFIX append SUFFIX to installed program names
2403 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2406 --build=BUILD configure
for building on BUILD
[guessed
]
2407 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2408 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2412 if test -n "$ac_init_help"; then
2413 case $ac_init_help in
2414 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2419 --disable-option-checking ignore unrecognized
--enable/--with options
2420 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2421 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2422 --enable-maintainer-mode
2423 enable make rules and dependencies not useful
(and
2424 sometimes confusing
) to the casual installer
2425 --disable-largefile omit support
for large files
2426 --enable-threads={posix|solaris|pth|windows
}
2427 specify multithreading API
2428 --disable-threads build without multithread safety
2429 --enable-plugins Enable support
for plugins
2430 --disable-rpath do not hardcode runtime library paths
2431 --enable-dependency-tracking
2432 do not reject slow dependency extractors
2433 --disable-dependency-tracking
2434 speeds up one-time build
2435 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2436 --disable-silent-rules verbose build output
(undo
: "make V=0")
2439 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2440 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2441 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
2442 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
2443 --without-libpth-prefix don
't search for libpth in includedir and libdir
2445 Some influential environment variables:
2446 CC C compiler command
2447 CFLAGS C compiler flags
2448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2449 nonstandard directory <lib dir>
2450 LIBS libraries to pass to the linker, e.g. -l<library>
2451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2452 you have headers in a nonstandard directory <include dir>
2455 Use these variables to override the choices made by `configure' or to
help
2456 it to
find libraries and programs with nonstandard names
/locations.
2458 Report bugs to the package provider.
2463 if test "$ac_init_help" = "recursive"; then
2464 # If there are subdirs, report their specific --help.
2465 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2466 test -d "$ac_dir" ||
2467 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2475 # A ".." for each directory in $ac_dir_suffix.
2476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2477 case $ac_top_builddir_sub in
2478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2482 ac_abs_top_builddir
=$ac_pwd
2483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2484 # for backward compatibility:
2485 ac_top_builddir
=$ac_top_build_prefix
2488 .
) # We are building in place.
2490 ac_top_srcdir
=$ac_top_builddir_sub
2491 ac_abs_top_srcdir
=$ac_pwd ;;
2492 [\\/]* | ?
:[\\/]* ) # Absolute name.
2493 ac_srcdir
=$srcdir$ac_dir_suffix;
2494 ac_top_srcdir
=$srcdir
2495 ac_abs_top_srcdir
=$srcdir ;;
2497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2503 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2504 # Check for guested configure.
2505 if test -f "$ac_srcdir/configure.gnu"; then
2507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2508 elif test -f "$ac_srcdir/configure"; then
2510 $SHELL "$ac_srcdir/configure" --help=recursive
2512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2514 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2518 test -n "$ac_init_help" && exit $ac_status
2519 if $ac_init_version; then
2521 libgnu configure UNUSED-VERSION
2522 generated by GNU Autoconf
2.69
2524 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2525 This configure
script is free software
; the Free Software Foundation
2526 gives unlimited permission to copy
, distribute and modify it.
2531 ## ------------------------ ##
2532 ## Autoconf initialization. ##
2533 ## ------------------------ ##
2535 # ac_fn_c_try_compile LINENO
2536 # --------------------------
2537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2538 ac_fn_c_try_compile
()
2540 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2541 rm -f conftest.
$ac_objext
2542 if { { ac_try
="$ac_compile"
2544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_compile") 2>conftest.err
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } && {
2558 test -z "$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 } && test -s conftest.$ac_objext; then :
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2571 } # ac_fn_c_try_compile
2573 # ac_fn_c_try_cpp LINENO
2574 # ----------------------
2575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if { { ac_try="$ac_cpp conftest.$ac_ext"
2581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2582 *) ac_try_echo
=$ac_try;;
2584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2588 if test -s conftest.err
; then
2589 grep -v '^ *+' conftest.err
>conftest.er1
2590 cat conftest.er1
>&5
2591 mv -f conftest.er1 conftest.err
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; } > conftest.i
&& {
2595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2596 test ! -s conftest.err
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.
$ac_ext >&5
2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 as_fn_set_status
$ac_retval
2610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2611 # -------------------------------------------------------
2612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2613 # the include files in INCLUDES and setting the cache variable VAR
2615 ac_fn_c_check_header_mongrel
()
2617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2618 if eval \
${$3+:} false
; then :
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if eval \
${$3+:} false
; then :
2622 $as_echo_n "(cached) " >&6
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2628 # Is the header compilable?
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2630 $as_echo_n "checking $2 usability... " >&6; }
2631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2636 if ac_fn_c_try_compile
"$LINENO"; then :
2637 ac_header_compiler
=yes
2639 ac_header_compiler
=no
2641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2643 $as_echo "$ac_header_compiler" >&6; }
2645 # Is the header present?
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2647 $as_echo_n "checking $2 presence... " >&6; }
2648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2652 if ac_fn_c_try_cpp
"$LINENO"; then :
2653 ac_header_preproc
=yes
2655 ac_header_preproc
=no
2657 rm -f conftest.err conftest.i conftest.
$ac_ext
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2659 $as_echo "$ac_header_preproc" >&6; }
2661 # So? What about this header?
2662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \
${$3+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 eval "$3=\$ac_header_compiler"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_check_header_mongrel
2697 # ac_fn_c_try_run LINENO
2698 # ----------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2700 # that executables *can* be run.
2703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2704 if { { ac_try
="$ac_link"
2706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>&5
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2715 { { case "(($ac_try" in
2716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2717 *) ac_try_echo
=$ac_try;;
2719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_try") 2>&5
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }; }; then :
2727 $as_echo "$as_me: program exited with status $ac_status" >&5
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2731 ac_retval
=$ac_status
2733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735 as_fn_set_status
$ac_retval
2739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2740 # -------------------------------------------------------
2741 # Tests whether HEADER exists and can be compiled using the include files in
2742 # INCLUDES, setting the cache variable VAR accordingly.
2743 ac_fn_c_check_header_compile
()
2745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \
${$3+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2756 if ac_fn_c_try_compile
"$LINENO"; then :
2761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 } # ac_fn_c_check_header_compile
2770 # ac_fn_c_try_link LINENO
2771 # -----------------------
2772 # Try to link conftest.$ac_ext, and return whether this succeeded.
2775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2776 rm -f conftest.
$ac_objext conftest
$ac_exeext
2777 if { { ac_try
="$ac_link"
2779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link") 2>conftest.err
2786 if test -s conftest.err; then
2787 grep -v '^ *+' conftest.err >conftest.er1
2788 cat conftest.er1 >&5
2789 mv -f conftest.er1 conftest.err
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest$ac_exeext && {
2796 test "$cross_compiling" = yes ||
2797 test -x conftest$ac_exeext
2801 $as_echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2808 # interfere with the next link command; also delete a directory that is
2809 # left behind by Apple's compiler. We do this before executing the actions.
2810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2812 as_fn_set_status $ac_retval
2814 } # ac_fn_c_try_link
2816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817 # -------------------------------------------
2818 # Tests whether TYPE exists after having included INCLUDES, setting cache
2819 # variable VAR accordingly.
2820 ac_fn_c_check_type ()
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824 $as_echo_n "checking for $2... " >&6; }
2825 if eval \${$3+:} false; then :
2826 $as_echo_n "(cached) " >&6
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2841 if ac_fn_c_try_compile "$LINENO"; then :
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2854 if ac_fn_c_try_compile "$LINENO"; then :
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865 $as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868 } # ac_fn_c_check_type
2870 # ac_fn_c_check_func LINENO FUNC VAR
2871 # ----------------------------------
2872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2873 ac_fn_c_check_func ()
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877 $as_echo_n "checking for $2... " >&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. */
2883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2885 #define $2 innocuous_$2
2887 /* System header to define __stub macros and hopefully few prototypes,
2888 which can conflict with char $2 (); below.
2889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 <limits.h> exists even on freestanding compilers. */
2893 # include <limits.h>
2895 # include <assert.h>
2900 /* Override any GCC internal prototype to avoid an error.
2901 Use char because int might match the return type of a GCC
2902 builtin and then its argument prototype would still apply. */
2907 /* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910 #if defined __stub_$2 || defined __stub___$2
2922 if ac_fn_c_try_link "$LINENO"; then :
2927 rm -f core conftest.err conftest.$ac_objext \
2928 conftest$ac_exeext conftest.$ac_ext
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932 $as_echo "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2935 } # ac_fn_c_check_func
2937 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2938 # ---------------------------------------------
2939 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2941 ac_fn_c_check_decl ()
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2945 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2947 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2948 if eval \${$3+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2957 #ifndef $as_decl_name
2959 (void) $as_decl_use;
2961 (void) $as_decl_name;
2969 if ac_fn_c_try_compile "$LINENO"; then :
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2978 $as_echo "$ac_res" >&6; }
2979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2981 } # ac_fn_c_check_decl
2983 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2984 # --------------------------------------------
2985 # Tries to find the compile-time value of EXPR in a program that includes
2986 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2988 ac_fn_c_compute_int ()
2990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2991 if test "$cross_compiling" = yes; then
2992 # Depending upon the size, compute the lo and hi bounds.
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2999 static int test_array [1 - 2 * !(($2) >= 0)];
3001 return test_array [0];
3007 if ac_fn_c_try_compile "$LINENO"; then :
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3018 return test_array [0];
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025 ac_hi=$ac_mid; break
3027 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3028 if test $ac_lo -le $ac_mid; then
3032 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 static int test_array [1 - 2 * !(($2) < 0)];
3045 return test_array [0];
3051 if ac_fn_c_try_compile "$LINENO"; then :
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3062 return test_array [0];
3068 if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_lo=$ac_mid; break
3071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3072 if test $ac_mid -le $ac_hi; then
3076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 # Binary search between lo and hi bounds.
3087 while test "x$ac_lo" != "x$ac_hi"; do
3088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3097 return test_array [0];
3103 if ac_fn_c_try_compile "$LINENO"; then :
3106 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3118 static long int longval () { return $2; }
3119 static unsigned long int ulongval () { return $2; }
3126 FILE *f = fopen ("conftest.val", "w");
3131 long int i = longval ();
3134 fprintf (f, "%ld", i);
3138 unsigned long int i = ulongval ();
3141 fprintf (f, "%lu", i);
3143 /* Do not output a trailing newline, as this causes \r\n confusion
3144 on some platforms. */
3145 return ferror (f) || fclose (f) != 0;
3151 if ac_fn_c_try_run "$LINENO"; then :
3152 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3157 conftest.$ac_objext conftest.beam conftest.$ac_ext
3161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3162 as_fn_set_status $ac_retval
3164 } # ac_fn_c_compute_int
3166 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3167 # ----------------------------------------------------
3168 # Tries to find if the field MEMBER exists in type AGGR, after including
3169 # INCLUDES, setting cache variable VAR accordingly.
3170 ac_fn_c_check_member ()
3172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3174 $as_echo_n "checking for $2.$3... " >&6; }
3175 if eval \${$4+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3201 if (sizeof ac_aggr.$3)
3207 if ac_fn_c_try_compile "$LINENO"; then :
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3218 $as_echo "$ac_res" >&6; }
3219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3221 } # ac_fn_c_check_member
3222 cat >config.log <<_ACEOF
3223 This file contains any messages produced by compilers while
3224 running configure, to aid debugging if configure makes a mistake.
3226 It was created by libgnu $as_me UNUSED-VERSION, which was
3227 generated by GNU Autoconf 2.69. Invocation command line was
3239 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3240 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3241 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3242 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3243 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3245 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3246 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3248 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3249 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3250 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3251 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3252 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3253 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3254 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 $as_echo "PATH: $as_dir"
3279 # Keep a trace of the command line.
3280 # Strip out --no-create and --no-recursion so they do not pile up.
3281 # Strip out --silent because we don't want to record it for future runs.
3282 # Also quote any args containing shell meta-characters.
3283 # Make two passes to allow for proper duplicate-argument suppression.
3287 ac_must_keep_next=false
3293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3295 | -silent | --silent | --silen | --sile | --sil)
3298 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3303 as_fn_append ac_configure_args1 " '$ac_arg'"
3304 if test $ac_must_keep_next = true; then
3305 ac_must_keep_next=false # Got value, back to normal.
3308 *=* | --config-cache | -C | -disable-* | --disable-* \
3309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3311 | -with-* | --with-* | -without-* | --without-* | --x)
3312 case "$ac_configure_args0 " in
3313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3316 -* ) ac_must_keep_next=true ;;
3319 as_fn_append ac_configure_args " '$ac_arg'"
3324 { ac_configure_args0=; unset ac_configure_args0;}
3325 { ac_configure_args1=; unset ac_configure_args1;}
3327 # When interrupted or exit'd, cleanup temporary files, and complete
3328 # config.log. We remove comments because anyway the quotes in there
3329 # would cause problems or look ugly.
3330 # WARNING: Use '\'' to represent an apostrophe within the trap.
3331 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3332 trap 'exit_status=$?
3333 # Save into config.log some information that might help in debugging.
3337 $as_echo "## ---------------- ##
3338 ## Cache variables. ##
3339 ## ---------------- ##"
3341 # The following way of writing the cache mishandles newlines in values,
3343 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3344 eval ac_val=\$$ac_var
3348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3352 _ | IFS | as_nl) ;; #(
3353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3354 *) { eval $ac_var=; unset $ac_var;} ;;
3359 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3360 *${as_nl}ac_space=\ *)
3362 "s/'\''/'\''\\\\'\'''\''/g;
3363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3373 $as_echo "## ----------------- ##
3374 ## Output variables. ##
3375 ## ----------------- ##"
3377 for ac_var in $ac_subst_vars
3379 eval ac_val=\$$ac_var
3381 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3383 $as_echo "$ac_var='\''$ac_val'\''"
3387 if test -n "$ac_subst_files"; then
3388 $as_echo "## ------------------- ##
3389 ## File substitutions. ##
3390 ## ------------------- ##"
3392 for ac_var in $ac_subst_files
3394 eval ac_val=\$$ac_var
3396 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3398 $as_echo "$ac_var='\''$ac_val'\''"
3403 if test -s confdefs.h; then
3404 $as_echo "## ----------- ##
3411 test "$ac_signal" != 0 &&
3412 $as_echo "$as_me: caught signal $ac_signal"
3413 $as_echo "$as_me: exit $exit_status"
3415 rm -f core *.core core.conftest.* &&
3416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3419 for ac_signal in 1 2 13 15; do
3420 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3424 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3425 rm -f -r conftest* confdefs.h
3427 $as_echo "/* confdefs.h */" > confdefs.h
3429 # Predefined preprocessor variables.
3431 cat >>confdefs.h <<_ACEOF
3432 #define PACKAGE_NAME "$PACKAGE_NAME"
3435 cat >>confdefs.h <<_ACEOF
3436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3439 cat >>confdefs.h <<_ACEOF
3440 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3443 cat >>confdefs.h <<_ACEOF
3444 #define PACKAGE_STRING "$PACKAGE_STRING"
3447 cat >>confdefs.h <<_ACEOF
3448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3451 cat >>confdefs.h <<_ACEOF
3452 #define PACKAGE_URL "$PACKAGE_URL"
3456 # Let the site file select an alternate cache file if it wants to.
3457 # Prefer an explicitly selected file to automatically selected ones.
3460 if test -n "$CONFIG_SITE"; then
3461 # We do not want a PATH search for config.site.
3462 case $CONFIG_SITE in #((
3463 -*) ac_site_file1=./$CONFIG_SITE;;
3464 */*) ac_site_file1=$CONFIG_SITE;;
3465 *) ac_site_file1=./$CONFIG_SITE;;
3467 elif test "x$prefix" != xNONE; then
3468 ac_site_file1=$prefix/share/config.site
3469 ac_site_file2=$prefix/etc/config.site
3471 ac_site_file1=$ac_default_prefix/share/config.site
3472 ac_site_file2=$ac_default_prefix/etc/config.site
3474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3476 test "x$ac_site_file" = xNONE && continue
3477 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3480 sed 's/^/| /' "$ac_site_file" >&5
3482 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "failed to load site
script $ac_site_file
3485 See \
`config.log' for more details" "$LINENO" 5; }
3489 if test -r "$cache_file"; then
3490 # Some versions of bash will fail to source /dev/null (special files
3491 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3492 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3494 $as_echo "$as_me: loading cache $cache_file" >&6;}
3496 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3497 *) . "./$cache_file";;
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3502 $as_echo "$as_me: creating cache $cache_file" >&6;}
3506 gl_header_list="$gl_header_list arpa/inet.h"
3507 gl_header_list="$gl_header_list features.h"
3508 gl_func_list="$gl_func_list canonicalize_file_name"
3509 gl_func_list="$gl_func_list getcwd"
3510 gl_func_list="$gl_func_list readlink"
3511 gl_func_list="$gl_func_list realpath"
3512 gl_header_list="$gl_header_list sys/param.h"
3513 gl_header_list="$gl_header_list unistd.h"
3514 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3515 gl_header_list="$gl_header_list sys/socket.h"
3516 gl_func_list="$gl_func_list fchdir"
3517 gl_header_list="$gl_header_list dirent.h"
3518 gl_func_list="$gl_func_list fcntl"
3519 gl_func_list="$gl_func_list symlink"
3520 gl_func_list="$gl_func_list fdopendir"
3521 gl_func_list="$gl_func_list mempcpy"
3522 gl_func_list="$gl_func_list btowc"
3523 gl_func_list="$gl_func_list isblank"
3524 gl_func_list="$gl_func_list iswctype"
3525 gl_func_list="$gl_func_list mbsrtowcs"
3526 gl_func_list="$gl_func_list wmemchr"
3527 gl_func_list="$gl_func_list wmemcpy"
3528 gl_func_list="$gl_func_list wmempcpy"
3529 gl_header_list="$gl_header_list wctype.h"
3530 gl_fnmatch_required=GNU
3531 gl_header_list="$gl_header_list sys/stat.h"
3532 gl_func_list="$gl_func_list fstatat"
3533 gl_func_list="$gl_func_list getdtablesize"
3534 gl_func_list="$gl_func_list getlogin_r"
3535 gl_func_list="$gl_func_list getprogname"
3536 gl_func_list="$gl_func_list getexecname"
3537 gl_header_list="$gl_header_list sys/time.h"
3538 gl_func_list="$gl_func_list gettimeofday"
3539 gl_header_list="$gl_header_list sys/cdefs.h"
3540 gl_func_list="$gl_func_list getpwnam_r"
3541 gl_header_list="$gl_header_list netdb.h"
3542 gl_header_list="$gl_header_list netinet/in.h"
3543 gl_header_list="$gl_header_list limits.h"
3544 gl_header_list="$gl_header_list wchar.h"
3545 gl_header_list="$gl_header_list stdint.h"
3546 gl_header_list="$gl_header_list inttypes.h"
3547 gl_func_list="$gl_func_list lstat"
3548 gl_header_list="$gl_header_list math.h"
3549 gl_func_list="$gl_func_list mbsinit"
3550 gl_func_list="$gl_func_list mbrtowc"
3551 gl_header_list="$gl_header_list sys/mman.h"
3552 gl_func_list="$gl_func_list mprotect"
3553 gl_func_list="$gl_func_list mkostemp"
3554 gl_func_list="$gl_func_list openat"
3555 gl_func_list="$gl_func_list link"
3556 gl_func_list="$gl_func_list secure_getenv"
3557 gl_func_list="$gl_func_list getuid"
3558 gl_func_list="$gl_func_list geteuid"
3559 gl_func_list="$gl_func_list getgid"
3560 gl_func_list="$gl_func_list getegid"
3561 gl_func_list="$gl_func_list setenv"
3562 gl_func_list="$gl_func_list strdup"
3563 gl_func_list="$gl_func_list __xpg_strerror_r"
3564 gl_func_list="$gl_func_list catgets"
3565 gl_func_list="$gl_func_list snprintf"
3566 gl_header_list="$gl_header_list sys/uio.h"
3567 gl_func_list="$gl_func_list localtime_r"
3568 gl_func_list="$gl_func_list pipe"
3569 gl_func_list="$gl_func_list iswcntrl"
3570 # Check that the precious variables saved in the cache have kept the same
3572 ac_cache_corrupted=false
3573 for ac_var in $ac_precious_vars; do
3574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3575 eval ac_new_set=\$ac_env_${ac_var}_set
3576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3577 eval ac_new_val=\$ac_env_${ac_var}_value
3578 case $ac_old_set,$ac_new_set in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3581 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3582 ac_cache_corrupted=: ;;
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3585 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3586 ac_cache_corrupted=: ;;
3589 if test "x$ac_old_val" != "x$ac_new_val"; then
3590 # differences in whitespace do not lead to failure.
3591 ac_old_val_w=`echo x
$ac_old_val`
3592 ac_new_val_w=`echo x
$ac_new_val`
3593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3595 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3596 ac_cache_corrupted=:
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3599 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3600 eval $ac_var=\$ac_old_val
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3603 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3605 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3608 # Pass precious variables to config.status.
3609 if test "$ac_new_set" = set; then
3611 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3612 *) ac_arg=$ac_var=$ac_new_val ;;
3614 case " $ac_configure_args " in
3615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3620 if $ac_cache_corrupted; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3624 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3625 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3627 ## -------------------- ##
3628 ## Main body of script. ##
3629 ## -------------------- ##
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 ac_config_headers="$ac_config_headers config.h:config.in"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3648 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3649 # Check whether --enable-maintainer-mode was given.
3650 if test "${enable_maintainer_mode+set}" = set; then :
3651 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3653 USE_MAINTAINER_MODE=no
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3657 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINTAINER_MODE_TRUE=
3660 MAINTAINER_MODE_FALSE='#'
3662 MAINTAINER_MODE_TRUE='#'
3663 MAINTAINER_MODE_FALSE=
3666 MAINT=$MAINTAINER_MODE_TRUE
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if ${ac_cv_prog_CC+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3706 $as_echo "$CC" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test -z "$ac_cv_prog_CC"; then
3716 # Extract the first word of "gcc", so it can be a program name with args.
3717 set dummy gcc; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_CC"; then
3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_CC="gcc"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744 if test -n "$ac_ct_CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3746 $as_echo "$ac_ct_CC" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3752 if test "x$ac_ct_CC" = x; then
3755 case $cross_compiling:$ac_tool_warned in
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3767 if test -z "$CC"; then
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}cc; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if ${ac_cv_prog_CC+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_CC="${ac_tool_prefix}cc"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 if test -n "$CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3799 $as_echo "$CC" >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3808 if test -z "$CC"; then
3809 # Extract the first word of "cc", so it can be a program name with args.
3810 set dummy cc; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_CC+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3828 ac_prog_rejected=yes
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test $ac_prog_rejected = yes; then
3840 # We found a bogon in the path, so make sure we never use it.
3841 set dummy $ac_cv_prog_CC
3843 if test $# != 0; then
3844 # We chose a different compiler from the bogus one.
3845 # However, it has the same basename, so the bogon will be chosen
3846 # first if we set CC to just the basename; use the full file name.
3848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3854 if test -n "$CC"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3856 $as_echo "$CC" >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3864 if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in cl.exe
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CC" && break
3908 if test -z "$CC"; then
3910 for ac_prog in cl.exe
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_CC="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942 $as_echo "$ac_ct_CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CC" && break
3952 if test "x$ac_ct_CC" = x; then
3955 case $cross_compiling:$ac_tool_warned in
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3971 See \
`config.log' for more details" "$LINENO" 5; }
3973 # Provide some information about the compiler.
3974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3977 for ac_option in --version -v -V -qversion; do
3978 { { ac_try="$ac_compiler $ac_option >&5"
3980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3981 *) ac_try_echo
=$ac_try;;
3983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987 if test -s conftest.err
; then
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err
>conftest.er1
3991 cat conftest.er1
>&5
3993 rm -f conftest.er1 conftest.err
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 ac_clean_files_save
=$ac_clean_files
4010 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 $as_echo_n "checking whether the C compiler works... " >&6; }
4016 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4018 # The possible output files:
4019 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4022 for ac_file
in $ac_files
4025 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4026 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4031 if { { ac_try
="$ac_link_default"
4033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4043 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4044 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4045 # so that the user can short-circuit this test for compilers unknown to
4047 for ac_file in $ac_files ''
4049 test -f "$ac_file" || continue
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4054 # We found the default executable, but exeext='' is most
4058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 # We set ac_cv_exeext here because the later test for it is not
4063 # safe: cross compilers may not add the suffix if given an `-o'
4064 # argument, so we may need to know it at that point already.
4065 # Even if this section looks crufty: it has the advantage of
4072 test "$ac_cv_exeext" = no && ac_cv_exeext=
4077 if test -z "$ac_file"; then :
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's
/^
/|
/' conftest.$ac_ext >&5
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4085 as_fn_error 77 "C compiler cannot create executables
4086 See \`config.log
' for more details" "$LINENO" 5; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4092 $as_echo_n "checking for C compiler default output file name... " >&6; }
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4094 $as_echo "$ac_file" >&6; }
4095 ac_exeext=$ac_cv_exeext
4097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4098 ac_clean_files=$ac_clean_files_save
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4100 $as_echo_n "checking for suffix of executables... " >&6; }
4101 if { { ac_try="$ac_link"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_link") 2>&5
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }; then :
4112 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4113 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4114 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4116 for ac_file
in conftest.exe conftest conftest.
*; do
4117 test -f "$ac_file" ||
continue
4119 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4120 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4129 See \`config.log' for more details" "$LINENO" 5; }
4131 rm -f conftest conftest
$ac_cv_exeext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4133 $as_echo "$ac_cv_exeext" >&6; }
4135 rm -f conftest.
$ac_ext
4136 EXEEXT
=$ac_cv_exeext
4138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4144 FILE *f = fopen ("conftest.out", "w");
4145 return ferror (f) || fclose (f) != 0;
4151 ac_clean_files
="$ac_clean_files conftest.out"
4152 # Check that the compiler produces executables we can run. If not, either
4153 # the compiler is broken, or we cross compile.
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4155 $as_echo_n "checking whether we are cross compiling... " >&6; }
4156 if test "$cross_compiling" != yes; then
4157 { { ac_try
="$ac_link"
4159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_link") 2>&5
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 if { ac_try='./conftest$ac_cv_exeext'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4181 if test "$cross_compiling" = maybe
; then
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $?
"cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details" "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4193 $as_echo "$cross_compiling" >&6; }
4195 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4196 ac_clean_files
=$ac_clean_files_save
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4198 $as_echo_n "checking for suffix of object files... " >&6; }
4199 if ${ac_cv_objext+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4213 rm -f conftest.o conftest.obj
4214 if { { ac_try
="$ac_compile"
4216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_compile") 2>&5
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 for ac_file in conftest.o conftest.obj conftest.*; do
4226 test -f "$ac_file" || continue;
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4234 $as_echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4240 See \
`config.log' for more details" "$LINENO" 5; }
4242 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4245 $as_echo "$ac_cv_objext" >&6; }
4246 OBJEXT=$ac_cv_objext
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4249 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4250 if ${ac_cv_c_compiler_gnu+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4267 if ac_fn_c_try_compile "$LINENO"; then :
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4277 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4278 if test $ac_compiler_gnu = yes; then
4283 ac_test_CFLAGS=${CFLAGS+set}
4284 ac_save_CFLAGS=$CFLAGS
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4286 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4287 if ${ac_cv_prog_cc_g+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 ac_save_c_werror_flag=$ac_c_werror_flag
4291 ac_c_werror_flag=yes
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4320 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4347 $as_echo "$ac_cv_prog_cc_g" >&6; }
4348 if test "$ac_test_CFLAGS" = set; then
4349 CFLAGS=$ac_save_CFLAGS
4350 elif test $ac_cv_prog_cc_g = yes; then
4351 if test "$GCC" = yes; then
4357 if test "$GCC" = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4365 if ${ac_cv_prog_cc_c89+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 ac_cv_prog_cc_c89=no
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4376 struct buf { int x; };
4377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4378 static char *e (p, i)
4384 static char *f (char * (*g) (char **, int), char **p, ...)
4389 s = g (p, va_arg (v,int));
4394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4395 function prototypes and stuff, but not '\xHH' hex character constants.
4396 These don't provoke an error unfortunately, instead are silently treated
4397 as 'x'. The following induces an error, until -std is added to get
4398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4399 array size at least. It's necessary to write '\x00'==0 to get something
4400 that's true only with -std. */
4401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4404 inside strings and character constants. */
4406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4408 int test (int i, double x);
4409 struct s1 {int (*f) (int a);};
4410 struct s2 {int (*f) (double a);};
4411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4425 CC="$ac_save_CC $ac_arg"
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_prog_cc_c89=$ac_arg
4429 rm -f core conftest.err conftest.$ac_objext
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4432 rm -f conftest.$ac_ext
4437 case "x$ac_cv_prog_cc_c89" in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4440 $as_echo "none needed" >&6; } ;;
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4443 $as_echo "unsupported" >&6; } ;;
4445 CC="$CC $ac_cv_prog_cc_c89"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4449 if test "x$ac_cv_prog_cc_c89" != xno; then :
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4461 if test -f "$ac_dir/install-sh"; then
4463 ac_install_sh="$ac_aux_dir/install-sh -c"
4465 elif test -f "$ac_dir/install.sh"; then
4467 ac_install_sh="$ac_aux_dir/install.sh -c"
4469 elif test -f "$ac_dir/shtool"; then
4471 ac_install_sh="$ac_aux_dir/shtool install -c"
4475 if test -z "$ac_aux_dir"; then
4476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4479 # These three variables are undocumented and unsupported,
4480 # and are intended to be withdrawn in a future Autoconf release.
4481 # They can cause serious problems if a builder's source tree is in a directory
4482 # whose full name contains unusual characters.
4483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4488 # Expand $ac_aux_dir to an absolute path.
4489 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4497 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4498 if ${am_cv_prog_cc_c_o+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4512 # Make sure it works both with $CC and with simple cc.
4513 # Following AC_PROG_CC_C_O, we do the test twice because some
4514 # compilers refuse to overwrite an existing .o file with -o,
4515 # though they will create one.
4516 am_cv_prog_cc_c_o=yes
4518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } \
4523 && test -f conftest2.$ac_objext; then
4526 am_cv_prog_cc_c_o=no
4530 rm -f core conftest*
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4534 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4535 if test "$am_cv_prog_cc_c_o" != yes; then
4536 # Losing compiler, so override with the script.
4537 # FIXME: It is wrong to rewrite CC.
4538 # But if we don't then we get into trouble of one sort or another.
4539 # A longer-term fix would be to have automake use am__CC in this case,
4540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4541 CC="$am_aux_dir/compile $CC"
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4558 # On Suns, sometimes $CPP names a directory.
4559 if test -n "$CPP" && test -d "$CPP"; then
4562 if test -z "$CPP"; then
4563 if ${ac_cv_prog_CPP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 # Double quotes because CPP needs to be expanded
4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4570 for ac_c_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 # include <limits.h>
4583 # include <assert.h>
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4590 # Broken: fails on valid input.
4593 rm -f conftest.err conftest.i conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <ac_nonexistent.h>
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4602 # Broken: success on invalid input.
4605 # Passes both tests.
4609 rm -f conftest.err conftest.i conftest.$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.i conftest.err conftest.
$ac_ext
4614 if $ac_preproc_ok; then :
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4627 $as_echo "$CPP" >&6; }
4629 for ac_c_preproc_warn_flag
in '' yes
4631 # Use a header file that comes with gcc, so configuring glibc
4632 # with a fresh cross-compiler works.
4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634 # <limits.h> exists even on freestanding compilers.
4635 # On the NeXT, cc -E runs the code through the compiler's parser,
4636 # not just through cpp. "Syntax error" is here to catch this case.
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 # include <limits.h>
4642 # include <assert.h>
4646 if ac_fn_c_try_cpp
"$LINENO"; then :
4649 # Broken: fails on valid input.
4652 rm -f conftest.err conftest.i conftest.
$ac_ext
4654 # OK, works on sane cases. Now check whether nonexistent headers
4655 # can be detected and how.
4656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <ac_nonexistent.h>
4660 if ac_fn_c_try_cpp
"$LINENO"; then :
4661 # Broken: success on invalid input.
4664 # Passes both tests.
4668 rm -f conftest.err conftest.i conftest.
$ac_ext
4671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4672 rm -f conftest.i conftest.err conftest.
$ac_ext
4673 if $ac_preproc_ok; then :
4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4679 See \`config.log' for more details" "$LINENO" 5; }
4683 ac_cpp
='$CPP $CPPFLAGS'
4684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4690 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4691 if ${ac_cv_path_GREP+:} false
; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -z "$GREP"; then
4695 ac_path_GREP_found
=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4698 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_prog
in grep ggrep
; do
4703 for ac_exec_ext
in '' $ac_executable_extensions; do
4704 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4705 as_fn_executable_p
"$ac_path_GREP" ||
continue
4706 # Check for GNU ac_path_GREP and select it if it is found.
4707 # Check for GNU $ac_path_GREP
4708 case `"$ac_path_GREP" --version 2>&1` in
4710 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4713 $as_echo_n 0123456789 >"conftest.in"
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'GREP' >> "conftest.nl"
4720 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4721 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4722 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4723 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_GREP
="$ac_path_GREP"
4726 ac_path_GREP_max
=$ac_count
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4731 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4734 $ac_path_GREP_found && break 3
4739 if test -z "$ac_cv_path_GREP"; then
4740 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 ac_cv_path_GREP
=$GREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4748 $as_echo "$ac_cv_path_GREP" >&6; }
4749 GREP
="$ac_cv_path_GREP"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4753 $as_echo_n "checking for egrep... " >&6; }
4754 if ${ac_cv_path_EGREP+:} false
; then :
4755 $as_echo_n "(cached) " >&6
4757 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4758 then ac_cv_path_EGREP
="$GREP -E"
4760 if test -z "$EGREP"; then
4761 ac_path_EGREP_found
=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4764 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_prog
in egrep; do
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4771 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4772 # Check for GNU ac_path_EGREP and select it if it is found.
4773 # Check for GNU $ac_path_EGREP
4774 case `"$ac_path_EGREP" --version 2>&1` in
4776 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'EGREP' >> "conftest.nl"
4786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4787 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4788 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_EGREP
="$ac_path_EGREP"
4792 ac_path_EGREP_max
=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4800 $ac_path_EGREP_found && break 3
4805 if test -z "$ac_cv_path_EGREP"; then
4806 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_EGREP
=$EGREP
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4815 $as_echo "$ac_cv_path_EGREP" >&6; }
4816 EGREP
="$ac_cv_path_EGREP"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4820 $as_echo_n "checking for ANSI C header files... " >&6; }
4821 if ${ac_cv_header_stdc+:} false
; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4839 if ac_fn_c_try_compile
"$LINENO"; then :
4840 ac_cv_header_stdc
=yes
4842 ac_cv_header_stdc
=no
4844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4846 if test $ac_cv_header_stdc = yes; then
4847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 $EGREP "memchr" >/dev
/null
2>&1; then :
4857 ac_cv_header_stdc
=no
4863 if test $ac_cv_header_stdc = yes; then
4864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "free" >/dev
/null
2>&1; then :
4874 ac_cv_header_stdc
=no
4880 if test $ac_cv_header_stdc = yes; then
4881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882 if test "$cross_compiling" = yes; then :
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 #if ((' ' & 0x0FF) == 0x020)
4890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4893 # define ISLOWER(c) \
4894 (('a' <= (c) && (c) <= 'i') \
4895 || ('j' <= (c) && (c) <= 'r') \
4896 || ('s' <= (c) && (c) <= 'z'))
4897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4905 for (i = 0; i < 256; i++)
4906 if (XOR (islower (i), ISLOWER (i))
4907 || toupper (i) != TOUPPER (i))
4912 if ac_fn_c_try_run
"$LINENO"; then :
4915 ac_cv_header_stdc
=no
4917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4924 $as_echo "$ac_cv_header_stdc" >&6; }
4925 if test $ac_cv_header_stdc = yes; then
4927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4932 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4933 inttypes.h stdint.h unistd.h
4935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4938 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4939 cat >>confdefs.h
<<_ACEOF
4940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4950 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4957 if test "$MINIX" = yes; then
4959 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4962 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4965 $as_echo "#define _MINIX 1" >>confdefs.h
4968 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4974 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4975 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 # define __EXTENSIONS__ 1
4982 $ac_includes_default
4991 if ac_fn_c_try_compile
"$LINENO"; then :
4992 ac_cv_safe_to_define___extensions__
=yes
4994 ac_cv_safe_to_define___extensions__
=no
4996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4999 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5000 test $ac_cv_safe_to_define___extensions__ = yes &&
5001 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5003 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5005 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5007 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5009 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5011 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5013 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5015 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5017 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5019 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5021 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5023 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5025 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5028 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5029 if ${ac_cv_should_define__xopen_source+:} false
; then :
5030 $as_echo_n "(cached) " >&6
5032 ac_cv_should_define__xopen_source
=no
5033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5046 if ac_fn_c_try_compile
"$LINENO"; then :
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 #define _XOPEN_SOURCE 500
5063 if ac_fn_c_try_compile
"$LINENO"; then :
5064 ac_cv_should_define__xopen_source
=yes
5066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5071 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5072 test $ac_cv_should_define__xopen_source = yes &&
5073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5086 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5087 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5088 $as_echo_n "(cached) " >&6
5091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5101 gl_cv_c_amsterdam_compiler
=yes
5103 gl_cv_c_amsterdam_compiler
=no
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5110 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5112 if test $gl_cv_c_amsterdam_compiler = yes; then
5113 if test -z "$AR"; then
5116 if test -z "$ARFLAGS"; then
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog
in ar lib
"link -lib"
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_AR+:} false
; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -n "$AR"; then
5131 ac_cv_prog_AR
="$AR" # Let the user override the test.
5133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir
=.
5138 for ac_exec_ext
in '' $ac_executable_extensions; do
5139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 if test -n "$AR"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5153 $as_echo "$AR" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5160 test -n "$AR" && break
5163 if test -z "$AR"; then
5165 for ac_prog
in ar lib
"link -lib"
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy
$ac_prog; ac_word
=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_AR"; then
5175 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_AR
="$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5195 if test -n "$ac_ct_AR"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5197 $as_echo "$ac_ct_AR" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 test -n "$ac_ct_AR" && break
5207 if test "x$ac_ct_AR" = x
; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned
=yes ;;
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5223 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5224 if ${am_cv_ar_interface+:} false
; then :
5225 $as_echo_n "(cached) " >&6
5228 ac_cpp
='$CPP $CPPFLAGS'
5229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5233 am_cv_ar_interface
=ar
5234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 int some_variable = 0;
5238 if ac_fn_c_try_compile
"$LINENO"; then :
5239 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5241 (eval $am_ar_try) 2>&5
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }
5245 if test "$ac_status" -eq 0; then
5246 am_cv_ar_interface
=ar
5248 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5250 (eval $am_ar_try) 2>&5
5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; }
5254 if test "$ac_status" -eq 0; then
5255 am_cv_ar_interface
=lib
5257 am_cv_ar_interface
=unknown
5260 rm -f conftest.lib libconftest.a
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 ac_cpp
='$CPP $CPPFLAGS'
5266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5272 $as_echo "$am_cv_ar_interface" >&6; }
5274 case $am_cv_ar_interface in
5278 # Microsoft lib, so override with the ar-lib wrapper script.
5279 # FIXME: It is wrong to rewrite AR.
5280 # But if we don't then we get into trouble of one sort or another.
5281 # A longer-term fix would be to have automake use am__AR in this case,
5282 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5284 AR
="$am_aux_dir/ar-lib $AR"
5287 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5293 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5295 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false
; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$AR"; then
5302 ac_cv_prog_AR
="$AR" # Let the user override the test.
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir
=.
5309 for ac_exec_ext
in '' $ac_executable_extensions; do
5310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 if test -n "$AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_AR"; then
5334 # Extract the first word of "ar", so it can be a program name with args.
5335 set dummy
ar; ac_word
=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_AR"; then
5342 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_AR
="ar"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5362 if test -n "$ac_ct_AR"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5364 $as_echo "$ac_ct_AR" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_AR" = x
; then
5373 case $cross_compiling:$ac_tool_warned in
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned
=yes ;;
5385 if test -z "$ARFLAGS"; then
5391 if test -z "$RANLIB"; then
5392 if test $gl_cv_c_amsterdam_compiler = yes; then
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5397 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_RANLIB+:} false
; then :
5401 $as_echo_n "(cached) " >&6
5403 if test -n "$RANLIB"; then
5404 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir
=.
5411 for ac_exec_ext
in '' $ac_executable_extensions; do
5412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 RANLIB
=$ac_cv_prog_RANLIB
5424 if test -n "$RANLIB"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5426 $as_echo "$RANLIB" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5434 if test -z "$ac_cv_prog_RANLIB"; then
5435 ac_ct_RANLIB
=$RANLIB
5436 # Extract the first word of "ranlib", so it can be a program name with args.
5437 set dummy ranlib
; ac_word
=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$ac_ct_RANLIB"; then
5444 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir
=.
5451 for ac_exec_ext
in '' $ac_executable_extensions; do
5452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5464 if test -n "$ac_ct_RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5466 $as_echo "$ac_ct_RANLIB" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5472 if test "x$ac_ct_RANLIB" = x
; then
5475 case $cross_compiling:$ac_tool_warned in
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned
=yes ;;
5481 RANLIB
=$ac_ct_RANLIB
5484 RANLIB
="$ac_cv_prog_RANLIB"
5492 # Make sure we can run config.sub.
5493 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5494 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5497 $as_echo_n "checking build system type... " >&6; }
5498 if ${ac_cv_build+:} false
; then :
5499 $as_echo_n "(cached) " >&6
5501 ac_build_alias
=$build_alias
5502 test "x$ac_build_alias" = x
&&
5503 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5504 test "x$ac_build_alias" = x
&&
5505 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5506 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5507 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5511 $as_echo "$ac_cv_build" >&6; }
5512 case $ac_cv_build in
5514 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5517 ac_save_IFS
=$IFS; IFS
='-'
5523 # Remember, the first character of IFS is used to create $*,
5524 # except with old shells:
5527 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5531 $as_echo_n "checking host system type... " >&6; }
5532 if ${ac_cv_host+:} false
; then :
5533 $as_echo_n "(cached) " >&6
5535 if test "x$host_alias" = x
; then
5536 ac_cv_host
=$ac_cv_build
5538 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5539 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5544 $as_echo "$ac_cv_host" >&6; }
5547 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5550 ac_save_IFS
=$IFS; IFS
='-'
5556 # Remember, the first character of IFS is used to create $*,
5557 # except with old shells:
5560 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5566 # IEEE behaviour is the default on all CPUs except Alpha and SH
5567 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5568 # and the GCC 4.1.2 manual).
5571 # On Alpha systems, a compiler option provides the behaviour.
5572 # See the ieee(3) manual page, also available at
5573 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5574 if test -n "$GCC"; then
5575 # GCC has the option -mieee.
5576 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5577 CPPFLAGS
="$CPPFLAGS -mieee"
5579 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5580 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5581 CPPFLAGS
="$CPPFLAGS -ieee"
5585 if test -n "$GCC"; then
5586 # GCC has the option -mieee.
5587 CPPFLAGS
="$CPPFLAGS -mieee"
5592 # Check whether --enable-largefile was given.
5593 if test "${enable_largefile+set}" = set; then :
5594 enableval
=$enable_largefile;
5597 if test "$enable_largefile" != no
; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5600 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5601 if ${ac_cv_sys_largefile_CC+:} false
; then :
5602 $as_echo_n "(cached) " >&6
5604 ac_cv_sys_largefile_CC
=no
5605 if test "$GCC" != yes; then
5608 # IRIX 6.2 and later do not support large files by default,
5609 # so use the C compiler's -n32 option if that helps.
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 if ac_fn_c_try_compile
"$LINENO"; then :
5632 rm -f core conftest.err conftest.
$ac_objext
5634 if ac_fn_c_try_compile
"$LINENO"; then :
5635 ac_cv_sys_largefile_CC
=' -n32'; break
5637 rm -f core conftest.err conftest.
$ac_objext
5641 rm -f conftest.
$ac_ext
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5645 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5646 if test "$ac_cv_sys_largefile_CC" != no
; then
5647 CC
=$CC$ac_cv_sys_largefile_CC
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5651 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5652 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661 since some C++ compilers masquerading as C compilers
5662 incorrectly reject 9223372036854775807. */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665 && LARGE_OFF_T % 2147483647 == 1)
5675 if ac_fn_c_try_compile
"$LINENO"; then :
5676 ac_cv_sys_file_offset_bits
=no
; break
5678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #define _FILE_OFFSET_BITS 64
5682 #include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685 since some C++ compilers masquerading as C compilers
5686 incorrectly reject 9223372036854775807. */
5687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689 && LARGE_OFF_T % 2147483647 == 1)
5699 if ac_fn_c_try_compile
"$LINENO"; then :
5700 ac_cv_sys_file_offset_bits
=64; break
5702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 ac_cv_sys_file_offset_bits
=unknown
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5708 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5709 case $ac_cv_sys_file_offset_bits in #(
5712 cat >>confdefs.h
<<_ACEOF
5713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 if test $ac_cv_sys_file_offset_bits = unknown
; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5720 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5721 if ${ac_cv_sys_large_files+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 if ac_fn_c_try_compile
"$LINENO"; then :
5745 ac_cv_sys_large_files
=no
; break
5747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #define _LARGE_FILES 1
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5768 if ac_fn_c_try_compile
"$LINENO"; then :
5769 ac_cv_sys_large_files
=1; break
5771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5772 ac_cv_sys_large_files
=unknown
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5777 $as_echo "$ac_cv_sys_large_files" >&6; }
5778 case $ac_cv_sys_large_files in #(
5781 cat >>confdefs.h
<<_ACEOF
5782 #define _LARGE_FILES $ac_cv_sys_large_files
5790 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5799 # Check whether --enable-threads was given.
5800 if test "${enable_threads+set}" = set; then :
5801 enableval
=$enable_threads; gl_use_threads
=$enableval
5803 if test -n "$gl_use_threads_default"; then
5804 gl_use_threads
="$gl_use_threads_default"
5807 osf
*) gl_use_threads
=no
;;
5810 1.
[0-5].
*) gl_use_threads
=no
;;
5811 *) gl_use_threads
=yes ;;
5814 *) gl_use_threads
=yes ;;
5820 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
5821 # For using <pthread.h>:
5824 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5825 # groks <pthread.h>. cc also understands the flag -pthread, but
5826 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5827 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5828 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5829 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5830 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
5833 # Some systems optimize for single-threaded programs by default, and
5834 # need special flags to disable these optimizations. For example, the
5835 # definition of 'errno' in <errno.h>.
5837 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
5838 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
5844 # Pre-early section.
5849 # Code from module absolute-header:
5850 # Code from module alloca:
5851 # Code from module alloca-opt:
5852 # Code from module arpa_inet:
5853 # Code from module assure:
5854 # Code from module at-internal:
5855 # Code from module canonicalize-lgpl:
5856 # Code from module chdir:
5857 # Code from module chdir-long:
5858 # Code from module cloexec:
5859 # Code from module close:
5860 # Code from module closedir:
5861 # Code from module configmake:
5862 # Code from module d-ino:
5863 # Code from module d-type:
5864 # Code from module dirent:
5865 # Code from module dirfd:
5866 # Code from module dirname-lgpl:
5867 # Code from module dosname:
5868 # Code from module double-slash-root:
5869 # Code from module dup:
5870 # Code from module dup2:
5871 # Code from module environ:
5872 # Code from module errno:
5873 # Code from module error:
5874 # Code from module exitfail:
5875 # Code from module extensions:
5876 # Code from module extern-inline:
5877 # Code from module fchdir:
5878 # Code from module fcntl:
5879 # Code from module fcntl-h:
5880 # Code from module fd-hook:
5881 # Code from module fdopendir:
5882 # Code from module filename:
5883 # Code from module filenamecat-lgpl:
5884 # Code from module flexmember:
5885 # Code from module float:
5886 # Code from module fnmatch:
5887 # Code from module fnmatch-gnu:
5888 # Code from module fpieee:
5890 # Code from module fpucw:
5891 # Code from module frexp:
5892 # Code from module frexpl:
5893 # Code from module fstat:
5894 # Code from module fstatat:
5895 # Code from module getcwd:
5896 # Code from module getcwd-lgpl:
5897 # Code from module getdtablesize:
5898 # Code from module getlogin_r:
5899 # Code from module getprogname:
5900 # Code from module gettext-h:
5901 # Code from module gettimeofday:
5902 # Code from module glob:
5903 # Code from module hard-locale:
5904 # Code from module havelib:
5905 # Code from module include_next:
5906 # Code from module inet_ntop:
5907 # Code from module intprops:
5908 # Code from module inttypes:
5909 # Code from module inttypes-incomplete:
5910 # Code from module isnand-nolibm:
5911 # Code from module isnanl-nolibm:
5912 # Code from module largefile:
5914 # Code from module limits-h:
5915 # Code from module localcharset:
5916 # Code from module lock:
5917 # Code from module lstat:
5918 # Code from module malloc-posix:
5919 # Code from module malloca:
5920 # Code from module math:
5921 # Code from module mbrtowc:
5922 # Code from module mbsinit:
5923 # Code from module mbsrtowcs:
5924 # Code from module memchr:
5925 # Code from module memmem:
5926 # Code from module memmem-simple:
5927 # Code from module mempcpy:
5928 # Code from module memrchr:
5929 # Code from module mkdir:
5930 # Code from module mkdtemp:
5931 # Code from module mkostemp:
5932 # Code from module msvc-inval:
5933 # Code from module msvc-nothrow:
5934 # Code from module multiarch:
5935 # Code from module netinet_in:
5936 # Code from module nocrash:
5937 # Code from module open:
5938 # Code from module openat:
5939 # Code from module openat-die:
5940 # Code from module openat-h:
5941 # Code from module opendir:
5942 # Code from module pathmax:
5943 # Code from module rawmemchr:
5944 # Code from module readdir:
5945 # Code from module readlink:
5946 # Code from module realloc-posix:
5947 # Code from module rename:
5948 # Code from module rewinddir:
5949 # Code from module rmdir:
5950 # Code from module same-inode:
5951 # Code from module save-cwd:
5952 # Code from module secure_getenv:
5953 # Code from module setenv:
5954 # Code from module signal-h:
5955 # Code from module snippet/_Noreturn:
5956 # Code from module snippet/arg-nonnull:
5957 # Code from module snippet/c++defs:
5958 # Code from module snippet/warn-on-use:
5959 # Code from module socklen:
5960 # Code from module ssize_t:
5961 # Code from module stat:
5962 # Code from module stdalign:
5963 # Code from module stdbool:
5964 # Code from module stddef:
5965 # Code from module stdint:
5966 # Code from module stdio:
5967 # Code from module stdlib:
5968 # Code from module strchrnul:
5969 # Code from module strdup-posix:
5970 # Code from module streq:
5971 # Code from module strerror:
5972 # Code from module strerror-override:
5973 # Code from module strerror_r-posix:
5974 # Code from module string:
5975 # Code from module strnlen1:
5976 # Code from module strstr:
5977 # Code from module strstr-simple:
5978 # Code from module strtok_r:
5979 # Code from module sys_socket:
5980 # Code from module sys_stat:
5981 # Code from module sys_time:
5982 # Code from module sys_types:
5983 # Code from module sys_uio:
5984 # Code from module tempname:
5985 # Code from module threadlib:
5989 # Code from module time:
5990 # Code from module time_r:
5991 # Code from module unistd:
5992 # Code from module unistd-safer:
5993 # Code from module unsetenv:
5994 # Code from module update-copyright:
5995 # Code from module verify:
5996 # Code from module wchar:
5997 # Code from module wctype-h:
6000 ac_cpp
='$CPP $CPPFLAGS'
6001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6006 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_CC+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC
="$CC" # Let the user override the test.
6015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir
=.
6020 for ac_exec_ext
in '' $ac_executable_extensions; do
6021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 if test -n "$CC"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6043 if test -z "$ac_cv_prog_CC"; then
6045 # Extract the first word of "gcc", so it can be a program name with args.
6046 set dummy gcc
; ac_word
=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$ac_ct_CC"; then
6053 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir
=.
6060 for ac_exec_ext
in '' $ac_executable_extensions; do
6061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_CC
="gcc"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6073 if test -n "$ac_ct_CC"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6075 $as_echo "$ac_ct_CC" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6081 if test "x$ac_ct_CC" = x
; then
6084 case $cross_compiling:$ac_tool_warned in
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned
=yes ;;
6096 if test -z "$CC"; then
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6099 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_CC+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$CC"; then
6106 ac_cv_prog_CC
="$CC" # Let the user override the test.
6108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir
=.
6113 for ac_exec_ext
in '' $ac_executable_extensions; do
6114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 if test -n "$CC"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6128 $as_echo "$CC" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6137 if test -z "$CC"; then
6138 # Extract the first word of "cc", so it can be a program name with args.
6139 set dummy cc
; ac_word
=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_CC+:} false
; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$CC"; then
6146 ac_cv_prog_CC
="$CC" # Let the user override the test.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6157 ac_prog_rejected
=yes
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 if test $ac_prog_rejected = yes; then
6169 # We found a bogon in the path, so make sure we never use it.
6170 set dummy
$ac_cv_prog_CC
6172 if test $# != 0; then
6173 # We chose a different compiler from the bogus one.
6174 # However, it has the same basename, so the bogon will be chosen
6175 # first if we set CC to just the basename; use the full file name.
6177 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6183 if test -n "$CC"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6185 $as_echo "$CC" >&6; }
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6193 if test -z "$CC"; then
6194 if test -n "$ac_tool_prefix"; then
6195 for ac_prog
in cl.exe
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if ${ac_cv_prog_CC+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$CC"; then
6205 ac_cv_prog_CC
="$CC" # Let the user override the test.
6207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir
=.
6212 for ac_exec_ext
in '' $ac_executable_extensions; do
6213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 if test -n "$CC"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6227 $as_echo "$CC" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6234 test -n "$CC" && break
6237 if test -z "$CC"; then
6239 for ac_prog
in cl.exe
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy
$ac_prog; ac_word
=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$ac_ct_CC"; then
6249 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir
=.
6256 for ac_exec_ext
in '' $ac_executable_extensions; do
6257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_CC
="$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6269 if test -n "$ac_ct_CC"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6271 $as_echo "$ac_ct_CC" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6278 test -n "$ac_ct_CC" && break
6281 if test "x$ac_ct_CC" = x
; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned
=yes ;;
6297 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6299 as_fn_error $?
"no acceptable C compiler found in \$PATH
6300 See \`config.log' for more details" "$LINENO" 5; }
6302 # Provide some information about the compiler.
6303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6306 for ac_option
in --version -v -V -qversion; do
6307 { { ac_try
="$ac_compiler $ac_option >&5"
6309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6313 $as_echo "$ac_try_echo"; } >&5
6314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6316 if test -s conftest.err; then
6318 ... rest of stderr output deleted ...
6319 10q' conftest.err >conftest.er1
6320 cat conftest.er1 >&5
6322 rm -f conftest.er1 conftest.err
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6329 if ${ac_cv_c_compiler_gnu+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6346 if ac_fn_c_try_compile "$LINENO"; then :
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6357 if test $ac_compiler_gnu = yes; then
6362 ac_test_CFLAGS=${CFLAGS+set}
6363 ac_save_CFLAGS=$CFLAGS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6366 if ${ac_cv_prog_cc_g+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 ac_save_c_werror_flag=$ac_c_werror_flag
6370 ac_c_werror_flag=yes
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_c_try_compile "$LINENO"; then :
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6399 if ac_fn_c_try_compile "$LINENO"; then :
6402 ac_c_werror_flag=$ac_save_c_werror_flag
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6415 if ac_fn_c_try_compile "$LINENO"; then :
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_c_werror_flag=$ac_save_c_werror_flag
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6426 $as_echo "$ac_cv_prog_cc_g" >&6; }
6427 if test "$ac_test_CFLAGS" = set; then
6428 CFLAGS=$ac_save_CFLAGS
6429 elif test $ac_cv_prog_cc_g = yes; then
6430 if test "$GCC" = yes; then
6436 if test "$GCC" = yes; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6444 if ${ac_cv_prog_cc_c89+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 ac_cv_prog_cc_c89=no
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6455 struct buf { int x; };
6456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6457 static char *e (p, i)
6463 static char *f (char * (*g) (char **, int), char **p, ...)
6468 s = g (p, va_arg (v,int));
6473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6474 function prototypes and stuff, but not '\xHH' hex character constants.
6475 These don't provoke an error unfortunately, instead are silently treated
6476 as 'x'. The following induces an error, until -std is added to get
6477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6478 array size at least. It's necessary to write '\x00'==0 to get something
6479 that's true only with -std. */
6480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6483 inside strings and character constants. */
6485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6487 int test (int i, double x);
6488 struct s1 {int (*f) (int a);};
6489 struct s2 {int (*f) (double a);};
6490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6504 CC="$ac_save_CC $ac_arg"
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 ac_cv_prog_cc_c89=$ac_arg
6508 rm -f core conftest.err conftest.$ac_objext
6509 test "x$ac_cv_prog_cc_c89" != "xno" && break
6511 rm -f conftest.$ac_ext
6516 case "x$ac_cv_prog_cc_c89" in
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6519 $as_echo "none needed" >&6; } ;;
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6522 $as_echo "unsupported" >&6; } ;;
6524 CC="$CC $ac_cv_prog_cc_c89"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6528 if test "x$ac_cv_prog_cc_c89" != xno; then :
6533 ac_cpp='$CPP $CPPFLAGS'
6534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6544 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6545 if ${am_cv_prog_cc_c_o+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6559 # Make sure it works both with $CC and with simple cc.
6560 # Following AC_PROG_CC_C_O, we do the test twice because some
6561 # compilers refuse to overwrite an existing .o file with -o,
6562 # though they will create one.
6563 am_cv_prog_cc_c_o=yes
6565 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6566 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } \
6570 && test -f conftest2.$ac_objext; then
6573 am_cv_prog_cc_c_o=no
6577 rm -f core conftest*
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6581 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6582 if test "$am_cv_prog_cc_c_o" != yes; then
6583 # Losing compiler, so override with the script.
6584 # FIXME: It is wrong to rewrite CC.
6585 # But if we don't then we get into trouble of one sort or another.
6586 # A longer-term fix would be to have automake use am__CC in this case,
6587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6588 CC="$am_aux_dir/compile $CC"
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6601 $as_echo_n "checking target system type... " >&6; }
6602 if ${ac_cv_target+:} false; then :
6603 $as_echo_n "(cached) " >&6
6605 if test "x$target_alias" = x; then
6606 ac_cv_target=$ac_cv_host
6608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6614 $as_echo "$ac_cv_target" >&6; }
6615 case $ac_cv_target in
6617 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6619 target=$ac_cv_target
6620 ac_save_IFS=$IFS; IFS='-'
6626 # Remember, the first character of IFS is used to create $*,
6627 # except with old shells:
6630 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6633 # The aliases save the names the user supplied, while $host etc.
6634 # will get canonicalized.
6635 test -n "$target_alias" &&
6636 test "$program_prefix$program_suffix$program_transform_name" = \
6638 program_prefix=${target_alias}-
6640 # The tests for host and target for $enable_largefile require
6645 # As the $enable_largefile decision depends on --enable-plugins we must set it
6646 # even in directories otherwise not depending on the $plugins option.
6650 for ac_header in dlfcn.h
6652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6654 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_DLFCN_H 1
6663 for ac_header in windows.h
6665 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6667 if test "x$ac_cv_header_windows_h" = xyes; then :
6668 cat >>confdefs.h <<_ACEOF
6669 #define HAVE_WINDOWS_H 1
6677 # Check whether --enable-plugins was given.
6678 if test "${enable_plugins+set}" = set; then :
6679 enableval=$enable_plugins; case "${enableval}" in
6682 if test "$maybe_plugins" != "yes" ; then
6683 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6687 plugins=$maybe_plugins
6691 if test "$plugins" = "yes"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6693 $as_echo_n "checking for library containing dlsym... " >&6; }
6694 if ${ac_cv_search_dlsym+:} false; then :
6695 $as_echo_n "(cached) " >&6
6697 ac_func_search_save_LIBS=$LIBS
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6701 /* Override any GCC internal prototype to avoid an error.
6702 Use char because int might match the return type of a GCC
6703 builtin and then its argument prototype would still apply. */
6716 for ac_lib in '' dl; do
6717 if test -z "$ac_lib"; then
6718 ac_res="none required"
6721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 ac_cv_search_dlsym=$ac_res
6726 rm -f core conftest.err conftest.$ac_objext \
6728 if ${ac_cv_search_dlsym+:} false; then :
6732 if ${ac_cv_search_dlsym+:} false; then :
6735 ac_cv_search_dlsym=no
6738 LIBS=$ac_func_search_save_LIBS
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6741 $as_echo "$ac_cv_search_dlsym" >&6; }
6742 ac_res=$ac_cv_search_dlsym
6743 if test "$ac_res" != no; then :
6744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6752 sparc-*-solaris*|i[3-7]86-*-solaris*)
6753 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6754 # are mutually exclusive; and without procfs support, the bfd/ elf module
6755 # cannot provide certain routines such as elfcore_write_prpsinfo
6756 # or elfcore_write_prstatus. So unless the user explicitly requested
6757 # large-file support through the --enable-largefile switch, disable
6758 # large-file support in favor of procfs support.
6759 test "${target}" = "${host}" -a "x$plugins" = xno \
6760 && : ${enable_largefile="no"}
6764 # Check whether --enable-largefile was given.
6765 if test "${enable_largefile+set}" = set; then :
6766 enableval=$enable_largefile;
6769 if test "$enable_largefile" != no; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6773 if ${ac_cv_sys_largefile_CC+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 ac_cv_sys_largefile_CC=no
6777 if test "$GCC" != yes; then
6780 # IRIX 6.2 and later do not support large files by default,
6781 # so use the C compiler's -n32 option if that helps.
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <sys/types.h>
6785 /* Check that off_t can represent 2**63 - 1 correctly.
6786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6787 since some C++ compilers masquerading as C compilers
6788 incorrectly reject 9223372036854775807. */
6789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6791 && LARGE_OFF_T % 2147483647 == 1)
6801 if ac_fn_c_try_compile "$LINENO"; then :
6804 rm -f core conftest.err conftest.$ac_objext
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 ac_cv_sys_largefile_CC=' -n32'; break
6809 rm -f core conftest.err conftest.$ac_objext
6813 rm -f conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6817 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6818 if test "$ac_cv_sys_largefile_CC" != no; then
6819 CC=$CC$ac_cv_sys_largefile_CC
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6823 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6824 if ${ac_cv_sys_file_offset_bits+:} false; then :
6825 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 /* Check that off_t can represent 2**63 - 1 correctly.
6832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6833 since some C++ compilers masquerading as C compilers
6834 incorrectly reject 9223372036854775807. */
6835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6837 && LARGE_OFF_T % 2147483647 == 1)
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 ac_cv_sys_file_offset_bits=no; break
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #define _FILE_OFFSET_BITS 64
6854 #include <sys/types.h>
6855 /* Check that off_t can represent 2**63 - 1 correctly.
6856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6857 since some C++ compilers masquerading as C compilers
6858 incorrectly reject 9223372036854775807. */
6859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6861 && LARGE_OFF_T % 2147483647 == 1)
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 ac_cv_sys_file_offset_bits=64; break
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 ac_cv_sys_file_offset_bits=unknown
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6880 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6881 case $ac_cv_sys_file_offset_bits in #(
6884 cat >>confdefs.h <<_ACEOF
6885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6890 if test $ac_cv_sys_file_offset_bits = unknown; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6892 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6893 if ${ac_cv_sys_large_files+:} false; then :
6894 $as_echo_n "(cached) " >&6
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6900 /* Check that off_t can represent 2**63 - 1 correctly.
6901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6902 since some C++ compilers masquerading as C compilers
6903 incorrectly reject 9223372036854775807. */
6904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6906 && LARGE_OFF_T % 2147483647 == 1)
6916 if ac_fn_c_try_compile "$LINENO"; then :
6917 ac_cv_sys_large_files=no; break
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 #define _LARGE_FILES 1
6923 #include <sys/types.h>
6924 /* Check that off_t can represent 2**63 - 1 correctly.
6925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6926 since some C++ compilers masquerading as C compilers
6927 incorrectly reject 9223372036854775807. */
6928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6930 && LARGE_OFF_T % 2147483647 == 1)
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 ac_cv_sys_large_files=1; break
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 ac_cv_sys_large_files=unknown
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6949 $as_echo "$ac_cv_sys_large_files" >&6; }
6950 case $ac_cv_sys_large_files in #(
6953 cat >>confdefs.h <<_ACEOF
6954 #define _LARGE_FILES $ac_cv_sys_large_files
6962 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6969 for ac_dir in .. "$srcdir"/..; do
6970 if test -f "$ac_dir/install-sh"; then
6972 ac_install_sh="$ac_aux_dir/install-sh -c"
6974 elif test -f "$ac_dir/install.sh"; then
6976 ac_install_sh="$ac_aux_dir/install.sh -c"
6978 elif test -f "$ac_dir/shtool"; then
6980 ac_install_sh="$ac_aux_dir/shtool install -c"
6984 if test -z "$ac_aux_dir"; then
6985 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6988 # These three variables are undocumented and unsupported,
6989 # and are intended to be withdrawn in a future Autoconf release.
6990 # They can cause serious problems if a builder's source tree is in a directory
6991 # whose full name contains unusual characters.
6992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
7004 LIBC_FATAL_STDERR_=1
7005 export LIBC_FATAL_STDERR_
7007 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7008 if test "x$ac_cv_type_size_t" = xyes; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define size_t unsigned int
7018 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7019 # for constant arguments. Useless!
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7021 $as_echo_n "checking for working alloca.h... " >&6; }
7022 if ${ac_cv_working_alloca_h+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7031 char *p = (char *) alloca (2 * sizeof (int));
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 ac_cv_working_alloca_h=yes
7040 ac_cv_working_alloca_h=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7046 $as_echo "$ac_cv_working_alloca_h" >&6; }
7047 if test $ac_cv_working_alloca_h = yes; then
7049 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7054 $as_echo_n "checking for alloca... " >&6; }
7055 if ${ac_cv_func_alloca_works+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 # define alloca __builtin_alloca
7064 # include <malloc.h>
7065 # define alloca _alloca
7067 # ifdef HAVE_ALLOCA_H
7068 # include <alloca.h>
7073 # ifndef alloca /* predefined by HP cc +Olibcalls */
7074 void *alloca (size_t);
7084 char *p = (char *) alloca (1);
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 ac_cv_func_alloca_works=yes
7093 ac_cv_func_alloca_works=no
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7099 $as_echo "$ac_cv_func_alloca_works" >&6; }
7101 if test $ac_cv_func_alloca_works = yes; then
7103 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7106 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7107 # that cause trouble. Some versions do not even contain alloca or
7108 # contain a buggy version. If you still want to use their alloca,
7109 # use ar to extract alloca.o from them instead of compiling alloca.c.
7115 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7117 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
7121 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7122 if ${ac_cv_os_cray+:} false; then :
7123 $as_echo_n "(cached
) " >&6
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #if defined CRAY && ! defined CRAY2
7134 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7135 $EGREP "webecray
" >/dev/null 2>&1; then :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
7144 $as_echo "$ac_cv_os_cray" >&6; }
7145 if test $ac_cv_os_cray = yes; then
7146 for ac_func in _getb67 GETB67 getb67; do
7147 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define CRAY_STACKSEG_END $ac_func
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
7162 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7163 if ${ac_cv_c_stack_direction+:} false; then :
7164 $as_echo_n "(cached
) " >&6
7166 if test "$cross_compiling" = yes; then :
7167 ac_cv_c_stack_direction=0
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 $ac_includes_default
7173 find_stack_direction (int *addr, int depth)
7178 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7179 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7184 main (int argc, char **argv)
7186 return find_stack_direction (0, argc + !argv + 20) < 0;
7189 if ac_fn_c_try_run "$LINENO"; then :
7190 ac_cv_c_stack_direction=1
7192 ac_cv_c_stack_direction=-1
7194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7195 conftest.$ac_objext conftest.beam conftest.$ac_ext
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
7200 $as_echo "$ac_cv_c_stack_direction" >&6; }
7201 cat >>confdefs.h <<_ACEOF
7202 #define STACK_DIRECTION $ac_cv_c_stack_direction
7211 HAVE_DECL_INET_NTOP=1;
7212 HAVE_DECL_INET_PTON=1;
7213 REPLACE_INET_NTOP=0;
7214 REPLACE_INET_PTON=0;
7220 for ac_header in $gl_header_list
7222 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
7240 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
7241 if ${gl_cv_have_include_next+:} false; then :
7242 $as_echo_n "(cached
) " >&6
7244 rm -rf conftestd1a conftestd1b conftestd2
7245 mkdir conftestd1a conftestd1b conftestd2
7246 cat <<EOF > conftestd1a/conftest.h
7247 #define DEFINED_IN_CONFTESTD1
7248 #include_next <conftest.h>
7249 #ifdef DEFINED_IN_CONFTESTD2
7252 #error "include_next doesn
't work"
7255 cat <<EOF > conftestd1b/conftest.h
7256 #define DEFINED_IN_CONFTESTD1
7258 #include_next <conftest.h>
7259 #ifdef DEFINED_IN_CONFTESTD2
7262 #error "include_next doesn't work
"
7265 cat <<EOF > conftestd2/conftest.h
7266 #ifndef DEFINED_IN_CONFTESTD1
7267 #error "include_next
test doesn
't work"
7269 #define DEFINED_IN_CONFTESTD2
7271 gl_save_CPPFLAGS="$CPPFLAGS"
7272 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 #include <conftest.h>
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278 gl_cv_have_include_next=yes
7280 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 #include <conftest.h>
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 gl_cv_have_include_next=buggy
7288 gl_cv_have_include_next=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 CPPFLAGS="$gl_save_CPPFLAGS"
7295 rm -rf conftestd1a conftestd1b conftestd2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7299 $as_echo "$gl_cv_have_include_next" >&6; }
7300 PRAGMA_SYSTEM_HEADER=
7301 if test $gl_cv_have_include_next = yes; then
7302 INCLUDE_NEXT=include_next
7303 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7304 if test -n "$GCC"; then
7305 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7308 if test $gl_cv_have_include_next = buggy
; then
7309 INCLUDE_NEXT
=include
7310 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7312 INCLUDE_NEXT
=include
7313 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7320 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7321 if ${gl_cv_pragma_columns+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 $EGREP "choke me" >/dev
/null
2>&1; then :
7334 gl_cv_pragma_columns
=yes
7336 gl_cv_pragma_columns
=no
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7343 $as_echo "$gl_cv_pragma_columns" >&6; }
7344 if test $gl_cv_pragma_columns = yes; then
7345 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7364 if test $ac_cv_header_features_h = yes; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7372 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7373 if test -z "$MKDIR_P"; then
7374 if ${ac_cv_path_mkdir+:} false
; then :
7375 $as_echo_n "(cached) " >&6
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_prog
in mkdir gmkdir
; do
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7385 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7386 'mkdir (GNU coreutils) '* | \
7387 'mkdir (coreutils) '* | \
7388 'mkdir (fileutils) '4.1*)
7389 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7399 test -d .
/--version && rmdir .
/--version
7400 if test "${ac_cv_path_mkdir+set}" = set; then
7401 MKDIR_P
="$ac_cv_path_mkdir -p"
7403 # As a last resort, use the slow shell script. Don't cache a
7404 # value for MKDIR_P within a source directory, because that will
7405 # break other packages using the cache if that directory is
7406 # removed, or if the value is a relative name.
7407 MKDIR_P
="$ac_install_sh -d"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7411 $as_echo "$MKDIR_P" >&6; }
7416 GNULIB_CALLOC_POSIX
=0;
7417 GNULIB_CANONICALIZE_FILE_NAME
=0;
7418 GNULIB_GETLOADAVG
=0;
7421 GNULIB_MALLOC_POSIX
=0;
7428 GNULIB_POSIX_OPENPT
=0;
7435 GNULIB_REALLOC_POSIX
=0;
7438 GNULIB_SECURE_GETENV
=0;
7443 GNULIB_SYSTEM_POSIX
=0;
7449 HAVE_CANONICALIZE_FILE_NAME
=1;
7450 HAVE_DECL_GETLOADAVG
=1;
7458 HAVE_POSIX_OPENPT
=1;
7467 HAVE_SECURE_GETENV
=1;
7473 HAVE_STRUCT_RANDOM_DATA
=1;
7474 HAVE_SYS_LOADAVG_H
=0;
7476 HAVE_DECL_UNSETENV
=1;
7478 REPLACE_CANONICALIZE_FILE_NAME
=0;
7483 REPLACE_PTSNAME_R
=0;
7498 for ac_func
in $gl_func_list
7500 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7501 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7502 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7503 cat >>confdefs.h
<<_ACEOF
7504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7527 $as_echo_n "checking whether // is distinct from /... " >&6; }
7528 if ${gl_cv_double_slash_root+:} false
; then :
7529 $as_echo_n "(cached) " >&6
7531 if test x
"$cross_compiling" = xyes
; then
7532 # When cross-compiling, there is no way to tell whether // is special
7533 # short of a list of hosts. However, the only known hosts to date
7534 # that have a distinct // are Apollo DomainOS (too old to port to),
7535 # Cygwin, and z/OS. If anyone knows of another system for which // has
7536 # special semantics and is distinct from /, please report it to
7537 # <bug-gnulib@gnu.org>.
7539 *-cygwin | i370-ibm-openedition
)
7540 gl_cv_double_slash_root
=yes ;;
7542 # Be optimistic and assume that / and // are the same when we
7544 gl_cv_double_slash_root
='unknown, assuming no' ;;
7547 set x
`ls -di / // 2>/dev/null`
7548 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7549 gl_cv_double_slash_root
=no
7551 gl_cv_double_slash_root
=yes
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7556 $as_echo "$gl_cv_double_slash_root" >&6; }
7557 if test "$gl_cv_double_slash_root" = yes; then
7559 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7577 $as_echo_n "checking whether realpath works... " >&6; }
7578 if ${gl_cv_func_realpath_works+:} false
; then :
7579 $as_echo_n "(cached) " >&6
7584 if test "$cross_compiling" = yes; then :
7586 # Guess yes on glibc systems.
7587 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7588 # If we don't know, assume the worst.
7589 *) gl_cv_func_realpath_works
="guessing no" ;;
7593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7599 #if defined __MACH__ && defined __APPLE__
7600 /* Avoid a crash on Mac OS X. */
7601 #include <mach/mach.h>
7602 #include <mach/mach_error.h>
7603 #include <mach/thread_status.h>
7604 #include <mach/exception.h>
7605 #include <mach/task.h>
7606 #include <pthread.h>
7607 /* The exception port on which our thread listens. */
7608 static mach_port_t our_exception_port;
7609 /* The main function of the thread listening for exceptions of type
7612 mach_exception_thread (void *arg)
7614 /* Buffer for a message to be received. */
7616 mach_msg_header_t head;
7617 mach_msg_body_t msgh_body;
7620 mach_msg_return_t retval;
7621 /* Wait for a message on the exception port. */
7622 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7623 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7624 if (retval != MACH_MSG_SUCCESS)
7631 mach_port_t self = mach_task_self ();
7632 /* Allocate a port on which the thread shall listen for exceptions. */
7633 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7635 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7636 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7637 MACH_MSG_TYPE_MAKE_SEND)
7639 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7641 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7642 /* Create the thread listening on the exception port. */
7643 pthread_attr_t attr;
7645 if (pthread_attr_init (&attr) == 0
7646 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7647 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7648 pthread_attr_destroy (&attr);
7649 /* Replace the exception port info for these exceptions with our own.
7650 Note that we replace the exception port for the entire task, not only
7651 for a particular thread. This has the effect that when our exception
7652 port gets the message, the thread specific exception port has already
7653 been asked, and we don't need to bother about it.
7654 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7655 task_set_exception_ports (self, mask, our_exception_port,
7656 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7661 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7662 /* Avoid a crash on native Windows. */
7663 #define WIN32_LEAN_AND_MEAN
7664 #include <windows.h>
7665 #include <winerror.h>
7667 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7669 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7671 case EXCEPTION_ACCESS_VIOLATION:
7672 case EXCEPTION_IN_PAGE_ERROR:
7673 case EXCEPTION_STACK_OVERFLOW:
7674 case EXCEPTION_GUARD_PAGE:
7675 case EXCEPTION_PRIV_INSTRUCTION:
7676 case EXCEPTION_ILLEGAL_INSTRUCTION:
7677 case EXCEPTION_DATATYPE_MISALIGNMENT:
7678 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7679 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7682 return EXCEPTION_CONTINUE_SEARCH;
7687 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7690 /* Avoid a crash on POSIX systems. */
7693 /* A POSIX signal handler. */
7695 exception_handler (int sig)
7703 signal (SIGSEGV, exception_handler);
7706 signal (SIGBUS, exception_handler);
7720 char *name = realpath ("conftest.a", NULL);
7721 if (!(name && *name == '/'))
7726 char *name = realpath ("conftest.b/../conftest.a", NULL);
7732 char *name = realpath ("conftest.a/", NULL);
7738 char *name1 = realpath (".", NULL);
7739 char *name2 = realpath ("conftest.d//./..", NULL);
7740 if (! name1 || ! name2 || strcmp (name1, name2))
7752 if ac_fn_c_try_run
"$LINENO"; then :
7753 gl_cv_func_realpath_works
=yes
7755 gl_cv_func_realpath_works
=no
7757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7761 rm -rf conftest.a conftest.d
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7765 $as_echo "$gl_cv_func_realpath_works" >&6; }
7766 case "$gl_cv_func_realpath_works" in
7769 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7812 GNULIB_EUIDACCESS
=0;
7820 GNULIB_GETDOMAINNAME
=0;
7821 GNULIB_GETDTABLESIZE
=0;
7823 GNULIB_GETHOSTNAME
=0;
7825 GNULIB_GETLOGIN_R
=0;
7826 GNULIB_GETPAGESIZE
=0;
7827 GNULIB_GETUSERSHELL
=0;
7828 GNULIB_GROUP_MEMBER
=0;
7840 GNULIB_READLINKAT
=0;
7842 GNULIB_SETHOSTNAME
=0;
7847 GNULIB_UNISTD_H_NONBLOCKING
=0;
7848 GNULIB_UNISTD_H_SIGPIPE
=0;
7863 HAVE_GETDTABLESIZE
=1;
7868 HAVE_GROUP_MEMBER
=1;
7884 HAVE_DECL_ENVIRON
=1;
7886 HAVE_DECL_FDATASYNC
=1;
7887 HAVE_DECL_GETDOMAINNAME
=1;
7888 HAVE_DECL_GETLOGIN_R
=1;
7889 HAVE_DECL_GETPAGESIZE
=1;
7890 HAVE_DECL_GETUSERSHELL
=1;
7891 HAVE_DECL_SETHOSTNAME
=1;
7892 HAVE_DECL_TTYNAME_R
=1;
7900 REPLACE_FTRUNCATE
=0;
7902 REPLACE_GETDOMAINNAME
=0;
7903 REPLACE_GETDTABLESIZE
=0;
7904 REPLACE_GETLOGIN_R
=0;
7905 REPLACE_GETGROUPS
=0;
7906 REPLACE_GETPAGESIZE
=0;
7916 REPLACE_READLINKAT
=0;
7920 REPLACE_SYMLINKAT
=0;
7921 REPLACE_TTYNAME_R
=0;
7926 UNISTD_H_HAVE_WINSOCK2_H
=0;
7927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7960 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7961 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7963 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7966 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7994 HAVE_DECL_FDOPENDIR
=1;
8001 REPLACE_FDOPENDIR
=0;
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8022 $as_echo_n "checking if environ is properly declared... " >&6; }
8023 if ${gt_cv_var_environ_declaration+:} false
; then :
8024 $as_echo_n "(cached) " >&6
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8032 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8035 extern struct { int foo; } environ;
8044 if ac_fn_c_try_compile
"$LINENO"; then :
8045 gt_cv_var_environ_declaration
=no
8047 gt_cv_var_environ_declaration
=yes
8049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8053 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8054 if test $gt_cv_var_environ_declaration = yes; then
8056 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8061 if test $gt_cv_var_environ_declaration != yes; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8068 $as_echo_n "checking for complete errno.h... " >&6; }
8069 if ${gl_cv_header_errno_h_complete+:} false
; then :
8070 $as_echo_n "(cached) " >&6
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8077 #if !defined ETXTBSY
8086 #if !defined ENOLINK
8092 #if !defined EMULTIHOP
8095 #if !defined EBADMSG
8098 #if !defined EOVERFLOW
8101 #if !defined ENOTSUP
8104 #if !defined ENETRESET
8107 #if !defined ECONNABORTED
8116 #if !defined ECANCELED
8119 #if !defined EOWNERDEAD
8122 #if !defined ENOTRECOVERABLE
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131 $EGREP "booboo" >/dev
/null
2>&1; then :
8132 gl_cv_header_errno_h_complete
=no
8134 gl_cv_header_errno_h_complete
=yes
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8141 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8142 if test $gl_cv_header_errno_h_complete = yes; then
8153 if test $gl_cv_have_include_next = yes; then
8154 gl_cv_next_errno_h
='<'errno.h
'>'
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8157 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8158 if ${gl_cv_next_errno_h+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8169 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8170 *) gl_absname_cpp
="$ac_cpp" ;;
8175 gl_dirsep_regex
='[/\\]'
8178 gl_dirsep_regex
='\/'
8181 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8182 gl_header_literal_regex
=`echo 'errno.h' \
8183 | sed -e "$gl_make_literal_regex_sed"`
8184 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8191 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8192 sed -n "$gl_absolute_header_sed"`
8194 gl_header
=$gl_cv_absolute_errno_h
8195 gl_cv_next_errno_h
='"'$gl_header'"'
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8200 $as_echo "$gl_cv_next_errno_h" >&6; }
8202 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8204 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8206 gl_next_as_first_directive
='<'errno.h
'>'
8208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8209 gl_next_as_first_directive
=$gl_cv_next_errno_h
8211 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8219 if test -n "$ERRNO_H"; then
8220 GL_GENERATE_ERRNO_H_TRUE
=
8221 GL_GENERATE_ERRNO_H_FALSE
='#'
8223 GL_GENERATE_ERRNO_H_TRUE
='#'
8224 GL_GENERATE_ERRNO_H_FALSE
=
8228 if test -n "$ERRNO_H"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8230 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8231 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8232 $as_echo_n "(cached) " >&6
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "yes" >/dev
/null
2>&1; then :
8246 gl_cv_header_errno_h_EMULTIHOP
=yes
8248 gl_cv_header_errno_h_EMULTIHOP
=no
8252 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8256 #define _XOPEN_SOURCE_EXTENDED 1
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 $EGREP "yes" >/dev
/null
2>&1; then :
8265 gl_cv_header_errno_h_EMULTIHOP
=hidden
8269 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8270 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8271 #define _XOPEN_SOURCE_EXTENDED 1
8273 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8285 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8286 case $gl_cv_header_errno_h_EMULTIHOP in
8288 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8291 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8299 if test -n "$ERRNO_H"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8301 $as_echo_n "checking for ENOLINK value... " >&6; }
8302 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8303 $as_echo_n "(cached) " >&6
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8316 $EGREP "yes" >/dev
/null
2>&1; then :
8317 gl_cv_header_errno_h_ENOLINK
=yes
8319 gl_cv_header_errno_h_ENOLINK
=no
8323 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8327 #define _XOPEN_SOURCE_EXTENDED 1
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "yes" >/dev
/null
2>&1; then :
8336 gl_cv_header_errno_h_ENOLINK
=hidden
8340 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8341 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8342 #define _XOPEN_SOURCE_EXTENDED 1
8344 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8356 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8357 case $gl_cv_header_errno_h_ENOLINK in
8359 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8362 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8370 if test -n "$ERRNO_H"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8372 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8373 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 $EGREP "yes" >/dev
/null
2>&1; then :
8388 gl_cv_header_errno_h_EOVERFLOW
=yes
8390 gl_cv_header_errno_h_EOVERFLOW
=no
8394 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8398 #define _XOPEN_SOURCE_EXTENDED 1
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 $EGREP "yes" >/dev
/null
2>&1; then :
8407 gl_cv_header_errno_h_EOVERFLOW
=hidden
8411 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8412 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8413 #define _XOPEN_SOURCE_EXTENDED 1
8415 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8427 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8428 case $gl_cv_header_errno_h_EOVERFLOW in
8430 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8433 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8443 $as_echo "#define HAVE_DECL_STRERROR_R 1" >>confdefs.h
8446 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
8449 $as_echo "#define STRERROR_R_CHAR_P 0" >>confdefs.h
8453 XGETTEXT_EXTRA_OPTIONS
=
8459 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8460 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8466 cat >>confdefs.h
<<_ACEOF
8467 #define HAVE_DECL_FCHDIR $ac_have_decl
8473 GNULIB_NONBLOCKING
=0;
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8510 $as_echo_n "checking for working fcntl.h... " >&6; }
8511 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8514 if test "$cross_compiling" = yes; then :
8515 gl_cv_header_working_fcntl_h
=cross-compiling
8517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #include <sys/types.h>
8520 #include <sys/stat.h>
8522 # include <unistd.h>
8523 #else /* on Windows with MSVC */
8525 # include <stdlib.h>
8526 # defined sleep(n) _sleep ((n) * 1000)
8533 #define O_NOFOLLOW 0
8535 static int const constants[] =
8537 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8538 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8545 int result = !constants;
8548 static char const sym[] = "conftest.sym";
8549 if (symlink ("/dev/null", sym) != 0)
8553 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8560 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8564 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8575 static char const file[] = "confdefs.h";
8576 int fd = open (file, O_RDONLY | O_NOATIME);
8582 if (fstat (fd, &st0) != 0)
8588 if (read (fd, &c, 1) != 1)
8592 if (close (fd) != 0)
8597 if (stat (file, &st1) != 0)
8600 if (st0.st_atime != st1.st_atime)
8612 if ac_fn_c_try_run
"$LINENO"; then :
8613 gl_cv_header_working_fcntl_h
=yes
8616 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8617 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8618 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8619 *) gl_cv_header_working_fcntl_h
='no';;
8622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8628 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8630 case $gl_cv_header_working_fcntl_h in #(
8631 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8635 cat >>confdefs.h
<<_ACEOF
8636 #define HAVE_WORKING_O_NOATIME $ac_val
8640 case $gl_cv_header_working_fcntl_h in #(
8641 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8645 cat >>confdefs.h
<<_ACEOF
8646 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8650 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8651 if test "x$ac_cv_type_pid_t" = xyes
; then :
8655 cat >>confdefs.h
<<_ACEOF
8661 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8662 if test "x$ac_cv_type_mode_t" = xyes
; then :
8666 cat >>confdefs.h
<<_ACEOF
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8685 $as_echo_n "checking for mbstate_t... " >&6; }
8686 if ${ac_cv_type_mbstate_t+:} false
; then :
8687 $as_echo_n "(cached) " >&6
8689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 $ac_includes_default
8692 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8694 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8695 included before <wchar.h>. */
8703 mbstate_t x; return sizeof x;
8708 if ac_fn_c_try_compile
"$LINENO"; then :
8709 ac_cv_type_mbstate_t
=yes
8711 ac_cv_type_mbstate_t
=no
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8716 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8717 if test $ac_cv_type_mbstate_t = yes; then
8719 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8723 $as_echo "#define mbstate_t int" >>confdefs.h
8843 GNULIB_REMAINDERF
=0;
8844 GNULIB_REMAINDERL
=0;
8930 HAVE_DECL_COPYSIGNF
=1;
8947 HAVE_DECL_REMAINDER
=1;
8948 HAVE_DECL_REMAINDERL
=1;
9010 REPLACE_REMAINDER
=0;
9011 REPLACE_REMAINDERF
=0;
9012 REPLACE_REMAINDERL
=0;
9017 REPLACE_SIGNBIT_USING_GCC
=0;
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9025 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9026 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9027 $as_echo_n "(cached) " >&6
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9037 int e; return frexp (x, &e) > 0;
9042 if ac_fn_c_try_link
"$LINENO"; then :
9043 gl_cv_func_frexp_no_libm
=yes
9045 gl_cv_func_frexp_no_libm
=no
9047 rm -f core conftest.err conftest.
$ac_objext \
9048 conftest
$ac_exeext conftest.
$ac_ext
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9052 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9055 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9056 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9062 cat >>confdefs.h
<<_ACEOF
9063 #define HAVE_DECL_ALARM $ac_have_decl
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9069 $as_echo_n "checking whether long double and double are the same... " >&6; }
9070 if ${gl_cv_long_double_equals_double+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9079 typedef int check[sizeof (long double) == sizeof (double)
9080 && LDBL_MANT_DIG == DBL_MANT_DIG
9081 && LDBL_MAX_EXP == DBL_MAX_EXP
9082 && LDBL_MIN_EXP == DBL_MIN_EXP
9089 if ac_fn_c_try_compile
"$LINENO"; then :
9090 gl_cv_long_double_equals_double
=yes
9092 gl_cv_long_double_equals_double
=no
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9098 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9099 if test $gl_cv_long_double_equals_double = yes; then
9101 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9105 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9142 REPLACE_UTIMENSAT
=0;
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9145 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9146 if ${ac_cv_header_stat_broken+:} false
; then :
9147 $as_echo_n "(cached) " >&6
9149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #include <sys/types.h>
9152 #include <sys/stat.h>
9154 #if defined S_ISBLK && defined S_IFDIR
9155 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9158 #if defined S_ISBLK && defined S_IFCHR
9159 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9162 #if defined S_ISLNK && defined S_IFREG
9163 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9166 #if defined S_ISSOCK && defined S_IFREG
9167 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9171 if ac_fn_c_try_compile
"$LINENO"; then :
9172 ac_cv_header_stat_broken
=no
9174 ac_cv_header_stat_broken
=yes
9176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9179 $as_echo "$ac_cv_header_stat_broken" >&6; }
9180 if test $ac_cv_header_stat_broken = yes; then
9182 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9196 $as_echo_n "checking for 64-bit off_t... " >&6; }
9197 if ${gl_cv_type_off_t_64+:} false
; then :
9198 $as_echo_n "(cached) " >&6
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 #include <sys/types.h>
9203 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9213 if ac_fn_c_try_compile
"$LINENO"; then :
9214 gl_cv_type_off_t_64
=yes
9216 gl_cv_type_off_t_64
=no
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9222 $as_echo "$gl_cv_type_off_t_64" >&6; }
9223 if test $gl_cv_type_off_t_64 = no
; then
9224 WINDOWS_64_BIT_OFF_T
=1
9226 WINDOWS_64_BIT_OFF_T
=0
9228 WINDOWS_64_BIT_ST_SIZE
=1
9231 WINDOWS_64_BIT_OFF_T
=0
9232 WINDOWS_64_BIT_ST_SIZE
=0
9256 if test $gl_cv_have_include_next = yes; then
9257 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9260 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9261 if ${gl_cv_next_sys_stat_h+:} false
; then :
9262 $as_echo_n "(cached) " >&6
9265 if test $ac_cv_header_sys_stat_h = yes; then
9270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 #include <sys/stat.h>
9275 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9276 *) gl_absname_cpp
="$ac_cpp" ;;
9281 gl_dirsep_regex
='[/\\]'
9284 gl_dirsep_regex
='\/'
9287 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9288 gl_header_literal_regex
=`echo 'sys/stat.h' \
9289 | sed -e "$gl_make_literal_regex_sed"`
9290 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9297 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9298 sed -n "$gl_absolute_header_sed"`
9300 gl_header
=$gl_cv_absolute_sys_stat_h
9301 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9303 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9309 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9311 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9313 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9315 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9318 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9320 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9332 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
9334 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
9338 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9339 #include <sys/stat.h>
9341 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9345 $as_echo "#define nlink_t int" >>confdefs.h
9351 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9352 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9354 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9355 if eval \
${$as_gl_Symbol+:} false
; then :
9356 $as_echo_n "(cached) " >&6
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <sys/stat.h>
9371 if ac_fn_c_try_compile
"$LINENO"; then :
9372 eval "$as_gl_Symbol=yes"
9374 eval "$as_gl_Symbol=no"
9376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9378 eval ac_res
=\$
$as_gl_Symbol
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9380 $as_echo "$ac_res" >&6; }
9381 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9382 cat >>confdefs.h
<<_ACEOF
9383 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9386 eval ac_cv_have_decl_
$gl_func=yes
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9393 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9394 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9395 $as_echo_n "(cached) " >&6
9397 rm -f conftest.sym conftest.
file
9399 if test "$cross_compiling" = yes; then :
9402 # Guess yes on glibc systems.
9403 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9405 # If we don't know, assume the worst.
9406 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 $ac_includes_default
9417 if (symlink ("conftest.file", "conftest.sym") != 0)
9419 /* Linux will dereference the symlink and fail, as required by
9420 POSIX. That is better in the sense that it means we will not
9421 have to compile and use the lstat wrapper. */
9422 return lstat ("conftest.sym/", &sbuf) == 0;
9428 if ac_fn_c_try_run
"$LINENO"; then :
9429 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9431 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9437 rm -f conftest.sym conftest.
file
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9441 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9442 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9445 cat >>confdefs.h
<<_ACEOF
9446 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9466 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9467 if ${gl_cv_func_getcwd_null+:} false
; then :
9468 $as_echo_n "(cached) " >&6
9470 if test "$cross_compiling" = yes; then :
9472 # Guess yes on glibc systems.
9473 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9474 # Guess yes on Cygwin.
9475 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9476 # If we don't know, assume the worst.
9477 *) gl_cv_func_getcwd_null
="guessing no";;
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 # include <stdlib.h>
9486 # include <unistd.h>
9487 # else /* on Windows with MSVC */
9488 # include <direct.h>
9498 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9499 /* mingw cwd does not start with '/', but getcwd does allocate.
9500 However, mingw fails to honor non-zero size. */
9502 if (chdir ("/") != 0)
9506 char *f = getcwd (NULL, 0);
9522 if ac_fn_c_try_run
"$LINENO"; then :
9523 gl_cv_func_getcwd_null
=yes
9525 gl_cv_func_getcwd_null
=no
9527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9533 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9537 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9538 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9539 $as_echo_n "(cached) " >&6
9541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9551 char *getcwd (char *, size_t);
9558 if ac_fn_c_try_compile
"$LINENO"; then :
9559 gl_cv_func_getcwd_posix_signature
=yes
9561 gl_cv_func_getcwd_posix_signature
=no
9563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9567 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9570 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9571 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9577 cat >>confdefs.h
<<_ACEOF
9578 #define HAVE_DECL_GETCWD $ac_have_decl
9588 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9589 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9595 cat >>confdefs.h
<<_ACEOF
9596 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9601 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9602 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9608 cat >>confdefs.h
<<_ACEOF
9609 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9619 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9620 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9626 cat >>confdefs.h
<<_ACEOF
9627 #define HAVE_DECL_GETLOGIN $ac_have_decl
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9642 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9643 if ${ac_cv_c_restrict+:} false
; then :
9644 $as_echo_n "(cached) " >&6
9647 # The order here caters to the fact that C++ does not require restrict.
9648 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 typedef int *int_ptr;
9652 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9653 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9654 int bar (int ip[$ac_kw]) { return ip[0]; }
9662 return foo (t) + bar (t);
9668 if ac_fn_c_try_compile
"$LINENO"; then :
9669 ac_cv_c_restrict
=$ac_kw
9671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 test "$ac_cv_c_restrict" != no
&& break
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9677 $as_echo "$ac_cv_c_restrict" >&6; }
9679 case $ac_cv_c_restrict in
9681 no
) $as_echo "#define restrict /**/" >>confdefs.h
9683 *) cat >>confdefs.h
<<_ACEOF
9684 #define restrict $ac_cv_c_restrict
9690 GNULIB_GETTIMEOFDAY
=0;
9691 HAVE_GETTIMEOFDAY
=1;
9692 HAVE_STRUCT_TIMEVAL
=1;
9695 REPLACE_GETTIMEOFDAY
=0;
9696 REPLACE_STRUCT_TIMEVAL
=0;
9728 if test $gl_cv_have_include_next = yes; then
9729 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9732 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9733 if ${gl_cv_next_sys_time_h+:} false
; then :
9734 $as_echo_n "(cached) " >&6
9737 if test $ac_cv_header_sys_time_h = yes; then
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 #include <sys/time.h>
9747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9748 *) gl_absname_cpp
="$ac_cpp" ;;
9753 gl_dirsep_regex
='[/\\]'
9756 gl_dirsep_regex
='\/'
9759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9760 gl_header_literal_regex
=`echo 'sys/time.h' \
9761 | sed -e "$gl_make_literal_regex_sed"`
9762 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9769 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9770 sed -n "$gl_absolute_header_sed"`
9772 gl_header
=$gl_cv_absolute_sys_time_h
9773 gl_cv_next_sys_time_h
='"'$gl_header'"'
9775 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9781 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9783 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9785 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9787 gl_next_as_first_directive
='<'sys
/time.h
'>'
9789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9790 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9792 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9798 if test $ac_cv_header_sys_time_h != yes; then
9812 if test $ac_cv_header_sys_socket_h != yes; then
9813 for ac_header
in winsock2.h
9815 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9816 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9817 cat >>confdefs.h
<<_ACEOF
9818 #define HAVE_WINSOCK2_H 1
9826 if test "$ac_cv_header_winsock2_h" = yes; then
9828 UNISTD_H_HAVE_WINSOCK2_H
=1
9829 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9836 $as_echo_n "checking for struct timeval... " >&6; }
9837 if ${gl_cv_sys_struct_timeval+:} false
; then :
9838 $as_echo_n "(cached) " >&6
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 #include <sys/time.h>
9847 # include <winsock2.h>
9853 static struct timeval x; x.tv_sec = x.tv_usec;
9858 if ac_fn_c_try_compile
"$LINENO"; then :
9859 gl_cv_sys_struct_timeval
=yes
9861 gl_cv_sys_struct_timeval
=no
9863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9867 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9868 if test $gl_cv_sys_struct_timeval != yes; then
9869 HAVE_STRUCT_TIMEVAL
=0
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9872 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9873 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9874 $as_echo_n "(cached) " >&6
9876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9879 #include <sys/time.h>
9883 # include <winsock2.h>
9889 static struct timeval x;
9890 typedef int verify_tv_sec_type[
9891 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9898 if ac_fn_c_try_compile
"$LINENO"; then :
9899 gl_cv_sys_struct_timeval_tv_sec
=yes
9901 gl_cv_sys_struct_timeval_tv_sec
=no
9903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9907 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9908 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9909 REPLACE_STRUCT_TIMEVAL
=1
9914 for gl_func
in gettimeofday
; do
9915 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9917 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9918 if eval \
${$as_gl_Symbol+:} false
; then :
9919 $as_echo_n "(cached) " >&6
9921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9925 # include <sys/time.h>
9938 if ac_fn_c_try_compile
"$LINENO"; then :
9939 eval "$as_gl_Symbol=yes"
9941 eval "$as_gl_Symbol=no"
9943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9945 eval ac_res
=\$
$as_gl_Symbol
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9947 $as_echo "$ac_res" >&6; }
9948 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9949 cat >>confdefs.h
<<_ACEOF
9950 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9953 eval ac_cv_have_decl_
$gl_func=yes
9986 GNULIB_GETPEERNAME
=0;
9987 GNULIB_GETSOCKNAME
=0;
9988 GNULIB_GETSOCKOPT
=0;
9994 GNULIB_SETSOCKOPT
=0;
9997 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9998 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10000 HAVE_SA_FAMILY_T
=1;
10010 if test $ac_cv_header_sys_socket_h = no
; then
10011 for ac_header
in ws2tcpip.h
10013 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
10014 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
10015 cat >>confdefs.h
<<_ACEOF
10016 #define HAVE_WS2TCPIP_H 1
10032 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10038 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10039 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10040 $as_echo_n "(cached) " >&6
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 #include <sys/socket.h>
10054 if ac_fn_c_try_compile
"$LINENO"; then :
10055 gl_cv_header_sys_socket_h_selfcontained
=yes
10057 gl_cv_header_sys_socket_h_selfcontained
=no
10059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10063 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10064 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10065 for ac_func
in shutdown
10067 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10068 if test "x$ac_cv_func_shutdown" = xyes
; then :
10069 cat >>confdefs.h
<<_ACEOF
10070 #define HAVE_SHUTDOWN 1
10076 if test $ac_cv_func_shutdown = yes; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10078 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10079 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10080 $as_echo_n "(cached) " >&6
10083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 #include <sys/socket.h>
10089 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10094 if ac_fn_c_try_compile
"$LINENO"; then :
10095 gl_cv_header_sys_socket_h_shut
=yes
10097 gl_cv_header_sys_socket_h_shut
=no
10099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10103 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10104 if test $gl_cv_header_sys_socket_h_shut = no
; then
10105 SYS_SOCKET_H
='sys/socket.h'
10109 # We need to check for ws2tcpip.h now.
10127 if test $gl_cv_have_include_next = yes; then
10128 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10131 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10132 if ${gl_cv_next_sys_socket_h+:} false
; then :
10133 $as_echo_n "(cached) " >&6
10136 if test $ac_cv_header_sys_socket_h = yes; then
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <sys/socket.h>
10146 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10147 *) gl_absname_cpp
="$ac_cpp" ;;
10152 gl_dirsep_regex
='[/\\]'
10155 gl_dirsep_regex
='\/'
10158 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10159 gl_header_literal_regex
=`echo 'sys/socket.h' \
10160 | sed -e "$gl_make_literal_regex_sed"`
10161 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10162 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10168 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10169 sed -n "$gl_absolute_header_sed"`
10171 gl_header
=$gl_cv_absolute_sys_socket_h
10172 gl_cv_next_sys_socket_h
='"'$gl_header'"'
10174 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
10180 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
10182 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
10184 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10186 gl_next_as_first_directive
='<'sys
/socket.h
'>'
10188 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10189 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
10191 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
10196 if test $ac_cv_header_sys_socket_h = yes; then
10197 HAVE_SYS_SOCKET_H
=1
10200 HAVE_SYS_SOCKET_H
=0
10201 if test $ac_cv_header_ws2tcpip_h = yes; then
10210 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10211 /* sys/types.h is not needed according to POSIX, but the
10212 sys/socket.h in i386-unknown-freebsd4.10 and
10213 powerpc-apple-darwin5.5 required it. */
10214 #include <sys/types.h>
10215 #ifdef HAVE_SYS_SOCKET_H
10216 #include <sys/socket.h>
10218 #ifdef HAVE_WS2TCPIP_H
10219 #include <ws2tcpip.h>
10223 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
10225 cat >>confdefs.h
<<_ACEOF
10226 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10231 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10232 /* sys/types.h is not needed according to POSIX, but the
10233 sys/socket.h in i386-unknown-freebsd4.10 and
10234 powerpc-apple-darwin5.5 required it. */
10235 #include <sys/types.h>
10236 #ifdef HAVE_SYS_SOCKET_H
10237 #include <sys/socket.h>
10239 #ifdef HAVE_WS2TCPIP_H
10240 #include <ws2tcpip.h>
10244 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
10246 cat >>confdefs.h
<<_ACEOF
10247 #define HAVE_SA_FAMILY_T 1
10253 if test $ac_cv_type_struct_sockaddr_storage = no
; then
10254 HAVE_STRUCT_SOCKADDR_STORAGE
=0
10256 if test $ac_cv_type_sa_family_t = no
; then
10259 if test $ac_cv_type_struct_sockaddr_storage != no
; then
10260 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10261 #ifdef HAVE_SYS_SOCKET_H
10262 #include <sys/socket.h>
10264 #ifdef HAVE_WS2TCPIP_H
10265 #include <ws2tcpip.h>
10269 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
10271 cat >>confdefs.h
<<_ACEOF
10272 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10277 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
10281 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
10282 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
10283 SYS_SOCKET_H
='sys/socket.h'
10295 if test $ac_cv_header_sys_socket_h != yes; then
10296 for ac_header
in winsock2.h
10298 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10299 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10300 cat >>confdefs.h
<<_ACEOF
10301 #define HAVE_WINSOCK2_H 1
10309 if test "$ac_cv_header_winsock2_h" = yes; then
10311 UNISTD_H_HAVE_WINSOCK2_H
=1
10312 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10320 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
10321 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10323 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10324 if eval \
${$as_gl_Symbol+:} false
; then :
10325 $as_echo_n "(cached) " >&6
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Some systems require prerequisite headers. */
10331 #include <sys/types.h>
10332 #include <sys/socket.h>
10343 if ac_fn_c_try_compile
"$LINENO"; then :
10344 eval "$as_gl_Symbol=yes"
10346 eval "$as_gl_Symbol=no"
10348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10350 eval ac_res
=\$
$as_gl_Symbol
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10352 $as_echo "$ac_res" >&6; }
10353 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10354 cat >>confdefs.h
<<_ACEOF
10355 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10358 eval ac_cv_have_decl_
$gl_func=yes
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10379 $as_echo_n "checking for IPv4 sockets... " >&6; }
10380 if ${gl_cv_socket_ipv4+:} false
; then :
10381 $as_echo_n "(cached) " >&6
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385 #include <sys/types.h>
10386 #ifdef HAVE_SYS_SOCKET_H
10387 #include <sys/socket.h>
10389 #ifdef HAVE_NETINET_IN_H
10390 #include <netinet/in.h>
10392 #ifdef HAVE_WINSOCK2_H
10393 #include <winsock2.h>
10398 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10399 if (&x && &y && &z) return 0;
10404 if ac_fn_c_try_compile
"$LINENO"; then :
10405 gl_cv_socket_ipv4
=yes
10407 gl_cv_socket_ipv4
=no
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10413 $as_echo "$gl_cv_socket_ipv4" >&6; }
10414 if test $gl_cv_socket_ipv4 = yes; then
10416 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10421 $as_echo_n "checking for IPv6 sockets... " >&6; }
10422 if ${gl_cv_socket_ipv6+:} false
; then :
10423 $as_echo_n "(cached) " >&6
10425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #include <sys/types.h>
10428 #ifdef HAVE_SYS_SOCKET_H
10429 #include <sys/socket.h>
10431 #ifdef HAVE_NETINET_IN_H
10432 #include <netinet/in.h>
10434 #ifdef HAVE_WINSOCK2_H
10435 #include <winsock2.h>
10437 #ifdef HAVE_WS2TCPIP_H
10438 #include <ws2tcpip.h>
10443 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10444 if (&x && &y && &z) return 0;
10449 if ac_fn_c_try_compile
"$LINENO"; then :
10450 gl_cv_socket_ipv6
=yes
10452 gl_cv_socket_ipv6
=no
10454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10458 $as_echo "$gl_cv_socket_ipv6" >&6; }
10459 if test $gl_cv_socket_ipv6 = yes; then
10461 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10486 if test $gl_cv_have_include_next = yes; then
10487 gl_cv_next_limits_h
='<'limits.h
'>'
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10490 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10491 if ${gl_cv_next_limits_h+:} false
; then :
10492 $as_echo_n "(cached) " >&6
10495 if test $ac_cv_header_limits_h = yes; then
10500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 #include <limits.h>
10505 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10506 *) gl_absname_cpp
="$ac_cpp" ;;
10511 gl_dirsep_regex
='[/\\]'
10514 gl_dirsep_regex
='\/'
10517 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10518 gl_header_literal_regex
=`echo 'limits.h' \
10519 | sed -e "$gl_make_literal_regex_sed"`
10520 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10521 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10527 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10528 sed -n "$gl_absolute_header_sed"`
10530 gl_header
=$gl_cv_absolute_limits_h
10531 gl_cv_next_limits_h
='"'$gl_header'"'
10533 gl_cv_next_limits_h
='<'limits.h
'>'
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10539 $as_echo "$gl_cv_next_limits_h" >&6; }
10541 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10543 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10545 gl_next_as_first_directive
='<'limits.h
'>'
10547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10548 gl_next_as_first_directive
=$gl_cv_next_limits_h
10550 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10557 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10558 if ${gl_cv_header_limits_width+:} false
; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10564 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10566 #include <limits.h>
10567 int ullw = ULLONG_WIDTH;
10576 if ac_fn_c_try_compile
"$LINENO"; then :
10577 gl_cv_header_limits_width
=yes
10579 gl_cv_header_limits_width
=no
10581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10584 $as_echo "$gl_cv_header_limits_width" >&6; }
10585 if test "$gl_cv_header_limits_width" = yes; then
10591 if test -n "$LIMITS_H"; then
10592 GL_GENERATE_LIMITS_H_TRUE
=
10593 GL_GENERATE_LIMITS_H_FALSE
='#'
10595 GL_GENERATE_LIMITS_H_TRUE
='#'
10596 GL_GENERATE_LIMITS_H_FALSE
=
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10602 $as_echo_n "checking for unsigned long long int... " >&6; }
10603 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10604 $as_echo_n "(cached) " >&6
10606 ac_cv_type_unsigned_long_long_int
=yes
10607 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 /* For now, do not test the preprocessor; as of 2007 there are too many
10612 implementations with broken preprocessors. Perhaps this can
10613 be revisited in 2012. In the meantime, code should not expect
10614 #if to work with literals wider than 32 bits. */
10615 /* Test literals. */
10616 long long int ll = 9223372036854775807ll;
10617 long long int nll = -9223372036854775807LL;
10618 unsigned long long int ull = 18446744073709551615ULL;
10619 /* Test constant expressions. */
10620 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10622 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10628 /* Test availability of runtime routines for shift and division. */
10629 long long int llmax = 9223372036854775807ll;
10630 unsigned long long int ullmax = 18446744073709551615ull;
10631 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10632 | (llmax / ll) | (llmax % ll)
10633 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10634 | (ullmax / ull) | (ullmax % ull));
10640 if ac_fn_c_try_link
"$LINENO"; then :
10643 ac_cv_type_unsigned_long_long_int
=no
10645 rm -f core conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10650 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10651 if test $ac_cv_type_unsigned_long_long_int = yes; then
10653 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10660 $as_echo_n "checking for long long int... " >&6; }
10661 if ${ac_cv_type_long_long_int+:} false
; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_cv_type_long_long_int
=yes
10665 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10666 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10667 if test $ac_cv_type_long_long_int = yes; then
10668 if test "$cross_compiling" = yes; then :
10671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #include <limits.h>
10676 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10677 # define LLONG_MAX (HALF - 1 + HALF)
10682 long long int n = 1;
10686 long long int m = n << i;
10689 if (LLONG_MAX / 2 < m)
10697 if ac_fn_c_try_run
"$LINENO"; then :
10700 ac_cv_type_long_long_int
=no
10702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10710 $as_echo "$ac_cv_type_long_long_int" >&6; }
10711 if test $ac_cv_type_long_long_int = yes; then
10713 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10728 gl_cv_c_multiarch
=no
10729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #ifndef __APPLE_CC__
10732 not a universal capable compiler
10737 if ac_fn_c_try_compile
"$LINENO"; then :
10741 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10742 if test -n "$prev"; then
10744 i?
86 | x86_64 | ppc | ppc64
)
10745 if test -z "$arch" ||
test "$arch" = "$word"; then
10748 gl_cv_c_multiarch
=yes
10754 if test "x$word" = "x-arch"; then
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 if test $gl_cv_c_multiarch = yes; then
10763 APPLE_UNIVERSAL_BUILD
=1
10765 APPLE_UNIVERSAL_BUILD
=0
10774 if test $ac_cv_type_long_long_int = yes; then
10775 HAVE_LONG_LONG_INT
=1
10777 HAVE_LONG_LONG_INT
=0
10781 if test $ac_cv_type_unsigned_long_long_int = yes; then
10782 HAVE_UNSIGNED_LONG_LONG_INT
=1
10784 HAVE_UNSIGNED_LONG_LONG_INT
=0
10795 if test $ac_cv_header_wchar_h = yes; then
10802 if test $ac_cv_header_inttypes_h = yes; then
10809 if test $ac_cv_header_sys_types_h = yes; then
10831 if test $gl_cv_have_include_next = yes; then
10832 gl_cv_next_stdint_h
='<'stdint.h
'>'
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10835 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10836 if ${gl_cv_next_stdint_h+:} false
; then :
10837 $as_echo_n "(cached) " >&6
10840 if test $ac_cv_header_stdint_h = yes; then
10845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10847 #include <stdint.h>
10850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10851 *) gl_absname_cpp
="$ac_cpp" ;;
10856 gl_dirsep_regex
='[/\\]'
10859 gl_dirsep_regex
='\/'
10862 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10863 gl_header_literal_regex
=`echo 'stdint.h' \
10864 | sed -e "$gl_make_literal_regex_sed"`
10865 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10866 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10872 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10873 sed -n "$gl_absolute_header_sed"`
10875 gl_header
=$gl_cv_absolute_stdint_h
10876 gl_cv_next_stdint_h
='"'$gl_header'"'
10878 gl_cv_next_stdint_h
='<'stdint.h
'>'
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10884 $as_echo "$gl_cv_next_stdint_h" >&6; }
10886 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10888 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10890 gl_next_as_first_directive
='<'stdint.h
'>'
10892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10893 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10895 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10900 if test $ac_cv_header_stdint_h = yes; then
10907 if test $ac_cv_header_stdint_h = yes; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10909 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10910 if ${gl_cv_header_working_stdint_h+:} false
; then :
10911 $as_echo_n "(cached) " >&6
10913 gl_cv_header_working_stdint_h
=no
10914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10918 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10919 #define __STDC_CONSTANT_MACROS 1
10920 #define __STDC_LIMIT_MACROS 1
10921 #include <stdint.h>
10922 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10923 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10924 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10929 included before <wchar.h>. */
10930 #include <stddef.h>
10931 #include <signal.h>
10933 # include <stdio.h>
10935 # include <wchar.h>
10940 int8_t a1 = INT8_MAX;
10941 int8_t a1min = INT8_MIN;
10944 int16_t a2 = INT16_MAX;
10945 int16_t a2min = INT16_MIN;
10948 int32_t a3 = INT32_MAX;
10949 int32_t a3min = INT32_MIN;
10952 int64_t a4 = INT64_MAX;
10953 int64_t a4min = INT64_MIN;
10956 uint8_t b1 = UINT8_MAX;
10958 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10961 uint16_t b2 = UINT16_MAX;
10964 uint32_t b3 = UINT32_MAX;
10967 uint64_t b4 = UINT64_MAX;
10969 int_least8_t c1 = INT8_C (0x7f);
10970 int_least8_t c1max = INT_LEAST8_MAX;
10971 int_least8_t c1min = INT_LEAST8_MIN;
10972 int_least16_t c2 = INT16_C (0x7fff);
10973 int_least16_t c2max = INT_LEAST16_MAX;
10974 int_least16_t c2min = INT_LEAST16_MIN;
10975 int_least32_t c3 = INT32_C (0x7fffffff);
10976 int_least32_t c3max = INT_LEAST32_MAX;
10977 int_least32_t c3min = INT_LEAST32_MIN;
10978 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10979 int_least64_t c4max = INT_LEAST64_MAX;
10980 int_least64_t c4min = INT_LEAST64_MIN;
10981 uint_least8_t d1 = UINT8_C (0xff);
10982 uint_least8_t d1max = UINT_LEAST8_MAX;
10983 uint_least16_t d2 = UINT16_C (0xffff);
10984 uint_least16_t d2max = UINT_LEAST16_MAX;
10985 uint_least32_t d3 = UINT32_C (0xffffffff);
10986 uint_least32_t d3max = UINT_LEAST32_MAX;
10987 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10988 uint_least64_t d4max = UINT_LEAST64_MAX;
10989 int_fast8_t e1 = INT_FAST8_MAX;
10990 int_fast8_t e1min = INT_FAST8_MIN;
10991 int_fast16_t e2 = INT_FAST16_MAX;
10992 int_fast16_t e2min = INT_FAST16_MIN;
10993 int_fast32_t e3 = INT_FAST32_MAX;
10994 int_fast32_t e3min = INT_FAST32_MIN;
10995 int_fast64_t e4 = INT_FAST64_MAX;
10996 int_fast64_t e4min = INT_FAST64_MIN;
10997 uint_fast8_t f1 = UINT_FAST8_MAX;
10998 uint_fast16_t f2 = UINT_FAST16_MAX;
10999 uint_fast32_t f3 = UINT_FAST32_MAX;
11000 uint_fast64_t f4 = UINT_FAST64_MAX;
11002 intptr_t g = INTPTR_MAX;
11003 intptr_t gmin = INTPTR_MIN;
11006 uintptr_t h = UINTPTR_MAX;
11008 intmax_t i = INTMAX_MAX;
11009 uintmax_t j = UINTMAX_MAX;
11011 /* Check that SIZE_MAX has the correct type, if possible. */
11012 #if 201112 <= __STDC_VERSION__
11013 int k = _Generic (SIZE_MAX, size_t: 0);
11014 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11015 || (0x5110 <= __SUNPRO_C && !__STDC__))
11017 extern __typeof__ (SIZE_MAX) k;
11020 #include <limits.h> /* for CHAR_BIT */
11021 #define TYPE_MINIMUM(t) \
11022 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11023 #define TYPE_MAXIMUM(t) \
11024 ((t) ((t) 0 < (t) -1 \
11026 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11029 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11030 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11032 /* Detect bug in FreeBSD 6.0 / ia64. */
11033 int check_SIG_ATOMIC:
11034 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11035 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11037 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11039 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11040 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11042 /* Detect bug in mingw. */
11044 WINT_MIN == TYPE_MINIMUM (wint_t)
11045 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11048 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11050 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11051 int check_UINT16_C:
11052 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11054 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11056 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11059 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11062 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11065 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11067 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11068 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11069 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11070 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11071 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11072 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11073 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11074 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11075 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11076 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11077 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11088 if ac_fn_c_try_compile
"$LINENO"; then :
11089 if test "$cross_compiling" = yes; then :
11090 gl_cv_header_working_stdint_h
=yes
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11097 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11098 #define __STDC_CONSTANT_MACROS 1
11099 #define __STDC_LIMIT_MACROS 1
11100 #include <stdint.h>
11103 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11104 included before <wchar.h>. */
11105 #include <stddef.h>
11106 #include <signal.h>
11108 # include <stdio.h>
11110 # include <wchar.h>
11115 #include <string.h>
11116 #define MVAL(macro) MVAL1(macro)
11117 #define MVAL1(expression) #expression
11118 static const char *macro_values[] =
11152 for (mv = macro_values; *mv != NULL; mv++)
11154 const char *value = *mv;
11155 /* Test whether it looks like a cast expression. */
11156 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11157 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11158 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11159 || strncmp (value, "((int)"/*)*/, 6) == 0
11160 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11161 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11162 return mv - macro_values + 1;
11170 if ac_fn_c_try_run
"$LINENO"; then :
11171 gl_cv_header_working_stdint_h
=yes
11173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11183 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11186 HAVE_C99_STDINT_H
=0
11187 HAVE_SYS_BITYPES_H
=0
11188 HAVE_SYS_INTTYPES_H
=0
11190 if test "$gl_cv_header_working_stdint_h" = yes; then
11191 HAVE_C99_STDINT_H
=1
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11193 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11194 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11195 $as_echo_n "(cached) " >&6
11197 gl_cv_header_stdint_predates_cxx11_h
=yes
11198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11202 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11203 #include <stdint.h>
11206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11207 included before <wchar.h>. */
11208 #include <stddef.h>
11209 #include <signal.h>
11211 # include <stdio.h>
11213 # include <wchar.h>
11217 intmax_t im = INTMAX_MAX;
11218 int32_t i32 = INT32_C (0x7fffffff);
11228 if ac_fn_c_try_compile
"$LINENO"; then :
11229 gl_cv_header_stdint_predates_cxx11_h
=no
11231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11234 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11236 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11238 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11241 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11245 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11246 if ${gl_cv_header_stdint_width+:} false
; then :
11247 $as_echo_n "(cached) " >&6
11249 gl_cv_header_stdint_width
=no
11250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11253 /* Work if build is not clean. */
11254 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11255 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11256 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11258 #include <stdint.h>
11260 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11261 included before <wchar.h>. */
11262 #include <stddef.h>
11263 #include <signal.h>
11265 # include <stdio.h>
11267 # include <wchar.h>
11270 int iw = UINTMAX_WIDTH;
11280 if ac_fn_c_try_compile
"$LINENO"; then :
11281 gl_cv_header_stdint_width
=yes
11283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11286 $as_echo "$gl_cv_header_stdint_width" >&6; }
11287 if test "$gl_cv_header_stdint_width" = yes; then
11291 for ac_header
in sys
/inttypes.h sys
/bitypes.h
11293 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11294 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11295 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11296 cat >>confdefs.h
<<_ACEOF
11297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11304 if test $ac_cv_header_sys_inttypes_h = yes; then
11305 HAVE_SYS_INTTYPES_H
=1
11307 if test $ac_cv_header_sys_bitypes_h = yes; then
11308 HAVE_SYS_BITYPES_H
=1
11312 if test $APPLE_UNIVERSAL_BUILD = 0; then
11315 for gltype
in ptrdiff_t size_t
; do
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11317 $as_echo_n "checking for bit size of $gltype... " >&6; }
11318 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11319 $as_echo_n "(cached) " >&6
11321 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11322 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11323 included before <wchar.h>. */
11324 #include <stddef.h>
11325 #include <signal.h>
11327 # include <stdio.h>
11329 # include <wchar.h>
11332 #include <limits.h>"; then :
11338 eval gl_cv_bitsizeof_
${gltype}=\
$result
11341 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11343 $as_echo "$ac_res" >&6; }
11344 eval result
=\
$gl_cv_bitsizeof_${gltype}
11345 if test $result = unknown
; then
11348 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11349 cat >>confdefs.h
<<_ACEOF
11350 #define BITSIZEOF_${GLTYPE} $result
11353 eval BITSIZEOF_
${GLTYPE}=\
$result
11360 for gltype
in sig_atomic_t wchar_t wint_t
; do
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11362 $as_echo_n "checking for bit size of $gltype... " >&6; }
11363 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11364 $as_echo_n "(cached) " >&6
11366 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11367 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11368 included before <wchar.h>. */
11369 #include <stddef.h>
11370 #include <signal.h>
11372 # include <stdio.h>
11374 # include <wchar.h>
11377 #include <limits.h>"; then :
11383 eval gl_cv_bitsizeof_
${gltype}=\
$result
11386 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11388 $as_echo "$ac_res" >&6; }
11389 eval result
=\
$gl_cv_bitsizeof_${gltype}
11390 if test $result = unknown
; then
11393 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11394 cat >>confdefs.h
<<_ACEOF
11395 #define BITSIZEOF_${GLTYPE} $result
11398 eval BITSIZEOF_
${GLTYPE}=\
$result
11404 for gltype
in sig_atomic_t wchar_t wint_t
; do
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11406 $as_echo_n "checking whether $gltype is signed... " >&6; }
11407 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11408 $as_echo_n "(cached) " >&6
11410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11414 included before <wchar.h>. */
11415 #include <stddef.h>
11416 #include <signal.h>
11418 # include <stdio.h>
11420 # include <wchar.h>
11423 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11432 if ac_fn_c_try_compile
"$LINENO"; then :
11437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11438 eval gl_cv_type_
${gltype}_signed
=\
$result
11441 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11443 $as_echo "$ac_res" >&6; }
11444 eval result
=\
$gl_cv_type_${gltype}_signed
11445 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11446 if test "$result" = yes; then
11447 cat >>confdefs.h
<<_ACEOF
11448 #define HAVE_SIGNED_${GLTYPE} 1
11451 eval HAVE_SIGNED_
${GLTYPE}=1
11453 eval HAVE_SIGNED_
${GLTYPE}=0
11458 gl_cv_type_ptrdiff_t_signed
=yes
11459 gl_cv_type_size_t_signed
=no
11460 if test $APPLE_UNIVERSAL_BUILD = 0; then
11463 for gltype
in ptrdiff_t size_t
; do
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11465 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11466 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11467 $as_echo_n "(cached) " >&6
11469 eval gl_cv_type_
${gltype}_suffix
=no
11470 eval result
=\
$gl_cv_type_${gltype}_signed
11471 if test "$result" = yes; then
11476 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11478 '') gltype1
='int';;
11479 l
) gltype1
='long int';;
11480 ll
) gltype1
='long long int';;
11481 i64
) gltype1
='__int64';;
11482 u
) gltype1
='unsigned int';;
11483 ul
) gltype1
='unsigned long int';;
11484 ull
) gltype1
='unsigned long long int';;
11485 ui64
)gltype1
='unsigned __int64';;
11487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11491 included before <wchar.h>. */
11492 #include <stddef.h>
11493 #include <signal.h>
11495 # include <stdio.h>
11497 # include <wchar.h>
11500 extern $gltype foo;
11501 extern $gltype1 foo;
11510 if ac_fn_c_try_compile
"$LINENO"; then :
11511 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11514 eval result
=\
$gl_cv_type_${gltype}_suffix
11515 test "$result" != no
&& break
11518 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11520 $as_echo "$ac_res" >&6; }
11521 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11522 eval result
=\
$gl_cv_type_${gltype}_suffix
11523 test "$result" = no
&& result
=
11524 eval ${GLTYPE}_SUFFIX
=\
$result
11525 cat >>confdefs.h
<<_ACEOF
11526 #define ${GLTYPE}_SUFFIX $result
11535 for gltype
in sig_atomic_t wchar_t wint_t
; do
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11537 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11538 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11539 $as_echo_n "(cached) " >&6
11541 eval gl_cv_type_
${gltype}_suffix
=no
11542 eval result
=\
$gl_cv_type_${gltype}_signed
11543 if test "$result" = yes; then
11548 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11550 '') gltype1
='int';;
11551 l
) gltype1
='long int';;
11552 ll
) gltype1
='long long int';;
11553 i64
) gltype1
='__int64';;
11554 u
) gltype1
='unsigned int';;
11555 ul
) gltype1
='unsigned long int';;
11556 ull
) gltype1
='unsigned long long int';;
11557 ui64
)gltype1
='unsigned __int64';;
11559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11563 included before <wchar.h>. */
11564 #include <stddef.h>
11565 #include <signal.h>
11567 # include <stdio.h>
11569 # include <wchar.h>
11572 extern $gltype foo;
11573 extern $gltype1 foo;
11582 if ac_fn_c_try_compile
"$LINENO"; then :
11583 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11586 eval result
=\
$gl_cv_type_${gltype}_suffix
11587 test "$result" != no
&& break
11590 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11592 $as_echo "$ac_res" >&6; }
11593 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11594 eval result
=\
$gl_cv_type_${gltype}_suffix
11595 test "$result" = no
&& result
=
11596 eval ${GLTYPE}_SUFFIX
=\
$result
11597 cat >>confdefs.h
<<_ACEOF
11598 #define ${GLTYPE}_SUFFIX $result
11605 if test $BITSIZEOF_WINT_T -lt 32; then
11606 BITSIZEOF_WINT_T
=32
11611 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11613 if test -n "$LIMITS_H"; then
11614 GL_GENERATE_LIMITS_H_TRUE
=
11615 GL_GENERATE_LIMITS_H_FALSE
='#'
11617 GL_GENERATE_LIMITS_H_TRUE
='#'
11618 GL_GENERATE_LIMITS_H_FALSE
=
11626 if test -n "$STDINT_H"; then
11627 GL_GENERATE_STDINT_H_TRUE
=
11628 GL_GENERATE_STDINT_H_FALSE
='#'
11630 GL_GENERATE_STDINT_H_TRUE
='#'
11631 GL_GENERATE_STDINT_H_FALSE
=
11643 GNULIB_STRTOIMAX
=0;
11644 GNULIB_STRTOUMAX
=0;
11645 HAVE_DECL_IMAXABS
=1;
11646 HAVE_DECL_IMAXDIV
=1;
11647 HAVE_DECL_STRTOIMAX
=1;
11648 HAVE_DECL_STRTOUMAX
=1;
11649 REPLACE_STRTOIMAX
=0;
11650 REPLACE_STRTOUMAX
=0;
11651 INT32_MAX_LT_INTMAX_MAX
=1;
11652 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11653 PRI_MACROS_BROKEN
=0;
11654 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11655 UINT32_MAX_LT_UINTMAX_MAX
=1;
11656 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11684 if test $gl_cv_have_include_next = yes; then
11685 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11688 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11689 if ${gl_cv_next_inttypes_h+:} false
; then :
11690 $as_echo_n "(cached) " >&6
11693 if test $ac_cv_header_inttypes_h = yes; then
11698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700 #include <inttypes.h>
11703 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11704 *) gl_absname_cpp
="$ac_cpp" ;;
11709 gl_dirsep_regex
='[/\\]'
11712 gl_dirsep_regex
='\/'
11715 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11716 gl_header_literal_regex
=`echo 'inttypes.h' \
11717 | sed -e "$gl_make_literal_regex_sed"`
11718 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11719 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11725 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11726 sed -n "$gl_absolute_header_sed"`
11728 gl_header
=$gl_cv_absolute_inttypes_h
11729 gl_cv_next_inttypes_h
='"'$gl_header'"'
11731 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11737 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11739 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11741 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11743 gl_next_as_first_directive
='<'inttypes.h
'>'
11745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11746 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11748 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11757 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11758 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11761 if eval \
${$as_gl_Symbol+:} false
; then :
11762 $as_echo_n "(cached) " >&6
11764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 #include <inttypes.h>
11777 if ac_fn_c_try_compile
"$LINENO"; then :
11778 eval "$as_gl_Symbol=yes"
11780 eval "$as_gl_Symbol=no"
11782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11784 eval ac_res
=\$
$as_gl_Symbol
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11786 $as_echo "$ac_res" >&6; }
11787 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11788 cat >>confdefs.h
<<_ACEOF
11789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11792 eval ac_cv_have_decl_
$gl_func=yes
11798 for ac_header
in inttypes.h
11800 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11801 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11802 cat >>confdefs.h
<<_ACEOF
11803 #define HAVE_INTTYPES_H 1
11810 if test $ac_cv_header_inttypes_h = yes; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11812 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11813 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11814 $as_echo_n "(cached) " >&6
11817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11820 #include <inttypes.h>
11833 if ac_fn_c_try_compile
"$LINENO"; then :
11834 gt_cv_inttypes_pri_broken
=no
11836 gt_cv_inttypes_pri_broken
=yes
11838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11842 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11844 if test "$gt_cv_inttypes_pri_broken" = yes; then
11846 cat >>confdefs.h
<<_ACEOF
11847 #define PRI_MACROS_BROKEN 1
11850 PRI_MACROS_BROKEN
=1
11852 PRI_MACROS_BROKEN
=0
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11858 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11859 if ${gl_cv_cc_double_expbit0+:} false
; then :
11860 $as_echo_n "(cached) " >&6
11863 if test "$cross_compiling" = yes; then :
11865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11868 #if defined arm || defined __arm || defined __arm__
11873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11874 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11875 gl_cv_cc_double_expbit0
="unknown"
11879 if ${ac_cv_c_bigendian+:} false
; then :
11880 $as_echo_n "(cached) " >&6
11882 ac_cv_c_bigendian
=unknown
11883 # See if we're dealing with a universal compiler.
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #ifndef __APPLE_CC__
11887 not a universal capable compiler
11892 if ac_fn_c_try_compile
"$LINENO"; then :
11894 # Check for potential -arch flags. It is not universal unless
11895 # there are at least two -arch flags with different values.
11898 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11899 if test -n "$ac_prev"; then
11901 i?
86 | x86_64 | ppc | ppc64
)
11902 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11905 ac_cv_c_bigendian
=universal
11911 elif test "x$ac_word" = "x-arch"; then
11916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11917 if test $ac_cv_c_bigendian = unknown
; then
11918 # See if sys/param.h defines the BYTE_ORDER macro.
11919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921 #include <sys/types.h>
11922 #include <sys/param.h>
11927 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11928 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11930 bogus endian macros
11937 if ac_fn_c_try_compile
"$LINENO"; then :
11938 # It does; now see whether it defined to BIG_ENDIAN or not.
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <sys/types.h>
11942 #include <sys/param.h>
11947 #if BYTE_ORDER != BIG_ENDIAN
11955 if ac_fn_c_try_compile
"$LINENO"; then :
11956 ac_cv_c_bigendian
=yes
11958 ac_cv_c_bigendian
=no
11960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11964 if test $ac_cv_c_bigendian = unknown
; then
11965 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <limits.h>
11973 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11974 bogus endian macros
11981 if ac_fn_c_try_compile
"$LINENO"; then :
11982 # It does; now see whether it defined to _BIG_ENDIAN or not.
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <limits.h>
11990 #ifndef _BIG_ENDIAN
11998 if ac_fn_c_try_compile
"$LINENO"; then :
11999 ac_cv_c_bigendian
=yes
12001 ac_cv_c_bigendian
=no
12003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12007 if test $ac_cv_c_bigendian = unknown
; then
12008 # Compile a test program.
12009 if test "$cross_compiling" = yes; then :
12010 # Try to guess by grepping values from an object file.
12011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 short int ascii_mm[] =
12014 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12015 short int ascii_ii[] =
12016 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12017 int use_ascii (int i) {
12018 return ascii_mm[i] + ascii_ii[i];
12020 short int ebcdic_ii[] =
12021 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12022 short int ebcdic_mm[] =
12023 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12024 int use_ebcdic (int i) {
12025 return ebcdic_mm[i] + ebcdic_ii[i];
12032 return use_ascii (foo) == use_ebcdic (foo);
12037 if ac_fn_c_try_compile
"$LINENO"; then :
12038 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12039 ac_cv_c_bigendian
=yes
12041 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12042 if test "$ac_cv_c_bigendian" = unknown
; then
12043 ac_cv_c_bigendian
=no
12045 # finding both strings is unlikely to happen, but who knows?
12046 ac_cv_c_bigendian
=unknown
12050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 $ac_includes_default
12059 /* Are we little or big endian? From Harbison&Steele. */
12063 char c[sizeof (long int)];
12066 return u.c[sizeof (long int) - 1] == 1;
12072 if ac_fn_c_try_run
"$LINENO"; then :
12073 ac_cv_c_bigendian
=no
12075 ac_cv_c_bigendian
=yes
12077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12084 case $ac_cv_c_bigendian in #(
12086 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12088 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12091 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12095 gl_cv_cc_double_expbit0
="unknown" ;;
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12108 #include <stddef.h>
12110 #include <string.h>
12112 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12113 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12114 static unsigned int ored_words[NWORDS];
12115 static unsigned int anded_words[NWORDS];
12116 static void add_to_ored_words (double x)
12120 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12121 memset (&m, 0, sizeof (memory_double));
12123 for (i = 0; i < NWORDS; i++)
12125 ored_words[i] |= m.word[i];
12126 anded_words[i] &= m.word[i];
12132 FILE *fp = fopen ("conftest.out", "w");
12135 for (j = 0; j < NWORDS; j++)
12136 anded_words[j] = ~ (unsigned int) 0;
12137 add_to_ored_words (0.25);
12138 add_to_ored_words (0.5);
12139 add_to_ored_words (1.0);
12140 add_to_ored_words (2.0);
12141 add_to_ored_words (4.0);
12142 /* Remove bits that are common (e.g. if representation of the first mantissa
12143 bit is explicit). */
12144 for (j = 0; j < NWORDS; j++)
12145 ored_words[j] &= ~anded_words[j];
12146 /* Now find the nonzero word. */
12147 for (j = 0; j < NWORDS; j++)
12148 if (ored_words[j] != 0)
12153 for (i = j + 1; i < NWORDS; i++)
12154 if (ored_words[i] != 0)
12156 fprintf (fp, "unknown");
12157 return (fclose (fp) != 0);
12160 if ((ored_words[j] >> i) & 1)
12162 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12163 return (fclose (fp) != 0);
12166 fprintf (fp, "unknown");
12167 return (fclose (fp) != 0);
12171 if ac_fn_c_try_run
"$LINENO"; then :
12172 gl_cv_cc_double_expbit0
=`cat conftest.out`
12174 gl_cv_cc_double_expbit0
="unknown"
12176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12184 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12185 case "$gl_cv_cc_double_expbit0" in
12187 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12188 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12190 cat >>confdefs.h
<<_ACEOF
12191 #define DBL_EXPBIT0_WORD $word
12195 cat >>confdefs.h
<<_ACEOF
12196 #define DBL_EXPBIT0_BIT $bit
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12204 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12205 if ${ac_cv_c_bigendian+:} false
; then :
12206 $as_echo_n "(cached) " >&6
12208 ac_cv_c_bigendian
=unknown
12209 # See if we're dealing with a universal compiler.
12210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212 #ifndef __APPLE_CC__
12213 not a universal capable compiler
12218 if ac_fn_c_try_compile
"$LINENO"; then :
12220 # Check for potential -arch flags. It is not universal unless
12221 # there are at least two -arch flags with different values.
12224 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12225 if test -n "$ac_prev"; then
12227 i?
86 | x86_64 | ppc | ppc64
)
12228 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12231 ac_cv_c_bigendian
=universal
12237 elif test "x$ac_word" = "x-arch"; then
12242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12243 if test $ac_cv_c_bigendian = unknown
; then
12244 # See if sys/param.h defines the BYTE_ORDER macro.
12245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #include <sys/types.h>
12248 #include <sys/param.h>
12253 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12254 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12256 bogus endian macros
12263 if ac_fn_c_try_compile
"$LINENO"; then :
12264 # It does; now see whether it defined to BIG_ENDIAN or not.
12265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #include <sys/types.h>
12268 #include <sys/param.h>
12273 #if BYTE_ORDER != BIG_ENDIAN
12281 if ac_fn_c_try_compile
"$LINENO"; then :
12282 ac_cv_c_bigendian
=yes
12284 ac_cv_c_bigendian
=no
12286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12290 if test $ac_cv_c_bigendian = unknown
; then
12291 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 #include <limits.h>
12299 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12300 bogus endian macros
12307 if ac_fn_c_try_compile
"$LINENO"; then :
12308 # It does; now see whether it defined to _BIG_ENDIAN or not.
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 #include <limits.h>
12316 #ifndef _BIG_ENDIAN
12324 if ac_fn_c_try_compile
"$LINENO"; then :
12325 ac_cv_c_bigendian
=yes
12327 ac_cv_c_bigendian
=no
12329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12333 if test $ac_cv_c_bigendian = unknown
; then
12334 # Compile a test program.
12335 if test "$cross_compiling" = yes; then :
12336 # Try to guess by grepping values from an object file.
12337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12339 short int ascii_mm[] =
12340 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12341 short int ascii_ii[] =
12342 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12343 int use_ascii (int i) {
12344 return ascii_mm[i] + ascii_ii[i];
12346 short int ebcdic_ii[] =
12347 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12348 short int ebcdic_mm[] =
12349 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12350 int use_ebcdic (int i) {
12351 return ebcdic_mm[i] + ebcdic_ii[i];
12358 return use_ascii (foo) == use_ebcdic (foo);
12363 if ac_fn_c_try_compile
"$LINENO"; then :
12364 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12365 ac_cv_c_bigendian
=yes
12367 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12368 if test "$ac_cv_c_bigendian" = unknown
; then
12369 ac_cv_c_bigendian
=no
12371 # finding both strings is unlikely to happen, but who knows?
12372 ac_cv_c_bigendian
=unknown
12376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 $ac_includes_default
12385 /* Are we little or big endian? From Harbison&Steele. */
12389 char c[sizeof (long int)];
12392 return u.c[sizeof (long int) - 1] == 1;
12398 if ac_fn_c_try_run
"$LINENO"; then :
12399 ac_cv_c_bigendian
=no
12401 ac_cv_c_bigendian
=yes
12403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12410 $as_echo "$ac_cv_c_bigendian" >&6; }
12411 case $ac_cv_c_bigendian in #(
12413 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12419 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12423 as_fn_error $?
"unknown endianness
12424 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12430 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12431 if ${am_cv_langinfo_codeset+:} false
; then :
12432 $as_echo_n "(cached) " >&6
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #include <langinfo.h>
12440 char* cs = nl_langinfo(CODESET); return !cs;
12445 if ac_fn_c_try_link
"$LINENO"; then :
12446 am_cv_langinfo_codeset
=yes
12448 am_cv_langinfo_codeset
=no
12450 rm -f core conftest.err conftest.
$ac_objext \
12451 conftest
$ac_exeext conftest.
$ac_ext
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12455 $as_echo "$am_cv_langinfo_codeset" >&6; }
12456 if test $am_cv_langinfo_codeset = yes; then
12458 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12463 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12464 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12470 cat >>confdefs.h
<<_ACEOF
12471 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12477 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12478 if ${ac_cv_gnu_library_2_1+:} false
; then :
12479 $as_echo_n "(cached) " >&6
12481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 #include <features.h>
12485 #ifdef __GNU_LIBRARY__
12486 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12496 $EGREP "Lucky" >/dev
/null
2>&1; then :
12497 ac_cv_gnu_library_2_1
=yes
12499 ac_cv_gnu_library_2_1
=no
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12507 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12509 GLIBC21
="$ac_cv_gnu_library_2_1"
12513 if test "X$prefix" = "XNONE"; then
12514 acl_final_prefix
="$ac_default_prefix"
12516 acl_final_prefix
="$prefix"
12518 if test "X$exec_prefix" = "XNONE"; then
12519 acl_final_exec_prefix
='${prefix}'
12521 acl_final_exec_prefix
="$exec_prefix"
12523 acl_save_prefix
="$prefix"
12524 prefix
="$acl_final_prefix"
12525 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12526 prefix
="$acl_save_prefix"
12530 # Check whether --with-gnu-ld was given.
12531 if test "${with_gnu_ld+set}" = set; then :
12532 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12537 # Prepare PATH_SEPARATOR.
12538 # The user is always right.
12539 if test "${PATH_SEPARATOR+set}" != set; then
12540 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12541 # contains only /bin. Note that ksh looks also at the FPATH variable,
12542 # so we have to set that as well for the test.
12544 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12545 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12546 || PATH_SEPARATOR
=';'
12551 if test "$GCC" = yes; then
12552 # Check if gcc -print-prog-name=ld gives a path.
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12554 $as_echo_n "checking for ld used by $CC... " >&6; }
12557 # gcc leaves a trailing carriage return which upsets mingw
12558 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12560 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12563 # Accept absolute paths.
12565 re_direlt
='/[^/][^/]*/\.\./'
12566 # Canonicalize the pathname of ld
12567 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12568 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
12569 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12571 test -z "$LD" && LD
="$ac_prog"
12574 # If it fails, then pretend we aren't using GCC.
12578 # If it is relative, then search for the first ld in PATH.
12579 with_gnu_ld
=unknown
12582 elif test "$with_gnu_ld" = yes; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12584 $as_echo_n "checking for GNU ld... " >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12587 $as_echo_n "checking for non-GNU ld... " >&6; }
12589 if ${acl_cv_path_LD+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 if test -z "$LD"; then
12593 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12594 for ac_dir
in $PATH; do
12595 IFS
="$acl_save_ifs"
12596 test -z "$ac_dir" && ac_dir
=.
12597 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12598 acl_cv_path_LD
="$ac_dir/$ac_prog"
12599 # Check to see if the program is GNU ld. I'd rather use --version,
12600 # but apparently some variants of GNU ld only accept -v.
12601 # Break only if it was the GNU/non-GNU ld that we prefer.
12602 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12603 *GNU
* |
*'with BFD'*)
12604 test "$with_gnu_ld" != no
&& break
12607 test "$with_gnu_ld" != yes && break
12612 IFS
="$acl_save_ifs"
12614 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12618 LD
="$acl_cv_path_LD"
12619 if test -n "$LD"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12621 $as_echo "$LD" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12626 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12629 if ${acl_cv_prog_gnu_ld+:} false
; then :
12630 $as_echo_n "(cached) " >&6
12632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12633 case `$LD -v 2>&1 </dev/null` in
12634 *GNU
* |
*'with BFD'*)
12635 acl_cv_prog_gnu_ld
=yes
12638 acl_cv_prog_gnu_ld
=no
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12643 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12644 with_gnu_ld
=$acl_cv_prog_gnu_ld
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12650 $as_echo_n "checking for shared library run path origin... " >&6; }
12651 if ${acl_cv_rpath+:} false
; then :
12652 $as_echo_n "(cached) " >&6
12655 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12656 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12658 rm -f .
/conftest.sh
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12663 $as_echo "$acl_cv_rpath" >&6; }
12665 acl_libext
="$acl_cv_libext"
12666 acl_shlibext
="$acl_cv_shlibext"
12667 acl_libname_spec
="$acl_cv_libname_spec"
12668 acl_library_names_spec
="$acl_cv_library_names_spec"
12669 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12670 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12671 acl_hardcode_direct
="$acl_cv_hardcode_direct"
12672 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12673 # Check whether --enable-rpath was given.
12674 if test "${enable_rpath+set}" = set; then :
12675 enableval
=$enable_rpath; :
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12688 $as_echo_n "checking for 64-bit host... " >&6; }
12689 if ${gl_cv_solaris_64bit+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12701 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
12702 gl_cv_solaris_64bit
=yes
12704 gl_cv_solaris_64bit
=no
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12711 $as_echo "$gl_cv_solaris_64bit" >&6; }
12712 if test $gl_cv_solaris_64bit = yes; then
12713 acl_libdirstem
=lib
/64
12714 case "$host_cpu" in
12715 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
12716 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
12721 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12722 if test -n "$searchpath"; then
12723 acl_save_IFS
="${IFS= }"; IFS
=":"
12724 for searchdir
in $searchpath; do
12725 if test -d "$searchdir"; then
12726 case "$searchdir" in
12727 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
12729 # Better ignore directories of this form. They are misleading.
12731 *) searchdir
=`cd "$searchdir" && pwd`
12732 case "$searchdir" in
12733 */lib64
) acl_libdirstem
=lib64
;;
12738 IFS
="$acl_save_IFS"
12742 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
12746 gl_threads_api
=none
12751 if test "$gl_use_threads" != no
; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12753 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12754 if ${gl_cv_have_weak+:} false
; then :
12755 $as_echo_n "(cached) " >&6
12758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 extern void xyzzy ();
12770 if ac_fn_c_try_link
"$LINENO"; then :
12771 gl_cv_have_weak
=maybe
12773 rm -f core conftest.err conftest.
$ac_objext \
12774 conftest
$ac_exeext conftest.
$ac_ext
12775 if test $gl_cv_have_weak = maybe
; then
12776 if test "$cross_compiling" = yes; then :
12777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 Extensible Linking Format
12784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
12786 gl_cv_have_weak
="guessing yes"
12788 gl_cv_have_weak
="guessing no"
12794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12801 return (fputs == NULL);
12804 if ac_fn_c_try_run
"$LINENO"; then :
12805 gl_cv_have_weak
=yes
12809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
12817 $as_echo "$gl_cv_have_weak" >&6; }
12818 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
12819 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12820 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
12821 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12822 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12823 gl_have_pthread_h
=yes
12825 gl_have_pthread_h
=no
12829 if test "$gl_have_pthread_h" = yes; then
12830 # Other possible tests:
12831 # -lpthreads (FSU threads, PCthreads)
12834 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12835 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12836 # the second one only in libpthread, and lock.c needs it.
12838 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
12839 # needs -pthread for some reason. See:
12840 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
12842 for gl_pthread
in '' '-pthread'; do
12843 LIBS
="$LIBS $gl_pthread"
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <pthread.h>
12848 pthread_mutexattr_t ma;
12853 pthread_mutex_lock (&m);
12854 pthread_mutexattr_init (&ma);
12859 if ac_fn_c_try_link
"$LINENO"; then :
12860 gl_have_pthread
=yes
12861 LIBTHREAD
=$gl_pthread LTLIBTHREAD
=$gl_pthread
12862 LIBMULTITHREAD
=$gl_pthread LTLIBMULTITHREAD
=$gl_pthread
12864 rm -f core conftest.err conftest.
$ac_objext \
12865 conftest
$ac_exeext conftest.
$ac_ext
12867 test -n "$gl_have_pthread" && break
12870 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12871 # since it is defined as a macro on OSF/1.)
12872 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
12873 # The program links fine without libpthread. But it may actually
12874 # need to link with libpthread in order to create multiple threads.
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12876 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12877 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12878 $as_echo_n "(cached) " >&6
12880 ac_check_lib_save_LIBS
=$LIBS
12881 LIBS
="-lpthread $LIBS"
12882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12891 char pthread_kill ();
12895 return pthread_kill ();
12900 if ac_fn_c_try_link
"$LINENO"; then :
12901 ac_cv_lib_pthread_pthread_kill
=yes
12903 ac_cv_lib_pthread_pthread_kill
=no
12905 rm -f core conftest.err conftest.
$ac_objext \
12906 conftest
$ac_exeext conftest.
$ac_ext
12907 LIBS
=$ac_check_lib_save_LIBS
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12910 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12911 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12912 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12913 # On Solaris and HP-UX, most pthread functions exist also in libc.
12914 # Therefore pthread_in_use() needs to actually try to create a
12915 # thread: pthread_create from libc will fail, whereas
12916 # pthread_create will actually create a thread.
12920 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
12926 elif test -z "$gl_have_pthread"; then
12927 # Some library is needed. Try libpthread and libc_r.
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12929 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12930 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12931 $as_echo_n "(cached) " >&6
12933 ac_check_lib_save_LIBS
=$LIBS
12934 LIBS
="-lpthread $LIBS"
12935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12944 char pthread_kill ();
12948 return pthread_kill ();
12953 if ac_fn_c_try_link
"$LINENO"; then :
12954 ac_cv_lib_pthread_pthread_kill
=yes
12956 ac_cv_lib_pthread_pthread_kill
=no
12958 rm -f core conftest.err conftest.
$ac_objext \
12959 conftest
$ac_exeext conftest.
$ac_ext
12960 LIBS
=$ac_check_lib_save_LIBS
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12963 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12964 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12965 gl_have_pthread
=yes
12966 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
12967 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12970 if test -z "$gl_have_pthread"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
12973 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
12974 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
12975 $as_echo_n "(cached) " >&6
12977 ac_check_lib_save_LIBS
=$LIBS
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12988 char pthread_kill ();
12992 return pthread_kill ();
12997 if ac_fn_c_try_link
"$LINENO"; then :
12998 ac_cv_lib_c_r_pthread_kill
=yes
13000 ac_cv_lib_c_r_pthread_kill
=no
13002 rm -f core conftest.err conftest.
$ac_objext \
13003 conftest
$ac_exeext conftest.
$ac_ext
13004 LIBS
=$ac_check_lib_save_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13007 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13008 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13009 gl_have_pthread
=yes
13010 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
13011 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
13016 if test -n "$gl_have_pthread"; then
13017 gl_threads_api
=posix
13019 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
13021 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13022 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13024 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
13033 if test -z "$gl_have_pthread"; then
13034 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
13035 gl_have_solaristhread
=
13036 gl_save_LIBS
="$LIBS"
13037 LIBS
="$LIBS -lthread"
13038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13041 #include <thread.h>
13052 if ac_fn_c_try_link
"$LINENO"; then :
13053 gl_have_solaristhread
=yes
13055 rm -f core conftest.err conftest.
$ac_objext \
13056 conftest
$ac_exeext conftest.
$ac_ext
13057 LIBS
="$gl_save_LIBS"
13058 if test -n "$gl_have_solaristhread"; then
13059 gl_threads_api
=solaris
13061 LTLIBTHREAD
=-lthread
13062 LIBMULTITHREAD
="$LIBTHREAD"
13063 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13065 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
13067 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13069 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
13077 if test "$gl_use_threads" = pth
; then
13078 gl_save_CPPFLAGS
="$CPPFLAGS"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
13085 $as_echo_n "checking how to link with libpth... " >&6; }
13086 if ${ac_cv_libpth_libs+:} false
; then :
13087 $as_echo_n "(cached) " >&6
13099 acl_save_prefix
="$prefix"
13100 prefix
="$acl_final_prefix"
13101 acl_save_exec_prefix
="$exec_prefix"
13102 exec_prefix
="$acl_final_exec_prefix"
13104 eval additional_includedir
=\"$includedir\"
13105 eval additional_libdir
=\"$libdir\"
13107 exec_prefix
="$acl_save_exec_prefix"
13108 prefix
="$acl_save_prefix"
13111 # Check whether --with-libpth-prefix was given.
13112 if test "${with_libpth_prefix+set}" = set; then :
13113 withval
=$with_libpth_prefix;
13114 if test "X$withval" = "Xno"; then
13117 if test "X$withval" = "X"; then
13119 acl_save_prefix
="$prefix"
13120 prefix
="$acl_final_prefix"
13121 acl_save_exec_prefix
="$exec_prefix"
13122 exec_prefix
="$acl_final_exec_prefix"
13124 eval additional_includedir
=\"$includedir\"
13125 eval additional_libdir
=\"$libdir\"
13127 exec_prefix
="$acl_save_exec_prefix"
13128 prefix
="$acl_save_prefix"
13131 additional_includedir
="$withval/include"
13132 additional_libdir
="$withval/$acl_libdirstem"
13133 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13134 && ! test -d "$withval/$acl_libdirstem"; then
13135 additional_libdir
="$withval/$acl_libdirstem2"
13149 names_already_handled
=
13150 names_next_round
='pth '
13151 while test -n "$names_next_round"; do
13152 names_this_round
="$names_next_round"
13154 for name
in $names_this_round; do
13156 for n
in $names_already_handled; do
13157 if test "$n" = "$name"; then
13158 already_handled
=yes
13162 if test -z "$already_handled"; then
13163 names_already_handled
="$names_already_handled $name"
13164 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13165 eval value
=\"\
$HAVE_LIB$uppername\"
13166 if test -n "$value"; then
13167 if test "$value" = yes; then
13168 eval value
=\"\
$LIB$uppername\"
13169 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
13170 eval value
=\"\
$LTLIB$uppername\"
13171 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
13180 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
13181 if test -n "$acl_shlibext"; then
13182 shrext
=".$acl_shlibext" # typically: shrext=.so
13186 if test $use_additional = yes; then
13187 dir
="$additional_libdir"
13188 if test -n "$acl_shlibext"; then
13189 if test -f "$dir/$libname$shrext"; then
13191 found_so
="$dir/$libname$shrext"
13193 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13194 ver
=`(cd "$dir" && \
13195 for f in "$libname$shrext".*; do echo "$f"; done \
13196 | sed -e "s,^$libname$shrext\\\\.,," \
13197 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13198 | sed 1q ) 2>/dev/null`
13199 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13201 found_so
="$dir/$libname$shrext.$ver"
13204 eval library_names
=\"$acl_library_names_spec\"
13205 for f
in $library_names; do
13206 if test -f "$dir/$f"; then
13215 if test "X$found_dir" = "X"; then
13216 if test -f "$dir/$libname.$acl_libext"; then
13218 found_a
="$dir/$libname.$acl_libext"
13221 if test "X$found_dir" != "X"; then
13222 if test -f "$dir/$libname.la"; then
13223 found_la
="$dir/$libname.la"
13227 if test "X$found_dir" = "X"; then
13228 for x
in $LDFLAGS $LTLIBPTH; do
13230 acl_save_prefix
="$prefix"
13231 prefix
="$acl_final_prefix"
13232 acl_save_exec_prefix
="$exec_prefix"
13233 exec_prefix
="$acl_final_exec_prefix"
13235 exec_prefix
="$acl_save_exec_prefix"
13236 prefix
="$acl_save_prefix"
13240 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13241 if test -n "$acl_shlibext"; then
13242 if test -f "$dir/$libname$shrext"; then
13244 found_so
="$dir/$libname$shrext"
13246 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13247 ver
=`(cd "$dir" && \
13248 for f in "$libname$shrext".*; do echo "$f"; done \
13249 | sed -e "s,^$libname$shrext\\\\.,," \
13250 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13251 | sed 1q ) 2>/dev/null`
13252 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13254 found_so
="$dir/$libname$shrext.$ver"
13257 eval library_names
=\"$acl_library_names_spec\"
13258 for f
in $library_names; do
13259 if test -f "$dir/$f"; then
13268 if test "X$found_dir" = "X"; then
13269 if test -f "$dir/$libname.$acl_libext"; then
13271 found_a
="$dir/$libname.$acl_libext"
13274 if test "X$found_dir" != "X"; then
13275 if test -f "$dir/$libname.la"; then
13276 found_la
="$dir/$libname.la"
13281 if test "X$found_dir" != "X"; then
13286 if test "X$found_dir" != "X"; then
13287 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
13288 if test "X$found_so" != "X"; then
13289 if test "$enable_rpath" = no \
13290 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
13291 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13292 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13295 for x
in $ltrpathdirs; do
13296 if test "X$x" = "X$found_dir"; then
13301 if test -z "$haveit"; then
13302 ltrpathdirs
="$ltrpathdirs $found_dir"
13304 if test "$acl_hardcode_direct" = yes; then
13305 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13307 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
13308 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13310 for x
in $rpathdirs; do
13311 if test "X$x" = "X$found_dir"; then
13316 if test -z "$haveit"; then
13317 rpathdirs
="$rpathdirs $found_dir"
13321 for x
in $LDFLAGS $LIBPTH; do
13323 acl_save_prefix
="$prefix"
13324 prefix
="$acl_final_prefix"
13325 acl_save_exec_prefix
="$exec_prefix"
13326 exec_prefix
="$acl_final_exec_prefix"
13328 exec_prefix
="$acl_save_exec_prefix"
13329 prefix
="$acl_save_prefix"
13331 if test "X$x" = "X-L$found_dir"; then
13336 if test -z "$haveit"; then
13337 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
13339 if test "$acl_hardcode_minus_L" != no
; then
13340 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13342 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13348 if test "X$found_a" != "X"; then
13349 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
13351 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
13354 additional_includedir
=
13355 case "$found_dir" in
13356 */$acl_libdirstem |
*/$acl_libdirstem/)
13357 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13358 if test "$name" = 'pth'; then
13359 LIBPTH_PREFIX
="$basedir"
13361 additional_includedir
="$basedir/include"
13363 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
13364 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13365 if test "$name" = 'pth'; then
13366 LIBPTH_PREFIX
="$basedir"
13368 additional_includedir
="$basedir/include"
13371 if test "X$additional_includedir" != "X"; then
13372 if test "X$additional_includedir" != "X/usr/include"; then
13374 if test "X$additional_includedir" = "X/usr/local/include"; then
13375 if test -n "$GCC"; then
13377 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13381 if test -z "$haveit"; then
13382 for x
in $CPPFLAGS $INCPTH; do
13384 acl_save_prefix
="$prefix"
13385 prefix
="$acl_final_prefix"
13386 acl_save_exec_prefix
="$exec_prefix"
13387 exec_prefix
="$acl_final_exec_prefix"
13389 exec_prefix
="$acl_save_exec_prefix"
13390 prefix
="$acl_save_prefix"
13392 if test "X$x" = "X-I$additional_includedir"; then
13397 if test -z "$haveit"; then
13398 if test -d "$additional_includedir"; then
13399 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
13405 if test -n "$found_la"; then
13406 save_libdir
="$libdir"
13407 case "$found_la" in
13408 */* |
*\\*) .
"$found_la" ;;
13409 *) .
"./$found_la" ;;
13411 libdir
="$save_libdir"
13412 for dep
in $dependency_libs; do
13415 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13416 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13417 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13419 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13420 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13421 if test -n "$GCC"; then
13423 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13427 if test -z "$haveit"; then
13429 for x
in $LDFLAGS $LIBPTH; do
13431 acl_save_prefix
="$prefix"
13432 prefix
="$acl_final_prefix"
13433 acl_save_exec_prefix
="$exec_prefix"
13434 exec_prefix
="$acl_final_exec_prefix"
13436 exec_prefix
="$acl_save_exec_prefix"
13437 prefix
="$acl_save_prefix"
13439 if test "X$x" = "X-L$additional_libdir"; then
13444 if test -z "$haveit"; then
13445 if test -d "$additional_libdir"; then
13446 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
13450 for x
in $LDFLAGS $LTLIBPTH; do
13452 acl_save_prefix
="$prefix"
13453 prefix
="$acl_final_prefix"
13454 acl_save_exec_prefix
="$exec_prefix"
13455 exec_prefix
="$acl_final_exec_prefix"
13457 exec_prefix
="$acl_save_exec_prefix"
13458 prefix
="$acl_save_prefix"
13460 if test "X$x" = "X-L$additional_libdir"; then
13465 if test -z "$haveit"; then
13466 if test -d "$additional_libdir"; then
13467 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
13474 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13475 if test "$enable_rpath" != no
; then
13477 for x
in $rpathdirs; do
13478 if test "X$x" = "X$dir"; then
13483 if test -z "$haveit"; then
13484 rpathdirs
="$rpathdirs $dir"
13487 for x
in $ltrpathdirs; do
13488 if test "X$x" = "X$dir"; then
13493 if test -z "$haveit"; then
13494 ltrpathdirs
="$ltrpathdirs $dir"
13499 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13502 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13505 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
13506 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
13512 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13513 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
13519 if test "X$rpathdirs" != "X"; then
13520 if test -n "$acl_hardcode_libdir_separator"; then
13522 for found_dir
in $rpathdirs; do
13523 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13525 acl_save_libdir
="$libdir"
13527 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13528 libdir
="$acl_save_libdir"
13529 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13531 for found_dir
in $rpathdirs; do
13532 acl_save_libdir
="$libdir"
13533 libdir
="$found_dir"
13534 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13535 libdir
="$acl_save_libdir"
13536 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13540 if test "X$ltrpathdirs" != "X"; then
13541 for found_dir
in $ltrpathdirs; do
13542 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
13551 ac_cv_libpth_libs
="$LIBPTH"
13552 ac_cv_libpth_ltlibs
="$LTLIBPTH"
13553 ac_cv_libpth_cppflags
="$INCPTH"
13554 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
13558 $as_echo "$ac_cv_libpth_libs" >&6; }
13559 LIBPTH
="$ac_cv_libpth_libs"
13560 LTLIBPTH
="$ac_cv_libpth_ltlibs"
13561 INCPTH
="$ac_cv_libpth_cppflags"
13562 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
13564 for element
in $INCPTH; do
13566 for x
in $CPPFLAGS; do
13568 acl_save_prefix
="$prefix"
13569 prefix
="$acl_final_prefix"
13570 acl_save_exec_prefix
="$exec_prefix"
13571 exec_prefix
="$acl_final_exec_prefix"
13573 exec_prefix
="$acl_save_exec_prefix"
13574 prefix
="$acl_save_prefix"
13576 if test "X$x" = "X$element"; then
13581 if test -z "$haveit"; then
13582 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13594 gl_save_LIBS
="$LIBS"
13595 LIBS
="$LIBS $LIBPTH"
13596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13607 if ac_fn_c_try_link
"$LINENO"; then :
13610 rm -f core conftest.err conftest.
$ac_objext \
13611 conftest
$ac_exeext conftest.
$ac_ext
13612 LIBS
="$gl_save_LIBS"
13613 if test -n "$gl_have_pth"; then
13615 LIBTHREAD
="$LIBPTH"
13616 LTLIBTHREAD
="$LTLIBPTH"
13617 LIBMULTITHREAD
="$LIBTHREAD"
13618 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13620 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
13622 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13623 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13625 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
13632 CPPFLAGS
="$gl_save_CPPFLAGS"
13635 if test -z "$gl_have_pthread"; then
13636 case "$gl_use_threads" in
13637 yes | windows | win32
) # The 'win32' is for backward compatibility.
13638 if { case "$host_os" in
13643 gl_threads_api
=windows
13645 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
13653 $as_echo_n "checking for multithread API to use... " >&6; }
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
13655 $as_echo "$gl_threads_api" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13672 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13673 if ${gl_cv_func_malloc_posix+:} false
; then :
13674 $as_echo_n "(cached) " >&6
13677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13683 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13691 if ac_fn_c_try_compile
"$LINENO"; then :
13692 gl_cv_func_malloc_posix
=yes
13694 gl_cv_func_malloc_posix
=no
13696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13700 $as_echo "$gl_cv_func_malloc_posix" >&6; }
13704 for ac_header
in stdlib.h
13706 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13707 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
13708 cat >>confdefs.h
<<_ACEOF
13709 #define HAVE_STDLIB_H 1
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13717 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13718 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
13719 $as_echo_n "(cached) " >&6
13721 if test "$cross_compiling" = yes; then :
13723 # Guess yes on platforms where we know the result.
13724 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
13725 | hpux
* | solaris
* | cygwin
* | mingw
*)
13726 ac_cv_func_malloc_0_nonnull
=yes ;;
13727 # If we don't know, assume the worst.
13728 *) ac_cv_func_malloc_0_nonnull
=no
;;
13732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13735 # include <stdlib.h>
13743 char *p = malloc (0);
13752 if ac_fn_c_try_run
"$LINENO"; then :
13753 ac_cv_func_malloc_0_nonnull
=yes
13755 ac_cv_func_malloc_0_nonnull
=no
13757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13764 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13765 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13766 gl_cv_func_malloc_0_nonnull
=1
13768 gl_cv_func_malloc_0_nonnull
=0
13772 cat >>confdefs.h
<<_ACEOF
13773 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13788 GNULIB_MBSRTOWCS
=0;
13789 GNULIB_MBSNRTOWCS
=0;
13791 GNULIB_WCSRTOMBS
=0;
13792 GNULIB_WCSNRTOMBS
=0;
13809 GNULIB_WCSCASECMP
=0;
13810 GNULIB_WCSNCASECMP
=0;
13847 HAVE_WCSNCASECMP
=1;
13860 HAVE_DECL_WCWIDTH
=1;
13861 REPLACE_MBSTATE_T
=0;
13867 REPLACE_MBSRTOWCS
=0;
13868 REPLACE_MBSNRTOWCS
=0;
13870 REPLACE_WCSRTOMBS
=0;
13871 REPLACE_WCSNRTOMBS
=0;
13873 REPLACE_WCSWIDTH
=0;
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13889 $as_echo_n "checking for a traditional japanese locale... " >&6; }
13890 if ${gt_cv_locale_ja+:} false
; then :
13891 $as_echo_n "(cached) " >&6
13894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 #include <locale.h>
13899 #if HAVE_LANGINFO_CODESET
13900 # include <langinfo.h>
13902 #include <stdlib.h>
13903 #include <string.h>
13909 /* Check whether the given locale name is recognized by the system. */
13910 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13911 /* On native Windows, setlocale(category, "") looks at the system settings,
13912 not at the environment variables. Also, when an encoding suffix such
13913 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13914 category of the locale to "C". */
13915 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13916 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13919 if (setlocale (LC_ALL, "") == NULL) return 1;
13921 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13922 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13923 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13924 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13925 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13926 some unit tests fail.
13927 On MirBSD 10, when an unsupported locale is specified, setlocale()
13928 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13929 #if HAVE_LANGINFO_CODESET
13931 const char *cs = nl_langinfo (CODESET);
13932 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13933 || strcmp (cs, "UTF-8") == 0)
13938 /* On Cygwin, avoid locale names without encoding suffix, because the
13939 locale_charset() function relies on the encoding suffix. Note that
13940 LC_ALL is set on the command line. */
13941 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13943 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
13944 on Cygwin 1.5.x. */
13945 if (MB_CUR_MAX == 1)
13947 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13948 This excludes the UTF-8 encoding (except on MirBSD). */
13949 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13950 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13951 for (p = buf; *p != '\0'; p++)
13952 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13959 (eval $ac_link) 2>&5
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13964 # Handle native Windows specially, because there setlocale() interprets
13965 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13966 # "fr" or "fra" as "French" or "French_France.1252",
13967 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13968 # "ja" as "Japanese" or "Japanese_Japan.932",
13971 # Note that on native Windows, the Japanese locale is
13972 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
13973 # cannot use it here.
13974 gt_cv_locale_ja
=none
13977 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13978 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13979 # configure script would override the LC_ALL setting. Likewise for
13980 # LC_CTYPE, which is also set at the beginning of the configure script.
13981 # Test for the AIX locale name.
13982 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13983 gt_cv_locale_ja
=ja_JP
13985 # Test for the locale name with explicit encoding suffix.
13986 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13987 gt_cv_locale_ja
=ja_JP.EUC-JP
13989 # Test for the HP-UX, OSF/1, NetBSD locale name.
13990 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13991 gt_cv_locale_ja
=ja_JP.eucJP
13993 # Test for the IRIX, FreeBSD locale name.
13994 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13995 gt_cv_locale_ja
=ja_JP.EUC
13997 # Test for the Solaris 7 locale name.
13998 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14001 # Special test for NetBSD 1.6.
14002 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14003 gt_cv_locale_ja
=ja_JP.eucJP
14006 gt_cv_locale_ja
=none
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14020 $as_echo "$gt_cv_locale_ja" >&6; }
14021 LOCALE_JA
=$gt_cv_locale_ja
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14028 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14029 if ${gt_cv_locale_zh_CN+:} false
; then :
14030 $as_echo_n "(cached) " >&6
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14036 #include <locale.h>
14037 #include <stdlib.h>
14039 #if HAVE_LANGINFO_CODESET
14040 # include <langinfo.h>
14042 #include <stdlib.h>
14043 #include <string.h>
14049 /* Check whether the given locale name is recognized by the system. */
14050 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14051 /* On native Windows, setlocale(category, "") looks at the system settings,
14052 not at the environment variables. Also, when an encoding suffix such
14053 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14054 category of the locale to "C". */
14055 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14056 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14059 if (setlocale (LC_ALL, "") == NULL) return 1;
14061 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14062 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14063 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14064 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14065 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14066 some unit tests fail.
14067 On MirBSD 10, when an unsupported locale is specified, setlocale()
14068 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14069 #if HAVE_LANGINFO_CODESET
14071 const char *cs = nl_langinfo (CODESET);
14072 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14073 || strcmp (cs, "UTF-8") == 0)
14078 /* On Cygwin, avoid locale names without encoding suffix, because the
14079 locale_charset() function relies on the encoding suffix. Note that
14080 LC_ALL is set on the command line. */
14081 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14083 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14084 This excludes the UTF-8 encoding (except on MirBSD). */
14085 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14086 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14087 for (p = buf; *p != '\0'; p++)
14088 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14090 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14091 single wide character. This excludes the GB2312 and GBK encodings. */
14092 if (mblen ("\203\062\332\066", 5) != 4)
14098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14099 (eval $ac_link) 2>&5
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14104 # Handle native Windows specially, because there setlocale() interprets
14105 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14106 # "fr" or "fra" as "French" or "French_France.1252",
14107 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14108 # "ja" as "Japanese" or "Japanese_Japan.932",
14111 # Test for the hypothetical native Windows locale name.
14112 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14113 gt_cv_locale_zh_CN
=Chinese_China
.54936
14116 gt_cv_locale_zh_CN
=none
14120 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14121 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14122 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14123 gt_cv_locale_zh_CN
=none
14126 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14127 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14128 # configure script would override the LC_ALL setting. Likewise for
14129 # LC_CTYPE, which is also set at the beginning of the configure script.
14130 # Test for the locale name without encoding suffix.
14131 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14132 gt_cv_locale_zh_CN
=zh_CN
14134 # Test for the locale name with explicit encoding suffix.
14135 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14136 gt_cv_locale_zh_CN
=zh_CN.GB18030
14139 gt_cv_locale_zh_CN
=none
14145 # If there was a link error, due to mblen(), the system is so old that
14146 # it certainly doesn't have a chinese locale.
14147 gt_cv_locale_zh_CN
=none
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14153 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14154 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14160 $as_echo_n "checking for a french Unicode locale... " >&6; }
14161 if ${gt_cv_locale_fr_utf8+:} false
; then :
14162 $as_echo_n "(cached) " >&6
14165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14168 #include <locale.h>
14170 #if HAVE_LANGINFO_CODESET
14171 # include <langinfo.h>
14173 #include <stdlib.h>
14174 #include <string.h>
14178 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14179 imitates locale dependent behaviour by looking at the environment
14180 variables, and all locales use the UTF-8 encoding. */
14181 #if !(defined __BEOS__ || defined __HAIKU__)
14182 /* Check whether the given locale name is recognized by the system. */
14183 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14184 /* On native Windows, setlocale(category, "") looks at the system settings,
14185 not at the environment variables. Also, when an encoding suffix such
14186 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14187 category of the locale to "C". */
14188 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14189 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14192 if (setlocale (LC_ALL, "") == NULL) return 1;
14194 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14195 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14196 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14197 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14198 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14199 some unit tests fail. */
14200 # if HAVE_LANGINFO_CODESET
14202 const char *cs = nl_langinfo (CODESET);
14203 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14208 /* On Cygwin, avoid locale names without encoding suffix, because the
14209 locale_charset() function relies on the encoding suffix. Note that
14210 LC_ALL is set on the command line. */
14211 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14213 /* Check whether in the abbreviation of the second month, the second
14214 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14215 two bytes long, with UTF-8 encoding. */
14216 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14217 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14218 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14221 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14222 /* Check whether the decimal separator is a comma.
14223 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14224 are nl_langinfo(RADIXCHAR) are both ".". */
14225 if (localeconv () ->decimal_point[0] != ',') return 1;
14231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14232 (eval $ac_link) 2>&5
14234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14237 # Handle native Windows specially, because there setlocale() interprets
14238 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14239 # "fr" or "fra" as "French" or "French_France.1252",
14240 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14241 # "ja" as "Japanese" or "Japanese_Japan.932",
14244 # Test for the hypothetical native Windows locale name.
14245 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14246 gt_cv_locale_fr_utf8
=French_France
.65001
14249 gt_cv_locale_fr_utf8
=none
14253 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14254 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14255 # configure script would override the LC_ALL setting. Likewise for
14256 # LC_CTYPE, which is also set at the beginning of the configure script.
14257 # Test for the usual locale name.
14258 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14259 gt_cv_locale_fr_utf8
=fr_FR
14261 # Test for the locale name with explicit encoding suffix.
14262 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14263 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14265 # Test for the Solaris 7 locale name.
14266 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14267 gt_cv_locale_fr_utf8
=fr.UTF-8
14270 gt_cv_locale_fr_utf8
=none
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14281 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14282 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
14289 $as_echo_n "checking for a traditional french locale... " >&6; }
14290 if ${gt_cv_locale_fr+:} false
; then :
14291 $as_echo_n "(cached) " >&6
14294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 #include <locale.h>
14299 #if HAVE_LANGINFO_CODESET
14300 # include <langinfo.h>
14302 #include <stdlib.h>
14303 #include <string.h>
14307 /* Check whether the given locale name is recognized by the system. */
14308 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14309 /* On native Windows, setlocale(category, "") looks at the system settings,
14310 not at the environment variables. Also, when an encoding suffix such
14311 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14312 category of the locale to "C". */
14313 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14314 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14317 if (setlocale (LC_ALL, "") == NULL) return 1;
14319 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14320 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14321 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14322 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14323 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14324 some unit tests fail.
14325 On MirBSD 10, when an unsupported locale is specified, setlocale()
14326 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14327 #if HAVE_LANGINFO_CODESET
14329 const char *cs = nl_langinfo (CODESET);
14330 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14331 || strcmp (cs, "UTF-8") == 0)
14336 /* On Cygwin, avoid locale names without encoding suffix, because the
14337 locale_charset() function relies on the encoding suffix. Note that
14338 LC_ALL is set on the command line. */
14339 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14341 /* Check whether in the abbreviation of the second month, the second
14342 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
14343 one byte long. This excludes the UTF-8 encoding. */
14344 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14345 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
14346 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14347 /* Check whether the decimal separator is a comma.
14348 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14349 are nl_langinfo(RADIXCHAR) are both ".". */
14350 if (localeconv () ->decimal_point[0] != ',') return 1;
14356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14357 (eval $ac_link) 2>&5
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14362 # Handle native Windows specially, because there setlocale() interprets
14363 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14364 # "fr" or "fra" as "French" or "French_France.1252",
14365 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14366 # "ja" as "Japanese" or "Japanese_Japan.932",
14369 # Test for the native Windows locale name.
14370 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14371 gt_cv_locale_fr
=French_France
.1252
14374 gt_cv_locale_fr
=none
14378 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14379 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14380 # configure script would override the LC_ALL setting. Likewise for
14381 # LC_CTYPE, which is also set at the beginning of the configure script.
14382 # Test for the usual locale name.
14383 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14384 gt_cv_locale_fr
=fr_FR
14386 # Test for the locale name with explicit encoding suffix.
14387 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14388 gt_cv_locale_fr
=fr_FR.ISO-8859-1
14390 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
14391 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14392 gt_cv_locale_fr
=fr_FR.ISO8859-1
14394 # Test for the HP-UX locale name.
14395 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14396 gt_cv_locale_fr
=fr_FR.iso88591
14398 # Test for the Solaris 7 locale name.
14399 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14403 gt_cv_locale_fr
=none
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
14416 $as_echo "$gt_cv_locale_fr" >&6; }
14417 LOCALE_FR
=$gt_cv_locale_fr
14437 GNULIB_RAWMEMCHR
=0;
14440 GNULIB_STRCHRNUL
=0;
14448 GNULIB_STRCASESTR
=0;
14455 GNULIB_MBSCASECMP
=0;
14456 GNULIB_MBSNCASECMP
=0;
14457 GNULIB_MBSPCASECMP
=0;
14458 GNULIB_MBSCASESTR
=0;
14465 GNULIB_STRERROR_R
=0;
14466 GNULIB_STRSIGNAL
=0;
14467 GNULIB_STRVERSCMP
=0;
14472 HAVE_DECL_MEMMEM
=1;
14474 HAVE_DECL_MEMRCHR
=1;
14479 HAVE_DECL_STRDUP
=1;
14480 HAVE_DECL_STRNDUP
=1;
14481 HAVE_DECL_STRNLEN
=1;
14485 HAVE_DECL_STRTOK_R
=1;
14486 HAVE_DECL_STRERROR_R
=1;
14487 HAVE_DECL_STRSIGNAL
=1;
14494 REPLACE_STRCASESTR
=0;
14495 REPLACE_STRCHRNUL
=0;
14496 REPLACE_STRERROR
=0;
14497 REPLACE_STRERROR_R
=0;
14501 REPLACE_STRSIGNAL
=0;
14502 REPLACE_STRTOK_R
=0;
14503 UNDEFINE_STRTOK_R
=0;
14509 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14510 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14511 # irrelevant for anonymous mappings.
14512 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14513 if test "x$ac_cv_func_mmap" = xyes
; then :
14520 # Try to allow MAP_ANONYMOUS.
14521 gl_have_mmap_anonymous
=no
14522 if test $gl_have_mmap = yes; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14524 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14528 #include <sys/mman.h>
14529 #ifdef MAP_ANONYMOUS
14530 I cannot identify this map
14534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14535 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14536 gl_have_mmap_anonymous
=yes
14540 if test $gl_have_mmap_anonymous != yes; then
14541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14544 #include <sys/mman.h>
14546 I cannot identify this map
14550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14551 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14553 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14555 gl_have_mmap_anonymous
=yes
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14561 $as_echo "$gl_have_mmap_anonymous" >&6; }
14562 if test $gl_have_mmap_anonymous = yes; then
14564 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14586 if test $HAVE_MEMCHR = 1; then
14587 # Detect platform-specific bugs in some versions of glibc:
14588 # memchr should not dereference anything with length 0
14589 # http://bugzilla.redhat.com/499689
14590 # memchr should not dereference overestimated length after a match
14591 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14592 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14593 # Assume that memchr works on platforms that lack mprotect.
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14595 $as_echo_n "checking whether memchr works... " >&6; }
14596 if ${gl_cv_func_memchr_works+:} false
; then :
14597 $as_echo_n "(cached) " >&6
14599 if test "$cross_compiling" = yes; then :
14600 gl_cv_func_memchr_works
="guessing no"
14602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14605 #include <string.h>
14606 #if HAVE_SYS_MMAN_H
14607 # include <fcntl.h>
14608 # include <unistd.h>
14609 # include <sys/types.h>
14610 # include <sys/mman.h>
14612 # define MAP_FILE 0
14621 char *fence = NULL;
14622 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14623 # if HAVE_MAP_ANONYMOUS
14624 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14626 # else /* !HAVE_MAP_ANONYMOUS */
14627 const int flags = MAP_FILE | MAP_PRIVATE;
14628 int fd = open ("/dev/zero", O_RDONLY, 0666);
14632 int pagesize = getpagesize ();
14634 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14636 if (two_pages != (char *)(-1)
14637 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14638 fence = two_pages + pagesize;
14643 if (memchr (fence, 0, 0))
14645 strcpy (fence - 9, "12345678");
14646 if (memchr (fence - 9, 0, 79) != fence - 1)
14648 if (memchr (fence - 1, 0, 3) != fence - 1)
14657 if ac_fn_c_try_run
"$LINENO"; then :
14658 gl_cv_func_memchr_works
=yes
14660 gl_cv_func_memchr_works
=no
14662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14668 $as_echo "$gl_cv_func_memchr_works" >&6; }
14669 if test "$gl_cv_func_memchr_works" != yes; then
14675 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
14676 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
14682 cat >>confdefs.h
<<_ACEOF
14683 #define HAVE_DECL_MEMMEM $ac_have_decl
14691 for ac_func
in memmem
14693 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
14694 if test "x$ac_cv_func_memmem" = xyes
; then :
14695 cat >>confdefs.h
<<_ACEOF
14696 #define HAVE_MEMMEM 1
14702 if test $ac_cv_func_memmem = yes; then
14714 if test $ac_cv_have_decl_memmem = no
; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14718 $as_echo_n "checking whether memmem works... " >&6; }
14719 if ${gl_cv_func_memmem_works_always+:} false
; then :
14720 $as_echo_n "(cached) " >&6
14722 if test "$cross_compiling" = yes; then :
14723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14726 #ifdef __GNU_LIBRARY__
14727 #include <features.h>
14728 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14729 || __GLIBC_MINOR__ > 12)) \
14730 || (__GLIBC__ > 2)) \
14731 || defined __UCLIBC__
14734 #elif defined __CYGWIN__
14735 #include <cygwin/version.h>
14736 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14746 gl_cv_func_memmem_works_always
="guessing yes"
14748 gl_cv_func_memmem_works_always
="guessing no"
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #include <string.h> /* for memmem */
14758 #define P "_EF_BF_BD"
14759 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14760 #define NEEDLE P P P P P
14767 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14769 /* Check for empty needle behavior. */
14771 const char *haystack = "AAA";
14772 if (memmem (haystack, 3, NULL, 0) != haystack)
14781 if ac_fn_c_try_run
"$LINENO"; then :
14782 gl_cv_func_memmem_works_always
=yes
14784 gl_cv_func_memmem_works_always
=no
14786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14793 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14794 case "$gl_cv_func_memmem_works_always" in
14804 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
14805 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
14811 cat >>confdefs.h
<<_ACEOF
14812 #define HAVE_DECL_MEMRCHR $ac_have_decl
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14827 $as_echo_n "checking for promoted mode_t type... " >&6; }
14828 if ${gl_cv_promoted_mode_t+:} false
; then :
14829 $as_echo_n "(cached) " >&6
14832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 #include <sys/types.h>
14838 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14843 if ac_fn_c_try_compile
"$LINENO"; then :
14844 gl_cv_promoted_mode_t
='int'
14846 gl_cv_promoted_mode_t
='mode_t'
14848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14852 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14854 cat >>confdefs.h
<<_ACEOF
14855 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14873 GNULIB_FPRINTF_POSIX
=0;
14889 GNULIB_OBSTACK_PRINTF
=0;
14890 GNULIB_OBSTACK_PRINTF_POSIX
=0;
14895 GNULIB_PRINTF_POSIX
=0;
14904 GNULIB_SPRINTF_POSIX
=0;
14905 GNULIB_STDIO_H_NONBLOCKING
=0;
14906 GNULIB_STDIO_H_SIGPIPE
=0;
14908 GNULIB_VASPRINTF
=0;
14913 GNULIB_VFPRINTF_POSIX
=0;
14915 GNULIB_VPRINTF_POSIX
=0;
14916 GNULIB_VSNPRINTF
=0;
14917 GNULIB_VSPRINTF_POSIX
=0;
14918 HAVE_DECL_FPURGE
=1;
14919 HAVE_DECL_FSEEKO
=1;
14920 HAVE_DECL_FTELLO
=1;
14921 HAVE_DECL_GETDELIM
=1;
14922 HAVE_DECL_GETLINE
=1;
14923 HAVE_DECL_OBSTACK_PRINTF
=1;
14924 HAVE_DECL_SNPRINTF
=1;
14925 HAVE_DECL_VSNPRINTF
=1;
14946 REPLACE_GETDELIM
=0;
14948 REPLACE_OBSTACK_PRINTF
=0;
14954 REPLACE_RENAMEAT
=0;
14955 REPLACE_SNPRINTF
=0;
14957 REPLACE_STDIO_READ_FUNCS
=0;
14958 REPLACE_STDIO_WRITE_FUNCS
=0;
14960 REPLACE_VASPRINTF
=0;
14961 REPLACE_VDPRINTF
=0;
14962 REPLACE_VFPRINTF
=0;
14964 REPLACE_VSNPRINTF
=0;
14965 REPLACE_VSPRINTF
=0;
14998 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
14999 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15005 cat >>confdefs.h
<<_ACEOF
15006 #define HAVE_DECL_SETENV $ac_have_decl
15024 if test $ac_cv_have_decl_setenv = no
; then
15044 for ac_header
in search.h
15046 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15047 if test "x$ac_cv_header_search_h" = xyes
; then :
15048 cat >>confdefs.h
<<_ACEOF
15049 #define HAVE_SEARCH_H 1
15056 for ac_func
in tsearch
15058 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15059 if test "x$ac_cv_func_tsearch" = xyes
; then :
15060 cat >>confdefs.h
<<_ACEOF
15061 #define HAVE_TSEARCH 1
15070 GNULIB_PTHREAD_SIGMASK
=0;
15072 GNULIB_SIGNAL_H_SIGPIPE
=0;
15073 GNULIB_SIGPROCMASK
=0;
15074 GNULIB_SIGACTION
=0;
15075 HAVE_POSIX_SIGNALBLOCKING
=1;
15076 HAVE_PTHREAD_SIGMASK
=1;
15081 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15083 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15085 HAVE_SIGHANDLER_T
=1;
15086 REPLACE_PTHREAD_SIGMASK
=0;
15090 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15091 #include <signal.h>
15092 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15093 #include <sys/types.h>
15096 if test "x$ac_cv_type_sigset_t" = xyes
; then :
15098 cat >>confdefs.h
<<_ACEOF
15099 #define HAVE_SIGSET_T 1
15102 gl_cv_type_sigset_t
=yes
15104 gl_cv_type_sigset_t
=no
15107 if test $gl_cv_type_sigset_t != yes; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15112 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15113 if ${ac_cv_type_uid_t+:} false
; then :
15114 $as_echo_n "(cached) " >&6
15116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <sys/types.h>
15121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15122 $EGREP "uid_t" >/dev
/null
2>&1; then :
15123 ac_cv_type_uid_t
=yes
15125 ac_cv_type_uid_t
=no
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15131 $as_echo "$ac_cv_type_uid_t" >&6; }
15132 if test $ac_cv_type_uid_t = no
; then
15134 $as_echo "#define uid_t int" >>confdefs.h
15137 $as_echo "#define gid_t int" >>confdefs.h
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15142 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15143 if ${ac_cv_header_stdbool_h+:} false
; then :
15144 $as_echo_n "(cached) " >&6
15146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15149 #include <stdbool.h>
15154 typedef _Bool Bool;
15156 "error: bool is not defined"
15159 "error: false is not defined"
15162 "error: false is not 0"
15165 "error: true is not defined"
15168 "error: true is not 1"
15172 #ifndef __bool_true_false_are_defined
15173 "error: __bool_true_false_are_defined is not defined"
15176 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
15178 char a[true == 1 ? 1 : -1];
15179 char b[false == 0 ? 1 : -1];
15180 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15181 char d[(bool) 0.5 == true ? 1 : -1];
15182 /* See body of main program for 'e'. */
15183 char f[(Bool) 0.0 == false ? 1 : -1];
15185 char h[sizeof (Bool)];
15186 char i[sizeof s.t];
15187 enum { j = false, k = true, l = false * true, m = true * 256 };
15188 /* The following fails for
15189 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15191 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15192 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15193 /* Catch a bug in an HP-UX C compiler. See
15194 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15195 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15206 *pq |= q; *pq |= ! q;
15207 *qq |= q; *qq |= ! q;
15208 /* Refer to every declared value, to avoid compiler optimizations. */
15209 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15210 + !m + !n + !o + !p + !q + !pq + !qq);
15216 if ac_fn_c_try_compile
"$LINENO"; then :
15217 ac_cv_header_stdbool_h
=yes
15219 ac_cv_header_stdbool_h
=no
15221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15224 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15225 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15226 if test "x$ac_cv_type__Bool" = xyes
; then :
15228 cat >>confdefs.h
<<_ACEOF
15229 #define HAVE__BOOL 1
15238 HAVE_MAX_ALIGN_T
=1;
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15243 $as_echo_n "checking for wchar_t... " >&6; }
15244 if ${gt_cv_c_wchar_t+:} false
; then :
15245 $as_echo_n "(cached) " >&6
15247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 #include <stddef.h>
15250 wchar_t foo = (wchar_t)'\0';
15259 if ac_fn_c_try_compile
"$LINENO"; then :
15260 gt_cv_c_wchar_t
=yes
15264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15267 $as_echo "$gt_cv_c_wchar_t" >&6; }
15268 if test $gt_cv_c_wchar_t = yes; then
15270 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15280 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15281 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
15287 cat >>confdefs.h
<<_ACEOF
15288 #define HAVE_DECL_STRDUP $ac_have_decl
15293 REPLACE_STRERROR_0
=0
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15295 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15296 if ${gl_cv_func_strerror_0_works+:} false
; then :
15297 $as_echo_n "(cached) " >&6
15299 if test "$cross_compiling" = yes; then :
15301 # Guess yes on glibc systems.
15302 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15303 # If we don't know, assume the worst.
15304 *) gl_cv_func_strerror_0_works
="guessing no" ;;
15308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310 #include <string.h>
15319 str = strerror (0);
15320 if (!*str) result |= 1;
15321 if (errno) result |= 2;
15322 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15329 if ac_fn_c_try_run
"$LINENO"; then :
15330 gl_cv_func_strerror_0_works
=yes
15332 gl_cv_func_strerror_0_works
=no
15334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15341 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15342 case "$gl_cv_func_strerror_0_works" in
15345 REPLACE_STRERROR_0
=1
15347 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15361 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15362 if test "x$ac_cv_func_strerror_r" = xyes
; then :
15366 if test $ac_cv_func_strerror_r = yes; then
15367 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
15369 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
15370 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
15371 $as_echo_n "(cached) " >&6
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 #include <string.h>
15376 int strerror_r (int, char *, size_t);
15386 if ac_fn_c_try_compile
"$LINENO"; then :
15387 gl_cv_func_strerror_r_posix_signature
=yes
15389 gl_cv_func_strerror_r_posix_signature
=no
15391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
15395 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
15396 if test $gl_cv_func_strerror_r_posix_signature = yes; then
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
15398 $as_echo_n "checking whether strerror_r works... " >&6; }
15399 if ${gl_cv_func_strerror_r_works+:} false
; then :
15400 $as_echo_n "(cached) " >&6
15402 if test "$cross_compiling" = yes; then :
15406 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
15407 # Guess no on HP-UX.
15408 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
15409 # Guess no on BSD variants.
15410 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
15411 # Guess yes otherwise.
15412 *) gl_cv_func_strerror_r_works
="guessing yes";;
15416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15419 #include <string.h>
15426 if (strerror_r (EACCES, buf, 0) < 0)
15429 if (strerror_r (EACCES, buf, sizeof buf) != 0)
15431 strcpy (buf, "Unknown");
15432 if (strerror_r (0, buf, sizeof buf) != 0)
15436 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
15440 if (strerror_r (-3, buf, sizeof buf) < 0)
15452 if ac_fn_c_try_run
"$LINENO"; then :
15453 gl_cv_func_strerror_r_works
=yes
15455 gl_cv_func_strerror_r_works
=no
15457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15464 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15473 if test $ac_cv_func___xpg_strerror_r = yes; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
15475 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
15476 if ${gl_cv_func_strerror_r_works+:} false
; then :
15477 $as_echo_n "(cached) " >&6
15479 if test "$cross_compiling" = yes; then :
15480 gl_cv_func_strerror_r_works
="guessing no"
15483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15486 #include <string.h>
15491 int __xpg_strerror_r(int, char *, size_t);
15497 char buf[256] = "^";
15499 char *str = strerror (-1);
15500 strcpy (copy, str);
15501 if (__xpg_strerror_r (-2, buf, 1) == 0)
15505 __xpg_strerror_r (-2, buf, 256);
15506 if (strcmp (str, copy))
15514 if ac_fn_c_try_run
"$LINENO"; then :
15515 gl_cv_func_strerror_r_works
=yes
15517 gl_cv_func_strerror_r_works
=no
15519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15526 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15553 if test $gl_cv_have_include_next = yes; then
15554 gl_cv_next_string_h
='<'string.h
'>'
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15557 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15558 if ${gl_cv_next_string_h+:} false
; then :
15559 $as_echo_n "(cached) " >&6
15564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <string.h>
15569 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15570 *) gl_absname_cpp
="$ac_cpp" ;;
15575 gl_dirsep_regex
='[/\\]'
15578 gl_dirsep_regex
='\/'
15581 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15582 gl_header_literal_regex
=`echo 'string.h' \
15583 | sed -e "$gl_make_literal_regex_sed"`
15584 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15591 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15592 sed -n "$gl_absolute_header_sed"`
15594 gl_header
=$gl_cv_absolute_string_h
15595 gl_cv_next_string_h
='"'$gl_header'"'
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15600 $as_echo "$gl_cv_next_string_h" >&6; }
15602 NEXT_STRING_H
=$gl_cv_next_string_h
15604 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15606 gl_next_as_first_directive
='<'string.h
'>'
15608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15609 gl_next_as_first_directive
=$gl_cv_next_string_h
15611 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15618 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
15619 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15621 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15622 if eval \
${$as_gl_Symbol+:} false
; then :
15623 $as_echo_n "(cached) " >&6
15625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <string.h>
15638 if ac_fn_c_try_compile
"$LINENO"; then :
15639 eval "$as_gl_Symbol=yes"
15641 eval "$as_gl_Symbol=no"
15643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15645 eval ac_res
=\$
$as_gl_Symbol
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15647 $as_echo "$ac_res" >&6; }
15648 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15649 cat >>confdefs.h
<<_ACEOF
15650 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15653 eval ac_cv_have_decl_
$gl_func=yes
15661 if test "$gl_cv_func_memchr_works" != yes; then
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15665 $as_echo_n "checking whether strstr works... " >&6; }
15666 if ${gl_cv_func_strstr_works_always+:} false
; then :
15667 $as_echo_n "(cached) " >&6
15669 if test "$cross_compiling" = yes; then :
15670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15673 #ifdef __GNU_LIBRARY__
15674 #include <features.h>
15675 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15676 || defined __UCLIBC__
15679 #elif defined __CYGWIN__
15680 #include <cygwin/version.h>
15681 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15690 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15691 gl_cv_func_strstr_works_always
="guessing yes"
15693 gl_cv_func_strstr_works_always
="guessing no"
15699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15702 #include <string.h> /* for strstr */
15703 #define P "_EF_BF_BD"
15704 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15705 #define NEEDLE P P P P P
15710 return !!strstr (HAYSTACK, NEEDLE);
15716 if ac_fn_c_try_run
"$LINENO"; then :
15717 gl_cv_func_strstr_works_always
=yes
15719 gl_cv_func_strstr_works_always
=no
15721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15728 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15729 case "$gl_cv_func_strstr_works_always" in
15738 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
15739 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
15745 cat >>confdefs.h
<<_ACEOF
15746 #define HAVE_DECL_STRTOK_R $ac_have_decl
15768 if test $gl_cv_have_include_next = yes; then
15769 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15772 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15773 if ${gl_cv_next_sys_types_h+:} false
; then :
15774 $as_echo_n "(cached) " >&6
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <sys/types.h>
15784 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15785 *) gl_absname_cpp
="$ac_cpp" ;;
15790 gl_dirsep_regex
='[/\\]'
15793 gl_dirsep_regex
='\/'
15796 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15797 gl_header_literal_regex
=`echo 'sys/types.h' \
15798 | sed -e "$gl_make_literal_regex_sed"`
15799 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15800 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15806 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15807 sed -n "$gl_absolute_header_sed"`
15809 gl_header
=$gl_cv_absolute_sys_types_h
15810 gl_cv_next_sys_types_h
='"'$gl_header'"'
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15815 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15817 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
15819 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15821 gl_next_as_first_directive
='<'sys
/types.h
'>'
15823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15824 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
15826 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
15847 GNULIB_NANOSLEEP
=0;
15852 HAVE_DECL_LOCALTIME_R
=1;
15856 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
15857 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
15858 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
15859 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
15861 : ${GNULIB_GETTIMEOFDAY=0};
15863 REPLACE_LOCALTIME
=0;
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15874 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15875 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15876 $as_echo_n "(cached) " >&6
15878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15885 static struct timespec x; x.tv_sec = x.tv_nsec;
15890 if ac_fn_c_try_compile
"$LINENO"; then :
15891 gl_cv_sys_struct_timespec_in_time_h
=yes
15893 gl_cv_sys_struct_timespec_in_time_h
=no
15895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15898 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15900 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15901 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15902 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15903 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
15904 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15905 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15908 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15909 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15910 $as_echo_n "(cached) " >&6
15912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 #include <sys/time.h>
15919 static struct timespec x; x.tv_sec = x.tv_nsec;
15924 if ac_fn_c_try_compile
"$LINENO"; then :
15925 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15927 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15932 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15933 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15934 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15937 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15938 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15939 $as_echo_n "(cached) " >&6
15941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <pthread.h>
15948 static struct timespec x; x.tv_sec = x.tv_nsec;
15953 if ac_fn_c_try_compile
"$LINENO"; then :
15954 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15956 gl_cv_sys_struct_timespec_in_pthread_h
=no
15958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15961 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15962 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15963 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15966 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15967 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
15968 $as_echo_n "(cached) " >&6
15970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <unistd.h>
15977 static struct timespec x; x.tv_sec = x.tv_nsec;
15982 if ac_fn_c_try_compile
"$LINENO"; then :
15983 gl_cv_sys_struct_timespec_in_unistd_h
=yes
15985 gl_cv_sys_struct_timespec_in_unistd_h
=no
15987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15990 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15991 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15992 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16013 if test $gl_cv_have_include_next = yes; then
16014 gl_cv_next_time_h
='<'time.h
'>'
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16017 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16018 if ${gl_cv_next_time_h+:} false
; then :
16019 $as_echo_n "(cached) " >&6
16024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16029 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16030 *) gl_absname_cpp
="$ac_cpp" ;;
16035 gl_dirsep_regex
='[/\\]'
16038 gl_dirsep_regex
='\/'
16041 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16042 gl_header_literal_regex
=`echo 'time.h' \
16043 | sed -e "$gl_make_literal_regex_sed"`
16044 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16045 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16051 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16052 sed -n "$gl_absolute_header_sed"`
16054 gl_header
=$gl_cv_absolute_time_h
16055 gl_cv_next_time_h
='"'$gl_header'"'
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16060 $as_echo "$gl_cv_next_time_h" >&6; }
16062 NEXT_TIME_H
=$gl_cv_next_time_h
16064 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16066 gl_next_as_first_directive
='<'time.h
'>'
16068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16069 gl_next_as_first_directive
=$gl_cv_next_time_h
16071 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16089 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16090 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16096 cat >>confdefs.h
<<_ACEOF
16097 #define HAVE_DECL_UNSETENV $ac_have_decl
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16103 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16104 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
16105 $as_echo_n "(cached) " >&6
16107 gl_cv_header_wchar_h_correct_inline
=yes
16108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16111 #define wcstod renamed_wcstod
16112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16115 included before <wchar.h>. */
16116 #include <stddef.h>
16120 extern int zero (void);
16121 int main () { return zero(); }
16124 save_ac_compile
="$ac_compile"
16125 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16127 (eval $ac_compile) 2>&5
16129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16130 test $ac_status = 0; }; then
16131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16134 #define wcstod renamed_wcstod
16135 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16137 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16138 included before <wchar.h>. */
16139 #include <stddef.h>
16143 int zero (void) { return 0; }
16146 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16148 (eval $ac_compile) 2>&5
16150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16151 test $ac_status = 0; }; then
16152 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
16155 gl_cv_header_wchar_h_correct_inline
=no
16159 ac_compile
="$save_ac_compile"
16160 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16164 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
16165 if test $gl_cv_header_wchar_h_correct_inline = no
; then
16166 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16167 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16168 C99 mode. You have four options:
16169 - Add the flag -fgnu89-inline to CC and reconfigure, or
16170 - Fix your include files, using parts of
16171 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16172 - Use a gcc version older than 4.3, or
16173 - Don't use the flags -std=c99 or -std=gnu99.
16174 Configuration aborted." "$LINENO" 5
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16179 $as_echo_n "checking for wint_t... " >&6; }
16180 if ${gt_cv_c_wint_t+:} false
; then :
16181 $as_echo_n "(cached) " >&6
16183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16186 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16188 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16189 before <wchar.h>. */
16190 #include <stddef.h>
16194 wint_t foo = (wchar_t)'\0';
16203 if ac_fn_c_try_compile
"$LINENO"; then :
16208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16211 $as_echo "$gt_cv_c_wint_t" >&6; }
16212 if test $gt_cv_c_wint_t = yes; then
16214 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16223 GNULIB_TOWCTRANS
=0;
16227 REPLACE_ISWBLANK
=0;
16236 GL_COND_LIBTOOL_TRUE
=
16237 GL_COND_LIBTOOL_FALSE
='#'
16239 GL_COND_LIBTOOL_TRUE
='#'
16240 GL_COND_LIBTOOL_FALSE
=
16243 gl_cond_libtool
=false
16246 gl_m4_base
='import/m4'
16256 gl_source_base
='import'
16259 if test $ac_cv_func_alloca_works = no
; then
16263 # Define an additional variable used in the Makefile substitution.
16264 if test $ac_cv_working_alloca_h = yes; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16266 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16267 if ${gl_cv_rpl_alloca+:} false
; then :
16268 $as_echo_n "(cached) " >&6
16271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16274 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16280 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16281 gl_cv_rpl_alloca
=yes
16283 gl_cv_rpl_alloca
=no
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16290 $as_echo "$gl_cv_rpl_alloca" >&6; }
16291 if test $gl_cv_rpl_alloca = yes; then
16293 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16303 if test -n "$ALLOCA_H"; then
16304 GL_GENERATE_ALLOCA_H_TRUE
=
16305 GL_GENERATE_ALLOCA_H_FALSE
='#'
16307 GL_GENERATE_ALLOCA_H_TRUE
='#'
16308 GL_GENERATE_ALLOCA_H_FALSE
=
16322 if test $ac_cv_header_arpa_inet_h = yes; then
16343 if test $gl_cv_have_include_next = yes; then
16344 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
16347 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
16348 if ${gl_cv_next_arpa_inet_h+:} false
; then :
16349 $as_echo_n "(cached) " >&6
16352 if test $ac_cv_header_arpa_inet_h = yes; then
16357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 #include <arpa/inet.h>
16362 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16363 *) gl_absname_cpp
="$ac_cpp" ;;
16368 gl_dirsep_regex
='[/\\]'
16371 gl_dirsep_regex
='\/'
16374 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16375 gl_header_literal_regex
=`echo 'arpa/inet.h' \
16376 | sed -e "$gl_make_literal_regex_sed"`
16377 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16378 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16384 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16385 sed -n "$gl_absolute_header_sed"`
16387 gl_header
=$gl_cv_absolute_arpa_inet_h
16388 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
16390 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
16396 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
16398 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
16400 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16402 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
16404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16405 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
16407 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
16416 for gl_func
in inet_ntop inet_pton
; do
16417 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16419 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16420 if eval \
${$as_gl_Symbol+:} false
; then :
16421 $as_echo_n "(cached) " >&6
16423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16426 /* On some systems, this header is not self-consistent. */
16427 #if !(defined __GLIBC__ || defined __UCLIBC__)
16428 # include <sys/socket.h>
16431 # include <netdb.h>
16433 #include <arpa/inet.h>
16444 if ac_fn_c_try_compile
"$LINENO"; then :
16445 eval "$as_gl_Symbol=yes"
16447 eval "$as_gl_Symbol=no"
16449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16451 eval ac_res
=\$
$as_gl_Symbol
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16453 $as_echo "$ac_res" >&6; }
16454 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16455 cat >>confdefs.h
<<_ACEOF
16456 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16459 eval ac_cv_have_decl_
$gl_func=yes
16473 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
16478 if test $ac_cv_func_canonicalize_file_name = no
; then
16479 HAVE_CANONICALIZE_FILE_NAME
=0
16480 if test $ac_cv_func_realpath = no
; then
16483 case "$gl_cv_func_realpath_works" in
16485 *) REPLACE_REALPATH
=1 ;;
16489 case "$gl_cv_func_realpath_works" in
16493 REPLACE_CANONICALIZE_FILE_NAME
=1
16499 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
16508 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
16513 cat >>confdefs.h
<<_ACEOF
16514 #define GNULIB_CANONICALIZE_LGPL 1
16523 GNULIB_CANONICALIZE_FILE_NAME
=1
16529 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16544 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
16559 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
16566 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
16567 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
16568 $as_echo_n "(cached) " >&6
16570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16573 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16575 # include <unistd.h>
16577 #include <limits.h>
16578 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16579 # include <sys/param.h>
16581 #if !defined PATH_MAX && defined MAXPATHLEN
16582 # define PATH_MAX MAXPATHLEN
16586 # define PATH_MAX 1024
16588 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16590 # define PATH_MAX 260
16594 have_arbitrary_file_name_length_limit
16597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16598 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
16599 gl_cv_have_arbitrary_file_name_length_limit
=yes
16601 gl_cv_have_arbitrary_file_name_length_limit
=no
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
16607 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
16609 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
16618 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
16624 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
16630 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16644 if test $ac_cv_header_sys_socket_h != yes; then
16645 for ac_header
in winsock2.h
16647 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16648 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16649 cat >>confdefs.h
<<_ACEOF
16650 #define HAVE_WINSOCK2_H 1
16658 if test "$ac_cv_header_winsock2_h" = yes; then
16660 UNISTD_H_HAVE_WINSOCK2_H
=1
16661 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16667 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
16672 if test $REPLACE_CLOSE = 0; then
16682 if test $ac_cv_func_fchdir = no
; then
16686 if test $HAVE_FCHDIR = 0; then
16692 if test $REPLACE_CLOSE = 1; then
16701 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
16715 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
16722 for ac_func
in closedir
16724 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
16725 if test "x$ac_cv_func_closedir" = xyes
; then :
16726 cat >>confdefs.h
<<_ACEOF
16727 #define HAVE_CLOSEDIR 1
16733 if test $ac_cv_func_closedir = no
; then
16746 if test $ac_cv_func_fchdir = no
; then
16750 if test $HAVE_FCHDIR = 0; then
16751 if test $HAVE_CLOSEDIR = 1; then
16756 case $host_os,$HAVE_CLOSEDIR in
16758 REPLACE_CLOSEDIR
=1;;
16761 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
16770 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
16784 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
16789 if test "x$datarootdir" = x
; then
16790 datarootdir
='${datadir}'
16793 if test "x$docdir" = x
; then
16794 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
16797 if test "x$htmldir" = x
; then
16798 htmldir
='${docdir}'
16801 if test "x$dvidir" = x
; then
16805 if test "x$pdfdir" = x
; then
16809 if test "x$psdir" = x
; then
16813 if test "x$lispdir" = x
; then
16814 lispdir
='${datarootdir}/emacs/site-lisp'
16817 if test "x$localedir" = x
; then
16818 localedir
='${datarootdir}/locale'
16821 if test "x$runstatedir" = x
; then
16822 runstatedir
='${localstatedir}/run'
16826 pkglibexecdir
='${libexecdir}/${PACKAGE}'
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
16830 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
16831 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
16832 $as_echo_n "(cached) " >&6
16834 if test "$cross_compiling" = yes; then :
16836 # Guess yes on glibc systems with Linux kernel.
16837 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
16838 # If we don't know, assume the worst.
16839 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
16843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 #include <sys/types.h>
16846 #include <sys/stat.h>
16847 #include <dirent.h>
16852 DIR *dp = opendir (".");
16860 if (lstat (e->d_name, &st) != 0)
16862 if (e->d_ino != st.st_ino)
16871 if ac_fn_c_try_run
"$LINENO"; then :
16872 gl_cv_struct_dirent_d_ino
=yes
16874 gl_cv_struct_dirent_d_ino
=no
16876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
16882 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
16883 case "$gl_cv_struct_dirent_d_ino" in
16886 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
16893 $as_echo_n "checking for d_type member in directory struct... " >&6; }
16894 if ${gl_cv_struct_dirent_d_type+:} false
; then :
16895 $as_echo_n "(cached) " >&6
16897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16900 #include <sys/types.h>
16901 #include <dirent.h>
16906 struct dirent dp; dp.d_type = 0;
16911 if ac_fn_c_try_link
"$LINENO"; then :
16912 gl_cv_struct_dirent_d_type
=yes
16914 gl_cv_struct_dirent_d_type
=no
16916 rm -f core conftest.err conftest.
$ac_objext \
16917 conftest
$ac_exeext conftest.
$ac_ext
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
16922 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
16923 if test $gl_cv_struct_dirent_d_type = yes; then
16925 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
16948 if test $gl_cv_have_include_next = yes; then
16949 gl_cv_next_dirent_h
='<'dirent.h
'>'
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
16952 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
16953 if ${gl_cv_next_dirent_h+:} false
; then :
16954 $as_echo_n "(cached) " >&6
16957 if test $ac_cv_header_dirent_h = yes; then
16962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16964 #include <dirent.h>
16967 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16968 *) gl_absname_cpp
="$ac_cpp" ;;
16973 gl_dirsep_regex
='[/\\]'
16976 gl_dirsep_regex
='\/'
16979 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16980 gl_header_literal_regex
=`echo 'dirent.h' \
16981 | sed -e "$gl_make_literal_regex_sed"`
16982 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16983 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16989 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16990 sed -n "$gl_absolute_header_sed"`
16992 gl_header
=$gl_cv_absolute_dirent_h
16993 gl_cv_next_dirent_h
='"'$gl_header'"'
16995 gl_cv_next_dirent_h
='<'dirent.h
'>'
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
17001 $as_echo "$gl_cv_next_dirent_h" >&6; }
17003 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
17005 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17007 gl_next_as_first_directive
='<'dirent.h
'>'
17009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17010 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17012 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17017 if test $ac_cv_header_dirent_h = yes; then
17025 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
17026 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17028 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17029 if eval \
${$as_gl_Symbol+:} false
; then :
17030 $as_echo_n "(cached) " >&6
17032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <dirent.h>
17045 if ac_fn_c_try_compile
"$LINENO"; then :
17046 eval "$as_gl_Symbol=yes"
17048 eval "$as_gl_Symbol=no"
17050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17052 eval ac_res
=\$
$as_gl_Symbol
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17054 $as_echo "$ac_res" >&6; }
17055 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
17056 cat >>confdefs.h
<<_ACEOF
17057 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17060 eval ac_cv_have_decl_
$gl_func=yes
17070 for ac_func
in dirfd
17072 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17073 if test "x$ac_cv_func_dirfd" = xyes
; then :
17074 cat >>confdefs.h
<<_ACEOF
17075 #define HAVE_DIRFD 1
17081 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17082 #include <dirent.h>
17084 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17090 cat >>confdefs.h
<<_ACEOF
17091 #define HAVE_DECL_DIRFD $ac_have_decl
17094 if test $ac_cv_have_decl_dirfd = no
; then
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17099 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17100 if ${gl_cv_func_dirfd_macro+:} false
; then :
17101 $as_echo_n "(cached) " >&6
17103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17106 #include <sys/types.h>
17107 #include <dirent.h>
17109 dirent_header_defines_dirfd
17112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17113 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17114 gl_cv_func_dirfd_macro
=yes
17116 gl_cv_func_dirfd_macro
=no
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17122 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17124 # Use the replacement if we have no function or macro with that name,
17125 # or if OS/2 kLIBC whose dirfd() does not work.
17126 # Replace only if the system declares dirfd already.
17127 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
17128 no
,no
,*,yes |
*,*,os2
*,yes)
17131 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
17135 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
17136 ||
test $REPLACE_DIRFD = 1; then
17145 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17149 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17150 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
17151 $as_echo_n "(cached) " >&6
17154 dirfd_save_CFLAGS
=$CFLAGS
17155 for ac_expr
in d_fd dd_fd
; do
17157 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17161 #include <sys/types.h>
17162 #include <dirent.h>
17166 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17171 if ac_fn_c_try_compile
"$LINENO"; then :
17175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17176 CFLAGS
=$dirfd_save_CFLAGS
17177 test "$dir_fd_found" = yes && break
17179 test "$dir_fd_found" = yes || ac_expr
=no_such_member
17181 gl_cv_sys_dir_fd_member_name
=$ac_expr
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17186 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
17187 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
17189 cat >>confdefs.h
<<_ACEOF
17190 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
17208 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17219 $as_echo_n "checking whether // is distinct from /... " >&6; }
17220 if ${gl_cv_double_slash_root+:} false
; then :
17221 $as_echo_n "(cached) " >&6
17223 if test x
"$cross_compiling" = xyes
; then
17224 # When cross-compiling, there is no way to tell whether // is special
17225 # short of a list of hosts. However, the only known hosts to date
17226 # that have a distinct // are Apollo DomainOS (too old to port to),
17227 # Cygwin, and z/OS. If anyone knows of another system for which // has
17228 # special semantics and is distinct from /, please report it to
17229 # <bug-gnulib@gnu.org>.
17231 *-cygwin | i370-ibm-openedition
)
17232 gl_cv_double_slash_root
=yes ;;
17234 # Be optimistic and assume that / and // are the same when we
17236 gl_cv_double_slash_root
='unknown, assuming no' ;;
17239 set x
`ls -di / // 2>/dev/null`
17240 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17241 gl_cv_double_slash_root
=no
17243 gl_cv_double_slash_root
=yes
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17248 $as_echo "$gl_cv_double_slash_root" >&6; }
17249 if test "$gl_cv_double_slash_root" = yes; then
17251 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17258 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17271 if test $ac_cv_func_fchdir = no
; then
17275 if test $HAVE_FCHDIR = 0; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
17280 $as_echo_n "checking whether dup works... " >&6; }
17281 if ${gl_cv_func_dup_works+:} false
; then :
17282 $as_echo_n "(cached) " >&6
17284 if test "$cross_compiling" = yes; then :
17285 gl_cv_func_dup_works
='guessing yes'
17287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17289 #include <unistd.h>
17295 /* On OS/2 kLIBC, dup does not work on a directory fd. */
17296 int fd = open (".", O_RDONLY);
17297 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
17304 if ac_fn_c_try_run
"$LINENO"; then :
17305 gl_cv_func_dup_works
=yes
17307 gl_cv_func_dup_works
=no
17309 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17310 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
17316 $as_echo "$gl_cv_func_dup_works" >&6; }
17317 case "$gl_cv_func_dup_works" in
17324 if test $REPLACE_DUP = 1; then
17333 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
17348 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
17357 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
17360 if test $HAVE_DUP2 = 1; then
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17362 $as_echo_n "checking whether dup2 works... " >&6; }
17363 if ${gl_cv_func_dup2_works+:} false
; then :
17364 $as_echo_n "(cached) " >&6
17366 if test "$cross_compiling" = yes; then :
17368 mingw
*) # on this platform, dup2 always returns 0 for success
17369 gl_cv_func_dup2_works
="guessing no" ;;
17370 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
17371 gl_cv_func_dup2_works
="guessing no" ;;
17373 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17375 gl_cv_func_dup2_works
="guessing no" ;;
17376 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17377 gl_cv_func_dup2_works
="guessing no" ;;
17378 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17379 gl_cv_func_dup2_works
="guessing no" ;;
17380 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17381 gl_cv_func_dup2_works
="guessing no" ;;
17382 *) gl_cv_func_dup2_works
="guessing yes" ;;
17385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17390 #include <limits.h>
17391 #include <sys/resource.h>
17392 #include <unistd.h>
17393 #ifndef RLIM_SAVED_CUR
17394 # define RLIM_SAVED_CUR RLIM_INFINITY
17396 #ifndef RLIM_SAVED_MAX
17397 # define RLIM_SAVED_MAX RLIM_INFINITY
17404 int bad_fd = INT_MAX;
17405 struct rlimit rlim;
17406 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17407 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17408 && rlim.rlim_cur != RLIM_INFINITY
17409 && rlim.rlim_cur != RLIM_SAVED_MAX
17410 && rlim.rlim_cur != RLIM_SAVED_CUR)
17411 bad_fd = rlim.rlim_cur;
17413 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17416 if (dup2 (1, 1) != 1)
17419 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17423 if (dup2 (0, 0) != -1)
17425 /* Many gnulib modules require POSIX conformance of EBADF. */
17426 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17428 /* Flush out some cygwin core dumps. */
17429 if (dup2 (2, -1) != -1 || errno != EBADF)
17433 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17435 int fd = open (".", O_RDONLY);
17438 else if (dup2 (fd, fd + 1) == -1)
17449 if ac_fn_c_try_run
"$LINENO"; then :
17450 gl_cv_func_dup2_works
=yes
17452 gl_cv_func_dup2_works
=no
17454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
17461 $as_echo "$gl_cv_func_dup2_works" >&6; }
17462 case "$gl_cv_func_dup2_works" in
17466 for ac_func
in setdtablesize
17468 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
17469 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
17470 cat >>confdefs.h
<<_ACEOF
17471 #define HAVE_SETDTABLESIZE 1
17490 if test $ac_cv_func_fchdir = no
; then
17494 if test $HAVE_FCHDIR = 0; then
17495 if test $HAVE_DUP2 = 1; then
17501 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
17510 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
17525 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
17541 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17548 $as_echo_n "checking for error_at_line... " >&6; }
17549 if ${ac_cv_lib_error_at_line+:} false
; then :
17550 $as_echo_n "(cached) " >&6
17552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17558 error_at_line (0, 0, "", 0, "an error occurred");
17563 if ac_fn_c_try_link
"$LINENO"; then :
17564 ac_cv_lib_error_at_line
=yes
17566 ac_cv_lib_error_at_line
=no
17568 rm -f core conftest.err conftest.
$ac_objext \
17569 conftest
$ac_exeext conftest.
$ac_ext
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17572 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17574 if test $ac_cv_lib_error_at_line = no
; then
17583 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17592 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17596 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17610 if test $ac_cv_have_decl_fchdir = no
; then
17615 if test $HAVE_FCHDIR = 0; then
17624 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
17628 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
17631 $as_echo_n "checking whether open can visit directories... " >&6; }
17632 if ${gl_cv_func_open_directory_works+:} false
; then :
17633 $as_echo_n "(cached) " >&6
17635 if test "$cross_compiling" = yes; then :
17637 # Guess yes on glibc systems.
17638 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
17639 # If we don't know, assume the worst.
17640 *) gl_cv_func_open_directory_works
="guessing no" ;;
17644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17651 return open(".", O_RDONLY) < 0;
17656 if ac_fn_c_try_run
"$LINENO"; then :
17657 gl_cv_func_open_directory_works
=yes
17659 gl_cv_func_open_directory_works
=no
17661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
17667 $as_echo "$gl_cv_func_open_directory_works" >&6; }
17668 case "$gl_cv_func_open_directory_works" in
17672 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
17689 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
17704 if test $ac_cv_func_fcntl = no
; then
17714 if test $ac_cv_func_fcntl = no
; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
17722 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
17723 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
17724 $as_echo_n "(cached) " >&6
17726 if test "$cross_compiling" = yes; then :
17728 aix
* | cygwin
* | haiku
*)
17729 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
17730 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
17733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17737 #include <limits.h>
17738 #include <sys/resource.h>
17739 #include <unistd.h>
17740 #ifndef RLIM_SAVED_CUR
17741 # define RLIM_SAVED_CUR RLIM_INFINITY
17743 #ifndef RLIM_SAVED_MAX
17744 # define RLIM_SAVED_MAX RLIM_INFINITY
17751 int bad_fd = INT_MAX;
17752 struct rlimit rlim;
17753 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17754 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17755 && rlim.rlim_cur != RLIM_INFINITY
17756 && rlim.rlim_cur != RLIM_SAVED_MAX
17757 && rlim.rlim_cur != RLIM_SAVED_CUR)
17758 bad_fd = rlim.rlim_cur;
17759 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
17760 if (errno != EINVAL) result |= 2;
17761 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
17762 if (errno != EINVAL) result |= 8;
17763 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
17766 fd = open (".", O_RDONLY);
17769 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
17779 if ac_fn_c_try_run
"$LINENO"; then :
17780 gl_cv_func_fcntl_f_dupfd_works
=yes
17782 gl_cv_func_fcntl_f_dupfd_works
=no
17784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
17790 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
17791 case $gl_cv_func_fcntl_f_dupfd_works in
17802 if test $ac_cv_func_fcntl = no
; then
17809 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
17814 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
17815 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
17816 $as_echo_n "(cached) " >&6
17818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17822 #ifndef F_DUPFD_CLOEXEC
17834 if ac_fn_c_try_compile
"$LINENO"; then :
17835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17839 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
17840 it to support the semantics on older kernels that failed with EINVAL. */
17852 if ac_fn_c_try_compile
"$LINENO"; then :
17853 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
17855 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
17857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17859 gl_cv_func_fcntl_f_dupfd_cloexec
=no
17861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
17864 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
17865 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
17875 if test $ac_cv_func_fcntl = no
; then
17893 if test $ac_cv_func_fchdir = no
; then
17897 if test $HAVE_FCHDIR = 0; then
17907 if test $ac_cv_func_fcntl = no
; then
17916 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
17925 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
17939 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
17954 if test $gl_cv_have_include_next = yes; then
17955 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
17958 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
17959 if ${gl_cv_next_fcntl_h+:} false
; then :
17960 $as_echo_n "(cached) " >&6
17965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17970 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17971 *) gl_absname_cpp
="$ac_cpp" ;;
17976 gl_dirsep_regex
='[/\\]'
17979 gl_dirsep_regex
='\/'
17982 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17983 gl_header_literal_regex
=`echo 'fcntl.h' \
17984 | sed -e "$gl_make_literal_regex_sed"`
17985 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17986 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17992 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17993 sed -n "$gl_absolute_header_sed"`
17995 gl_header
=$gl_cv_absolute_fcntl_h
17996 gl_cv_next_fcntl_h
='"'$gl_header'"'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
18001 $as_echo "$gl_cv_next_fcntl_h" >&6; }
18003 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
18005 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18007 gl_next_as_first_directive
='<'fcntl.h
'>'
18009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18010 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18012 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18023 for gl_func
in fcntl openat
; do
18024 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18026 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18027 if eval \
${$as_gl_Symbol+:} false
; then :
18028 $as_echo_n "(cached) " >&6
18030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18043 if ac_fn_c_try_compile
"$LINENO"; then :
18044 eval "$as_gl_Symbol=yes"
18046 eval "$as_gl_Symbol=no"
18048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18050 eval ac_res
=\$
$as_gl_Symbol
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18052 $as_echo "$ac_res" >&6; }
18053 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18054 cat >>confdefs.h
<<_ACEOF
18055 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18058 eval ac_cv_have_decl_
$gl_func=yes
18068 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18069 #include <dirent.h>
18072 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18078 cat >>confdefs.h
<<_ACEOF
18079 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18081 if test $ac_have_decl = 1; then :
18084 HAVE_DECL_FDOPENDIR
=0
18094 if test $ac_cv_func_fdopendir = no
; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18098 $as_echo_n "checking whether fdopendir works... " >&6; }
18099 if ${gl_cv_func_fdopendir_works+:} false
; then :
18100 $as_echo_n "(cached) " >&6
18102 if test "$cross_compiling" = yes; then :
18104 # Guess yes on glibc systems.
18105 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18106 # If we don't know, assume the worst.
18107 *) gl_cv_func_fdopendir_works
="guessing no" ;;
18111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18114 #include <dirent.h>
18116 #include <unistd.h>
18117 #if !HAVE_DECL_FDOPENDIR
18119 # ifdef __cplusplus
18122 DIR *fdopendir (int);
18129 int fd = open ("conftest.c", O_RDONLY);
18130 if (fd < 0) result |= 1;
18131 if (fdopendir (fd)) result |= 2;
18132 if (close (fd)) result |= 4;
18138 if ac_fn_c_try_run
"$LINENO"; then :
18139 gl_cv_func_fdopendir_works
=yes
18141 gl_cv_func_fdopendir_works
=no
18143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18149 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18150 case "$gl_cv_func_fdopendir_works" in
18153 REPLACE_FDOPENDIR
=1
18158 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18167 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18181 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18187 cat >>confdefs.h
<<_ACEOF
18188 #define GNULIB_FDOPENDIR 1
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18203 $as_echo_n "checking for flexible array member... " >&6; }
18204 if ${ac_cv_c_flexmember+:} false
; then :
18205 $as_echo_n "(cached) " >&6
18207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209 #include <stdlib.h>
18211 #include <stddef.h>
18212 struct s { int n; double d[]; };
18216 int m = getchar ();
18217 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
18218 nbytes += sizeof (struct s) - 1;
18219 nbytes -= nbytes % sizeof (struct s);
18220 struct s *p = malloc (nbytes);
18222 return p->d != (double *) NULL;
18227 if ac_fn_c_try_compile
"$LINENO"; then :
18228 ac_cv_c_flexmember
=yes
18230 ac_cv_c_flexmember
=no
18232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18235 $as_echo "$ac_cv_c_flexmember" >&6; }
18236 if test $ac_cv_c_flexmember = yes; then
18238 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18241 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18249 REPLACE_FLOAT_LDBL
=0
18251 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
18255 case "$host_cpu" in
18260 # On x86_64 systems, the C compiler may still be generating
18262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18263 /* end confdefs.h. */
18264 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18269 $EGREP "yes" >/dev
/null
2>&1; then :
18280 case "$host_cpu" in
18288 aix
* | freebsd
* | linux
*)
18289 if test -n "$FLOAT_H"; then
18290 REPLACE_FLOAT_LDBL
=1
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18297 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
18298 if ${gl_cv_func_itold_works+:} false
; then :
18299 $as_echo_n "(cached) " >&6
18302 if test "$cross_compiling" = yes; then :
18305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18307 #if defined __LP64__ || defined __arch64__
18311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18312 $EGREP "yes" >/dev
/null
2>&1; then :
18313 gl_cv_func_itold_works
="guessing no"
18315 gl_cv_func_itold_works
="guessing yes"
18320 *) gl_cv_func_itold_works
="guessing yes" ;;
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18328 volatile long double ld;
18337 if ac_fn_c_try_run
"$LINENO"; then :
18338 gl_cv_func_itold_works
=yes
18340 gl_cv_func_itold_works
=no
18342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18349 $as_echo "$gl_cv_func_itold_works" >&6; }
18350 case "$gl_cv_func_itold_works" in
18357 if test -n "$FLOAT_H"; then
18366 if test $gl_cv_have_include_next = yes; then
18367 gl_cv_next_float_h
='<'float.h
'>'
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18370 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18371 if ${gl_cv_next_float_h+:} false
; then :
18372 $as_echo_n "(cached) " >&6
18377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18382 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18383 *) gl_absname_cpp
="$ac_cpp" ;;
18388 gl_dirsep_regex
='[/\\]'
18391 gl_dirsep_regex
='\/'
18394 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18395 gl_header_literal_regex
=`echo 'float.h' \
18396 | sed -e "$gl_make_literal_regex_sed"`
18397 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18398 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18404 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18405 sed -n "$gl_absolute_header_sed"`
18407 gl_header
=$gl_cv_absolute_float_h
18408 gl_cv_next_float_h
='"'$gl_header'"'
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18413 $as_echo "$gl_cv_next_float_h" >&6; }
18415 NEXT_FLOAT_H
=$gl_cv_next_float_h
18417 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18419 gl_next_as_first_directive
='<'float.h
'>'
18421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18422 gl_next_as_first_directive
=$gl_cv_next_float_h
18424 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
18431 if test -n "$FLOAT_H"; then
18432 GL_GENERATE_FLOAT_H_TRUE
=
18433 GL_GENERATE_FLOAT_H_FALSE
='#'
18435 GL_GENERATE_FLOAT_H_TRUE
='#'
18436 GL_GENERATE_FLOAT_H_FALSE
=
18441 if test $REPLACE_FLOAT_LDBL = 1; then
18450 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
18453 if test $REPLACE_ITOLD = 1; then
18462 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
18471 gl_fnmatch_required_lowercase
=`
18472 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
18474 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
18476 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
18477 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
18478 $as_echo_n "(cached) " >&6
18480 if test $gl_fnmatch_required = GNU
; then
18481 gl_fnmatch_gnu_start
=
18482 gl_fnmatch_gnu_end
=
18484 gl_fnmatch_gnu_start
='#if 0'
18485 gl_fnmatch_gnu_end
='#endif'
18487 if test "$cross_compiling" = yes; then :
18488 eval "$gl_fnmatch_cache_var=\"guessing no\""
18490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 #include <fnmatch.h>
18494 y (char const *pattern, char const *string, int flags)
18496 return fnmatch (pattern, string, flags) == 0;
18499 n (char const *pattern, char const *string, int flags)
18501 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
18507 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
18508 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
18509 static char const A_1[] = { 'A' - 1, 0 };
18510 static char const A01[] = { 'A' + 1, 0 };
18511 static char const a_1[] = { 'a' - 1, 0 };
18512 static char const a01[] = { 'a' + 1, 0 };
18513 static char const bs_1[] = { '\\\\' - 1, 0 };
18514 static char const bs01[] = { '\\\\' + 1, 0 };
18516 if (!n ("a*", "", 0))
18518 if (!y ("a*", "abc", 0))
18520 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
18522 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
18524 if (!y ("a\\\\bc", "abc", 0))
18526 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
18528 if (!y ("*x", ".x", 0))
18530 if (!n ("*x", ".x", FNM_PERIOD))
18532 if (!y (Apat, "\\\\", 0))
18534 if (!y (Apat, "A", 0))
18536 if (!y (apat, "\\\\", 0))
18538 if (!y (apat, "a", 0))
18540 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
18542 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
18544 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
18546 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
18548 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
18550 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
18552 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
18554 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
18556 $gl_fnmatch_gnu_start
18557 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
18559 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
18561 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
18563 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
18565 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
18567 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
18569 $gl_fnmatch_gnu_end
18576 if ac_fn_c_try_run
"$LINENO"; then :
18577 eval "$gl_fnmatch_cache_var=yes"
18579 eval "$gl_fnmatch_cache_var=no"
18581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18587 eval ac_res
=\$
$gl_fnmatch_cache_var
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18589 $as_echo "$ac_res" >&6; }
18590 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
18591 if test "$gl_fnmatch_result" = yes; then
18592 rm -f "$gl_source_base/fnmatch.h"
18594 FNMATCH_H
=fnmatch.h
18597 if test -n "$FNMATCH_H"; then
18598 GL_GENERATE_FNMATCH_H_TRUE
=
18599 GL_GENERATE_FNMATCH_H_FALSE
='#'
18601 GL_GENERATE_FNMATCH_H_TRUE
='#'
18602 GL_GENERATE_FNMATCH_H_FALSE
=
18606 if test -n "$FNMATCH_H"; then
18615 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18619 cat >>confdefs.h
<<_ACEOF
18620 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18624 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18626 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18632 cat >>confdefs.h
<<_ACEOF
18633 #define HAVE_DECL_ISBLANK $ac_have_decl
18678 if test -n "$FNMATCH_H"; then
18687 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18691 cat >>confdefs.h
<<_ACEOF
18692 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18696 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18698 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18704 cat >>confdefs.h
<<_ACEOF
18705 #define HAVE_DECL_ISBLANK $ac_have_decl
18749 if test $gl_cv_func_frexp_no_libm = no
; then
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
18751 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
18752 if ${gl_cv_func_frexp_in_libm+:} false
; then :
18753 $as_echo_n "(cached) " >&6
18758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18765 int e; return frexp (x, &e) > 0;
18770 if ac_fn_c_try_link
"$LINENO"; then :
18771 gl_cv_func_frexp_in_libm
=yes
18773 gl_cv_func_frexp_in_libm
=no
18775 rm -f core conftest.err conftest.
$ac_objext \
18776 conftest
$ac_exeext conftest.
$ac_ext
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
18781 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
18782 if test $gl_cv_func_frexp_in_libm = yes; then
18786 if test $gl_cv_func_frexp_no_libm = yes \
18787 ||
test $gl_cv_func_frexp_in_libm = yes; then
18789 LIBS
="$LIBS $FREXP_LIBM"
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
18800 $as_echo_n "checking whether frexp works... " >&6; }
18801 if ${gl_cv_func_frexp_works+:} false
; then :
18802 $as_echo_n "(cached) " >&6
18805 if test "$cross_compiling" = yes; then :
18807 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
18808 *) gl_cv_func_frexp_works
="guessing yes";;
18812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18817 #include <string.h>
18818 #if HAVE_DECL_ALARM
18819 # include <signal.h>
18820 # include <unistd.h>
18822 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
18823 ICC 10.0 has a bug when optimizing the expression -zero.
18824 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
18825 to PowerPC on Mac OS X 10.5. */
18826 #if defined __hpux || defined __sgi || defined __ICC
18828 compute_minus_zero (void)
18830 return -DBL_MIN * DBL_MIN;
18832 # define minus_zero compute_minus_zero ()
18834 double minus_zero = -0.0;
18842 #if HAVE_DECL_ALARM
18843 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
18844 number. Let the test fail in this case. */
18845 signal (SIGALRM, SIG_DFL);
18848 /* Test on denormalized numbers. */
18849 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
18854 double y = frexp (x, &exp);
18855 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
18856 On NetBSD: y = 0.75. Correct: y = 0.5. */
18860 /* Test on infinite numbers. */
18864 double y = frexp (x, &exp);
18868 /* Test on negative zero. */
18872 double y = frexp (x, &exp);
18873 if (memcmp (&y, &x, sizeof x))
18879 if ac_fn_c_try_run
"$LINENO"; then :
18880 gl_cv_func_frexp_works
=yes
18882 gl_cv_func_frexp_works
=no
18884 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18885 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
18891 $as_echo "$gl_cv_func_frexp_works" >&6; }
18894 case "$gl_cv_func_frexp_works" in
18895 *yes) gl_func_frexp
=yes ;;
18896 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
18901 if test $gl_func_frexp = yes; then
18903 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
18908 if test $gl_func_frexp != yes; then
18917 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
18931 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
18941 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
18943 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
18951 if test $HAVE_DECL_FREXPL = 1; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
18954 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
18955 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
18956 $as_echo_n "(cached) " >&6
18959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18966 int e; return frexpl (x, &e) > 0;
18971 if ac_fn_c_try_link
"$LINENO"; then :
18972 gl_cv_func_frexpl_no_libm
=yes
18974 gl_cv_func_frexpl_no_libm
=no
18976 rm -f core conftest.err conftest.
$ac_objext \
18977 conftest
$ac_exeext conftest.
$ac_ext
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
18981 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
18983 if test $gl_cv_func_frexpl_no_libm = no
; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
18985 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
18986 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
18987 $as_echo_n "(cached) " >&6
18992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18999 int e; return frexpl (x, &e) > 0;
19004 if ac_fn_c_try_link
"$LINENO"; then :
19005 gl_cv_func_frexpl_in_libm
=yes
19007 gl_cv_func_frexpl_in_libm
=no
19009 rm -f core conftest.err conftest.
$ac_objext \
19010 conftest
$ac_exeext conftest.
$ac_ext
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
19015 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
19016 if test $gl_cv_func_frexpl_in_libm = yes; then
19020 if test $gl_cv_func_frexpl_no_libm = yes \
19021 ||
test $gl_cv_func_frexpl_in_libm = yes; then
19023 LIBS
="$LIBS $FREXPL_LIBM"
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
19027 $as_echo_n "checking whether frexpl works... " >&6; }
19028 if ${gl_cv_func_frexpl_works+:} false
; then :
19029 $as_echo_n "(cached) " >&6
19032 if test "$cross_compiling" = yes; then :
19035 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
19036 gl_cv_func_frexpl_works
="guessing no";;
19037 *) gl_cv_func_frexpl_works
="guessing yes";;
19041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19046 /* Override the values of <float.h>, like done in float.in.h. */
19047 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
19048 # undef LDBL_MIN_EXP
19049 # define LDBL_MIN_EXP (-16381)
19051 #if defined __i386__ && defined __FreeBSD__
19052 # undef LDBL_MIN_EXP
19053 # define LDBL_MIN_EXP (-16381)
19055 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
19056 # undef LDBL_MIN_EXP
19057 # define LDBL_MIN_EXP DBL_MIN_EXP
19059 #if defined __sgi && (LDBL_MANT_DIG >= 106)
19060 # if defined __GNUC__
19061 # undef LDBL_MIN_EXP
19062 # define LDBL_MIN_EXP DBL_MIN_EXP
19069 long double frexpl (long double, int *);
19073 volatile long double x;
19074 /* Test on finite numbers that fails on AIX 5.1. */
19082 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
19083 function returns an invalid (incorrectly normalized) value: it returns
19084 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
19085 but the correct result is
19086 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
19090 long double y = frexpl (x, &exp);
19091 if (!(exp == 1 && y == 0.505L))
19094 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
19095 LDBL_MAX_EXP = 16384.
19096 In the loop end test, we test x against Infinity, rather than comparing
19097 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
19100 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
19111 /* Test on denormalized numbers. */
19114 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
19119 long double y = frexpl (x, &exp);
19120 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
19121 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
19122 if (exp != LDBL_MIN_EXP - 1)
19126 /* Test on infinite numbers. */
19130 long double y = frexpl (x, &exp);
19137 if ac_fn_c_try_run
"$LINENO"; then :
19138 gl_cv_func_frexpl_works
=yes
19140 gl_cv_func_frexpl_works
=no
19142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
19149 $as_echo "$gl_cv_func_frexpl_works" >&6; }
19152 case "$gl_cv_func_frexpl_works" in
19153 *yes) gl_func_frexpl
=yes ;;
19154 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
19159 if test $gl_func_frexpl = yes; then
19161 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
19165 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19166 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
19168 FREXPL_LIBM
="$FREXP_LIBM"
19175 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19184 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19198 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19206 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19211 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
19225 if test $ac_cv_func_fchdir = no
; then
19229 if test $HAVE_FCHDIR = 0; then
19230 case "$gl_cv_func_open_directory_works" in
19239 if test $REPLACE_FSTAT = 1; then
19248 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19263 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19279 if test $ac_cv_func_fstatat = no
; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19283 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19284 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19285 $as_echo_n "(cached) " >&6
19287 if test "$cross_compiling" = yes; then :
19289 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19290 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19298 #include <sys/stat.h>
19303 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19307 if ac_fn_c_try_run
"$LINENO"; then :
19308 gl_cv_func_fstatat_zero_flag
=yes
19310 gl_cv_func_fstatat_zero_flag
=no
19312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19319 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19321 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19323 *) REPLACE_FSTATAT
=1
19324 case $gl_cv_func_fstatat_zero_flag in
19327 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19335 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19344 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19358 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19370 gl_cv_func_getcwd_path_max
=yes
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19391 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19392 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19393 $as_echo_n "(cached) " >&6
19395 # Arrange for deletion of the temporary directory this test creates.
19396 ac_clean_files
="$ac_clean_files confdir3"
19397 if test "$cross_compiling" = yes; then :
19398 # Cross-compilation guesses:
19400 aix
*) # On AIX, it has the AIX bug.
19401 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
19402 gnu
*) # On Hurd, it is 'yes'.
19403 gl_cv_func_getcwd_path_max
=yes ;;
19404 linux
* | kfreebsd
*)
19405 # On older Linux+glibc it's 'no, but it is partly working',
19406 # on newer Linux+glibc it's 'yes'.
19407 # On Linux+musl libc, it's 'no, but it is partly working'.
19408 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19409 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
19410 *) # If we don't know, assume the worst.
19411 gl_cv_func_getcwd_path_max
=no
;;
19415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19419 #include <stdlib.h>
19421 # include <unistd.h>
19423 # include <direct.h>
19425 #include <string.h>
19426 #include <limits.h>
19427 #include <sys/stat.h>
19428 #include <sys/types.h>
19432 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19434 # include <unistd.h>
19436 #include <limits.h>
19437 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19438 # include <sys/param.h>
19440 #if !defined PATH_MAX && defined MAXPATHLEN
19441 # define PATH_MAX MAXPATHLEN
19445 # define PATH_MAX 1024
19447 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19449 # define PATH_MAX 260
19454 # define AT_FDCWD 0
19456 #ifdef ENAMETOOLONG
19457 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19459 # define is_ENAMETOOLONG(x) 0
19462 /* Use the getcwd function, not any macro. */
19465 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19469 # define S_IRWXU 0700
19472 /* The length of this name must be 8. */
19473 #define DIR_NAME "confdir3"
19474 #define DIR_NAME_LEN 8
19475 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19477 /* The length of "../". */
19478 #define DOTDOTSLASH_LEN 3
19480 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19481 #define BUF_SLOP 20
19487 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19488 at least not on a local file system. And if we were to start worrying
19489 about remote file systems, we'd have to enable the wrapper function
19490 all of the time, just to be safe. That's not worth the cost. */
19492 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19493 - DIR_NAME_SIZE - BUF_SLOP) \
19495 /* FIXME: Assuming there's a system for which this is true,
19496 this should be done in a compile test. */
19499 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19500 + DIR_NAME_SIZE + BUF_SLOP];
19501 char *cwd = getcwd (buf, PATH_MAX);
19502 size_t initial_cwd_len;
19505 size_t n_chdirs = 0;
19510 cwd_len = initial_cwd_len = strlen (cwd);
19514 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19517 cwd_len += DIR_NAME_SIZE;
19518 /* If mkdir or chdir fails, it could be that this system cannot create
19519 any file with an absolute name longer than PATH_MAX, such as cygwin.
19520 If so, leave fail as 0, because the current working directory can't
19521 be too long for getcwd if it can't even be created. For other
19522 errors, be pessimistic and consider that as a failure, too. */
19523 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19525 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19530 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19534 c = getcwd (buf, PATH_MAX);
19535 if (!c && errno == ENOENT)
19545 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19551 /* Our replacement needs to be able to stat() long ../../paths,
19552 so generate a path larger than PATH_MAX to check,
19553 avoiding the replacement if we can't stat(). */
19554 c = getcwd (buf, cwd_len + 1);
19555 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19562 if (dotdot_max <= cwd_len - initial_cwd_len)
19564 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19566 c = getcwd (buf, cwd_len + 1);
19569 if (! (errno == ERANGE || errno == ENOENT
19570 || is_ENAMETOOLONG (errno)))
19575 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19583 if (c && strlen (c) != cwd_len)
19591 /* Leaving behind such a deep directory is not polite.
19592 So clean up here, right away, even though the driving
19593 shell script would also clean up. */
19597 /* Try rmdir first, in case the chdir failed. */
19599 for (i = 0; i <= n_chdirs; i++)
19601 if (chdir ("..") < 0)
19603 if (rmdir (DIR_NAME) != 0)
19613 if ac_fn_c_try_run
"$LINENO"; then :
19614 gl_cv_func_getcwd_path_max
=yes
19617 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19618 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19619 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19620 *) gl_cv_func_getcwd_path_max
=no
;;
19623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19630 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19632 case "$gl_cv_func_getcwd_null" in
19650 for ac_func
in getpagesize
19652 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19653 if test "x$ac_cv_func_getpagesize" = xyes
; then :
19654 cat >>confdefs.h
<<_ACEOF
19655 #define HAVE_GETPAGESIZE 1
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
19662 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
19663 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
19664 $as_echo_n "(cached) " >&6
19666 # Remove any remnants of a previous test.
19667 rm -rf confdir-14B---
19668 # Arrange for deletion of the temporary directory this test creates.
19669 ac_clean_files
="$ac_clean_files confdir-14B---"
19670 if test "$cross_compiling" = yes; then :
19671 gl_cv_func_getcwd_abort_bug
=yes
19673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19677 #include <stdlib.h>
19679 # include <unistd.h>
19680 #else /* on Windows with MSVC */
19681 # include <direct.h>
19683 #include <string.h>
19684 #include <sys/stat.h>
19687 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19689 # include <unistd.h>
19691 #include <limits.h>
19692 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19693 # include <sys/param.h>
19695 #if !defined PATH_MAX && defined MAXPATHLEN
19696 # define PATH_MAX MAXPATHLEN
19700 # define PATH_MAX 1024
19702 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19704 # define PATH_MAX 260
19708 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19712 # define S_IRWXU 0700
19715 /* FIXME: skip the run-test altogether on systems without getpagesize. */
19716 #if ! HAVE_GETPAGESIZE
19717 # define getpagesize() 0
19720 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
19721 the 16kB pagesize on ia64 linux. Those conditions make the code below
19722 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
19723 #define TARGET_LEN (5 * 1024)
19729 size_t initial_cwd_len;
19732 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
19733 this relatively expensive and invasive test if that's not true. */
19735 int bug_possible = PATH_MAX < getpagesize ();
19737 int bug_possible = 0;
19739 if (! bug_possible)
19742 cwd = getcwd (NULL, 0);
19746 initial_cwd_len = strlen (cwd);
19751 static char const dir_name[] = "confdir-14B---";
19752 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
19753 / sizeof dir_name);
19755 for (d = 0; d < desired_depth; d++)
19757 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
19759 if (! (errno == ERANGE || errno == ENAMETOOLONG
19760 || errno == ENOENT))
19761 fail = 3; /* Unable to construct deep hierarchy. */
19766 /* If libc has the bug in question, this invocation of getcwd
19767 results in a failed assertion. */
19768 cwd = getcwd (NULL, 0);
19770 fail = 4; /* getcwd didn't assert, but it failed for a long name
19771 where the answer could have been learned. */
19774 /* Call rmdir first, in case the above chdir failed. */
19778 if (chdir ("..") < 0)
19791 if ac_fn_c_try_run
"$LINENO"; then :
19792 gl_cv_func_getcwd_abort_bug
=no
19795 if test $ret -ge 128 ||
test $ret = 4; then
19796 gl_cv_func_getcwd_abort_bug
=yes
19798 gl_cv_func_getcwd_abort_bug
=no
19801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
19808 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
19809 if test $gl_cv_func_getcwd_abort_bug = yes; then :
19817 case "$gl_cv_func_getcwd_path_max" in
19818 "no"|
"no, it has the AIX bug") ;;
19821 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
19825 case "$gl_cv_func_getcwd_path_max" in
19826 "no, but it is partly working")
19828 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
19831 "yes, but with shorter paths")
19833 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
19838 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
19839 ||
test $gl_cv_func_getcwd_posix_signature != yes \
19840 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
19841 ||
test $gl_abort_bug = yes; then
19845 if test $REPLACE_GETCWD = 1; then
19854 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
19864 cat >>confdefs.h
<<_ACEOF
19865 #define GNULIB_GETCWD 1
19880 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19889 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
19896 if test $REPLACE_GETCWD = 1; then
19905 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
19919 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19940 if test $ac_cv_func_getdtablesize = yes &&
19941 test $ac_cv_have_decl_getdtablesize = yes; then
19942 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
19943 # up to an unchangeable hard limit; all other platforms correctly
19944 # require setrlimit before getdtablesize() can report a larger value.
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
19946 $as_echo_n "checking whether getdtablesize works... " >&6; }
19947 if ${gl_cv_func_getdtablesize_works+:} false
; then :
19948 $as_echo_n "(cached) " >&6
19950 if test "$cross_compiling" = yes; then :
19952 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
19953 gl_cv_func_getdtablesize_works
="guessing no" ;;
19954 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
19957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19960 #include <unistd.h>
19964 int size = getdtablesize();
19965 if (dup2 (0, getdtablesize()) != -1)
19967 if (size != getdtablesize())
19974 if ac_fn_c_try_run
"$LINENO"; then :
19975 gl_cv_func_getdtablesize_works
=yes
19977 gl_cv_func_getdtablesize_works
=no
19979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
19986 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
19987 case "$gl_cv_func_getdtablesize_works" in
19989 *) REPLACE_GETDTABLESIZE
=1 ;;
19992 HAVE_GETDTABLESIZE
=0
19995 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20004 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20013 GNULIB_GETDTABLESIZE
=1
20019 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20035 if test $ac_cv_have_decl_getlogin_r = no
; then
20036 HAVE_DECL_GETLOGIN_R
=0
20046 if test $ac_cv_func_getlogin_r = no
; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20052 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20053 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20054 $as_echo_n "(cached) " >&6
20058 # Guess no on OSF/1.
20059 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20060 # Guess yes otherwise.
20061 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20063 if test "$cross_compiling" = yes; then :
20066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20069 #include <stddef.h>
20070 #include <unistd.h>
20071 #if !HAVE_DECL_GETLOGIN_R
20073 # ifdef __cplusplus
20076 int getlogin_r (char *, size_t);
20084 if (getlogin_r (buf, 0) == 0)
20086 if (getlogin_r (buf, 1) == 0)
20091 if ac_fn_c_try_run
"$LINENO"; then :
20092 gl_cv_func_getlogin_r_works
=yes
20095 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
20099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20106 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20107 case "$gl_cv_func_getlogin_r_works" in
20109 *) REPLACE_GETLOGIN_R
=1 ;;
20113 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20122 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20139 GNULIB_GETLOGIN_R
=1
20145 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20162 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20164 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20170 cat >>confdefs.h
<<_ACEOF
20171 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20173 if test $ac_have_decl = 1; then :
20177 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20179 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20185 cat >>confdefs.h
<<_ACEOF
20186 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20188 if test $ac_have_decl = 1; then :
20192 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20194 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20200 cat >>confdefs.h
<<_ACEOF
20201 #define HAVE_DECL___ARGV $ac_have_decl
20203 if test $ac_have_decl = 1; then :
20208 # Incur the cost of this test only if none of the above worked.
20209 if test $ac_found = 0; then
20210 # On OpenBSD 5.1, using the global __progname variable appears to be
20211 # the only way to implement getprogname.
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20213 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20214 if ${gl_cv_var___progname+:} false
; then :
20215 $as_echo_n "(cached) " >&6
20218 gl_cv_var___progname
=
20219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20221 extern char *__progname;
20225 return *__progname;
20231 if ac_fn_c_try_link
"$LINENO"; then :
20232 gl_cv_var___progname
=yes
20235 rm -f core conftest.err conftest.
$ac_objext \
20236 conftest
$ac_exeext conftest.
$ac_ext
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20241 $as_echo "$gl_cv_var___progname" >&6; }
20242 if test "$gl_cv_var___progname" = yes; then
20244 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20263 gl_gettimeofday_timezone
=void
20264 if test $ac_cv_func_gettimeofday != yes; then
20265 HAVE_GETTIMEOFDAY
=0
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20271 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20272 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20273 $as_echo_n "(cached) " >&6
20275 if test "$cross_compiling" = yes; then :
20276 # When cross-compiling:
20278 # Guess all is fine on glibc systems.
20279 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20280 # If we don't know, assume the worst.
20281 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20286 /* end confdefs.h. */
20287 #include <string.h>
20288 #include <sys/time.h>
20290 #include <stdlib.h>
20298 struct tm saved_lt;
20300 lt = localtime (&t);
20302 gettimeofday (&tv, NULL);
20303 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20309 if ac_fn_c_try_run
"$LINENO"; then :
20310 gl_cv_func_gettimeofday_clobber
=no
20312 gl_cv_func_gettimeofday_clobber
=yes
20314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20320 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20322 case "$gl_cv_func_gettimeofday_clobber" in
20324 REPLACE_GETTIMEOFDAY
=1
20327 REPLACE_LOCALTIME
=1
20330 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20336 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20337 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20338 $as_echo_n "(cached) " >&6
20340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20342 #include <sys/time.h>
20344 int gettimeofday (struct timeval *restrict, void *restrict);
20349 /* glibc uses struct timezone * rather than the POSIX void *
20350 if _GNU_SOURCE is defined. However, since the only portable
20351 use of gettimeofday uses NULL as the second parameter, and
20352 since the glibc definition is actually more typesafe, it is
20353 not worth wrapping this to get a compliant signature. */
20354 int (*f) (struct timeval *restrict, void *restrict)
20357 return !(x | c.tv_sec | c.tv_usec);
20363 if ac_fn_c_try_compile
"$LINENO"; then :
20364 gl_cv_func_gettimeofday_posix_signature
=yes
20366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368 #include <sys/time.h>
20369 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20379 if ac_fn_c_try_compile
"$LINENO"; then :
20380 gl_cv_func_gettimeofday_posix_signature
=almost
20382 gl_cv_func_gettimeofday_posix_signature
=no
20384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20389 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20390 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20391 gl_gettimeofday_timezone
='struct timezone'
20392 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20393 REPLACE_GETTIMEOFDAY
=1
20395 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20396 REPLACE_GETTIMEOFDAY
=1
20401 cat >>confdefs.h
<<_ACEOF
20402 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20406 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20415 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20418 for ac_header
in sys
/timeb.h
20420 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20421 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
20422 cat >>confdefs.h
<<_ACEOF
20423 #define HAVE_SYS_TIMEB_H 1
20430 for ac_func
in _ftime
20432 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
20433 if test "x$ac_cv_func__ftime" = xyes
; then :
20434 cat >>confdefs.h
<<_ACEOF
20435 #define HAVE__FTIME 1
20448 GNULIB_GETTIMEOFDAY
=1
20454 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20459 for ac_header
in glob.h
20461 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
20462 if test "x$ac_cv_header_glob_h" = xyes
; then :
20463 cat >>confdefs.h
<<_ACEOF
20464 #define HAVE_GLOB_H 1
20474 if test -z "$GLOB_H"; then
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
20476 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
20477 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
20478 $as_echo_n "(cached) " >&6
20480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h. */
20482 #include <gnu-versions.h>
20483 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
20485 if ac_fn_c_try_compile
"$LINENO"; then :
20486 gl_cv_gnu_glob_interface_version_1
=yes
20488 gl_cv_gnu_glob_interface_version_1
=no
20490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
20493 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
20495 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
20500 if test -z "$GLOB_H"; then
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20502 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20503 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20504 $as_echo_n "(cached) " >&6
20506 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20507 gl_cv_glob_lists_symlinks
=maybe
20509 # If we can't make a symlink, then we cannot test this issue. Be
20510 # pessimistic about this.
20511 gl_cv_glob_lists_symlinks
=no
20514 if test $gl_cv_glob_lists_symlinks = maybe
; then
20515 if test "$cross_compiling" = yes; then :
20516 gl_cv_glob_lists_symlinks
=no
20518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20521 #include <stddef.h>
20527 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
20532 if ac_fn_c_try_run
"$LINENO"; then :
20533 gl_cv_glob_lists_symlinks
=yes
20535 gl_cv_glob_lists_symlinks
=no
20537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20544 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20546 if test $gl_cv_glob_lists_symlinks = no
; then
20551 rm -f conf$$
-globtest
20554 if test -n "$GLOB_H"; then
20555 GL_GENERATE_GLOB_H_TRUE
=
20556 GL_GENERATE_GLOB_H_FALSE
='#'
20558 GL_GENERATE_GLOB_H_TRUE
='#'
20559 GL_GENERATE_GLOB_H_FALSE
=
20563 if test -n "$GLOB_H"; then
20572 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
20584 if test $ac_cv_header_sys_cdefs_h = yes; then
20626 if test $ac_cv_header_sys_socket_h != yes; then
20627 for ac_header
in winsock2.h
20629 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20630 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
20631 cat >>confdefs.h
<<_ACEOF
20632 #define HAVE_WINSOCK2_H 1
20640 if test "$ac_cv_header_winsock2_h" = yes; then
20642 UNISTD_H_HAVE_WINSOCK2_H
=1
20643 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20649 if test $HAVE_WINSOCK2_H = 1; then
20650 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
20652 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20658 cat >>confdefs.h
<<_ACEOF
20659 #define HAVE_DECL_INET_NTOP $ac_have_decl
20662 if test $ac_cv_have_decl_inet_ntop = yes; then
20663 REPLACE_INET_NTOP
=1
20664 INET_NTOP_LIB
="-lws2_32"
20666 HAVE_DECL_INET_NTOP
=0
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
20672 $as_echo_n "checking for library containing inet_ntop... " >&6; }
20673 if ${ac_cv_search_inet_ntop+:} false
; then :
20674 $as_echo_n "(cached) " >&6
20676 ac_func_search_save_LIBS
=$LIBS
20677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h. */
20680 /* Override any GCC internal prototype to avoid an error.
20681 Use char because int might match the return type of a GCC
20682 builtin and then its argument prototype would still apply. */
20690 return inet_ntop ();
20695 for ac_lib
in '' nsl resolv
; do
20696 if test -z "$ac_lib"; then
20697 ac_res
="none required"
20700 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20702 if ac_fn_c_try_link
"$LINENO"; then :
20703 ac_cv_search_inet_ntop
=$ac_res
20705 rm -f core conftest.err conftest.
$ac_objext \
20707 if ${ac_cv_search_inet_ntop+:} false
; then :
20711 if ${ac_cv_search_inet_ntop+:} false
; then :
20714 ac_cv_search_inet_ntop
=no
20716 rm conftest.
$ac_ext
20717 LIBS
=$ac_func_search_save_LIBS
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
20720 $as_echo "$ac_cv_search_inet_ntop" >&6; }
20721 ac_res
=$ac_cv_search_inet_ntop
20722 if test "$ac_res" != no
; then :
20723 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20726 for ac_func
in inet_ntop
20728 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20729 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
20730 cat >>confdefs.h
<<_ACEOF
20731 #define HAVE_INET_NTOP 1
20737 if test $ac_cv_func_inet_ntop = no
; then
20745 if test "$ac_cv_search_inet_ntop" != "no" \
20746 && test "$ac_cv_search_inet_ntop" != "none required"; then
20747 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
20757 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
20759 # include <netdb.h>
20763 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20769 cat >>confdefs.h
<<_ACEOF
20770 #define HAVE_DECL_INET_NTOP $ac_have_decl
20773 if test $ac_cv_have_decl_inet_ntop = no
; then
20774 HAVE_DECL_INET_NTOP
=0
20779 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
20788 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
20810 if test -n "$STDINT_H"; then
20811 PRIPTR_PREFIX
='"l"'
20813 for glpfx
in '' l ll I64
; do
20815 '') gltype1
='int';;
20816 l
) gltype1
='long int';;
20817 ll
) gltype1
='long long int';;
20818 I64
) gltype1
='__int64';;
20820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20822 #include <stdint.h>
20823 extern intptr_t foo;
20824 extern $gltype1 foo;
20833 if ac_fn_c_try_compile
"$LINENO"; then :
20834 PRIPTR_PREFIX
='"'$glpfx'"'
20836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20837 test -n "$PRIPTR_PREFIX" && break
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
20844 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
20845 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
20846 $as_echo_n "(cached) " >&6
20848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h. */
20850 /* Work also in C++ mode. */
20851 #define __STDC_LIMIT_MACROS 1
20853 /* Work if build is not clean. */
20854 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20856 #include <limits.h>
20858 #include <stdint.h>
20861 #if defined INT32_MAX && defined INTMAX_MAX
20862 #define CONDITION (INT32_MAX < INTMAX_MAX)
20863 #elif HAVE_LONG_LONG_INT
20864 #define CONDITION (sizeof (int) < sizeof (long long int))
20866 #define CONDITION 0
20868 int test[CONDITION ? 1 : -1];
20877 if ac_fn_c_try_compile
"$LINENO"; then :
20878 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
20880 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
20882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
20885 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
20886 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
20887 INT32_MAX_LT_INTMAX_MAX
=1;
20889 INT32_MAX_LT_INTMAX_MAX
=0;
20893 if test $APPLE_UNIVERSAL_BUILD = 0; then
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
20896 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
20897 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
20898 $as_echo_n "(cached) " >&6
20900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20902 /* Work also in C++ mode. */
20903 #define __STDC_LIMIT_MACROS 1
20905 /* Work if build is not clean. */
20906 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20908 #include <limits.h>
20910 #include <stdint.h>
20913 #if defined INT64_MAX
20914 #define CONDITION (INT64_MAX == LONG_MAX)
20915 #elif HAVE_LONG_LONG_INT
20916 #define CONDITION (sizeof (long long int) == sizeof (long int))
20918 #define CONDITION 0
20920 int test[CONDITION ? 1 : -1];
20929 if ac_fn_c_try_compile
"$LINENO"; then :
20930 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
20932 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
20934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
20937 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
20938 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
20939 INT64_MAX_EQ_LONG_MAX
=1;
20941 INT64_MAX_EQ_LONG_MAX
=0;
20946 INT64_MAX_EQ_LONG_MAX
=-1
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
20950 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
20951 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
20952 $as_echo_n "(cached) " >&6
20954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956 /* Work also in C++ mode. */
20957 #define __STDC_LIMIT_MACROS 1
20959 /* Work if build is not clean. */
20960 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20962 #include <limits.h>
20964 #include <stdint.h>
20967 #if defined UINT32_MAX && defined UINTMAX_MAX
20968 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
20969 #elif HAVE_LONG_LONG_INT
20970 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
20972 #define CONDITION 0
20974 int test[CONDITION ? 1 : -1];
20983 if ac_fn_c_try_compile
"$LINENO"; then :
20984 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
20986 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
20988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
20991 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
20992 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
20993 UINT32_MAX_LT_UINTMAX_MAX
=1;
20995 UINT32_MAX_LT_UINTMAX_MAX
=0;
20999 if test $APPLE_UNIVERSAL_BUILD = 0; then
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
21002 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
21003 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
21004 $as_echo_n "(cached) " >&6
21006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21008 /* Work also in C++ mode. */
21009 #define __STDC_LIMIT_MACROS 1
21011 /* Work if build is not clean. */
21012 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21014 #include <limits.h>
21016 #include <stdint.h>
21019 #if defined UINT64_MAX
21020 #define CONDITION (UINT64_MAX == ULONG_MAX)
21021 #elif HAVE_LONG_LONG_INT
21022 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21024 #define CONDITION 0
21026 int test[CONDITION ? 1 : -1];
21035 if ac_fn_c_try_compile
"$LINENO"; then :
21036 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21038 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21043 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21044 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21045 UINT64_MAX_EQ_ULONG_MAX
=1;
21047 UINT64_MAX_EQ_ULONG_MAX
=0;
21052 UINT64_MAX_EQ_ULONG_MAX
=-1
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21060 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21061 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21062 $as_echo_n "(cached) " >&6
21065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h. */
21070 # define isnand(x) __builtin_isnan ((double)(x))
21073 # define isnand(x) isnan ((double)(x))
21084 if ac_fn_c_try_link
"$LINENO"; then :
21085 gl_cv_func_isnand_no_libm
=yes
21087 gl_cv_func_isnand_no_libm
=no
21089 rm -f core conftest.err conftest.
$ac_objext \
21090 conftest
$ac_exeext conftest.
$ac_ext
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21094 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21096 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21097 if test $gl_cv_func_isnand_no_libm = yes; then
21099 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21103 if test $gl_func_isnand_no_libm != yes; then
21112 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21121 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21122 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21123 $as_echo_n "(cached) " >&6
21126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21131 # define isnanl(x) __builtin_isnanl ((long double)(x))
21132 #elif defined isnan
21134 # define isnanl(x) isnan ((long double)(x))
21145 if ac_fn_c_try_link
"$LINENO"; then :
21146 gl_cv_func_isnanl_no_libm
=yes
21148 gl_cv_func_isnanl_no_libm
=no
21150 rm -f core conftest.err conftest.
$ac_objext \
21151 conftest
$ac_exeext conftest.
$ac_ext
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21155 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21157 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21158 if test $gl_func_isnanl_no_libm = yes; then
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21164 $as_echo_n "checking whether isnanl works... " >&6; }
21165 if ${gl_cv_func_isnanl_works+:} false
; then :
21166 $as_echo_n "(cached) " >&6
21169 if test "$cross_compiling" = yes; then :
21170 gl_cv_func_isnanl_works
="guessing yes"
21172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h. */
21176 #include <limits.h>
21180 # define isnanl(x) __builtin_isnanl ((long double)(x))
21181 #elif defined isnan
21183 # define isnanl(x) isnan ((long double)(x))
21186 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21187 typedef union { unsigned int word[NWORDS]; long double value; }
21188 memory_long_double;
21189 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21190 runtime type conversion. */
21192 static long double NaNl ()
21195 return zero / zero;
21198 # define NaNl() (0.0L / 0.0L)
21204 if (!isnanl (NaNl ()))
21208 memory_long_double m;
21211 /* The isnanl function should be immune against changes in the sign bit and
21212 in the mantissa bits. The xor operation twiddles a bit that can only be
21213 a sign bit or a mantissa bit (since the exponent never extends to
21216 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21217 for (i = 0; i < NWORDS; i++)
21219 if (!isnanl (m.value))
21223 #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
21224 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21225 of 'unsigned int' words. */
21226 # ifdef WORDS_BIGENDIAN
21227 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21228 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21229 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21230 (unsigned int) (mantlo) << 16 \
21233 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21234 { mantlo, manthi, exponent }
21237 static memory_long_double x =
21238 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21239 if (!isnanl (x.value))
21243 /* Signalling NaN. */
21244 static memory_long_double x =
21245 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21246 if (!isnanl (x.value))
21249 /* isnanl should return something even for noncanonical values. */
21250 { /* Pseudo-NaN. */
21251 static memory_long_double x =
21252 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21253 if (isnanl (x.value) && !isnanl (x.value))
21256 { /* Pseudo-Infinity. */
21257 static memory_long_double x =
21258 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21259 if (isnanl (x.value) && !isnanl (x.value))
21262 { /* Pseudo-Zero. */
21263 static memory_long_double x =
21264 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21265 if (isnanl (x.value) && !isnanl (x.value))
21268 { /* Unnormalized number. */
21269 static memory_long_double x =
21270 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21271 if (isnanl (x.value) && !isnanl (x.value))
21274 { /* Pseudo-Denormal. */
21275 static memory_long_double x =
21276 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21277 if (isnanl (x.value) && !isnanl (x.value))
21285 if ac_fn_c_try_run
"$LINENO"; then :
21286 gl_cv_func_isnanl_works
=yes
21288 gl_cv_func_isnanl_works
=no
21290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21297 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21299 case "$gl_cv_func_isnanl_works" in
21301 *) gl_func_isnanl_no_libm
=no
;;
21304 if test $gl_func_isnanl_no_libm = yes; then
21306 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21310 if test $gl_func_isnanl_no_libm != yes; then
21319 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21325 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21326 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21327 $as_echo_n "(cached) " >&6
21330 if test "$cross_compiling" = yes; then :
21332 gl_cv_cc_long_double_expbit0
="unknown"
21335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21336 /* end confdefs.h. */
21339 #include <stddef.h>
21341 #include <string.h>
21343 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21344 typedef union { long double value; unsigned int word[NWORDS]; }
21345 memory_long_double;
21346 static unsigned int ored_words[NWORDS];
21347 static unsigned int anded_words[NWORDS];
21348 static void add_to_ored_words (long double x)
21350 memory_long_double m;
21352 /* Clear it first, in case
21353 sizeof (long double) < sizeof (memory_long_double). */
21354 memset (&m, 0, sizeof (memory_long_double));
21356 for (i = 0; i < NWORDS; i++)
21358 ored_words[i] |= m.word[i];
21359 anded_words[i] &= m.word[i];
21365 FILE *fp = fopen ("conftest.out", "w");
21368 for (j = 0; j < NWORDS; j++)
21369 anded_words[j] = ~ (unsigned int) 0;
21370 add_to_ored_words (0.25L);
21371 add_to_ored_words (0.5L);
21372 add_to_ored_words (1.0L);
21373 add_to_ored_words (2.0L);
21374 add_to_ored_words (4.0L);
21375 /* Remove bits that are common (e.g. if representation of the first mantissa
21376 bit is explicit). */
21377 for (j = 0; j < NWORDS; j++)
21378 ored_words[j] &= ~anded_words[j];
21379 /* Now find the nonzero word. */
21380 for (j = 0; j < NWORDS; j++)
21381 if (ored_words[j] != 0)
21386 for (i = j + 1; i < NWORDS; i++)
21387 if (ored_words[i] != 0)
21389 fprintf (fp, "unknown");
21390 return (fclose (fp) != 0);
21393 if ((ored_words[j] >> i) & 1)
21395 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21396 return (fclose (fp) != 0);
21399 fprintf (fp, "unknown");
21400 return (fclose (fp) != 0);
21404 if ac_fn_c_try_run
"$LINENO"; then :
21405 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21407 gl_cv_cc_long_double_expbit0
="unknown"
21409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21417 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21418 case "$gl_cv_cc_long_double_expbit0" in
21420 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21421 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21423 cat >>confdefs.h
<<_ACEOF
21424 #define LDBL_EXPBIT0_WORD $word
21428 cat >>confdefs.h
<<_ACEOF
21429 #define LDBL_EXPBIT0_BIT $bit
21454 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
21458 if test "$gl_threads_api" = posix
; then
21459 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21460 # pthread_rwlock_* functions.
21461 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21463 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
21465 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21469 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21471 /* end confdefs.h. */
21473 #include <pthread.h>
21478 #if __FreeBSD__ == 4
21479 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21480 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21481 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21482 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21484 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21492 if ac_fn_c_try_compile
"$LINENO"; then :
21494 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21503 cat >>confdefs.h
<<_ACEOF
21504 #define GNULIB_LOCK 1
21517 if test $ac_cv_func_lstat = yes; then
21519 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21528 if test $REPLACE_LSTAT = 1; then
21537 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21552 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
21559 if test $gl_cv_func_malloc_posix = yes; then
21561 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21567 if test $REPLACE_MALLOC = 1; then
21576 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
21584 GNULIB_MALLOC_POSIX
=1
21590 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21615 if test $gl_cv_have_include_next = yes; then
21616 gl_cv_next_math_h
='<'math.h
'>'
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
21619 $as_echo_n "checking absolute name of <math.h>... " >&6; }
21620 if ${gl_cv_next_math_h+:} false
; then :
21621 $as_echo_n "(cached) " >&6
21624 if test $ac_cv_header_math_h = yes; then
21629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21634 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21635 *) gl_absname_cpp
="$ac_cpp" ;;
21640 gl_dirsep_regex
='[/\\]'
21643 gl_dirsep_regex
='\/'
21646 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21647 gl_header_literal_regex
=`echo 'math.h' \
21648 | sed -e "$gl_make_literal_regex_sed"`
21649 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21650 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21656 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21657 sed -n "$gl_absolute_header_sed"`
21659 gl_header
=$gl_cv_absolute_math_h
21660 gl_cv_next_math_h
='"'$gl_header'"'
21662 gl_cv_next_math_h
='<'math.h
'>'
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
21668 $as_echo "$gl_cv_next_math_h" >&6; }
21670 NEXT_MATH_H
=$gl_cv_next_math_h
21672 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21674 gl_next_as_first_directive
='<'math.h
'>'
21676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21677 gl_next_as_first_directive
=$gl_cv_next_math_h
21679 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
21686 $as_echo_n "checking whether NAN macro works... " >&6; }
21687 if ${gl_cv_header_math_nan_works+:} false
; then :
21688 $as_echo_n "(cached) " >&6
21690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21691 /* end confdefs.h. */
21696 /* Solaris 10 has a broken definition of NAN. Other platforms
21697 fail to provide NAN, or provide it only in C99 mode; this
21698 test only needs to fail when NAN is provided but wrong. */
21708 if ac_fn_c_try_compile
"$LINENO"; then :
21709 gl_cv_header_math_nan_works
=yes
21711 gl_cv_header_math_nan_works
=no
21713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
21716 $as_echo "$gl_cv_header_math_nan_works" >&6; }
21717 if test $gl_cv_header_math_nan_works = no
; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
21721 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
21722 if ${gl_cv_header_math_huge_val_works+:} false
; then :
21723 $as_echo_n "(cached) " >&6
21725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21731 /* Solaris 10 has a broken definition of HUGE_VAL. */
21732 double d = HUGE_VAL;
21738 if ac_fn_c_try_compile
"$LINENO"; then :
21739 gl_cv_header_math_huge_val_works
=yes
21741 gl_cv_header_math_huge_val_works
=no
21743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
21746 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
21747 if test $gl_cv_header_math_huge_val_works = no
; then
21752 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
21753 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21755 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21756 if eval \
${$as_gl_Symbol+:} false
; then :
21757 $as_echo_n "(cached) " >&6
21759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21771 if ac_fn_c_try_compile
"$LINENO"; then :
21772 eval "$as_gl_Symbol=yes"
21774 eval "$as_gl_Symbol=no"
21776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21778 eval ac_res
=\$
$as_gl_Symbol
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21780 $as_echo "$ac_res" >&6; }
21781 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21782 cat >>confdefs.h
<<_ACEOF
21783 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21786 eval ac_cv_have_decl_
$gl_func=yes
21813 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21818 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21819 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21820 $as_echo_n "(cached) " >&6
21824 # Guess no on AIX and OSF/1.
21825 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21826 # Guess yes otherwise.
21827 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21829 if test $LOCALE_JA != none
; then
21830 if test "$cross_compiling" = yes; then :
21833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21834 /* end confdefs.h. */
21836 #include <locale.h>
21837 #include <string.h>
21838 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21840 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21841 included before <wchar.h>. */
21842 #include <stddef.h>
21848 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21850 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21854 memset (&state, '\0', sizeof (mbstate_t));
21855 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21856 if (mbsinit (&state))
21862 if ac_fn_c_try_run
"$LINENO"; then :
21863 gl_cv_func_mbrtowc_incomplete_state
=yes
21865 gl_cv_func_mbrtowc_incomplete_state
=no
21867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21875 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21881 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21882 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21883 $as_echo_n "(cached) " >&6
21887 # Guess no on Solaris 8.
21888 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21889 # Guess yes otherwise.
21890 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21892 if test $LOCALE_ZH_CN != none
; then
21893 if test "$cross_compiling" = yes; then :
21896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21899 #include <locale.h>
21900 #include <stdlib.h>
21901 #include <string.h>
21902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21904 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21905 included before <wchar.h>. */
21906 #include <stddef.h>
21912 /* This fails on Solaris 8:
21913 mbrtowc returns 2, and sets wc to 0x00F0.
21914 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21915 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21917 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21921 memset (&state, '\0', sizeof (mbstate_t));
21922 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21923 && mbtowc (&wc, input + 3, 6) == 4)
21929 if ac_fn_c_try_run
"$LINENO"; then :
21930 gl_cv_func_mbrtowc_sanitycheck
=yes
21932 gl_cv_func_mbrtowc_sanitycheck
=no
21934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21942 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21944 REPLACE_MBSTATE_T
=0
21945 case "$gl_cv_func_mbrtowc_incomplete_state" in
21947 *) REPLACE_MBSTATE_T
=1 ;;
21949 case "$gl_cv_func_mbrtowc_sanitycheck" in
21951 *) REPLACE_MBSTATE_T
=1 ;;
21954 REPLACE_MBSTATE_T
=1
21965 if test $ac_cv_func_mbrtowc = no
; then
21967 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
21968 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21970 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21971 included before <wchar.h>. */
21972 #include <stddef.h>
21978 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
21984 cat >>confdefs.h
<<_ACEOF
21985 #define HAVE_DECL_MBRTOWC $ac_have_decl
21988 if test $ac_cv_have_decl_mbrtowc = yes; then
21992 if test $REPLACE_MBSTATE_T = 1; then
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
21999 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
22000 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
22001 $as_echo_n "(cached) " >&6
22005 # Guess no on Solaris.
22006 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
22007 # Guess yes otherwise.
22008 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22010 if test $LOCALE_FR_UTF8 != none
; then
22011 if test "$cross_compiling" = yes; then :
22014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22017 #include <locale.h>
22018 #include <stdlib.h>
22019 #include <string.h>
22020 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22022 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22023 included before <wchar.h>. */
22024 #include <stddef.h>
22032 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22034 char input[] = "\303\237er";
22039 memset (&state, '\0', sizeof (mbstate_t));
22040 wc = (wchar_t) 0xBADFACE;
22041 ret = mbrtowc (&wc, input, 5, &state);
22044 if (!mbsinit (&state))
22047 memset (&state, '\0', sizeof (mbstate_t));
22048 ret = mbrtowc (NULL, input, 5, &state);
22049 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22051 if (!mbsinit (&state))
22057 if ac_fn_c_try_run
"$LINENO"; then :
22058 gl_cv_func_mbrtowc_null_arg1
=yes
22060 gl_cv_func_mbrtowc_null_arg1
=no
22062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22070 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22076 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22077 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22078 $as_echo_n "(cached) " >&6
22082 # Guess no on OSF/1.
22083 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22084 # Guess yes otherwise.
22085 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22087 if test $LOCALE_FR_UTF8 != none
; then
22088 if test "$cross_compiling" = yes; then :
22091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22094 #include <locale.h>
22095 #include <string.h>
22096 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22098 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22099 included before <wchar.h>. */
22100 #include <stddef.h>
22106 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22112 memset (&state, '\0', sizeof (mbstate_t));
22113 wc = (wchar_t) 0xBADFACE;
22114 mbrtowc (&wc, NULL, 5, &state);
22115 /* Check that wc was not modified. */
22116 if (wc != (wchar_t) 0xBADFACE)
22122 if ac_fn_c_try_run
"$LINENO"; then :
22123 gl_cv_func_mbrtowc_null_arg2
=yes
22125 gl_cv_func_mbrtowc_null_arg2
=no
22127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
22135 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
22143 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
22144 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
22145 $as_echo_n "(cached) " >&6
22149 # Guess no on HP-UX, Solaris, native Windows.
22150 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
22151 # Guess yes otherwise.
22152 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
22154 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
22155 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
22156 if test "$cross_compiling" = yes; then :
22159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22162 #include <locale.h>
22163 #include <string.h>
22164 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22166 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22167 included before <wchar.h>. */
22168 #include <stddef.h>
22175 int found_some_locale = 0;
22176 /* This fails on Solaris. */
22177 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22179 char input[] = "B\303\274\303\237er"; /* "Büßer" */
22183 memset (&state, '\0', sizeof (mbstate_t));
22184 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22187 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
22190 found_some_locale = 1;
22192 /* This fails on HP-UX 11.11. */
22193 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22195 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22199 memset (&state, '\0', sizeof (mbstate_t));
22200 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22203 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22206 found_some_locale = 1;
22208 /* This fails on native Windows. */
22209 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22211 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
22215 memset (&state, '\0', sizeof (mbstate_t));
22216 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22219 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22222 found_some_locale = 1;
22224 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22226 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
22230 memset (&state, '\0', sizeof (mbstate_t));
22231 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22234 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22237 found_some_locale = 1;
22239 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22241 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
22245 memset (&state, '\0', sizeof (mbstate_t));
22246 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22249 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22252 found_some_locale = 1;
22254 return (found_some_locale ? result : 77);
22257 if ac_fn_c_try_run
"$LINENO"; then :
22258 gl_cv_func_mbrtowc_retval
=yes
22260 if test $?
!= 77; then
22261 gl_cv_func_mbrtowc_retval
=no
22265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22266 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22273 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22279 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22280 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
22281 $as_echo_n "(cached) " >&6
22285 # Guess no on Solaris 8 and 9.
22286 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
22287 # Guess yes otherwise.
22288 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
22290 if test $LOCALE_ZH_CN != none
; then
22291 if test "$cross_compiling" = yes; then :
22294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22295 /* end confdefs.h. */
22297 #include <locale.h>
22298 #include <string.h>
22299 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22301 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22302 included before <wchar.h>. */
22303 #include <stddef.h>
22309 /* This fails on Solaris 8 and 9. */
22310 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22315 memset (&state, '\0', sizeof (mbstate_t));
22316 if (mbrtowc (&wc, "", 1, &state) != 0)
22322 if ac_fn_c_try_run
"$LINENO"; then :
22323 gl_cv_func_mbrtowc_nul_retval
=yes
22325 gl_cv_func_mbrtowc_nul_retval
=no
22327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22335 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
22340 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
22341 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
22342 $as_echo_n "(cached) " >&6
22346 # Guess no on AIX and glibc systems.
22348 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
22349 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
22351 if test "$cross_compiling" = yes; then :
22354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22359 static mbstate_t mbs;
22363 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
22366 if ac_fn_c_try_run
"$LINENO"; then :
22367 gl_cv_func_mbrtowc_empty_input
=yes
22369 gl_cv_func_mbrtowc_empty_input
=no
22371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
22378 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
22382 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
22383 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
22384 $as_echo_n "(cached) " >&6
22387 gl_cv_C_locale_sans_EILSEQ
="guessing no"
22389 if test "$cross_compiling" = yes; then :
22392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22393 /* end confdefs.h. */
22394 #include <limits.h>
22395 #include <locale.h>
22403 char *locale = setlocale (LC_ALL, "C");
22406 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
22410 mbstate_t mbs = { 0, };
22411 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
22421 if ac_fn_c_try_run
"$LINENO"; then :
22422 gl_cv_C_locale_sans_EILSEQ
=yes
22424 gl_cv_C_locale_sans_EILSEQ
=no
22426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
22432 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
22434 case "$gl_cv_func_mbrtowc_null_arg1" in
22437 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
22442 case "$gl_cv_func_mbrtowc_null_arg2" in
22445 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
22450 case "$gl_cv_func_mbrtowc_retval" in
22453 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22458 case "$gl_cv_func_mbrtowc_nul_retval" in
22461 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22466 case "$gl_cv_func_mbrtowc_empty_input" in
22469 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
22474 case $gl_cv_C_locale_sans_EILSEQ in
22477 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
22485 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
22494 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
22511 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
22538 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22543 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22544 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22545 $as_echo_n "(cached) " >&6
22549 # Guess no on AIX and OSF/1.
22550 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22551 # Guess yes otherwise.
22552 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22554 if test $LOCALE_JA != none
; then
22555 if test "$cross_compiling" = yes; then :
22558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22559 /* end confdefs.h. */
22561 #include <locale.h>
22562 #include <string.h>
22563 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22565 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22566 included before <wchar.h>. */
22567 #include <stddef.h>
22573 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22575 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22579 memset (&state, '\0', sizeof (mbstate_t));
22580 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22581 if (mbsinit (&state))
22587 if ac_fn_c_try_run
"$LINENO"; then :
22588 gl_cv_func_mbrtowc_incomplete_state
=yes
22590 gl_cv_func_mbrtowc_incomplete_state
=no
22592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22600 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22606 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22607 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22608 $as_echo_n "(cached) " >&6
22612 # Guess no on Solaris 8.
22613 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22614 # Guess yes otherwise.
22615 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22617 if test $LOCALE_ZH_CN != none
; then
22618 if test "$cross_compiling" = yes; then :
22621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22622 /* end confdefs.h. */
22624 #include <locale.h>
22625 #include <stdlib.h>
22626 #include <string.h>
22627 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22629 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22630 included before <wchar.h>. */
22631 #include <stddef.h>
22637 /* This fails on Solaris 8:
22638 mbrtowc returns 2, and sets wc to 0x00F0.
22639 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22640 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22642 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22646 memset (&state, '\0', sizeof (mbstate_t));
22647 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22648 && mbtowc (&wc, input + 3, 6) == 4)
22654 if ac_fn_c_try_run
"$LINENO"; then :
22655 gl_cv_func_mbrtowc_sanitycheck
=yes
22657 gl_cv_func_mbrtowc_sanitycheck
=no
22659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22667 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22669 REPLACE_MBSTATE_T
=0
22670 case "$gl_cv_func_mbrtowc_incomplete_state" in
22672 *) REPLACE_MBSTATE_T
=1 ;;
22674 case "$gl_cv_func_mbrtowc_sanitycheck" in
22676 *) REPLACE_MBSTATE_T
=1 ;;
22679 REPLACE_MBSTATE_T
=1
22690 if test $ac_cv_func_mbsinit = no
; then
22692 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
22693 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22695 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22696 included before <wchar.h>. */
22697 #include <stddef.h>
22703 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
22709 cat >>confdefs.h
<<_ACEOF
22710 #define HAVE_DECL_MBSINIT $ac_have_decl
22713 if test $ac_cv_have_decl_mbsinit = yes; then
22717 if test $REPLACE_MBSTATE_T = 1; then
22721 mingw
*) REPLACE_MBSINIT
=1 ;;
22726 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
22735 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
22752 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
22778 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22783 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22784 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22785 $as_echo_n "(cached) " >&6
22789 # Guess no on AIX and OSF/1.
22790 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22791 # Guess yes otherwise.
22792 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22794 if test $LOCALE_JA != none
; then
22795 if test "$cross_compiling" = yes; then :
22798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22801 #include <locale.h>
22802 #include <string.h>
22803 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22805 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22806 included before <wchar.h>. */
22807 #include <stddef.h>
22813 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22815 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22819 memset (&state, '\0', sizeof (mbstate_t));
22820 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22821 if (mbsinit (&state))
22827 if ac_fn_c_try_run
"$LINENO"; then :
22828 gl_cv_func_mbrtowc_incomplete_state
=yes
22830 gl_cv_func_mbrtowc_incomplete_state
=no
22832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22840 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22846 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22847 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22848 $as_echo_n "(cached) " >&6
22852 # Guess no on Solaris 8.
22853 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22854 # Guess yes otherwise.
22855 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22857 if test $LOCALE_ZH_CN != none
; then
22858 if test "$cross_compiling" = yes; then :
22861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22864 #include <locale.h>
22865 #include <stdlib.h>
22866 #include <string.h>
22867 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22869 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22870 included before <wchar.h>. */
22871 #include <stddef.h>
22877 /* This fails on Solaris 8:
22878 mbrtowc returns 2, and sets wc to 0x00F0.
22879 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22880 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22882 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22886 memset (&state, '\0', sizeof (mbstate_t));
22887 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22888 && mbtowc (&wc, input + 3, 6) == 4)
22894 if ac_fn_c_try_run
"$LINENO"; then :
22895 gl_cv_func_mbrtowc_sanitycheck
=yes
22897 gl_cv_func_mbrtowc_sanitycheck
=no
22899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22907 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22909 REPLACE_MBSTATE_T
=0
22910 case "$gl_cv_func_mbrtowc_incomplete_state" in
22912 *) REPLACE_MBSTATE_T
=1 ;;
22914 case "$gl_cv_func_mbrtowc_sanitycheck" in
22916 *) REPLACE_MBSTATE_T
=1 ;;
22919 REPLACE_MBSTATE_T
=1
22930 if test $ac_cv_func_mbsrtowcs = no
; then
22932 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
22933 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22935 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22936 included before <wchar.h>. */
22937 #include <stddef.h>
22943 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
22949 cat >>confdefs.h
<<_ACEOF
22950 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
22953 if test $ac_cv_have_decl_mbsrtowcs = yes; then
22954 REPLACE_MBSRTOWCS
=1
22957 if test $REPLACE_MBSTATE_T = 1; then
22958 REPLACE_MBSRTOWCS
=1
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
22967 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
22968 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
22969 $as_echo_n "(cached) " >&6
22973 # Guess no on HP-UX, Solaris, mingw.
22974 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
22975 # Guess yes otherwise.
22976 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
22978 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22979 if test "$cross_compiling" = yes; then :
22982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22983 /* end confdefs.h. */
22985 #include <locale.h>
22986 #include <string.h>
22987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22989 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22990 included before <wchar.h>. */
22991 #include <stddef.h>
22998 /* Test whether the function supports a NULL destination argument.
22999 This fails on native Windows. */
23000 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
23002 const char input[] = "\337er";
23003 const char *src = input;
23006 memset (&state, '\0', sizeof (mbstate_t));
23007 if (mbsrtowcs (NULL, &src, 1, &state) != 3
23011 /* Test whether the function works when started with a conversion state
23012 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
23013 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23015 const char input[] = "B\303\274\303\237er";
23018 memset (&state, '\0', sizeof (mbstate_t));
23019 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23020 if (!mbsinit (&state))
23022 const char *src = input + 2;
23023 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23027 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23029 const char input[] = "<\306\374\313\334\270\354>";
23032 memset (&state, '\0', sizeof (mbstate_t));
23033 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
23034 if (!mbsinit (&state))
23036 const char *src = input + 4;
23037 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
23041 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23043 const char input[] = "B\250\271\201\060\211\070er";
23046 memset (&state, '\0', sizeof (mbstate_t));
23047 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23048 if (!mbsinit (&state))
23050 const char *src = input + 2;
23051 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23058 if ac_fn_c_try_run
"$LINENO"; then :
23059 gl_cv_func_mbsrtowcs_works
=yes
23061 gl_cv_func_mbsrtowcs_works
=no
23063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
23071 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
23073 case "$gl_cv_func_mbsrtowcs_works" in
23075 *) REPLACE_MBSRTOWCS
=1 ;;
23080 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
23089 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
23099 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
23116 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
23121 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
23130 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
23133 for ac_header
in bp-sym.h
23135 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
23136 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
23137 cat >>confdefs.h
<<_ACEOF
23138 #define HAVE_BP_SYM_H 1
23158 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
23164 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
23166 $as_echo_n "checking whether memmem works in linear time... " >&6; }
23167 if ${gl_cv_func_memmem_works_fast+:} false
; then :
23168 $as_echo_n "(cached) " >&6
23170 if test "$cross_compiling" = yes; then :
23171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23174 #include <features.h>
23175 #ifdef __GNU_LIBRARY__
23176 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
23177 && !defined __UCLIBC__
23182 #include <cygwin/version.h>
23183 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
23189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23190 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23191 gl_cv_func_memmem_works_fast
="guessing yes"
23193 gl_cv_func_memmem_works_fast
="guessing no"
23199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23202 #include <signal.h> /* for signal */
23203 #include <string.h> /* for memmem */
23204 #include <stdlib.h> /* for malloc */
23205 #include <unistd.h> /* for alarm */
23206 static void quit (int sig) { _exit (sig + 128); }
23213 size_t m = 1000000;
23214 char *haystack = (char *) malloc (2 * m + 1);
23215 char *needle = (char *) malloc (m + 1);
23216 /* Failure to compile this test due to missing alarm is okay,
23217 since all such platforms (mingw) also lack memmem. */
23218 signal (SIGALRM, quit);
23220 /* Check for quadratic performance. */
23221 if (haystack && needle)
23223 memset (haystack, 'A', 2 * m);
23224 haystack[2 * m] = 'B';
23225 memset (needle, 'A', m);
23227 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
23236 if ac_fn_c_try_run
"$LINENO"; then :
23237 gl_cv_func_memmem_works_fast
=yes
23239 gl_cv_func_memmem_works_fast
=no
23241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
23248 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
23249 case "$gl_cv_func_memmem_works_fast" in
23257 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23266 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23273 for ac_func
in memmem
23275 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
23276 if test "x$ac_cv_func_memmem" = xyes
; then :
23277 cat >>confdefs.h
<<_ACEOF
23278 #define HAVE_MEMMEM 1
23284 if test $ac_cv_func_memmem = yes; then
23296 if test $ac_cv_have_decl_memmem = no
; then
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
23300 $as_echo_n "checking whether memmem works... " >&6; }
23301 if ${gl_cv_func_memmem_works_always+:} false
; then :
23302 $as_echo_n "(cached) " >&6
23304 if test "$cross_compiling" = yes; then :
23305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23306 /* end confdefs.h. */
23308 #ifdef __GNU_LIBRARY__
23309 #include <features.h>
23310 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
23311 || __GLIBC_MINOR__ > 12)) \
23312 || (__GLIBC__ > 2)) \
23313 || defined __UCLIBC__
23316 #elif defined __CYGWIN__
23317 #include <cygwin/version.h>
23318 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23327 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23328 gl_cv_func_memmem_works_always
="guessing yes"
23330 gl_cv_func_memmem_works_always
="guessing no"
23336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23339 #include <string.h> /* for memmem */
23340 #define P "_EF_BF_BD"
23341 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23342 #define NEEDLE P P P P P
23349 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
23351 /* Check for empty needle behavior. */
23353 const char *haystack = "AAA";
23354 if (memmem (haystack, 3, NULL, 0) != haystack)
23363 if ac_fn_c_try_run
"$LINENO"; then :
23364 gl_cv_func_memmem_works_always
=yes
23366 gl_cv_func_memmem_works_always
=no
23368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
23375 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
23376 case "$gl_cv_func_memmem_works_always" in
23385 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23394 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23408 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
23418 for ac_func
in mempcpy
23420 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
23421 if test "x$ac_cv_func_mempcpy" = xyes
; then :
23422 cat >>confdefs.h
<<_ACEOF
23423 #define HAVE_MEMPCPY 1
23429 if test $ac_cv_func_mempcpy = no
; then
23433 if test $HAVE_MEMPCPY = 0; then
23442 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
23459 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
23474 if test $ac_cv_have_decl_memrchr = no
; then
23475 HAVE_DECL_MEMRCHR
=0
23478 for ac_func
in memrchr
23480 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
23481 if test "x$ac_cv_func_memrchr" = xyes
; then :
23482 cat >>confdefs.h
<<_ACEOF
23483 #define HAVE_MEMRCHR 1
23490 if test $ac_cv_func_memrchr = no
; then
23499 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
23514 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
23527 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
23528 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
23529 $as_echo_n "(cached) " >&6
23531 rm -rf conftest.dir
23532 if test "$cross_compiling" = yes; then :
23534 # Guess yes on glibc systems.
23535 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
23536 # If we don't know, assume the worst.
23537 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
23541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23544 # include <sys/types.h>
23545 # include <sys/stat.h>
23550 return mkdir ("conftest.dir/", 0700);
23555 if ac_fn_c_try_run
"$LINENO"; then :
23556 gl_cv_func_mkdir_trailing_slash_works
=yes
23558 gl_cv_func_mkdir_trailing_slash_works
=no
23560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23564 rm -rf conftest.dir
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
23569 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
23570 case "$gl_cv_func_mkdir_trailing_slash_works" in
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
23578 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
23579 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
23580 $as_echo_n "(cached) " >&6
23582 rm -rf conftest.dir
23583 if test "$cross_compiling" = yes; then :
23585 # Guess yes on glibc systems.
23586 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
23587 # If we don't know, assume the worst.
23588 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
23592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23595 # include <sys/types.h>
23596 # include <sys/stat.h>
23601 return !mkdir ("conftest.dir/./", 0700);
23606 if ac_fn_c_try_run
"$LINENO"; then :
23607 gl_cv_func_mkdir_trailing_dot_works
=yes
23609 gl_cv_func_mkdir_trailing_dot_works
=no
23611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23615 rm -rf conftest.dir
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
23620 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
23621 case "$gl_cv_func_mkdir_trailing_dot_works" in
23626 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
23631 if test $REPLACE_MKDIR = 1; then
23640 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
23645 for ac_func
in mkdtemp
23647 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
23648 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
23649 cat >>confdefs.h
<<_ACEOF
23650 #define HAVE_MKDTEMP 1
23656 if test $ac_cv_func_mkdtemp = no
; then
23660 if test $HAVE_MKDTEMP = 0; then
23669 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
23685 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
23701 if test $ac_cv_func_mkostemp != yes; then
23705 if test $HAVE_MKOSTEMP = 0; then
23714 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
23721 cat >>confdefs.h
<<_ACEOF
23722 #define GNULIB_MKOSTEMP 1
23737 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
23742 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23751 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
23755 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23764 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
23770 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
23771 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
23772 $as_echo_n "(cached) " >&6
23775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23777 #include <netinet/in.h>
23786 if ac_fn_c_try_compile
"$LINENO"; then :
23787 gl_cv_header_netinet_in_h_selfcontained
=yes
23789 gl_cv_header_netinet_in_h_selfcontained
=no
23791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
23795 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
23796 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
23799 NETINET_IN_H
='netinet/in.h'
23800 for ac_header
in netinet
/in.h
23802 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23803 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
23804 cat >>confdefs.h
<<_ACEOF
23805 #define HAVE_NETINET_IN_H 1
23827 if test $gl_cv_have_include_next = yes; then
23828 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23831 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23832 if ${gl_cv_next_netinet_in_h+:} false
; then :
23833 $as_echo_n "(cached) " >&6
23836 if test $ac_cv_header_netinet_in_h = yes; then
23841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23842 /* end confdefs.h. */
23843 #include <netinet/in.h>
23846 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23847 *) gl_absname_cpp
="$ac_cpp" ;;
23852 gl_dirsep_regex
='[/\\]'
23855 gl_dirsep_regex
='\/'
23858 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23859 gl_header_literal_regex
=`echo 'netinet/in.h' \
23860 | sed -e "$gl_make_literal_regex_sed"`
23861 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23862 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23868 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23869 sed -n "$gl_absolute_header_sed"`
23871 gl_header
=$gl_cv_absolute_netinet_in_h
23872 gl_cv_next_netinet_in_h
='"'$gl_header'"'
23874 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23880 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23882 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
23884 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23886 gl_next_as_first_directive
='<'netinet
/in.h
'>'
23888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23889 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
23891 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
23896 if test $ac_cv_header_netinet_in_h = yes; then
23897 HAVE_NETINET_IN_H
=1
23899 HAVE_NETINET_IN_H
=0
23904 if test -n "$NETINET_IN_H"; then
23905 GL_GENERATE_NETINET_IN_H_TRUE
=
23906 GL_GENERATE_NETINET_IN_H_FALSE
='#'
23908 GL_GENERATE_NETINET_IN_H_TRUE
='#'
23909 GL_GENERATE_NETINET_IN_H_FALSE
=
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
23929 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
23930 if ${gl_cv_func_open_slash+:} false
; then :
23931 $as_echo_n "(cached) " >&6
23933 # Assume that if we have lstat, we can also check symlinks.
23934 if test $ac_cv_func_lstat = yes; then
23936 ln -s conftest.tmp conftest.lnk
23938 if test "$cross_compiling" = yes; then :
23941 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
23942 gl_cv_func_open_slash
="guessing no" ;;
23944 gl_cv_func_open_slash
="guessing yes" ;;
23948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23949 /* end confdefs.h. */
23953 # include <unistd.h>
23959 if (open ("conftest.lnk/", O_RDONLY) != -1)
23962 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
23967 if ac_fn_c_try_run
"$LINENO"; then :
23968 gl_cv_func_open_slash
=yes
23970 gl_cv_func_open_slash
=no
23972 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23973 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23976 rm -f conftest.sl conftest.tmp conftest.lnk
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
23980 $as_echo "$gl_cv_func_open_slash" >&6; }
23981 case "$gl_cv_func_open_slash" in
23984 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
23992 if test $REPLACE_OPEN = 0; then
24002 if test $ac_cv_func_fchdir = no
; then
24006 if test $HAVE_FCHDIR = 0; then
24013 if test $REPLACE_OPEN = 1; then
24022 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
24040 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
24055 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
24059 # Solaris 9 has *at functions, but uniformly mishandles trailing
24060 # slash in all of them.
24068 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
24077 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
24086 cat >>confdefs.h
<<_ACEOF
24087 #define GNULIB_OPENAT 1
24101 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
24108 for ac_func
in opendir
24110 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
24111 if test "x$ac_cv_func_opendir" = xyes
; then :
24112 cat >>confdefs.h
<<_ACEOF
24113 #define HAVE_OPENDIR 1
24119 if test $ac_cv_func_opendir = no
; then
24132 if test $ac_cv_func_fchdir = no
; then
24136 if test $HAVE_FCHDIR = 0; then
24137 if test $HAVE_OPENDIR = 1; then
24142 case $host_os,$HAVE_OPENDIR in
24144 REPLACE_OPENDIR
=1;;
24147 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
24156 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
24170 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
24187 for ac_func
in rawmemchr
24189 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
24190 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
24191 cat >>confdefs.h
<<_ACEOF
24192 #define HAVE_RAWMEMCHR 1
24198 if test $ac_cv_func_rawmemchr = no
; then
24202 if test $HAVE_RAWMEMCHR = 0; then
24211 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
24226 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
24233 for ac_func
in readdir
24235 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
24236 if test "x$ac_cv_func_readdir" = xyes
; then :
24237 cat >>confdefs.h
<<_ACEOF
24238 #define HAVE_READDIR 1
24244 if test $ac_cv_func_readdir = no
; then
24248 if test $HAVE_READDIR = 0; then
24257 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
24271 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
24284 if test $ac_cv_func_readlink = no
; then
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
24288 $as_echo_n "checking whether readlink signature is correct... " >&6; }
24289 if ${gl_cv_decl_readlink_works+:} false
; then :
24290 $as_echo_n "(cached) " >&6
24292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24294 #include <unistd.h>
24295 /* Cause compilation failure if original declaration has wrong type. */
24296 ssize_t readlink (const char *, char *, size_t);
24305 if ac_fn_c_try_compile
"$LINENO"; then :
24306 gl_cv_decl_readlink_works
=yes
24308 gl_cv_decl_readlink_works
=no
24310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
24313 $as_echo "$gl_cv_decl_readlink_works" >&6; }
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
24315 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
24316 if ${gl_cv_func_readlink_works+:} false
; then :
24317 $as_echo_n "(cached) " >&6
24319 # We have readlink, so assume ln -s works.
24320 ln -s conftest.no-such conftest.link
24321 ln -s conftest.link conftest.lnk2
24322 if test "$cross_compiling" = yes; then :
24324 # Guess yes on glibc systems.
24325 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
24326 # If we don't know, assume the worst.
24327 *) gl_cv_func_readlink_works
="guessing no" ;;
24331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24332 /* end confdefs.h. */
24333 #include <unistd.h>
24339 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
24344 if ac_fn_c_try_run
"$LINENO"; then :
24345 gl_cv_func_readlink_works
=yes
24347 gl_cv_func_readlink_works
=no
24349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24350 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24353 rm -f conftest.link conftest.lnk2
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
24356 $as_echo "$gl_cv_func_readlink_works" >&6; }
24357 case "$gl_cv_func_readlink_works" in
24359 if test "$gl_cv_decl_readlink_works" != yes; then
24365 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
24372 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24381 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
24398 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
24405 if test $gl_cv_func_malloc_posix = yes; then
24407 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
24413 if test $REPLACE_REALLOC = 1; then
24422 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
24430 GNULIB_REALLOC_POSIX
=1
24436 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
24452 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
24453 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
24454 $as_echo_n "(cached) " >&6
24456 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24457 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24458 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24459 # Assume that if we have lstat, we can also check symlinks.
24460 if test $ac_cv_func_lstat = yes; then
24461 ln -s conftest.f conftest.lnk
24463 if test "$cross_compiling" = yes; then :
24465 # Guess yes on glibc systems.
24466 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
24467 # If we don't know, assume the worst.
24468 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
24472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24475 # include <stdio.h>
24476 # include <stdlib.h>
24482 if (rename ("conftest.f1", "conftest.f2/") == 0)
24484 if (rename ("conftest.d1", "conftest.d2/") != 0)
24487 if (rename ("conftest.f", "conftest.lnk/") == 0)
24496 if ac_fn_c_try_run
"$LINENO"; then :
24497 gl_cv_func_rename_slash_dst_works
=yes
24499 gl_cv_func_rename_slash_dst_works
=no
24501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24502 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24505 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
24509 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
24510 case "$gl_cv_func_rename_slash_dst_works" in
24515 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
24521 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
24522 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
24523 $as_echo_n "(cached) " >&6
24525 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24526 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24527 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24528 # Assume that if we have lstat, we can also check symlinks.
24529 if test $ac_cv_func_lstat = yes; then
24530 ln -s conftest.f conftest.lnk
24532 if test "$cross_compiling" = yes; then :
24534 # Guess yes on glibc systems.
24535 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
24536 # If we don't know, assume the worst.
24537 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
24541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24544 # include <stdio.h>
24545 # include <stdlib.h>
24551 if (rename ("conftest.f1/", "conftest.d3") == 0)
24553 if (rename ("conftest.d1/", "conftest.d2") != 0)
24556 if (rename ("conftest.lnk/", "conftest.f") == 0)
24565 if ac_fn_c_try_run
"$LINENO"; then :
24566 gl_cv_func_rename_slash_src_works
=yes
24568 gl_cv_func_rename_slash_src_works
=no
24570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24574 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
24578 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
24579 case "$gl_cv_func_rename_slash_src_works" in
24584 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
24597 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
24598 if ${gl_cv_func_rename_link_works+:} false
; then :
24599 $as_echo_n "(cached) " >&6
24601 if test $ac_cv_func_link = yes; then
24602 rm -rf conftest.f conftest.f1
24603 if touch conftest.f
&& ln conftest.f conftest.f1
&&
24604 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
24605 if test "$cross_compiling" = yes; then :
24607 # Guess yes on glibc systems.
24608 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
24609 # If we don't know, assume the worst.
24610 *) gl_cv_func_rename_link_works
="guessing no" ;;
24614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24615 /* end confdefs.h. */
24617 # include <stdio.h>
24618 # include <stdlib.h>
24619 # include <unistd.h>
24625 if (rename ("conftest.f", "conftest.f1"))
24627 if (unlink ("conftest.f1"))
24629 if (rename ("conftest.f", "conftest.f"))
24631 if (rename ("conftest.f1", "conftest.f1") == 0)
24639 if ac_fn_c_try_run
"$LINENO"; then :
24640 gl_cv_func_rename_link_works
=yes
24642 gl_cv_func_rename_link_works
=no
24644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24649 gl_cv_func_rename_link_works
="guessing no"
24651 rm -rf conftest.f conftest.f1
24653 gl_cv_func_rename_link_works
=yes
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
24658 $as_echo "$gl_cv_func_rename_link_works" >&6; }
24659 case "$gl_cv_func_rename_link_works" in
24664 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
24670 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
24671 if ${gl_cv_func_rename_dest_works+:} false
; then :
24672 $as_echo_n "(cached) " >&6
24674 rm -rf conftest.f conftest.d1 conftest.d2
24675 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
24676 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24677 if test "$cross_compiling" = yes; then :
24679 # Guess yes on glibc systems.
24680 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
24681 # If we don't know, assume the worst.
24682 *) gl_cv_func_rename_dest_works
="guessing no" ;;
24686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24687 /* end confdefs.h. */
24689 # include <stdio.h>
24690 # include <stdlib.h>
24696 if (rename ("conftest.d1", "conftest.d2") != 0)
24698 if (rename ("conftest.d2", "conftest.f") == 0)
24706 if ac_fn_c_try_run
"$LINENO"; then :
24707 gl_cv_func_rename_dest_works
=yes
24709 gl_cv_func_rename_dest_works
=no
24711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24715 rm -rf conftest.f conftest.d1 conftest.d2
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
24719 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
24720 case "$gl_cv_func_rename_dest_works" in
24725 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
24730 if test $REPLACE_RENAME = 1; then
24739 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
24753 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
24760 for ac_func
in rewinddir
24762 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
24763 if test "x$ac_cv_func_rewinddir" = xyes
; then :
24764 cat >>confdefs.h
<<_ACEOF
24765 #define HAVE_REWINDDIR 1
24771 if test $ac_cv_func_rewinddir = no
; then
24775 if test $HAVE_REWINDDIR = 0; then
24784 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
24798 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
24812 $as_echo_n "checking whether rmdir works... " >&6; }
24813 if ${gl_cv_func_rmdir_works+:} false
; then :
24814 $as_echo_n "(cached) " >&6
24817 touch conftest.
file
24818 if test "$cross_compiling" = yes; then :
24820 # Guess yes on glibc systems.
24821 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
24822 # If we don't know, assume the worst.
24823 *) gl_cv_func_rmdir_works
="guessing no" ;;
24827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24828 /* end confdefs.h. */
24832 # include <unistd.h>
24833 #else /* on Windows with MSVC */
24834 # include <direct.h>
24841 if (!rmdir ("conftest.file/"))
24843 else if (errno != ENOTDIR)
24845 if (!rmdir ("conftest.dir/./"))
24853 if ac_fn_c_try_run
"$LINENO"; then :
24854 gl_cv_func_rmdir_works
=yes
24856 gl_cv_func_rmdir_works
=no
24858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24862 rm -rf conftest.dir conftest.
file
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
24865 $as_echo "$gl_cv_func_rmdir_works" >&6; }
24866 case "$gl_cv_func_rmdir_works" in
24873 if test $REPLACE_RMDIR = 1; then
24882 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
24896 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
24920 if test $ac_cv_func_secure_getenv = no
; then
24921 HAVE_SECURE_GETENV
=0
24924 if test $HAVE_SECURE_GETENV = 0; then
24933 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
24936 for ac_func
in __secure_getenv
24938 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
24939 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
24940 cat >>confdefs.h
<<_ACEOF
24941 #define HAVE___SECURE_GETENV 1
24947 if test $ac_cv_func___secure_getenv = no
; then
24948 for ac_func
in issetugid
24950 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
24951 if test "x$ac_cv_func_issetugid" = xyes
; then :
24952 cat >>confdefs.h
<<_ACEOF
24953 #define HAVE_ISSETUGID 1
24983 GNULIB_SECURE_GETENV
=1
24989 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
24995 if test $ac_cv_func_setenv = no
; then
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24999 $as_echo_n "checking whether setenv validates arguments... " >&6; }
25000 if ${gl_cv_func_setenv_works+:} false
; then :
25001 $as_echo_n "(cached) " >&6
25003 if test "$cross_compiling" = yes; then :
25005 # Guess yes on glibc systems.
25006 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
25007 # If we don't know, assume the worst.
25008 *) gl_cv_func_setenv_works
="guessing no" ;;
25012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25015 #include <stdlib.h>
25017 #include <string.h>
25025 if (setenv ("", "", 0) != -1)
25027 else if (errno != EINVAL)
25031 if (setenv ("a", "=", 1) != 0)
25033 else if (strcmp (getenv ("a"), "=") != 0)
25042 if ac_fn_c_try_run
"$LINENO"; then :
25043 gl_cv_func_setenv_works
=yes
25045 gl_cv_func_setenv_works
=no
25047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25053 $as_echo "$gl_cv_func_setenv_works" >&6; }
25054 case "$gl_cv_func_setenv_works" in
25062 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
25071 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
25085 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25100 if test $gl_cv_have_include_next = yes; then
25101 gl_cv_next_signal_h
='<'signal.h
'>'
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25104 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25105 if ${gl_cv_next_signal_h+:} false
; then :
25106 $as_echo_n "(cached) " >&6
25111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25113 #include <signal.h>
25116 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25117 *) gl_absname_cpp
="$ac_cpp" ;;
25122 gl_dirsep_regex
='[/\\]'
25125 gl_dirsep_regex
='\/'
25128 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25129 gl_header_literal_regex
=`echo 'signal.h' \
25130 | sed -e "$gl_make_literal_regex_sed"`
25131 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25138 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25139 sed -n "$gl_absolute_header_sed"`
25141 gl_header
=$gl_cv_absolute_signal_h
25142 gl_cv_next_signal_h
='"'$gl_header'"'
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25147 $as_echo "$gl_cv_next_signal_h" >&6; }
25149 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25151 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25153 gl_next_as_first_directive
='<'signal.h
'>'
25155 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25156 gl_next_as_first_directive
=$gl_cv_next_signal_h
25158 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25164 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25165 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25166 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25167 #include <signal.h>
25170 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
25173 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25182 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25183 #include <signal.h>
25186 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
25189 HAVE_SIGHANDLER_T
=0
25194 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
25195 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25197 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25198 if eval \
${$as_gl_Symbol+:} false
; then :
25199 $as_echo_n "(cached) " >&6
25201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25202 /* end confdefs.h. */
25203 #include <signal.h>
25214 if ac_fn_c_try_compile
"$LINENO"; then :
25215 eval "$as_gl_Symbol=yes"
25217 eval "$as_gl_Symbol=no"
25219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25221 eval ac_res
=\$
$as_gl_Symbol
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25223 $as_echo "$ac_res" >&6; }
25224 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25225 cat >>confdefs.h
<<_ACEOF
25226 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25229 eval ac_cv_have_decl_
$gl_func=yes
25234 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25235 /* <sys/types.h> is not needed according to POSIX, but the
25236 <sys/socket.h> in i386-unknown-freebsd4.10 and
25237 powerpc-apple-darwin5.5 required it. */
25238 #include <sys/types.h>
25239 #if HAVE_SYS_SOCKET_H
25240 # include <sys/socket.h>
25241 #elif HAVE_WS2TCPIP_H
25242 # include <ws2tcpip.h>
25246 if test "x$ac_cv_type_socklen_t" = xyes
; then :
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25250 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25251 if ${gl_cv_socklen_t_equiv+:} false
; then :
25252 $as_echo_n "(cached) " >&6
25254 # Systems have either "struct sockaddr *" or
25255 # "void *" as the second argument to getpeername
25256 gl_cv_socklen_t_equiv
=
25257 for arg2
in "struct sockaddr" void
; do
25258 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h. */
25261 #include <sys/types.h>
25262 #include <sys/socket.h>
25264 int getpeername (int, $arg2 *, $t *);
25269 getpeername (0, 0, &len);
25274 if ac_fn_c_try_compile
"$LINENO"; then :
25275 gl_cv_socklen_t_equiv
="$t"
25277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25278 test "$gl_cv_socklen_t_equiv" != "" && break
25280 test "$gl_cv_socklen_t_equiv" != "" && break
25285 if test "$gl_cv_socklen_t_equiv" = ""; then
25286 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25289 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25291 cat >>confdefs.h
<<_ACEOF
25292 #define socklen_t $gl_cv_socklen_t_equiv
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25299 $as_echo_n "checking for ssize_t... " >&6; }
25300 if ${gt_cv_ssize_t+:} false
; then :
25301 $as_echo_n "(cached) " >&6
25303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25304 /* end confdefs.h. */
25305 #include <sys/types.h>
25309 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25315 if ac_fn_c_try_compile
"$LINENO"; then :
25320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25323 $as_echo "$gt_cv_ssize_t" >&6; }
25324 if test $gt_cv_ssize_t = no
; then
25326 $as_echo "#define ssize_t int" >>confdefs.h
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25340 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25341 if ${gl_cv_func_stat_dir_slash+:} false
; then :
25342 $as_echo_n "(cached) " >&6
25344 if test "$cross_compiling" = yes; then :
25346 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
25347 *) gl_cv_func_stat_dir_slash
="guessing yes";;
25350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h. */
25352 #include <sys/stat.h>
25357 struct stat st; return stat (".", &st) != stat ("./", &st);
25362 if ac_fn_c_try_run
"$LINENO"; then :
25363 gl_cv_func_stat_dir_slash
=yes
25365 gl_cv_func_stat_dir_slash
=no
25367 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25368 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25373 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25375 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25376 if ${gl_cv_func_stat_file_slash+:} false
; then :
25377 $as_echo_n "(cached) " >&6
25380 # Assume that if we have lstat, we can also check symlinks.
25381 if test $ac_cv_func_lstat = yes; then
25382 ln -s conftest.tmp conftest.lnk
25384 if test "$cross_compiling" = yes; then :
25386 # Guess yes on glibc systems.
25387 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25388 # If we don't know, assume the worst.
25389 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25395 #include <sys/stat.h>
25402 if (!stat ("conftest.tmp/", &st))
25405 if (!stat ("conftest.lnk/", &st))
25414 if ac_fn_c_try_run
"$LINENO"; then :
25415 gl_cv_func_stat_file_slash
=yes
25417 gl_cv_func_stat_file_slash
=no
25419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25423 rm -f conftest.tmp conftest.lnk
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25426 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25427 case $gl_cv_func_stat_dir_slash in
25428 *no
) REPLACE_STAT
=1
25430 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25433 case $gl_cv_func_stat_file_slash in
25434 *no
) REPLACE_STAT
=1
25436 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25440 if test $REPLACE_STAT = 1; then
25449 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25464 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25470 $as_echo_n "checking for working stdalign.h... " >&6; }
25471 if ${gl_cv_header_working_stdalign_h+:} false
; then :
25472 $as_echo_n "(cached) " >&6
25474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25475 /* end confdefs.h. */
25476 #include <stdalign.h>
25477 #include <stddef.h>
25479 /* Test that alignof yields a result consistent with offsetof.
25480 This catches GCC bug 52023
25481 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25483 template <class t> struct alignof_helper { char a; t b; };
25484 # define ao(type) offsetof (alignof_helper<type>, b)
25486 # define ao(type) offsetof (struct { char a; type b; }, b)
25488 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25489 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25490 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25492 /* Test _Alignas only on platforms where gnulib can help. */
25494 ((defined __cplusplus && 201103 <= __cplusplus) \
25495 || (defined __APPLE__ && defined __MACH__ \
25496 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
25498 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
25499 || __ICC || 0x5110 <= __SUNPRO_C \
25500 || 1300 <= _MSC_VER)
25501 struct alignas_test { char c; char alignas (8) alignas_8; };
25502 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25514 if ac_fn_c_try_compile
"$LINENO"; then :
25515 gl_cv_header_working_stdalign_h
=yes
25517 gl_cv_header_working_stdalign_h
=no
25519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25522 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25524 if test $gl_cv_header_working_stdalign_h = yes; then
25527 STDALIGN_H
='stdalign.h'
25531 if test -n "$STDALIGN_H"; then
25532 GL_GENERATE_STDALIGN_H_TRUE
=
25533 GL_GENERATE_STDALIGN_H_FALSE
='#'
25535 GL_GENERATE_STDALIGN_H_TRUE
='#'
25536 GL_GENERATE_STDALIGN_H_FALSE
=
25543 # Define two additional variables used in the Makefile substitution.
25545 if test "$ac_cv_header_stdbool_h" = yes; then
25548 STDBOOL_H
='stdbool.h'
25551 if test -n "$STDBOOL_H"; then
25552 GL_GENERATE_STDBOOL_H_TRUE
=
25553 GL_GENERATE_STDBOOL_H_FALSE
='#'
25555 GL_GENERATE_STDBOOL_H_TRUE
='#'
25556 GL_GENERATE_STDBOOL_H_FALSE
=
25560 if test "$ac_cv_type__Bool" = yes; then
25571 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
25574 if test "x$ac_cv_type_max_align_t" = xyes
; then :
25577 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
25580 if test $gt_cv_c_wchar_t = no
; then
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25585 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25586 if ${gl_cv_decl_null_works+:} false
; then :
25587 $as_echo_n "(cached) " >&6
25589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25591 #include <stddef.h>
25592 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25602 if ac_fn_c_try_compile
"$LINENO"; then :
25603 gl_cv_decl_null_works
=yes
25605 gl_cv_decl_null_works
=no
25607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25610 $as_echo "$gl_cv_decl_null_works" >&6; }
25611 if test $gl_cv_decl_null_works = no
; then
25616 if test -n "$STDDEF_H"; then
25617 GL_GENERATE_STDDEF_H_TRUE
=
25618 GL_GENERATE_STDDEF_H_FALSE
='#'
25620 GL_GENERATE_STDDEF_H_TRUE
='#'
25621 GL_GENERATE_STDDEF_H_FALSE
=
25624 if test -n "$STDDEF_H"; then
25633 if test $gl_cv_have_include_next = yes; then
25634 gl_cv_next_stddef_h
='<'stddef.h
'>'
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25637 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25638 if ${gl_cv_next_stddef_h+:} false
; then :
25639 $as_echo_n "(cached) " >&6
25644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25645 /* end confdefs.h. */
25646 #include <stddef.h>
25649 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25650 *) gl_absname_cpp
="$ac_cpp" ;;
25655 gl_dirsep_regex
='[/\\]'
25658 gl_dirsep_regex
='\/'
25661 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25662 gl_header_literal_regex
=`echo 'stddef.h' \
25663 | sed -e "$gl_make_literal_regex_sed"`
25664 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25665 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25671 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25672 sed -n "$gl_absolute_header_sed"`
25674 gl_header
=$gl_cv_absolute_stddef_h
25675 gl_cv_next_stddef_h
='"'$gl_header'"'
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25680 $as_echo "$gl_cv_next_stddef_h" >&6; }
25682 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
25684 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25686 gl_next_as_first_directive
='<'stddef.h
'>'
25688 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25689 gl_next_as_first_directive
=$gl_cv_next_stddef_h
25691 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
25701 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25712 if test $gl_cv_have_include_next = yes; then
25713 gl_cv_next_stdio_h
='<'stdio.h
'>'
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25716 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25717 if ${gl_cv_next_stdio_h+:} false
; then :
25718 $as_echo_n "(cached) " >&6
25723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h. */
25728 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25729 *) gl_absname_cpp
="$ac_cpp" ;;
25734 gl_dirsep_regex
='[/\\]'
25737 gl_dirsep_regex
='\/'
25740 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25741 gl_header_literal_regex
=`echo 'stdio.h' \
25742 | sed -e "$gl_make_literal_regex_sed"`
25743 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25750 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25751 sed -n "$gl_absolute_header_sed"`
25753 gl_header
=$gl_cv_absolute_stdio_h
25754 gl_cv_next_stdio_h
='"'$gl_header'"'
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25759 $as_echo "$gl_cv_next_stdio_h" >&6; }
25761 NEXT_STDIO_H
=$gl_cv_next_stdio_h
25763 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25765 gl_next_as_first_directive
='<'stdio.h
'>'
25767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25768 gl_next_as_first_directive
=$gl_cv_next_stdio_h
25770 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
25777 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
25778 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
25779 $as_echo_n "(cached) " >&6
25781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h. */
25784 #define __STDC_FORMAT_MACROS 1
25786 #include <inttypes.h>
25787 /* For non-mingw systems, compilation will trivially succeed.
25788 For mingw, compilation will succeed for older mingw (system
25789 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25790 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
25791 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25792 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25803 if ac_fn_c_try_compile
"$LINENO"; then :
25804 gl_cv_func_printf_attribute_flavor
=system
25806 gl_cv_func_printf_attribute_flavor
=gnu
25808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25811 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25812 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
25814 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25821 cat >>confdefs.h
<<_ACEOF
25822 #define GNULIB_FSCANF 1
25829 cat >>confdefs.h
<<_ACEOF
25830 #define GNULIB_SCANF 1
25855 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
25856 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25858 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25859 if eval \
${$as_gl_Symbol+:} false
; then :
25860 $as_echo_n "(cached) " >&6
25862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25875 if ac_fn_c_try_compile
"$LINENO"; then :
25876 eval "$as_gl_Symbol=yes"
25878 eval "$as_gl_Symbol=no"
25880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25882 eval ac_res
=\$
$as_gl_Symbol
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25884 $as_echo "$ac_res" >&6; }
25885 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25886 cat >>confdefs.h
<<_ACEOF
25887 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25890 eval ac_cv_have_decl_
$gl_func=yes
25905 if test $gl_cv_have_include_next = yes; then
25906 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25909 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25910 if ${gl_cv_next_stdlib_h+:} false
; then :
25911 $as_echo_n "(cached) " >&6
25916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25917 /* end confdefs.h. */
25918 #include <stdlib.h>
25921 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25922 *) gl_absname_cpp
="$ac_cpp" ;;
25927 gl_dirsep_regex
='[/\\]'
25930 gl_dirsep_regex
='\/'
25933 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25934 gl_header_literal_regex
=`echo 'stdlib.h' \
25935 | sed -e "$gl_make_literal_regex_sed"`
25936 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25937 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25943 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25944 sed -n "$gl_absolute_header_sed"`
25946 gl_header
=$gl_cv_absolute_stdlib_h
25947 gl_cv_next_stdlib_h
='"'$gl_header'"'
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25952 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25954 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
25956 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25958 gl_next_as_first_directive
='<'stdlib.h
'>'
25960 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25961 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
25963 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
25970 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
25971 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25973 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25974 if eval \
${$as_gl_Symbol+:} false
; then :
25975 $as_echo_n "(cached) " >&6
25977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25978 /* end confdefs.h. */
25979 #include <stdlib.h>
25980 #if HAVE_SYS_LOADAVG_H
25981 # include <sys/loadavg.h>
25984 # include <random.h>
25996 if ac_fn_c_try_compile
"$LINENO"; then :
25997 eval "$as_gl_Symbol=yes"
25999 eval "$as_gl_Symbol=no"
26001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26003 eval ac_res
=\$
$as_gl_Symbol
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26005 $as_echo "$ac_res" >&6; }
26006 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26007 cat >>confdefs.h
<<_ACEOF
26008 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26011 eval ac_cv_have_decl_
$gl_func=yes
26020 for ac_func
in strchrnul
26022 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
26023 if test "x$ac_cv_func_strchrnul" = xyes
; then :
26024 cat >>confdefs.h
<<_ACEOF
26025 #define HAVE_STRCHRNUL 1
26031 if test $ac_cv_func_strchrnul = no
; then
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
26035 $as_echo_n "checking whether strchrnul works... " >&6; }
26036 if ${gl_cv_func_strchrnul_works+:} false
; then :
26037 $as_echo_n "(cached) " >&6
26039 if test "$cross_compiling" = yes; then :
26040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26043 #if defined __CYGWIN__
26044 #include <cygwin/version.h>
26045 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
26053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26054 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26055 gl_cv_func_strchrnul_works
="guessing yes"
26057 gl_cv_func_strchrnul_works
="guessing no"
26063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h. */
26066 #include <string.h> /* for strchrnul */
26071 const char *buf = "a";
26072 return strchrnul (buf, 'b') != buf + 1;
26078 if ac_fn_c_try_run
"$LINENO"; then :
26079 gl_cv_func_strchrnul_works
=yes
26081 gl_cv_func_strchrnul_works
=no
26083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
26090 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
26091 case "$gl_cv_func_strchrnul_works" in
26093 *) REPLACE_STRCHRNUL
=1 ;;
26097 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
26106 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
26121 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
26135 if test $ac_cv_func_strdup = yes; then
26136 if test $gl_cv_func_malloc_posix != yes; then
26147 if test $ac_cv_have_decl_strdup = no
; then
26151 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
26160 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
26175 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
26186 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26188 $as_echo_n "checking for working strerror function... " >&6; }
26189 if ${gl_cv_func_working_strerror+:} false
; then :
26190 $as_echo_n "(cached) " >&6
26192 if test "$cross_compiling" = yes; then :
26194 # Guess yes on glibc systems.
26195 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
26196 # If we don't know, assume the worst.
26197 *) gl_cv_func_working_strerror
="guessing no" ;;
26201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26202 /* end confdefs.h. */
26203 #include <string.h>
26208 if (!*strerror (-2)) return 1;
26213 if ac_fn_c_try_run
"$LINENO"; then :
26214 gl_cv_func_working_strerror
=yes
26216 gl_cv_func_working_strerror
=no
26218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26225 $as_echo "$gl_cv_func_working_strerror" >&6; }
26226 case "$gl_cv_func_working_strerror" in
26233 case "$gl_cv_func_strerror_r_works" in
26234 *no
) REPLACE_STRERROR
=1 ;;
26241 if test $REPLACE_STRERROR = 1; then
26250 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
26255 cat >>confdefs.h
<<_ACEOF
26256 #define GNULIB_STRERROR 1
26271 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26277 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
26286 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
26298 if test $ac_cv_header_sys_socket_h != yes; then
26299 for ac_header
in winsock2.h
26301 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26302 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
26303 cat >>confdefs.h
<<_ACEOF
26304 #define HAVE_WINSOCK2_H 1
26312 if test "$ac_cv_header_winsock2_h" = yes; then
26314 UNISTD_H_HAVE_WINSOCK2_H
=1
26315 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26328 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26329 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
26330 HAVE_DECL_STRERROR_R
=1
26332 HAVE_DECL_STRERROR_R
=0
26336 cat >>confdefs.h
<<_ACEOF
26337 #define HAVE_DECL_STRERROR_R_ORIG $HAVE_DECL_STRERROR_R
26341 if test $ac_cv_func_strerror_r = yes; then
26342 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26343 if test $gl_cv_func_strerror_r_posix_signature = yes; then
26344 case "$gl_cv_func_strerror_r_works" in
26345 *no
) REPLACE_STRERROR_R
=1 ;;
26348 REPLACE_STRERROR_R
=1
26351 REPLACE_STRERROR_R
=1
26355 # Overwrite the findings of AC_FUNC_STRERROR_R (for code that uses that).
26358 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
26367 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
26398 GNULIB_STRERROR_R
=1
26404 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
26413 if test $REPLACE_STRSTR = 0; then
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
26415 $as_echo_n "checking whether strstr works in linear time... " >&6; }
26416 if ${gl_cv_func_strstr_linear+:} false
; then :
26417 $as_echo_n "(cached) " >&6
26419 if test "$cross_compiling" = yes; then :
26420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26421 /* end confdefs.h. */
26423 #include <features.h>
26424 #ifdef __GNU_LIBRARY__
26425 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26426 && !(defined __i386__ || defined __x86_64__) \
26427 && !defined __UCLIBC__
26432 #include <cygwin/version.h>
26433 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26440 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26441 gl_cv_func_strstr_linear
="guessing yes"
26443 gl_cv_func_strstr_linear
="guessing no"
26449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26450 /* end confdefs.h. */
26453 /* z/OS does not deliver signals while strstr() is running (thanks to
26454 restrictions on its LE runtime), which prevents us from limiting the
26455 running time of this test. */
26456 # error "This test does not work properly on z/OS"
26458 #include <signal.h> /* for signal */
26459 #include <string.h> /* for strstr */
26460 #include <stdlib.h> /* for malloc */
26461 #include <unistd.h> /* for alarm */
26462 static void quit (int sig) { _exit (sig + 128); }
26469 size_t m = 1000000;
26470 char *haystack = (char *) malloc (2 * m + 2);
26471 char *needle = (char *) malloc (m + 2);
26472 /* Failure to compile this test due to missing alarm is okay,
26473 since all such platforms (mingw) also have quadratic strstr. */
26474 signal (SIGALRM, quit);
26476 /* Check for quadratic performance. */
26477 if (haystack && needle)
26479 memset (haystack, 'A', 2 * m);
26480 haystack[2 * m] = 'B';
26481 haystack[2 * m + 1] = 0;
26482 memset (needle, 'A', m);
26485 if (!strstr (haystack, needle))
26494 if ac_fn_c_try_run
"$LINENO"; then :
26495 gl_cv_func_strstr_linear
=yes
26497 gl_cv_func_strstr_linear
=no
26499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
26506 $as_echo "$gl_cv_func_strstr_linear" >&6; }
26507 case "$gl_cv_func_strstr_linear" in
26515 if test $REPLACE_STRSTR = 1; then
26524 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26530 if test "$gl_cv_func_memchr_works" != yes; then
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
26534 $as_echo_n "checking whether strstr works... " >&6; }
26535 if ${gl_cv_func_strstr_works_always+:} false
; then :
26536 $as_echo_n "(cached) " >&6
26538 if test "$cross_compiling" = yes; then :
26539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26540 /* end confdefs.h. */
26542 #ifdef __GNU_LIBRARY__
26543 #include <features.h>
26544 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26545 || defined __UCLIBC__
26548 #elif defined __CYGWIN__
26549 #include <cygwin/version.h>
26550 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26559 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26560 gl_cv_func_strstr_works_always
="guessing yes"
26562 gl_cv_func_strstr_works_always
="guessing no"
26568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26569 /* end confdefs.h. */
26571 #include <string.h> /* for strstr */
26572 #define P "_EF_BF_BD"
26573 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
26574 #define NEEDLE P P P P P
26579 return !!strstr (HAYSTACK, NEEDLE);
26585 if ac_fn_c_try_run
"$LINENO"; then :
26586 gl_cv_func_strstr_works_always
=yes
26588 gl_cv_func_strstr_works_always
=no
26590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
26597 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
26598 case "$gl_cv_func_strstr_works_always" in
26606 if test $REPLACE_STRSTR = 1; then
26615 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26629 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
26637 for ac_func
in strtok_r
26639 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
26640 if test "x$ac_cv_func_strtok_r" = xyes
; then :
26641 cat >>confdefs.h
<<_ACEOF
26642 #define HAVE_STRTOK_R 1
26648 if test $ac_cv_func_strtok_r = yes; then
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
26651 $as_echo_n "checking whether strtok_r works... " >&6; }
26652 if ${gl_cv_func_strtok_r_works+:} false
; then :
26653 $as_echo_n "(cached) " >&6
26655 if test "$cross_compiling" = yes; then :
26658 # Guess no on glibc systems.
26659 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
26660 *) gl_cv_func_strtok_r_works
="guessing yes";;
26664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h. */
26667 #ifndef __OPTIMIZE__
26668 # define __OPTIMIZE__ 1
26670 #undef __OPTIMIZE_SIZE__
26671 #undef __NO_INLINE__
26672 #include <stdlib.h>
26673 #include <string.h>
26678 static const char dummy[] = "\177\01a";
26679 char delimiters[] = "xxxxxxxx";
26680 char *save_ptr = (char *) dummy;
26681 strtok_r (delimiters, "x", &save_ptr);
26682 strtok_r (NULL, "x", &save_ptr);
26690 if ac_fn_c_try_run
"$LINENO"; then :
26691 gl_cv_func_strtok_r_works
=yes
26693 gl_cv_func_strtok_r_works
=no
26695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
26702 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
26703 case "$gl_cv_func_strtok_r_works" in
26705 UNDEFINE_STRTOK_R
=1
26718 if test $ac_cv_have_decl_strtok_r = no
; then
26719 HAVE_DECL_STRTOK_R
=0
26722 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
26731 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
26748 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
26774 if test $gl_cv_have_include_next = yes; then
26775 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26778 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26779 if ${gl_cv_next_sys_stat_h+:} false
; then :
26780 $as_echo_n "(cached) " >&6
26783 if test $ac_cv_header_sys_stat_h = yes; then
26788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26789 /* end confdefs.h. */
26790 #include <sys/stat.h>
26793 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26794 *) gl_absname_cpp
="$ac_cpp" ;;
26799 gl_dirsep_regex
='[/\\]'
26802 gl_dirsep_regex
='\/'
26805 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26806 gl_header_literal_regex
=`echo 'sys/stat.h' \
26807 | sed -e "$gl_make_literal_regex_sed"`
26808 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26809 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26815 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26816 sed -n "$gl_absolute_header_sed"`
26818 gl_header
=$gl_cv_absolute_sys_stat_h
26819 gl_cv_next_sys_stat_h
='"'$gl_header'"'
26821 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26827 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26829 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26831 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26833 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26835 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26836 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26838 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26850 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26852 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26856 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26857 #include <sys/stat.h>
26859 if test "x$ac_cv_type_nlink_t" = xyes
; then :
26863 $as_echo "#define nlink_t int" >>confdefs.h
26869 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
26870 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26872 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26873 if eval \
${$as_gl_Symbol+:} false
; then :
26874 $as_echo_n "(cached) " >&6
26876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26877 /* end confdefs.h. */
26878 #include <sys/stat.h>
26889 if ac_fn_c_try_compile
"$LINENO"; then :
26890 eval "$as_gl_Symbol=yes"
26892 eval "$as_gl_Symbol=no"
26894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26896 eval ac_res
=\$
$as_gl_Symbol
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26898 $as_echo "$ac_res" >&6; }
26899 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26900 cat >>confdefs.h
<<_ACEOF
26901 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26904 eval ac_cv_have_decl_
$gl_func=yes
26933 if test $gl_cv_have_include_next = yes; then
26934 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
26937 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
26938 if ${gl_cv_next_sys_uio_h+:} false
; then :
26939 $as_echo_n "(cached) " >&6
26942 if test $ac_cv_header_sys_uio_h = yes; then
26947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26948 /* end confdefs.h. */
26949 #include <sys/uio.h>
26952 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26953 *) gl_absname_cpp
="$ac_cpp" ;;
26958 gl_dirsep_regex
='[/\\]'
26961 gl_dirsep_regex
='\/'
26964 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26965 gl_header_literal_regex
=`echo 'sys/uio.h' \
26966 | sed -e "$gl_make_literal_regex_sed"`
26967 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26968 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26974 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26975 sed -n "$gl_absolute_header_sed"`
26977 gl_header
=$gl_cv_absolute_sys_uio_h
26978 gl_cv_next_sys_uio_h
='"'$gl_header'"'
26980 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
26986 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
26988 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
26990 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26992 gl_next_as_first_directive
='<'sys
/uio.h
'>'
26994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26995 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
26997 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
27002 if test $ac_cv_header_sys_uio_h = yes; then
27028 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27030 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
27036 cat >>confdefs.h
<<_ACEOF
27037 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27040 if test $ac_cv_have_decl_localtime_r = no
; then
27041 HAVE_DECL_LOCALTIME_R
=0
27051 if test $ac_cv_func_localtime_r = yes; then
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27054 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27055 if ${gl_cv_time_r_posix+:} false
; then :
27056 $as_echo_n "(cached) " >&6
27058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27059 /* end confdefs.h. */
27064 /* We don't need to append 'restrict's to the argument types,
27065 even though the POSIX signature has the 'restrict's,
27066 since C99 says they can't affect type compatibility. */
27067 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27069 /* Check the return type is a pointer.
27070 On HP-UX 10 it is 'int'. */
27071 *localtime_r (0, 0);
27077 if ac_fn_c_try_compile
"$LINENO"; then :
27078 gl_cv_time_r_posix
=yes
27080 gl_cv_time_r_posix
=no
27082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27086 $as_echo "$gl_cv_time_r_posix" >&6; }
27087 if test $gl_cv_time_r_posix = yes; then
27088 REPLACE_LOCALTIME_R
=0
27090 REPLACE_LOCALTIME_R
=1
27096 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27105 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27122 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
27144 if test $gl_cv_have_include_next = yes; then
27145 gl_cv_next_unistd_h
='<'unistd.h
'>'
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27148 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27149 if ${gl_cv_next_unistd_h+:} false
; then :
27150 $as_echo_n "(cached) " >&6
27153 if test $ac_cv_header_unistd_h = yes; then
27158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27159 /* end confdefs.h. */
27160 #include <unistd.h>
27163 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27164 *) gl_absname_cpp
="$ac_cpp" ;;
27169 gl_dirsep_regex
='[/\\]'
27172 gl_dirsep_regex
='\/'
27175 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27176 gl_header_literal_regex
=`echo 'unistd.h' \
27177 | sed -e "$gl_make_literal_regex_sed"`
27178 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27179 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27185 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27186 sed -n "$gl_absolute_header_sed"`
27188 gl_header
=$gl_cv_absolute_unistd_h
27189 gl_cv_next_unistd_h
='"'$gl_header'"'
27191 gl_cv_next_unistd_h
='<'unistd.h
'>'
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27197 $as_echo "$gl_cv_next_unistd_h" >&6; }
27199 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27203 gl_next_as_first_directive
='<'unistd.h
'>'
27205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27206 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27208 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27213 if test $ac_cv_header_unistd_h = yes; then
27225 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
27226 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27228 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27229 if eval \
${$as_gl_Symbol+:} false
; then :
27230 $as_echo_n "(cached) " >&6
27232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h. */
27236 # include <unistd.h>
27238 /* Some systems declare various items in the wrong headers. */
27239 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27240 # include <fcntl.h>
27241 # include <stdio.h>
27242 # include <stdlib.h>
27243 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
27257 if ac_fn_c_try_compile
"$LINENO"; then :
27258 eval "$as_gl_Symbol=yes"
27260 eval "$as_gl_Symbol=no"
27262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27264 eval ac_res
=\$
$as_gl_Symbol
27265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27266 $as_echo "$ac_res" >&6; }
27267 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27268 cat >>confdefs.h
<<_ACEOF
27269 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27272 eval ac_cv_have_decl_
$gl_func=yes
27295 if test $ac_cv_have_decl_unsetenv = no
; then
27296 HAVE_DECL_UNSETENV
=0
27298 for ac_func
in unsetenv
27300 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27301 if test "x$ac_cv_func_unsetenv" = xyes
; then :
27302 cat >>confdefs.h
<<_ACEOF
27303 #define HAVE_UNSETENV 1
27309 if test $ac_cv_func_unsetenv = no
; then
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27314 $as_echo_n "checking for unsetenv() return type... " >&6; }
27315 if ${gt_cv_func_unsetenv_ret+:} false
; then :
27316 $as_echo_n "(cached) " >&6
27318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h. */
27322 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27323 #include <stdlib.h>
27328 int unsetenv (const char *name);
27338 if ac_fn_c_try_compile
"$LINENO"; then :
27339 gt_cv_func_unsetenv_ret
='int'
27341 gt_cv_func_unsetenv_ret
='void'
27343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27346 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27347 if test $gt_cv_func_unsetenv_ret = 'void'; then
27349 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27355 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27356 if ${gl_cv_func_unsetenv_works+:} false
; then :
27357 $as_echo_n "(cached) " >&6
27359 if test "$cross_compiling" = yes; then :
27361 # Guess yes on glibc systems.
27362 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27363 # If we don't know, assume the worst.
27364 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27369 /* end confdefs.h. */
27371 #include <stdlib.h>
27373 extern char **environ;
27379 char entry1[] = "a=1";
27380 char entry2[] = "b=2";
27381 char *env[] = { entry1, entry2, NULL };
27382 if (putenv ((char *) "a=1")) return 1;
27383 if (putenv (entry2)) return 2;
27386 if (getenv ("a")) return 3;
27387 if (!unsetenv ("") || errno != EINVAL) return 4;
27390 if (!getenv ("a")) return 5;
27393 if (getenv ("a")) return 6;
27399 if ac_fn_c_try_run
"$LINENO"; then :
27400 gl_cv_func_unsetenv_works
=yes
27402 gl_cv_func_unsetenv_works
=no
27404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27410 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27411 case "$gl_cv_func_unsetenv_works" in
27419 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27428 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27452 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27474 if test $gl_cv_have_include_next = yes; then
27475 gl_cv_next_wchar_h
='<'wchar.h
'>'
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27478 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27479 if ${gl_cv_next_wchar_h+:} false
; then :
27480 $as_echo_n "(cached) " >&6
27483 if test $ac_cv_header_wchar_h = yes; then
27488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27489 /* end confdefs.h. */
27493 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27494 *) gl_absname_cpp
="$ac_cpp" ;;
27499 gl_dirsep_regex
='[/\\]'
27502 gl_dirsep_regex
='\/'
27505 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27506 gl_header_literal_regex
=`echo 'wchar.h' \
27507 | sed -e "$gl_make_literal_regex_sed"`
27508 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27509 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27515 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27516 sed -n "$gl_absolute_header_sed"`
27518 gl_header
=$gl_cv_absolute_wchar_h
27519 gl_cv_next_wchar_h
='"'$gl_header'"'
27521 gl_cv_next_wchar_h
='<'wchar.h
'>'
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27527 $as_echo "$gl_cv_next_wchar_h" >&6; }
27529 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
27531 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27532 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27533 gl_next_as_first_directive
='<'wchar.h
'>'
27535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27536 gl_next_as_first_directive
=$gl_cv_next_wchar_h
27538 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
27543 if test $ac_cv_header_wchar_h = yes; then
27553 if test $gt_cv_c_wint_t = yes; then
27561 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
27562 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27564 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27565 if eval \
${$as_gl_Symbol+:} false
; then :
27566 $as_echo_n "(cached) " >&6
27568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h. */
27571 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27573 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27574 included before <wchar.h>. */
27575 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27576 # include <stddef.h>
27577 # include <stdio.h>
27591 if ac_fn_c_try_compile
"$LINENO"; then :
27592 eval "$as_gl_Symbol=yes"
27594 eval "$as_gl_Symbol=no"
27596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27598 eval ac_res
=\$
$as_gl_Symbol
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27600 $as_echo "$ac_res" >&6; }
27601 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27602 cat >>confdefs.h
<<_ACEOF
27603 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27606 eval ac_cv_have_decl_
$gl_func=yes
27622 if test $ac_cv_func_iswcntrl = yes; then
27630 if test $gt_cv_c_wint_t = yes; then
27652 if test $gl_cv_have_include_next = yes; then
27653 gl_cv_next_wctype_h
='<'wctype.h
'>'
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
27656 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
27657 if ${gl_cv_next_wctype_h+:} false
; then :
27658 $as_echo_n "(cached) " >&6
27661 if test $ac_cv_header_wctype_h = yes; then
27666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27667 /* end confdefs.h. */
27668 #include <wctype.h>
27671 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27672 *) gl_absname_cpp
="$ac_cpp" ;;
27677 gl_dirsep_regex
='[/\\]'
27680 gl_dirsep_regex
='\/'
27683 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27684 gl_header_literal_regex
=`echo 'wctype.h' \
27685 | sed -e "$gl_make_literal_regex_sed"`
27686 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27687 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27693 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27694 sed -n "$gl_absolute_header_sed"`
27696 gl_header
=$gl_cv_absolute_wctype_h
27697 gl_cv_next_wctype_h
='"'$gl_header'"'
27699 gl_cv_next_wctype_h
='<'wctype.h
'>'
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
27705 $as_echo "$gl_cv_next_wctype_h" >&6; }
27707 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
27709 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27711 gl_next_as_first_directive
='<'wctype.h
'>'
27713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27714 gl_next_as_first_directive
=$gl_cv_next_wctype_h
27716 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
27721 if test $ac_cv_header_wctype_h = yes; then
27722 if test $ac_cv_func_iswcntrl = yes; then
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
27724 $as_echo_n "checking whether iswcntrl works... " >&6; }
27725 if ${gl_cv_func_iswcntrl_works+:} false
; then :
27726 $as_echo_n "(cached) " >&6
27729 if test "$cross_compiling" = yes; then :
27730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27731 /* end confdefs.h. */
27732 #include <stdlib.h>
27733 #if __GNU_LIBRARY__ == 1
27734 Linux libc5 i18n is broken.
27744 if ac_fn_c_try_compile
"$LINENO"; then :
27745 gl_cv_func_iswcntrl_works
="guessing yes"
27747 gl_cv_func_iswcntrl_works
="guessing no"
27749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h. */
27755 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27756 included before <wchar.h>.
27757 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27758 must be included before <wchar.h>. */
27759 #include <stddef.h>
27763 #include <wctype.h>
27764 int main () { return iswprint ('x') == 0; }
27767 if ac_fn_c_try_run
"$LINENO"; then :
27768 gl_cv_func_iswcntrl_works
=yes
27770 gl_cv_func_iswcntrl_works
=no
27772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
27779 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
27787 case "$gl_cv_func_iswcntrl_works" in
27788 *yes) REPLACE_ISWCNTRL
=0 ;;
27789 *) REPLACE_ISWCNTRL
=1 ;;
27793 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
27797 if test $REPLACE_ISWCNTRL = 1; then
27800 for ac_func
in towlower
27802 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
27803 if test "x$ac_cv_func_towlower" = xyes
; then :
27804 cat >>confdefs.h
<<_ACEOF
27805 #define HAVE_TOWLOWER 1
27811 if test $ac_cv_func_towlower = yes; then
27814 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27815 included before <wchar.h>.
27816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27817 must be included before <wchar.h>. */
27818 #include <stddef.h>
27823 # include <wctype.h>
27827 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
27833 cat >>confdefs.h
<<_ACEOF
27834 #define HAVE_DECL_TOWLOWER $ac_have_decl
27837 if test $ac_cv_have_decl_towlower = yes; then
27846 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
27851 $as_echo_n "checking for wctype_t... " >&6; }
27852 if ${gl_cv_type_wctype_t+:} false
; then :
27853 $as_echo_n "(cached) " >&6
27855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h. */
27857 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27858 included before <wchar.h>.
27859 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27860 must be included before <wchar.h>. */
27861 #include <stddef.h>
27866 # include <wctype.h>
27878 if ac_fn_c_try_compile
"$LINENO"; then :
27879 gl_cv_type_wctype_t
=yes
27881 gl_cv_type_wctype_t
=no
27883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
27887 $as_echo "$gl_cv_type_wctype_t" >&6; }
27888 if test $gl_cv_type_wctype_t = no
; then
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
27893 $as_echo_n "checking for wctrans_t... " >&6; }
27894 if ${gl_cv_type_wctrans_t+:} false
; then :
27895 $as_echo_n "(cached) " >&6
27897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27898 /* end confdefs.h. */
27899 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27900 included before <wchar.h>.
27901 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27902 must be included before <wchar.h>. */
27903 #include <stddef.h>
27907 #include <wctype.h>
27918 if ac_fn_c_try_compile
"$LINENO"; then :
27919 gl_cv_type_wctrans_t
=yes
27921 gl_cv_type_wctrans_t
=no
27923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
27927 $as_echo "$gl_cv_type_wctrans_t" >&6; }
27928 if test $gl_cv_type_wctrans_t = no
; then
27933 for gl_func
in wctype iswctype wctrans towctrans
; do
27934 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27936 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27937 if eval \
${$as_gl_Symbol+:} false
; then :
27938 $as_echo_n "(cached) " >&6
27940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27941 /* end confdefs.h. */
27943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27946 included before <wchar.h>. */
27947 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27948 # include <stddef.h>
27949 # include <stdio.h>
27951 # include <wchar.h>
27953 #include <wctype.h>
27964 if ac_fn_c_try_compile
"$LINENO"; then :
27965 eval "$as_gl_Symbol=yes"
27967 eval "$as_gl_Symbol=no"
27969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27971 eval ac_res
=\$
$as_gl_Symbol
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27973 $as_echo "$ac_res" >&6; }
27974 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27975 cat >>confdefs.h
<<_ACEOF
27976 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27979 eval ac_cv_have_decl_
$gl_func=yes
27984 # End of code from modules
28005 gl_source_base
='tests'
28006 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
28008 gl_module_indicator_condition
=$gltests_WITNESS
28018 LIBGNU_LIBDEPS
="$gl_libdeps"
28020 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28024 # We don't use automake, but gnulib does. This line lets us generate
28026 am__api_version
='1.15'
28028 # Find a good install program. We prefer a C program (faster),
28029 # so one script is as good as another. But avoid the broken or
28030 # incompatible versions:
28031 # SysV /etc/install, /usr/sbin/install
28032 # SunOS /usr/etc/install
28033 # IRIX /sbin/install
28035 # AmigaOS /C/install, which installs bootblocks on floppy discs
28036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
28037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
28038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
28039 # OS/2's system install, which has a completely different semantic
28040 # ./install, which can be erroneously created by make from ./install.sh.
28041 # Reject install programs that cannot install multiple files.
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
28043 $as_echo_n "checking for a BSD-compatible install... " >&6; }
28044 if test -z "$INSTALL"; then
28045 if ${ac_cv_path_install+:} false
; then :
28046 $as_echo_n "(cached) " >&6
28048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28049 for as_dir
in $PATH
28052 test -z "$as_dir" && as_dir
=.
28053 # Account for people who put trailing slashes in PATH elements.
28054 case $as_dir/ in #((
28055 .
/ | .
// |
/[cC
]/* | \
28056 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
28057 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
28060 # OSF1 and SCO ODT 3.0 have their own names for install.
28061 # Don't use installbsd from OSF since it installs stuff as root
28063 for ac_prog
in ginstall scoinst
install; do
28064 for ac_exec_ext
in '' $ac_executable_extensions; do
28065 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
28066 if test $ac_prog = install &&
28067 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
28068 # AIX install. It has an incompatible calling convention.
28070 elif test $ac_prog = install &&
28071 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
28072 # program-specific install script used by HP pwplus--don't use.
28075 rm -rf conftest.one conftest.two conftest.dir
28076 echo one
> conftest.one
28077 echo two
> conftest.two
28079 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
28080 test -s conftest.one
&& test -s conftest.two
&&
28081 test -s conftest.dir
/conftest.one
&&
28082 test -s conftest.dir
/conftest.two
28084 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
28097 rm -rf conftest.one conftest.two conftest.dir
28100 if test "${ac_cv_path_install+set}" = set; then
28101 INSTALL
=$ac_cv_path_install
28103 # As a last resort, use the slow shell script. Don't cache a
28104 # value for INSTALL within a source directory, because that will
28105 # break other packages using the cache if that directory is
28106 # removed, or if the value is a relative name.
28107 INSTALL
=$ac_install_sh
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
28111 $as_echo "$INSTALL" >&6; }
28113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
28114 # It thinks the first close brace ends the variable substitution.
28115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
28117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
28119 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
28122 $as_echo_n "checking whether build environment is sane... " >&6; }
28123 # Reject unsafe characters in $srcdir or the absolute working directory
28124 # name. Accept space and tab only in the latter.
28128 *[\\\"\
#\$\&\'\`$am_lf]*)
28129 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
28132 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
28133 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
28136 # Do 'set' in a subshell so we don't clobber the current shell's
28137 # arguments. Must try -L first in case configure is actually a
28138 # symlink; some systems play weird games with the mod time of symlinks
28139 # (eg FreeBSD returns the mod time of the symlink's containing
28143 for am_try
in 1 2; do
28144 echo "timestamp, slept: $am_has_slept" > conftest.
file
28145 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28146 if test "$*" = "X"; then
28148 set X
`ls -t "$srcdir/configure" conftest.file`
28150 if test "$*" != "X $srcdir/configure conftest.file" \
28151 && test "$*" != "X conftest.file $srcdir/configure"; then
28153 # If neither matched, then we have a broken ls. This can happen
28154 # if, for instance, CONFIG_SHELL is bash and it inherits a
28155 # broken ls alias from the environment. This has actually
28156 # happened. Such a system could not be considered "sane".
28157 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
28158 alias in your environment" "$LINENO" 5
28160 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
28167 test "$2" = conftest.
file
28173 as_fn_error $?
"newly created file is older than distributed files!
28174 Check your system clock" "$LINENO" 5
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28177 $as_echo "yes" >&6; }
28178 # If we didn't sleep, we still need to ensure time stamps of config.status and
28179 # generated files are strictly newer.
28181 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
28186 rm -f conftest.
file
28188 test "$program_prefix" != NONE
&&
28189 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
28190 # Use a double $ so make ignores it.
28191 test "$program_suffix" != NONE
&&
28192 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
28193 # Double any \ or $.
28194 # By default was `s,x,x', remove it if useless.
28195 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
28196 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
28198 if test x
"${MISSING+set}" != xset
; then
28199 case $am_aux_dir in
28201 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
28203 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
28206 # Use eval to expand $SHELL
28207 if eval "$MISSING --is-lightweight"; then
28208 am_missing_run
="$MISSING "
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
28212 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
28215 if test x
"${install_sh+set}" != xset
; then
28216 case $am_aux_dir in
28218 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
28220 install_sh
="\${SHELL} $am_aux_dir/install-sh"
28224 # Installed binaries are usually stripped using 'strip' when the user
28225 # run "make install-strip". However 'strip' might not be the right
28226 # tool to use in cross-compilation environments, therefore Automake
28227 # will honor the 'STRIP' environment variable to overrule this program.
28228 if test "$cross_compiling" != no
; then
28229 if test -n "$ac_tool_prefix"; then
28230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
28231 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28233 $as_echo_n "checking for $ac_word... " >&6; }
28234 if ${ac_cv_prog_STRIP+:} false
; then :
28235 $as_echo_n "(cached) " >&6
28237 if test -n "$STRIP"; then
28238 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
28240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28241 for as_dir
in $PATH
28244 test -z "$as_dir" && as_dir
=.
28245 for ac_exec_ext
in '' $ac_executable_extensions; do
28246 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28247 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
28248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28257 STRIP
=$ac_cv_prog_STRIP
28258 if test -n "$STRIP"; then
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
28260 $as_echo "$STRIP" >&6; }
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28263 $as_echo "no" >&6; }
28268 if test -z "$ac_cv_prog_STRIP"; then
28270 # Extract the first word of "strip", so it can be a program name with args.
28271 set dummy strip
; ac_word
=$2
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28273 $as_echo_n "checking for $ac_word... " >&6; }
28274 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
28275 $as_echo_n "(cached) " >&6
28277 if test -n "$ac_ct_STRIP"; then
28278 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
28280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28281 for as_dir
in $PATH
28284 test -z "$as_dir" && as_dir
=.
28285 for ac_exec_ext
in '' $ac_executable_extensions; do
28286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28287 ac_cv_prog_ac_ct_STRIP
="strip"
28288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28297 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
28298 if test -n "$ac_ct_STRIP"; then
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
28300 $as_echo "$ac_ct_STRIP" >&6; }
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303 $as_echo "no" >&6; }
28306 if test "x$ac_ct_STRIP" = x
; then
28309 case $cross_compiling:$ac_tool_warned in
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28313 ac_tool_warned
=yes ;;
28318 STRIP
="$ac_cv_prog_STRIP"
28322 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
28324 for ac_prog
in gawk mawk nawk
awk
28326 # Extract the first word of "$ac_prog", so it can be a program name with args.
28327 set dummy
$ac_prog; ac_word
=$2
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28329 $as_echo_n "checking for $ac_word... " >&6; }
28330 if ${ac_cv_prog_AWK+:} false
; then :
28331 $as_echo_n "(cached) " >&6
28333 if test -n "$AWK"; then
28334 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
28336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28337 for as_dir
in $PATH
28340 test -z "$as_dir" && as_dir
=.
28341 for ac_exec_ext
in '' $ac_executable_extensions; do
28342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28343 ac_cv_prog_AWK
="$ac_prog"
28344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28353 AWK
=$ac_cv_prog_AWK
28354 if test -n "$AWK"; then
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28356 $as_echo "$AWK" >&6; }
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28359 $as_echo "no" >&6; }
28363 test -n "$AWK" && break
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28367 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28369 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28370 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
28371 $as_echo_n "(cached) " >&6
28373 cat >conftest.
make <<\_ACEOF
28376 @
echo '@@@%%%=$(MAKE)=@@@%%%'
28378 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
28380 *@@@
%%%=?
*=@@@
%%%*)
28381 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
28383 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
28385 rm -f conftest.
make
28387 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28389 $as_echo "yes" >&6; }
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28393 $as_echo "no" >&6; }
28394 SET_MAKE
="MAKE=${MAKE-make}"
28397 rm -rf .tst
2>/dev
/null
28398 mkdir .tst
2>/dev
/null
28399 if test -d .tst
; then
28404 rmdir .tst
2>/dev
/null
28406 DEPDIR
="${am__leading_dot}deps"
28408 ac_config_commands
="$ac_config_commands depfiles"
28411 am_make
=${MAKE-make}
28412 cat > confinc
<< 'END'
28414 @
echo this is the am__doit target
28417 # If we don't find an include directive, just comment out the code.
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
28419 $as_echo_n "checking for style of include used by $am_make... " >&6; }
28423 # First try GNU make style include.
28424 echo "include confinc" > confmf
28425 # Ignore all kinds of additional output from 'make'.
28426 case `$am_make -s -f confmf 2> /dev/null` in #(
28427 *the\ am__doit\ target
*)
28428 am__include
=include
28433 # Now try BSD make style include.
28434 if test "$am__include" = "#"; then
28435 echo '.include "confinc"' > confmf
28436 case `$am_make -s -f confmf 2> /dev/null` in #(
28437 *the\ am__doit\ target
*)
28438 am__include
=.include
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
28447 $as_echo "$_am_result" >&6; }
28448 rm -f confinc confmf
28450 # Check whether --enable-dependency-tracking was given.
28451 if test "${enable_dependency_tracking+set}" = set; then :
28452 enableval
=$enable_dependency_tracking;
28455 if test "x$enable_dependency_tracking" != xno
; then
28456 am_depcomp
="$ac_aux_dir/depcomp"
28460 if test "x$enable_dependency_tracking" != xno; then
28469 # Check whether --enable-silent-rules was given.
28470 if test "${enable_silent_rules+set}" = set; then :
28471 enableval
=$enable_silent_rules;
28474 case $enable_silent_rules in # (((
28475 yes) AM_DEFAULT_VERBOSITY
=0;;
28476 no
) AM_DEFAULT_VERBOSITY
=1;;
28477 *) AM_DEFAULT_VERBOSITY
=1;;
28479 am_make
=${MAKE-make}
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28481 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28482 if ${am_cv_make_support_nested_variables+:} false
; then :
28483 $as_echo_n "(cached) " >&6
28485 if $as_echo 'TRUE=$(BAR$(V))
28491 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28492 am_cv_make_support_nested_variables
=yes
28494 am_cv_make_support_nested_variables
=no
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28498 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28499 if test $am_cv_make_support_nested_variables = yes; then
28501 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28503 AM_V
=$AM_DEFAULT_VERBOSITY
28504 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28508 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28509 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28510 # is not polluted with repeated "-I."
28511 am__isrc
=' -I$(srcdir)'
28512 # test to see if srcdir already configured
28513 if test -f $srcdir/config.status
; then
28514 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28518 # test whether we have cygpath
28519 if test -z "$CYGPATH_W"; then
28520 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
28521 CYGPATH_W
='cygpath -w'
28528 # Define the identity of the package.
28530 VERSION
='UNUSED-VERSION'
28533 # Some tools Automake needs.
28535 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
28538 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
28541 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
28544 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
28547 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
28549 # For better backward compatibility. To be removed once Automake 1.9.x
28550 # dies out for good. For more background, see:
28551 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
28552 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28553 mkdir_p
='$(MKDIR_P)'
28555 # We need awk for the "check" target (and possibly the TAP driver). The
28556 # system "awk" is bad on some platforms.
28557 # Always define AMTAR for backward compatibility. Yes, it's still used
28558 # in the wild :-( We should find a proper way to deprecate it ...
28559 AMTAR
='$${TAR-tar}'
28562 # We'll loop over all known methods to create a tar archive until one works.
28563 _am_tools
='gnutar pax cpio none'
28565 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
28571 depcc
="$CC" am_compiler_list
=
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28574 $as_echo_n "checking dependency style of $depcc... " >&6; }
28575 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
28576 $as_echo_n "(cached) " >&6
28578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28579 # We make a subdir and do the tests there. Otherwise we can end up
28580 # making bogus files that we don't know about and never remove. For
28581 # instance it was reported that on HP-UX the gcc test will end up
28582 # making a dummy file named 'D' -- because '-MD' means "put the output
28584 rm -rf conftest.dir
28586 # Copy depcomp to subdir because otherwise we won't find it if we're
28587 # using a relative directory.
28588 cp "$am_depcomp" conftest.dir
28590 # We will build objects and dependencies in a subdirectory because
28591 # it helps to detect inapplicable dependency modes. For instance
28592 # both Tru64's cc and ICC support -MD to output dependencies as a
28593 # side effect of compilation, but ICC will put the dependencies in
28594 # the current directory while Tru64 will put them in the object
28598 am_cv_CC_dependencies_compiler_type
=none
28599 if test "$am_compiler_list" = ""; then
28600 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28602 am__universal
=false
28603 case " $depcc " in #(
28604 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
28607 for depmode
in $am_compiler_list; do
28608 # Setup a source with many dependencies, because some compilers
28609 # like to wrap large dependency lists on column 80 (with \), and
28610 # we should not choose a depcomp mode which is confused by this.
28612 # We need to recreate these files for each test, as the compiler may
28613 # overwrite some of them when testing with obscure command lines.
28614 # This happens at least with the AIX C compiler.
28616 for i
in 1 2 3 4 5 6; do
28617 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
28618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28619 # Solaris 10 /bin/sh.
28620 echo '/* dummy */' > sub
/conftst
$i.h
28622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
28625 # mode. It turns out that the SunPro C++ compiler does not properly
28626 # handle '-M -o', and we need to detect this. Also, some Intel
28627 # versions had trouble with output in subdirs.
28628 am__obj
=sub
/conftest.
${OBJEXT-o}
28629 am__minus_obj
="-o $am__obj"
28632 # This depmode causes a compiler race in universal mode.
28633 test "$am__universal" = false ||
continue
28636 # After this tag, mechanisms are not by side-effect, so they'll
28637 # only be used when explicitly requested.
28638 if test "x$enable_dependency_tracking" = xyes
; then
28644 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
28645 # This compiler won't grok '-c -o', but also, the minuso test has
28646 # not run yet. These depmodes are late enough in the game, and
28647 # so weak that their functioning should not be impacted.
28648 am__obj
=conftest.
${OBJEXT-o}
28653 if depmode
=$depmode \
28654 source=sub
/conftest.c object
=$am__obj \
28655 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
28656 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
28657 >/dev
/null
2>conftest.err
&&
28658 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28659 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28660 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
28661 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
28662 # icc doesn't choke on unknown options, it will just issue warnings
28663 # or remarks (even with -Werror). So we grep stderr for any message
28664 # that says an option was ignored or not supported.
28665 # When given -MP, icc 7.0 and 7.1 complain thusly:
28666 # icc: Command line warning: ignoring option '-M'; no argument required
28667 # The diagnosis changed in icc 8.0:
28668 # icc: Command line remark: option '-MP' not supported
28669 if (grep 'ignoring option' conftest.err ||
28670 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
28671 am_cv_CC_dependencies_compiler_type
=$depmode
28678 rm -rf conftest.dir
28680 am_cv_CC_dependencies_compiler_type
=none
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
28685 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
28686 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
28689 test "x$enable_dependency_tracking" != xno \
28690 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
28691 am__fastdepCC_TRUE
=
28692 am__fastdepCC_FALSE
='#'
28694 am__fastdepCC_TRUE
='#'
28695 am__fastdepCC_FALSE
=
28700 # POSIX will say in a future version that running "rm -f" with no argument
28701 # is OK; and we want to be able to make that assumption in our Makefile
28702 # recipes. So use an aggressive probe to check that the usage we want is
28703 # actually supported "in the wild" to an acceptable degree.
28704 # See automake bug#10828.
28705 # To make any issue more visible, cause the running configure to be aborted
28706 # by default if the 'rm' program in use doesn't match our expectations; the
28707 # user can still override this though.
28708 if rm -f && rm -fr && rm -rf; then : OK
; else
28712 Your 'rm' program seems unable to run without file operands specified
28713 on the command line, even when the '-f' option is present. This is contrary
28714 to the behaviour of most rm programs out there, and not conforming with
28715 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
28717 Please tell bug-automake@gnu.org about your system, including the value
28718 of your $PATH and any error possibly output before this message. This
28719 can help us improve future automake versions.
28722 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
28723 echo 'Configuration will proceed anyway, since you have set the' >&2
28724 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
28728 Aborting the configuration process, to ensure you take notice of the issue.
28730 You can download and install GNU coreutils to get an 'rm' implementation
28731 that behaves properly: <http://www.gnu.org/software/coreutils/>.
28733 If you want to complete the configuration process using your problematic
28734 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
28735 to "yes", and re-run configure.
28738 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
28743 # Check whether --enable-silent-rules was given.
28744 if test "${enable_silent_rules+set}" = set; then :
28745 enableval
=$enable_silent_rules;
28748 case $enable_silent_rules in # (((
28749 yes) AM_DEFAULT_VERBOSITY
=0;;
28750 no
) AM_DEFAULT_VERBOSITY
=1;;
28751 *) AM_DEFAULT_VERBOSITY
=0;;
28753 am_make
=${MAKE-make}
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28755 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28756 if ${am_cv_make_support_nested_variables+:} false
; then :
28757 $as_echo_n "(cached) " >&6
28759 if $as_echo 'TRUE=$(BAR$(V))
28765 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28766 am_cv_make_support_nested_variables
=yes
28768 am_cv_make_support_nested_variables
=no
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28772 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28773 if test $am_cv_make_support_nested_variables = yes; then
28775 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28777 AM_V
=$AM_DEFAULT_VERBOSITY
28778 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28783 # --------------------- #
28784 # Checks for programs. #
28785 # --------------------- #
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
28789 $as_echo_n "checking whether ln -s works... " >&6; }
28791 if test "$LN_S" = "ln -s"; then
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28793 $as_echo "yes" >&6; }
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
28796 $as_echo "no, using $LN_S" >&6; }
28799 if test -n "$ac_tool_prefix"; then
28800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
28801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28803 $as_echo_n "checking for $ac_word... " >&6; }
28804 if ${ac_cv_prog_RANLIB+:} false; then :
28805 $as_echo_n "(cached) " >&6
28807 if test -n "$RANLIB"; then
28808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
28810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28811 for as_dir in $PATH
28814 test -z "$as_dir" && as_dir=.
28815 for ac_exec_ext in '' $ac_executable_extensions; do
28816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
28818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28827 RANLIB=$ac_cv_prog_RANLIB
28828 if test -n "$RANLIB"; then
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
28830 $as_echo "$RANLIB" >&6; }
28832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28833 $as_echo "no" >&6; }
28838 if test -z "$ac_cv_prog_RANLIB"; then
28839 ac_ct_RANLIB=$RANLIB
28840 # Extract the first word of "ranlib", so it can be a program name with args.
28841 set dummy ranlib; ac_word=$2
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28843 $as_echo_n "checking for $ac_word... " >&6; }
28844 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
28845 $as_echo_n "(cached) " >&6
28847 if test -n "$ac_ct_RANLIB"; then
28848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
28850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28851 for as_dir in $PATH
28854 test -z "$as_dir" && as_dir=.
28855 for ac_exec_ext in '' $ac_executable_extensions; do
28856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28857 ac_cv_prog_ac_ct_RANLIB="ranlib"
28858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28867 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
28868 if test -n "$ac_ct_RANLIB"; then
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
28870 $as_echo "$ac_ct_RANLIB" >&6; }
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28873 $as_echo "no" >&6; }
28876 if test "x$ac_ct_RANLIB" = x; then
28879 case $cross_compiling:$ac_tool_warned in
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28883 ac_tool_warned=yes ;;
28885 RANLIB=$ac_ct_RANLIB
28888 RANLIB="$ac_cv_prog_RANLIB"
28892 if test -n "$ac_tool_prefix"; then
28893 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
28894 set dummy ${ac_tool_prefix}ar; ac_word=$2
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28896 $as_echo_n "checking for $ac_word... " >&6; }
28897 if ${ac_cv_prog_AR+:} false; then :
28898 $as_echo_n "(cached) " >&6
28900 if test -n "$AR"; then
28901 ac_cv_prog_AR="$AR" # Let the user override the test.
28903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28904 for as_dir in $PATH
28907 test -z "$as_dir" && as_dir=.
28908 for ac_exec_ext in '' $ac_executable_extensions; do
28909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28910 ac_cv_prog_AR="${ac_tool_prefix}ar"
28911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28921 if test -n "$AR"; then
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
28923 $as_echo "$AR" >&6; }
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28926 $as_echo "no" >&6; }
28931 if test -z "$ac_cv_prog_AR"; then
28933 # Extract the first word of "ar", so it can be a program name with args.
28934 set dummy ar; ac_word=$2
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28936 $as_echo_n "checking for $ac_word... " >&6; }
28937 if ${ac_cv_prog_ac_ct_AR+:} false; then :
28938 $as_echo_n "(cached) " >&6
28940 if test -n "$ac_ct_AR"; then
28941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944 for as_dir in $PATH
28947 test -z "$as_dir" && as_dir=.
28948 for ac_exec_ext in '' $ac_executable_extensions; do
28949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28950 ac_cv_prog_ac_ct_AR="ar"
28951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
28961 if test -n "$ac_ct_AR"; then
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
28963 $as_echo "$ac_ct_AR" >&6; }
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28966 $as_echo "no" >&6; }
28969 if test "x$ac_ct_AR" = x; then
28972 case $cross_compiling:$ac_tool_warned in
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28976 ac_tool_warned=yes ;;
28981 AR="$ac_cv_prog_AR"
28985 # ---------------------- #
28986 # Checks for libraries. #
28987 # ---------------------- #
28989 ac_config_files="$ac_config_files Makefile import/Makefile"
28991 ac_config_commands="$ac_config_commands default"
28993 cat >confcache <<\_ACEOF
28994 # This file is a shell script that caches the results of configure
28995 # tests run on this system so they can be shared between configure
28996 # scripts and configure runs, see configure's option
--config-cache.
28997 # It is not useful on other systems. If it contains results you don't
28998 # want to keep, you may remove or edit it.
29000 # config.status only pays attention to the cache file if you give it
29001 # the --recheck option to rerun configure.
29003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29005 # following values.
29009 # The following way of writing the cache mishandles newlines in values,
29010 # but we know of no workaround that is simple, portable, and efficient.
29011 # So, we kill variables containing newlines.
29012 # Ultrix sh set writes to stderr and can't be redirected directly,
29013 # and sets the high bit in the cache file unless we assign to the vars.
29015 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29016 eval ac_val
=\$
$ac_var
29020 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29024 _ | IFS | as_nl
) ;; #(
29025 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29026 *) { eval $ac_var=; unset $ac_var;} ;;
29032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29033 *${as_nl}ac_space
=\
*)
29034 # `set' does not quote correctly, so add quotes: double-quote
29035 # substitution turns \\\\ into \\, and sed turns \\ into \.
29038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29041 # `set' quotes correctly as required by POSIX, so do not add quotes.
29042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29055 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29056 if test -w "$cache_file"; then
29057 if test "x$cache_file" != "x/dev/null"; then
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29059 $as_echo "$as_me: updating cache $cache_file" >&6;}
29060 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
29061 cat confcache
>"$cache_file"
29063 case $cache_file in #(
29065 mv -f confcache
"$cache_file"$$
&&
29066 mv -f "$cache_file"$$
"$cache_file" ;; #(
29068 mv -f confcache
"$cache_file" ;;
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29079 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29080 # Let make expand exec_prefix.
29081 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29083 DEFS
=-DHAVE_CONFIG_H
29087 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29088 # 1. Remove the extension, and $U if already installed.
29089 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29090 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29092 # will be set to the directory where LIBOBJS objects are built.
29093 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29094 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29096 LIBOBJS
=$ac_libobjs
29098 LTLIBOBJS
=$ac_ltlibobjs
29101 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29102 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
29103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29105 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29106 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
29107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29109 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29110 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29113 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29114 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29117 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
29118 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
29119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29121 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
29122 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
29123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29125 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
29126 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
29127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29129 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29130 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29133 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29134 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29137 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29138 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29143 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
29144 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
29145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29147 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29148 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29151 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29152 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29155 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29156 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29162 if test -n "$gl_LIBOBJS"; then
29163 # Remove the extension.
29164 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29165 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29166 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29167 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29170 gl_LIBOBJS
=$gl_libobjs
29172 gl_LTLIBOBJS
=$gl_ltlibobjs
29178 if test -n "$gltests_LIBOBJS"; then
29179 # Remove the extension.
29180 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29181 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29182 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29183 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29186 gltests_LIBOBJS
=$gltests_libobjs
29188 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29192 $as_echo_n "checking that generated files are newer than configure... " >&6; }
29193 if test -n "$am_sleep_pid"; then
29194 # Hide warnings about reused PIDs.
29195 wait $am_sleep_pid 2>/dev
/null
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
29198 $as_echo "done" >&6; }
29199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29200 as_fn_error $?
"conditional \"AMDEP\" was never defined.
29201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29204 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
29205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29207 if test -n "$EXEEXT"; then
29209 am__EXEEXT_FALSE
='#'
29211 am__EXEEXT_TRUE
='#'
29216 : "${CONFIG_STATUS=./config.status}"
29218 ac_clean_files_save
=$ac_clean_files
29219 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29225 # Generated by $as_me.
29226 # Run this file to recreate the current configuration.
29227 # Compiler output produced by configure, useful for debugging
29228 # configure, is in config.log if it exists.
29231 ac_cs_recheck=false
29234 SHELL=\${CONFIG_SHELL-$SHELL}
29237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29238 ## -------------------- ##
29239 ## M4sh Initialization. ##
29240 ## -------------------- ##
29242 # Be more Bourne compatible
29243 DUALCASE
=1; export DUALCASE
# for MKS sh
29244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29247 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29248 # is contrary to our usage. Disable this feature.
29249 alias -g '${1+"$@"}'='"$@"'
29250 setopt NO_GLOB_SUBST
29252 case `(set -o) 2>/dev/null` in #(
29264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29265 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29268 # Prefer a ksh shell builtin over an external printf program on Solaris,
29269 # but without wasting forks for bash or zsh.
29270 if test -z "$BASH_VERSION$ZSH_VERSION" \
29271 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29272 as_echo='print
-r --'
29273 as_echo_n='print
-rn --'
29274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29275 as_echo='printf %s
\n'
29276 as_echo_n='printf %s
'
29278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29279 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29280 as_echo_n='/usr
/ucb
/echo -n'
29282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29283 as_echo_n_body='eval
29287 expr "X$arg" : "X\\(.*\\)$as_nl";
29288 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29290 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29292 export as_echo_n_body
29293 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29295 export as_echo_body
29296 as_echo='sh
-c $as_echo_body as_echo
'
29299 # The user is always right.
29300 if test "${PATH_SEPARATOR+set}" != set; then
29302 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29303 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29310 # We need space, tab and new line, in precisely that order. Quoting is
29311 # there to prevent editors from complaining about space-tab.
29312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29313 # splitting by setting IFS to empty value.)
29316 # Find who we are. Look in the path if we contain no directory separator.
29319 *[\\/]* ) as_myself=$0 ;;
29320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29321 for as_dir in $PATH
29324 test -z "$as_dir" && as_dir=.
29325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29331 # We did not find ourselves, most probably we were run as `sh COMMAND'
29332 # in which case we are not to be found in the path.
29333 if test "x$as_myself" = x
; then
29336 if test ! -f "$as_myself"; then
29337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29341 # Unset variables that we do not need and which cause bugs (e.g. in
29342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29343 # suppresses any "Segmentation fault" message there. '((' could
29344 # trigger a bug in pdksh 5.2.14.
29345 for as_var
in BASH_ENV ENV MAIL MAILPATH
29346 do eval test x\
${$as_var+set} = xset \
29347 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29360 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29364 # ----------------------------------------
29365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29367 # script with STATUS, using 1 if that was 0.
29370 as_status
=$1; test $as_status -eq 0 && as_status
=1
29372 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29375 $as_echo "$as_me: error: $2" >&2
29376 as_fn_exit
$as_status
29380 # as_fn_set_status STATUS
29381 # -----------------------
29382 # Set $? to STATUS, without forking.
29383 as_fn_set_status
()
29386 } # as_fn_set_status
29388 # as_fn_exit STATUS
29389 # -----------------
29390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29394 as_fn_set_status
$1
29400 # Portably unset VAR.
29403 { eval $1=; unset $1;}
29405 as_unset
=as_fn_unset
29406 # as_fn_append VAR VALUE
29407 # ----------------------
29408 # Append the text in VALUE to the end of the definition contained in VAR. Take
29409 # advantage of any shell optimizations that allow amortized linear growth over
29410 # repeated appends, instead of the typical quadratic growth present in naive
29412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29413 eval 'as_fn_append ()
29424 # as_fn_arith ARG...
29425 # ------------------
29426 # Perform arithmetic evaluation on the ARGs, and store the result in the
29427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29428 # must be portable across $(()) and expr.
29429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29430 eval 'as_fn_arith ()
29437 as_val
=`expr "$@" || test $? -eq 1`
29442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29450 as_basename
=basename
29455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29461 as_me
=`$as_basename -- "$0" ||
29462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29463 X"$0" : 'X\(//\)$' \| \
29464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29466 sed '/^.*\/\([^/][^/]*\)\/*$/{
29480 # Avoid depending upon Character Ranges.
29481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29484 as_cr_digits
='0123456789'
29485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29487 ECHO_C
= ECHO_N
= ECHO_T
=
29488 case `echo -n x` in #(((((
29490 case `echo 'xy\c'` in
29491 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29493 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29500 rm -f conf$$ conf$$.exe conf$$.
file
29501 if test -d conf$$.dir
; then
29502 rm -f conf$$.dir
/conf$$.
file
29505 mkdir conf$$.dir
2>/dev
/null
29507 if (echo >conf$$.
file) 2>/dev
/null
; then
29508 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29510 # ... but there are two gotchas:
29511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29513 # In both cases, we have to default to `cp -pR'.
29514 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29516 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29524 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29525 rmdir conf$$.dir
2>/dev
/null
29530 # Create "$as_dir" as a directory, including parents if necessary.
29535 -*) as_dir
=.
/$as_dir;;
29537 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29541 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29542 *) as_qdir
=$as_dir;;
29544 as_dirs
="'$as_qdir' $as_dirs"
29545 as_dir
=`$as_dirname -- "$as_dir" ||
29546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29547 X"$as_dir" : 'X\(//\)[^/]' \| \
29548 X"$as_dir" : 'X\(//\)$' \| \
29549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29550 $as_echo X"$as_dir" |
29551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29555 /^X\(\/\/\)[^/].*/{
29568 test -d "$as_dir" && break
29570 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29571 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29575 if mkdir
-p .
2>/dev
/null
; then
29576 as_mkdir_p
='mkdir -p "$as_dir"'
29578 test -d .
/-p && rmdir .
/-p
29583 # as_fn_executable_p FILE
29584 # -----------------------
29585 # Test if FILE is an executable regular file.
29586 as_fn_executable_p
()
29588 test -f "$1" && test -x "$1"
29589 } # as_fn_executable_p
29590 as_test_x
='test -x'
29591 as_executable_p
=as_fn_executable_p
29593 # Sed expression to map a string onto a valid CPP name.
29594 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29596 # Sed expression to map a string onto a valid variable name.
29597 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29601 ## ----------------------------------- ##
29602 ## Main body of $CONFIG_STATUS script. ##
29603 ## ----------------------------------- ##
29605 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29608 # Save the log message, to keep $0 and so on meaningful, and to
29609 # report actual input values of CONFIG_FILES etc. instead of their
29610 # values after options handling.
29612 This file was extended by libgnu $as_me UNUSED-VERSION, which was
29613 generated by GNU Autoconf 2.69. Invocation command line was
29615 CONFIG_FILES = $CONFIG_FILES
29616 CONFIG_HEADERS = $CONFIG_HEADERS
29617 CONFIG_LINKS = $CONFIG_LINKS
29618 CONFIG_COMMANDS = $CONFIG_COMMANDS
29621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29626 case $ac_config_files in *"
29627 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29630 case $ac_config_headers in *"
29631 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29636 # Files that config.status was made for.
29637 config_files="$ac_config_files"
29638 config_headers="$ac_config_headers"
29639 config_commands="$ac_config_commands"
29643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29645 \`$as_me' instantiates files and other configuration actions
29646 from templates according to the current configuration. Unless the files
29647 and actions are specified as TAGs, all are instantiated by default.
29649 Usage: $0 [OPTION]... [TAG]...
29651 -h, --help print this help, then exit
29652 -V, --version print version number and configuration settings, then exit
29653 --config print configuration, then exit
29654 -q, --quiet, --silent
29655 do not print progress messages
29656 -d, --debug don't remove temporary files
29657 --recheck update $as_me by reconfiguring in the same conditions
29658 --file=FILE[:TEMPLATE]
29659 instantiate the configuration file FILE
29660 --header=FILE[:TEMPLATE]
29661 instantiate the configuration header FILE
29663 Configuration files:
29666 Configuration headers:
29669 Configuration commands:
29672 Report bugs to the package provider."
29675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29676 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29678 libgnu config.status UNUSED-VERSION
29679 configured by $0, generated by GNU Autoconf 2.69,
29680 with options \\"\$ac_cs_config\\"
29682 Copyright (C) 2012 Free Software Foundation, Inc.
29683 This config.status script is free software; the Free Software Foundation
29684 gives unlimited permission to copy, distribute and modify it."
29691 test -n "\$AWK" || AWK=awk
29694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29695 # The default lists apply if the user does not specify any file.
29701 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29702 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29706 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29718 # Handling of the options.
29719 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29721 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29722 $as_echo "$ac_cs_version"; exit ;;
29723 --config |
--confi |
--conf |
--con |
--co |
--c )
29724 $as_echo "$ac_cs_config"; exit ;;
29725 --debug |
--debu |
--deb |
--de |
--d |
-d )
29727 --file |
--fil |
--fi |
--f )
29730 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29731 '') as_fn_error $?
"missing file argument" ;;
29733 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29734 ac_need_defaults
=false
;;
29735 --header |
--heade |
--head |
--hea )
29738 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29740 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29741 ac_need_defaults
=false
;;
29743 # Conflict between --help and --header
29744 as_fn_error $?
"ambiguous option: \`$1'
29745 Try \`$0 --help' for more information.";;
29746 --help |
--hel |
-h )
29747 $as_echo "$ac_cs_usage"; exit ;;
29748 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29749 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29752 # This is an error.
29753 -*) as_fn_error $?
"unrecognized option: \`$1'
29754 Try \`$0 --help' for more information." ;;
29756 *) as_fn_append ac_config_targets
" $1"
29757 ac_need_defaults
=false
;;
29763 ac_configure_extra_args
=
29765 if $ac_cs_silent; then
29767 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29772 if \$ac_cs_recheck; then
29773 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29776 CONFIG_SHELL='$SHELL'
29777 export CONFIG_SHELL
29782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29787 ## Running $as_me. ##
29793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29803 # Handling of arguments.
29804 for ac_config_target
in $ac_config_targets
29806 case $ac_config_target in
29807 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
29808 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29809 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29810 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
29811 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29813 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29818 # If the user did not use the arguments to specify the items to instantiate,
29819 # then the envvar interface is used. Set only those that are not.
29820 # We use the long form for the default assignment because of an extremely
29821 # bizarre bug on SunOS 4.1.3.
29822 if $ac_need_defaults; then
29823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29828 # Have a temporary directory for convenience. Make it in the build tree
29829 # simply because there is no reason against having it here, and in addition,
29830 # creating and moving files from /tmp can sometimes cause problems.
29831 # Hook for its removal unless debugging.
29832 # Note that there is a small window in which the directory will not be cleaned:
29833 # after its creation but before its name has been assigned to `$tmp'.
29837 trap 'exit_status=$?
29838 : "${ac_tmp:=$tmp}"
29839 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29841 trap 'as_fn_exit 1' 1 2 13 15
29843 # Create a (secure) tmp directory for tmp files.
29846 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29850 tmp
=.
/conf$$
-$RANDOM
29851 (umask 077 && mkdir
"$tmp")
29852 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29855 # Set up the scripts for CONFIG_FILES section.
29856 # No need to generate them if there are no CONFIG_FILES.
29857 # This happens for instance with `./config.status config.h'.
29858 if test -n "$CONFIG_FILES"; then
29861 ac_cr
=`echo X | tr X '\015'`
29862 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29863 # But we know of no other shell where ac_cr would be empty at this
29864 # point, so we can use a bashism as a fallback.
29865 if test "x$ac_cr" = x
; then
29866 eval ac_cr
=\$
\'\\r
\'
29868 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29869 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29872 ac_cs_awk_cr
=$ac_cr
29875 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29880 echo "cat >conf$$subs.awk <<_ACEOF" &&
29881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29883 } >conf$$subs.sh ||
29884 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29887 for ac_last_try in false false false false false :; do
29888 . ./conf$$subs.sh ||
29889 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29891 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29892 if test $ac_delim_n = $ac_delim_num; then
29894 elif $ac_last_try; then
29895 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29897 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29900 rm -f conf$$subs.sh
29902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29903 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
29907 s/^/S["/; s
/!.
*/"]=/
29917 s/\(.\{148\}\)..*/\1/
29919 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29924 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29931 s/\(.\{148\}\)..*/\1/
29933 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29937 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29942 ' <conf$$subs.awk | sed '
29947 ' >>$CONFIG_STATUS || ac_write_fail=1
29948 rm -f conf$$subs.awk
29949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29951 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
29952 for (key in S) S_is_set[key] = 1
29958 nfields = split(line, field, "@
")
29960 len = length(field[1])
29961 for (i = 2; i < nfields; i++) {
29963 keylen = length(key)
29964 if (S_is_set[key]) {
29966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29967 len += length(value) + length(field[++i])
29978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29979 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29980 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29983 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
29984 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
29987 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29988 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
29989 # trailing colons and then remove the whole line if VPATH becomes empty
29990 # (actually we leave an empty line to preserve line numbers).
29991 if test "x
$srcdir" = x.; then
29992 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30011 fi # test -n "$CONFIG_FILES"
30013 # Set up the scripts for CONFIG_HEADERS section.
30014 # No need to generate them if there are no CONFIG_HEADERS.
30015 # This happens for instance with `./config.status Makefile'.
30016 if test -n "$CONFIG_HEADERS"; then
30017 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
30021 # Transform confdefs.h into an awk script `defines.awk', embedded as
30022 # here-document in config.status, that substitutes the proper values into
30023 # config.h.in to produce config.h.
30025 # Create a delimiter string that does not exist in confdefs.h, to ease
30026 # handling of long lines.
30028 for ac_last_try in false false :; do
30029 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
30030 if test -z "$ac_tt"; then
30032 elif $ac_last_try; then
30033 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
30035 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30039 # For the awk script, D is an array of macro values keyed by name,
30040 # likewise P contains macro parameters if any. Preserve backslash
30041 # newline sequences.
30043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30045 s/.\{148\}/&'"$ac_delim"'/g
30048 s/^[ ]*#[ ]*define[ ][ ]*/ /
30055 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30057 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30062 D["\
1"]=" \
3\\\\\\n
"\\/p
30064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30069 s/.\{148\}/&'"$ac_delim"'/g
30074 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30077 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30079 ' <confdefs.h | sed '
30080 s/'"$ac_delim"'/"\\\
30081 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30084 for (key in D) D_is_set[key] = 1
30087 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30089 split(line, arg, " ")
30090 if (arg[1] == "#") {
30094 defundef
= substr
(arg
[1], 2)
30097 split(mac1
, mac2
, "(") #)
30099 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30100 if (D_is_set
[macro
]) {
30101 # Preserve the white space surrounding the "#".
30102 print prefix
"define", macro P
[macro
] D
[macro
]
30105 # Replace #undef with comments. This is necessary, for example,
30106 # in the case of _POSIX_SOURCE, which is predefined and required
30107 # on some systems where configure will not decide to define it.
30108 if (defundef
== "undef") {
30109 print
"/*", prefix defundef
, macro
, "*/"
30117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30118 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
30119 fi # test -n "$CONFIG_HEADERS"
30122 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30127 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30129 case $ac_mode$ac_tag in
30131 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30132 :[FH
]-) ac_tag
=-:-;;
30133 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30150 -) ac_f
="$ac_tmp/stdin";;
30151 *) # Look for the file first in the build tree, then in the source tree
30152 # (if the path is not absolute). The absolute path cannot be DOS-style,
30153 # because $ac_f cannot contain `:'.
30157 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30159 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30161 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30162 as_fn_append ac_file_inputs
" '$ac_f'"
30165 # Let's still pretend it is `configure' which instantiates (i.e., don't
30166 # use $as_me), people would be surprised to read:
30167 # /* config.h. Generated by config.status. */
30168 configure_input
='Generated from '`
30169 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30171 if test x
"$ac_file" != x-
; then
30172 configure_input
="$ac_file. $configure_input"
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30174 $as_echo "$as_me: creating $ac_file" >&6;}
30176 # Neutralize special characters interpreted by sed in replacement strings.
30177 case $configure_input in #(
30178 *\
&* |
*\|
* |
*\\* )
30179 ac_sed_conf_input
=`$as_echo "$configure_input" |
30180 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30181 *) ac_sed_conf_input
=$configure_input;;
30185 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
30186 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
30191 ac_dir
=`$as_dirname -- "$ac_file" ||
30192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30193 X"$ac_file" : 'X\(//\)[^/]' \| \
30194 X"$ac_file" : 'X\(//\)$' \| \
30195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30196 $as_echo X"$ac_file" |
30197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30201 /^X\(\/\/\)[^/].*/{
30214 as_dir
="$ac_dir"; as_fn_mkdir_p
30218 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30220 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30221 # A ".." for each directory in $ac_dir_suffix.
30222 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30223 case $ac_top_builddir_sub in
30224 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30225 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30228 ac_abs_top_builddir
=$ac_pwd
30229 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30230 # for backward compatibility:
30231 ac_top_builddir
=$ac_top_build_prefix
30234 .
) # We are building in place.
30236 ac_top_srcdir
=$ac_top_builddir_sub
30237 ac_abs_top_srcdir
=$ac_pwd ;;
30238 [\\/]* | ?
:[\\/]* ) # Absolute name.
30239 ac_srcdir
=$srcdir$ac_dir_suffix;
30240 ac_top_srcdir
=$srcdir
30241 ac_abs_top_srcdir
=$srcdir ;;
30242 *) # Relative name.
30243 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30244 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30245 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30247 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30257 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30258 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30260 ac_MKDIR_P
=$MKDIR_P
30262 [\\/$
]* | ?
:[\\/]* ) ;;
30263 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30268 # If the template does not know about datarootdir, expand it.
30269 # FIXME: This hack should be removed a few years after 2.60.
30270 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30281 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30282 *datarootdir
*) ac_datarootdir_seen
=yes;;
30283 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30285 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30288 ac_datarootdir_hack='
30289 s&@datadir@&$datadir&g
30290 s&@docdir@&$docdir&g
30291 s&@infodir@&$infodir&g
30292 s&@localedir@&$localedir&g
30293 s&@mandir@&$mandir&g
30294 s&\\\${datarootdir}&$datarootdir&g' ;;
30298 # Neutralize VPATH when `$srcdir' = `.'.
30299 # Shell code in configure.ac might set extrasub.
30300 # FIXME: do we really want to maintain this feature?
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30302 ac_sed_extra="$ac_vpsub
30305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30307 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30308 s|@configure_input@|
$ac_sed_conf_input|
;t t
30309 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30310 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30311 s
&@srcdir@
&$ac_srcdir&;t t
30312 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30313 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30314 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30315 s
&@builddir@
&$ac_builddir&;t t
30316 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30317 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30318 s
&@INSTALL@
&$ac_INSTALL&;t t
30319 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30320 $ac_datarootdir_hack
30322 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
30323 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30326 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30328 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30330 which seems to be undefined. Please make sure it is defined" >&5
30331 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30332 which seems to be undefined. Please make sure it is defined" >&2;}
30334 rm -f "$ac_tmp/stdin"
30336 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30337 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30345 if test x"$ac_file" != x-; then
30347 $as_echo "/* $configure_input */" \
30348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30349 } >"$ac_tmp/config.h" \
30350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30353 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30356 mv "$ac_tmp/config.h" "$ac_file" \
30357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30360 $as_echo "/* $configure_input */" \
30361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30362 || as_fn_error $? "could not create -" "$LINENO" 5
30364 # Compute "$ac_file"'s index
in $config_headers.
30367 for _am_header
in $config_headers :; do
30368 case $_am_header in
30369 $_am_arg |
$_am_arg:* )
30372 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30375 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30376 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30377 X"$_am_arg" : 'X\(//\)[^/]' \| \
30378 X"$_am_arg" : 'X\(//\)$' \| \
30379 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30380 $as_echo X"$_am_arg" |
30381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30385 /^X\(\/\/\)[^/].*/{
30397 s/.*/./; q'`/stamp-h
$_am_stamp_count
30400 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30401 $as_echo "$as_me: executing $ac_file commands" >&6;}
30406 case $ac_file$ac_mode in
30407 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30408 # Older Autoconf quotes --file arguments for eval, but not when files
30409 # are listed without --file. Let's play safe and only enable the eval
30410 # if we detect the quoting.
30411 case $CONFIG_FILES in
30412 *\'*) eval set x
"$CONFIG_FILES" ;;
30413 *) set x
$CONFIG_FILES ;;
30418 # Strip MF so we end up with the name of the file.
30419 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30420 # Check whether this is an Automake generated Makefile or not.
30421 # We used to match only the files named 'Makefile.in', but
30422 # some people rename them; so instead we look at the file content.
30423 # Grep'ing the first line is not enough: some people post-process
30424 # each Makefile.in and add a new line on top of each file to say so.
30425 # Grep'ing the whole file is not good either: AIX grep has a line
30426 # limit of 2048, but all sed's we know have understand at least 4000.
30427 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30428 dirpart
=`$as_dirname -- "$mf" ||
30429 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30430 X"$mf" : 'X\(//\)[^/]' \| \
30431 X"$mf" : 'X\(//\)$' \| \
30432 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30438 /^X\(\/\/\)[^/].*/{
30454 # Extract the definition of DEPDIR, am__include, and am__quote
30455 # from the Makefile without running 'make'.
30456 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30457 test -z "$DEPDIR" && continue
30458 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30459 test -z "$am__include" && continue
30460 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30461 # Find all dependency output files, they are included files with
30462 # $(DEPDIR) in their names. We invoke sed twice because it is the
30463 # simplest approach to changing $(DEPDIR) to its actual value in the
30465 for file in `sed -n "
30466 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30468 # Make sure the directory exists.
30469 test -f "$dirpart/$file" && continue
30470 fdir
=`$as_dirname -- "$file" ||
30471 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30472 X"$file" : 'X\(//\)[^/]' \| \
30473 X"$file" : 'X\(//\)$' \| \
30474 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30475 $as_echo X"$file" |
30476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30480 /^X\(\/\/\)[^/].*/{
30493 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30494 # echo "creating $dirpart/$file"
30495 echo '# dummy' > "$dirpart/$file"
30501 case x
$CONFIG_HEADERS in
30502 xconfig.h
:config.
in)
30513 ac_clean_files
=$ac_clean_files_save
30515 test $ac_write_fail = 0 ||
30516 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30519 # configure is writing to config.log, and then calls config.status.
30520 # config.status does its own redirection, appending to config.log.
30521 # Unfortunately, on DOS this fails, as config.log is still kept open
30522 # by configure, so config.status won't be able to write to it; its
30523 # output is simply discarded. So we exec the FD to /dev/null,
30524 # effectively closing config.log, so it can be properly (re)opened and
30525 # appended to by config.status. When coming back to configure, we
30526 # need to make the FD available again.
30527 if test "$no_create" != yes; then
30529 ac_config_status_args
=
30530 test "$silent" = yes &&
30531 ac_config_status_args
="$ac_config_status_args --quiet"
30533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30536 # would make configure fail if this is the last instruction.
30537 $ac_cs_success || as_fn_exit
1
30539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}