2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
593 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
621 INSTALL_STRIP_PROGRAM
642 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
656 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
659 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
661 UNISTD_H_DEFINES_STRUCT_TIMESPEC
662 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
663 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
664 TIME_H_DEFINES_STRUCT_TIMESPEC
665 NEXT_AS_FIRST_DIRECTIVE_TIME_H
676 HAVE_DECL_LOCALTIME_R
684 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
687 NEXT_AS_FIRST_DIRECTIVE_STRING_H
689 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
691 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
693 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
695 GL_GENERATE_STDDEF_H_FALSE
696 GL_GENERATE_STDDEF_H_TRUE
702 GL_GENERATE_STDBOOL_H_FALSE
703 GL_GENERATE_STDBOOL_H_TRUE
705 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
708 REPLACE_PTHREAD_SIGMASK
710 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
711 HAVE_STRUCT_SIGACTION_SA_SIGACTION
717 HAVE_POSIX_SIGNALBLOCKING
720 GNULIB_SIGNAL_H_SIGPIPE
722 GNULIB_PTHREAD_SIGMASK
730 REPLACE_STDIO_WRITE_FUNCS
731 REPLACE_STDIO_READ_FUNCS
740 REPLACE_OBSTACK_PRINTF
765 HAVE_DECL_OBSTACK_PRINTF
771 GNULIB_VSPRINTF_POSIX
775 GNULIB_VFPRINTF_POSIX
782 GNULIB_STDIO_H_SIGPIPE
783 GNULIB_STDIO_H_NONBLOCKING
798 GNULIB_OBSTACK_PRINTF_POSIX
799 GNULIB_OBSTACK_PRINTF
992 NEXT_AS_FIRST_DIRECTIVE_MATH_H
994 LOCALCHARSET_TESTS_ENVIRONMENT
996 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
998 UINT64_MAX_EQ_ULONG_MAX
999 UINT32_MAX_LT_UINTMAX_MAX
1002 INT64_MAX_EQ_LONG_MAX
1003 INT32_MAX_LT_INTMAX_MAX
1014 GL_GENERATE_STDINT_H_FALSE
1015 GL_GENERATE_STDINT_H_TRUE
1027 HAVE_SIGNED_SIG_ATOMIC_T
1030 BITSIZEOF_SIG_ATOMIC_T
1033 APPLE_UNIVERSAL_BUILD
1035 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1040 HAVE_UNSIGNED_LONG_LONG_INT
1042 GL_GENERATE_LIMITS_H_FALSE
1043 GL_GENERATE_LIMITS_H_TRUE
1045 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1048 GL_GENERATE_GLOB_H_FALSE
1049 GL_GENERATE_GLOB_H_TRUE
1051 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1053 REPLACE_STRUCT_TIMEVAL
1054 REPLACE_GETTIMEOFDAY
1062 WINDOWS_64_BIT_ST_SIZE
1063 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1099 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1105 REPLACE_SIGNBIT_USING_GCC
1174 HAVE_DECL_REMAINDERL
1355 GL_GENERATE_FNMATCH_H_FALSE
1356 GL_GENERATE_FNMATCH_H_TRUE
1359 GL_GENERATE_FLOAT_H_FALSE
1360 GL_GENERATE_FLOAT_H_TRUE
1362 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1364 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1381 GL_GENERATE_ERRNO_H_FALSE
1382 GL_GENERATE_ERRNO_H_TRUE
1384 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1387 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1390 PRAGMA_SYSTEM_HEADER
1391 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1418 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1419 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1420 UNISTD_H_HAVE_WINSOCK2_H
1443 REPLACE_GETDTABLESIZE
1444 REPLACE_GETDOMAINNAME
1455 HAVE_DECL_SETHOSTNAME
1456 HAVE_DECL_GETUSERSHELL
1457 HAVE_DECL_GETPAGESIZE
1458 HAVE_DECL_GETLOGIN_R
1459 HAVE_DECL_GETDOMAINNAME
1498 GNULIB_UNISTD_H_SIGPIPE
1499 GNULIB_UNISTD_H_NONBLOCKING
1525 GNULIB_GETDTABLESIZE
1526 GNULIB_GETDOMAINNAME
1556 REPLACE_CANONICALIZE_FILE_NAME
1561 HAVE_STRUCT_RANDOM_DATA
1584 HAVE_DECL_GETLOADAVG
1585 HAVE_CANONICALIZE_FILE_NAME
1596 GNULIB_SECURE_GETENV
1599 GNULIB_REALLOC_POSIX
1617 GNULIB_CANONICALIZE_FILE_NAME
1621 GL_GENERATE_ALLOCA_H_FALSE
1622 GL_GENERATE_ALLOCA_H_TRUE
1625 GL_COND_LIBTOOL_FALSE
1626 GL_COND_LIBTOOL_TRUE
1653 MAINTAINER_MODE_FALSE
1654 MAINTAINER_MODE_TRUE
1682 program_transform_name
1695 enable_option_checking
1696 enable_maintainer_mode
1698 enable_dependency_tracking
1701 ac_precious_vars
='build_alias
1712 # Initialize some variables set by options.
1714 ac_init_version
=false
1715 ac_unrecognized_opts
=
1716 ac_unrecognized_sep
=
1717 # The variables have the same names as the options, with
1718 # dashes changed to underlines.
1719 cache_file
=/dev
/null
1726 program_transform_name
=s
,x
,x
,
1734 # Installation directory options.
1735 # These are left unexpanded so users can "make install exec_prefix=/foo"
1736 # and all the variables that are supposed to be based on exec_prefix
1737 # by default will actually change.
1738 # Use braces instead of parens because sh, perl, etc. also accept them.
1739 # (The list follows the same order as the GNU Coding Standards.)
1740 bindir
='${exec_prefix}/bin'
1741 sbindir
='${exec_prefix}/sbin'
1742 libexecdir
='${exec_prefix}/libexec'
1743 datarootdir
='${prefix}/share'
1744 datadir
='${datarootdir}'
1745 sysconfdir
='${prefix}/etc'
1746 sharedstatedir
='${prefix}/com'
1747 localstatedir
='${prefix}/var'
1748 includedir
='${prefix}/include'
1749 oldincludedir
='/usr/include'
1750 docdir
='${datarootdir}/doc/${PACKAGE}'
1751 infodir
='${datarootdir}/info'
1756 libdir
='${exec_prefix}/lib'
1757 localedir
='${datarootdir}/locale'
1758 mandir
='${datarootdir}/man'
1764 # If the previous option needs an argument, assign it.
1765 if test -n "$ac_prev"; then
1766 eval $ac_prev=\
$ac_option
1772 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1776 # Accept the important Cygnus configure options, so we can diagnose typos.
1778 case $ac_dashdash$ac_option in
1782 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1784 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1785 bindir
=$ac_optarg ;;
1787 -build |
--build |
--buil |
--bui |
--bu)
1788 ac_prev
=build_alias
;;
1789 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1790 build_alias
=$ac_optarg ;;
1792 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1793 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1794 ac_prev
=cache_file
;;
1795 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1796 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1797 cache_file
=$ac_optarg ;;
1799 --config-cache |
-C)
1800 cache_file
=config.cache
;;
1802 -datadir |
--datadir |
--datadi |
--datad)
1804 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1805 datadir
=$ac_optarg ;;
1807 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1808 |
--dataroo |
--dataro |
--datar)
1809 ac_prev
=datarootdir
;;
1810 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1811 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1812 datarootdir
=$ac_optarg ;;
1814 -disable-* |
--disable-*)
1815 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1816 # Reject names that are not valid shell variable names.
1817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1818 as_fn_error
"invalid feature name: $ac_useropt"
1819 ac_useropt_orig
=$ac_useropt
1820 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1821 case $ac_user_opts in
1823 "enable_
$ac_useropt"
1825 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1826 ac_unrecognized_sep
=', ';;
1828 eval enable_
$ac_useropt=no
;;
1830 -docdir |
--docdir |
--docdi |
--doc |
--do)
1832 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1833 docdir
=$ac_optarg ;;
1835 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1837 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1838 dvidir
=$ac_optarg ;;
1840 -enable-* |
--enable-*)
1841 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1842 # Reject names that are not valid shell variable names.
1843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1844 as_fn_error
"invalid feature name: $ac_useropt"
1845 ac_useropt_orig
=$ac_useropt
1846 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1847 case $ac_user_opts in
1849 "enable_
$ac_useropt"
1851 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1852 ac_unrecognized_sep
=', ';;
1854 eval enable_
$ac_useropt=\
$ac_optarg ;;
1856 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1857 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1858 |
--exec |
--exe |
--ex)
1859 ac_prev
=exec_prefix
;;
1860 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1861 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1862 |
--exec=* |
--exe=* |
--ex=*)
1863 exec_prefix
=$ac_optarg ;;
1865 -gas |
--gas |
--ga |
--g)
1866 # Obsolete; use --with-gas.
1869 -help |
--help |
--hel |
--he |
-h)
1870 ac_init_help
=long
;;
1871 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1872 ac_init_help
=recursive
;;
1873 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1874 ac_init_help
=short
;;
1876 -host |
--host |
--hos |
--ho)
1877 ac_prev
=host_alias
;;
1878 -host=* |
--host=* |
--hos=* |
--ho=*)
1879 host_alias
=$ac_optarg ;;
1881 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1883 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1885 htmldir
=$ac_optarg ;;
1887 -includedir |
--includedir |
--includedi |
--included |
--include \
1888 |
--includ |
--inclu |
--incl |
--inc)
1889 ac_prev
=includedir
;;
1890 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1891 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1892 includedir
=$ac_optarg ;;
1894 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1896 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1897 infodir
=$ac_optarg ;;
1899 -libdir |
--libdir |
--libdi |
--libd)
1901 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1902 libdir
=$ac_optarg ;;
1904 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1905 |
--libexe |
--libex |
--libe)
1906 ac_prev
=libexecdir
;;
1907 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1908 |
--libexe=* |
--libex=* |
--libe=*)
1909 libexecdir
=$ac_optarg ;;
1911 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1912 ac_prev
=localedir
;;
1913 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1914 localedir
=$ac_optarg ;;
1916 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1917 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1918 ac_prev
=localstatedir
;;
1919 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1920 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1921 localstatedir
=$ac_optarg ;;
1923 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1925 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1926 mandir
=$ac_optarg ;;
1928 -nfp |
--nfp |
--nf)
1929 # Obsolete; use --without-fp.
1932 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1933 |
--no-cr |
--no-c |
-n)
1936 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1937 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1940 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1941 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1942 |
--oldin |
--oldi |
--old |
--ol |
--o)
1943 ac_prev
=oldincludedir
;;
1944 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1945 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1946 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1947 oldincludedir
=$ac_optarg ;;
1949 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1951 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1952 prefix
=$ac_optarg ;;
1954 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1955 |
--program-pre |
--program-pr |
--program-p)
1956 ac_prev
=program_prefix
;;
1957 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1958 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1959 program_prefix
=$ac_optarg ;;
1961 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1962 |
--program-suf |
--program-su |
--program-s)
1963 ac_prev
=program_suffix
;;
1964 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1965 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1966 program_suffix
=$ac_optarg ;;
1968 -program-transform-name |
--program-transform-name \
1969 |
--program-transform-nam |
--program-transform-na \
1970 |
--program-transform-n |
--program-transform- \
1971 |
--program-transform |
--program-transfor \
1972 |
--program-transfo |
--program-transf \
1973 |
--program-trans |
--program-tran \
1974 |
--progr-tra |
--program-tr |
--program-t)
1975 ac_prev
=program_transform_name
;;
1976 -program-transform-name=* |
--program-transform-name=* \
1977 |
--program-transform-nam=* |
--program-transform-na=* \
1978 |
--program-transform-n=* |
--program-transform-=* \
1979 |
--program-transform=* |
--program-transfor=* \
1980 |
--program-transfo=* |
--program-transf=* \
1981 |
--program-trans=* |
--program-tran=* \
1982 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1983 program_transform_name
=$ac_optarg ;;
1985 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1987 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1988 pdfdir
=$ac_optarg ;;
1990 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1992 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1995 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1996 |
-silent |
--silent |
--silen |
--sile |
--sil)
1999 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2001 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2003 sbindir
=$ac_optarg ;;
2005 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2006 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2007 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2009 ac_prev
=sharedstatedir
;;
2010 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2011 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2012 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2014 sharedstatedir
=$ac_optarg ;;
2016 -site |
--site |
--sit)
2018 -site=* |
--site=* |
--sit=*)
2021 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2023 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2024 srcdir
=$ac_optarg ;;
2026 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2027 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2028 ac_prev
=sysconfdir
;;
2029 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2030 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2031 sysconfdir
=$ac_optarg ;;
2033 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2034 ac_prev
=target_alias
;;
2035 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2036 target_alias
=$ac_optarg ;;
2038 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2041 -version |
--version |
--versio |
--versi |
--vers |
-V)
2042 ac_init_version
=: ;;
2045 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2046 # Reject names that are not valid shell variable names.
2047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2048 as_fn_error
"invalid package name: $ac_useropt"
2049 ac_useropt_orig
=$ac_useropt
2050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2051 case $ac_user_opts in
2055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2056 ac_unrecognized_sep
=', ';;
2058 eval with_
$ac_useropt=\
$ac_optarg ;;
2060 -without-* |
--without-*)
2061 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2062 # Reject names that are not valid shell variable names.
2063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2064 as_fn_error
"invalid package name: $ac_useropt"
2065 ac_useropt_orig
=$ac_useropt
2066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2067 case $ac_user_opts in
2071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2072 ac_unrecognized_sep
=', ';;
2074 eval with_
$ac_useropt=no
;;
2077 # Obsolete; use --with-x.
2080 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2081 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2082 ac_prev
=x_includes
;;
2083 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2084 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2085 x_includes
=$ac_optarg ;;
2087 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2088 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2089 ac_prev
=x_libraries
;;
2090 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2091 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2092 x_libraries
=$ac_optarg ;;
2094 -*) as_fn_error
"unrecognized option: \`$ac_option'
2095 Try \`$0 --help' for more information."
2099 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2100 # Reject names that are not valid shell variable names.
2101 case $ac_envvar in #(
2102 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2103 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2105 eval $ac_envvar=\
$ac_optarg
2106 export $ac_envvar ;;
2109 # FIXME: should be removed in autoconf 3.0.
2110 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2112 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2119 if test -n "$ac_prev"; then
2120 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2121 as_fn_error
"missing argument to $ac_option"
2124 if test -n "$ac_unrecognized_opts"; then
2125 case $enable_option_checking in
2127 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2128 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2132 # Check all directory arguments for consistency.
2133 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2134 datadir sysconfdir sharedstatedir localstatedir includedir \
2135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2136 libdir localedir mandir
2138 eval ac_val
=\$
$ac_var
2139 # Remove trailing slashes.
2142 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2143 eval $ac_var=\
$ac_val;;
2145 # Be sure to have absolute directory names.
2147 [\\/$
]* | ?
:[\\/]* ) continue;;
2148 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2150 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2153 # There might be people who depend on the old broken behavior: `$host'
2154 # used to hold the argument of --host etc.
2155 # FIXME: To remove some day.
2158 target
=$target_alias
2160 # FIXME: To remove some day.
2161 if test "x$host_alias" != x
; then
2162 if test "x$build_alias" = x
; then
2163 cross_compiling
=maybe
2164 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2165 If a cross compiler is detected then cross compile mode will be used." >&2
2166 elif test "x$build_alias" != "x$host_alias"; then
2172 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2174 test "$silent" = yes && exec 6>/dev
/null
2177 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2178 ac_ls_di
=`ls -di .` &&
2179 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2180 as_fn_error
"working directory cannot be determined"
2181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2182 as_fn_error
"pwd does not report name of working directory"
2185 # Find the source files, if location was not specified.
2186 if test -z "$srcdir"; then
2187 ac_srcdir_defaulted
=yes
2188 # Try the directory containing this script, then the parent directory.
2189 ac_confdir
=`$as_dirname -- "$as_myself" ||
2190 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2191 X"$as_myself" : 'X\(//\)[^/]' \| \
2192 X"$as_myself" : 'X\(//\)$' \| \
2193 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2194 $as_echo X"$as_myself" |
2195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2213 if test ! -r "$srcdir/$ac_unique_file"; then
2217 ac_srcdir_defaulted
=no
2219 if test ! -r "$srcdir/$ac_unique_file"; then
2220 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2221 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2225 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2227 # When building in place, set srcdir=.
2228 if test "$ac_abs_confdir" = "$ac_pwd"; then
2231 # Remove unnecessary trailing slashes from srcdir.
2232 # Double slashes in file names in object file debugging info
2233 # mess up M-x gdb in Emacs.
2235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2237 for ac_var
in $ac_precious_vars; do
2238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2245 # Report the --help message.
2247 if test "$ac_init_help" = "long"; then
2248 # Omit some internal or obsolete options to make the list less imposing.
2249 # This message is too long to be a string in the A/UX 3.1 sh.
2251 \`configure' configures this package to adapt to many kinds of systems.
2253 Usage: $0 [OPTION]... [VAR=VALUE]...
2255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2256 VAR=VALUE. See below for descriptions of some of the useful variables.
2258 Defaults for the options are specified in brackets.
2261 -h, --help display this help and exit
2262 --help=short display options specific to this package
2263 --help=recursive display the short help of all the included packages
2264 -V, --version display version information and exit
2265 -q, --quiet, --silent do not print \`checking...' messages
2266 --cache-file=FILE cache test results in FILE [disabled]
2267 -C, --config-cache alias for \`--cache-file=config.cache'
2268 -n, --no-create do not create output files
2269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2271 Installation directories:
2272 --prefix=PREFIX install architecture-independent files in PREFIX
2273 [$ac_default_prefix]
2274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2277 By default, \`make install' will install all the files in
2278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2280 for instance \`--prefix=\$HOME'.
2282 For better control, use the options below.
2284 Fine tuning of the installation directories:
2285 --bindir=DIR user executables [EPREFIX/bin]
2286 --sbindir=DIR system admin executables [EPREFIX/sbin]
2287 --libexecdir=DIR program executables [EPREFIX/libexec]
2288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2291 --libdir=DIR object code libraries [EPREFIX/lib]
2292 --includedir=DIR C header files [PREFIX/include]
2293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2296 --infodir=DIR info documentation [DATAROOTDIR/info]
2297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2298 --mandir=DIR man documentation [DATAROOTDIR/man]
2299 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2300 --htmldir=DIR html documentation [DOCDIR]
2301 --dvidir=DIR dvi documentation [DOCDIR]
2302 --pdfdir=DIR pdf documentation [DOCDIR]
2303 --psdir=DIR ps documentation [DOCDIR]
2309 --program-prefix=PREFIX prepend PREFIX to installed program names
2310 --program-suffix=SUFFIX append SUFFIX to installed program names
2311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2314 --build=BUILD configure
for building on BUILD
[guessed
]
2315 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2316 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2320 if test -n "$ac_init_help"; then
2325 --disable-option-checking ignore unrecognized
--enable/--with options
2326 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2327 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2328 --enable-maintainer-mode enable make rules and dependencies not useful
2329 (and sometimes confusing
) to the casual installer
2330 --disable-largefile omit support
for large files
2331 --disable-dependency-tracking speeds up one-time build
2332 --enable-dependency-tracking do not reject slow dependency extractors
2333 --enable-silent-rules less verbose build output
(undo
: `make V=1')
2334 --disable-silent-rules verbose build output (undo: `make V
=0')
2336 Some influential environment variables:
2337 CC C compiler command
2338 CFLAGS C compiler flags
2339 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2340 nonstandard directory <lib dir>
2341 LIBS libraries to pass to the linker, e.g. -l<library>
2342 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2343 you have headers in a nonstandard directory <include dir>
2346 Use these variables to override the choices made by `configure' or to
help
2347 it to
find libraries and programs with nonstandard names
/locations.
2349 Report bugs to the package provider.
2354 if test "$ac_init_help" = "recursive"; then
2355 # If there are subdirs, report their specific --help.
2356 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2357 test -d "$ac_dir" ||
2358 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2363 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2365 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2366 # A ".." for each directory in $ac_dir_suffix.
2367 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2368 case $ac_top_builddir_sub in
2369 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2370 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2373 ac_abs_top_builddir
=$ac_pwd
2374 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2375 # for backward compatibility:
2376 ac_top_builddir
=$ac_top_build_prefix
2379 .
) # We are building in place.
2381 ac_top_srcdir
=$ac_top_builddir_sub
2382 ac_abs_top_srcdir
=$ac_pwd ;;
2383 [\\/]* | ?
:[\\/]* ) # Absolute name.
2384 ac_srcdir
=$srcdir$ac_dir_suffix;
2385 ac_top_srcdir
=$srcdir
2386 ac_abs_top_srcdir
=$srcdir ;;
2388 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2389 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2390 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2392 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2394 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2395 # Check for guested configure.
2396 if test -f "$ac_srcdir/configure.gnu"; then
2398 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2399 elif test -f "$ac_srcdir/configure"; then
2401 $SHELL "$ac_srcdir/configure" --help=recursive
2403 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2405 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2409 test -n "$ac_init_help" && exit $ac_status
2410 if $ac_init_version; then
2413 generated by GNU Autoconf
2.64
2415 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2416 This configure
script is free software
; the Free Software Foundation
2417 gives unlimited permission to copy
, distribute and modify it.
2422 ## ------------------------ ##
2423 ## Autoconf initialization. ##
2424 ## ------------------------ ##
2426 # ac_fn_c_try_compile LINENO
2427 # --------------------------
2428 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2429 ac_fn_c_try_compile
()
2431 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2432 rm -f conftest.
$ac_objext
2433 if { { ac_try
="$ac_compile"
2435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2439 $as_echo "$ac_try_echo"; } >&5
2440 (eval "$ac_compile") 2>conftest.err
2442 if test -s conftest.err; then
2443 grep -v '^ *+' conftest.err >conftest.er1
2444 cat conftest.er1 >&5
2445 mv -f conftest.er1 conftest.err
2447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2448 test $ac_status = 0; } && {
2449 test -z "$ac_c_werror_flag" ||
2450 test ! -s conftest.err
2451 } && test -s conftest.$ac_objext; then :
2454 $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_try_compile
2464 # ac_fn_c_try_cpp LINENO
2465 # ----------------------
2466 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { { ac_try="$ac_cpp conftest.$ac_ext"
2472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2473 *) ac_try_echo
=$ac_try;;
2475 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476 $as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2479 if test -s conftest.err
; then
2480 grep -v '^ *+' conftest.err
>conftest.er1
2481 cat conftest.er1
>&5
2482 mv -f conftest.er1 conftest.err
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; } >/dev
/null
&& {
2486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2487 test ! -s conftest.err
2491 $as_echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.
$ac_ext >&5
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2501 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2502 # -------------------------------------------------------
2503 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2504 # the include files in INCLUDES and setting the cache variable VAR
2506 ac_fn_c_check_header_mongrel
()
2508 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2509 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2519 # Is the header compilable?
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2521 $as_echo_n "checking $2 usability... " >&6; }
2522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2527 if ac_fn_c_try_compile
"$LINENO"; then :
2528 ac_header_compiler
=yes
2530 ac_header_compiler
=no
2532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2534 $as_echo "$ac_header_compiler" >&6; }
2536 # Is the header present?
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2538 $as_echo_n "checking $2 presence... " >&6; }
2539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2543 if ac_fn_c_try_cpp
"$LINENO"; then :
2544 ac_header_preproc
=yes
2546 ac_header_preproc
=no
2548 rm -f conftest.err conftest.
$ac_ext
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2550 $as_echo "$ac_header_preproc" >&6; }
2552 # So? What about this header?
2553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2556 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2558 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2562 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2564 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2566 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2568 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2570 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 eval "$3=\$ac_header_compiler"
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2582 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2586 } # ac_fn_c_check_header_mongrel
2588 # ac_fn_c_try_run LINENO
2589 # ----------------------
2590 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2591 # that executables *can* be run.
2594 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2595 if { { ac_try
="$ac_link"
2597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2601 $as_echo "$ac_try_echo"; } >&5
2602 (eval "$ac_link") 2>&5
2604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2606 { { case "(($ac_try" in
2607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2608 *) ac_try_echo
=$ac_try;;
2610 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_try") 2>&5
2614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615 test $ac_status = 0; }; }; then :
2618 $as_echo "$as_me: program exited with status $ac_status" >&5
2619 $as_echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.
$ac_ext >&5
2622 ac_retval
=$ac_status
2624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2625 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2631 # -------------------------------------------------------
2632 # Tests whether HEADER exists and can be compiled using the include files in
2633 # INCLUDES, setting the cache variable VAR accordingly.
2634 ac_fn_c_check_header_compile
()
2636 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2638 $as_echo_n "checking for $2... " >&6; }
2639 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2640 $as_echo_n "(cached) " >&6
2642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h. */
2647 if ac_fn_c_try_compile
"$LINENO"; then :
2652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2659 } # ac_fn_c_check_header_compile
2661 # ac_fn_c_try_link LINENO
2662 # -----------------------
2663 # Try to link conftest.$ac_ext, and return whether this succeeded.
2666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2667 rm -f conftest.
$ac_objext conftest
$ac_exeext
2668 if { { ac_try
="$ac_link"
2670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_link") 2>conftest.err
2677 if test -s conftest.err; then
2678 grep -v '^ *+' conftest.err >conftest.er1
2679 cat conftest.er1 >&5
2680 mv -f conftest.er1 conftest.err
2682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2683 test $ac_status = 0; } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest$ac_exeext && {
2687 test "$cross_compiling" = yes ||
2688 $as_test_x conftest$ac_exeext
2692 $as_echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2699 # interfere with the next link command; also delete a directory that is
2700 # left behind by Apple's compiler. We do this before executing the actions.
2701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2705 } # ac_fn_c_try_link
2707 # ac_fn_c_check_func LINENO FUNC VAR
2708 # ----------------------------------
2709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2710 ac_fn_c_check_func ()
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 $as_echo_n "checking for $2... " >&6; }
2715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2722 #define $2 innocuous_$2
2724 /* System header to define __stub macros and hopefully few prototypes,
2725 which can conflict with char $2 (); below.
2726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2727 <limits.h> exists even on freestanding compilers. */
2730 # include <limits.h>
2732 # include <assert.h>
2737 /* Override any GCC internal prototype to avoid an error.
2738 Use char because int might match the return type of a GCC
2739 builtin and then its argument prototype would still apply. */
2744 /* The GNU C library defines this for functions which it implements
2745 to always fail with ENOSYS. Some functions are actually named
2746 something starting with __ and the normal name is an alias. */
2747 #if defined __stub_$2 || defined __stub___$2
2759 if ac_fn_c_try_link "$LINENO"; then :
2764 rm -f core conftest.err conftest.$ac_objext \
2765 conftest$ac_exeext conftest.$ac_ext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2772 } # ac_fn_c_check_func
2774 # ac_fn_c_check_decl LINENO SYMBOL VAR
2775 # ------------------------------------
2776 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2777 ac_fn_c_check_decl ()
2779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2781 $as_echo_n "checking whether $2 is declared... " >&6; }
2782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2783 $as_echo_n "(cached) " >&6
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2799 if ac_fn_c_try_compile "$LINENO"; then :
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2808 $as_echo "$ac_res" >&6; }
2809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2811 } # ac_fn_c_check_decl
2813 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2814 # --------------------------------------------
2815 # Tries to find the compile-time value of EXPR in a program that includes
2816 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2818 ac_fn_c_compute_int ()
2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2821 if test "$cross_compiling" = yes; then
2822 # Depending upon the size, compute the lo and hi bounds.
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2829 static int test_array [1 - 2 * !(($2) >= 0)];
2836 if ac_fn_c_try_compile "$LINENO"; then :
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2845 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2852 if ac_fn_c_try_compile "$LINENO"; then :
2853 ac_hi=$ac_mid; break
2855 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2856 if test $ac_lo -le $ac_mid; then
2860 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2871 static int test_array [1 - 2 * !(($2) < 0)];
2878 if ac_fn_c_try_compile "$LINENO"; then :
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2887 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895 ac_lo=$ac_mid; break
2897 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2898 if test $ac_mid -le $ac_hi; then
2902 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 # Binary search between lo and hi bounds.
2913 while test "x$ac_lo" != "x$ac_hi"; do
2914 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2921 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2928 if ac_fn_c_try_compile "$LINENO"; then :
2931 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2943 static long int longval () { return $2; }
2944 static unsigned long int ulongval () { return $2; }
2951 FILE *f = fopen ("conftest.val", "w");
2956 long int i = longval ();
2959 fprintf (f, "%ld", i);
2963 unsigned long int i = ulongval ();
2966 fprintf (f, "%lu", i);
2968 /* Do not output a trailing newline, as this causes \r\n confusion
2969 on some platforms. */
2970 return ferror (f) || fclose (f) != 0;
2976 if ac_fn_c_try_run "$LINENO"; then :
2977 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2982 conftest.$ac_objext conftest.beam conftest.$ac_ext
2986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2989 } # ac_fn_c_compute_int
2991 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2992 # -------------------------------------------
2993 # Tests whether TYPE exists after having included INCLUDES, setting cache
2994 # variable VAR accordingly.
2995 ac_fn_c_check_type ()
2997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2999 $as_echo_n "checking for $2... " >&6; }
3000 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3001 $as_echo_n "(cached) " >&6
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3029 if ac_fn_c_try_compile "$LINENO"; then :
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040 $as_echo "$ac_res" >&6; }
3041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3043 } # ac_fn_c_check_type
3044 cat >config.log <<_ACEOF
3045 This file contains any messages produced by compilers while
3046 running configure, to aid debugging if configure makes a mistake.
3048 It was created by $as_me, which was
3049 generated by GNU Autoconf 2.64. Invocation command line was
3061 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3062 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3063 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3064 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3065 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3067 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3068 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3070 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3071 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3072 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3073 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3074 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3075 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3076 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 $as_echo "PATH: $as_dir"
3101 # Keep a trace of the command line.
3102 # Strip out --no-create and --no-recursion so they do not pile up.
3103 # Strip out --silent because we don't want to record it for future runs.
3104 # Also quote any args containing shell meta-characters.
3105 # Make two passes to allow for proper duplicate-argument suppression.
3109 ac_must_keep_next=false
3115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3117 | -silent | --silent | --silen | --sile | --sil)
3120 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3125 as_fn_append ac_configure_args1 " '$ac_arg'"
3126 if test $ac_must_keep_next = true; then
3127 ac_must_keep_next=false # Got value, back to normal.
3130 *=* | --config-cache | -C | -disable-* | --disable-* \
3131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3133 | -with-* | --with-* | -without-* | --without-* | --x)
3134 case "$ac_configure_args0 " in
3135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3138 -* ) ac_must_keep_next=true ;;
3141 as_fn_append ac_configure_args " '$ac_arg'"
3146 { ac_configure_args0=; unset ac_configure_args0;}
3147 { ac_configure_args1=; unset ac_configure_args1;}
3149 # When interrupted or exit'd, cleanup temporary files, and complete
3150 # config.log. We remove comments because anyway the quotes in there
3151 # would cause problems or look ugly.
3152 # WARNING: Use '\'' to represent an apostrophe within the trap.
3153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3154 trap 'exit_status=$?
3155 # Save into config.log some information that might help in debugging.
3160 ## ---------------- ##
3161 ## Cache variables. ##
3162 ## ---------------- ##
3165 # The following way of writing the cache mishandles newlines in values,
3167 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3168 eval ac_val=\$$ac_var
3172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3176 _ | IFS | as_nl) ;; #(
3177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3178 *) { eval $ac_var=; unset $ac_var;} ;;
3183 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3184 *${as_nl}ac_space=\ *)
3186 "s/'\''/'\''\\\\'\'''\''/g;
3187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3198 ## ----------------- ##
3199 ## Output variables. ##
3200 ## ----------------- ##
3203 for ac_var in $ac_subst_vars
3205 eval ac_val=\$$ac_var
3207 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3209 $as_echo "$ac_var='\''$ac_val'\''"
3213 if test -n "$ac_subst_files"; then
3215 ## ------------------- ##
3216 ## File substitutions. ##
3217 ## ------------------- ##
3220 for ac_var in $ac_subst_files
3222 eval ac_val=\$$ac_var
3224 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3226 $as_echo "$ac_var='\''$ac_val'\''"
3231 if test -s confdefs.h; then
3241 test "$ac_signal" != 0 &&
3242 $as_echo "$as_me: caught signal $ac_signal"
3243 $as_echo "$as_me: exit $exit_status"
3245 rm -f core *.core core.conftest.* &&
3246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3249 for ac_signal in 1 2 13 15; do
3250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3255 rm -f -r conftest* confdefs.h
3257 $as_echo "/* confdefs.h */" > confdefs.h
3259 # Predefined preprocessor variables.
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE_NAME "$PACKAGE_NAME"
3265 cat >>confdefs.h <<_ACEOF
3266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_STRING "$PACKAGE_STRING"
3277 cat >>confdefs.h <<_ACEOF
3278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE_URL "$PACKAGE_URL"
3286 # Let the site file select an alternate cache file if it wants to.
3287 # Prefer an explicitly selected file to automatically selected ones.
3290 if test -n "$CONFIG_SITE"; then
3291 ac_site_file1=$CONFIG_SITE
3292 elif test "x$prefix" != xNONE; then
3293 ac_site_file1=$prefix/share/config.site
3294 ac_site_file2=$prefix/etc/config.site
3296 ac_site_file1=$ac_default_prefix/share/config.site
3297 ac_site_file2=$ac_default_prefix/etc/config.site
3299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3301 test "x$ac_site_file" = xNONE && continue
3302 if test -r "$ac_site_file"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3305 sed 's/^/| /' "$ac_site_file" >&5
3310 if test -r "$cache_file"; then
3311 # Some versions of bash will fail to source /dev/null (special
3312 # files actually), so we avoid doing that.
3313 if test -f "$cache_file"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3315 $as_echo "$as_me: loading cache $cache_file" >&6;}
3317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318 *) . "./$cache_file";;
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3323 $as_echo "$as_me: creating cache $cache_file" >&6;}
3327 as_fn_append ac_func_list " canonicalize_file_name"
3328 as_fn_append ac_func_list " getcwd"
3329 as_fn_append ac_func_list " readlink"
3330 as_fn_append ac_func_list " realpath"
3331 as_fn_append ac_header_list " sys/param.h"
3332 as_fn_append ac_header_list " unistd.h"
3333 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3334 as_fn_append ac_header_list " sys/socket.h"
3335 as_fn_append ac_func_list " fchdir"
3336 as_fn_append ac_header_list " dirent.h"
3337 as_fn_append ac_func_list " fcntl"
3338 as_fn_append ac_func_list " symlink"
3339 as_fn_append ac_func_list " fdopendir"
3340 as_fn_append ac_func_list " mempcpy"
3341 as_fn_append ac_func_list " btowc"
3342 as_fn_append ac_func_list " isblank"
3343 as_fn_append ac_func_list " iswctype"
3344 as_fn_append ac_func_list " mbsrtowcs"
3345 as_fn_append ac_func_list " wmemchr"
3346 as_fn_append ac_func_list " wmemcpy"
3347 as_fn_append ac_func_list " wmempcpy"
3348 as_fn_append ac_header_list " wctype.h"
3349 gl_fnmatch_required=GNU
3350 as_fn_append ac_header_list " sys/stat.h"
3351 as_fn_append ac_func_list " fstatat"
3352 as_fn_append ac_func_list " getdtablesize"
3353 as_fn_append ac_func_list " getlogin_r"
3354 as_fn_append ac_func_list " getprogname"
3355 as_fn_append ac_func_list " getexecname"
3356 as_fn_append ac_header_list " sys/time.h"
3357 as_fn_append ac_func_list " gettimeofday"
3358 as_fn_append ac_header_list " sys/cdefs.h"
3359 as_fn_append ac_func_list " getpwnam_r"
3360 as_fn_append ac_header_list " limits.h"
3361 as_fn_append ac_header_list " wchar.h"
3362 as_fn_append ac_header_list " stdint.h"
3363 as_fn_append ac_header_list " inttypes.h"
3364 as_fn_append ac_func_list " lstat"
3365 as_fn_append ac_header_list " math.h"
3366 as_fn_append ac_func_list " mbsinit"
3367 as_fn_append ac_func_list " mbrtowc"
3368 as_fn_append ac_header_list " sys/mman.h"
3369 as_fn_append ac_func_list " mprotect"
3370 as_fn_append ac_func_list " mkstemp"
3371 as_fn_append ac_func_list " openat"
3372 as_fn_append ac_func_list " link"
3373 as_fn_append ac_func_list " secure_getenv"
3374 as_fn_append ac_func_list " getuid"
3375 as_fn_append ac_func_list " geteuid"
3376 as_fn_append ac_func_list " getgid"
3377 as_fn_append ac_func_list " getegid"
3378 as_fn_append ac_func_list " setenv"
3379 as_fn_append ac_func_list " strdup"
3380 as_fn_append ac_func_list " pipe"
3381 as_fn_append ac_header_list " features.h"
3382 as_fn_append ac_func_list " iswcntrl"
3383 # Check that the precious variables saved in the cache have kept the same
3385 ac_cache_corrupted=false
3386 for ac_var in $ac_precious_vars; do
3387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3388 eval ac_new_set=\$ac_env_${ac_var}_set
3389 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3390 eval ac_new_val=\$ac_env_${ac_var}_value
3391 case $ac_old_set,$ac_new_set in
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3394 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3395 ac_cache_corrupted=: ;;
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3398 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3399 ac_cache_corrupted=: ;;
3402 if test "x$ac_old_val" != "x$ac_new_val"; then
3403 # differences in whitespace do not lead to failure.
3404 ac_old_val_w=`echo x
$ac_old_val`
3405 ac_new_val_w=`echo x
$ac_new_val`
3406 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3408 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3409 ac_cache_corrupted=:
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3412 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3413 eval $ac_var=\$ac_old_val
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3416 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3418 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3421 # Pass precious variables to config.status.
3422 if test "$ac_new_set" = set; then
3424 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3425 *) ac_arg=$ac_var=$ac_new_val ;;
3427 case " $ac_configure_args " in
3428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3429 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3433 if $ac_cache_corrupted; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3437 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3438 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3440 ## -------------------- ##
3441 ## Main body of script. ##
3442 ## -------------------- ##
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 ac_config_headers="$ac_config_headers config.h:config.in"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3455 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3456 # Check whether --enable-maintainer-mode was given.
3457 if test "${enable_maintainer_mode+set}" = set; then :
3458 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3460 USE_MAINTAINER_MODE=no
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3464 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3465 if test $USE_MAINTAINER_MODE = yes; then
3466 MAINTAINER_MODE_TRUE=
3467 MAINTAINER_MODE_FALSE='#'
3469 MAINTAINER_MODE_TRUE='#'
3470 MAINTAINER_MODE_FALSE=
3473 MAINT=$MAINTAINER_MODE_TRUE
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3521 if test -z "$ac_cv_prog_CC"; then
3523 # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC="gcc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3559 if test "x$ac_ct_CC" = x; then
3562 case $cross_compiling:$ac_tool_warned in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3574 if test -z "$CC"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_CC="${ac_tool_prefix}cc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3615 if test -z "$CC"; then
3616 # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635 ac_prog_rejected=yes
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test $ac_prog_rejected = yes; then
3647 # We found a bogon in the path, so make sure we never use it.
3648 set dummy $ac_cv_prog_CC
3650 if test $# != 0; then
3651 # We chose a different compiler from the bogus one.
3652 # However, it has the same basename, so the bogon will be chosen
3653 # first if we set CC to just the basename; use the full file name.
3655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$CC" && break
3715 if test -z "$CC"; then
3717 for ac_prog in cl.exe
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$ac_ct_CC" && break
3759 if test "x$ac_ct_CC" = x; then
3762 case $cross_compiling:$ac_tool_warned in
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found
in \
$PATH
3778 See \
`config.log' for more details." "$LINENO" 5; }
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3784 for ac_option in --version -v -V -qversion; do
3785 { { ac_try="$ac_compiler $ac_option >&5"
3787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3788 *) ac_try_echo
=$ac_try;;
3790 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3794 if test -s conftest.err
; then
3796 ... rest of stderr output deleted ...
3797 10q' conftest.err
>conftest.er1
3798 cat conftest.er1
>&5
3799 rm -f conftest.er1 conftest.err
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3811 FILE *f = fopen ("conftest.out", "w");
3812 return ferror (f) || fclose (f) != 0;
3818 ac_clean_files_save
=$ac_clean_files
3819 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3820 # Try to create an executable without -o first, disregard a.out.
3821 # It will help us diagnose broken compilers, and finding out an intuition
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824 $as_echo_n "checking for C compiler default output file name... " >&6; }
3825 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3827 # The possible output files:
3828 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3831 for ac_file
in $ac_files
3834 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3835 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3840 if { { ac_try
="$ac_link_default"
3842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link_default") 2>&5
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3852 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3853 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3854 # so that the user can short-circuit this test for compilers unknown to
3856 for ac_file in $ac_files ''
3858 test -f "$ac_file" || continue
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3863 # We found the default executable, but exeext='' is most
3867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 # We set ac_cv_exeext here because the later test for it is not
3872 # safe: cross compilers may not add the suffix if given an `-o'
3873 # argument, so we may need to know it at that point already.
3874 # Even if this section looks crufty: it has the advantage of
3881 test "$ac_cv_exeext" = no && ac_cv_exeext=
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 if test -z "$ac_file"; then :
3889 $as_echo "$as_me: failed program was:" >&5
3890 sed 's
/^
/|
/' conftest.$ac_ext >&5
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3894 { as_fn_set_status 77
3895 as_fn_error "C compiler cannot create executables
3896 See \`config.log
' for more details." "$LINENO" 5; }; }
3898 ac_exeext=$ac_cv_exeext
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 $as_echo_n "checking whether the C compiler works... " >&6; }
3904 # If not cross compiling, check that we can run a simple program.
3905 if test "$cross_compiling" != yes; then
3906 if { ac_try='.
/$ac_file'
3907 { { case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_try") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; }; then
3919 if test "$cross_compiling" = maybe; then
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3924 as_fn_error "cannot run C compiled programs.
3925 If you meant to cross compile, use \`--host'.
3926 See \`config.log' for more details.
" "$LINENO" 5; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3931 $as_echo "yes" >&6; }
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3934 ac_clean_files=$ac_clean_files_save
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3938 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3940 $as_echo "$cross_compiling" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3943 $as_echo_n "checking
for suffix of executables...
" >&6; }
3944 if { { ac_try="$ac_link"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3957 # work properly (i.e., refer to `conftest.exe'), while it won't with
3959 for ac_file in conftest.exe conftest conftest.*; do
3960 test -f "$ac_file" || continue
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of executables: cannot compile and link
3972 See \`config.log' for more details.
" "$LINENO" 5; }
3974 rm -f conftest$ac_cv_exeext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3976 $as_echo "$ac_cv_exeext" >&6; }
3978 rm -f conftest.$ac_ext
3979 EXEEXT=$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3982 $as_echo_n "checking
for suffix of object files...
" >&6; }
3983 if test "${ac_cv_objext+set}" = set; then :
3984 $as_echo_n "(cached
) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 rm -f conftest.o conftest.obj
3998 if { { ac_try="$ac_compile"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_compile") 2>&5
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
4008 test $ac_status = 0; }; then :
4009 for ac_file in conftest.o conftest.obj conftest.*; do
4010 test -f "$ac_file" || continue;
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4013 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 $as_echo "$as_me: failed program was
:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error "cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details.
" "$LINENO" 5; }
4026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
4029 $as_echo "$ac_cv_objext" >&6; }
4030 OBJEXT=$ac_cv_objext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
4033 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
4034 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4035 $as_echo_n "(cached
) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
4061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4062 if test $ac_compiler_gnu = yes; then
4067 ac_test_CFLAGS=${CFLAGS+set}
4068 ac_save_CFLAGS=$CFLAGS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
4070 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
4071 if test "${ac_cv_prog_cc_g+set}" = set; then :
4072 $as_echo_n "(cached
) " >&6
4074 ac_save_c_werror_flag=$ac_c_werror_flag
4075 ac_c_werror_flag=yes
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
4131 $as_echo "$ac_cv_prog_cc_g" >&6; }
4132 if test "$ac_test_CFLAGS" = set; then
4133 CFLAGS=$ac_save_CFLAGS
4134 elif test $ac_cv_prog_cc_g = yes; then
4135 if test "$GCC" = yes; then
4141 if test "$GCC" = yes; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
4148 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
4149 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4150 $as_echo_n "(cached
) " >&6
4152 ac_cv_prog_cc_c89=no
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4174 s = g (p, va_arg (v,int));
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_c89=$ac_arg
4214 rm -f core conftest.err conftest.$ac_objext
4215 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4217 rm -f conftest.$ac_ext
4222 case "x
$ac_cv_prog_cc_c89" in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
4225 $as_echo "none needed
" >&6; } ;;
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
4228 $as_echo "unsupported
" >&6; } ;;
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4234 if test "x
$ac_cv_prog_cc_c89" != xno; then :
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
4251 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4252 # On Suns, sometimes $CPP names a directory.
4253 if test -n "$CPP" && test -d "$CPP"; then
4256 if test -z "$CPP"; then
4257 if test "${ac_cv_prog_CPP+set}" = set; then :
4258 $as_echo_n "(cached
) " >&6
4260 # Double quotes because CPP needs to be expanded
4261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4264 for ac_c_preproc_warn_flag in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error
" is here to catch this case.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4275 # include <limits.h>
4277 # include <assert.h>
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4284 # Broken: fails on valid input.
4287 rm -f conftest.err conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: success on invalid input.
4299 # Passes both tests.
4303 rm -f conftest.err conftest.$ac_ext
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
4321 $as_echo "$CPP" >&6; }
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error
" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4334 # include <limits.h>
4336 # include <assert.h>
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4343 # Broken: fails on valid input.
4346 rm -f conftest.err conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ac_nonexistent.h>
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355 # Broken: success on invalid input.
4358 # Passes both tests.
4362 rm -f conftest.err conftest.$ac_ext
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details.
" "$LINENO" 5; }
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4384 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4385 if test "${ac_cv_path_GREP+set}" = set; then :
4386 $as_echo_n "(cached
) " >&6
4388 if test -z "$GREP"; then
4389 ac_path_GREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in grep ggrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4400 # Check for GNU ac_path_GREP and select it if it is found.
4401 # Check for GNU $ac_path_GREP
4402 case `"$ac_path_GREP" --version 2>&1` in
4404 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4407 $as_echo_n 0123456789 >"conftest.
in"
4410 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4411 mv "conftest.tmp
" "conftest.
in"
4412 cp "conftest.
in" "conftest.
nl"
4413 $as_echo 'GREP' >> "conftest.
nl"
4414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4415 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_GREP="$ac_path_GREP"
4420 ac_path_GREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 $ac_path_GREP_found && break 3
4433 if test -z "$ac_cv_path_GREP"; then
4434 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4437 ac_cv_path_GREP=$GREP
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4442 $as_echo "$ac_cv_path_GREP" >&6; }
4443 GREP="$ac_cv_path_GREP"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4447 $as_echo_n "checking
for egrep...
" >&6; }
4448 if test "${ac_cv_path_EGREP+set}" = set; then :
4449 $as_echo_n "(cached
) " >&6
4451 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452 then ac_cv_path_EGREP="$GREP -E"
4454 if test -z "$EGREP"; then
4455 ac_path_EGREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in egrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4466 # Check for GNU ac_path_EGREP and select it if it is found.
4467 # Check for GNU $ac_path_EGREP
4468 case `"$ac_path_EGREP" --version 2>&1` in
4470 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4473 $as_echo_n 0123456789 >"conftest.
in"
4476 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4477 mv "conftest.tmp
" "conftest.
in"
4478 cp "conftest.
in" "conftest.
nl"
4479 $as_echo 'EGREP' >> "conftest.
nl"
4480 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4481 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_EGREP="$ac_path_EGREP"
4486 ac_path_EGREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 $ac_path_EGREP_found && break 3
4499 if test -z "$ac_cv_path_EGREP"; then
4500 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4503 ac_cv_path_EGREP=$EGREP
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510 EGREP="$ac_cv_path_EGREP"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
4514 $as_echo_n "checking
for ANSI C header files...
" >&6; }
4515 if test "${ac_cv_header_stdc+set}" = set; then :
4516 $as_echo_n "(cached
) " >&6
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_cv_header_stdc=yes
4536 ac_cv_header_stdc=no
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 if test $ac_cv_header_stdc = yes; then
4541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4547 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4548 $EGREP "memchr
" >/dev/null 2>&1; then :
4551 ac_cv_header_stdc=no
4557 if test $ac_cv_header_stdc = yes; then
4558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4564 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4565 $EGREP "free
" >/dev/null 2>&1; then :
4568 ac_cv_header_stdc=no
4574 if test $ac_cv_header_stdc = yes; then
4575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576 if test "$cross_compiling" = yes; then :
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 #if ((' ' & 0x0FF) == 0x020)
4584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4587 # define ISLOWER(c) \
4588 (('a' <= (c) && (c) <= 'i') \
4589 || ('j' <= (c) && (c) <= 'r') \
4590 || ('s' <= (c) && (c) <= 'z'))
4591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599 for (i = 0; i < 256; i++)
4600 if (XOR (islower (i), ISLOWER (i))
4601 || toupper (i) != TOUPPER (i))
4606 if ac_fn_c_try_run "$LINENO"; then :
4609 ac_cv_header_stdc=no
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612 conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4618 $as_echo "$ac_cv_header_stdc" >&6; }
4619 if test $ac_cv_header_stdc = yes; then
4621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4626 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4627 inttypes.h stdint.h unistd.h
4629 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4632 eval as_val
=\$
$as_ac_Header
4633 if test "x$as_val" = x
""yes; then :
4634 cat >>confdefs.h
<<_ACEOF
4635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4644 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4645 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4652 if test "$MINIX" = yes; then
4654 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4657 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4660 $as_echo "#define _MINIX 1" >>confdefs.h
4663 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4669 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4670 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4676 # define __EXTENSIONS__ 1
4677 $ac_includes_default
4686 if ac_fn_c_try_compile
"$LINENO"; then :
4687 ac_cv_safe_to_define___extensions__
=yes
4689 ac_cv_safe_to_define___extensions__
=no
4691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4694 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4695 test $ac_cv_safe_to_define___extensions__ = yes &&
4696 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4698 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4700 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4702 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4704 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4706 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4708 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4710 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4712 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4714 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4716 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4718 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4720 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4723 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4724 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_cv_should_define__xopen_source
=no
4728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4741 if ac_fn_c_try_compile
"$LINENO"; then :
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4747 #define _XOPEN_SOURCE 500
4758 if ac_fn_c_try_compile
"$LINENO"; then :
4759 ac_cv_should_define__xopen_source
=yes
4761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4766 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4767 test $ac_cv_should_define__xopen_source = yes &&
4768 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4781 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4782 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4796 gl_cv_c_amsterdam_compiler
=yes
4798 gl_cv_c_amsterdam_compiler
=no
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4805 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4807 if test $gl_cv_c_amsterdam_compiler = yes; then
4808 if test -z "$AR"; then
4811 if test -z "$ARFLAGS"; then
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4820 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_AR+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 if test -n "$AR"; then
4827 ac_cv_prog_AR
="$AR" # Let the user override the test.
4829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir
=.
4834 for ac_exec_ext
in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test -n "$AR"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4849 $as_echo "$AR" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$ac_cv_prog_AR"; then
4859 # Extract the first word of "ar", so it can be a program name with args.
4860 set dummy
ar; ac_word
=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$ac_ct_AR"; then
4867 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir
=.
4874 for ac_exec_ext
in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_AR
="ar"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4887 if test -n "$ac_ct_AR"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4889 $as_echo "$ac_ct_AR" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4895 if test "x$ac_ct_AR" = x
; then
4898 case $cross_compiling:$ac_tool_warned in
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned
=yes ;;
4910 if test -z "$ARFLAGS"; then
4916 if test -z "$RANLIB"; then
4917 if test $gl_cv_c_amsterdam_compiler = yes; then
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4922 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$RANLIB"; then
4929 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir
=.
4936 for ac_exec_ext
in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 RANLIB
=$ac_cv_prog_RANLIB
4949 if test -n "$RANLIB"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4951 $as_echo "$RANLIB" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_RANLIB"; then
4960 ac_ct_RANLIB
=$RANLIB
4961 # Extract the first word of "ranlib", so it can be a program name with args.
4962 set dummy ranlib
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$ac_ct_RANLIB"; then
4969 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4989 if test -n "$ac_ct_RANLIB"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4991 $as_echo "$ac_ct_RANLIB" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_RANLIB" = x
; then
5000 case $cross_compiling:$ac_tool_warned in
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned
=yes ;;
5006 RANLIB
=$ac_ct_RANLIB
5009 RANLIB
="$ac_cv_prog_RANLIB"
5017 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5018 for ac_t
in install-sh
install.sh shtool
; do
5019 if test -f "$ac_dir/$ac_t"; then
5021 ac_install_sh
="$ac_aux_dir/$ac_t -c"
5026 if test -z "$ac_aux_dir"; then
5027 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5030 # These three variables are undocumented and unsupported,
5031 # and are intended to be withdrawn in a future Autoconf release.
5032 # They can cause serious problems if a builder's source tree is in a directory
5033 # whose full name contains unusual characters.
5034 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5035 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5036 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5039 # Make sure we can run config.sub.
5040 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5041 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5044 $as_echo_n "checking build system type... " >&6; }
5045 if test "${ac_cv_build+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_build_alias
=$build_alias
5049 test "x$ac_build_alias" = x
&&
5050 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5051 test "x$ac_build_alias" = x
&&
5052 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
5053 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5054 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5058 $as_echo "$ac_cv_build" >&6; }
5059 case $ac_cv_build in
5061 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
5064 ac_save_IFS
=$IFS; IFS
='-'
5070 # Remember, the first character of IFS is used to create $*,
5071 # except with old shells:
5074 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5078 $as_echo_n "checking host system type... " >&6; }
5079 if test "${ac_cv_host+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5082 if test "x$host_alias" = x
; then
5083 ac_cv_host
=$ac_cv_build
5085 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5086 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5091 $as_echo "$ac_cv_host" >&6; }
5094 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5097 ac_save_IFS
=$IFS; IFS
='-'
5103 # Remember, the first character of IFS is used to create $*,
5104 # except with old shells:
5107 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5113 # IEEE behaviour is the default on all CPUs except Alpha and SH
5114 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5115 # and the GCC 4.1.2 manual).
5118 # On Alpha systems, a compiler option provides the behaviour.
5119 # See the ieee(3) manual page, also available at
5120 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5121 if test -n "$GCC"; then
5122 # GCC has the option -mieee.
5123 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5124 CPPFLAGS
="$CPPFLAGS -mieee"
5126 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5127 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5128 CPPFLAGS
="$CPPFLAGS -ieee"
5132 if test -n "$GCC"; then
5133 # GCC has the option -mieee.
5134 CPPFLAGS
="$CPPFLAGS -mieee"
5139 # Check whether --enable-largefile was given.
5140 if test "${enable_largefile+set}" = set; then :
5141 enableval
=$enable_largefile;
5144 if test "$enable_largefile" != no
; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5147 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5148 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 ac_cv_sys_largefile_CC
=no
5152 if test "$GCC" != yes; then
5155 # IRIX 6.2 and later do not support large files by default,
5156 # so use the C compiler's -n32 option if that helps.
5157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <sys/types.h>
5160 /* Check that off_t can represent 2**63 - 1 correctly.
5161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5162 since some C++ compilers masquerading as C compilers
5163 incorrectly reject 9223372036854775807. */
5164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5166 && LARGE_OFF_T % 2147483647 == 1)
5176 if ac_fn_c_try_compile
"$LINENO"; then :
5179 rm -f core conftest.err conftest.
$ac_objext
5181 if ac_fn_c_try_compile
"$LINENO"; then :
5182 ac_cv_sys_largefile_CC
=' -n32'; break
5184 rm -f core conftest.err conftest.
$ac_objext
5188 rm -f conftest.
$ac_ext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5192 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5193 if test "$ac_cv_sys_largefile_CC" != no
; then
5194 CC
=$CC$ac_cv_sys_largefile_CC
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5198 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5199 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <sys/types.h>
5206 /* Check that off_t can represent 2**63 - 1 correctly.
5207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5208 since some C++ compilers masquerading as C compilers
5209 incorrectly reject 9223372036854775807. */
5210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5212 && LARGE_OFF_T % 2147483647 == 1)
5222 if ac_fn_c_try_compile
"$LINENO"; then :
5223 ac_cv_sys_file_offset_bits
=no
; break
5225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 #define _FILE_OFFSET_BITS 64
5229 #include <sys/types.h>
5230 /* Check that off_t can represent 2**63 - 1 correctly.
5231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5232 since some C++ compilers masquerading as C compilers
5233 incorrectly reject 9223372036854775807. */
5234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5236 && LARGE_OFF_T % 2147483647 == 1)
5246 if ac_fn_c_try_compile
"$LINENO"; then :
5247 ac_cv_sys_file_offset_bits
=64; break
5249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5250 ac_cv_sys_file_offset_bits
=unknown
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5255 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5256 case $ac_cv_sys_file_offset_bits in #(
5259 cat >>confdefs.h
<<_ACEOF
5260 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5265 if test $ac_cv_sys_file_offset_bits = unknown
; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5267 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5268 if test "${ac_cv_sys_large_files+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <sys/types.h>
5275 /* Check that off_t can represent 2**63 - 1 correctly.
5276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5277 since some C++ compilers masquerading as C compilers
5278 incorrectly reject 9223372036854775807. */
5279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5281 && LARGE_OFF_T % 2147483647 == 1)
5291 if ac_fn_c_try_compile
"$LINENO"; then :
5292 ac_cv_sys_large_files
=no
; break
5294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 #define _LARGE_FILES 1
5298 #include <sys/types.h>
5299 /* Check that off_t can represent 2**63 - 1 correctly.
5300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5301 since some C++ compilers masquerading as C compilers
5302 incorrectly reject 9223372036854775807. */
5303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5305 && LARGE_OFF_T % 2147483647 == 1)
5315 if ac_fn_c_try_compile
"$LINENO"; then :
5316 ac_cv_sys_large_files
=1; break
5318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5319 ac_cv_sys_large_files
=unknown
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5324 $as_echo "$ac_cv_sys_large_files" >&6; }
5325 case $ac_cv_sys_large_files in #(
5328 cat >>confdefs.h
<<_ACEOF
5329 #define _LARGE_FILES $ac_cv_sys_large_files
5337 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5343 # Pre-early section.
5347 # Code from module absolute-header:
5348 # Code from module alloca:
5349 # Code from module alloca-opt:
5350 # Code from module assure:
5351 # Code from module at-internal:
5352 # Code from module canonicalize-lgpl:
5353 # Code from module chdir:
5354 # Code from module chdir-long:
5355 # Code from module cloexec:
5356 # Code from module close:
5357 # Code from module closedir:
5358 # Code from module configmake:
5359 # Code from module d-ino:
5360 # Code from module d-type:
5361 # Code from module dirent:
5362 # Code from module dirfd:
5363 # Code from module dirname-lgpl:
5364 # Code from module dosname:
5365 # Code from module double-slash-root:
5366 # Code from module dup:
5367 # Code from module dup2:
5368 # Code from module environ:
5369 # Code from module errno:
5370 # Code from module error:
5371 # Code from module exitfail:
5372 # Code from module extensions:
5373 # Code from module extern-inline:
5374 # Code from module fchdir:
5375 # Code from module fcntl:
5376 # Code from module fcntl-h:
5377 # Code from module fd-hook:
5378 # Code from module fdopendir:
5379 # Code from module filename:
5380 # Code from module filenamecat-lgpl:
5381 # Code from module flexmember:
5382 # Code from module float:
5383 # Code from module fnmatch:
5384 # Code from module fnmatch-gnu:
5385 # Code from module fpieee:
5387 # Code from module fpucw:
5388 # Code from module frexp:
5389 # Code from module frexpl:
5390 # Code from module fstat:
5391 # Code from module fstatat:
5392 # Code from module getcwd:
5393 # Code from module getcwd-lgpl:
5394 # Code from module getdtablesize:
5395 # Code from module getlogin_r:
5396 # Code from module getprogname:
5397 # Code from module gettext-h:
5398 # Code from module gettimeofday:
5399 # Code from module glob:
5400 # Code from module hard-locale:
5401 # Code from module include_next:
5402 # Code from module intprops:
5403 # Code from module inttypes:
5404 # Code from module inttypes-incomplete:
5405 # Code from module isnand-nolibm:
5406 # Code from module isnanl-nolibm:
5407 # Code from module largefile:
5409 # Code from module limits-h:
5410 # Code from module localcharset:
5411 # Code from module lstat:
5412 # Code from module malloc-posix:
5413 # Code from module malloca:
5414 # Code from module math:
5415 # Code from module mbrtowc:
5416 # Code from module mbsinit:
5417 # Code from module mbsrtowcs:
5418 # Code from module memchr:
5419 # Code from module memmem:
5420 # Code from module memmem-simple:
5421 # Code from module mempcpy:
5422 # Code from module memrchr:
5423 # Code from module mkstemp:
5424 # Code from module msvc-inval:
5425 # Code from module msvc-nothrow:
5426 # Code from module multiarch:
5427 # Code from module nocrash:
5428 # Code from module open:
5429 # Code from module openat:
5430 # Code from module openat-die:
5431 # Code from module openat-h:
5432 # Code from module opendir:
5433 # Code from module pathmax:
5434 # Code from module rawmemchr:
5435 # Code from module readdir:
5436 # Code from module readlink:
5437 # Code from module realloc-posix:
5438 # Code from module rename:
5439 # Code from module rewinddir:
5440 # Code from module rmdir:
5441 # Code from module same-inode:
5442 # Code from module save-cwd:
5443 # Code from module secure_getenv:
5444 # Code from module setenv:
5445 # Code from module signal-h:
5446 # Code from module snippet/_Noreturn:
5447 # Code from module snippet/arg-nonnull:
5448 # Code from module snippet/c++defs:
5449 # Code from module snippet/warn-on-use:
5450 # Code from module ssize_t:
5451 # Code from module stat:
5452 # Code from module stdbool:
5453 # Code from module stddef:
5454 # Code from module stdint:
5455 # Code from module stdio:
5456 # Code from module stdlib:
5457 # Code from module strchrnul:
5458 # Code from module strdup-posix:
5459 # Code from module streq:
5460 # Code from module strerror:
5461 # Code from module strerror-override:
5462 # Code from module string:
5463 # Code from module strnlen1:
5464 # Code from module strstr:
5465 # Code from module strstr-simple:
5466 # Code from module strtok_r:
5467 # Code from module sys_stat:
5468 # Code from module sys_time:
5469 # Code from module sys_types:
5470 # Code from module tempname:
5471 # Code from module time:
5472 # Code from module unistd:
5473 # Code from module unistd-safer:
5474 # Code from module unsetenv:
5475 # Code from module update-copyright:
5476 # Code from module verify:
5477 # Code from module wchar:
5478 # Code from module wctype-h:
5481 ac_cpp
='$CPP $CPPFLAGS'
5482 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5487 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_CC+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5493 if test -n "$CC"; then
5494 ac_cv_prog_CC
="$CC" # Let the user override the test.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 if test -n "$CC"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5516 $as_echo "$CC" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5524 if test -z "$ac_cv_prog_CC"; then
5526 # Extract the first word of "gcc", so it can be a program name with args.
5527 set dummy gcc
; ac_word
=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$ac_ct_CC"; then
5534 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir
=.
5541 for ac_exec_ext
in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_CC
="gcc"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5554 if test -n "$ac_ct_CC"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5556 $as_echo "$ac_ct_CC" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5562 if test "x$ac_ct_CC" = x
; then
5565 case $cross_compiling:$ac_tool_warned in
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned
=yes ;;
5577 if test -z "$CC"; then
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5580 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_CC+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$CC"; then
5587 ac_cv_prog_CC
="$CC" # Let the user override the test.
5589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir
=.
5594 for ac_exec_ext
in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 if test -n "$CC"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5609 $as_echo "$CC" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5618 if test -z "$CC"; then
5619 # Extract the first word of "cc", so it can be a program name with args.
5620 set dummy cc
; ac_word
=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if test "${ac_cv_prog_CC+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$CC"; then
5627 ac_cv_prog_CC
="$CC" # Let the user override the test.
5630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir
=.
5635 for ac_exec_ext
in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5638 ac_prog_rejected
=yes
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 if test $ac_prog_rejected = yes; then
5650 # We found a bogon in the path, so make sure we never use it.
5651 set dummy
$ac_cv_prog_CC
5653 if test $# != 0; then
5654 # We chose a different compiler from the bogus one.
5655 # However, it has the same basename, so the bogon will be chosen
5656 # first if we set CC to just the basename; use the full file name.
5658 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5664 if test -n "$CC"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5666 $as_echo "$CC" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5674 if test -z "$CC"; then
5675 if test -n "$ac_tool_prefix"; then
5676 for ac_prog
in cl.exe
5678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5679 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_prog_CC+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5685 if test -n "$CC"; then
5686 ac_cv_prog_CC
="$CC" # Let the user override the test.
5688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5692 test -z "$as_dir" && as_dir
=.
5693 for ac_exec_ext
in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 if test -n "$CC"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5708 $as_echo "$CC" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 test -n "$CC" && break
5718 if test -z "$CC"; then
5720 for ac_prog
in cl.exe
5722 # Extract the first word of "$ac_prog", so it can be a program name with args.
5723 set dummy
$ac_prog; ac_word
=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 if test -n "$ac_ct_CC"; then
5730 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir
=.
5737 for ac_exec_ext
in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_prog_ac_ct_CC
="$ac_prog"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5750 if test -n "$ac_ct_CC"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5752 $as_echo "$ac_ct_CC" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 test -n "$ac_ct_CC" && break
5762 if test "x$ac_ct_CC" = x
; then
5765 case $cross_compiling:$ac_tool_warned in
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned
=yes ;;
5778 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5780 as_fn_error
"no acceptable C compiler found in \$PATH
5781 See \`config.log' for more details." "$LINENO" 5; }
5783 # Provide some information about the compiler.
5784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5787 for ac_option
in --version -v -V -qversion; do
5788 { { ac_try
="$ac_compiler $ac_option >&5"
5790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5794 $as_echo "$ac_try_echo"; } >&5
5795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5797 if test -s conftest.err; then
5799 ... rest of stderr output deleted ...
5800 10q' conftest.err >conftest.er1
5801 cat conftest.er1 >&5
5802 rm -f conftest.er1 conftest.err
5804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805 test $ac_status = 0; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5810 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5827 if ac_fn_c_try_compile "$LINENO"; then :
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5838 if test $ac_compiler_gnu = yes; then
5843 ac_test_CFLAGS=${CFLAGS+set}
5844 ac_save_CFLAGS=$CFLAGS
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5847 if test "${ac_cv_prog_cc_g+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5850 ac_save_c_werror_flag=$ac_c_werror_flag
5851 ac_c_werror_flag=yes
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5865 if ac_fn_c_try_compile "$LINENO"; then :
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5880 if ac_fn_c_try_compile "$LINENO"; then :
5883 ac_c_werror_flag=$ac_save_c_werror_flag
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5896 if ac_fn_c_try_compile "$LINENO"; then :
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 ac_c_werror_flag=$ac_save_c_werror_flag
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5907 $as_echo "$ac_cv_prog_cc_g" >&6; }
5908 if test "$ac_test_CFLAGS" = set; then
5909 CFLAGS=$ac_save_CFLAGS
5910 elif test $ac_cv_prog_cc_g = yes; then
5911 if test "$GCC" = yes; then
5917 if test "$GCC" = yes; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5925 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 ac_cv_prog_cc_c89=no
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5934 #include <sys/types.h>
5935 #include <sys/stat.h>
5936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5937 struct buf { int x; };
5938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5939 static char *e (p, i)
5945 static char *f (char * (*g) (char **, int), char **p, ...)
5950 s = g (p, va_arg (v,int));
5955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5956 function prototypes and stuff, but not '\xHH' hex character constants.
5957 These don't provoke an error unfortunately, instead are silently treated
5958 as 'x'. The following induces an error, until -std is added to get
5959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5960 array size at least. It's necessary to write '\x00'==0 to get something
5961 that's true only with -std. */
5962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5965 inside strings and character constants. */
5967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5969 int test (int i, double x);
5970 struct s1 {int (*f) (int a);};
5971 struct s2 {int (*f) (double a);};
5972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5986 CC="$ac_save_CC $ac_arg"
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_prog_cc_c89=$ac_arg
5990 rm -f core conftest.err conftest.$ac_objext
5991 test "x$ac_cv_prog_cc_c89" != "xno" && break
5993 rm -f conftest.$ac_ext
5998 case "x$ac_cv_prog_cc_c89" in
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6001 $as_echo "none needed" >&6; } ;;
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6004 $as_echo "unsupported" >&6; } ;;
6006 CC="$CC $ac_cv_prog_cc_c89"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6010 if test "x$ac_cv_prog_cc_c89" != xno; then :
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6025 for ac_dir in ../.. "$srcdir"/../..; do
6026 for ac_t in install-sh install.sh shtool; do
6027 if test -f "$ac_dir/$ac_t"; then
6029 ac_install_sh="$ac_aux_dir/$ac_t -c"
6034 if test -z "$ac_aux_dir"; then
6035 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6038 # These three variables are undocumented and unsupported,
6039 # and are intended to be withdrawn in a future Autoconf release.
6040 # They can cause serious problems if a builder's source tree is in a directory
6041 # whose full name contains unusual characters.
6042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6048 $as_echo_n "checking target system type... " >&6; }
6049 if test "${ac_cv_target+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6052 if test "x$target_alias" = x; then
6053 ac_cv_target=$ac_cv_host
6055 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6056 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6061 $as_echo "$ac_cv_target" >&6; }
6062 case $ac_cv_target in
6064 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
6066 target=$ac_cv_target
6067 ac_save_IFS=$IFS; IFS='-'
6073 # Remember, the first character of IFS is used to create $*,
6074 # except with old shells:
6077 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6080 # The aliases save the names the user supplied, while $host etc.
6081 # will get canonicalized.
6082 test -n "$target_alias" &&
6083 test "$program_prefix$program_suffix$program_transform_name" = \
6085 program_prefix=${target_alias}-
6093 LIBC_FATAL_STDERR_=1
6094 export LIBC_FATAL_STDERR_
6096 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6097 # for constant arguments. Useless!
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6099 $as_echo_n "checking for working alloca.h... " >&6; }
6100 if test "${ac_cv_working_alloca_h+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6109 char *p = (char *) alloca (2 * sizeof (int));
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 ac_cv_working_alloca_h=yes
6118 ac_cv_working_alloca_h=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6124 $as_echo "$ac_cv_working_alloca_h" >&6; }
6125 if test $ac_cv_working_alloca_h = yes; then
6127 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6132 $as_echo_n "checking for alloca... " >&6; }
6133 if test "${ac_cv_func_alloca_works+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 # define alloca __builtin_alloca
6142 # include <malloc.h>
6143 # define alloca _alloca
6145 # ifdef HAVE_ALLOCA_H
6146 # include <alloca.h>
6151 # ifndef alloca /* predefined by HP cc +Olibcalls */
6162 char *p = (char *) alloca (1);
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 ac_cv_func_alloca_works=yes
6171 ac_cv_func_alloca_works=no
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6177 $as_echo "$ac_cv_func_alloca_works" >&6; }
6179 if test $ac_cv_func_alloca_works = yes; then
6181 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6184 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6185 # that cause trouble. Some versions do not even contain alloca or
6186 # contain a buggy version. If you still want to use their alloca,
6187 # use ar to extract alloca.o from them instead of compiling alloca.c.
6193 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6195 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6199 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6200 if test "${ac_cv_os_cray+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 #if defined CRAY && ! defined CRAY2
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213 $EGREP "webecray" >/dev/null 2>&1; then :
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6222 $as_echo "$ac_cv_os_cray" >&6; }
6223 if test $ac_cv_os_cray = yes; then
6224 for ac_func in _getb67 GETB67 getb67; do
6225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6227 eval as_val=\$$as_ac_var
6228 if test "x$as_val" = x""yes; then :
6230 cat >>confdefs.h <<_ACEOF
6231 #define CRAY_STACKSEG_END $ac_func
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6241 $as_echo_n "checking stack direction for C alloca... " >&6; }
6242 if test "${ac_cv_c_stack_direction+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 if test "$cross_compiling" = yes; then :
6246 ac_cv_c_stack_direction=0
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 $ac_includes_default
6252 find_stack_direction (int *addr, int depth)
6257 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6258 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6263 main (int argc, char **argv)
6265 return find_stack_direction (0, argc + !argv + 20) < 0;
6268 if ac_fn_c_try_run "$LINENO"; then :
6269 ac_cv_c_stack_direction=1
6271 ac_cv_c_stack_direction=-1
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6274 conftest.$ac_objext conftest.beam conftest.$ac_ext
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6279 $as_echo "$ac_cv_c_stack_direction" >&6; }
6280 cat >>confdefs.h <<_ACEOF
6281 #define STACK_DIRECTION $ac_cv_c_stack_direction
6290 GNULIB_CALLOC_POSIX=0;
6291 GNULIB_CANONICALIZE_FILE_NAME=0;
6292 GNULIB_GETLOADAVG=0;
6295 GNULIB_MALLOC_POSIX=0;
6302 GNULIB_POSIX_OPENPT=0;
6309 GNULIB_REALLOC_POSIX=0;
6312 GNULIB_SECURE_GETENV=0;
6317 GNULIB_SYSTEM_POSIX=0;
6323 HAVE_CANONICALIZE_FILE_NAME=1;
6324 HAVE_DECL_GETLOADAVG=1;
6332 HAVE_POSIX_OPENPT=1;
6341 HAVE_SECURE_GETENV=1;
6347 HAVE_STRUCT_RANDOM_DATA=1;
6348 HAVE_SYS_LOADAVG_H=0;
6350 HAVE_DECL_UNSETENV=1;
6352 REPLACE_CANONICALIZE_FILE_NAME=0;
6357 REPLACE_PTSNAME_R=0;
6371 for ac_func in $ac_func_list
6373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6375 eval as_val=\$$as_ac_var
6376 if test "x$as_val" = x""yes; then :
6377 cat >>confdefs.h <<_ACEOF
6378 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6393 $as_echo_n "checking whether // is distinct from /... " >&6; }
6394 if test "${gl_cv_double_slash_root+set}" = set; then :
6395 $as_echo_n "(cached) " >&6
6397 if test x"$cross_compiling" = xyes ; then
6398 # When cross-compiling, there is no way to tell whether // is special
6399 # short of a list of hosts. However, the only known hosts to date
6400 # that have a distinct // are Apollo DomainOS (too old to port to),
6401 # Cygwin, and z/OS. If anyone knows of another system for which // has
6402 # special semantics and is distinct from /, please report it to
6403 # <bug-gnulib@gnu.org>.
6405 *-cygwin | i370-ibm-openedition)
6406 gl_cv_double_slash_root=yes ;;
6408 # Be optimistic and assume that / and // are the same when we
6410 gl_cv_double_slash_root='unknown, assuming no' ;;
6413 set x `ls -di / // 2>/dev
/null
`
6414 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6415 gl_cv_double_slash_root=no
6417 gl_cv_double_slash_root=yes
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6422 $as_echo "$gl_cv_double_slash_root" >&6; }
6423 if test "$gl_cv_double_slash_root" = yes; then
6425 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6434 $as_echo_n "checking whether realpath works... " >&6; }
6435 if test "${gl_cv_func_realpath_works+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6441 if test "$cross_compiling" = yes; then :
6443 # Guess yes on glibc systems.
6444 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6445 # If we don't know, assume the worst.
6446 *) gl_cv_func_realpath_works="guessing no" ;;
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6456 #if defined __MACH__ && defined __APPLE__
6457 /* Avoid a crash on Mac OS X. */
6458 #include <mach/mach.h>
6459 #include <mach/mach_error.h>
6460 #include <mach/thread_status.h>
6461 #include <mach/exception.h>
6462 #include <mach/task.h>
6463 #include <pthread.h>
6464 /* The exception port on which our thread listens. */
6465 static mach_port_t our_exception_port;
6466 /* The main function of the thread listening for exceptions of type
6469 mach_exception_thread (void *arg)
6471 /* Buffer for a message to be received. */
6473 mach_msg_header_t head;
6474 mach_msg_body_t msgh_body;
6477 mach_msg_return_t retval;
6478 /* Wait for a message on the exception port. */
6479 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6480 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6481 if (retval != MACH_MSG_SUCCESS)
6488 mach_port_t self = mach_task_self ();
6489 /* Allocate a port on which the thread shall listen for exceptions. */
6490 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6492 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6493 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6494 MACH_MSG_TYPE_MAKE_SEND)
6496 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6498 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6499 /* Create the thread listening on the exception port. */
6500 pthread_attr_t attr;
6502 if (pthread_attr_init (&attr) == 0
6503 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6504 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6505 pthread_attr_destroy (&attr);
6506 /* Replace the exception port info for these exceptions with our own.
6507 Note that we replace the exception port for the entire task, not only
6508 for a particular thread. This has the effect that when our exception
6509 port gets the message, the thread specific exception port has already
6510 been asked, and we don't need to bother about it.
6511 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6512 task_set_exception_ports (self, mask, our_exception_port,
6513 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6518 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6519 /* Avoid a crash on native Windows. */
6520 #define WIN32_LEAN_AND_MEAN
6521 #include <windows.h>
6522 #include <winerror.h>
6524 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6526 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6528 case EXCEPTION_ACCESS_VIOLATION:
6529 case EXCEPTION_IN_PAGE_ERROR:
6530 case EXCEPTION_STACK_OVERFLOW:
6531 case EXCEPTION_GUARD_PAGE:
6532 case EXCEPTION_PRIV_INSTRUCTION:
6533 case EXCEPTION_ILLEGAL_INSTRUCTION:
6534 case EXCEPTION_DATATYPE_MISALIGNMENT:
6535 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6536 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6539 return EXCEPTION_CONTINUE_SEARCH;
6544 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6547 /* Avoid a crash on POSIX systems. */
6550 /* A POSIX signal handler. */
6552 exception_handler (int sig)
6560 signal (SIGSEGV, exception_handler);
6563 signal (SIGBUS, exception_handler);
6577 char *name = realpath ("conftest.a", NULL);
6578 if (!(name && *name == '/'))
6583 char *name = realpath ("conftest.b/../conftest.a", NULL);
6589 char *name = realpath ("conftest.a/", NULL);
6595 char *name1 = realpath (".", NULL);
6596 char *name2 = realpath ("conftest.d//./..", NULL);
6597 if (! name1 || ! name2 || strcmp (name1, name2))
6609 if ac_fn_c_try_run "$LINENO"; then :
6610 gl_cv_func_realpath_works=yes
6612 gl_cv_func_realpath_works=no
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6615 conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 rm -rf conftest.a conftest.d
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6622 $as_echo "$gl_cv_func_realpath_works" >&6; }
6623 case "$gl_cv_func_realpath_works" in
6626 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6634 for ac_header in $ac_header_list
6636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6637 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6639 eval as_val=\$$as_ac_Header
6640 if test "x$as_val" = x""yes; then :
6641 cat >>confdefs.h <<_ACEOF
6642 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6666 GNULIB_EUIDACCESS=0;
6674 GNULIB_GETDOMAINNAME=0;
6675 GNULIB_GETDTABLESIZE=0;
6677 GNULIB_GETHOSTNAME=0;
6679 GNULIB_GETLOGIN_R=0;
6680 GNULIB_GETPAGESIZE=0;
6681 GNULIB_GETUSERSHELL=0;
6682 GNULIB_GROUP_MEMBER=0;
6694 GNULIB_READLINKAT=0;
6696 GNULIB_SETHOSTNAME=0;
6701 GNULIB_UNISTD_H_NONBLOCKING=0;
6702 GNULIB_UNISTD_H_SIGPIPE=0;
6717 HAVE_GETDTABLESIZE=1;
6722 HAVE_GROUP_MEMBER=1;
6738 HAVE_DECL_ENVIRON=1;
6740 HAVE_DECL_FDATASYNC=1;
6741 HAVE_DECL_GETDOMAINNAME=1;
6742 HAVE_DECL_GETLOGIN_R=1;
6743 HAVE_DECL_GETPAGESIZE=1;
6744 HAVE_DECL_GETUSERSHELL=1;
6745 HAVE_DECL_SETHOSTNAME=1;
6746 HAVE_DECL_TTYNAME_R=1;
6754 REPLACE_FTRUNCATE=0;
6756 REPLACE_GETDOMAINNAME=0;
6757 REPLACE_GETDTABLESIZE=0;
6758 REPLACE_GETLOGIN_R=0;
6759 REPLACE_GETGROUPS=0;
6760 REPLACE_GETPAGESIZE=0;
6770 REPLACE_READLINKAT=0;
6774 REPLACE_SYMLINKAT=0;
6775 REPLACE_TTYNAME_R=0;
6780 UNISTD_H_HAVE_WINSOCK2_H=0;
6781 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6793 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
6794 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
6796 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
6799 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
6821 HAVE_DECL_FDOPENDIR=1;
6828 REPLACE_FDOPENDIR=0;
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6833 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6834 if test "${gl_cv_have_include_next+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6837 rm -rf conftestd1a conftestd1b conftestd2
6838 mkdir conftestd1a conftestd1b conftestd2
6839 cat <<EOF > conftestd1a/conftest.h
6840 #define DEFINED_IN_CONFTESTD1
6841 #include_next <conftest.h>
6842 #ifdef DEFINED_IN_CONFTESTD2
6845 #error "include_next doesn't work"
6848 cat <<EOF > conftestd1b/conftest.h
6849 #define DEFINED_IN_CONFTESTD1
6851 #include_next <conftest.h>
6852 #ifdef DEFINED_IN_CONFTESTD2
6855 #error "include_next doesn't work"
6858 cat <<EOF > conftestd2/conftest.h
6859 #ifndef DEFINED_IN_CONFTESTD1
6860 #error "include_next test doesn't work"
6862 #define DEFINED_IN_CONFTESTD2
6864 gl_save_CPPFLAGS="$CPPFLAGS"
6865 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 #include <conftest.h>
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 gl_cv_have_include_next=yes
6873 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #include <conftest.h>
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 gl_cv_have_include_next=buggy
6881 gl_cv_have_include_next=no
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 CPPFLAGS="$gl_save_CPPFLAGS"
6888 rm -rf conftestd1a conftestd1b conftestd2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6892 $as_echo "$gl_cv_have_include_next" >&6; }
6893 PRAGMA_SYSTEM_HEADER=
6894 if test $gl_cv_have_include_next = yes; then
6895 INCLUDE_NEXT=include_next
6896 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6897 if test -n "$GCC"; then
6898 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6901 if test $gl_cv_have_include_next = buggy; then
6902 INCLUDE_NEXT=include
6903 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6905 INCLUDE_NEXT=include
6906 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6913 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6914 if test "${gl_cv_pragma_columns+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 $EGREP "choke me" >/dev/null 2>&1; then :
6927 gl_cv_pragma_columns=yes
6929 gl_cv_pragma_columns=no
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6936 $as_echo "$gl_cv_pragma_columns" >&6; }
6937 if test $gl_cv_pragma_columns = yes; then
6938 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
6954 $as_echo_n "checking if environ is properly declared... " >&6; }
6955 if test "${gt_cv_var_environ_declaration+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6964 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
6967 extern struct { int foo; } environ;
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977 gt_cv_var_environ_declaration=no
6979 gt_cv_var_environ_declaration=yes
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
6985 $as_echo "$gt_cv_var_environ_declaration" >&6; }
6986 if test $gt_cv_var_environ_declaration = yes; then
6988 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
6993 if test $gt_cv_var_environ_declaration != yes; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7000 $as_echo_n "checking for complete errno.h... " >&6; }
7001 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7009 #if !defined ETXTBSY
7018 #if !defined ENOLINK
7024 #if !defined EMULTIHOP
7027 #if !defined EBADMSG
7030 #if !defined EOVERFLOW
7033 #if !defined ENOTSUP
7036 #if !defined ENETRESET
7039 #if !defined ECONNABORTED
7048 #if !defined ECANCELED
7051 #if !defined EOWNERDEAD
7054 #if !defined ENOTRECOVERABLE
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "booboo" >/dev/null 2>&1; then :
7064 gl_cv_header_errno_h_complete=no
7066 gl_cv_header_errno_h_complete=yes
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7073 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7074 if test $gl_cv_header_errno_h_complete = yes; then
7085 if test $gl_cv_have_include_next = yes; then
7086 gl_cv_next_errno_h='<'errno.h'>'
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7089 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7090 if test "${gl_cv_next_errno_h+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7101 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7102 *) gl_absname_cpp="$ac_cpp" ;;
7107 gl_dirsep_regex='[/\\]'
7110 gl_dirsep_regex='\/'
7113 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7114 gl_header_literal_regex=`echo 'errno.h' \
7115 |
sed -e "$gl_make_literal_regex_sed"`
7116 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7117 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7123 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7124 sed -n "$gl_absolute_header_sed"`
7126 gl_header=$gl_cv_absolute_errno_h
7127 gl_cv_next_errno_h='"'$gl_header'"'
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7132 $as_echo "$gl_cv_next_errno_h" >&6; }
7134 NEXT_ERRNO_H=$gl_cv_next_errno_h
7136 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7138 gl_next_as_first_directive='<'errno.h'>'
7140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7141 gl_next_as_first_directive=$gl_cv_next_errno_h
7143 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7151 if test -n "$ERRNO_H"; then
7152 GL_GENERATE_ERRNO_H_TRUE=
7153 GL_GENERATE_ERRNO_H_FALSE='#'
7155 GL_GENERATE_ERRNO_H_TRUE='#'
7156 GL_GENERATE_ERRNO_H_FALSE=
7160 if test -n "$ERRNO_H"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7162 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7163 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "yes" >/dev/null 2>&1; then :
7178 gl_cv_header_errno_h_EMULTIHOP=yes
7180 gl_cv_header_errno_h_EMULTIHOP=no
7184 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7188 #define _XOPEN_SOURCE_EXTENDED 1
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "yes" >/dev/null 2>&1; then :
7197 gl_cv_header_errno_h_EMULTIHOP=hidden
7201 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7202 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7203 #define _XOPEN_SOURCE_EXTENDED 1
7205 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7217 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7218 case $gl_cv_header_errno_h_EMULTIHOP in
7220 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7223 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7231 if test -n "$ERRNO_H"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7233 $as_echo_n "checking for ENOLINK value... " >&6; }
7234 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248 $EGREP "yes" >/dev/null 2>&1; then :
7249 gl_cv_header_errno_h_ENOLINK=yes
7251 gl_cv_header_errno_h_ENOLINK=no
7255 if test $gl_cv_header_errno_h_ENOLINK = no; then
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7259 #define _XOPEN_SOURCE_EXTENDED 1
7266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7267 $EGREP "yes" >/dev/null 2>&1; then :
7268 gl_cv_header_errno_h_ENOLINK=hidden
7272 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7273 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7274 #define _XOPEN_SOURCE_EXTENDED 1
7276 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7288 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7289 case $gl_cv_header_errno_h_ENOLINK in
7291 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7294 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7302 if test -n "$ERRNO_H"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7304 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7305 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7319 $EGREP "yes" >/dev/null 2>&1; then :
7320 gl_cv_header_errno_h_EOVERFLOW=yes
7322 gl_cv_header_errno_h_EOVERFLOW=no
7326 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7330 #define _XOPEN_SOURCE_EXTENDED 1
7337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7338 $EGREP "yes" >/dev/null 2>&1; then :
7339 gl_cv_header_errno_h_EOVERFLOW=hidden
7343 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7344 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7345 #define _XOPEN_SOURCE_EXTENDED 1
7347 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7359 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7360 case $gl_cv_header_errno_h_EOVERFLOW in
7362 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7365 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7373 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7374 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_DECL_STRERROR_R $ac_have_decl
7384 for ac_func in strerror_r
7386 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7387 if test "x$ac_cv_func_strerror_r" = x""yes; then :
7388 cat >>confdefs.h <<_ACEOF
7389 #define HAVE_STRERROR_R 1
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7396 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7397 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7401 ac_cv_func_strerror_r_char_p=no
7402 if test $ac_cv_have_decl_strerror_r = yes; then
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 $ac_includes_default
7411 char x = *strerror_r (0, buf, sizeof buf);
7412 char *p = strerror_r (0, buf, sizeof buf);
7419 if ac_fn_c_try_compile "$LINENO"; then :
7420 ac_cv_func_strerror_r_char_p=yes
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 # strerror_r is not declared. Choose between
7425 # systems that have relatively inaccessible declarations for the
7426 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7427 # former has a strerror_r that returns char*, while the latter
7428 # has a strerror_r that returns `int
'.
7429 # This test should segfault on the DEC system.
7430 if test "$cross_compiling" = yes; then :
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 $ac_includes_default
7436 extern char *strerror_r ();
7441 char x = *strerror_r (0, buf, sizeof buf);
7442 return ! isalpha (x);
7447 if ac_fn_c_try_run "$LINENO"; then :
7448 ac_cv_func_strerror_r_char_p=yes
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7451 conftest.$ac_objext conftest.beam conftest.$ac_ext
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7458 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7459 if test $ac_cv_func_strerror_r_char_p = yes; then
7461 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7468 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7469 if test "x$ac_cv_have_decl_fchdir" = x""yes; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define HAVE_DECL_FCHDIR $ac_have_decl
7481 GNULIB_NONBLOCKING=0;
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7500 $as_echo_n "checking for working fcntl.h... " >&6; }
7501 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7504 if test "$cross_compiling" = yes; then :
7505 gl_cv_header_working_fcntl_h=cross-compiling
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <sys/types.h>
7510 #include <sys/stat.h>
7512 # include <unistd.h>
7513 #else /* on Windows with MSVC */
7515 # include <stdlib.h>
7516 # defined sleep(n) _sleep ((n) * 1000)
7523 #define O_NOFOLLOW 0
7525 static int const constants[] =
7527 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7528 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7535 int result = !constants;
7538 static char const sym[] = "conftest.sym";
7539 if (symlink ("/dev/null", sym) != 0)
7543 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7550 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7554 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7565 static char const file[] = "confdefs.h";
7566 int fd = open (file, O_RDONLY | O_NOATIME);
7572 if (fstat (fd, &st0) != 0)
7578 if (read (fd, &c, 1) != 1)
7582 if (close (fd) != 0)
7587 if (stat (file, &st1) != 0)
7590 if (st0.st_atime != st1.st_atime)
7602 if ac_fn_c_try_run "$LINENO"; then :
7603 gl_cv_header_working_fcntl_h=yes
7606 4) gl_cv_header_working_fcntl_h='no
(bad O_NOFOLLOW
)';; #(
7607 64) gl_cv_header_working_fcntl_h='no
(bad O_NOATIME
)';; #(
7608 68) gl_cv_header_working_fcntl_h='no
(bad O_NOATIME
, O_NOFOLLOW
)';; #(
7609 *) gl_cv_header_working_fcntl_h='no
';;
7612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7613 conftest.$ac_objext conftest.beam conftest.$ac_ext
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7618 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7620 case $gl_cv_header_working_fcntl_h in #(
7621 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_WORKING_O_NOATIME $ac_val
7630 case $gl_cv_header_working_fcntl_h in #(
7631 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7635 cat >>confdefs.h <<_ACEOF
7636 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7640 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7641 if test "x$ac_cv_type_pid_t" = x""yes; then :
7645 cat >>confdefs.h <<_ACEOF
7651 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7652 if test "x$ac_cv_type_mode_t" = x""yes; then :
7656 cat >>confdefs.h <<_ACEOF
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7669 $as_echo_n "checking for mbstate_t... " >&6; }
7670 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7678 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7679 included before <wchar.h>. */
7687 mbstate_t x; return sizeof x;
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 ac_cv_type_mbstate_t=yes
7695 ac_cv_type_mbstate_t=no
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7700 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7701 if test $ac_cv_type_mbstate_t = yes; then
7703 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7707 $as_echo "#define mbstate_t int" >>confdefs.h
7803 GNULIB_REMAINDERF=0;
7804 GNULIB_REMAINDERL=0;
7890 HAVE_DECL_COPYSIGNF=1;
7907 HAVE_DECL_REMAINDER=1;
7908 HAVE_DECL_REMAINDERL=1;
7970 REPLACE_REMAINDER=0;
7971 REPLACE_REMAINDERF=0;
7972 REPLACE_REMAINDERL=0;
7977 REPLACE_SIGNBIT_USING_GCC=0;
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7985 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7986 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7997 int e; return frexp (x, &e) > 0;
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 gl_cv_func_frexp_no_libm=yes
8005 gl_cv_func_frexp_no_libm=no
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8012 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8014 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8015 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
8021 cat >>confdefs.h <<_ACEOF
8022 #define HAVE_DECL_ALARM $ac_have_decl
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8027 $as_echo_n "checking whether long double and double are the same... " >&6; }
8028 if test "${gl_cv_long_double_equals_double+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8037 typedef int check[sizeof (long double) == sizeof (double)
8038 && LDBL_MANT_DIG == DBL_MANT_DIG
8039 && LDBL_MAX_EXP == DBL_MAX_EXP
8040 && LDBL_MIN_EXP == DBL_MIN_EXP
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 gl_cv_long_double_equals_double=yes
8050 gl_cv_long_double_equals_double=no
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8056 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8057 if test $gl_cv_long_double_equals_double = yes; then
8059 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8061 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8063 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8100 REPLACE_UTIMENSAT=0;
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8103 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8104 if test "${ac_cv_header_stat_broken+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 #include <sys/types.h>
8110 #include <sys/stat.h>
8112 #if defined S_ISBLK && defined S_IFDIR
8113 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8116 #if defined S_ISBLK && defined S_IFCHR
8117 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8120 #if defined S_ISLNK && defined S_IFREG
8121 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8124 #if defined S_ISSOCK && defined S_IFREG
8125 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 ac_cv_header_stat_broken=no
8132 ac_cv_header_stat_broken=yes
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8137 $as_echo "$ac_cv_header_stat_broken" >&6; }
8138 if test $ac_cv_header_stat_broken = yes; then
8140 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8151 $as_echo_n "checking for 64-bit off_t... " >&6; }
8152 if test "${gl_cv_type_off_t_64+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <sys/types.h>
8158 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8168 if ac_fn_c_try_compile "$LINENO"; then :
8169 gl_cv_type_off_t_64=yes
8171 gl_cv_type_off_t_64=no
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8177 $as_echo "$gl_cv_type_off_t_64" >&6; }
8178 if test $gl_cv_type_off_t_64 = no; then
8179 WINDOWS_64_BIT_OFF_T=1
8181 WINDOWS_64_BIT_OFF_T=0
8183 WINDOWS_64_BIT_ST_SIZE=1
8186 WINDOWS_64_BIT_OFF_T=0
8187 WINDOWS_64_BIT_ST_SIZE=0
8205 if test $gl_cv_have_include_next = yes; then
8206 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8209 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8210 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8214 if test $ac_cv_header_sys_stat_h = yes; then
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <sys/stat.h>
8224 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8225 *) gl_absname_cpp="$ac_cpp" ;;
8230 gl_dirsep_regex='[/\\]'
8233 gl_dirsep_regex='\
/'
8236 gl_make_literal_regex_sed='s
,[]$^
\\.
*/[],\\&,g
'
8237 gl_header_literal_regex=`echo 'sys
/stat.h
' \
8238 | sed -e "$gl_make_literal_regex_sed"`
8239 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8240 s
/.
*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\
1/
8246 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8247 sed -n "$gl_absolute_header_sed"`
8249 gl_header=$gl_cv_absolute_sys_stat_h
8250 gl_cv_next_sys_stat_h='"'$gl_header'"'
8252 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8258 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8260 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8262 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8263 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next
'
8264 gl_next_as_first_directive='<'sys/stat.h'>'
8266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include
'
8267 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
8269 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
8281 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8283 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8287 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8288 #include <sys/stat.h>
8290 if test "x$ac_cv_type_nlink_t" = x""yes; then :
8294 $as_echo "#define nlink_t int" >>confdefs.h
8300 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
8301 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8303 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8304 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8305 $as_echo_n "(cached) " >&6
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <sys/stat.h>
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 eval "$as_gl_Symbol=yes"
8323 eval "$as_gl_Symbol=no"
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 eval ac_res=\$$as_gl_Symbol
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8329 $as_echo "$ac_res" >&6; }
8330 eval as_val=\$$as_gl_Symbol
8331 if test "x$as_val" = x""yes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8336 eval ac_cv_have_decl_$gl_func=yes
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8343 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8344 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8347 rm -f conftest.sym conftest.file
8349 if test "$cross_compiling" = yes; then :
8352 # Guess yes on glibc systems.
8353 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
8355 # If we don't know
, assume the worst.
8356 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
8360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 $ac_includes_default
8367 if (symlink ("conftest.file", "conftest.sym") != 0)
8369 /* Linux will dereference the symlink and fail, as required by
8370 POSIX. That is better in the sense that it means we will not
8371 have to compile and use the lstat wrapper. */
8372 return lstat ("conftest.sym/", &sbuf) == 0;
8378 if ac_fn_c_try_run
"$LINENO"; then :
8379 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
8381 gl_cv_func_lstat_dereferences_slashed_symlink
=no
8383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8387 rm -f conftest.sym conftest.
file
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8391 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8392 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8395 cat >>confdefs.h
<<_ACEOF
8396 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
8407 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
8408 if test "${gl_cv_func_getcwd_null+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test "$cross_compiling" = yes; then :
8413 # Guess yes on glibc systems.
8414 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
8415 # Guess yes on Cygwin.
8416 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
8417 # If we don't know, assume the worst.
8418 *) gl_cv_func_getcwd_null
="guessing no";;
8422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8425 # include <stdlib.h>
8427 # include <unistd.h>
8428 # else /* on Windows with MSVC */
8429 # include <direct.h>
8439 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8440 /* mingw cwd does not start with '/', but getcwd does allocate.
8441 However, mingw fails to honor non-zero size. */
8443 if (chdir ("/") != 0)
8447 char *f = getcwd (NULL, 0);
8463 if ac_fn_c_try_run
"$LINENO"; then :
8464 gl_cv_func_getcwd_null
=yes
8466 gl_cv_func_getcwd_null
=no
8468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
8474 $as_echo "$gl_cv_func_getcwd_null" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
8478 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
8479 if test "${gl_cv_func_getcwd_posix_signature+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8492 char *getcwd (char *, size_t);
8499 if ac_fn_c_try_compile
"$LINENO"; then :
8500 gl_cv_func_getcwd_posix_signature
=yes
8502 gl_cv_func_getcwd_posix_signature
=no
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
8508 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
8510 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
8511 if test "x$ac_cv_have_decl_getcwd" = x
""yes; then :
8517 cat >>confdefs.h
<<_ACEOF
8518 #define HAVE_DECL_GETCWD $ac_have_decl
8523 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
8524 if test "x$ac_cv_have_decl_getdtablesize" = x
""yes; then :
8530 cat >>confdefs.h
<<_ACEOF
8531 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
8534 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
8535 if test "x$ac_cv_have_decl_getlogin_r" = x
""yes; then :
8541 cat >>confdefs.h
<<_ACEOF
8542 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
8547 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
8548 if test "x$ac_cv_have_decl_getlogin" = x
""yes; then :
8554 cat >>confdefs.h
<<_ACEOF
8555 #define HAVE_DECL_GETLOGIN $ac_have_decl
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8563 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8564 if test "${ac_cv_c_restrict+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8568 # The order here caters to the fact that C++ does not require restrict.
8569 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 typedef int *int_ptr;
8573 int foo (int_ptr $ac_kw ip) { return ip[0]; }
8574 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
8575 int bar (int ip[$ac_kw]) { return ip[0]; }
8583 return foo (t) + bar (t);
8589 if ac_fn_c_try_compile
"$LINENO"; then :
8590 ac_cv_c_restrict
=$ac_kw
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 test "$ac_cv_c_restrict" != no
&& break
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8598 $as_echo "$ac_cv_c_restrict" >&6; }
8600 case $ac_cv_c_restrict in
8602 no
) $as_echo "#define restrict /**/" >>confdefs.h
8604 *) cat >>confdefs.h
<<_ACEOF
8605 #define restrict $ac_cv_c_restrict
8611 GNULIB_GETTIMEOFDAY
=0;
8612 HAVE_GETTIMEOFDAY
=1;
8613 HAVE_STRUCT_TIMEVAL
=1;
8616 REPLACE_GETTIMEOFDAY
=0;
8617 REPLACE_STRUCT_TIMEVAL
=0;
8634 if test $gl_cv_have_include_next = yes; then
8635 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
8638 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
8639 if test "${gl_cv_next_sys_time_h+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8643 if test $ac_cv_header_sys_time_h = yes; then
8648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <sys/time.h>
8653 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8654 *) gl_absname_cpp
="$ac_cpp" ;;
8659 gl_dirsep_regex
='[/\\]'
8662 gl_dirsep_regex
='\/'
8665 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8666 gl_header_literal_regex
=`echo 'sys/time.h' \
8667 | sed -e "$gl_make_literal_regex_sed"`
8668 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8669 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8675 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8676 sed -n "$gl_absolute_header_sed"`
8678 gl_header
=$gl_cv_absolute_sys_time_h
8679 gl_cv_next_sys_time_h
='"'$gl_header'"'
8681 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
8687 $as_echo "$gl_cv_next_sys_time_h" >&6; }
8689 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
8691 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8692 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8693 gl_next_as_first_directive
='<'sys
/time.h
'>'
8695 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8696 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
8698 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
8704 if test $ac_cv_header_sys_time_h != yes; then
8712 if test $ac_cv_header_sys_socket_h != yes; then
8713 for ac_header
in winsock2.h
8715 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8716 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
8717 cat >>confdefs.h
<<_ACEOF
8718 #define HAVE_WINSOCK2_H 1
8726 if test "$ac_cv_header_winsock2_h" = yes; then
8728 UNISTD_H_HAVE_WINSOCK2_H
=1
8729 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8736 $as_echo_n "checking for struct timeval... " >&6; }
8737 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8743 #include <sys/time.h>
8747 # include <winsock2.h>
8753 static struct timeval x; x.tv_sec = x.tv_usec;
8758 if ac_fn_c_try_compile
"$LINENO"; then :
8759 gl_cv_sys_struct_timeval
=yes
8761 gl_cv_sys_struct_timeval
=no
8763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
8767 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
8768 if test $gl_cv_sys_struct_timeval != yes; then
8769 HAVE_STRUCT_TIMEVAL
=0
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
8772 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
8773 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8779 #include <sys/time.h>
8783 # include <winsock2.h>
8789 static struct timeval x;
8790 typedef int verify_tv_sec_type[
8791 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
8798 if ac_fn_c_try_compile
"$LINENO"; then :
8799 gl_cv_sys_struct_timeval_tv_sec
=yes
8801 gl_cv_sys_struct_timeval_tv_sec
=no
8803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
8807 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
8808 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
8809 REPLACE_STRUCT_TIMEVAL
=1
8814 for gl_func
in gettimeofday
; do
8815 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8817 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8818 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8819 $as_echo_n "(cached) " >&6
8821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8825 # include <sys/time.h>
8838 if ac_fn_c_try_compile
"$LINENO"; then :
8839 eval "$as_gl_Symbol=yes"
8841 eval "$as_gl_Symbol=no"
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 eval ac_res
=\$
$as_gl_Symbol
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8847 $as_echo "$ac_res" >&6; }
8848 eval as_val
=\$
$as_gl_Symbol
8849 if test "x$as_val" = x
""yes; then :
8850 cat >>confdefs.h
<<_ACEOF
8851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8854 eval ac_cv_have_decl_
$gl_func=yes
8880 if test $gl_cv_have_include_next = yes; then
8881 gl_cv_next_limits_h
='<'limits.h
'>'
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
8884 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
8885 if test "${gl_cv_next_limits_h+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8889 if test $ac_cv_header_limits_h = yes; then
8894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8899 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8900 *) gl_absname_cpp
="$ac_cpp" ;;
8905 gl_dirsep_regex
='[/\\]'
8908 gl_dirsep_regex
='\/'
8911 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8912 gl_header_literal_regex
=`echo 'limits.h' \
8913 | sed -e "$gl_make_literal_regex_sed"`
8914 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8921 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8922 sed -n "$gl_absolute_header_sed"`
8924 gl_header
=$gl_cv_absolute_limits_h
8925 gl_cv_next_limits_h
='"'$gl_header'"'
8927 gl_cv_next_limits_h
='<'limits.h
'>'
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8933 $as_echo "$gl_cv_next_limits_h" >&6; }
8935 NEXT_LIMITS_H
=$gl_cv_next_limits_h
8937 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8939 gl_next_as_first_directive
='<'limits.h
'>'
8941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8942 gl_next_as_first_directive
=$gl_cv_next_limits_h
8944 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
8951 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
8952 if test "${gl_cv_header_limits_width+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8958 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8961 int ullw = ULLONG_WIDTH;
8970 if ac_fn_c_try_compile
"$LINENO"; then :
8971 gl_cv_header_limits_width
=yes
8973 gl_cv_header_limits_width
=no
8975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8978 $as_echo "$gl_cv_header_limits_width" >&6; }
8979 if test "$gl_cv_header_limits_width" = yes; then
8985 if test -n "$LIMITS_H"; then
8986 GL_GENERATE_LIMITS_H_TRUE
=
8987 GL_GENERATE_LIMITS_H_FALSE
='#'
8989 GL_GENERATE_LIMITS_H_TRUE
='#'
8990 GL_GENERATE_LIMITS_H_FALSE
=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8996 $as_echo_n "checking for unsigned long long int... " >&6; }
8997 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 ac_cv_type_unsigned_long_long_int
=yes
9001 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9005 /* For now, do not test the preprocessor; as of 2007 there are too many
9006 implementations with broken preprocessors. Perhaps this can
9007 be revisited in 2012. In the meantime, code should not expect
9008 #if to work with literals wider than 32 bits. */
9009 /* Test literals. */
9010 long long int ll = 9223372036854775807ll;
9011 long long int nll = -9223372036854775807LL;
9012 unsigned long long int ull = 18446744073709551615ULL;
9013 /* Test constant expressions. */
9014 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9022 /* Test availability of runtime routines for shift and division. */
9023 long long int llmax = 9223372036854775807ll;
9024 unsigned long long int ullmax = 18446744073709551615ull;
9025 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9026 | (llmax / ll) | (llmax % ll)
9027 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9028 | (ullmax / ull) | (ullmax % ull));
9034 if ac_fn_c_try_link
"$LINENO"; then :
9037 ac_cv_type_unsigned_long_long_int
=no
9039 rm -f core conftest.err conftest.
$ac_objext \
9040 conftest
$ac_exeext conftest.
$ac_ext
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9044 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9045 if test $ac_cv_type_unsigned_long_long_int = yes; then
9047 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9054 $as_echo_n "checking for long long int... " >&6; }
9055 if test "${ac_cv_type_long_long_int+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9058 ac_cv_type_long_long_int
=yes
9059 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9060 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9061 if test $ac_cv_type_long_long_int = yes; then
9062 if test "$cross_compiling" = yes; then :
9065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9070 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9071 # define LLONG_MAX (HALF - 1 + HALF)
9076 long long int n = 1;
9080 long long int m = n << i;
9083 if (LLONG_MAX / 2 < m)
9091 if ac_fn_c_try_run
"$LINENO"; then :
9094 ac_cv_type_long_long_int
=no
9096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9104 $as_echo "$ac_cv_type_long_long_int" >&6; }
9105 if test $ac_cv_type_long_long_int = yes; then
9107 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9116 gl_cv_c_multiarch
=no
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #ifndef __APPLE_CC__
9120 not a universal capable compiler
9125 if ac_fn_c_try_compile
"$LINENO"; then :
9129 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9130 if test -n "$prev"; then
9132 i?
86 | x86_64 | ppc | ppc64
)
9133 if test -z "$arch" ||
test "$arch" = "$word"; then
9136 gl_cv_c_multiarch
=yes
9142 if test "x$word" = "x-arch"; then
9149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9150 if test $gl_cv_c_multiarch = yes; then
9151 APPLE_UNIVERSAL_BUILD
=1
9153 APPLE_UNIVERSAL_BUILD
=0
9162 if test $ac_cv_type_long_long_int = yes; then
9163 HAVE_LONG_LONG_INT
=1
9165 HAVE_LONG_LONG_INT
=0
9169 if test $ac_cv_type_unsigned_long_long_int = yes; then
9170 HAVE_UNSIGNED_LONG_LONG_INT
=1
9172 HAVE_UNSIGNED_LONG_LONG_INT
=0
9177 if test $ac_cv_header_wchar_h = yes; then
9184 if test $ac_cv_header_inttypes_h = yes; then
9191 if test $ac_cv_header_sys_types_h = yes; then
9207 if test $gl_cv_have_include_next = yes; then
9208 gl_cv_next_stdint_h
='<'stdint.h
'>'
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
9211 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9212 if test "${gl_cv_next_stdint_h+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9216 if test $ac_cv_header_stdint_h = yes; then
9221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9226 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9227 *) gl_absname_cpp
="$ac_cpp" ;;
9232 gl_dirsep_regex
='[/\\]'
9235 gl_dirsep_regex
='\/'
9238 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9239 gl_header_literal_regex
=`echo 'stdint.h' \
9240 | sed -e "$gl_make_literal_regex_sed"`
9241 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9242 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9248 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9249 sed -n "$gl_absolute_header_sed"`
9251 gl_header
=$gl_cv_absolute_stdint_h
9252 gl_cv_next_stdint_h
='"'$gl_header'"'
9254 gl_cv_next_stdint_h
='<'stdint.h
'>'
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
9260 $as_echo "$gl_cv_next_stdint_h" >&6; }
9262 NEXT_STDINT_H
=$gl_cv_next_stdint_h
9264 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9265 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9266 gl_next_as_first_directive
='<'stdint.h
'>'
9268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9269 gl_next_as_first_directive
=$gl_cv_next_stdint_h
9271 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
9276 if test $ac_cv_header_stdint_h = yes; then
9283 if test $ac_cv_header_stdint_h = yes; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
9285 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
9286 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 gl_cv_header_working_stdint_h
=no
9290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9294 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9295 #define __STDC_CONSTANT_MACROS 1
9296 #define __STDC_LIMIT_MACROS 1
9298 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
9299 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
9300 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
9304 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9305 included before <wchar.h>. */
9316 int8_t a1 = INT8_MAX;
9317 int8_t a1min = INT8_MIN;
9320 int16_t a2 = INT16_MAX;
9321 int16_t a2min = INT16_MIN;
9324 int32_t a3 = INT32_MAX;
9325 int32_t a3min = INT32_MIN;
9328 int64_t a4 = INT64_MAX;
9329 int64_t a4min = INT64_MIN;
9332 uint8_t b1 = UINT8_MAX;
9334 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9337 uint16_t b2 = UINT16_MAX;
9340 uint32_t b3 = UINT32_MAX;
9343 uint64_t b4 = UINT64_MAX;
9345 int_least8_t c1 = INT8_C (0x7f);
9346 int_least8_t c1max = INT_LEAST8_MAX;
9347 int_least8_t c1min = INT_LEAST8_MIN;
9348 int_least16_t c2 = INT16_C (0x7fff);
9349 int_least16_t c2max = INT_LEAST16_MAX;
9350 int_least16_t c2min = INT_LEAST16_MIN;
9351 int_least32_t c3 = INT32_C (0x7fffffff);
9352 int_least32_t c3max = INT_LEAST32_MAX;
9353 int_least32_t c3min = INT_LEAST32_MIN;
9354 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9355 int_least64_t c4max = INT_LEAST64_MAX;
9356 int_least64_t c4min = INT_LEAST64_MIN;
9357 uint_least8_t d1 = UINT8_C (0xff);
9358 uint_least8_t d1max = UINT_LEAST8_MAX;
9359 uint_least16_t d2 = UINT16_C (0xffff);
9360 uint_least16_t d2max = UINT_LEAST16_MAX;
9361 uint_least32_t d3 = UINT32_C (0xffffffff);
9362 uint_least32_t d3max = UINT_LEAST32_MAX;
9363 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9364 uint_least64_t d4max = UINT_LEAST64_MAX;
9365 int_fast8_t e1 = INT_FAST8_MAX;
9366 int_fast8_t e1min = INT_FAST8_MIN;
9367 int_fast16_t e2 = INT_FAST16_MAX;
9368 int_fast16_t e2min = INT_FAST16_MIN;
9369 int_fast32_t e3 = INT_FAST32_MAX;
9370 int_fast32_t e3min = INT_FAST32_MIN;
9371 int_fast64_t e4 = INT_FAST64_MAX;
9372 int_fast64_t e4min = INT_FAST64_MIN;
9373 uint_fast8_t f1 = UINT_FAST8_MAX;
9374 uint_fast16_t f2 = UINT_FAST16_MAX;
9375 uint_fast32_t f3 = UINT_FAST32_MAX;
9376 uint_fast64_t f4 = UINT_FAST64_MAX;
9378 intptr_t g = INTPTR_MAX;
9379 intptr_t gmin = INTPTR_MIN;
9382 uintptr_t h = UINTPTR_MAX;
9384 intmax_t i = INTMAX_MAX;
9385 uintmax_t j = UINTMAX_MAX;
9387 /* Check that SIZE_MAX has the correct type, if possible. */
9388 #if 201112 <= __STDC_VERSION__
9389 int k = _Generic (SIZE_MAX, size_t: 0);
9390 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9391 || (0x5110 <= __SUNPRO_C && !__STDC__))
9393 extern __typeof__ (SIZE_MAX) k;
9396 #include <limits.h> /* for CHAR_BIT */
9397 #define TYPE_MINIMUM(t) \
9398 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
9399 #define TYPE_MAXIMUM(t) \
9400 ((t) ((t) 0 < (t) -1 \
9402 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
9405 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
9406 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
9408 /* Detect bug in FreeBSD 6.0 / ia64. */
9409 int check_SIG_ATOMIC:
9410 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
9411 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
9413 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
9415 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
9416 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
9418 /* Detect bug in mingw. */
9420 WINT_MIN == TYPE_MINIMUM (wint_t)
9421 && WINT_MAX == TYPE_MAXIMUM (wint_t)
9424 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
9426 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
9428 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
9430 /* Detect bugs in OpenBSD 3.9 stdint.h. */
9432 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
9435 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
9438 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
9441 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
9443 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
9444 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
9445 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
9446 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
9447 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
9448 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
9449 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
9450 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
9451 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
9452 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
9453 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
9464 if ac_fn_c_try_compile
"$LINENO"; then :
9465 if test "$cross_compiling" = yes; then :
9466 gl_cv_header_working_stdint_h
=yes
9469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9473 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9474 #define __STDC_CONSTANT_MACROS 1
9475 #define __STDC_LIMIT_MACROS 1
9479 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9480 included before <wchar.h>. */
9492 #define MVAL(macro) MVAL1(macro)
9493 #define MVAL1(expression) #expression
9494 static const char *macro_values[] =
9528 for (mv = macro_values; *mv != NULL; mv++)
9530 const char *value = *mv;
9531 /* Test whether it looks like a cast expression. */
9532 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
9533 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
9534 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
9535 || strncmp (value, "((int)"/*)*/, 6) == 0
9536 || strncmp (value, "((signed short)"/*)*/, 15) == 0
9537 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
9538 return mv - macro_values + 1;
9546 if ac_fn_c_try_run
"$LINENO"; then :
9547 gl_cv_header_working_stdint_h
=yes
9549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
9559 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
9563 HAVE_SYS_BITYPES_H
=0
9564 HAVE_SYS_INTTYPES_H
=0
9566 if test "$gl_cv_header_working_stdint_h" = yes; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
9569 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
9570 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9573 gl_cv_header_stdint_predates_cxx11_h
=yes
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9578 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9583 included before <wchar.h>. */
9593 intmax_t im = INTMAX_MAX;
9594 int32_t i32 = INT32_C (0x7fffffff);
9604 if ac_fn_c_try_compile
"$LINENO"; then :
9605 gl_cv_header_stdint_predates_cxx11_h
=no
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
9610 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
9612 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
9614 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9617 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
9621 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
9622 if test "${gl_cv_header_stdint_width+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9625 gl_cv_header_stdint_width
=no
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9629 /* Work if build is not clean. */
9630 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
9631 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9632 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9636 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9637 included before <wchar.h>. */
9646 int iw = UINTMAX_WIDTH;
9656 if ac_fn_c_try_compile
"$LINENO"; then :
9657 gl_cv_header_stdint_width
=yes
9659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
9662 $as_echo "$gl_cv_header_stdint_width" >&6; }
9663 if test "$gl_cv_header_stdint_width" = yes; then
9667 for ac_header
in sys
/inttypes.h sys
/bitypes.h
9669 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9670 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9671 eval as_val
=\$
$as_ac_Header
9672 if test "x$as_val" = x
""yes; then :
9673 cat >>confdefs.h
<<_ACEOF
9674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9681 if test $ac_cv_header_sys_inttypes_h = yes; then
9682 HAVE_SYS_INTTYPES_H
=1
9684 if test $ac_cv_header_sys_bitypes_h = yes; then
9685 HAVE_SYS_BITYPES_H
=1
9689 if test $APPLE_UNIVERSAL_BUILD = 0; then
9692 for gltype
in ptrdiff_t size_t
; do
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9694 $as_echo_n "checking for bit size of $gltype... " >&6; }
9695 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
9696 $as_echo_n "(cached) " >&6
9698 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9700 included before <wchar.h>. */
9709 #include <limits.h>"; then :
9715 eval gl_cv_bitsizeof_
${gltype}=\
$result
9718 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9720 $as_echo "$ac_res" >&6; }
9721 eval result
=\
$gl_cv_bitsizeof_${gltype}
9722 if test $result = unknown
; then
9725 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9726 cat >>confdefs.h
<<_ACEOF
9727 #define BITSIZEOF_${GLTYPE} $result
9730 eval BITSIZEOF_
${GLTYPE}=\
$result
9737 for gltype
in sig_atomic_t wchar_t wint_t
; do
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9739 $as_echo_n "checking for bit size of $gltype... " >&6; }
9740 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
9741 $as_echo_n "(cached) " >&6
9743 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9745 included before <wchar.h>. */
9754 #include <limits.h>"; then :
9760 eval gl_cv_bitsizeof_
${gltype}=\
$result
9763 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9765 $as_echo "$ac_res" >&6; }
9766 eval result
=\
$gl_cv_bitsizeof_${gltype}
9767 if test $result = unknown
; then
9770 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9771 cat >>confdefs.h
<<_ACEOF
9772 #define BITSIZEOF_${GLTYPE} $result
9775 eval BITSIZEOF_
${GLTYPE}=\
$result
9781 for gltype
in sig_atomic_t wchar_t wint_t
; do
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
9783 $as_echo_n "checking whether $gltype is signed... " >&6; }
9784 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
9785 $as_echo_n "(cached) " >&6
9787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9791 included before <wchar.h>. */
9800 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
9809 if ac_fn_c_try_compile
"$LINENO"; then :
9814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9815 eval gl_cv_type_
${gltype}_signed
=\
$result
9818 eval ac_res
=\
$gl_cv_type_${gltype}_signed
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9820 $as_echo "$ac_res" >&6; }
9821 eval result
=\
$gl_cv_type_${gltype}_signed
9822 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9823 if test "$result" = yes; then
9824 cat >>confdefs.h
<<_ACEOF
9825 #define HAVE_SIGNED_${GLTYPE} 1
9828 eval HAVE_SIGNED_
${GLTYPE}=1
9830 eval HAVE_SIGNED_
${GLTYPE}=0
9835 gl_cv_type_ptrdiff_t_signed
=yes
9836 gl_cv_type_size_t_signed
=no
9837 if test $APPLE_UNIVERSAL_BUILD = 0; then
9840 for gltype
in ptrdiff_t size_t
; do
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9842 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9843 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9844 $as_echo_n "(cached) " >&6
9846 eval gl_cv_type_
${gltype}_suffix
=no
9847 eval result
=\
$gl_cv_type_${gltype}_signed
9848 if test "$result" = yes; then
9853 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
9856 l
) gltype1
='long int';;
9857 ll
) gltype1
='long long int';;
9858 i64
) gltype1
='__int64';;
9859 u
) gltype1
='unsigned int';;
9860 ul
) gltype1
='unsigned long int';;
9861 ull
) gltype1
='unsigned long long int';;
9862 ui64
)gltype1
='unsigned __int64';;
9864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9867 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9868 included before <wchar.h>. */
9878 extern $gltype1 foo;
9887 if ac_fn_c_try_compile
"$LINENO"; then :
9888 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
9890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9891 eval result
=\
$gl_cv_type_${gltype}_suffix
9892 test "$result" != no
&& break
9895 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9897 $as_echo "$ac_res" >&6; }
9898 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9899 eval result
=\
$gl_cv_type_${gltype}_suffix
9900 test "$result" = no
&& result
=
9901 eval ${GLTYPE}_SUFFIX
=\
$result
9902 cat >>confdefs.h
<<_ACEOF
9903 #define ${GLTYPE}_SUFFIX $result
9912 for gltype
in sig_atomic_t wchar_t wint_t
; do
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9914 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9915 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9916 $as_echo_n "(cached) " >&6
9918 eval gl_cv_type_
${gltype}_suffix
=no
9919 eval result
=\
$gl_cv_type_${gltype}_signed
9920 if test "$result" = yes; then
9925 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
9928 l
) gltype1
='long int';;
9929 ll
) gltype1
='long long int';;
9930 i64
) gltype1
='__int64';;
9931 u
) gltype1
='unsigned int';;
9932 ul
) gltype1
='unsigned long int';;
9933 ull
) gltype1
='unsigned long long int';;
9934 ui64
)gltype1
='unsigned __int64';;
9936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9940 included before <wchar.h>. */
9950 extern $gltype1 foo;
9959 if ac_fn_c_try_compile
"$LINENO"; then :
9960 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
9962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9963 eval result
=\
$gl_cv_type_${gltype}_suffix
9964 test "$result" != no
&& break
9967 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9969 $as_echo "$ac_res" >&6; }
9970 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9971 eval result
=\
$gl_cv_type_${gltype}_suffix
9972 test "$result" = no
&& result
=
9973 eval ${GLTYPE}_SUFFIX
=\
$result
9974 cat >>confdefs.h
<<_ACEOF
9975 #define ${GLTYPE}_SUFFIX $result
9982 if test $BITSIZEOF_WINT_T -lt 32; then
9988 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9990 if test -n "$LIMITS_H"; then
9991 GL_GENERATE_LIMITS_H_TRUE
=
9992 GL_GENERATE_LIMITS_H_FALSE
='#'
9994 GL_GENERATE_LIMITS_H_TRUE
='#'
9995 GL_GENERATE_LIMITS_H_FALSE
=
10003 if test -n "$STDINT_H"; then
10004 GL_GENERATE_STDINT_H_TRUE
=
10005 GL_GENERATE_STDINT_H_FALSE
='#'
10007 GL_GENERATE_STDINT_H_TRUE
='#'
10008 GL_GENERATE_STDINT_H_FALSE
=
10017 GNULIB_STRTOIMAX
=0;
10018 GNULIB_STRTOUMAX
=0;
10019 HAVE_DECL_IMAXABS
=1;
10020 HAVE_DECL_IMAXDIV
=1;
10021 HAVE_DECL_STRTOIMAX
=1;
10022 HAVE_DECL_STRTOUMAX
=1;
10023 REPLACE_STRTOIMAX
=0;
10024 REPLACE_STRTOUMAX
=0;
10025 INT32_MAX_LT_INTMAX_MAX
=1;
10026 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10027 PRI_MACROS_BROKEN
=0;
10028 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10029 UINT32_MAX_LT_UINTMAX_MAX
=1;
10030 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10046 if test $gl_cv_have_include_next = yes; then
10047 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10050 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10051 if test "${gl_cv_next_inttypes_h+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10055 if test $ac_cv_header_inttypes_h = yes; then
10060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 #include <inttypes.h>
10065 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10066 *) gl_absname_cpp
="$ac_cpp" ;;
10071 gl_dirsep_regex
='[/\\]'
10074 gl_dirsep_regex
='\/'
10077 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10078 gl_header_literal_regex
=`echo 'inttypes.h' \
10079 | sed -e "$gl_make_literal_regex_sed"`
10080 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10081 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10087 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10088 sed -n "$gl_absolute_header_sed"`
10090 gl_header
=$gl_cv_absolute_inttypes_h
10091 gl_cv_next_inttypes_h
='"'$gl_header'"'
10093 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
10099 $as_echo "$gl_cv_next_inttypes_h" >&6; }
10101 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
10103 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10105 gl_next_as_first_directive
='<'inttypes.h
'>'
10107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10108 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
10110 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
10119 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
10120 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10122 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10123 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10124 $as_echo_n "(cached) " >&6
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <inttypes.h>
10139 if ac_fn_c_try_compile
"$LINENO"; then :
10140 eval "$as_gl_Symbol=yes"
10142 eval "$as_gl_Symbol=no"
10144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10146 eval ac_res
=\$
$as_gl_Symbol
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10148 $as_echo "$ac_res" >&6; }
10149 eval as_val
=\$
$as_gl_Symbol
10150 if test "x$as_val" = x
""yes; then :
10151 cat >>confdefs.h
<<_ACEOF
10152 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10155 eval ac_cv_have_decl_
$gl_func=yes
10161 for ac_header
in inttypes.h
10163 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10164 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
10165 cat >>confdefs.h
<<_ACEOF
10166 #define HAVE_INTTYPES_H 1
10173 if test $ac_cv_header_inttypes_h = yes; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
10175 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
10176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10183 #include <inttypes.h>
10196 if ac_fn_c_try_compile
"$LINENO"; then :
10197 gt_cv_inttypes_pri_broken
=no
10199 gt_cv_inttypes_pri_broken
=yes
10201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
10205 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
10207 if test "$gt_cv_inttypes_pri_broken" = yes; then
10209 cat >>confdefs.h
<<_ACEOF
10210 #define PRI_MACROS_BROKEN 1
10213 PRI_MACROS_BROKEN
=1
10215 PRI_MACROS_BROKEN
=0
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10221 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10222 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10226 if test "$cross_compiling" = yes; then :
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 #if defined arm || defined __arm || defined __arm__
10236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10237 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
10238 gl_cv_cc_double_expbit0
="unknown"
10242 if test "${ac_cv_c_bigendian+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 ac_cv_c_bigendian
=unknown
10246 # See if we're dealing with a universal compiler.
10247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 #ifndef __APPLE_CC__
10250 not a universal capable compiler
10255 if ac_fn_c_try_compile
"$LINENO"; then :
10257 # Check for potential -arch flags. It is not universal unless
10258 # there are at least two -arch flags with different values.
10261 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10262 if test -n "$ac_prev"; then
10264 i?
86 | x86_64 | ppc | ppc64
)
10265 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10268 ac_cv_c_bigendian
=universal
10274 elif test "x$ac_word" = "x-arch"; then
10279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10280 if test $ac_cv_c_bigendian = unknown
; then
10281 # See if sys/param.h defines the BYTE_ORDER macro.
10282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284 #include <sys/types.h>
10285 #include <sys/param.h>
10290 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10291 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10293 bogus endian macros
10300 if ac_fn_c_try_compile
"$LINENO"; then :
10301 # It does; now see whether it defined to BIG_ENDIAN or not.
10302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <sys/types.h>
10305 #include <sys/param.h>
10310 #if BYTE_ORDER != BIG_ENDIAN
10318 if ac_fn_c_try_compile
"$LINENO"; then :
10319 ac_cv_c_bigendian
=yes
10321 ac_cv_c_bigendian
=no
10323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10327 if test $ac_cv_c_bigendian = unknown
; then
10328 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10331 #include <limits.h>
10336 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10337 bogus endian macros
10344 if ac_fn_c_try_compile
"$LINENO"; then :
10345 # It does; now see whether it defined to _BIG_ENDIAN or not.
10346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348 #include <limits.h>
10353 #ifndef _BIG_ENDIAN
10361 if ac_fn_c_try_compile
"$LINENO"; then :
10362 ac_cv_c_bigendian
=yes
10364 ac_cv_c_bigendian
=no
10366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10370 if test $ac_cv_c_bigendian = unknown
; then
10371 # Compile a test program.
10372 if test "$cross_compiling" = yes; then :
10373 # Try to guess by grepping values from an object file.
10374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 short int ascii_mm[] =
10377 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10378 short int ascii_ii[] =
10379 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10380 int use_ascii (int i) {
10381 return ascii_mm[i] + ascii_ii[i];
10383 short int ebcdic_ii[] =
10384 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10385 short int ebcdic_mm[] =
10386 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10387 int use_ebcdic (int i) {
10388 return ebcdic_mm[i] + ebcdic_ii[i];
10395 return use_ascii (foo) == use_ebcdic (foo);
10400 if ac_fn_c_try_compile
"$LINENO"; then :
10401 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10402 ac_cv_c_bigendian
=yes
10404 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10405 if test "$ac_cv_c_bigendian" = unknown
; then
10406 ac_cv_c_bigendian
=no
10408 # finding both strings is unlikely to happen, but who knows?
10409 ac_cv_c_bigendian
=unknown
10413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 $ac_includes_default
10422 /* Are we little or big endian? From Harbison&Steele. */
10426 char c[sizeof (long int)];
10429 return u.c[sizeof (long int) - 1] == 1;
10435 if ac_fn_c_try_run
"$LINENO"; then :
10436 ac_cv_c_bigendian
=no
10438 ac_cv_c_bigendian
=yes
10440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10447 case $ac_cv_c_bigendian in #(
10449 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
10451 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
10454 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10458 gl_cv_cc_double_expbit0
="unknown" ;;
10467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10471 #include <stddef.h>
10473 #include <string.h>
10475 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10476 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
10477 static unsigned int ored_words[NWORDS];
10478 static unsigned int anded_words[NWORDS];
10479 static void add_to_ored_words (double x)
10483 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
10484 memset (&m, 0, sizeof (memory_double));
10486 for (i = 0; i < NWORDS; i++)
10488 ored_words[i] |= m.word[i];
10489 anded_words[i] &= m.word[i];
10495 FILE *fp = fopen ("conftest.out", "w");
10498 for (j = 0; j < NWORDS; j++)
10499 anded_words[j] = ~ (unsigned int) 0;
10500 add_to_ored_words (0.25);
10501 add_to_ored_words (0.5);
10502 add_to_ored_words (1.0);
10503 add_to_ored_words (2.0);
10504 add_to_ored_words (4.0);
10505 /* Remove bits that are common (e.g. if representation of the first mantissa
10506 bit is explicit). */
10507 for (j = 0; j < NWORDS; j++)
10508 ored_words[j] &= ~anded_words[j];
10509 /* Now find the nonzero word. */
10510 for (j = 0; j < NWORDS; j++)
10511 if (ored_words[j] != 0)
10516 for (i = j + 1; i < NWORDS; i++)
10517 if (ored_words[i] != 0)
10519 fprintf (fp, "unknown");
10520 return (fclose (fp) != 0);
10523 if ((ored_words[j] >> i) & 1)
10525 fprintf (fp, "word %d bit %d", (int) j, (int) i);
10526 return (fclose (fp) != 0);
10529 fprintf (fp, "unknown");
10530 return (fclose (fp) != 0);
10534 if ac_fn_c_try_run
"$LINENO"; then :
10535 gl_cv_cc_double_expbit0
=`cat conftest.out`
10537 gl_cv_cc_double_expbit0
="unknown"
10539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
10547 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
10548 case "$gl_cv_cc_double_expbit0" in
10550 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
10551 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
10553 cat >>confdefs.h
<<_ACEOF
10554 #define DBL_EXPBIT0_WORD $word
10558 cat >>confdefs.h
<<_ACEOF
10559 #define DBL_EXPBIT0_BIT $bit
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10567 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10568 if test "${ac_cv_c_bigendian+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10571 ac_cv_c_bigendian
=unknown
10572 # See if we're dealing with a universal compiler.
10573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575 #ifndef __APPLE_CC__
10576 not a universal capable compiler
10581 if ac_fn_c_try_compile
"$LINENO"; then :
10583 # Check for potential -arch flags. It is not universal unless
10584 # there are at least two -arch flags with different values.
10587 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10588 if test -n "$ac_prev"; then
10590 i?
86 | x86_64 | ppc | ppc64
)
10591 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10594 ac_cv_c_bigendian
=universal
10600 elif test "x$ac_word" = "x-arch"; then
10605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10606 if test $ac_cv_c_bigendian = unknown
; then
10607 # See if sys/param.h defines the BYTE_ORDER macro.
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <sys/types.h>
10611 #include <sys/param.h>
10616 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10617 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10619 bogus endian macros
10626 if ac_fn_c_try_compile
"$LINENO"; then :
10627 # It does; now see whether it defined to BIG_ENDIAN or not.
10628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 #include <sys/types.h>
10631 #include <sys/param.h>
10636 #if BYTE_ORDER != BIG_ENDIAN
10644 if ac_fn_c_try_compile
"$LINENO"; then :
10645 ac_cv_c_bigendian
=yes
10647 ac_cv_c_bigendian
=no
10649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10653 if test $ac_cv_c_bigendian = unknown
; then
10654 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <limits.h>
10662 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10663 bogus endian macros
10670 if ac_fn_c_try_compile
"$LINENO"; then :
10671 # It does; now see whether it defined to _BIG_ENDIAN or not.
10672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <limits.h>
10679 #ifndef _BIG_ENDIAN
10687 if ac_fn_c_try_compile
"$LINENO"; then :
10688 ac_cv_c_bigendian
=yes
10690 ac_cv_c_bigendian
=no
10692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10696 if test $ac_cv_c_bigendian = unknown
; then
10697 # Compile a test program.
10698 if test "$cross_compiling" = yes; then :
10699 # Try to guess by grepping values from an object file.
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 short int ascii_mm[] =
10703 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10704 short int ascii_ii[] =
10705 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10706 int use_ascii (int i) {
10707 return ascii_mm[i] + ascii_ii[i];
10709 short int ebcdic_ii[] =
10710 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10711 short int ebcdic_mm[] =
10712 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10713 int use_ebcdic (int i) {
10714 return ebcdic_mm[i] + ebcdic_ii[i];
10721 return use_ascii (foo) == use_ebcdic (foo);
10726 if ac_fn_c_try_compile
"$LINENO"; then :
10727 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10728 ac_cv_c_bigendian
=yes
10730 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10731 if test "$ac_cv_c_bigendian" = unknown
; then
10732 ac_cv_c_bigendian
=no
10734 # finding both strings is unlikely to happen, but who knows?
10735 ac_cv_c_bigendian
=unknown
10739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 $ac_includes_default
10748 /* Are we little or big endian? From Harbison&Steele. */
10752 char c[sizeof (long int)];
10755 return u.c[sizeof (long int) - 1] == 1;
10761 if ac_fn_c_try_run
"$LINENO"; then :
10762 ac_cv_c_bigendian
=no
10764 ac_cv_c_bigendian
=yes
10766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10773 $as_echo "$ac_cv_c_bigendian" >&6; }
10774 case $ac_cv_c_bigendian in #(
10776 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10782 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10786 as_fn_error
"unknown endianness
10787 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10793 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10794 if test "${am_cv_langinfo_codeset+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <langinfo.h>
10803 char* cs = nl_langinfo(CODESET); return !cs;
10808 if ac_fn_c_try_link
"$LINENO"; then :
10809 am_cv_langinfo_codeset
=yes
10811 am_cv_langinfo_codeset
=no
10813 rm -f core conftest.err conftest.
$ac_objext \
10814 conftest
$ac_exeext conftest.
$ac_ext
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10818 $as_echo "$am_cv_langinfo_codeset" >&6; }
10819 if test $am_cv_langinfo_codeset = yes; then
10821 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10825 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10826 if test "x$ac_cv_have_decl_getc_unlocked" = x
""yes; then :
10832 cat >>confdefs.h
<<_ACEOF
10833 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10838 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10839 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10845 #include <features.h>
10846 #ifdef __GNU_LIBRARY__
10847 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10857 $EGREP "Lucky" >/dev
/null
2>&1; then :
10858 ac_cv_gnu_library_2_1
=yes
10860 ac_cv_gnu_library_2_1
=no
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10868 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10870 GLIBC21
="$ac_cv_gnu_library_2_1"
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10877 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10878 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10888 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10896 if ac_fn_c_try_compile
"$LINENO"; then :
10897 gl_cv_func_malloc_posix
=yes
10899 gl_cv_func_malloc_posix
=no
10901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10905 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10909 for ac_header
in stdlib.h
10911 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10912 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
10913 cat >>confdefs.h
<<_ACEOF
10914 #define HAVE_STDLIB_H 1
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10922 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10923 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10926 if test "$cross_compiling" = yes; then :
10928 # Guess yes on platforms where we know the result.
10929 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
10930 | hpux
* | solaris
* | cygwin
* | mingw
*)
10931 ac_cv_func_malloc_0_nonnull
=yes ;;
10932 # If we don't know, assume the worst.
10933 *) ac_cv_func_malloc_0_nonnull
=no
;;
10937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10940 # include <stdlib.h>
10948 char *p = malloc (0);
10957 if ac_fn_c_try_run
"$LINENO"; then :
10958 ac_cv_func_malloc_0_nonnull
=yes
10960 ac_cv_func_malloc_0_nonnull
=no
10962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10969 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10970 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10971 gl_cv_func_malloc_0_nonnull
=1
10973 gl_cv_func_malloc_0_nonnull
=0
10977 cat >>confdefs.h
<<_ACEOF
10978 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10990 GNULIB_MBSRTOWCS
=0;
10991 GNULIB_MBSNRTOWCS
=0;
10993 GNULIB_WCSRTOMBS
=0;
10994 GNULIB_WCSNRTOMBS
=0;
11011 GNULIB_WCSCASECMP
=0;
11012 GNULIB_WCSNCASECMP
=0;
11049 HAVE_WCSNCASECMP
=1;
11062 HAVE_DECL_WCWIDTH
=1;
11063 REPLACE_MBSTATE_T
=0;
11069 REPLACE_MBSRTOWCS
=0;
11070 REPLACE_MBSNRTOWCS
=0;
11072 REPLACE_WCSRTOMBS
=0;
11073 REPLACE_WCSNRTOMBS
=0;
11075 REPLACE_WCSWIDTH
=0;
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11085 $as_echo_n "checking for a traditional japanese locale... " >&6; }
11086 if test "${gt_cv_locale_ja+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11093 #include <locale.h>
11095 #if HAVE_LANGINFO_CODESET
11096 # include <langinfo.h>
11098 #include <stdlib.h>
11099 #include <string.h>
11105 /* Check whether the given locale name is recognized by the system. */
11106 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11107 /* On native Windows, setlocale(category, "") looks at the system settings,
11108 not at the environment variables. Also, when an encoding suffix such
11109 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11110 category of the locale to "C". */
11111 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11112 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11115 if (setlocale (LC_ALL, "") == NULL) return 1;
11117 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11118 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11119 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11120 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11121 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11122 some unit tests fail.
11123 On MirBSD 10, when an unsupported locale is specified, setlocale()
11124 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11125 #if HAVE_LANGINFO_CODESET
11127 const char *cs = nl_langinfo (CODESET);
11128 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11129 || strcmp (cs, "UTF-8") == 0)
11134 /* On Cygwin, avoid locale names without encoding suffix, because the
11135 locale_charset() function relies on the encoding suffix. Note that
11136 LC_ALL is set on the command line. */
11137 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11139 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11140 on Cygwin 1.5.x. */
11141 if (MB_CUR_MAX == 1)
11143 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11144 This excludes the UTF-8 encoding (except on MirBSD). */
11145 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11146 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11147 for (p = buf; *p != '\0'; p++)
11148 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11160 # Handle native Windows specially, because there setlocale() interprets
11161 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11162 # "fr" or "fra" as "French" or "French_France.1252",
11163 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11164 # "ja" as "Japanese" or "Japanese_Japan.932",
11167 # Note that on native Windows, the Japanese locale is
11168 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11169 # cannot use it here.
11170 gt_cv_locale_ja
=none
11173 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11174 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11175 # configure script would override the LC_ALL setting. Likewise for
11176 # LC_CTYPE, which is also set at the beginning of the configure script.
11177 # Test for the AIX locale name.
11178 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11179 gt_cv_locale_ja
=ja_JP
11181 # Test for the locale name with explicit encoding suffix.
11182 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11183 gt_cv_locale_ja
=ja_JP.EUC-JP
11185 # Test for the HP-UX, OSF/1, NetBSD locale name.
11186 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11187 gt_cv_locale_ja
=ja_JP.eucJP
11189 # Test for the IRIX, FreeBSD locale name.
11190 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11191 gt_cv_locale_ja
=ja_JP.EUC
11193 # Test for the Solaris 7 locale name.
11194 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11197 # Special test for NetBSD 1.6.
11198 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
11199 gt_cv_locale_ja
=ja_JP.eucJP
11202 gt_cv_locale_ja
=none
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11216 $as_echo "$gt_cv_locale_ja" >&6; }
11217 LOCALE_JA
=$gt_cv_locale_ja
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
11224 $as_echo_n "checking for a transitional chinese locale... " >&6; }
11225 if test "${gt_cv_locale_zh_CN+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 #include <locale.h>
11233 #include <stdlib.h>
11235 #if HAVE_LANGINFO_CODESET
11236 # include <langinfo.h>
11238 #include <stdlib.h>
11239 #include <string.h>
11245 /* Check whether the given locale name is recognized by the system. */
11246 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11247 /* On native Windows, setlocale(category, "") looks at the system settings,
11248 not at the environment variables. Also, when an encoding suffix such
11249 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11250 category of the locale to "C". */
11251 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11252 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11255 if (setlocale (LC_ALL, "") == NULL) return 1;
11257 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11258 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11259 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11260 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11261 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11262 some unit tests fail.
11263 On MirBSD 10, when an unsupported locale is specified, setlocale()
11264 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11265 #if HAVE_LANGINFO_CODESET
11267 const char *cs = nl_langinfo (CODESET);
11268 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11269 || strcmp (cs, "UTF-8") == 0)
11274 /* On Cygwin, avoid locale names without encoding suffix, because the
11275 locale_charset() function relies on the encoding suffix. Note that
11276 LC_ALL is set on the command line. */
11277 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11279 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11280 This excludes the UTF-8 encoding (except on MirBSD). */
11281 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11282 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11283 for (p = buf; *p != '\0'; p++)
11284 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11286 /* Check whether a typical GB18030 multibyte sequence is recognized as a
11287 single wide character. This excludes the GB2312 and GBK encodings. */
11288 if (mblen ("\203\062\332\066", 5) != 4)
11294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295 (eval $ac_link) 2>&5
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11300 # Handle native Windows specially, because there setlocale() interprets
11301 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11302 # "fr" or "fra" as "French" or "French_France.1252",
11303 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11304 # "ja" as "Japanese" or "Japanese_Japan.932",
11307 # Test for the hypothetical native Windows locale name.
11308 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11309 gt_cv_locale_zh_CN
=Chinese_China
.54936
11312 gt_cv_locale_zh_CN
=none
11316 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
11317 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
11318 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
11319 gt_cv_locale_zh_CN
=none
11322 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11323 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11324 # configure script would override the LC_ALL setting. Likewise for
11325 # LC_CTYPE, which is also set at the beginning of the configure script.
11326 # Test for the locale name without encoding suffix.
11327 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11328 gt_cv_locale_zh_CN
=zh_CN
11330 # Test for the locale name with explicit encoding suffix.
11331 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11332 gt_cv_locale_zh_CN
=zh_CN.GB18030
11335 gt_cv_locale_zh_CN
=none
11341 # If there was a link error, due to mblen(), the system is so old that
11342 # it certainly doesn't have a chinese locale.
11343 gt_cv_locale_zh_CN
=none
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
11349 $as_echo "$gt_cv_locale_zh_CN" >&6; }
11350 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11356 $as_echo_n "checking for a french Unicode locale... " >&6; }
11357 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 #include <locale.h>
11366 #if HAVE_LANGINFO_CODESET
11367 # include <langinfo.h>
11369 #include <stdlib.h>
11370 #include <string.h>
11374 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
11375 imitates locale dependent behaviour by looking at the environment
11376 variables, and all locales use the UTF-8 encoding. */
11377 #if !(defined __BEOS__ || defined __HAIKU__)
11378 /* Check whether the given locale name is recognized by the system. */
11379 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11380 /* On native Windows, setlocale(category, "") looks at the system settings,
11381 not at the environment variables. Also, when an encoding suffix such
11382 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11383 category of the locale to "C". */
11384 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11385 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11388 if (setlocale (LC_ALL, "") == NULL) return 1;
11390 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11391 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11392 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11393 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11394 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11395 some unit tests fail. */
11396 # if HAVE_LANGINFO_CODESET
11398 const char *cs = nl_langinfo (CODESET);
11399 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
11404 /* On Cygwin, avoid locale names without encoding suffix, because the
11405 locale_charset() function relies on the encoding suffix. Note that
11406 LC_ALL is set on the command line. */
11407 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11409 /* Check whether in the abbreviation of the second month, the second
11410 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
11411 two bytes long, with UTF-8 encoding. */
11412 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11413 if (strftime (buf, sizeof (buf), "%b", &t) < 4
11414 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
11417 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11418 /* Check whether the decimal separator is a comma.
11419 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11420 are nl_langinfo(RADIXCHAR) are both ".". */
11421 if (localeconv () ->decimal_point[0] != ',') return 1;
11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11428 (eval $ac_link) 2>&5
11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11433 # Handle native Windows specially, because there setlocale() interprets
11434 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11435 # "fr" or "fra" as "French" or "French_France.1252",
11436 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11437 # "ja" as "Japanese" or "Japanese_Japan.932",
11440 # Test for the hypothetical native Windows locale name.
11441 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11442 gt_cv_locale_fr_utf8
=French_France
.65001
11445 gt_cv_locale_fr_utf8
=none
11449 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11450 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11451 # configure script would override the LC_ALL setting. Likewise for
11452 # LC_CTYPE, which is also set at the beginning of the configure script.
11453 # Test for the usual locale name.
11454 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11455 gt_cv_locale_fr_utf8
=fr_FR
11457 # Test for the locale name with explicit encoding suffix.
11458 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11459 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
11461 # Test for the Solaris 7 locale name.
11462 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11463 gt_cv_locale_fr_utf8
=fr.UTF-8
11466 gt_cv_locale_fr_utf8
=none
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
11477 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
11478 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11485 $as_echo_n "checking for a traditional french locale... " >&6; }
11486 if test "${gt_cv_locale_fr+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 #include <locale.h>
11495 #if HAVE_LANGINFO_CODESET
11496 # include <langinfo.h>
11498 #include <stdlib.h>
11499 #include <string.h>
11503 /* Check whether the given locale name is recognized by the system. */
11504 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11505 /* On native Windows, setlocale(category, "") looks at the system settings,
11506 not at the environment variables. Also, when an encoding suffix such
11507 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11508 category of the locale to "C". */
11509 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11510 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11513 if (setlocale (LC_ALL, "") == NULL) return 1;
11515 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11516 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11517 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11518 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11519 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11520 some unit tests fail.
11521 On MirBSD 10, when an unsupported locale is specified, setlocale()
11522 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11523 #if HAVE_LANGINFO_CODESET
11525 const char *cs = nl_langinfo (CODESET);
11526 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11527 || strcmp (cs, "UTF-8") == 0)
11532 /* On Cygwin, avoid locale names without encoding suffix, because the
11533 locale_charset() function relies on the encoding suffix. Note that
11534 LC_ALL is set on the command line. */
11535 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11537 /* Check whether in the abbreviation of the second month, the second
11538 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11539 one byte long. This excludes the UTF-8 encoding. */
11540 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11541 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11542 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11543 /* Check whether the decimal separator is a comma.
11544 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11545 are nl_langinfo(RADIXCHAR) are both ".". */
11546 if (localeconv () ->decimal_point[0] != ',') return 1;
11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11553 (eval $ac_link) 2>&5
11555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11558 # Handle native Windows specially, because there setlocale() interprets
11559 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11560 # "fr" or "fra" as "French" or "French_France.1252",
11561 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11562 # "ja" as "Japanese" or "Japanese_Japan.932",
11565 # Test for the native Windows locale name.
11566 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11567 gt_cv_locale_fr
=French_France
.1252
11570 gt_cv_locale_fr
=none
11574 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11575 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11576 # configure script would override the LC_ALL setting. Likewise for
11577 # LC_CTYPE, which is also set at the beginning of the configure script.
11578 # Test for the usual locale name.
11579 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11580 gt_cv_locale_fr
=fr_FR
11582 # Test for the locale name with explicit encoding suffix.
11583 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11584 gt_cv_locale_fr
=fr_FR.ISO-8859-1
11586 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11587 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11588 gt_cv_locale_fr
=fr_FR.ISO8859-1
11590 # Test for the HP-UX locale name.
11591 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11592 gt_cv_locale_fr
=fr_FR.iso88591
11594 # Test for the Solaris 7 locale name.
11595 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11599 gt_cv_locale_fr
=none
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11612 $as_echo "$gt_cv_locale_fr" >&6; }
11613 LOCALE_FR
=$gt_cv_locale_fr
11627 GNULIB_RAWMEMCHR
=0;
11630 GNULIB_STRCHRNUL
=0;
11638 GNULIB_STRCASESTR
=0;
11645 GNULIB_MBSCASECMP
=0;
11646 GNULIB_MBSNCASECMP
=0;
11647 GNULIB_MBSPCASECMP
=0;
11648 GNULIB_MBSCASESTR
=0;
11655 GNULIB_STRERROR_R
=0;
11656 GNULIB_STRSIGNAL
=0;
11657 GNULIB_STRVERSCMP
=0;
11662 HAVE_DECL_MEMMEM
=1;
11664 HAVE_DECL_MEMRCHR
=1;
11669 HAVE_DECL_STRDUP
=1;
11670 HAVE_DECL_STRNDUP
=1;
11671 HAVE_DECL_STRNLEN
=1;
11675 HAVE_DECL_STRTOK_R
=1;
11676 HAVE_DECL_STRERROR_R
=1;
11677 HAVE_DECL_STRSIGNAL
=1;
11684 REPLACE_STRCASESTR
=0;
11685 REPLACE_STRCHRNUL
=0;
11686 REPLACE_STRERROR
=0;
11687 REPLACE_STRERROR_R
=0;
11691 REPLACE_STRSIGNAL
=0;
11692 REPLACE_STRTOK_R
=0;
11693 UNDEFINE_STRTOK_R
=0;
11699 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11700 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11701 # irrelevant for anonymous mappings.
11702 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
11703 if test "x$ac_cv_func_mmap" = x
""yes; then :
11710 # Try to allow MAP_ANONYMOUS.
11711 gl_have_mmap_anonymous
=no
11712 if test $gl_have_mmap = yes; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11714 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11718 #include <sys/mman.h>
11719 #ifdef MAP_ANONYMOUS
11720 I cannot identify this map
11724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
11726 gl_have_mmap_anonymous
=yes
11730 if test $gl_have_mmap_anonymous != yes; then
11731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 #include <sys/mman.h>
11736 I cannot identify this map
11740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11741 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
11743 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11745 gl_have_mmap_anonymous
=yes
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11751 $as_echo "$gl_have_mmap_anonymous" >&6; }
11752 if test $gl_have_mmap_anonymous = yes; then
11754 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11764 if test $HAVE_MEMCHR = 1; then
11765 # Detect platform-specific bugs in some versions of glibc:
11766 # memchr should not dereference anything with length 0
11767 # http://bugzilla.redhat.com/499689
11768 # memchr should not dereference overestimated length after a match
11769 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11770 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11771 # Assume that memchr works on platforms that lack mprotect.
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11773 $as_echo_n "checking whether memchr works... " >&6; }
11774 if test "${gl_cv_func_memchr_works+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11777 if test "$cross_compiling" = yes; then :
11778 gl_cv_func_memchr_works
="guessing no"
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #include <string.h>
11784 #if HAVE_SYS_MMAN_H
11785 # include <fcntl.h>
11786 # include <unistd.h>
11787 # include <sys/types.h>
11788 # include <sys/mman.h>
11790 # define MAP_FILE 0
11799 char *fence = NULL;
11800 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11801 # if HAVE_MAP_ANONYMOUS
11802 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11804 # else /* !HAVE_MAP_ANONYMOUS */
11805 const int flags = MAP_FILE | MAP_PRIVATE;
11806 int fd = open ("/dev/zero", O_RDONLY, 0666);
11810 int pagesize = getpagesize ();
11812 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11814 if (two_pages != (char *)(-1)
11815 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11816 fence = two_pages + pagesize;
11821 if (memchr (fence, 0, 0))
11823 strcpy (fence - 9, "12345678");
11824 if (memchr (fence - 9, 0, 79) != fence - 1)
11826 if (memchr (fence - 1, 0, 3) != fence - 1)
11835 if ac_fn_c_try_run
"$LINENO"; then :
11836 gl_cv_func_memchr_works
=yes
11838 gl_cv_func_memchr_works
=no
11840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11846 $as_echo "$gl_cv_func_memchr_works" >&6; }
11847 if test "$gl_cv_func_memchr_works" != yes; then
11852 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11853 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
11859 cat >>confdefs.h
<<_ACEOF
11860 #define HAVE_DECL_MEMMEM $ac_have_decl
11867 for ac_func
in memmem
11869 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
11870 if test "x$ac_cv_func_memmem" = x
""yes; then :
11871 cat >>confdefs.h
<<_ACEOF
11872 #define HAVE_MEMMEM 1
11878 if test $ac_cv_func_memmem = yes; then
11884 if test $ac_cv_have_decl_memmem = no
; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11888 $as_echo_n "checking whether memmem works... " >&6; }
11889 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11892 if test "$cross_compiling" = yes; then :
11893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11896 #ifdef __GNU_LIBRARY__
11897 #include <features.h>
11898 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11899 || __GLIBC_MINOR__ > 12)) \
11900 || (__GLIBC__ > 2)) \
11901 || defined __UCLIBC__
11904 #elif defined __CYGWIN__
11905 #include <cygwin/version.h>
11906 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11915 $EGREP "Lucky user" >/dev
/null
2>&1; then :
11916 gl_cv_func_memmem_works_always
="guessing yes"
11918 gl_cv_func_memmem_works_always
="guessing no"
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 #include <string.h> /* for memmem */
11928 #define P "_EF_BF_BD"
11929 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11930 #define NEEDLE P P P P P
11937 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11939 /* Check for empty needle behavior. */
11941 const char *haystack = "AAA";
11942 if (memmem (haystack, 3, NULL, 0) != haystack)
11951 if ac_fn_c_try_run
"$LINENO"; then :
11952 gl_cv_func_memmem_works_always
=yes
11954 gl_cv_func_memmem_works_always
=no
11956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11957 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11963 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11964 case "$gl_cv_func_memmem_works_always" in
11973 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
11974 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
11980 cat >>confdefs.h
<<_ACEOF
11981 #define HAVE_DECL_MEMRCHR $ac_have_decl
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
11992 $as_echo_n "checking for promoted mode_t type... " >&6; }
11993 if test "${gl_cv_promoted_mode_t+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 #include <sys/types.h>
12003 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
12008 if ac_fn_c_try_compile
"$LINENO"; then :
12009 gl_cv_promoted_mode_t
='int'
12011 gl_cv_promoted_mode_t
='mode_t'
12013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12017 $as_echo "$gl_cv_promoted_mode_t" >&6; }
12019 cat >>confdefs.h
<<_ACEOF
12020 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
12035 GNULIB_FPRINTF_POSIX
=0;
12051 GNULIB_OBSTACK_PRINTF
=0;
12052 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12057 GNULIB_PRINTF_POSIX
=0;
12066 GNULIB_SPRINTF_POSIX
=0;
12067 GNULIB_STDIO_H_NONBLOCKING
=0;
12068 GNULIB_STDIO_H_SIGPIPE
=0;
12070 GNULIB_VASPRINTF
=0;
12075 GNULIB_VFPRINTF_POSIX
=0;
12077 GNULIB_VPRINTF_POSIX
=0;
12078 GNULIB_VSNPRINTF
=0;
12079 GNULIB_VSPRINTF_POSIX
=0;
12080 HAVE_DECL_FPURGE
=1;
12081 HAVE_DECL_FSEEKO
=1;
12082 HAVE_DECL_FTELLO
=1;
12083 HAVE_DECL_GETDELIM
=1;
12084 HAVE_DECL_GETLINE
=1;
12085 HAVE_DECL_OBSTACK_PRINTF
=1;
12086 HAVE_DECL_SNPRINTF
=1;
12087 HAVE_DECL_VSNPRINTF
=1;
12108 REPLACE_GETDELIM
=0;
12110 REPLACE_OBSTACK_PRINTF
=0;
12116 REPLACE_RENAMEAT
=0;
12117 REPLACE_SNPRINTF
=0;
12119 REPLACE_STDIO_READ_FUNCS
=0;
12120 REPLACE_STDIO_WRITE_FUNCS
=0;
12122 REPLACE_VASPRINTF
=0;
12123 REPLACE_VDPRINTF
=0;
12124 REPLACE_VFPRINTF
=0;
12126 REPLACE_VSNPRINTF
=0;
12127 REPLACE_VSPRINTF
=0;
12141 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
12142 if test "x$ac_cv_have_decl_setenv" = x
""yes; then :
12148 cat >>confdefs.h
<<_ACEOF
12149 #define HAVE_DECL_SETENV $ac_have_decl
12157 if test $ac_cv_have_decl_setenv = no
; then
12165 for ac_header
in search.h
12167 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
12168 if test "x$ac_cv_header_search_h" = x
""yes; then :
12169 cat >>confdefs.h
<<_ACEOF
12170 #define HAVE_SEARCH_H 1
12177 for ac_func
in tsearch
12179 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
12180 if test "x$ac_cv_func_tsearch" = x
""yes; then :
12181 cat >>confdefs.h
<<_ACEOF
12182 #define HAVE_TSEARCH 1
12191 GNULIB_PTHREAD_SIGMASK
=0;
12193 GNULIB_SIGNAL_H_SIGPIPE
=0;
12194 GNULIB_SIGPROCMASK
=0;
12195 GNULIB_SIGACTION
=0;
12196 HAVE_POSIX_SIGNALBLOCKING
=1;
12197 HAVE_PTHREAD_SIGMASK
=1;
12202 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
12204 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
12206 HAVE_SIGHANDLER_T
=1;
12207 REPLACE_PTHREAD_SIGMASK
=0;
12211 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
12212 #include <signal.h>
12213 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
12214 #include <sys/types.h>
12217 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
12219 cat >>confdefs.h
<<_ACEOF
12220 #define HAVE_SIGSET_T 1
12223 gl_cv_type_sigset_t
=yes
12225 gl_cv_type_sigset_t
=no
12228 if test $gl_cv_type_sigset_t != yes; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12233 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12234 if test "${ac_cv_type_uid_t+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <sys/types.h>
12242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12243 $EGREP "uid_t" >/dev
/null
2>&1; then :
12244 ac_cv_type_uid_t
=yes
12246 ac_cv_type_uid_t
=no
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12252 $as_echo "$ac_cv_type_uid_t" >&6; }
12253 if test $ac_cv_type_uid_t = no
; then
12255 $as_echo "#define uid_t int" >>confdefs.h
12258 $as_echo "#define gid_t int" >>confdefs.h
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12263 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12264 if test "${ac_cv_header_stdbool_h+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 #include <stdbool.h>
12275 typedef _Bool Bool;
12277 "error: bool is not defined"
12280 "error: false is not defined"
12283 "error: false is not 0"
12286 "error: true is not defined"
12289 "error: true is not 1"
12293 #ifndef __bool_true_false_are_defined
12294 "error: __bool_true_false_are_defined is not defined"
12297 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
12299 char a[true == 1 ? 1 : -1];
12300 char b[false == 0 ? 1 : -1];
12301 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12302 char d[(bool) 0.5 == true ? 1 : -1];
12303 /* See body of main program for 'e'. */
12304 char f[(Bool) 0.0 == false ? 1 : -1];
12306 char h[sizeof (Bool)];
12307 char i[sizeof s.t];
12308 enum { j = false, k = true, l = false * true, m = true * 256 };
12309 /* The following fails for
12310 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12312 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12313 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12314 /* Catch a bug in an HP-UX C compiler. See
12315 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12316 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12327 *pq |= q; *pq |= ! q;
12328 *qq |= q; *qq |= ! q;
12329 /* Refer to every declared value, to avoid compiler optimizations. */
12330 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12331 + !m + !n + !o + !p + !q + !pq + !qq);
12337 if ac_fn_c_try_compile
"$LINENO"; then :
12338 ac_cv_header_stdbool_h
=yes
12340 ac_cv_header_stdbool_h
=no
12342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12345 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12346 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12347 if test "x$ac_cv_type__Bool" = x
""yes; then :
12349 cat >>confdefs.h
<<_ACEOF
12350 #define HAVE__BOOL 1
12359 HAVE_MAX_ALIGN_T
=1;
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12364 $as_echo_n "checking for wchar_t... " >&6; }
12365 if test "${gt_cv_c_wchar_t+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <stddef.h>
12371 wchar_t foo = (wchar_t)'\0';
12380 if ac_fn_c_try_compile
"$LINENO"; then :
12381 gt_cv_c_wchar_t
=yes
12385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12388 $as_echo "$gt_cv_c_wchar_t" >&6; }
12389 if test $gt_cv_c_wchar_t = yes; then
12391 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12397 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
12398 if test "x$ac_cv_have_decl_strdup" = x
""yes; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define HAVE_DECL_STRDUP $ac_have_decl
12409 REPLACE_STRERROR_0
=0
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
12411 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
12412 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12415 if test "$cross_compiling" = yes; then :
12417 # Guess yes on glibc systems.
12418 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
12419 # If we don't know, assume the worst.
12420 *) gl_cv_func_strerror_0_works
="guessing no" ;;
12424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <string.h>
12435 str = strerror (0);
12436 if (!*str) result |= 1;
12437 if (errno) result |= 2;
12438 if (strstr (str, "nknown") || strstr (str, "ndefined"))
12445 if ac_fn_c_try_run
"$LINENO"; then :
12446 gl_cv_func_strerror_0_works
=yes
12448 gl_cv_func_strerror_0_works
=no
12450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
12457 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
12458 case "$gl_cv_func_strerror_0_works" in
12461 REPLACE_STRERROR_0
=1
12463 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
12479 if test $gl_cv_have_include_next = yes; then
12480 gl_cv_next_string_h
='<'string.h
'>'
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
12483 $as_echo_n "checking absolute name of <string.h>... " >&6; }
12484 if test "${gl_cv_next_string_h+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #include <string.h>
12495 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12496 *) gl_absname_cpp
="$ac_cpp" ;;
12501 gl_dirsep_regex
='[/\\]'
12504 gl_dirsep_regex
='\/'
12507 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12508 gl_header_literal_regex
=`echo 'string.h' \
12509 | sed -e "$gl_make_literal_regex_sed"`
12510 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12511 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12517 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12518 sed -n "$gl_absolute_header_sed"`
12520 gl_header
=$gl_cv_absolute_string_h
12521 gl_cv_next_string_h
='"'$gl_header'"'
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
12526 $as_echo "$gl_cv_next_string_h" >&6; }
12528 NEXT_STRING_H
=$gl_cv_next_string_h
12530 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12532 gl_next_as_first_directive
='<'string.h
'>'
12534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12535 gl_next_as_first_directive
=$gl_cv_next_string_h
12537 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
12544 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
12545 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12547 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12548 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12549 $as_echo_n "(cached) " >&6
12551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #include <string.h>
12564 if ac_fn_c_try_compile
"$LINENO"; then :
12565 eval "$as_gl_Symbol=yes"
12567 eval "$as_gl_Symbol=no"
12569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 eval ac_res
=\$
$as_gl_Symbol
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12573 $as_echo "$ac_res" >&6; }
12574 eval as_val
=\$
$as_gl_Symbol
12575 if test "x$as_val" = x
""yes; then :
12576 cat >>confdefs.h
<<_ACEOF
12577 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12580 eval ac_cv_have_decl_
$gl_func=yes
12588 if test "$gl_cv_func_memchr_works" != yes; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
12592 $as_echo_n "checking whether strstr works... " >&6; }
12593 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12596 if test "$cross_compiling" = yes; then :
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12600 #ifdef __GNU_LIBRARY__
12601 #include <features.h>
12602 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
12603 || defined __UCLIBC__
12606 #elif defined __CYGWIN__
12607 #include <cygwin/version.h>
12608 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12617 $EGREP "Lucky user" >/dev
/null
2>&1; then :
12618 gl_cv_func_strstr_works_always
="guessing yes"
12620 gl_cv_func_strstr_works_always
="guessing no"
12626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12629 #include <string.h> /* for strstr */
12630 #define P "_EF_BF_BD"
12631 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12632 #define NEEDLE P P P P P
12637 return !!strstr (HAYSTACK, NEEDLE);
12643 if ac_fn_c_try_run
"$LINENO"; then :
12644 gl_cv_func_strstr_works_always
=yes
12646 gl_cv_func_strstr_works_always
=no
12648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
12655 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
12656 case "$gl_cv_func_strstr_works_always" in
12664 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
12665 if test "x$ac_cv_have_decl_strtok_r" = x
""yes; then :
12671 cat >>confdefs.h
<<_ACEOF
12672 #define HAVE_DECL_STRTOK_R $ac_have_decl
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12676 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12677 if test -z "$MKDIR_P"; then
12678 if test "${ac_cv_path_mkdir+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12682 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
12685 test -z "$as_dir" && as_dir
=.
12686 for ac_prog
in mkdir gmkdir
; do
12687 for ac_exec_ext
in '' $ac_executable_extensions; do
12688 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
12689 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12690 'mkdir (GNU coreutils) '* | \
12691 'mkdir (coreutils) '* | \
12692 'mkdir (fileutils) '4.1*)
12693 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
12703 if test "${ac_cv_path_mkdir+set}" = set; then
12704 MKDIR_P
="$ac_cv_path_mkdir -p"
12706 # As a last resort, use the slow shell script. Don't cache a
12707 # value for MKDIR_P within a source directory, because that will
12708 # break other packages using the cache if that directory is
12709 # removed, or if the value is a relative name.
12710 test -d .
/--version && rmdir .
/--version
12711 MKDIR_P
="$ac_install_sh -d"
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12715 $as_echo "$MKDIR_P" >&6; }
12735 if test $gl_cv_have_include_next = yes; then
12736 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12739 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12740 if test "${gl_cv_next_sys_types_h+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 #include <sys/types.h>
12751 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12752 *) gl_absname_cpp
="$ac_cpp" ;;
12757 gl_dirsep_regex
='[/\\]'
12760 gl_dirsep_regex
='\/'
12763 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12764 gl_header_literal_regex
=`echo 'sys/types.h' \
12765 | sed -e "$gl_make_literal_regex_sed"`
12766 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12773 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12774 sed -n "$gl_absolute_header_sed"`
12776 gl_header
=$gl_cv_absolute_sys_types_h
12777 gl_cv_next_sys_types_h
='"'$gl_header'"'
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12782 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12784 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
12786 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12788 gl_next_as_first_directive
='<'sys
/types.h
'>'
12790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12791 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
12793 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
12807 GNULIB_NANOSLEEP
=0;
12812 HAVE_DECL_LOCALTIME_R
=1;
12816 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
12817 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
12818 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
12819 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
12821 : ${GNULIB_GETTIMEOFDAY=0};
12823 REPLACE_LOCALTIME
=0;
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12828 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12829 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12839 static struct timespec x; x.tv_sec = x.tv_nsec;
12844 if ac_fn_c_try_compile
"$LINENO"; then :
12845 gl_cv_sys_struct_timespec_in_time_h
=yes
12847 gl_cv_sys_struct_timespec_in_time_h
=no
12849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12852 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12854 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12855 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12856 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
12857 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
12858 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12859 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12862 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12863 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <sys/time.h>
12873 static struct timespec x; x.tv_sec = x.tv_nsec;
12878 if ac_fn_c_try_compile
"$LINENO"; then :
12879 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
12881 gl_cv_sys_struct_timespec_in_sys_time_h
=no
12883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12886 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12887 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12888 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12891 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12892 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 #include <pthread.h>
12902 static struct timespec x; x.tv_sec = x.tv_nsec;
12907 if ac_fn_c_try_compile
"$LINENO"; then :
12908 gl_cv_sys_struct_timespec_in_pthread_h
=yes
12910 gl_cv_sys_struct_timespec_in_pthread_h
=no
12912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12915 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12916 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12917 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12920 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12921 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 #include <unistd.h>
12931 static struct timespec x; x.tv_sec = x.tv_nsec;
12936 if ac_fn_c_try_compile
"$LINENO"; then :
12937 gl_cv_sys_struct_timespec_in_unistd_h
=yes
12939 gl_cv_sys_struct_timespec_in_unistd_h
=no
12941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12944 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12945 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12946 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
12967 if test $gl_cv_have_include_next = yes; then
12968 gl_cv_next_time_h
='<'time.h
'>'
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12971 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12972 if test "${gl_cv_next_time_h+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12983 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12984 *) gl_absname_cpp
="$ac_cpp" ;;
12989 gl_dirsep_regex
='[/\\]'
12992 gl_dirsep_regex
='\/'
12995 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12996 gl_header_literal_regex
=`echo 'time.h' \
12997 | sed -e "$gl_make_literal_regex_sed"`
12998 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12999 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13005 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13006 sed -n "$gl_absolute_header_sed"`
13008 gl_header
=$gl_cv_absolute_time_h
13009 gl_cv_next_time_h
='"'$gl_header'"'
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
13014 $as_echo "$gl_cv_next_time_h" >&6; }
13016 NEXT_TIME_H
=$gl_cv_next_time_h
13018 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13020 gl_next_as_first_directive
='<'time.h
'>'
13022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13023 gl_next_as_first_directive
=$gl_cv_next_time_h
13025 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
13034 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13035 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
13041 cat >>confdefs.h
<<_ACEOF
13042 #define HAVE_DECL_UNSETENV $ac_have_decl
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13047 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13048 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13051 gl_cv_header_wchar_h_correct_inline
=yes
13052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 #define wcstod renamed_wcstod
13056 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13058 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13059 included before <wchar.h>. */
13060 #include <stddef.h>
13064 extern int zero (void);
13065 int main () { return zero(); }
13068 save_ac_compile
="$ac_compile"
13069 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13071 (eval $ac_compile) 2>&5
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }; then
13075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13078 #define wcstod renamed_wcstod
13079 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13081 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13082 included before <wchar.h>. */
13083 #include <stddef.h>
13087 int zero (void) { return 0; }
13090 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092 (eval $ac_compile) 2>&5
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
13099 gl_cv_header_wchar_h_correct_inline
=no
13103 ac_compile
="$save_ac_compile"
13104 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13108 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13109 if test $gl_cv_header_wchar_h_correct_inline = no
; then
13110 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13111 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13112 C99 mode. You have four options:
13113 - Add the flag -fgnu89-inline to CC and reconfigure, or
13114 - Fix your include files, using parts of
13115 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13116 - Use a gcc version older than 4.3, or
13117 - Don't use the flags -std=c99 or -std=gnu99.
13118 Configuration aborted." "$LINENO" 5
13125 if test $ac_cv_header_features_h = yes; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13134 $as_echo_n "checking for wint_t... " >&6; }
13135 if test "${gt_cv_c_wint_t+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13144 before <wchar.h>. */
13145 #include <stddef.h>
13149 wint_t foo = (wchar_t)'\0';
13158 if ac_fn_c_try_compile
"$LINENO"; then :
13163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13166 $as_echo "$gt_cv_c_wint_t" >&6; }
13167 if test $gt_cv_c_wint_t = yes; then
13169 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13178 GNULIB_TOWCTRANS
=0;
13182 REPLACE_ISWBLANK
=0;
13188 GL_COND_LIBTOOL_TRUE
=
13189 GL_COND_LIBTOOL_FALSE
='#'
13191 GL_COND_LIBTOOL_TRUE
='#'
13192 GL_COND_LIBTOOL_FALSE
=
13195 gl_cond_libtool
=false
13198 gl_m4_base
='import/m4'
13208 gl_source_base
='import'
13211 if test $ac_cv_func_alloca_works = no
; then
13215 # Define an additional variable used in the Makefile substitution.
13216 if test $ac_cv_working_alloca_h = yes; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13218 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13219 if test "${gl_cv_rpl_alloca+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13232 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
13233 gl_cv_rpl_alloca
=yes
13235 gl_cv_rpl_alloca
=no
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13242 $as_echo "$gl_cv_rpl_alloca" >&6; }
13243 if test $gl_cv_rpl_alloca = yes; then
13245 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13255 if test -n "$ALLOCA_H"; then
13256 GL_GENERATE_ALLOCA_H_TRUE
=
13257 GL_GENERATE_ALLOCA_H_FALSE
='#'
13259 GL_GENERATE_ALLOCA_H_TRUE
='#'
13260 GL_GENERATE_ALLOCA_H_FALSE
=
13272 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
13277 if test $ac_cv_func_canonicalize_file_name = no
; then
13278 HAVE_CANONICALIZE_FILE_NAME
=0
13279 if test $ac_cv_func_realpath = no
; then
13282 case "$gl_cv_func_realpath_works" in
13284 *) REPLACE_REALPATH
=1 ;;
13288 case "$gl_cv_func_realpath_works" in
13292 REPLACE_CANONICALIZE_FILE_NAME
=1
13298 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
13307 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
13312 cat >>confdefs.h
<<_ACEOF
13313 #define GNULIB_CANONICALIZE_LGPL 1
13322 GNULIB_CANONICALIZE_FILE_NAME
=1
13328 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
13343 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
13358 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
13365 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
13366 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
13369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13372 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
13374 # include <unistd.h>
13376 #include <limits.h>
13377 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
13378 # include <sys/param.h>
13380 #if !defined PATH_MAX && defined MAXPATHLEN
13381 # define PATH_MAX MAXPATHLEN
13385 # define PATH_MAX 1024
13387 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13389 # define PATH_MAX 260
13393 have_arbitrary_file_name_length_limit
13396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13397 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
13398 gl_cv_have_arbitrary_file_name_length_limit
=yes
13400 gl_cv_have_arbitrary_file_name_length_limit
=no
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
13406 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
13408 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
13417 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
13423 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
13429 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
13437 if test $ac_cv_header_sys_socket_h != yes; then
13438 for ac_header
in winsock2.h
13440 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13441 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
13442 cat >>confdefs.h
<<_ACEOF
13443 #define HAVE_WINSOCK2_H 1
13451 if test "$ac_cv_header_winsock2_h" = yes; then
13453 UNISTD_H_HAVE_WINSOCK2_H
=1
13454 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
13460 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
13465 if test $REPLACE_CLOSE = 0; then
13469 if test $ac_cv_func_fchdir = no
; then
13473 if test $HAVE_FCHDIR = 0; then
13479 if test $REPLACE_CLOSE = 1; then
13488 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
13502 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
13509 for ac_func
in closedir
13511 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
13512 if test "x$ac_cv_func_closedir" = x
""yes; then :
13513 cat >>confdefs.h
<<_ACEOF
13514 #define HAVE_CLOSEDIR 1
13520 if test $ac_cv_func_closedir = no
; then
13527 if test $ac_cv_func_fchdir = no
; then
13531 if test $HAVE_FCHDIR = 0; then
13532 if test $HAVE_CLOSEDIR = 1; then
13537 case $host_os,$HAVE_CLOSEDIR in
13539 REPLACE_CLOSEDIR
=1;;
13542 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
13551 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
13565 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
13570 if test "x$datarootdir" = x
; then
13571 datarootdir
='${datadir}'
13574 if test "x$docdir" = x
; then
13575 docdir
='${datarootdir}/doc/${PACKAGE}'
13578 if test "x$htmldir" = x
; then
13579 htmldir
='${docdir}'
13582 if test "x$dvidir" = x
; then
13586 if test "x$pdfdir" = x
; then
13590 if test "x$psdir" = x
; then
13594 if test "x$lispdir" = x
; then
13595 lispdir
='${datarootdir}/emacs/site-lisp'
13598 if test "x$localedir" = x
; then
13599 localedir
='${datarootdir}/locale'
13602 if test "x$runstatedir" = x
; then
13603 runstatedir
='${localstatedir}/run'
13607 pkglibexecdir
='${libexecdir}/${PACKAGE}'
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
13611 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
13612 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then :
13613 $as_echo_n "(cached) " >&6
13615 if test "$cross_compiling" = yes; then :
13617 # Guess yes on glibc systems with Linux kernel.
13618 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
13619 # If we don't know, assume the worst.
13620 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <sys/types.h>
13627 #include <sys/stat.h>
13628 #include <dirent.h>
13633 DIR *dp = opendir (".");
13641 if (lstat (e->d_name, &st) != 0)
13643 if (e->d_ino != st.st_ino)
13652 if ac_fn_c_try_run
"$LINENO"; then :
13653 gl_cv_struct_dirent_d_ino
=yes
13655 gl_cv_struct_dirent_d_ino
=no
13657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
13663 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
13664 case "$gl_cv_struct_dirent_d_ino" in
13667 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
13674 $as_echo_n "checking for d_type member in directory struct... " >&6; }
13675 if test "${gl_cv_struct_dirent_d_type+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13681 #include <sys/types.h>
13682 #include <dirent.h>
13687 struct dirent dp; dp.d_type = 0;
13692 if ac_fn_c_try_link
"$LINENO"; then :
13693 gl_cv_struct_dirent_d_type
=yes
13695 gl_cv_struct_dirent_d_type
=no
13697 rm -f core conftest.err conftest.
$ac_objext \
13698 conftest
$ac_exeext conftest.
$ac_ext
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
13703 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
13704 if test $gl_cv_struct_dirent_d_type = yes; then
13706 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
13723 if test $gl_cv_have_include_next = yes; then
13724 gl_cv_next_dirent_h
='<'dirent.h
'>'
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
13727 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
13728 if test "${gl_cv_next_dirent_h+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13732 if test $ac_cv_header_dirent_h = yes; then
13737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <dirent.h>
13742 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13743 *) gl_absname_cpp
="$ac_cpp" ;;
13748 gl_dirsep_regex
='[/\\]'
13751 gl_dirsep_regex
='\/'
13754 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13755 gl_header_literal_regex
=`echo 'dirent.h' \
13756 | sed -e "$gl_make_literal_regex_sed"`
13757 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13764 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13765 sed -n "$gl_absolute_header_sed"`
13767 gl_header
=$gl_cv_absolute_dirent_h
13768 gl_cv_next_dirent_h
='"'$gl_header'"'
13770 gl_cv_next_dirent_h
='<'dirent.h
'>'
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
13776 $as_echo "$gl_cv_next_dirent_h" >&6; }
13778 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
13780 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13782 gl_next_as_first_directive
='<'dirent.h
'>'
13784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13785 gl_next_as_first_directive
=$gl_cv_next_dirent_h
13787 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
13792 if test $ac_cv_header_dirent_h = yes; then
13800 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
13801 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13803 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13804 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13805 $as_echo_n "(cached) " >&6
13807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <dirent.h>
13820 if ac_fn_c_try_compile
"$LINENO"; then :
13821 eval "$as_gl_Symbol=yes"
13823 eval "$as_gl_Symbol=no"
13825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13827 eval ac_res
=\$
$as_gl_Symbol
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13829 $as_echo "$ac_res" >&6; }
13830 eval as_val
=\$
$as_gl_Symbol
13831 if test "x$as_val" = x
""yes; then :
13832 cat >>confdefs.h
<<_ACEOF
13833 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13836 eval ac_cv_have_decl_
$gl_func=yes
13846 for ac_func
in dirfd
13848 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
13849 if test "x$ac_cv_func_dirfd" = x
""yes; then :
13850 cat >>confdefs.h
<<_ACEOF
13851 #define HAVE_DIRFD 1
13857 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
13858 #include <dirent.h>
13860 if test "x$ac_cv_have_decl_dirfd" = x
""yes; then :
13866 cat >>confdefs.h
<<_ACEOF
13867 #define HAVE_DECL_DIRFD $ac_have_decl
13870 if test $ac_cv_have_decl_dirfd = no
; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
13875 $as_echo_n "checking whether dirfd is a macro... " >&6; }
13876 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 #include <sys/types.h>
13883 #include <dirent.h>
13885 dirent_header_defines_dirfd
13888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13889 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
13890 gl_cv_func_dirfd_macro
=yes
13892 gl_cv_func_dirfd_macro
=no
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
13898 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
13900 # Use the replacement if we have no function or macro with that name,
13901 # or if OS/2 kLIBC whose dirfd() does not work.
13902 # Replace only if the system declares dirfd already.
13903 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
13904 no
,no
,*,yes |
*,*,os2
*,yes)
13907 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
13911 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
13912 ||
test $REPLACE_DIRFD = 1; then
13921 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
13925 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
13926 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13930 dirfd_save_CFLAGS
=$CFLAGS
13931 for ac_expr
in d_fd dd_fd
; do
13933 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
13934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13937 #include <sys/types.h>
13938 #include <dirent.h>
13942 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
13947 if ac_fn_c_try_compile
"$LINENO"; then :
13951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13952 CFLAGS
=$dirfd_save_CFLAGS
13953 test "$dir_fd_found" = yes && break
13955 test "$dir_fd_found" = yes || ac_expr
=no_such_member
13957 gl_cv_sys_dir_fd_member_name
=$ac_expr
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
13962 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
13963 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
13965 cat >>confdefs.h
<<_ACEOF
13966 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
13984 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
13995 $as_echo_n "checking whether // is distinct from /... " >&6; }
13996 if test "${gl_cv_double_slash_root+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13999 if test x
"$cross_compiling" = xyes
; then
14000 # When cross-compiling, there is no way to tell whether // is special
14001 # short of a list of hosts. However, the only known hosts to date
14002 # that have a distinct // are Apollo DomainOS (too old to port to),
14003 # Cygwin, and z/OS. If anyone knows of another system for which // has
14004 # special semantics and is distinct from /, please report it to
14005 # <bug-gnulib@gnu.org>.
14007 *-cygwin | i370-ibm-openedition
)
14008 gl_cv_double_slash_root
=yes ;;
14010 # Be optimistic and assume that / and // are the same when we
14012 gl_cv_double_slash_root
='unknown, assuming no' ;;
14015 set x
`ls -di / // 2>/dev/null`
14016 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
14017 gl_cv_double_slash_root
=no
14019 gl_cv_double_slash_root
=yes
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14024 $as_echo "$gl_cv_double_slash_root" >&6; }
14025 if test "$gl_cv_double_slash_root" = yes; then
14027 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14034 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14041 if test $ac_cv_func_fchdir = no
; then
14045 if test $HAVE_FCHDIR = 0; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
14050 $as_echo_n "checking whether dup works... " >&6; }
14051 if test "${gl_cv_func_dup_works+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14054 if test "$cross_compiling" = yes; then :
14055 gl_cv_func_dup_works
='guessing yes'
14057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 #include <unistd.h>
14065 /* On OS/2 kLIBC, dup does not work on a directory fd. */
14066 int fd = open (".", O_RDONLY);
14067 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
14074 if ac_fn_c_try_run
"$LINENO"; then :
14075 gl_cv_func_dup_works
=yes
14077 gl_cv_func_dup_works
=no
14079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
14086 $as_echo "$gl_cv_func_dup_works" >&6; }
14087 case "$gl_cv_func_dup_works" in
14094 if test $REPLACE_DUP = 1; then
14103 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
14118 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
14127 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
14130 if test $HAVE_DUP2 = 1; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
14132 $as_echo_n "checking whether dup2 works... " >&6; }
14133 if test "${gl_cv_func_dup2_works+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14136 if test "$cross_compiling" = yes; then :
14138 mingw
*) # on this platform, dup2 always returns 0 for success
14139 gl_cv_func_dup2_works
="guessing no" ;;
14140 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
14141 gl_cv_func_dup2_works
="guessing no" ;;
14143 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
14145 gl_cv_func_dup2_works
="guessing no" ;;
14146 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
14147 gl_cv_func_dup2_works
="guessing no" ;;
14148 *-android*) # implemented using dup3(), which fails if oldfd == newfd
14149 gl_cv_func_dup2_works
="guessing no" ;;
14150 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
14151 gl_cv_func_dup2_works
="guessing no" ;;
14152 *) gl_cv_func_dup2_works
="guessing yes" ;;
14155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14160 #include <limits.h>
14161 #include <sys/resource.h>
14162 #include <unistd.h>
14163 #ifndef RLIM_SAVED_CUR
14164 # define RLIM_SAVED_CUR RLIM_INFINITY
14166 #ifndef RLIM_SAVED_MAX
14167 # define RLIM_SAVED_MAX RLIM_INFINITY
14174 int bad_fd = INT_MAX;
14175 struct rlimit rlim;
14176 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14177 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14178 && rlim.rlim_cur != RLIM_INFINITY
14179 && rlim.rlim_cur != RLIM_SAVED_MAX
14180 && rlim.rlim_cur != RLIM_SAVED_CUR)
14181 bad_fd = rlim.rlim_cur;
14183 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
14186 if (dup2 (1, 1) != 1)
14189 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
14193 if (dup2 (0, 0) != -1)
14195 /* Many gnulib modules require POSIX conformance of EBADF. */
14196 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
14198 /* Flush out some cygwin core dumps. */
14199 if (dup2 (2, -1) != -1 || errno != EBADF)
14203 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
14205 int fd = open (".", O_RDONLY);
14208 else if (dup2 (fd, fd + 1) == -1)
14219 if ac_fn_c_try_run
"$LINENO"; then :
14220 gl_cv_func_dup2_works
=yes
14222 gl_cv_func_dup2_works
=no
14224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
14231 $as_echo "$gl_cv_func_dup2_works" >&6; }
14232 case "$gl_cv_func_dup2_works" in
14236 for ac_func
in setdtablesize
14238 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
14239 if test "x$ac_cv_func_setdtablesize" = x
""yes; then :
14240 cat >>confdefs.h
<<_ACEOF
14241 #define HAVE_SETDTABLESIZE 1
14254 if test $ac_cv_func_fchdir = no
; then
14258 if test $HAVE_FCHDIR = 0; then
14259 if test $HAVE_DUP2 = 1; then
14265 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
14274 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
14289 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
14305 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14312 $as_echo_n "checking for error_at_line... " >&6; }
14313 if test "${ac_cv_lib_error_at_line+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14322 error_at_line (0, 0, "", 0, "an error occurred");
14327 if ac_fn_c_try_link
"$LINENO"; then :
14328 ac_cv_lib_error_at_line
=yes
14330 ac_cv_lib_error_at_line
=no
14332 rm -f core conftest.err conftest.
$ac_objext \
14333 conftest
$ac_exeext conftest.
$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14336 $as_echo "$ac_cv_lib_error_at_line" >&6; }
14338 if test $ac_cv_lib_error_at_line = no
; then
14347 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
14361 if test $ac_cv_have_decl_fchdir = no
; then
14366 if test $HAVE_FCHDIR = 0; then
14375 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
14379 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
14382 $as_echo_n "checking whether open can visit directories... " >&6; }
14383 if test "${gl_cv_func_open_directory_works+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14386 if test "$cross_compiling" = yes; then :
14388 # Guess yes on glibc systems.
14389 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
14390 # If we don't know, assume the worst.
14391 *) gl_cv_func_open_directory_works
="guessing no" ;;
14395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14402 return open(".", O_RDONLY) < 0;
14407 if ac_fn_c_try_run
"$LINENO"; then :
14408 gl_cv_func_open_directory_works
=yes
14410 gl_cv_func_open_directory_works
=no
14412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
14418 $as_echo "$gl_cv_func_open_directory_works" >&6; }
14419 case "$gl_cv_func_open_directory_works" in
14423 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
14440 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
14449 if test $ac_cv_func_fcntl = no
; then
14453 if test $ac_cv_func_fcntl = no
; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
14461 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
14462 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14465 if test "$cross_compiling" = yes; then :
14467 aix
* | cygwin
* | haiku
*)
14468 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
14469 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
14472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14476 #include <limits.h>
14477 #include <sys/resource.h>
14478 #include <unistd.h>
14479 #ifndef RLIM_SAVED_CUR
14480 # define RLIM_SAVED_CUR RLIM_INFINITY
14482 #ifndef RLIM_SAVED_MAX
14483 # define RLIM_SAVED_MAX RLIM_INFINITY
14490 int bad_fd = INT_MAX;
14491 struct rlimit rlim;
14492 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14493 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14494 && rlim.rlim_cur != RLIM_INFINITY
14495 && rlim.rlim_cur != RLIM_SAVED_MAX
14496 && rlim.rlim_cur != RLIM_SAVED_CUR)
14497 bad_fd = rlim.rlim_cur;
14498 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
14499 if (errno != EINVAL) result |= 2;
14500 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
14501 if (errno != EINVAL) result |= 8;
14502 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
14505 fd = open (".", O_RDONLY);
14508 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
14518 if ac_fn_c_try_run
"$LINENO"; then :
14519 gl_cv_func_fcntl_f_dupfd_works
=yes
14521 gl_cv_func_fcntl_f_dupfd_works
=no
14523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
14529 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
14530 case $gl_cv_func_fcntl_f_dupfd_works in
14535 if test $ac_cv_func_fcntl = no
; then
14542 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
14547 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
14548 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14555 #ifndef F_DUPFD_CLOEXEC
14567 if ac_fn_c_try_compile
"$LINENO"; then :
14568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14572 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
14573 it to support the semantics on older kernels that failed with EINVAL. */
14585 if ac_fn_c_try_compile
"$LINENO"; then :
14586 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
14588 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
14590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14592 gl_cv_func_fcntl_f_dupfd_cloexec
=no
14594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
14597 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
14598 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
14602 if test $ac_cv_func_fcntl = no
; then
14614 if test $ac_cv_func_fchdir = no
; then
14618 if test $HAVE_FCHDIR = 0; then
14622 if test $ac_cv_func_fcntl = no
; then
14631 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
14640 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
14654 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
14669 if test $gl_cv_have_include_next = yes; then
14670 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
14673 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
14674 if test "${gl_cv_next_fcntl_h+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14685 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14686 *) gl_absname_cpp
="$ac_cpp" ;;
14691 gl_dirsep_regex
='[/\\]'
14694 gl_dirsep_regex
='\/'
14697 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14698 gl_header_literal_regex
=`echo 'fcntl.h' \
14699 | sed -e "$gl_make_literal_regex_sed"`
14700 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14707 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14708 sed -n "$gl_absolute_header_sed"`
14710 gl_header
=$gl_cv_absolute_fcntl_h
14711 gl_cv_next_fcntl_h
='"'$gl_header'"'
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
14716 $as_echo "$gl_cv_next_fcntl_h" >&6; }
14718 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
14720 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14722 gl_next_as_first_directive
='<'fcntl.h
'>'
14724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14725 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
14727 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
14738 for gl_func
in fcntl openat
; do
14739 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14741 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14742 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14743 $as_echo_n "(cached) " >&6
14745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14758 if ac_fn_c_try_compile
"$LINENO"; then :
14759 eval "$as_gl_Symbol=yes"
14761 eval "$as_gl_Symbol=no"
14763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14765 eval ac_res
=\$
$as_gl_Symbol
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14767 $as_echo "$ac_res" >&6; }
14768 eval as_val
=\$
$as_gl_Symbol
14769 if test "x$as_val" = x
""yes; then :
14770 cat >>confdefs.h
<<_ACEOF
14771 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14774 eval ac_cv_have_decl_
$gl_func=yes
14784 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
14785 #include <dirent.h>
14788 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
14794 cat >>confdefs.h
<<_ACEOF
14795 #define HAVE_DECL_FDOPENDIR $ac_have_decl
14797 if test $ac_have_decl = 1; then :
14800 HAVE_DECL_FDOPENDIR
=0
14804 if test $ac_cv_func_fdopendir = no
; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
14808 $as_echo_n "checking whether fdopendir works... " >&6; }
14809 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14812 if test "$cross_compiling" = yes; then :
14814 # Guess yes on glibc systems.
14815 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
14816 # If we don't know, assume the worst.
14817 *) gl_cv_func_fdopendir_works
="guessing no" ;;
14821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14824 #include <dirent.h>
14826 #include <unistd.h>
14827 #if !HAVE_DECL_FDOPENDIR
14829 # ifdef __cplusplus
14832 DIR *fdopendir (int);
14839 int fd = open ("conftest.c", O_RDONLY);
14840 if (fd < 0) result |= 1;
14841 if (fdopendir (fd)) result |= 2;
14842 if (close (fd)) result |= 4;
14848 if ac_fn_c_try_run
"$LINENO"; then :
14849 gl_cv_func_fdopendir_works
=yes
14851 gl_cv_func_fdopendir_works
=no
14853 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14854 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
14859 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
14860 case "$gl_cv_func_fdopendir_works" in
14863 REPLACE_FDOPENDIR
=1
14868 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
14877 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
14891 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
14897 cat >>confdefs.h
<<_ACEOF
14898 #define GNULIB_FDOPENDIR 1
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
14907 $as_echo_n "checking for flexible array member... " >&6; }
14908 if test "${ac_cv_c_flexmember+set}" = set; then :
14909 $as_echo_n "(cached) " >&6
14911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #include <stdlib.h>
14915 #include <stddef.h>
14916 struct s { int n; double d[]; };
14920 int m = getchar ();
14921 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
14922 nbytes += sizeof (struct s) - 1;
14923 nbytes -= nbytes % sizeof (struct s);
14924 struct s *p = malloc (nbytes);
14926 return p->d != (double *) NULL;
14931 if ac_fn_c_try_compile
"$LINENO"; then :
14932 ac_cv_c_flexmember
=yes
14934 ac_cv_c_flexmember
=no
14936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14939 $as_echo "$ac_cv_c_flexmember" >&6; }
14940 if test $ac_cv_c_flexmember = yes; then
14942 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14945 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14953 REPLACE_FLOAT_LDBL
=0
14955 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
14959 case "$host_cpu" in
14964 # On x86_64 systems, the C compiler may still be generating
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
14972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14973 $EGREP "yes" >/dev
/null
2>&1; then :
14984 case "$host_cpu" in
14992 aix
* | freebsd
* | linux
*)
14993 if test -n "$FLOAT_H"; then
14994 REPLACE_FLOAT_LDBL
=1
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
15001 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
15002 if test "${gl_cv_func_itold_works+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15006 if test "$cross_compiling" = yes; then :
15009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 #if defined __LP64__ || defined __arch64__
15015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15016 $EGREP "yes" >/dev
/null
2>&1; then :
15017 gl_cv_func_itold_works
="guessing no"
15019 gl_cv_func_itold_works
="guessing yes"
15024 *) gl_cv_func_itold_works
="guessing yes" ;;
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15032 volatile long double ld;
15041 if ac_fn_c_try_run
"$LINENO"; then :
15042 gl_cv_func_itold_works
=yes
15044 gl_cv_func_itold_works
=no
15046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
15053 $as_echo "$gl_cv_func_itold_works" >&6; }
15054 case "$gl_cv_func_itold_works" in
15061 if test -n "$FLOAT_H"; then
15070 if test $gl_cv_have_include_next = yes; then
15071 gl_cv_next_float_h
='<'float.h
'>'
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
15074 $as_echo_n "checking absolute name of <float.h>... " >&6; }
15075 if test "${gl_cv_next_float_h+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15086 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15087 *) gl_absname_cpp
="$ac_cpp" ;;
15092 gl_dirsep_regex
='[/\\]'
15095 gl_dirsep_regex
='\/'
15098 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15099 gl_header_literal_regex
=`echo 'float.h' \
15100 | sed -e "$gl_make_literal_regex_sed"`
15101 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15102 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15108 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15109 sed -n "$gl_absolute_header_sed"`
15111 gl_header
=$gl_cv_absolute_float_h
15112 gl_cv_next_float_h
='"'$gl_header'"'
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
15117 $as_echo "$gl_cv_next_float_h" >&6; }
15119 NEXT_FLOAT_H
=$gl_cv_next_float_h
15121 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15123 gl_next_as_first_directive
='<'float.h
'>'
15125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15126 gl_next_as_first_directive
=$gl_cv_next_float_h
15128 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
15135 if test -n "$FLOAT_H"; then
15136 GL_GENERATE_FLOAT_H_TRUE
=
15137 GL_GENERATE_FLOAT_H_FALSE
='#'
15139 GL_GENERATE_FLOAT_H_TRUE
='#'
15140 GL_GENERATE_FLOAT_H_FALSE
=
15145 if test $REPLACE_FLOAT_LDBL = 1; then
15154 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
15157 if test $REPLACE_ITOLD = 1; then
15166 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
15175 gl_fnmatch_required_lowercase
=`
15176 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
15178 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
15180 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
15181 if { as_var
=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
15182 $as_echo_n "(cached) " >&6
15184 if test $gl_fnmatch_required = GNU
; then
15185 gl_fnmatch_gnu_start
=
15186 gl_fnmatch_gnu_end
=
15188 gl_fnmatch_gnu_start
='#if 0'
15189 gl_fnmatch_gnu_end
='#endif'
15191 if test "$cross_compiling" = yes; then :
15192 eval "$gl_fnmatch_cache_var=\"guessing no\""
15194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15196 #include <fnmatch.h>
15198 y (char const *pattern, char const *string, int flags)
15200 return fnmatch (pattern, string, flags) == 0;
15203 n (char const *pattern, char const *string, int flags)
15205 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
15211 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
15212 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
15213 static char const A_1[] = { 'A' - 1, 0 };
15214 static char const A01[] = { 'A' + 1, 0 };
15215 static char const a_1[] = { 'a' - 1, 0 };
15216 static char const a01[] = { 'a' + 1, 0 };
15217 static char const bs_1[] = { '\\\\' - 1, 0 };
15218 static char const bs01[] = { '\\\\' + 1, 0 };
15220 if (!n ("a*", "", 0))
15222 if (!y ("a*", "abc", 0))
15224 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
15226 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
15228 if (!y ("a\\\\bc", "abc", 0))
15230 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
15232 if (!y ("*x", ".x", 0))
15234 if (!n ("*x", ".x", FNM_PERIOD))
15236 if (!y (Apat, "\\\\", 0))
15238 if (!y (Apat, "A", 0))
15240 if (!y (apat, "\\\\", 0))
15242 if (!y (apat, "a", 0))
15244 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
15246 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
15248 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
15250 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
15252 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
15254 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
15256 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
15258 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
15260 $gl_fnmatch_gnu_start
15261 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
15263 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
15265 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
15267 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
15269 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
15271 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
15273 $gl_fnmatch_gnu_end
15280 if ac_fn_c_try_run
"$LINENO"; then :
15281 eval "$gl_fnmatch_cache_var=yes"
15283 eval "$gl_fnmatch_cache_var=no"
15285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15291 eval ac_res
=\$
$gl_fnmatch_cache_var
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15293 $as_echo "$ac_res" >&6; }
15294 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
15295 if test "$gl_fnmatch_result" = yes; then
15296 rm -f "$gl_source_base/fnmatch.h"
15298 FNMATCH_H
=fnmatch.h
15301 if test -n "$FNMATCH_H"; then
15302 GL_GENERATE_FNMATCH_H_TRUE
=
15303 GL_GENERATE_FNMATCH_H_FALSE
='#'
15305 GL_GENERATE_FNMATCH_H_TRUE
='#'
15306 GL_GENERATE_FNMATCH_H_FALSE
=
15310 if test -n "$FNMATCH_H"; then
15319 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
15323 cat >>confdefs.h
<<_ACEOF
15324 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
15328 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
15330 if test "x$ac_cv_have_decl_isblank" = x
""yes; then :
15336 cat >>confdefs.h
<<_ACEOF
15337 #define HAVE_DECL_ISBLANK $ac_have_decl
15349 if test -n "$FNMATCH_H"; then
15358 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
15362 cat >>confdefs.h
<<_ACEOF
15363 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
15367 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
15369 if test "x$ac_cv_have_decl_isblank" = x
""yes; then :
15375 cat >>confdefs.h
<<_ACEOF
15376 #define HAVE_DECL_ISBLANK $ac_have_decl
15387 if test $gl_cv_func_frexp_no_libm = no
; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
15389 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
15390 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15403 int e; return frexp (x, &e) > 0;
15408 if ac_fn_c_try_link
"$LINENO"; then :
15409 gl_cv_func_frexp_in_libm
=yes
15411 gl_cv_func_frexp_in_libm
=no
15413 rm -f core conftest.err conftest.
$ac_objext \
15414 conftest
$ac_exeext conftest.
$ac_ext
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
15419 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
15420 if test $gl_cv_func_frexp_in_libm = yes; then
15424 if test $gl_cv_func_frexp_no_libm = yes \
15425 ||
test $gl_cv_func_frexp_in_libm = yes; then
15427 LIBS
="$LIBS $FREXP_LIBM"
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15432 $as_echo_n "checking whether frexp works... " >&6; }
15433 if test "${gl_cv_func_frexp_works+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15437 if test "$cross_compiling" = yes; then :
15439 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
15440 *) gl_cv_func_frexp_works
="guessing yes";;
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15449 #include <string.h>
15450 #if HAVE_DECL_ALARM
15451 # include <signal.h>
15452 # include <unistd.h>
15454 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15455 ICC 10.0 has a bug when optimizing the expression -zero.
15456 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
15457 to PowerPC on Mac OS X 10.5. */
15458 #if defined __hpux || defined __sgi || defined __ICC
15460 compute_minus_zero (void)
15462 return -DBL_MIN * DBL_MIN;
15464 # define minus_zero compute_minus_zero ()
15466 double minus_zero = -0.0;
15474 #if HAVE_DECL_ALARM
15475 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
15476 number. Let the test fail in this case. */
15477 signal (SIGALRM, SIG_DFL);
15480 /* Test on denormalized numbers. */
15481 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15486 double y = frexp (x, &exp);
15487 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15488 On NetBSD: y = 0.75. Correct: y = 0.5. */
15492 /* Test on infinite numbers. */
15496 double y = frexp (x, &exp);
15500 /* Test on negative zero. */
15504 double y = frexp (x, &exp);
15505 if (memcmp (&y, &x, sizeof x))
15511 if ac_fn_c_try_run
"$LINENO"; then :
15512 gl_cv_func_frexp_works
=yes
15514 gl_cv_func_frexp_works
=no
15516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
15523 $as_echo "$gl_cv_func_frexp_works" >&6; }
15526 case "$gl_cv_func_frexp_works" in
15527 *yes) gl_func_frexp
=yes ;;
15528 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
15533 if test $gl_func_frexp = yes; then
15535 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
15540 if test $gl_func_frexp != yes; then
15549 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
15563 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
15573 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
15575 if test "x$ac_cv_have_decl_frexpl" = x
""yes; then :
15583 if test $HAVE_DECL_FREXPL = 1; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
15586 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
15587 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15598 int e; return frexpl (x, &e) > 0;
15603 if ac_fn_c_try_link
"$LINENO"; then :
15604 gl_cv_func_frexpl_no_libm
=yes
15606 gl_cv_func_frexpl_no_libm
=no
15608 rm -f core conftest.err conftest.
$ac_objext \
15609 conftest
$ac_exeext conftest.
$ac_ext
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
15613 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
15615 if test $gl_cv_func_frexpl_no_libm = no
; then
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
15617 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
15618 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15631 int e; return frexpl (x, &e) > 0;
15636 if ac_fn_c_try_link
"$LINENO"; then :
15637 gl_cv_func_frexpl_in_libm
=yes
15639 gl_cv_func_frexpl_in_libm
=no
15641 rm -f core conftest.err conftest.
$ac_objext \
15642 conftest
$ac_exeext conftest.
$ac_ext
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
15647 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
15648 if test $gl_cv_func_frexpl_in_libm = yes; then
15652 if test $gl_cv_func_frexpl_no_libm = yes \
15653 ||
test $gl_cv_func_frexpl_in_libm = yes; then
15655 LIBS
="$LIBS $FREXPL_LIBM"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
15659 $as_echo_n "checking whether frexpl works... " >&6; }
15660 if test "${gl_cv_func_frexpl_works+set}" = set; then :
15661 $as_echo_n "(cached) " >&6
15664 if test "$cross_compiling" = yes; then :
15667 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
15668 gl_cv_func_frexpl_works
="guessing no";;
15669 *) gl_cv_func_frexpl_works
="guessing yes";;
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15678 /* Override the values of <float.h>, like done in float.in.h. */
15679 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
15680 # undef LDBL_MIN_EXP
15681 # define LDBL_MIN_EXP (-16381)
15683 #if defined __i386__ && defined __FreeBSD__
15684 # undef LDBL_MIN_EXP
15685 # define LDBL_MIN_EXP (-16381)
15687 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
15688 # undef LDBL_MIN_EXP
15689 # define LDBL_MIN_EXP DBL_MIN_EXP
15691 #if defined __sgi && (LDBL_MANT_DIG >= 106)
15692 # if defined __GNUC__
15693 # undef LDBL_MIN_EXP
15694 # define LDBL_MIN_EXP DBL_MIN_EXP
15701 long double frexpl (long double, int *);
15705 volatile long double x;
15706 /* Test on finite numbers that fails on AIX 5.1. */
15714 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
15715 function returns an invalid (incorrectly normalized) value: it returns
15716 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
15717 but the correct result is
15718 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
15722 long double y = frexpl (x, &exp);
15723 if (!(exp == 1 && y == 0.505L))
15726 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
15727 LDBL_MAX_EXP = 16384.
15728 In the loop end test, we test x against Infinity, rather than comparing
15729 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
15732 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
15743 /* Test on denormalized numbers. */
15746 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
15751 long double y = frexpl (x, &exp);
15752 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
15753 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
15754 if (exp != LDBL_MIN_EXP - 1)
15758 /* Test on infinite numbers. */
15762 long double y = frexpl (x, &exp);
15769 if ac_fn_c_try_run
"$LINENO"; then :
15770 gl_cv_func_frexpl_works
=yes
15772 gl_cv_func_frexpl_works
=no
15774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15775 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
15781 $as_echo "$gl_cv_func_frexpl_works" >&6; }
15784 case "$gl_cv_func_frexpl_works" in
15785 *yes) gl_func_frexpl
=yes ;;
15786 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
15791 if test $gl_func_frexpl = yes; then
15793 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
15797 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
15798 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
15800 FREXPL_LIBM
="$FREXP_LIBM"
15807 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
15816 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
15830 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
15838 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15843 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15851 if test $ac_cv_func_fchdir = no
; then
15855 if test $HAVE_FCHDIR = 0; then
15856 case "$gl_cv_func_open_directory_works" in
15865 if test $REPLACE_FSTAT = 1; then
15874 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
15889 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
15899 if test $ac_cv_func_fstatat = no
; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
15903 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
15904 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15907 if test "$cross_compiling" = yes; then :
15909 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
15910 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
15914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15918 #include <sys/stat.h>
15923 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
15927 if ac_fn_c_try_run
"$LINENO"; then :
15928 gl_cv_func_fstatat_zero_flag
=yes
15930 gl_cv_func_fstatat_zero_flag
=no
15932 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15933 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
15939 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
15941 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
15943 *) REPLACE_FSTATAT
=1
15944 case $gl_cv_func_fstatat_zero_flag in
15947 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
15955 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
15964 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
15978 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
15990 gl_cv_func_getcwd_path_max
=yes
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
15999 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
16000 if test "${gl_cv_func_getcwd_path_max+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16003 # Arrange for deletion of the temporary directory this test creates.
16004 ac_clean_files
="$ac_clean_files confdir3"
16005 if test "$cross_compiling" = yes; then :
16007 aix
*) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
16008 *) gl_cv_func_getcwd_path_max
=no
;;
16011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16015 #include <stdlib.h>
16017 # include <unistd.h>
16019 # include <direct.h>
16021 #include <string.h>
16022 #include <limits.h>
16023 #include <sys/stat.h>
16024 #include <sys/types.h>
16028 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16030 # include <unistd.h>
16032 #include <limits.h>
16033 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16034 # include <sys/param.h>
16036 #if !defined PATH_MAX && defined MAXPATHLEN
16037 # define PATH_MAX MAXPATHLEN
16041 # define PATH_MAX 1024
16043 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16045 # define PATH_MAX 260
16050 # define AT_FDCWD 0
16052 #ifdef ENAMETOOLONG
16053 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
16055 # define is_ENAMETOOLONG(x) 0
16058 /* Use the getcwd function, not any macro. */
16061 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16065 # define S_IRWXU 0700
16068 /* The length of this name must be 8. */
16069 #define DIR_NAME "confdir3"
16070 #define DIR_NAME_LEN 8
16071 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
16073 /* The length of "../". */
16074 #define DOTDOTSLASH_LEN 3
16076 /* Leftover bytes in the buffer, to work around library or OS bugs. */
16077 #define BUF_SLOP 20
16083 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
16084 at least not on a local file system. And if we were to start worrying
16085 about remote file systems, we'd have to enable the wrapper function
16086 all of the time, just to be safe. That's not worth the cost. */
16088 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
16089 - DIR_NAME_SIZE - BUF_SLOP) \
16091 /* FIXME: Assuming there's a system for which this is true,
16092 this should be done in a compile test. */
16095 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
16096 + DIR_NAME_SIZE + BUF_SLOP];
16097 char *cwd = getcwd (buf, PATH_MAX);
16098 size_t initial_cwd_len;
16101 size_t n_chdirs = 0;
16106 cwd_len = initial_cwd_len = strlen (cwd);
16110 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
16113 cwd_len += DIR_NAME_SIZE;
16114 /* If mkdir or chdir fails, it could be that this system cannot create
16115 any file with an absolute name longer than PATH_MAX, such as cygwin.
16116 If so, leave fail as 0, because the current working directory can't
16117 be too long for getcwd if it can't even be created. For other
16118 errors, be pessimistic and consider that as a failure, too. */
16119 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
16121 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
16126 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
16130 c = getcwd (buf, PATH_MAX);
16131 if (!c && errno == ENOENT)
16141 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
16147 /* Our replacement needs to be able to stat() long ../../paths,
16148 so generate a path larger than PATH_MAX to check,
16149 avoiding the replacement if we can't stat(). */
16150 c = getcwd (buf, cwd_len + 1);
16151 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
16158 if (dotdot_max <= cwd_len - initial_cwd_len)
16160 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
16162 c = getcwd (buf, cwd_len + 1);
16165 if (! (errno == ERANGE || errno == ENOENT
16166 || is_ENAMETOOLONG (errno)))
16171 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
16179 if (c && strlen (c) != cwd_len)
16187 /* Leaving behind such a deep directory is not polite.
16188 So clean up here, right away, even though the driving
16189 shell script would also clean up. */
16193 /* Try rmdir first, in case the chdir failed. */
16195 for (i = 0; i <= n_chdirs; i++)
16197 if (chdir ("..") < 0)
16199 if (rmdir (DIR_NAME) != 0)
16209 if ac_fn_c_try_run
"$LINENO"; then :
16210 gl_cv_func_getcwd_path_max
=yes
16213 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
16214 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
16215 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
16216 *) gl_cv_func_getcwd_path_max
=no
;;
16219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
16226 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
16228 case "$gl_cv_func_getcwd_null" in
16234 for ac_func
in getpagesize
16236 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16237 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
16238 cat >>confdefs.h
<<_ACEOF
16239 #define HAVE_GETPAGESIZE 1
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
16246 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
16247 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16250 # Remove any remnants of a previous test.
16251 rm -rf confdir-14B---
16252 # Arrange for deletion of the temporary directory this test creates.
16253 ac_clean_files
="$ac_clean_files confdir-14B---"
16254 if test "$cross_compiling" = yes; then :
16255 gl_cv_func_getcwd_abort_bug
=yes
16257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16261 #include <stdlib.h>
16263 # include <unistd.h>
16264 #else /* on Windows with MSVC */
16265 # include <direct.h>
16267 #include <string.h>
16268 #include <sys/stat.h>
16271 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16273 # include <unistd.h>
16275 #include <limits.h>
16276 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16277 # include <sys/param.h>
16279 #if !defined PATH_MAX && defined MAXPATHLEN
16280 # define PATH_MAX MAXPATHLEN
16284 # define PATH_MAX 1024
16286 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16288 # define PATH_MAX 260
16292 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16296 # define S_IRWXU 0700
16299 /* FIXME: skip the run-test altogether on systems without getpagesize. */
16300 #if ! HAVE_GETPAGESIZE
16301 # define getpagesize() 0
16304 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
16305 the 16kB pagesize on ia64 linux. Those conditions make the code below
16306 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
16307 #define TARGET_LEN (5 * 1024)
16313 size_t initial_cwd_len;
16316 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
16317 this relatively expensive and invasive test if that's not true. */
16319 int bug_possible = PATH_MAX < getpagesize ();
16321 int bug_possible = 0;
16323 if (! bug_possible)
16326 cwd = getcwd (NULL, 0);
16330 initial_cwd_len = strlen (cwd);
16335 static char const dir_name[] = "confdir-14B---";
16336 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
16337 / sizeof dir_name);
16339 for (d = 0; d < desired_depth; d++)
16341 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
16343 if (! (errno == ERANGE || errno == ENAMETOOLONG
16344 || errno == ENOENT))
16345 fail = 3; /* Unable to construct deep hierarchy. */
16350 /* If libc has the bug in question, this invocation of getcwd
16351 results in a failed assertion. */
16352 cwd = getcwd (NULL, 0);
16354 fail = 4; /* getcwd didn't assert, but it failed for a long name
16355 where the answer could have been learned. */
16358 /* Call rmdir first, in case the above chdir failed. */
16362 if (chdir ("..") < 0)
16375 if ac_fn_c_try_run
"$LINENO"; then :
16376 gl_cv_func_getcwd_abort_bug
=no
16379 if test $ret -ge 128 ||
test $ret = 4; then
16380 gl_cv_func_getcwd_abort_bug
=yes
16382 gl_cv_func_getcwd_abort_bug
=no
16385 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16386 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
16392 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
16393 if test $gl_cv_func_getcwd_abort_bug = yes; then :
16401 case "$gl_cv_func_getcwd_path_max" in
16402 "no"|
"no, it has the AIX bug") ;;
16405 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
16409 case "$gl_cv_func_getcwd_path_max" in
16410 "no, but it is partly working")
16412 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
16415 "yes, but with shorter paths")
16417 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
16422 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
16423 ||
test $gl_cv_func_getcwd_posix_signature != yes \
16424 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
16425 ||
test $gl_abort_bug = yes; then
16429 if test $REPLACE_GETCWD = 1; then
16438 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
16448 cat >>confdefs.h
<<_ACEOF
16449 #define GNULIB_GETCWD 1
16464 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
16473 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
16480 if test $REPLACE_GETCWD = 1; then
16489 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
16503 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
16512 if test $ac_cv_func_getdtablesize = yes &&
16513 test $ac_cv_have_decl_getdtablesize = yes; then
16514 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
16515 # up to an unchangeable hard limit; all other platforms correctly
16516 # require setrlimit before getdtablesize() can report a larger value.
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
16518 $as_echo_n "checking whether getdtablesize works... " >&6; }
16519 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
16520 $as_echo_n "(cached) " >&6
16522 if test "$cross_compiling" = yes; then :
16524 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
16525 gl_cv_func_getdtablesize_works
="guessing no" ;;
16526 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
16529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16532 #include <unistd.h>
16536 int size = getdtablesize();
16537 if (dup2 (0, getdtablesize()) != -1)
16539 if (size != getdtablesize())
16546 if ac_fn_c_try_run
"$LINENO"; then :
16547 gl_cv_func_getdtablesize_works
=yes
16549 gl_cv_func_getdtablesize_works
=no
16551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
16558 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
16559 case "$gl_cv_func_getdtablesize_works" in
16561 *) REPLACE_GETDTABLESIZE
=1 ;;
16564 HAVE_GETDTABLESIZE
=0
16567 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
16576 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
16585 GNULIB_GETDTABLESIZE
=1
16591 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
16601 if test $ac_cv_have_decl_getlogin_r = no
; then
16602 HAVE_DECL_GETLOGIN_R
=0
16606 if test $ac_cv_func_getlogin_r = no
; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
16612 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
16613 if test "${gl_cv_func_getlogin_r_works+set}" = set; then :
16614 $as_echo_n "(cached) " >&6
16618 # Guess no on OSF/1.
16619 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
16620 # Guess yes otherwise.
16621 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
16623 if test "$cross_compiling" = yes; then :
16626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16629 #include <stddef.h>
16630 #include <unistd.h>
16631 #if !HAVE_DECL_GETLOGIN_R
16633 # ifdef __cplusplus
16636 int getlogin_r (char *, size_t);
16644 if (getlogin_r (buf, 0) == 0)
16646 if (getlogin_r (buf, 1) == 0)
16651 if ac_fn_c_try_run
"$LINENO"; then :
16652 gl_cv_func_getlogin_r_works
=yes
16655 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
16659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
16666 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
16667 case "$gl_cv_func_getlogin_r_works" in
16669 *) REPLACE_GETLOGIN_R
=1 ;;
16673 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
16682 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
16693 GNULIB_GETLOGIN_R
=1
16699 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
16707 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16709 if test "x$ac_cv_have_decl_program_invocation_name" = x
""yes; then :
16715 cat >>confdefs.h
<<_ACEOF
16716 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16718 if test $ac_have_decl = 1; then :
16722 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16724 if test "x$ac_cv_have_decl_program_invocation_short_name" = x
""yes; then :
16730 cat >>confdefs.h
<<_ACEOF
16731 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16733 if test $ac_have_decl = 1; then :
16737 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
16739 if test "x$ac_cv_have_decl___argv" = x
""yes; then :
16745 cat >>confdefs.h
<<_ACEOF
16746 #define HAVE_DECL___ARGV $ac_have_decl
16748 if test $ac_have_decl = 1; then :
16753 # Incur the cost of this test only if none of the above worked.
16754 if test $ac_found = 0; then
16755 # On OpenBSD 5.1, using the global __progname variable appears to be
16756 # the only way to implement getprogname.
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
16758 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
16759 if test "${gl_cv_var___progname+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16763 gl_cv_var___progname
=
16764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766 extern char *__progname;
16770 return *__progname;
16776 if ac_fn_c_try_link
"$LINENO"; then :
16777 gl_cv_var___progname
=yes
16780 rm -f core conftest.err conftest.
$ac_objext \
16781 conftest
$ac_exeext conftest.
$ac_ext
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
16786 $as_echo "$gl_cv_var___progname" >&6; }
16787 if test "$gl_cv_var___progname" = yes; then
16789 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
16802 gl_gettimeofday_timezone
=void
16803 if test $ac_cv_func_gettimeofday != yes; then
16804 HAVE_GETTIMEOFDAY
=0
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
16810 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
16811 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
16814 if test "$cross_compiling" = yes; then :
16815 # When cross-compiling:
16817 # Guess all is fine on glibc systems.
16818 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
16819 # If we don't know, assume the worst.
16820 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
16824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 #include <string.h>
16827 #include <sys/time.h>
16829 #include <stdlib.h>
16837 struct tm saved_lt;
16839 lt = localtime (&t);
16841 gettimeofday (&tv, NULL);
16842 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
16848 if ac_fn_c_try_run
"$LINENO"; then :
16849 gl_cv_func_gettimeofday_clobber
=no
16851 gl_cv_func_gettimeofday_clobber
=yes
16853 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16854 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
16859 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
16861 case "$gl_cv_func_gettimeofday_clobber" in
16863 REPLACE_GETTIMEOFDAY
=1
16866 REPLACE_LOCALTIME
=1
16869 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
16875 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
16876 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
16877 $as_echo_n "(cached) " >&6
16879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16881 #include <sys/time.h>
16883 int gettimeofday (struct timeval *restrict, void *restrict);
16888 /* glibc uses struct timezone * rather than the POSIX void *
16889 if _GNU_SOURCE is defined. However, since the only portable
16890 use of gettimeofday uses NULL as the second parameter, and
16891 since the glibc definition is actually more typesafe, it is
16892 not worth wrapping this to get a compliant signature. */
16893 int (*f) (struct timeval *restrict, void *restrict)
16896 return !(x | c.tv_sec | c.tv_usec);
16902 if ac_fn_c_try_compile
"$LINENO"; then :
16903 gl_cv_func_gettimeofday_posix_signature
=yes
16905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907 #include <sys/time.h>
16908 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
16918 if ac_fn_c_try_compile
"$LINENO"; then :
16919 gl_cv_func_gettimeofday_posix_signature
=almost
16921 gl_cv_func_gettimeofday_posix_signature
=no
16923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
16928 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
16929 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
16930 gl_gettimeofday_timezone
='struct timezone'
16931 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
16932 REPLACE_GETTIMEOFDAY
=1
16934 if test $REPLACE_STRUCT_TIMEVAL = 1; then
16935 REPLACE_GETTIMEOFDAY
=1
16940 cat >>confdefs.h
<<_ACEOF
16941 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
16945 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
16954 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
16957 for ac_header
in sys
/timeb.h
16959 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
16960 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
16961 cat >>confdefs.h
<<_ACEOF
16962 #define HAVE_SYS_TIMEB_H 1
16969 for ac_func
in _ftime
16971 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
16972 if test "x$ac_cv_func__ftime" = x
""yes; then :
16973 cat >>confdefs.h
<<_ACEOF
16974 #define HAVE__FTIME 1
16987 GNULIB_GETTIMEOFDAY
=1
16993 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
16998 for ac_header
in glob.h
17000 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
17001 if test "x$ac_cv_header_glob_h" = x
""yes; then :
17002 cat >>confdefs.h
<<_ACEOF
17003 #define HAVE_GLOB_H 1
17013 if test -z "$GLOB_H"; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
17015 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
17016 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then :
17017 $as_echo_n "(cached) " >&6
17019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 #include <gnu-versions.h>
17022 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
17024 if ac_fn_c_try_compile
"$LINENO"; then :
17025 gl_cv_gnu_glob_interface_version_1
=yes
17027 gl_cv_gnu_glob_interface_version_1
=no
17029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
17032 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
17034 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
17039 if test -z "$GLOB_H"; then
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
17041 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
17042 if test "${gl_cv_glob_lists_symlinks+set}" = set; then :
17043 $as_echo_n "(cached) " >&6
17045 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
17046 gl_cv_glob_lists_symlinks
=maybe
17048 # If we can't make a symlink, then we cannot test this issue. Be
17049 # pessimistic about this.
17050 gl_cv_glob_lists_symlinks
=no
17053 if test $gl_cv_glob_lists_symlinks = maybe
; then
17054 if test "$cross_compiling" = yes; then :
17055 gl_cv_glob_lists_symlinks
=no
17057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17060 #include <stddef.h>
17066 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
17071 if ac_fn_c_try_run
"$LINENO"; then :
17072 gl_cv_glob_lists_symlinks
=yes
17074 gl_cv_glob_lists_symlinks
=no
17076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
17083 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
17085 if test $gl_cv_glob_lists_symlinks = no
; then
17090 rm -f conf$$
-globtest
17093 if test -n "$GLOB_H"; then
17094 GL_GENERATE_GLOB_H_TRUE
=
17095 GL_GENERATE_GLOB_H_FALSE
='#'
17097 GL_GENERATE_GLOB_H_TRUE
='#'
17098 GL_GENERATE_GLOB_H_FALSE
=
17102 if test -n "$GLOB_H"; then
17111 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
17114 if test $ac_cv_header_sys_cdefs_h = yes; then
17131 if test -n "$STDINT_H"; then
17132 PRIPTR_PREFIX
='"l"'
17134 for glpfx
in '' l ll I64
; do
17136 '') gltype1
='int';;
17137 l
) gltype1
='long int';;
17138 ll
) gltype1
='long long int';;
17139 I64
) gltype1
='__int64';;
17141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 #include <stdint.h>
17144 extern intptr_t foo;
17145 extern $gltype1 foo;
17154 if ac_fn_c_try_compile
"$LINENO"; then :
17155 PRIPTR_PREFIX
='"'$glpfx'"'
17157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17158 test -n "$PRIPTR_PREFIX" && break
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
17165 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
17166 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17171 /* Work also in C++ mode. */
17172 #define __STDC_LIMIT_MACROS 1
17174 /* Work if build is not clean. */
17175 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17177 #include <limits.h>
17179 #include <stdint.h>
17182 #if defined INT32_MAX && defined INTMAX_MAX
17183 #define CONDITION (INT32_MAX < INTMAX_MAX)
17184 #elif HAVE_LONG_LONG_INT
17185 #define CONDITION (sizeof (int) < sizeof (long long int))
17187 #define CONDITION 0
17189 int test[CONDITION ? 1 : -1];
17198 if ac_fn_c_try_compile
"$LINENO"; then :
17199 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
17201 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
17203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
17206 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
17207 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
17208 INT32_MAX_LT_INTMAX_MAX
=1;
17210 INT32_MAX_LT_INTMAX_MAX
=0;
17214 if test $APPLE_UNIVERSAL_BUILD = 0; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
17217 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
17218 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
17219 $as_echo_n "(cached) " >&6
17221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17223 /* Work also in C++ mode. */
17224 #define __STDC_LIMIT_MACROS 1
17226 /* Work if build is not clean. */
17227 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17229 #include <limits.h>
17231 #include <stdint.h>
17234 #if defined INT64_MAX
17235 #define CONDITION (INT64_MAX == LONG_MAX)
17236 #elif HAVE_LONG_LONG_INT
17237 #define CONDITION (sizeof (long long int) == sizeof (long int))
17239 #define CONDITION 0
17241 int test[CONDITION ? 1 : -1];
17250 if ac_fn_c_try_compile
"$LINENO"; then :
17251 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
17253 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
17255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
17258 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
17259 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
17260 INT64_MAX_EQ_LONG_MAX
=1;
17262 INT64_MAX_EQ_LONG_MAX
=0;
17267 INT64_MAX_EQ_LONG_MAX
=-1
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
17271 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
17272 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
17273 $as_echo_n "(cached) " >&6
17275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 /* Work also in C++ mode. */
17278 #define __STDC_LIMIT_MACROS 1
17280 /* Work if build is not clean. */
17281 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17283 #include <limits.h>
17285 #include <stdint.h>
17288 #if defined UINT32_MAX && defined UINTMAX_MAX
17289 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
17290 #elif HAVE_LONG_LONG_INT
17291 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
17293 #define CONDITION 0
17295 int test[CONDITION ? 1 : -1];
17304 if ac_fn_c_try_compile
"$LINENO"; then :
17305 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
17307 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
17309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
17312 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
17313 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
17314 UINT32_MAX_LT_UINTMAX_MAX
=1;
17316 UINT32_MAX_LT_UINTMAX_MAX
=0;
17320 if test $APPLE_UNIVERSAL_BUILD = 0; then
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
17323 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
17324 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
17325 $as_echo_n "(cached) " >&6
17327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 /* Work also in C++ mode. */
17330 #define __STDC_LIMIT_MACROS 1
17332 /* Work if build is not clean. */
17333 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17335 #include <limits.h>
17337 #include <stdint.h>
17340 #if defined UINT64_MAX
17341 #define CONDITION (UINT64_MAX == ULONG_MAX)
17342 #elif HAVE_LONG_LONG_INT
17343 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
17345 #define CONDITION 0
17347 int test[CONDITION ? 1 : -1];
17356 if ac_fn_c_try_compile
"$LINENO"; then :
17357 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
17359 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
17361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
17364 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
17365 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
17366 UINT64_MAX_EQ_ULONG_MAX
=1;
17368 UINT64_MAX_EQ_ULONG_MAX
=0;
17373 UINT64_MAX_EQ_ULONG_MAX
=-1
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
17381 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
17382 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17391 # define isnand(x) __builtin_isnan ((double)(x))
17394 # define isnand(x) isnan ((double)(x))
17405 if ac_fn_c_try_link
"$LINENO"; then :
17406 gl_cv_func_isnand_no_libm
=yes
17408 gl_cv_func_isnand_no_libm
=no
17410 rm -f core conftest.err conftest.
$ac_objext \
17411 conftest
$ac_exeext conftest.
$ac_ext
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
17415 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
17417 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
17418 if test $gl_cv_func_isnand_no_libm = yes; then
17420 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
17424 if test $gl_func_isnand_no_libm != yes; then
17433 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
17442 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
17443 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
17444 $as_echo_n "(cached) " >&6
17447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17452 # define isnanl(x) __builtin_isnanl ((long double)(x))
17453 #elif defined isnan
17455 # define isnanl(x) isnan ((long double)(x))
17466 if ac_fn_c_try_link
"$LINENO"; then :
17467 gl_cv_func_isnanl_no_libm
=yes
17469 gl_cv_func_isnanl_no_libm
=no
17471 rm -f core conftest.err conftest.
$ac_objext \
17472 conftest
$ac_exeext conftest.
$ac_ext
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
17476 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
17478 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
17479 if test $gl_func_isnanl_no_libm = yes; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
17485 $as_echo_n "checking whether isnanl works... " >&6; }
17486 if test "${gl_cv_func_isnanl_works+set}" = set; then :
17487 $as_echo_n "(cached) " >&6
17490 if test "$cross_compiling" = yes; then :
17491 gl_cv_func_isnanl_works
="guessing yes"
17493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17497 #include <limits.h>
17501 # define isnanl(x) __builtin_isnanl ((long double)(x))
17502 #elif defined isnan
17504 # define isnanl(x) isnan ((long double)(x))
17507 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17508 typedef union { unsigned int word[NWORDS]; long double value; }
17509 memory_long_double;
17510 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
17511 runtime type conversion. */
17513 static long double NaNl ()
17516 return zero / zero;
17519 # define NaNl() (0.0L / 0.0L)
17525 if (!isnanl (NaNl ()))
17529 memory_long_double m;
17532 /* The isnanl function should be immune against changes in the sign bit and
17533 in the mantissa bits. The xor operation twiddles a bit that can only be
17534 a sign bit or a mantissa bit (since the exponent never extends to
17537 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
17538 for (i = 0; i < NWORDS; i++)
17540 if (!isnanl (m.value))
17544 #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
17545 /* Representation of an 80-bit 'long double' as an initializer for a sequence
17546 of 'unsigned int' words. */
17547 # ifdef WORDS_BIGENDIAN
17548 # define LDBL80_WORDS(exponent,manthi,mantlo) \
17549 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
17550 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
17551 (unsigned int) (mantlo) << 16 \
17554 # define LDBL80_WORDS(exponent,manthi,mantlo) \
17555 { mantlo, manthi, exponent }
17558 static memory_long_double x =
17559 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
17560 if (!isnanl (x.value))
17564 /* Signalling NaN. */
17565 static memory_long_double x =
17566 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
17567 if (!isnanl (x.value))
17570 /* isnanl should return something even for noncanonical values. */
17571 { /* Pseudo-NaN. */
17572 static memory_long_double x =
17573 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
17574 if (isnanl (x.value) && !isnanl (x.value))
17577 { /* Pseudo-Infinity. */
17578 static memory_long_double x =
17579 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
17580 if (isnanl (x.value) && !isnanl (x.value))
17583 { /* Pseudo-Zero. */
17584 static memory_long_double x =
17585 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
17586 if (isnanl (x.value) && !isnanl (x.value))
17589 { /* Unnormalized number. */
17590 static memory_long_double x =
17591 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
17592 if (isnanl (x.value) && !isnanl (x.value))
17595 { /* Pseudo-Denormal. */
17596 static memory_long_double x =
17597 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
17598 if (isnanl (x.value) && !isnanl (x.value))
17606 if ac_fn_c_try_run
"$LINENO"; then :
17607 gl_cv_func_isnanl_works
=yes
17609 gl_cv_func_isnanl_works
=no
17611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
17618 $as_echo "$gl_cv_func_isnanl_works" >&6; }
17620 case "$gl_cv_func_isnanl_works" in
17622 *) gl_func_isnanl_no_libm
=no
;;
17625 if test $gl_func_isnanl_no_libm = yes; then
17627 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
17631 if test $gl_func_isnanl_no_libm != yes; then
17640 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
17646 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
17647 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17651 if test "$cross_compiling" = yes; then :
17653 gl_cv_cc_long_double_expbit0
="unknown"
17656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17660 #include <stddef.h>
17662 #include <string.h>
17664 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17665 typedef union { long double value; unsigned int word[NWORDS]; }
17666 memory_long_double;
17667 static unsigned int ored_words[NWORDS];
17668 static unsigned int anded_words[NWORDS];
17669 static void add_to_ored_words (long double x)
17671 memory_long_double m;
17673 /* Clear it first, in case
17674 sizeof (long double) < sizeof (memory_long_double). */
17675 memset (&m, 0, sizeof (memory_long_double));
17677 for (i = 0; i < NWORDS; i++)
17679 ored_words[i] |= m.word[i];
17680 anded_words[i] &= m.word[i];
17686 FILE *fp = fopen ("conftest.out", "w");
17689 for (j = 0; j < NWORDS; j++)
17690 anded_words[j] = ~ (unsigned int) 0;
17691 add_to_ored_words (0.25L);
17692 add_to_ored_words (0.5L);
17693 add_to_ored_words (1.0L);
17694 add_to_ored_words (2.0L);
17695 add_to_ored_words (4.0L);
17696 /* Remove bits that are common (e.g. if representation of the first mantissa
17697 bit is explicit). */
17698 for (j = 0; j < NWORDS; j++)
17699 ored_words[j] &= ~anded_words[j];
17700 /* Now find the nonzero word. */
17701 for (j = 0; j < NWORDS; j++)
17702 if (ored_words[j] != 0)
17707 for (i = j + 1; i < NWORDS; i++)
17708 if (ored_words[i] != 0)
17710 fprintf (fp, "unknown");
17711 return (fclose (fp) != 0);
17714 if ((ored_words[j] >> i) & 1)
17716 fprintf (fp, "word %d bit %d", (int) j, (int) i);
17717 return (fclose (fp) != 0);
17720 fprintf (fp, "unknown");
17721 return (fclose (fp) != 0);
17725 if ac_fn_c_try_run
"$LINENO"; then :
17726 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
17728 gl_cv_cc_long_double_expbit0
="unknown"
17730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
17738 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
17739 case "$gl_cv_cc_long_double_expbit0" in
17741 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
17742 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
17744 cat >>confdefs.h
<<_ACEOF
17745 #define LDBL_EXPBIT0_WORD $word
17749 cat >>confdefs.h
<<_ACEOF
17750 #define LDBL_EXPBIT0_BIT $bit
17769 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
17774 if test $ac_cv_func_lstat = yes; then
17776 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17785 if test $REPLACE_LSTAT = 1; then
17794 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
17809 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
17816 if test $gl_cv_func_malloc_posix = yes; then
17818 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
17824 if test $REPLACE_MALLOC = 1; then
17833 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
17841 GNULIB_MALLOC_POSIX
=1
17847 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
17866 if test $gl_cv_have_include_next = yes; then
17867 gl_cv_next_math_h
='<'math.h
'>'
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
17870 $as_echo_n "checking absolute name of <math.h>... " >&6; }
17871 if test "${gl_cv_next_math_h+set}" = set; then :
17872 $as_echo_n "(cached) " >&6
17875 if test $ac_cv_header_math_h = yes; then
17880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17885 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17886 *) gl_absname_cpp
="$ac_cpp" ;;
17891 gl_dirsep_regex
='[/\\]'
17894 gl_dirsep_regex
='\/'
17897 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17898 gl_header_literal_regex
=`echo 'math.h' \
17899 | sed -e "$gl_make_literal_regex_sed"`
17900 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17907 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17908 sed -n "$gl_absolute_header_sed"`
17910 gl_header
=$gl_cv_absolute_math_h
17911 gl_cv_next_math_h
='"'$gl_header'"'
17913 gl_cv_next_math_h
='<'math.h
'>'
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
17919 $as_echo "$gl_cv_next_math_h" >&6; }
17921 NEXT_MATH_H
=$gl_cv_next_math_h
17923 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17925 gl_next_as_first_directive
='<'math.h
'>'
17927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17928 gl_next_as_first_directive
=$gl_cv_next_math_h
17930 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
17937 $as_echo_n "checking whether NAN macro works... " >&6; }
17938 if test "${gl_cv_header_math_nan_works+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17947 /* Solaris 10 has a broken definition of NAN. Other platforms
17948 fail to provide NAN, or provide it only in C99 mode; this
17949 test only needs to fail when NAN is provided but wrong. */
17959 if ac_fn_c_try_compile
"$LINENO"; then :
17960 gl_cv_header_math_nan_works
=yes
17962 gl_cv_header_math_nan_works
=no
17964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
17967 $as_echo "$gl_cv_header_math_nan_works" >&6; }
17968 if test $gl_cv_header_math_nan_works = no
; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
17972 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
17973 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
17974 $as_echo_n "(cached) " >&6
17976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17982 /* Solaris 10 has a broken definition of HUGE_VAL. */
17983 double d = HUGE_VAL;
17989 if ac_fn_c_try_compile
"$LINENO"; then :
17990 gl_cv_header_math_huge_val_works
=yes
17992 gl_cv_header_math_huge_val_works
=no
17994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
17997 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
17998 if test $gl_cv_header_math_huge_val_works = no
; then
18003 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
18004 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18006 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18007 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18008 $as_echo_n "(cached) " >&6
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18022 if ac_fn_c_try_compile
"$LINENO"; then :
18023 eval "$as_gl_Symbol=yes"
18025 eval "$as_gl_Symbol=no"
18027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18029 eval ac_res
=\$
$as_gl_Symbol
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18031 $as_echo "$ac_res" >&6; }
18032 eval as_val
=\$
$as_gl_Symbol
18033 if test "x$as_val" = x
""yes; then :
18034 cat >>confdefs.h
<<_ACEOF
18035 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18038 eval ac_cv_have_decl_
$gl_func=yes
18053 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18058 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18059 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18060 $as_echo_n "(cached) " >&6
18064 # Guess no on AIX and OSF/1.
18065 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18066 # Guess yes otherwise.
18067 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18069 if test $LOCALE_JA != none
; then
18070 if test "$cross_compiling" = yes; then :
18073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18076 #include <locale.h>
18077 #include <string.h>
18078 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18080 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18081 included before <wchar.h>. */
18082 #include <stddef.h>
18088 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18090 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18094 memset (&state, '\0', sizeof (mbstate_t));
18095 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18096 if (mbsinit (&state))
18102 if ac_fn_c_try_run
"$LINENO"; then :
18103 gl_cv_func_mbrtowc_incomplete_state
=yes
18105 gl_cv_func_mbrtowc_incomplete_state
=no
18107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18115 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18121 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18122 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18123 $as_echo_n "(cached) " >&6
18127 # Guess no on Solaris 8.
18128 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18129 # Guess yes otherwise.
18130 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18132 if test $LOCALE_ZH_CN != none
; then
18133 if test "$cross_compiling" = yes; then :
18136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18139 #include <locale.h>
18140 #include <stdlib.h>
18141 #include <string.h>
18142 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18144 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18145 included before <wchar.h>. */
18146 #include <stddef.h>
18152 /* This fails on Solaris 8:
18153 mbrtowc returns 2, and sets wc to 0x00F0.
18154 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18155 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18157 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18161 memset (&state, '\0', sizeof (mbstate_t));
18162 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18163 && mbtowc (&wc, input + 3, 6) == 4)
18169 if ac_fn_c_try_run
"$LINENO"; then :
18170 gl_cv_func_mbrtowc_sanitycheck
=yes
18172 gl_cv_func_mbrtowc_sanitycheck
=no
18174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18182 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18184 REPLACE_MBSTATE_T
=0
18185 case "$gl_cv_func_mbrtowc_incomplete_state" in
18187 *) REPLACE_MBSTATE_T
=1 ;;
18189 case "$gl_cv_func_mbrtowc_sanitycheck" in
18191 *) REPLACE_MBSTATE_T
=1 ;;
18194 REPLACE_MBSTATE_T
=1
18199 if test $ac_cv_func_mbrtowc = no
; then
18201 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18202 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18204 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18205 included before <wchar.h>. */
18206 #include <stddef.h>
18212 if test "x$ac_cv_have_decl_mbrtowc" = x
""yes; then :
18218 cat >>confdefs.h
<<_ACEOF
18219 #define HAVE_DECL_MBRTOWC $ac_have_decl
18222 if test $ac_cv_have_decl_mbrtowc = yes; then
18226 if test $REPLACE_MBSTATE_T = 1; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
18233 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
18234 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18239 # Guess no on Solaris.
18240 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
18241 # Guess yes otherwise.
18242 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
18244 if test $LOCALE_FR_UTF8 != none
; then
18245 if test "$cross_compiling" = yes; then :
18248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 #include <locale.h>
18252 #include <stdlib.h>
18253 #include <string.h>
18254 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18256 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18257 included before <wchar.h>. */
18258 #include <stddef.h>
18266 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18268 char input[] = "\303\237er";
18273 memset (&state, '\0', sizeof (mbstate_t));
18274 wc = (wchar_t) 0xBADFACE;
18275 ret = mbrtowc (&wc, input, 5, &state);
18278 if (!mbsinit (&state))
18281 memset (&state, '\0', sizeof (mbstate_t));
18282 ret = mbrtowc (NULL, input, 5, &state);
18283 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
18285 if (!mbsinit (&state))
18291 if ac_fn_c_try_run
"$LINENO"; then :
18292 gl_cv_func_mbrtowc_null_arg1
=yes
18294 gl_cv_func_mbrtowc_null_arg1
=no
18296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
18304 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
18310 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
18311 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
18312 $as_echo_n "(cached) " >&6
18316 # Guess no on OSF/1.
18317 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
18318 # Guess yes otherwise.
18319 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
18321 if test $LOCALE_FR_UTF8 != none
; then
18322 if test "$cross_compiling" = yes; then :
18325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 #include <locale.h>
18329 #include <string.h>
18330 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18332 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18333 included before <wchar.h>. */
18334 #include <stddef.h>
18340 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18346 memset (&state, '\0', sizeof (mbstate_t));
18347 wc = (wchar_t) 0xBADFACE;
18348 mbrtowc (&wc, NULL, 5, &state);
18349 /* Check that wc was not modified. */
18350 if (wc != (wchar_t) 0xBADFACE)
18356 if ac_fn_c_try_run
"$LINENO"; then :
18357 gl_cv_func_mbrtowc_null_arg2
=yes
18359 gl_cv_func_mbrtowc_null_arg2
=no
18361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
18369 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
18377 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
18378 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
18379 $as_echo_n "(cached) " >&6
18383 # Guess no on HP-UX, Solaris, native Windows.
18384 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
18385 # Guess yes otherwise.
18386 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
18388 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
18389 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
18390 if test "$cross_compiling" = yes; then :
18393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18396 #include <locale.h>
18397 #include <string.h>
18398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18401 included before <wchar.h>. */
18402 #include <stddef.h>
18409 int found_some_locale = 0;
18410 /* This fails on Solaris. */
18411 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18413 char input[] = "B\303\274\303\237er"; /* "Büßer" */
18417 memset (&state, '\0', sizeof (mbstate_t));
18418 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18421 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
18424 found_some_locale = 1;
18426 /* This fails on HP-UX 11.11. */
18427 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18429 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18433 memset (&state, '\0', sizeof (mbstate_t));
18434 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18437 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
18440 found_some_locale = 1;
18442 /* This fails on native Windows. */
18443 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
18445 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
18449 memset (&state, '\0', sizeof (mbstate_t));
18450 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18453 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18456 found_some_locale = 1;
18458 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
18460 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
18464 memset (&state, '\0', sizeof (mbstate_t));
18465 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18468 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18471 found_some_locale = 1;
18473 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
18475 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
18479 memset (&state, '\0', sizeof (mbstate_t));
18480 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18483 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18486 found_some_locale = 1;
18488 return (found_some_locale ? result : 77);
18491 if ac_fn_c_try_run
"$LINENO"; then :
18492 gl_cv_func_mbrtowc_retval
=yes
18494 if test $?
!= 77; then
18495 gl_cv_func_mbrtowc_retval
=no
18499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
18507 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
18513 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
18514 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
18515 $as_echo_n "(cached) " >&6
18519 # Guess no on Solaris 8 and 9.
18520 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
18521 # Guess yes otherwise.
18522 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
18524 if test $LOCALE_ZH_CN != none
; then
18525 if test "$cross_compiling" = yes; then :
18528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18531 #include <locale.h>
18532 #include <string.h>
18533 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18535 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18536 included before <wchar.h>. */
18537 #include <stddef.h>
18543 /* This fails on Solaris 8 and 9. */
18544 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18549 memset (&state, '\0', sizeof (mbstate_t));
18550 if (mbrtowc (&wc, "", 1, &state) != 0)
18556 if ac_fn_c_try_run
"$LINENO"; then :
18557 gl_cv_func_mbrtowc_nul_retval
=yes
18559 gl_cv_func_mbrtowc_nul_retval
=no
18561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
18569 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
18574 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
18575 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18580 # Guess no on AIX and glibc systems.
18582 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
18583 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
18585 if test "$cross_compiling" = yes; then :
18588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18593 static mbstate_t mbs;
18597 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
18600 if ac_fn_c_try_run
"$LINENO"; then :
18601 gl_cv_func_mbrtowc_empty_input
=yes
18603 gl_cv_func_mbrtowc_empty_input
=no
18605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
18612 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
18616 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
18617 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
18618 $as_echo_n "(cached) " >&6
18621 gl_cv_C_locale_sans_EILSEQ
="guessing no"
18623 if test "$cross_compiling" = yes; then :
18626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628 #include <limits.h>
18629 #include <locale.h>
18637 char *locale = setlocale (LC_ALL, "C");
18640 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
18644 mbstate_t mbs = { 0, };
18645 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
18655 if ac_fn_c_try_run
"$LINENO"; then :
18656 gl_cv_C_locale_sans_EILSEQ
=yes
18658 gl_cv_C_locale_sans_EILSEQ
=no
18660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
18666 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
18668 case "$gl_cv_func_mbrtowc_null_arg1" in
18671 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
18676 case "$gl_cv_func_mbrtowc_null_arg2" in
18679 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
18684 case "$gl_cv_func_mbrtowc_retval" in
18687 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
18692 case "$gl_cv_func_mbrtowc_nul_retval" in
18695 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
18700 case "$gl_cv_func_mbrtowc_empty_input" in
18703 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
18708 case $gl_cv_C_locale_sans_EILSEQ in
18711 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
18719 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
18728 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
18745 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
18760 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18765 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18766 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18767 $as_echo_n "(cached) " >&6
18771 # Guess no on AIX and OSF/1.
18772 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18773 # Guess yes otherwise.
18774 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18776 if test $LOCALE_JA != none
; then
18777 if test "$cross_compiling" = yes; then :
18780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18783 #include <locale.h>
18784 #include <string.h>
18785 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18787 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18788 included before <wchar.h>. */
18789 #include <stddef.h>
18795 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18797 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18801 memset (&state, '\0', sizeof (mbstate_t));
18802 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18803 if (mbsinit (&state))
18809 if ac_fn_c_try_run
"$LINENO"; then :
18810 gl_cv_func_mbrtowc_incomplete_state
=yes
18812 gl_cv_func_mbrtowc_incomplete_state
=no
18814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18822 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18828 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18829 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18830 $as_echo_n "(cached) " >&6
18834 # Guess no on Solaris 8.
18835 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18836 # Guess yes otherwise.
18837 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18839 if test $LOCALE_ZH_CN != none
; then
18840 if test "$cross_compiling" = yes; then :
18843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18846 #include <locale.h>
18847 #include <stdlib.h>
18848 #include <string.h>
18849 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18851 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18852 included before <wchar.h>. */
18853 #include <stddef.h>
18859 /* This fails on Solaris 8:
18860 mbrtowc returns 2, and sets wc to 0x00F0.
18861 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18862 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18864 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18868 memset (&state, '\0', sizeof (mbstate_t));
18869 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18870 && mbtowc (&wc, input + 3, 6) == 4)
18876 if ac_fn_c_try_run
"$LINENO"; then :
18877 gl_cv_func_mbrtowc_sanitycheck
=yes
18879 gl_cv_func_mbrtowc_sanitycheck
=no
18881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18889 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18891 REPLACE_MBSTATE_T
=0
18892 case "$gl_cv_func_mbrtowc_incomplete_state" in
18894 *) REPLACE_MBSTATE_T
=1 ;;
18896 case "$gl_cv_func_mbrtowc_sanitycheck" in
18898 *) REPLACE_MBSTATE_T
=1 ;;
18901 REPLACE_MBSTATE_T
=1
18906 if test $ac_cv_func_mbsinit = no
; then
18908 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
18909 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18911 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18912 included before <wchar.h>. */
18913 #include <stddef.h>
18919 if test "x$ac_cv_have_decl_mbsinit" = x
""yes; then :
18925 cat >>confdefs.h
<<_ACEOF
18926 #define HAVE_DECL_MBSINIT $ac_have_decl
18929 if test $ac_cv_have_decl_mbsinit = yes; then
18933 if test $REPLACE_MBSTATE_T = 1; then
18937 mingw
*) REPLACE_MBSINIT
=1 ;;
18942 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
18951 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
18968 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
18982 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18987 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18988 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18993 # Guess no on AIX and OSF/1.
18994 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18995 # Guess yes otherwise.
18996 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18998 if test $LOCALE_JA != none
; then
18999 if test "$cross_compiling" = yes; then :
19002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19005 #include <locale.h>
19006 #include <string.h>
19007 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19009 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19010 included before <wchar.h>. */
19011 #include <stddef.h>
19017 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19019 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19023 memset (&state, '\0', sizeof (mbstate_t));
19024 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19025 if (mbsinit (&state))
19031 if ac_fn_c_try_run
"$LINENO"; then :
19032 gl_cv_func_mbrtowc_incomplete_state
=yes
19034 gl_cv_func_mbrtowc_incomplete_state
=no
19036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19044 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19050 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19051 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
19052 $as_echo_n "(cached) " >&6
19056 # Guess no on Solaris 8.
19057 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19058 # Guess yes otherwise.
19059 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19061 if test $LOCALE_ZH_CN != none
; then
19062 if test "$cross_compiling" = yes; then :
19065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 #include <locale.h>
19069 #include <stdlib.h>
19070 #include <string.h>
19071 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19074 included before <wchar.h>. */
19075 #include <stddef.h>
19081 /* This fails on Solaris 8:
19082 mbrtowc returns 2, and sets wc to 0x00F0.
19083 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19084 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19086 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19090 memset (&state, '\0', sizeof (mbstate_t));
19091 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19092 && mbtowc (&wc, input + 3, 6) == 4)
19098 if ac_fn_c_try_run
"$LINENO"; then :
19099 gl_cv_func_mbrtowc_sanitycheck
=yes
19101 gl_cv_func_mbrtowc_sanitycheck
=no
19103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19111 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19113 REPLACE_MBSTATE_T
=0
19114 case "$gl_cv_func_mbrtowc_incomplete_state" in
19116 *) REPLACE_MBSTATE_T
=1 ;;
19118 case "$gl_cv_func_mbrtowc_sanitycheck" in
19120 *) REPLACE_MBSTATE_T
=1 ;;
19123 REPLACE_MBSTATE_T
=1
19128 if test $ac_cv_func_mbsrtowcs = no
; then
19130 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19133 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19134 included before <wchar.h>. */
19135 #include <stddef.h>
19141 if test "x$ac_cv_have_decl_mbsrtowcs" = x
""yes; then :
19147 cat >>confdefs.h
<<_ACEOF
19148 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19151 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19152 REPLACE_MBSRTOWCS
=1
19155 if test $REPLACE_MBSTATE_T = 1; then
19156 REPLACE_MBSRTOWCS
=1
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19165 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19166 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
19171 # Guess no on HP-UX, Solaris, mingw.
19172 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
19173 # Guess yes otherwise.
19174 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
19176 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
19177 if test "$cross_compiling" = yes; then :
19180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19183 #include <locale.h>
19184 #include <string.h>
19185 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19187 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19188 included before <wchar.h>. */
19189 #include <stddef.h>
19196 /* Test whether the function supports a NULL destination argument.
19197 This fails on native Windows. */
19198 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19200 const char input[] = "\337er";
19201 const char *src = input;
19204 memset (&state, '\0', sizeof (mbstate_t));
19205 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19209 /* Test whether the function works when started with a conversion state
19210 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19211 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19213 const char input[] = "B\303\274\303\237er";
19216 memset (&state, '\0', sizeof (mbstate_t));
19217 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19218 if (!mbsinit (&state))
19220 const char *src = input + 2;
19221 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19225 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19227 const char input[] = "<\306\374\313\334\270\354>";
19230 memset (&state, '\0', sizeof (mbstate_t));
19231 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19232 if (!mbsinit (&state))
19234 const char *src = input + 4;
19235 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19239 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19241 const char input[] = "B\250\271\201\060\211\070er";
19244 memset (&state, '\0', sizeof (mbstate_t));
19245 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19246 if (!mbsinit (&state))
19248 const char *src = input + 2;
19249 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19256 if ac_fn_c_try_run
"$LINENO"; then :
19257 gl_cv_func_mbsrtowcs_works
=yes
19259 gl_cv_func_mbsrtowcs_works
=no
19261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19269 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19271 case "$gl_cv_func_mbsrtowcs_works" in
19273 *) REPLACE_MBSRTOWCS
=1 ;;
19278 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
19287 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19297 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19314 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19319 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
19328 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
19331 for ac_header
in bp-sym.h
19333 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
19334 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
19335 cat >>confdefs.h
<<_ACEOF
19336 #define HAVE_BP_SYM_H 1
19356 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
19362 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
19364 $as_echo_n "checking whether memmem works in linear time... " >&6; }
19365 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
19366 $as_echo_n "(cached) " >&6
19368 if test "$cross_compiling" = yes; then :
19369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19372 #include <features.h>
19373 #ifdef __GNU_LIBRARY__
19374 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
19375 && !defined __UCLIBC__
19380 #include <cygwin/version.h>
19381 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
19387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19388 $EGREP "Lucky user" >/dev
/null
2>&1; then :
19389 gl_cv_func_memmem_works_fast
="guessing yes"
19391 gl_cv_func_memmem_works_fast
="guessing no"
19397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 #include <signal.h> /* for signal */
19401 #include <string.h> /* for memmem */
19402 #include <stdlib.h> /* for malloc */
19403 #include <unistd.h> /* for alarm */
19404 static void quit (int sig) { _exit (sig + 128); }
19411 size_t m = 1000000;
19412 char *haystack = (char *) malloc (2 * m + 1);
19413 char *needle = (char *) malloc (m + 1);
19414 /* Failure to compile this test due to missing alarm is okay,
19415 since all such platforms (mingw) also lack memmem. */
19416 signal (SIGALRM, quit);
19418 /* Check for quadratic performance. */
19419 if (haystack && needle)
19421 memset (haystack, 'A', 2 * m);
19422 haystack[2 * m] = 'B';
19423 memset (needle, 'A', m);
19425 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
19434 if ac_fn_c_try_run
"$LINENO"; then :
19435 gl_cv_func_memmem_works_fast
=yes
19437 gl_cv_func_memmem_works_fast
=no
19439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
19446 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
19447 case "$gl_cv_func_memmem_works_fast" in
19455 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
19464 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
19471 for ac_func
in memmem
19473 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
19474 if test "x$ac_cv_func_memmem" = x
""yes; then :
19475 cat >>confdefs.h
<<_ACEOF
19476 #define HAVE_MEMMEM 1
19482 if test $ac_cv_func_memmem = yes; then
19488 if test $ac_cv_have_decl_memmem = no
; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
19492 $as_echo_n "checking whether memmem works... " >&6; }
19493 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
19494 $as_echo_n "(cached) " >&6
19496 if test "$cross_compiling" = yes; then :
19497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19500 #ifdef __GNU_LIBRARY__
19501 #include <features.h>
19502 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
19503 || __GLIBC_MINOR__ > 12)) \
19504 || (__GLIBC__ > 2)) \
19505 || defined __UCLIBC__
19508 #elif defined __CYGWIN__
19509 #include <cygwin/version.h>
19510 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
19518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19519 $EGREP "Lucky user" >/dev
/null
2>&1; then :
19520 gl_cv_func_memmem_works_always
="guessing yes"
19522 gl_cv_func_memmem_works_always
="guessing no"
19528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h. */
19531 #include <string.h> /* for memmem */
19532 #define P "_EF_BF_BD"
19533 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
19534 #define NEEDLE P P P P P
19541 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
19543 /* Check for empty needle behavior. */
19545 const char *haystack = "AAA";
19546 if (memmem (haystack, 3, NULL, 0) != haystack)
19555 if ac_fn_c_try_run
"$LINENO"; then :
19556 gl_cv_func_memmem_works_always
=yes
19558 gl_cv_func_memmem_works_always
=no
19560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
19567 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
19568 case "$gl_cv_func_memmem_works_always" in
19577 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
19586 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
19600 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
19610 for ac_func
in mempcpy
19612 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
19613 if test "x$ac_cv_func_mempcpy" = x
""yes; then :
19614 cat >>confdefs.h
<<_ACEOF
19615 #define HAVE_MEMPCPY 1
19621 if test $ac_cv_func_mempcpy = no
; then
19625 if test $HAVE_MEMPCPY = 0; then
19634 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
19651 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
19660 if test $ac_cv_have_decl_memrchr = no
; then
19661 HAVE_DECL_MEMRCHR
=0
19664 for ac_func
in memrchr
19666 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
19667 if test "x$ac_cv_func_memrchr" = x
""yes; then :
19668 cat >>confdefs.h
<<_ACEOF
19669 #define HAVE_MEMRCHR 1
19676 if test $ac_cv_func_memrchr = no
; then
19685 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
19700 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
19708 if test $ac_cv_func_mkstemp = yes; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
19710 $as_echo_n "checking for working mkstemp... " >&6; }
19711 if test "${gl_cv_func_working_mkstemp+set}" = set; then :
19712 $as_echo_n "(cached) " >&6
19715 mkdir conftest.mkstemp
19716 if test "$cross_compiling" = yes; then :
19718 # Guess yes on glibc systems.
19719 *-gnu*) gl_cv_func_working_mkstemp
="guessing yes" ;;
19720 # If we don't know, assume the worst.
19721 *) gl_cv_func_working_mkstemp
="guessing no" ;;
19725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727 $ac_includes_default
19733 off_t large = (off_t) 4294967295u;
19735 large = 2147483647;
19737 for (i = 0; i < 70; i++)
19739 char templ[] = "conftest.mkstemp/coXXXXXX";
19740 int (*mkstemp_function) (char *) = mkstemp;
19741 int fd = mkstemp_function (templ);
19747 if (lseek (fd, large, SEEK_SET) != large)
19749 if (fstat (fd, &st) < 0)
19751 else if (st.st_mode & 0077)
19762 if ac_fn_c_try_run
"$LINENO"; then :
19763 gl_cv_func_working_mkstemp
=yes
19765 gl_cv_func_working_mkstemp
=no
19767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19771 rm -rf conftest.mkstemp
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
19775 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
19776 case "$gl_cv_func_working_mkstemp" in
19786 if test $HAVE_MKSTEMP = 0 ||
test $REPLACE_MKSTEMP = 1; then
19795 gl_LIBOBJS
="$gl_LIBOBJS mkstemp.$ac_objext"
19811 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
19816 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19825 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
19829 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19838 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
19851 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
19852 if test "${gl_cv_func_open_slash+set}" = set; then :
19853 $as_echo_n "(cached) " >&6
19855 # Assume that if we have lstat, we can also check symlinks.
19856 if test $ac_cv_func_lstat = yes; then
19858 ln -s conftest.tmp conftest.lnk
19860 if test "$cross_compiling" = yes; then :
19863 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
19864 gl_cv_func_open_slash
="guessing no" ;;
19866 gl_cv_func_open_slash
="guessing yes" ;;
19870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h. */
19875 # include <unistd.h>
19881 if (open ("conftest.lnk/", O_RDONLY) != -1)
19884 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
19889 if ac_fn_c_try_run
"$LINENO"; then :
19890 gl_cv_func_open_slash
=yes
19892 gl_cv_func_open_slash
=no
19894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19898 rm -f conftest.sl conftest.tmp conftest.lnk
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
19902 $as_echo "$gl_cv_func_open_slash" >&6; }
19903 case "$gl_cv_func_open_slash" in
19906 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
19914 if test $REPLACE_OPEN = 0; then
19918 if test $ac_cv_func_fchdir = no
; then
19922 if test $HAVE_FCHDIR = 0; then
19929 if test $REPLACE_OPEN = 1; then
19938 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
19956 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
19965 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
19969 # Solaris 9 has *at functions, but uniformly mishandles trailing
19970 # slash in all of them.
19978 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
19987 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
19996 cat >>confdefs.h
<<_ACEOF
19997 #define GNULIB_OPENAT 1
20011 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
20018 for ac_func
in opendir
20020 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
20021 if test "x$ac_cv_func_opendir" = x
""yes; then :
20022 cat >>confdefs.h
<<_ACEOF
20023 #define HAVE_OPENDIR 1
20029 if test $ac_cv_func_opendir = no
; then
20036 if test $ac_cv_func_fchdir = no
; then
20040 if test $HAVE_FCHDIR = 0; then
20041 if test $HAVE_OPENDIR = 1; then
20046 case $host_os,$HAVE_OPENDIR in
20048 REPLACE_OPENDIR
=1;;
20051 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
20060 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
20074 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
20085 for ac_func
in rawmemchr
20087 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20088 if test "x$ac_cv_func_rawmemchr" = x
""yes; then :
20089 cat >>confdefs.h
<<_ACEOF
20090 #define HAVE_RAWMEMCHR 1
20096 if test $ac_cv_func_rawmemchr = no
; then
20100 if test $HAVE_RAWMEMCHR = 0; then
20109 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
20124 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20131 for ac_func
in readdir
20133 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
20134 if test "x$ac_cv_func_readdir" = x
""yes; then :
20135 cat >>confdefs.h
<<_ACEOF
20136 #define HAVE_READDIR 1
20142 if test $ac_cv_func_readdir = no
; then
20146 if test $HAVE_READDIR = 0; then
20155 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
20169 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
20176 if test $ac_cv_func_readlink = no
; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20180 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20181 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20186 #include <unistd.h>
20187 /* Cause compilation failure if original declaration has wrong type. */
20188 ssize_t readlink (const char *, char *, size_t);
20197 if ac_fn_c_try_compile
"$LINENO"; then :
20198 gl_cv_decl_readlink_works
=yes
20200 gl_cv_decl_readlink_works
=no
20202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20205 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20207 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20208 if test "${gl_cv_func_readlink_works+set}" = set; then :
20209 $as_echo_n "(cached) " >&6
20211 # We have readlink, so assume ln -s works.
20212 ln -s conftest.no-such conftest.link
20213 ln -s conftest.link conftest.lnk2
20214 if test "$cross_compiling" = yes; then :
20216 # Guess yes on glibc systems.
20217 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
20218 # If we don't know, assume the worst.
20219 *) gl_cv_func_readlink_works
="guessing no" ;;
20223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225 #include <unistd.h>
20231 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20236 if ac_fn_c_try_run
"$LINENO"; then :
20237 gl_cv_func_readlink_works
=yes
20239 gl_cv_func_readlink_works
=no
20241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20245 rm -f conftest.link conftest.lnk2
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20248 $as_echo "$gl_cv_func_readlink_works" >&6; }
20249 case "$gl_cv_func_readlink_works" in
20251 if test "$gl_cv_decl_readlink_works" != yes; then
20257 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20264 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20273 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20290 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
20297 if test $gl_cv_func_malloc_posix = yes; then
20299 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20305 if test $REPLACE_REALLOC = 1; then
20314 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
20322 GNULIB_REALLOC_POSIX
=1
20328 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
20338 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
20339 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20342 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20343 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
20344 as_fn_error
"cannot create temporary files" "$LINENO" 5
20345 # Assume that if we have lstat, we can also check symlinks.
20346 if test $ac_cv_func_lstat = yes; then
20347 ln -s conftest.f conftest.lnk
20349 if test "$cross_compiling" = yes; then :
20351 # Guess yes on glibc systems.
20352 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
20353 # If we don't know, assume the worst.
20354 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
20358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20361 # include <stdio.h>
20362 # include <stdlib.h>
20368 if (rename ("conftest.f1", "conftest.f2/") == 0)
20370 if (rename ("conftest.d1", "conftest.d2/") != 0)
20373 if (rename ("conftest.f", "conftest.lnk/") == 0)
20382 if ac_fn_c_try_run
"$LINENO"; then :
20383 gl_cv_func_rename_slash_dst_works
=yes
20385 gl_cv_func_rename_slash_dst_works
=no
20387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20391 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
20395 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
20396 case "$gl_cv_func_rename_slash_dst_works" in
20401 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
20407 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
20408 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
20409 $as_echo_n "(cached) " >&6
20411 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20412 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
20413 as_fn_error
"cannot create temporary files" "$LINENO" 5
20414 # Assume that if we have lstat, we can also check symlinks.
20415 if test $ac_cv_func_lstat = yes; then
20416 ln -s conftest.f conftest.lnk
20418 if test "$cross_compiling" = yes; then :
20420 # Guess yes on glibc systems.
20421 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
20422 # If we don't know, assume the worst.
20423 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
20427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 # include <stdio.h>
20431 # include <stdlib.h>
20437 if (rename ("conftest.f1/", "conftest.d3") == 0)
20439 if (rename ("conftest.d1/", "conftest.d2") != 0)
20442 if (rename ("conftest.lnk/", "conftest.f") == 0)
20451 if ac_fn_c_try_run
"$LINENO"; then :
20452 gl_cv_func_rename_slash_src_works
=yes
20454 gl_cv_func_rename_slash_src_works
=no
20456 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20457 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20460 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
20464 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
20465 case "$gl_cv_func_rename_slash_src_works" in
20470 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
20477 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
20478 if test "${gl_cv_func_rename_link_works+set}" = set; then :
20479 $as_echo_n "(cached) " >&6
20481 if test $ac_cv_func_link = yes; then
20482 rm -rf conftest.f conftest.f1
20483 if touch conftest.f
&& ln conftest.f conftest.f1
&&
20484 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
20485 if test "$cross_compiling" = yes; then :
20487 # Guess yes on glibc systems.
20488 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
20489 # If we don't know, assume the worst.
20490 *) gl_cv_func_rename_link_works
="guessing no" ;;
20494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20497 # include <stdio.h>
20498 # include <stdlib.h>
20499 # include <unistd.h>
20505 if (rename ("conftest.f", "conftest.f1"))
20507 if (unlink ("conftest.f1"))
20509 if (rename ("conftest.f", "conftest.f"))
20511 if (rename ("conftest.f1", "conftest.f1") == 0)
20519 if ac_fn_c_try_run
"$LINENO"; then :
20520 gl_cv_func_rename_link_works
=yes
20522 gl_cv_func_rename_link_works
=no
20524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20529 gl_cv_func_rename_link_works
="guessing no"
20531 rm -rf conftest.f conftest.f1
20533 gl_cv_func_rename_link_works
=yes
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
20538 $as_echo "$gl_cv_func_rename_link_works" >&6; }
20539 case "$gl_cv_func_rename_link_works" in
20544 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
20550 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
20551 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
20552 $as_echo_n "(cached) " >&6
20554 rm -rf conftest.f conftest.d1 conftest.d2
20555 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
20556 as_fn_error
"cannot create temporary files" "$LINENO" 5
20557 if test "$cross_compiling" = yes; then :
20559 # Guess yes on glibc systems.
20560 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
20561 # If we don't know, assume the worst.
20562 *) gl_cv_func_rename_dest_works
="guessing no" ;;
20566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h. */
20569 # include <stdio.h>
20570 # include <stdlib.h>
20576 if (rename ("conftest.d1", "conftest.d2") != 0)
20578 if (rename ("conftest.d2", "conftest.f") == 0)
20586 if ac_fn_c_try_run
"$LINENO"; then :
20587 gl_cv_func_rename_dest_works
=yes
20589 gl_cv_func_rename_dest_works
=no
20591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20595 rm -rf conftest.f conftest.d1 conftest.d2
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
20599 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
20600 case "$gl_cv_func_rename_dest_works" in
20605 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
20610 if test $REPLACE_RENAME = 1; then
20619 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
20633 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
20640 for ac_func
in rewinddir
20642 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
20643 if test "x$ac_cv_func_rewinddir" = x
""yes; then :
20644 cat >>confdefs.h
<<_ACEOF
20645 #define HAVE_REWINDDIR 1
20651 if test $ac_cv_func_rewinddir = no
; then
20655 if test $HAVE_REWINDDIR = 0; then
20664 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
20678 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
20686 $as_echo_n "checking whether rmdir works... " >&6; }
20687 if test "${gl_cv_func_rmdir_works+set}" = set; then :
20688 $as_echo_n "(cached) " >&6
20691 touch conftest.
file
20692 if test "$cross_compiling" = yes; then :
20694 # Guess yes on glibc systems.
20695 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
20696 # If we don't know, assume the worst.
20697 *) gl_cv_func_rmdir_works
="guessing no" ;;
20701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20702 /* end confdefs.h. */
20706 # include <unistd.h>
20707 #else /* on Windows with MSVC */
20708 # include <direct.h>
20715 if (!rmdir ("conftest.file/"))
20717 else if (errno != ENOTDIR)
20719 if (!rmdir ("conftest.dir/./"))
20727 if ac_fn_c_try_run
"$LINENO"; then :
20728 gl_cv_func_rmdir_works
=yes
20730 gl_cv_func_rmdir_works
=no
20732 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20733 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20736 rm -rf conftest.dir conftest.
file
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
20739 $as_echo "$gl_cv_func_rmdir_works" >&6; }
20740 case "$gl_cv_func_rmdir_works" in
20747 if test $REPLACE_RMDIR = 1; then
20756 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
20770 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
20782 if test $ac_cv_func_secure_getenv = no
; then
20783 HAVE_SECURE_GETENV
=0
20786 if test $HAVE_SECURE_GETENV = 0; then
20795 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
20798 for ac_func
in __secure_getenv
20800 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
20801 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
20802 cat >>confdefs.h
<<_ACEOF
20803 #define HAVE___SECURE_GETENV 1
20809 if test $ac_cv_func___secure_getenv = no
; then
20810 for ac_func
in issetugid
20812 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
20813 if test "x$ac_cv_func_issetugid" = x
""yes; then :
20814 cat >>confdefs.h
<<_ACEOF
20815 #define HAVE_ISSETUGID 1
20830 GNULIB_SECURE_GETENV
=1
20836 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
20842 if test $ac_cv_func_setenv = no
; then
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
20846 $as_echo_n "checking whether setenv validates arguments... " >&6; }
20847 if test "${gl_cv_func_setenv_works+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20850 if test "$cross_compiling" = yes; then :
20852 # Guess yes on glibc systems.
20853 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
20854 # If we don't know, assume the worst.
20855 *) gl_cv_func_setenv_works
="guessing no" ;;
20859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20862 #include <stdlib.h>
20864 #include <string.h>
20872 if (setenv ("", "", 0) != -1)
20874 else if (errno != EINVAL)
20878 if (setenv ("a", "=", 1) != 0)
20880 else if (strcmp (getenv ("a"), "=") != 0)
20889 if ac_fn_c_try_run
"$LINENO"; then :
20890 gl_cv_func_setenv_works
=yes
20892 gl_cv_func_setenv_works
=no
20894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
20900 $as_echo "$gl_cv_func_setenv_works" >&6; }
20901 case "$gl_cv_func_setenv_works" in
20909 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
20918 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
20932 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
20947 if test $gl_cv_have_include_next = yes; then
20948 gl_cv_next_signal_h
='<'signal.h
'>'
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20951 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20952 if test "${gl_cv_next_signal_h+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <signal.h>
20963 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20964 *) gl_absname_cpp
="$ac_cpp" ;;
20969 gl_dirsep_regex
='[/\\]'
20972 gl_dirsep_regex
='\/'
20975 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20976 gl_header_literal_regex
=`echo 'signal.h' \
20977 | sed -e "$gl_make_literal_regex_sed"`
20978 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20979 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20985 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20986 sed -n "$gl_absolute_header_sed"`
20988 gl_header
=$gl_cv_absolute_signal_h
20989 gl_cv_next_signal_h
='"'$gl_header'"'
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20994 $as_echo "$gl_cv_next_signal_h" >&6; }
20996 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21000 gl_next_as_first_directive
='<'signal.h
'>'
21002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21003 gl_next_as_first_directive
=$gl_cv_next_signal_h
21005 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21011 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21012 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21013 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21014 #include <signal.h>
21017 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21020 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21029 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21030 #include <signal.h>
21033 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21036 HAVE_SIGHANDLER_T
=0
21041 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
21042 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21044 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21045 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21046 $as_echo_n "(cached) " >&6
21048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21050 #include <signal.h>
21061 if ac_fn_c_try_compile
"$LINENO"; then :
21062 eval "$as_gl_Symbol=yes"
21064 eval "$as_gl_Symbol=no"
21066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21068 eval ac_res
=\$
$as_gl_Symbol
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21070 $as_echo "$ac_res" >&6; }
21071 eval as_val
=\$
$as_gl_Symbol
21072 if test "x$as_val" = x
""yes; then :
21073 cat >>confdefs.h
<<_ACEOF
21074 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21077 eval ac_cv_have_decl_
$gl_func=yes
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21084 $as_echo_n "checking for ssize_t... " >&6; }
21085 if test "${gt_cv_ssize_t+set}" = set; then :
21086 $as_echo_n "(cached) " >&6
21088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21090 #include <sys/types.h>
21094 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21100 if ac_fn_c_try_compile
"$LINENO"; then :
21105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21108 $as_echo "$gt_cv_ssize_t" >&6; }
21109 if test $gt_cv_ssize_t = no
; then
21111 $as_echo "#define ssize_t int" >>confdefs.h
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21119 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21120 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21121 $as_echo_n "(cached) " >&6
21123 if test "$cross_compiling" = yes; then :
21125 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21126 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21130 /* end confdefs.h. */
21131 #include <sys/stat.h>
21136 struct stat st; return stat (".", &st) != stat ("./", &st);
21141 if ac_fn_c_try_run
"$LINENO"; then :
21142 gl_cv_func_stat_dir_slash
=yes
21144 gl_cv_func_stat_dir_slash
=no
21146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21152 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21154 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21155 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21156 $as_echo_n "(cached) " >&6
21159 # Assume that if we have lstat, we can also check symlinks.
21160 if test $ac_cv_func_lstat = yes; then
21161 ln -s conftest.tmp conftest.lnk
21163 if test "$cross_compiling" = yes; then :
21165 # Guess yes on glibc systems.
21166 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
21167 # If we don't know, assume the worst.
21168 *) gl_cv_func_stat_file_slash
="guessing no" ;;
21172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h. */
21174 #include <sys/stat.h>
21181 if (!stat ("conftest.tmp/", &st))
21184 if (!stat ("conftest.lnk/", &st))
21193 if ac_fn_c_try_run
"$LINENO"; then :
21194 gl_cv_func_stat_file_slash
=yes
21196 gl_cv_func_stat_file_slash
=no
21198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21202 rm -f conftest.tmp conftest.lnk
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21205 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21206 case $gl_cv_func_stat_dir_slash in
21207 *no
) REPLACE_STAT
=1
21209 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21212 case $gl_cv_func_stat_file_slash in
21213 *no
) REPLACE_STAT
=1
21215 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21219 if test $REPLACE_STAT = 1; then
21228 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21243 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
21250 # Define two additional variables used in the Makefile substitution.
21252 if test "$ac_cv_header_stdbool_h" = yes; then
21255 STDBOOL_H
='stdbool.h'
21258 if test -n "$STDBOOL_H"; then
21259 GL_GENERATE_STDBOOL_H_TRUE
=
21260 GL_GENERATE_STDBOOL_H_FALSE
='#'
21262 GL_GENERATE_STDBOOL_H_TRUE
='#'
21263 GL_GENERATE_STDBOOL_H_FALSE
=
21267 if test "$ac_cv_type__Bool" = yes; then
21278 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
21281 if test "x$ac_cv_type_max_align_t" = x
""yes; then :
21284 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
21287 if test $gt_cv_c_wchar_t = no
; then
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21292 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21293 if test "${gl_cv_decl_null_works+set}" = set; then :
21294 $as_echo_n "(cached) " >&6
21296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h. */
21298 #include <stddef.h>
21299 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21309 if ac_fn_c_try_compile
"$LINENO"; then :
21310 gl_cv_decl_null_works
=yes
21312 gl_cv_decl_null_works
=no
21314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21317 $as_echo "$gl_cv_decl_null_works" >&6; }
21318 if test $gl_cv_decl_null_works = no
; then
21323 if test -n "$STDDEF_H"; then
21324 GL_GENERATE_STDDEF_H_TRUE
=
21325 GL_GENERATE_STDDEF_H_FALSE
='#'
21327 GL_GENERATE_STDDEF_H_TRUE
='#'
21328 GL_GENERATE_STDDEF_H_FALSE
=
21331 if test -n "$STDDEF_H"; then
21340 if test $gl_cv_have_include_next = yes; then
21341 gl_cv_next_stddef_h
='<'stddef.h
'>'
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21344 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21345 if test "${gl_cv_next_stddef_h+set}" = set; then :
21346 $as_echo_n "(cached) " >&6
21351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21352 /* end confdefs.h. */
21353 #include <stddef.h>
21356 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21357 *) gl_absname_cpp
="$ac_cpp" ;;
21362 gl_dirsep_regex
='[/\\]'
21365 gl_dirsep_regex
='\/'
21368 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21369 gl_header_literal_regex
=`echo 'stddef.h' \
21370 | sed -e "$gl_make_literal_regex_sed"`
21371 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21372 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21378 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21379 sed -n "$gl_absolute_header_sed"`
21381 gl_header
=$gl_cv_absolute_stddef_h
21382 gl_cv_next_stddef_h
='"'$gl_header'"'
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21387 $as_echo "$gl_cv_next_stddef_h" >&6; }
21389 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21391 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21393 gl_next_as_first_directive
='<'stddef.h
'>'
21395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21396 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21398 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21408 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
21419 if test $gl_cv_have_include_next = yes; then
21420 gl_cv_next_stdio_h
='<'stdio.h
'>'
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21423 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21424 if test "${gl_cv_next_stdio_h+set}" = set; then :
21425 $as_echo_n "(cached) " >&6
21430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21431 /* end confdefs.h. */
21435 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21436 *) gl_absname_cpp
="$ac_cpp" ;;
21441 gl_dirsep_regex
='[/\\]'
21444 gl_dirsep_regex
='\/'
21447 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21448 gl_header_literal_regex
=`echo 'stdio.h' \
21449 | sed -e "$gl_make_literal_regex_sed"`
21450 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21451 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21457 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21458 sed -n "$gl_absolute_header_sed"`
21460 gl_header
=$gl_cv_absolute_stdio_h
21461 gl_cv_next_stdio_h
='"'$gl_header'"'
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21466 $as_echo "$gl_cv_next_stdio_h" >&6; }
21468 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21470 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21472 gl_next_as_first_directive
='<'stdio.h
'>'
21474 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21475 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21477 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
21484 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
21485 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
21486 $as_echo_n "(cached) " >&6
21488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 #define __STDC_FORMAT_MACROS 1
21493 #include <inttypes.h>
21494 /* For non-mingw systems, compilation will trivially succeed.
21495 For mingw, compilation will succeed for older mingw (system
21496 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
21497 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
21498 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
21499 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
21510 if ac_fn_c_try_compile
"$LINENO"; then :
21511 gl_cv_func_printf_attribute_flavor
=system
21513 gl_cv_func_printf_attribute_flavor
=gnu
21515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
21518 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
21519 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
21521 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
21528 cat >>confdefs.h
<<_ACEOF
21529 #define GNULIB_FSCANF 1
21536 cat >>confdefs.h
<<_ACEOF
21537 #define GNULIB_SCANF 1
21562 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
21563 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21565 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21566 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21567 $as_echo_n "(cached) " >&6
21569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h. */
21582 if ac_fn_c_try_compile
"$LINENO"; then :
21583 eval "$as_gl_Symbol=yes"
21585 eval "$as_gl_Symbol=no"
21587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21589 eval ac_res
=\$
$as_gl_Symbol
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21591 $as_echo "$ac_res" >&6; }
21592 eval as_val
=\$
$as_gl_Symbol
21593 if test "x$as_val" = x
""yes; then :
21594 cat >>confdefs.h
<<_ACEOF
21595 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21598 eval ac_cv_have_decl_
$gl_func=yes
21613 if test $gl_cv_have_include_next = yes; then
21614 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21617 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21618 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21619 $as_echo_n "(cached) " >&6
21624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21625 /* end confdefs.h. */
21626 #include <stdlib.h>
21629 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21630 *) gl_absname_cpp
="$ac_cpp" ;;
21635 gl_dirsep_regex
='[/\\]'
21638 gl_dirsep_regex
='\/'
21641 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21642 gl_header_literal_regex
=`echo 'stdlib.h' \
21643 | sed -e "$gl_make_literal_regex_sed"`
21644 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21651 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21652 sed -n "$gl_absolute_header_sed"`
21654 gl_header
=$gl_cv_absolute_stdlib_h
21655 gl_cv_next_stdlib_h
='"'$gl_header'"'
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21660 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21662 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21664 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21666 gl_next_as_first_directive
='<'stdlib.h
'>'
21668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21669 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21671 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21678 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
21679 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21681 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21682 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21683 $as_echo_n "(cached) " >&6
21685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h. */
21687 #include <stdlib.h>
21688 #if HAVE_SYS_LOADAVG_H
21689 # include <sys/loadavg.h>
21692 # include <random.h>
21704 if ac_fn_c_try_compile
"$LINENO"; then :
21705 eval "$as_gl_Symbol=yes"
21707 eval "$as_gl_Symbol=no"
21709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21711 eval ac_res
=\$
$as_gl_Symbol
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21713 $as_echo "$ac_res" >&6; }
21714 eval as_val
=\$
$as_gl_Symbol
21715 if test "x$as_val" = x
""yes; then :
21716 cat >>confdefs.h
<<_ACEOF
21717 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21720 eval ac_cv_have_decl_
$gl_func=yes
21729 for ac_func
in strchrnul
21731 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21732 if test "x$ac_cv_func_strchrnul" = x
""yes; then :
21733 cat >>confdefs.h
<<_ACEOF
21734 #define HAVE_STRCHRNUL 1
21740 if test $ac_cv_func_strchrnul = no
; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21744 $as_echo_n "checking whether strchrnul works... " >&6; }
21745 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21748 if test "$cross_compiling" = yes; then :
21749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21752 #if defined __CYGWIN__
21753 #include <cygwin/version.h>
21754 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21763 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21764 gl_cv_func_strchrnul_works
="guessing yes"
21766 gl_cv_func_strchrnul_works
="guessing no"
21772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21773 /* end confdefs.h. */
21775 #include <string.h> /* for strchrnul */
21780 const char *buf = "a";
21781 return strchrnul (buf, 'b') != buf + 1;
21787 if ac_fn_c_try_run
"$LINENO"; then :
21788 gl_cv_func_strchrnul_works
=yes
21790 gl_cv_func_strchrnul_works
=no
21792 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21793 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21799 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21800 case "$gl_cv_func_strchrnul_works" in
21802 *) REPLACE_STRCHRNUL
=1 ;;
21806 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
21815 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
21830 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21838 if test $ac_cv_func_strdup = yes; then
21839 if test $gl_cv_func_malloc_posix != yes; then
21844 if test $ac_cv_have_decl_strdup = no
; then
21848 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
21857 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
21872 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
21881 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21883 $as_echo_n "checking for working strerror function... " >&6; }
21884 if test "${gl_cv_func_working_strerror+set}" = set; then :
21885 $as_echo_n "(cached) " >&6
21887 if test "$cross_compiling" = yes; then :
21889 # Guess yes on glibc systems.
21890 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
21891 # If we don't know, assume the worst.
21892 *) gl_cv_func_working_strerror
="guessing no" ;;
21896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898 #include <string.h>
21903 if (!*strerror (-2)) return 1;
21908 if ac_fn_c_try_run
"$LINENO"; then :
21909 gl_cv_func_working_strerror
=yes
21911 gl_cv_func_working_strerror
=no
21913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21920 $as_echo "$gl_cv_func_working_strerror" >&6; }
21921 case "$gl_cv_func_working_strerror" in
21932 if test $REPLACE_STRERROR = 1; then
21941 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
21946 cat >>confdefs.h
<<_ACEOF
21947 #define GNULIB_STRERROR 1
21962 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21968 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
21977 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
21983 if test $ac_cv_header_sys_socket_h != yes; then
21984 for ac_header
in winsock2.h
21986 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21987 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21988 cat >>confdefs.h
<<_ACEOF
21989 #define HAVE_WINSOCK2_H 1
21997 if test "$ac_cv_header_winsock2_h" = yes; then
21999 UNISTD_H_HAVE_WINSOCK2_H
=1
22000 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
22012 if test $REPLACE_STRSTR = 0; then
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
22014 $as_echo_n "checking whether strstr works in linear time... " >&6; }
22015 if test "${gl_cv_func_strstr_linear+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22018 if test "$cross_compiling" = yes; then :
22019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22022 #include <features.h>
22023 #ifdef __GNU_LIBRARY__
22024 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
22025 && !(defined __i386__ || defined __x86_64__) \
22026 && !defined __UCLIBC__
22031 #include <cygwin/version.h>
22032 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
22038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22039 $EGREP "Lucky user" >/dev
/null
2>&1; then :
22040 gl_cv_func_strstr_linear
="guessing yes"
22042 gl_cv_func_strstr_linear
="guessing no"
22048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h. */
22052 /* z/OS does not deliver signals while strstr() is running (thanks to
22053 restrictions on its LE runtime), which prevents us from limiting the
22054 running time of this test. */
22055 # error "This test does not work properly on z/OS"
22057 #include <signal.h> /* for signal */
22058 #include <string.h> /* for strstr */
22059 #include <stdlib.h> /* for malloc */
22060 #include <unistd.h> /* for alarm */
22061 static void quit (int sig) { _exit (sig + 128); }
22068 size_t m = 1000000;
22069 char *haystack = (char *) malloc (2 * m + 2);
22070 char *needle = (char *) malloc (m + 2);
22071 /* Failure to compile this test due to missing alarm is okay,
22072 since all such platforms (mingw) also have quadratic strstr. */
22073 signal (SIGALRM, quit);
22075 /* Check for quadratic performance. */
22076 if (haystack && needle)
22078 memset (haystack, 'A', 2 * m);
22079 haystack[2 * m] = 'B';
22080 haystack[2 * m + 1] = 0;
22081 memset (needle, 'A', m);
22084 if (!strstr (haystack, needle))
22093 if ac_fn_c_try_run
"$LINENO"; then :
22094 gl_cv_func_strstr_linear
=yes
22096 gl_cv_func_strstr_linear
=no
22098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
22105 $as_echo "$gl_cv_func_strstr_linear" >&6; }
22106 case "$gl_cv_func_strstr_linear" in
22114 if test $REPLACE_STRSTR = 1; then
22123 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
22129 if test "$gl_cv_func_memchr_works" != yes; then
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
22133 $as_echo_n "checking whether strstr works... " >&6; }
22134 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22137 if test "$cross_compiling" = yes; then :
22138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22141 #ifdef __GNU_LIBRARY__
22142 #include <features.h>
22143 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
22144 || defined __UCLIBC__
22147 #elif defined __CYGWIN__
22148 #include <cygwin/version.h>
22149 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
22157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22158 $EGREP "Lucky user" >/dev
/null
2>&1; then :
22159 gl_cv_func_strstr_works_always
="guessing yes"
22161 gl_cv_func_strstr_works_always
="guessing no"
22167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22168 /* end confdefs.h. */
22170 #include <string.h> /* for strstr */
22171 #define P "_EF_BF_BD"
22172 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
22173 #define NEEDLE P P P P P
22178 return !!strstr (HAYSTACK, NEEDLE);
22184 if ac_fn_c_try_run
"$LINENO"; then :
22185 gl_cv_func_strstr_works_always
=yes
22187 gl_cv_func_strstr_works_always
=no
22189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
22196 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
22197 case "$gl_cv_func_strstr_works_always" in
22205 if test $REPLACE_STRSTR = 1; then
22214 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
22228 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
22236 for ac_func
in strtok_r
22238 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
22239 if test "x$ac_cv_func_strtok_r" = x
""yes; then :
22240 cat >>confdefs.h
<<_ACEOF
22241 #define HAVE_STRTOK_R 1
22247 if test $ac_cv_func_strtok_r = yes; then
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
22250 $as_echo_n "checking whether strtok_r works... " >&6; }
22251 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
22252 $as_echo_n "(cached) " >&6
22254 if test "$cross_compiling" = yes; then :
22257 # Guess no on glibc systems.
22258 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
22259 *) gl_cv_func_strtok_r_works
="guessing yes";;
22263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22266 #ifndef __OPTIMIZE__
22267 # define __OPTIMIZE__ 1
22269 #undef __OPTIMIZE_SIZE__
22270 #undef __NO_INLINE__
22271 #include <stdlib.h>
22272 #include <string.h>
22277 static const char dummy[] = "\177\01a";
22278 char delimiters[] = "xxxxxxxx";
22279 char *save_ptr = (char *) dummy;
22280 strtok_r (delimiters, "x", &save_ptr);
22281 strtok_r (NULL, "x", &save_ptr);
22289 if ac_fn_c_try_run
"$LINENO"; then :
22290 gl_cv_func_strtok_r_works
=yes
22292 gl_cv_func_strtok_r_works
=no
22294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22295 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
22301 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
22302 case "$gl_cv_func_strtok_r_works" in
22304 UNDEFINE_STRTOK_R
=1
22311 if test $ac_cv_have_decl_strtok_r = no
; then
22312 HAVE_DECL_STRTOK_R
=0
22315 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
22324 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
22341 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
22359 if test $gl_cv_have_include_next = yes; then
22360 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22363 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22364 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22368 if test $ac_cv_header_sys_stat_h = yes; then
22373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h. */
22375 #include <sys/stat.h>
22378 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22379 *) gl_absname_cpp
="$ac_cpp" ;;
22384 gl_dirsep_regex
='[/\\]'
22387 gl_dirsep_regex
='\/'
22390 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22391 gl_header_literal_regex
=`echo 'sys/stat.h' \
22392 | sed -e "$gl_make_literal_regex_sed"`
22393 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22394 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22400 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22401 sed -n "$gl_absolute_header_sed"`
22403 gl_header
=$gl_cv_absolute_sys_stat_h
22404 gl_cv_next_sys_stat_h
='"'$gl_header'"'
22406 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22412 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22414 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
22416 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22418 gl_next_as_first_directive
='<'sys
/stat.h
'>'
22420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22421 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
22423 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
22435 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
22437 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
22441 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22442 #include <sys/stat.h>
22444 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
22448 $as_echo "#define nlink_t int" >>confdefs.h
22454 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
22455 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22457 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22458 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22459 $as_echo_n "(cached) " >&6
22461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h. */
22463 #include <sys/stat.h>
22474 if ac_fn_c_try_compile
"$LINENO"; then :
22475 eval "$as_gl_Symbol=yes"
22477 eval "$as_gl_Symbol=no"
22479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22481 eval ac_res
=\$
$as_gl_Symbol
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22483 $as_echo "$ac_res" >&6; }
22484 eval as_val
=\$
$as_gl_Symbol
22485 if test "x$as_val" = x
""yes; then :
22486 cat >>confdefs.h
<<_ACEOF
22487 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22490 eval ac_cv_have_decl_
$gl_func=yes
22522 if test $gl_cv_have_include_next = yes; then
22523 gl_cv_next_unistd_h
='<'unistd.h
'>'
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22526 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22527 if test "${gl_cv_next_unistd_h+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22531 if test $ac_cv_header_unistd_h = yes; then
22536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22538 #include <unistd.h>
22541 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22542 *) gl_absname_cpp
="$ac_cpp" ;;
22547 gl_dirsep_regex
='[/\\]'
22550 gl_dirsep_regex
='\/'
22553 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22554 gl_header_literal_regex
=`echo 'unistd.h' \
22555 | sed -e "$gl_make_literal_regex_sed"`
22556 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22557 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22563 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22564 sed -n "$gl_absolute_header_sed"`
22566 gl_header
=$gl_cv_absolute_unistd_h
22567 gl_cv_next_unistd_h
='"'$gl_header'"'
22569 gl_cv_next_unistd_h
='<'unistd.h
'>'
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22575 $as_echo "$gl_cv_next_unistd_h" >&6; }
22577 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22579 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22581 gl_next_as_first_directive
='<'unistd.h
'>'
22583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22584 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22586 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22591 if test $ac_cv_header_unistd_h = yes; then
22603 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
22604 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22606 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22607 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22608 $as_echo_n "(cached) " >&6
22610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22614 # include <unistd.h>
22616 /* Some systems declare various items in the wrong headers. */
22617 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22618 # include <fcntl.h>
22619 # include <stdio.h>
22620 # include <stdlib.h>
22621 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22635 if ac_fn_c_try_compile
"$LINENO"; then :
22636 eval "$as_gl_Symbol=yes"
22638 eval "$as_gl_Symbol=no"
22640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22642 eval ac_res
=\$
$as_gl_Symbol
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22644 $as_echo "$ac_res" >&6; }
22645 eval as_val
=\$
$as_gl_Symbol
22646 if test "x$as_val" = x
""yes; then :
22647 cat >>confdefs.h
<<_ACEOF
22648 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22651 eval ac_cv_have_decl_
$gl_func=yes
22662 if test $ac_cv_have_decl_unsetenv = no
; then
22663 HAVE_DECL_UNSETENV
=0
22665 for ac_func
in unsetenv
22667 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
22668 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
22669 cat >>confdefs.h
<<_ACEOF
22670 #define HAVE_UNSETENV 1
22676 if test $ac_cv_func_unsetenv = no
; then
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
22681 $as_echo_n "checking for unsetenv() return type... " >&6; }
22682 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22689 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
22690 #include <stdlib.h>
22695 int unsetenv (const char *name);
22705 if ac_fn_c_try_compile
"$LINENO"; then :
22706 gt_cv_func_unsetenv_ret
='int'
22708 gt_cv_func_unsetenv_ret
='void'
22710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
22713 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
22714 if test $gt_cv_func_unsetenv_ret = 'void'; then
22716 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
22722 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
22723 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22726 if test "$cross_compiling" = yes; then :
22728 # Guess yes on glibc systems.
22729 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
22730 # If we don't know, assume the worst.
22731 *) gl_cv_func_unsetenv_works
="guessing no" ;;
22735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h. */
22738 #include <stdlib.h>
22740 extern char **environ;
22746 char entry1[] = "a=1";
22747 char entry2[] = "b=2";
22748 char *env[] = { entry1, entry2, NULL };
22749 if (putenv ((char *) "a=1")) return 1;
22750 if (putenv (entry2)) return 2;
22753 if (getenv ("a")) return 3;
22754 if (!unsetenv ("") || errno != EINVAL) return 4;
22757 if (!getenv ("a")) return 5;
22760 if (getenv ("a")) return 6;
22766 if ac_fn_c_try_run
"$LINENO"; then :
22767 gl_cv_func_unsetenv_works
=yes
22769 gl_cv_func_unsetenv_works
=no
22771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
22777 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
22778 case "$gl_cv_func_unsetenv_works" in
22786 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
22795 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
22813 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
22829 if test $gl_cv_have_include_next = yes; then
22830 gl_cv_next_wchar_h
='<'wchar.h
'>'
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22833 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22834 if test "${gl_cv_next_wchar_h+set}" = set; then :
22835 $as_echo_n "(cached) " >&6
22838 if test $ac_cv_header_wchar_h = yes; then
22843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22848 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22849 *) gl_absname_cpp
="$ac_cpp" ;;
22854 gl_dirsep_regex
='[/\\]'
22857 gl_dirsep_regex
='\/'
22860 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22861 gl_header_literal_regex
=`echo 'wchar.h' \
22862 | sed -e "$gl_make_literal_regex_sed"`
22863 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22864 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22870 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22871 sed -n "$gl_absolute_header_sed"`
22873 gl_header
=$gl_cv_absolute_wchar_h
22874 gl_cv_next_wchar_h
='"'$gl_header'"'
22876 gl_cv_next_wchar_h
='<'wchar.h
'>'
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22882 $as_echo "$gl_cv_next_wchar_h" >&6; }
22884 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
22886 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22887 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22888 gl_next_as_first_directive
='<'wchar.h
'>'
22890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22891 gl_next_as_first_directive
=$gl_cv_next_wchar_h
22893 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
22898 if test $ac_cv_header_wchar_h = yes; then
22908 if test $gt_cv_c_wint_t = yes; then
22916 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
22917 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22919 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22920 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22921 $as_echo_n "(cached) " >&6
22923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22928 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929 included before <wchar.h>. */
22930 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22931 # include <stddef.h>
22932 # include <stdio.h>
22946 if ac_fn_c_try_compile
"$LINENO"; then :
22947 eval "$as_gl_Symbol=yes"
22949 eval "$as_gl_Symbol=no"
22951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22953 eval ac_res
=\$
$as_gl_Symbol
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22955 $as_echo "$ac_res" >&6; }
22956 eval as_val
=\$
$as_gl_Symbol
22957 if test "x$as_val" = x
""yes; then :
22958 cat >>confdefs.h
<<_ACEOF
22959 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22962 eval ac_cv_have_decl_
$gl_func=yes
22972 if test $ac_cv_func_iswcntrl = yes; then
22980 if test $gt_cv_c_wint_t = yes; then
22996 if test $gl_cv_have_include_next = yes; then
22997 gl_cv_next_wctype_h
='<'wctype.h
'>'
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23000 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23001 if test "${gl_cv_next_wctype_h+set}" = set; then :
23002 $as_echo_n "(cached) " >&6
23005 if test $ac_cv_header_wctype_h = yes; then
23010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23012 #include <wctype.h>
23015 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23016 *) gl_absname_cpp
="$ac_cpp" ;;
23021 gl_dirsep_regex
='[/\\]'
23024 gl_dirsep_regex
='\/'
23027 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23028 gl_header_literal_regex
=`echo 'wctype.h' \
23029 | sed -e "$gl_make_literal_regex_sed"`
23030 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23031 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23037 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23038 sed -n "$gl_absolute_header_sed"`
23040 gl_header
=$gl_cv_absolute_wctype_h
23041 gl_cv_next_wctype_h
='"'$gl_header'"'
23043 gl_cv_next_wctype_h
='<'wctype.h
'>'
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23049 $as_echo "$gl_cv_next_wctype_h" >&6; }
23051 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
23053 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23055 gl_next_as_first_directive
='<'wctype.h
'>'
23057 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23058 gl_next_as_first_directive
=$gl_cv_next_wctype_h
23060 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
23065 if test $ac_cv_header_wctype_h = yes; then
23066 if test $ac_cv_func_iswcntrl = yes; then
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23068 $as_echo_n "checking whether iswcntrl works... " >&6; }
23069 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
23070 $as_echo_n "(cached) " >&6
23073 if test "$cross_compiling" = yes; then :
23074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23075 /* end confdefs.h. */
23076 #include <stdlib.h>
23077 #if __GNU_LIBRARY__ == 1
23078 Linux libc5 i18n is broken.
23088 if ac_fn_c_try_compile
"$LINENO"; then :
23089 gl_cv_func_iswcntrl_works
="guessing yes"
23091 gl_cv_func_iswcntrl_works
="guessing no"
23093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23097 /* end confdefs.h. */
23099 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23100 included before <wchar.h>.
23101 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23102 must be included before <wchar.h>. */
23103 #include <stddef.h>
23107 #include <wctype.h>
23108 int main () { return iswprint ('x') == 0; }
23111 if ac_fn_c_try_run
"$LINENO"; then :
23112 gl_cv_func_iswcntrl_works
=yes
23114 gl_cv_func_iswcntrl_works
=no
23116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23123 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23131 case "$gl_cv_func_iswcntrl_works" in
23132 *yes) REPLACE_ISWCNTRL
=0 ;;
23133 *) REPLACE_ISWCNTRL
=1 ;;
23137 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
23141 if test $REPLACE_ISWCNTRL = 1; then
23144 for ac_func
in towlower
23146 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
23147 if test "x$ac_cv_func_towlower" = x
""yes; then :
23148 cat >>confdefs.h
<<_ACEOF
23149 #define HAVE_TOWLOWER 1
23155 if test $ac_cv_func_towlower = yes; then
23158 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23159 included before <wchar.h>.
23160 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23161 must be included before <wchar.h>. */
23162 #include <stddef.h>
23167 # include <wctype.h>
23171 if test "x$ac_cv_have_decl_towlower" = x
""yes; then :
23177 cat >>confdefs.h
<<_ACEOF
23178 #define HAVE_DECL_TOWLOWER $ac_have_decl
23181 if test $ac_cv_have_decl_towlower = yes; then
23190 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23195 $as_echo_n "checking for wctype_t... " >&6; }
23196 if test "${gl_cv_type_wctype_t+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23201 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23202 included before <wchar.h>.
23203 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23204 must be included before <wchar.h>. */
23205 #include <stddef.h>
23210 # include <wctype.h>
23222 if ac_fn_c_try_compile
"$LINENO"; then :
23223 gl_cv_type_wctype_t
=yes
23225 gl_cv_type_wctype_t
=no
23227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23231 $as_echo "$gl_cv_type_wctype_t" >&6; }
23232 if test $gl_cv_type_wctype_t = no
; then
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23237 $as_echo_n "checking for wctrans_t... " >&6; }
23238 if test "${gl_cv_type_wctrans_t+set}" = set; then :
23239 $as_echo_n "(cached) " >&6
23241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23242 /* end confdefs.h. */
23243 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23244 included before <wchar.h>.
23245 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23246 must be included before <wchar.h>. */
23247 #include <stddef.h>
23251 #include <wctype.h>
23262 if ac_fn_c_try_compile
"$LINENO"; then :
23263 gl_cv_type_wctrans_t
=yes
23265 gl_cv_type_wctrans_t
=no
23267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23271 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23272 if test $gl_cv_type_wctrans_t = no
; then
23277 for gl_func
in wctype iswctype wctrans towctrans
; do
23278 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23280 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23281 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
23282 $as_echo_n "(cached) " >&6
23284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23285 /* end confdefs.h. */
23287 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23289 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23290 included before <wchar.h>. */
23291 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23292 # include <stddef.h>
23293 # include <stdio.h>
23295 # include <wchar.h>
23297 #include <wctype.h>
23308 if ac_fn_c_try_compile
"$LINENO"; then :
23309 eval "$as_gl_Symbol=yes"
23311 eval "$as_gl_Symbol=no"
23313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23315 eval ac_res
=\$
$as_gl_Symbol
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23317 $as_echo "$ac_res" >&6; }
23318 eval as_val
=\$
$as_gl_Symbol
23319 if test "x$as_val" = x
""yes; then :
23320 cat >>confdefs.h
<<_ACEOF
23321 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23324 eval ac_cv_have_decl_
$gl_func=yes
23329 # End of code from modules
23350 gl_source_base
='tests'
23351 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
23353 gl_module_indicator_condition
=$gltests_WITNESS
23363 LIBGNU_LIBDEPS
="$gl_libdeps"
23365 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23369 # We don't use automake, but gnulib does. This line lets us generate
23371 am__api_version
='1.11'
23373 # Find a good install program. We prefer a C program (faster),
23374 # so one script is as good as another. But avoid the broken or
23375 # incompatible versions:
23376 # SysV /etc/install, /usr/sbin/install
23377 # SunOS /usr/etc/install
23378 # IRIX /sbin/install
23380 # AmigaOS /C/install, which installs bootblocks on floppy discs
23381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
23383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23384 # OS/2's system install, which has a completely different semantic
23385 # ./install, which can be erroneously created by make from ./install.sh.
23386 # Reject install programs that cannot install multiple files.
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
23388 $as_echo_n "checking for a BSD-compatible install... " >&6; }
23389 if test -z "$INSTALL"; then
23390 if test "${ac_cv_path_install+set}" = set; then :
23391 $as_echo_n "(cached) " >&6
23393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23394 for as_dir
in $PATH
23397 test -z "$as_dir" && as_dir
=.
23398 # Account for people who put trailing slashes in PATH elements.
23399 case $as_dir/ in #((
23400 .
/ | .
// |
/[cC
]/* | \
23401 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
23402 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
23405 # OSF1 and SCO ODT 3.0 have their own names for install.
23406 # Don't use installbsd from OSF since it installs stuff as root
23408 for ac_prog
in ginstall scoinst
install; do
23409 for ac_exec_ext
in '' $ac_executable_extensions; do
23410 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
23411 if test $ac_prog = install &&
23412 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
23413 # AIX install. It has an incompatible calling convention.
23415 elif test $ac_prog = install &&
23416 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
23417 # program-specific install script used by HP pwplus--don't use.
23420 rm -rf conftest.one conftest.two conftest.dir
23421 echo one
> conftest.one
23422 echo two
> conftest.two
23424 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
23425 test -s conftest.one
&& test -s conftest.two
&&
23426 test -s conftest.dir
/conftest.one
&&
23427 test -s conftest.dir
/conftest.two
23429 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
23442 rm -rf conftest.one conftest.two conftest.dir
23445 if test "${ac_cv_path_install+set}" = set; then
23446 INSTALL
=$ac_cv_path_install
23448 # As a last resort, use the slow shell script. Don't cache a
23449 # value for INSTALL within a source directory, because that will
23450 # break other packages using the cache if that directory is
23451 # removed, or if the value is a relative name.
23452 INSTALL
=$ac_install_sh
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
23456 $as_echo "$INSTALL" >&6; }
23458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23459 # It thinks the first close brace ends the variable substitution.
23460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
23462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
23464 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23467 $as_echo_n "checking whether build environment is sane... " >&6; }
23470 echo timestamp
> conftest.
file
23471 # Reject unsafe characters in $srcdir or the absolute working directory
23472 # name. Accept space and tab only in the latter.
23476 *[\\\"\
#\$\&\'\`$am_lf]*)
23477 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
23480 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
23481 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23484 # Do `set' in a subshell so we don't clobber the current shell's
23485 # arguments. Must try -L first in case configure is actually a
23486 # symlink; some systems play weird games with the mod time of symlinks
23487 # (eg FreeBSD returns the mod time of the symlink's containing
23490 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
23491 if test "$*" = "X"; then
23493 set X
`ls -t "$srcdir/configure" conftest.file`
23495 rm -f conftest.
file
23496 if test "$*" != "X $srcdir/configure conftest.file" \
23497 && test "$*" != "X conftest.file $srcdir/configure"; then
23499 # If neither matched, then we have a broken ls. This can happen
23500 # if, for instance, CONFIG_SHELL is bash and it inherits a
23501 # broken ls alias from the environment. This has actually
23502 # happened. Such a system could not be considered "sane".
23503 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
23504 alias in your environment" "$LINENO" 5
23507 test "$2" = conftest.
file
23513 as_fn_error
"newly created file is older than distributed files!
23514 Check your system clock" "$LINENO" 5
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23517 $as_echo "yes" >&6; }
23518 test "$program_prefix" != NONE
&&
23519 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
23520 # Use a double $ so make ignores it.
23521 test "$program_suffix" != NONE
&&
23522 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
23523 # Double any \ or $.
23524 # By default was `s,x,x', remove it if useless.
23525 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
23526 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
23528 # expand $ac_aux_dir to an absolute path
23529 am_aux_dir
=`cd $ac_aux_dir && pwd`
23531 if test x
"${MISSING+set}" != xset
; then
23532 case $am_aux_dir in
23534 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
23536 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
23539 # Use eval to expand $SHELL
23540 if eval "$MISSING --run true"; then
23541 am_missing_run
="$MISSING --run "
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23545 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23548 if test x
"${install_sh}" != xset
; then
23549 case $am_aux_dir in
23551 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
23553 install_sh
="\${SHELL} $am_aux_dir/install-sh"
23557 # Installed binaries are usually stripped using `strip' when the user
23558 # run `make install-strip'. However `strip' might not be the right
23559 # tool to use in cross-compilation environments, therefore Automake
23560 # will honor the `STRIP' environment variable to overrule this program.
23561 if test "$cross_compiling" != no
; then
23562 if test -n "$ac_tool_prefix"; then
23563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23564 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23566 $as_echo_n "checking for $ac_word... " >&6; }
23567 if test "${ac_cv_prog_STRIP+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23570 if test -n "$STRIP"; then
23571 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
23573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23574 for as_dir
in $PATH
23577 test -z "$as_dir" && as_dir
=.
23578 for ac_exec_ext
in '' $ac_executable_extensions; do
23579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23580 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
23581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23590 STRIP
=$ac_cv_prog_STRIP
23591 if test -n "$STRIP"; then
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23593 $as_echo "$STRIP" >&6; }
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23596 $as_echo "no" >&6; }
23601 if test -z "$ac_cv_prog_STRIP"; then
23603 # Extract the first word of "strip", so it can be a program name with args.
23604 set dummy strip
; ac_word
=$2
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23606 $as_echo_n "checking for $ac_word... " >&6; }
23607 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
23608 $as_echo_n "(cached) " >&6
23610 if test -n "$ac_ct_STRIP"; then
23611 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
23613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23614 for as_dir
in $PATH
23617 test -z "$as_dir" && as_dir
=.
23618 for ac_exec_ext
in '' $ac_executable_extensions; do
23619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23620 ac_cv_prog_ac_ct_STRIP
="strip"
23621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23630 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
23631 if test -n "$ac_ct_STRIP"; then
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
23633 $as_echo "$ac_ct_STRIP" >&6; }
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23636 $as_echo "no" >&6; }
23639 if test "x$ac_ct_STRIP" = x
; then
23642 case $cross_compiling:$ac_tool_warned in
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23646 ac_tool_warned
=yes ;;
23651 STRIP
="$ac_cv_prog_STRIP"
23655 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
23659 [\\/$
]* | ?
:[\\/]*) ;;
23660 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
23663 for ac_prog
in gawk mawk nawk
awk
23665 # Extract the first word of "$ac_prog", so it can be a program name with args.
23666 set dummy
$ac_prog; ac_word
=$2
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23668 $as_echo_n "checking for $ac_word... " >&6; }
23669 if test "${ac_cv_prog_AWK+set}" = set; then :
23670 $as_echo_n "(cached) " >&6
23672 if test -n "$AWK"; then
23673 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
23675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23676 for as_dir
in $PATH
23679 test -z "$as_dir" && as_dir
=.
23680 for ac_exec_ext
in '' $ac_executable_extensions; do
23681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23682 ac_cv_prog_AWK
="$ac_prog"
23683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23692 AWK
=$ac_cv_prog_AWK
23693 if test -n "$AWK"; then
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
23695 $as_echo "$AWK" >&6; }
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23698 $as_echo "no" >&6; }
23702 test -n "$AWK" && break
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
23708 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23709 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
23710 $as_echo_n "(cached) " >&6
23712 cat >conftest.
make <<\_ACEOF
23715 @
echo '@@@%%%=$(MAKE)=@@@%%%'
23717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
23719 *@@@
%%%=?
*=@@@
%%%*)
23720 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
23722 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
23724 rm -f conftest.
make
23726 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23728 $as_echo "yes" >&6; }
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732 $as_echo "no" >&6; }
23733 SET_MAKE
="MAKE=${MAKE-make}"
23736 rm -rf .tst
2>/dev
/null
23737 mkdir .tst
2>/dev
/null
23738 if test -d .tst
; then
23743 rmdir .tst
2>/dev
/null
23745 DEPDIR
="${am__leading_dot}deps"
23747 ac_config_commands
="$ac_config_commands depfiles"
23750 am_make
=${MAKE-make}
23751 cat > confinc
<< 'END'
23753 @
echo this is the am__doit target
23756 # If we don't find an include directive, just comment out the code.
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
23758 $as_echo_n "checking for style of include used by $am_make... " >&6; }
23762 # First try GNU make style include.
23763 echo "include confinc" > confmf
23764 # Ignore all kinds of additional output from `make'.
23765 case `$am_make -s -f confmf 2> /dev/null` in #(
23766 *the\ am__doit\ target
*)
23767 am__include
=include
23772 # Now try BSD make style include.
23773 if test "$am__include" = "#"; then
23774 echo '.include "confinc"' > confmf
23775 case `$am_make -s -f confmf 2> /dev/null` in #(
23776 *the\ am__doit\ target
*)
23777 am__include
=.include
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
23786 $as_echo "$_am_result" >&6; }
23787 rm -f confinc confmf
23789 # Check whether --enable-dependency-tracking was given.
23790 if test "${enable_dependency_tracking+set}" = set; then :
23791 enableval
=$enable_dependency_tracking;
23794 if test "x$enable_dependency_tracking" != xno
; then
23795 am_depcomp
="$ac_aux_dir/depcomp"
23798 if test "x$enable_dependency_tracking" != xno; then
23807 if test "`cd $srcdir && pwd`" != "`pwd`"; then
23808 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23809 # is not polluted with repeated "-I."
23810 am__isrc
=' -I$(srcdir)'
23811 # test to see if srcdir already configured
23812 if test -f $srcdir/config.status
; then
23813 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
23817 # test whether we have cygpath
23818 if test -z "$CYGPATH_W"; then
23819 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
23820 CYGPATH_W
='cygpath -w'
23827 # Define the identity of the package.
23829 VERSION
=UNUSED-VERSION
23832 # Some tools Automake needs.
23834 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23837 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
23840 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23843 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
23846 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
23848 # We need awk for the "check" target. The system "awk" is bad on
23850 # Always define AMTAR for backward compatibility.
23852 AMTAR
=${AMTAR-"${am_missing_run}tar"}
23854 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
23859 depcc
="$CC" am_compiler_list
=
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23862 $as_echo_n "checking dependency style of $depcc... " >&6; }
23863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23867 # We make a subdir and do the tests there. Otherwise we can end up
23868 # making bogus files that we don't know about and never remove. For
23869 # instance it was reported that on HP-UX the gcc test will end up
23870 # making a dummy file named `D' -- because `-MD' means `put the output
23873 # Copy depcomp to subdir because otherwise we won't find it if we're
23874 # using a relative directory.
23875 cp "$am_depcomp" conftest.dir
23877 # We will build objects and dependencies in a subdirectory because
23878 # it helps to detect inapplicable dependency modes. For instance
23879 # both Tru64's cc and ICC support -MD to output dependencies as a
23880 # side effect of compilation, but ICC will put the dependencies in
23881 # the current directory while Tru64 will put them in the object
23885 am_cv_CC_dependencies_compiler_type
=none
23886 if test "$am_compiler_list" = ""; then
23887 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23889 am__universal
=false
23890 case " $depcc " in #(
23891 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
23894 for depmode
in $am_compiler_list; do
23895 # Setup a source with many dependencies, because some compilers
23896 # like to wrap large dependency lists on column 80 (with \), and
23897 # we should not choose a depcomp mode which is confused by this.
23899 # We need to recreate these files for each test, as the compiler may
23900 # overwrite some of them when testing with obscure command lines.
23901 # This happens at least with the AIX C compiler.
23903 for i
in 1 2 3 4 5 6; do
23904 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
23905 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23906 # Solaris 8's {/usr,}/bin/sh.
23907 touch sub
/conftst
$i.h
23909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23912 # mode. It turns out that the SunPro C++ compiler does not properly
23913 # handle `-M -o', and we need to detect this. Also, some Intel
23914 # versions had trouble with output in subdirs
23915 am__obj
=sub
/conftest.
${OBJEXT-o}
23916 am__minus_obj
="-o $am__obj"
23919 # This depmode causes a compiler race in universal mode.
23920 test "$am__universal" = false ||
continue
23923 # after this tag, mechanisms are not by side-effect, so they'll
23924 # only be used when explicitly requested
23925 if test "x$enable_dependency_tracking" = xyes
; then
23931 msvisualcpp | msvcmsys
)
23932 # This compiler won't grok `-c -o', but also, the minuso test has
23933 # not run yet. These depmodes are late enough in the game, and
23934 # so weak that their functioning should not be impacted.
23935 am__obj
=conftest.
${OBJEXT-o}
23940 if depmode
=$depmode \
23941 source=sub
/conftest.c object
=$am__obj \
23942 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
23943 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
23944 >/dev
/null
2>conftest.err
&&
23945 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
23946 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
23947 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
23948 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
23949 # icc doesn't choke on unknown options, it will just issue warnings
23950 # or remarks (even with -Werror). So we grep stderr for any message
23951 # that says an option was ignored or not supported.
23952 # When given -MP, icc 7.0 and 7.1 complain thusly:
23953 # icc: Command line warning: ignoring option '-M'; no argument required
23954 # The diagnosis changed in icc 8.0:
23955 # icc: Command line remark: option '-MP' not supported
23956 if (grep 'ignoring option' conftest.err ||
23957 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
23958 am_cv_CC_dependencies_compiler_type
=$depmode
23965 rm -rf conftest.dir
23967 am_cv_CC_dependencies_compiler_type
=none
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
23972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
23973 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
23976 test "x$enable_dependency_tracking" != xno \
23977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
23978 am__fastdepCC_TRUE
=
23979 am__fastdepCC_FALSE
='#'
23981 am__fastdepCC_TRUE
='#'
23982 am__fastdepCC_FALSE
=
23988 # Check whether --enable-silent-rules was given.
23989 if test "${enable_silent_rules+set}" = set; then :
23990 enableval
=$enable_silent_rules;
23993 case $enable_silent_rules in
23994 yes) AM_DEFAULT_VERBOSITY
=0;;
23995 no
) AM_DEFAULT_VERBOSITY
=1;;
23996 *) AM_DEFAULT_VERBOSITY
=0;;
24001 # --------------------- #
24002 # Checks for programs. #
24003 # --------------------- #
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
24007 $as_echo_n "checking whether ln -s works... " >&6; }
24009 if test "$LN_S" = "ln -s"; then
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24011 $as_echo "yes" >&6; }
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
24014 $as_echo "no, using $LN_S" >&6; }
24017 if test -n "$ac_tool_prefix"; then
24018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24019 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24021 $as_echo_n "checking for $ac_word... " >&6; }
24022 if test "${ac_cv_prog_RANLIB+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 if test -n "$RANLIB"; then
24026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
24028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24029 for as_dir in $PATH
24032 test -z "$as_dir" && as_dir=.
24033 for ac_exec_ext in '' $ac_executable_extensions; do
24034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24035 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24045 RANLIB=$ac_cv_prog_RANLIB
24046 if test -n "$RANLIB"; then
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
24048 $as_echo "$RANLIB" >&6; }
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24056 if test -z "$ac_cv_prog_RANLIB"; then
24057 ac_ct_RANLIB=$RANLIB
24058 # Extract the first word of "ranlib", so it can be a program name with args.
24059 set dummy ranlib; ac_word=$2
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24061 $as_echo_n "checking for $ac_word... " >&6; }
24062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24065 if test -n "$ac_ct_RANLIB"; then
24066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
24068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24069 for as_dir in $PATH
24072 test -z "$as_dir" && as_dir=.
24073 for ac_exec_ext in '' $ac_executable_extensions; do
24074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24075 ac_cv_prog_ac_ct_RANLIB="ranlib"
24076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
24086 if test -n "$ac_ct_RANLIB"; then
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
24088 $as_echo "$ac_ct_RANLIB" >&6; }
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24091 $as_echo "no" >&6; }
24094 if test "x$ac_ct_RANLIB" = x; then
24097 case $cross_compiling:$ac_tool_warned in
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24101 ac_tool_warned=yes ;;
24103 RANLIB=$ac_ct_RANLIB
24106 RANLIB="$ac_cv_prog_RANLIB"
24110 if test -n "$ac_tool_prefix"; then
24111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
24112 set dummy ${ac_tool_prefix}ar; ac_word=$2
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24114 $as_echo_n "checking for $ac_word... " >&6; }
24115 if test "${ac_cv_prog_AR+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24118 if test -n "$AR"; then
24119 ac_cv_prog_AR="$AR" # Let the user override the test.
24121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24122 for as_dir in $PATH
24125 test -z "$as_dir" && as_dir=.
24126 for ac_exec_ext in '' $ac_executable_extensions; do
24127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24128 ac_cv_prog_AR="${ac_tool_prefix}ar"
24129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24139 if test -n "$AR"; then
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
24141 $as_echo "$AR" >&6; }
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144 $as_echo "no" >&6; }
24149 if test -z "$ac_cv_prog_AR"; then
24151 # Extract the first word of "ar", so it can be a program name with args.
24152 set dummy ar; ac_word=$2
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24154 $as_echo_n "checking for $ac_word... " >&6; }
24155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 if test -n "$ac_ct_AR"; then
24159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
24161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24165 test -z "$as_dir" && as_dir=.
24166 for ac_exec_ext in '' $ac_executable_extensions; do
24167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24168 ac_cv_prog_ac_ct_AR="ar"
24169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
24179 if test -n "$ac_ct_AR"; then
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
24181 $as_echo "$ac_ct_AR" >&6; }
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24184 $as_echo "no" >&6; }
24187 if test "x$ac_ct_AR" = x; then
24190 case $cross_compiling:$ac_tool_warned in
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24194 ac_tool_warned=yes ;;
24199 AR="$ac_cv_prog_AR"
24203 # ---------------------- #
24204 # Checks for libraries. #
24205 # ---------------------- #
24207 ac_config_files="$ac_config_files Makefile import/Makefile"
24209 ac_config_commands="$ac_config_commands default"
24211 cat >confcache <<\_ACEOF
24212 # This file is a shell script that caches the results of configure
24213 # tests run on this system so they can be shared between configure
24214 # scripts and configure runs, see configure's option
--config-cache.
24215 # It is not useful on other systems. If it contains results you don't
24216 # want to keep, you may remove or edit it.
24218 # config.status only pays attention to the cache file if you give it
24219 # the --recheck option to rerun configure.
24221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24223 # following values.
24227 # The following way of writing the cache mishandles newlines in values,
24228 # but we know of no workaround that is simple, portable, and efficient.
24229 # So, we kill variables containing newlines.
24230 # Ultrix sh set writes to stderr and can't be redirected directly,
24231 # and sets the high bit in the cache file unless we assign to the vars.
24233 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24234 eval ac_val
=\$
$ac_var
24238 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24242 _ | IFS | as_nl
) ;; #(
24243 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24244 *) { eval $ac_var=; unset $ac_var;} ;;
24250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24251 *${as_nl}ac_space
=\
*)
24252 # `set' does not quote correctly, so add quotes: double-quote
24253 # substitution turns \\\\ into \\, and sed turns \\ into \.
24256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24259 # `set' quotes correctly as required by POSIX, so do not add quotes.
24260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24273 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24274 if test -w "$cache_file"; then
24275 test "x$cache_file" != "x/dev/null" &&
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24277 $as_echo "$as_me: updating cache $cache_file" >&6;}
24278 cat confcache
>$cache_file
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24286 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24287 # Let make expand exec_prefix.
24288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24290 DEFS
=-DHAVE_CONFIG_H
24294 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24295 # 1. Remove the extension, and $U if already installed.
24296 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24297 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24299 # will be set to the directory where LIBOBJS objects are built.
24300 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24301 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24303 LIBOBJS
=$ac_libobjs
24305 LTLIBOBJS
=$ac_ltlibobjs
24308 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24309 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
24310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24312 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24313 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24316 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24317 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24320 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
24321 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
24322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24324 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
24325 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
24326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24328 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
24329 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
24330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24332 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
24333 as_fn_error
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
24334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24336 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24337 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24340 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24341 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24344 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24345 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24350 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24351 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24354 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24355 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24361 if test -n "$gl_LIBOBJS"; then
24362 # Remove the extension.
24363 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24364 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24365 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24366 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24369 gl_LIBOBJS
=$gl_libobjs
24371 gl_LTLIBOBJS
=$gl_ltlibobjs
24377 if test -n "$gltests_LIBOBJS"; then
24378 # Remove the extension.
24379 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24380 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24381 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24382 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24385 gltests_LIBOBJS
=$gltests_libobjs
24387 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24390 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24391 as_fn_error
"conditional \"AMDEP\" was never defined.
24392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24394 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24395 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24398 if test -n "$EXEEXT"; then
24400 am__EXEEXT_FALSE
='#'
24402 am__EXEEXT_TRUE
='#'
24407 : ${CONFIG_STATUS=./config.status}
24409 ac_clean_files_save
=$ac_clean_files
24410 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24412 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24414 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24416 # Generated by $as_me.
24417 # Run this file to recreate the current configuration.
24418 # Compiler output produced by configure, useful for debugging
24419 # configure, is in config.log if it exists.
24422 ac_cs_recheck=false
24425 SHELL=\${CONFIG_SHELL-$SHELL}
24428 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24429 ## -------------------- ##
24430 ## M4sh Initialization. ##
24431 ## -------------------- ##
24433 # Be more Bourne compatible
24434 DUALCASE
=1; export DUALCASE
# for MKS sh
24435 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24438 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24439 # is contrary to our usage. Disable this feature.
24440 alias -g '${1+"$@"}'='"$@"'
24441 setopt NO_GLOB_SUBST
24443 case `(set -o) 2>/dev/null` in #(
24455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24456 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24459 # Prefer a ksh shell builtin over an external printf program on Solaris,
24460 # but without wasting forks for bash or zsh.
24461 if test -z "$BASH_VERSION$ZSH_VERSION" \
24462 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24463 as_echo='print
-r --'
24464 as_echo_n='print
-rn --'
24465 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24466 as_echo='printf %s
\n'
24467 as_echo_n='printf %s
'
24469 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24470 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24471 as_echo_n='/usr
/ucb
/echo -n'
24473 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24474 as_echo_n_body='eval
24478 expr "X$arg" : "X\\(.*\\)$as_nl";
24479 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24481 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24483 export as_echo_n_body
24484 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24486 export as_echo_body
24487 as_echo='sh
-c $as_echo_body as_echo
'
24490 # The user is always right.
24491 if test "${PATH_SEPARATOR+set}" != set; then
24493 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24494 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24501 # We need space, tab and new line, in precisely that order. Quoting is
24502 # there to prevent editors from complaining about space-tab.
24503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24504 # splitting by setting IFS to empty value.)
24507 # Find who we are. Look in the path if we contain no directory separator.
24509 *[\\/]* ) as_myself=$0 ;;
24510 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24511 for as_dir in $PATH
24514 test -z "$as_dir" && as_dir=.
24515 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24521 # We did not find ourselves, most probably we were run as `sh COMMAND'
24522 # in which case we are not to be found in the path.
24523 if test "x$as_myself" = x
; then
24526 if test ! -f "$as_myself"; then
24527 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24531 # Unset variables that we do not need and which cause bugs (e.g. in
24532 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24533 # suppresses any "Segmentation fault" message there. '((' could
24534 # trigger a bug in pdksh 5.2.14.
24535 for as_var
in BASH_ENV ENV MAIL MAILPATH
24536 do eval test x\
${$as_var+set} = xset \
24537 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24550 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24553 # as_fn_error ERROR [LINENO LOG_FD]
24554 # ---------------------------------
24555 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24556 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24557 # script with status $?, using 1 if that was 0.
24560 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24562 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24563 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24565 $as_echo "$as_me: error: $1" >&2
24566 as_fn_exit
$as_status
24570 # as_fn_set_status STATUS
24571 # -----------------------
24572 # Set $? to STATUS, without forking.
24573 as_fn_set_status
()
24576 } # as_fn_set_status
24578 # as_fn_exit STATUS
24579 # -----------------
24580 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24584 as_fn_set_status
$1
24590 # Portably unset VAR.
24593 { eval $1=; unset $1;}
24595 as_unset
=as_fn_unset
24596 # as_fn_append VAR VALUE
24597 # ----------------------
24598 # Append the text in VALUE to the end of the definition contained in VAR. Take
24599 # advantage of any shell optimizations that allow amortized linear growth over
24600 # repeated appends, instead of the typical quadratic growth present in naive
24602 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24603 eval 'as_fn_append ()
24614 # as_fn_arith ARG...
24615 # ------------------
24616 # Perform arithmetic evaluation on the ARGs, and store the result in the
24617 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24618 # must be portable across $(()) and expr.
24619 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24620 eval 'as_fn_arith ()
24627 as_val
=`expr "$@" || test $? -eq 1`
24632 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24633 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24639 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24640 as_basename
=basename
24645 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24651 as_me
=`$as_basename -- "$0" ||
24652 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24653 X"$0" : 'X\(//\)$' \| \
24654 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24656 sed '/^.*\/\([^/][^/]*\)\/*$/{
24670 # Avoid depending upon Character Ranges.
24671 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24672 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24673 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24674 as_cr_digits
='0123456789'
24675 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24677 ECHO_C
= ECHO_N
= ECHO_T
=
24678 case `echo -n x` in #(((((
24680 case `echo 'xy\c'` in
24681 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24683 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24690 rm -f conf$$ conf$$.exe conf$$.
file
24691 if test -d conf$$.dir
; then
24692 rm -f conf$$.dir
/conf$$.
file
24695 mkdir conf$$.dir
2>/dev
/null
24697 if (echo >conf$$.
file) 2>/dev
/null
; then
24698 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24700 # ... but there are two gotchas:
24701 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24702 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24703 # In both cases, we have to default to `cp -p'.
24704 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24706 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24714 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24715 rmdir conf$$.dir
2>/dev
/null
24720 # Create "$as_dir" as a directory, including parents if necessary.
24725 -*) as_dir
=.
/$as_dir;;
24727 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24731 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24732 *) as_qdir
=$as_dir;;
24734 as_dirs
="'$as_qdir' $as_dirs"
24735 as_dir
=`$as_dirname -- "$as_dir" ||
24736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24737 X"$as_dir" : 'X\(//\)[^/]' \| \
24738 X"$as_dir" : 'X\(//\)$' \| \
24739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24740 $as_echo X"$as_dir" |
24741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24745 /^X\(\/\/\)[^/].*/{
24758 test -d "$as_dir" && break
24760 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24761 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24765 if mkdir
-p .
2>/dev
/null
; then
24766 as_mkdir_p
='mkdir -p "$as_dir"'
24768 test -d .
/-p && rmdir .
/-p
24772 if test -x / >/dev
/null
2>&1; then
24773 as_test_x
='test -x'
24775 if ls -dL / >/dev
/null
2>&1; then
24782 if test -d "$1"; then
24788 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24789 ???[sx]*):;;*)false;;esac;fi
24793 as_executable_p
=$as_test_x
24795 # Sed expression to map a string onto a valid CPP name.
24796 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24798 # Sed expression to map a string onto a valid variable name.
24799 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24803 ## ----------------------------------- ##
24804 ## Main body of $CONFIG_STATUS script. ##
24805 ## ----------------------------------- ##
24807 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24810 # Save the log message, to keep $0 and so on meaningful, and to
24811 # report actual input values of CONFIG_FILES etc. instead of their
24812 # values after options handling.
24814 This file was extended by $as_me, which was
24815 generated by GNU Autoconf 2.64. Invocation command line was
24817 CONFIG_FILES = $CONFIG_FILES
24818 CONFIG_HEADERS = $CONFIG_HEADERS
24819 CONFIG_LINKS = $CONFIG_LINKS
24820 CONFIG_COMMANDS = $CONFIG_COMMANDS
24823 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24828 case $ac_config_files in *"
24829 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24832 case $ac_config_headers in *"
24833 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24838 # Files that config.status was made for.
24839 config_files="$ac_config_files"
24840 config_headers="$ac_config_headers"
24841 config_commands="$ac_config_commands"
24845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24847 \`$as_me' instantiates files and other configuration actions
24848 from templates according to the current configuration. Unless the files
24849 and actions are specified as TAGs, all are instantiated by default.
24851 Usage: $0 [OPTION]... [TAG]...
24853 -h, --help print this help, then exit
24854 -V, --version print version number and configuration settings, then exit
24855 -q, --quiet, --silent
24856 do not print progress messages
24857 -d, --debug don't remove temporary files
24858 --recheck update $as_me by reconfiguring in the same conditions
24859 --file=FILE[:TEMPLATE]
24860 instantiate the configuration file FILE
24861 --header=FILE[:TEMPLATE]
24862 instantiate the configuration header FILE
24864 Configuration files:
24867 Configuration headers:
24870 Configuration commands:
24873 Report bugs to the package provider."
24876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24879 configured by $0, generated by GNU Autoconf 2.64,
24880 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24882 Copyright (C) 2009 Free Software Foundation, Inc.
24883 This config.status script is free software; the Free Software Foundation
24884 gives unlimited permission to copy, distribute and modify it."
24891 test -n "\$AWK" || AWK=awk
24894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24895 # The default lists apply if the user does not specify any file.
24901 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24902 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24913 # Handling of the options.
24914 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24916 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24917 $as_echo "$ac_cs_version"; exit ;;
24918 --debug |
--debu |
--deb |
--de |
--d |
-d )
24920 --file |
--fil |
--fi |
--f )
24923 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24925 as_fn_append CONFIG_FILES
" '$ac_optarg'"
24926 ac_need_defaults
=false
;;
24927 --header |
--heade |
--head |
--hea )
24930 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24932 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
24933 ac_need_defaults
=false
;;
24935 # Conflict between --help and --header
24936 as_fn_error
"ambiguous option: \`$1'
24937 Try \`$0 --help' for more information.";;
24938 --help |
--hel |
-h )
24939 $as_echo "$ac_cs_usage"; exit ;;
24940 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24941 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24944 # This is an error.
24945 -*) as_fn_error
"unrecognized option: \`$1'
24946 Try \`$0 --help' for more information." ;;
24948 *) as_fn_append ac_config_targets
" $1"
24949 ac_need_defaults
=false
;;
24955 ac_configure_extra_args
=
24957 if $ac_cs_silent; then
24959 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24964 if \$ac_cs_recheck; then
24965 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24968 CONFIG_SHELL='$SHELL'
24969 export CONFIG_SHELL
24974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24979 ## Running $as_me. ##
24985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24995 # Handling of arguments.
24996 for ac_config_target
in $ac_config_targets
24998 case $ac_config_target in
24999 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
25000 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25001 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25002 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
25003 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25005 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25010 # If the user did not use the arguments to specify the items to instantiate,
25011 # then the envvar interface is used. Set only those that are not.
25012 # We use the long form for the default assignment because of an extremely
25013 # bizarre bug on SunOS 4.1.3.
25014 if $ac_need_defaults; then
25015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25020 # Have a temporary directory for convenience. Make it in the build tree
25021 # simply because there is no reason against having it here, and in addition,
25022 # creating and moving files from /tmp can sometimes cause problems.
25023 # Hook for its removal unless debugging.
25024 # Note that there is a small window in which the directory will not be cleaned:
25025 # after its creation but before its name has been assigned to `$tmp'.
25029 trap 'exit_status=$?
25030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25032 trap 'as_fn_exit 1' 1 2 13 15
25034 # Create a (secure) tmp directory for tmp files.
25037 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25038 test -n "$tmp" && test -d "$tmp"
25041 tmp
=.
/conf$$
-$RANDOM
25042 (umask 077 && mkdir
"$tmp")
25043 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25045 # Set up the scripts for CONFIG_FILES section.
25046 # No need to generate them if there are no CONFIG_FILES.
25047 # This happens for instance with `./config.status config.h'.
25048 if test -n "$CONFIG_FILES"; then
25051 ac_cr
=`echo X | tr X '\015'`
25052 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25053 # But we know of no other shell where ac_cr would be empty at this
25054 # point, so we can use a bashism as a fallback.
25055 if test "x$ac_cr" = x
; then
25056 eval ac_cr
=\$
\'\\r
\'
25058 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25059 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25062 ac_cs_awk_cr
=$ac_cr
25065 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25070 echo "cat >conf$$subs.awk <<_ACEOF" &&
25071 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25073 } >conf$$subs.sh ||
25074 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25075 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25077 for ac_last_try in false false false false false :; do
25078 . ./conf$$subs.sh ||
25079 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25081 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25082 if test $ac_delim_n = $ac_delim_num; then
25084 elif $ac_last_try; then
25085 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25087 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25090 rm -f conf$$subs.sh
25092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25093 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25097 s/^/S["/; s
/!.
*/"]=/
25107 s/\(.\{148\}\).*/\1/
25109 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25114 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25121 s/\(.\{148\}\).*/\1/
25123 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25127 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25132 ' <conf$$subs.awk | sed '
25137 ' >>$CONFIG_STATUS || ac_write_fail=1
25138 rm -f conf$$subs.awk
25139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25141 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25142 for (key in S) S_is_set[key] = 1
25148 nfields = split(line, field, "@
")
25150 len = length(field[1])
25151 for (i = 2; i < nfields; i++) {
25153 keylen = length(key)
25154 if (S_is_set[key]) {
25156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25157 len += length(value) + length(field[++i])
25168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25169 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25170 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25173 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25174 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25177 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25178 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25179 # trailing colons and then remove the whole line if VPATH becomes empty
25180 # (actually we leave an empty line to preserve line numbers).
25181 if test "x
$srcdir" = x.; then
25182 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25183 s/:*\$(srcdir):*/:/
25184 s/:*\${srcdir}:*/:/
25186 s/^\([^=]*=[ ]*\):*/\1/
25192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25193 fi # test -n "$CONFIG_FILES"
25195 # Set up the scripts for CONFIG_HEADERS section.
25196 # No need to generate them if there are no CONFIG_HEADERS.
25197 # This happens for instance with `./config.status Makefile'.
25198 if test -n "$CONFIG_HEADERS"; then
25199 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25203 # Transform confdefs.h into an awk script `defines.awk', embedded as
25204 # here-document in config.status, that substitutes the proper values into
25205 # config.h.in to produce config.h.
25207 # Create a delimiter string that does not exist in confdefs.h, to ease
25208 # handling of long lines.
25210 for ac_last_try in false false :; do
25211 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25212 if test -z "$ac_t"; then
25214 elif $ac_last_try; then
25215 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25217 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25221 # For the awk script, D is an array of macro values keyed by name,
25222 # likewise P contains macro parameters if any. Preserve backslash
25223 # newline sequences.
25225 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25227 s/.\{148\}/&'"$ac_delim"'/g
25230 s/^[ ]*#[ ]*define[ ][ ]*/ /
25237 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25239 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25244 D["\
1"]=" \
3\\\\\\n
"\\/p
25246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25251 s/.\{148\}/&'"$ac_delim"'/g
25256 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25259 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25261 ' <confdefs.h | sed '
25262 s/'"$ac_delim"'/"\\\
25263 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25266 for (key in D) D_is_set[key] = 1
25269 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25271 split(line, arg, " ")
25272 if (arg[1] == "#") {
25276 defundef
= substr
(arg
[1], 2)
25279 split(mac1
, mac2
, "(") #)
25281 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25282 if (D_is_set
[macro
]) {
25283 # Preserve the white space surrounding the "#".
25284 print prefix
"define", macro P
[macro
] D
[macro
]
25287 # Replace #undef with comments. This is necessary, for example,
25288 # in the case of _POSIX_SOURCE, which is predefined and required
25289 # on some systems where configure will not decide to define it.
25290 if (defundef
== "undef") {
25291 print
"/*", prefix defundef
, macro
, "*/"
25299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25300 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25301 fi # test -n "$CONFIG_HEADERS"
25304 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25309 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25311 case $ac_mode$ac_tag in
25313 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25314 :[FH
]-) ac_tag
=-:-;;
25315 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25332 -) ac_f
="$tmp/stdin";;
25333 *) # Look for the file first in the build tree, then in the source tree
25334 # (if the path is not absolute). The absolute path cannot be DOS-style,
25335 # because $ac_f cannot contain `:'.
25339 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25341 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25343 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25344 as_fn_append ac_file_inputs
" '$ac_f'"
25347 # Let's still pretend it is `configure' which instantiates (i.e., don't
25348 # use $as_me), people would be surprised to read:
25349 # /* config.h. Generated by config.status. */
25350 configure_input
='Generated from '`
25351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25353 if test x
"$ac_file" != x-
; then
25354 configure_input
="$ac_file. $configure_input"
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25356 $as_echo "$as_me: creating $ac_file" >&6;}
25358 # Neutralize special characters interpreted by sed in replacement strings.
25359 case $configure_input in #(
25360 *\
&* |
*\|
* |
*\\* )
25361 ac_sed_conf_input
=`$as_echo "$configure_input" |
25362 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25363 *) ac_sed_conf_input
=$configure_input;;
25367 *:-:* |
*:-) cat >"$tmp/stdin" \
25368 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25373 ac_dir
=`$as_dirname -- "$ac_file" ||
25374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25375 X"$ac_file" : 'X\(//\)[^/]' \| \
25376 X"$ac_file" : 'X\(//\)$' \| \
25377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25378 $as_echo X"$ac_file" |
25379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25383 /^X\(\/\/\)[^/].*/{
25396 as_dir
="$ac_dir"; as_fn_mkdir_p
25400 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25402 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25403 # A ".." for each directory in $ac_dir_suffix.
25404 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25405 case $ac_top_builddir_sub in
25406 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25407 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25410 ac_abs_top_builddir
=$ac_pwd
25411 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25412 # for backward compatibility:
25413 ac_top_builddir
=$ac_top_build_prefix
25416 .
) # We are building in place.
25418 ac_top_srcdir
=$ac_top_builddir_sub
25419 ac_abs_top_srcdir
=$ac_pwd ;;
25420 [\\/]* | ?
:[\\/]* ) # Absolute name.
25421 ac_srcdir
=$srcdir$ac_dir_suffix;
25422 ac_top_srcdir
=$srcdir
25423 ac_abs_top_srcdir
=$srcdir ;;
25424 *) # Relative name.
25425 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25426 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25427 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25429 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25439 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25440 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25442 ac_MKDIR_P
=$MKDIR_P
25444 [\\/$
]* | ?
:[\\/]* ) ;;
25445 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25450 # If the template does not know about datarootdir, expand it.
25451 # FIXME: This hack should be removed a few years after 2.60.
25452 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25463 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25464 *datarootdir
*) ac_datarootdir_seen
=yes;;
25465 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25467 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25470 ac_datarootdir_hack='
25471 s&@datadir@&$datadir&g
25472 s&@docdir@&$docdir&g
25473 s&@infodir@&$infodir&g
25474 s&@localedir@&$localedir&g
25475 s&@mandir@&$mandir&g
25476 s&\\\${datarootdir}&$datarootdir&g' ;;
25480 # Neutralize VPATH when `$srcdir' = `.'.
25481 # Shell code in configure.ac might set extrasub.
25482 # FIXME: do we really want to maintain this feature?
25483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25484 ac_sed_extra="$ac_vpsub
25487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25489 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25490 s|@configure_input@|
$ac_sed_conf_input|
;t t
25491 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25492 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25493 s
&@srcdir@
&$ac_srcdir&;t t
25494 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25495 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25496 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25497 s
&@builddir@
&$ac_builddir&;t t
25498 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25499 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25500 s
&@INSTALL@
&$ac_INSTALL&;t t
25501 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25502 $ac_datarootdir_hack
25504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
25505 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25508 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25511 which seems to be undefined. Please make sure it is defined." >&5
25512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25513 which seems to be undefined. Please make sure it is defined." >&2;}
25517 -) cat "$tmp/out" && rm -f "$tmp/out";;
25518 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25520 || as_fn_error "could not create $ac_file" "$LINENO" 5
25526 if test x"$ac_file" != x-; then
25528 $as_echo "/* $configure_input */" \
25529 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25530 } >"$tmp/config.h" \
25531 || as_fn_error "could not create $ac_file" "$LINENO" 5
25532 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25537 mv "$tmp/config.h" "$ac_file" \
25538 || as_fn_error "could not create $ac_file" "$LINENO" 5
25541 $as_echo "/* $configure_input */" \
25542 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25543 || as_fn_error "could not create -" "$LINENO" 5
25545 # Compute "$ac_file"'s index
in $config_headers.
25548 for _am_header
in $config_headers :; do
25549 case $_am_header in
25550 $_am_arg |
$_am_arg:* )
25553 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25558 X"$_am_arg" : 'X\(//\)[^/]' \| \
25559 X"$_am_arg" : 'X\(//\)$' \| \
25560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25561 $as_echo X"$_am_arg" |
25562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25566 /^X\(\/\/\)[^/].*/{
25578 s/.*/./; q'`/stamp-h
$_am_stamp_count
25581 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25582 $as_echo "$as_me: executing $ac_file commands" >&6;}
25587 case $ac_file$ac_mode in
25588 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25589 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25590 # are listed without --file. Let's play safe and only enable the eval
25591 # if we detect the quoting.
25592 case $CONFIG_FILES in
25593 *\'*) eval set x
"$CONFIG_FILES" ;;
25594 *) set x
$CONFIG_FILES ;;
25599 # Strip MF so we end up with the name of the file.
25600 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25601 # Check whether this is an Automake generated Makefile or not.
25602 # We used to match only the files named `Makefile.in', but
25603 # some people rename them; so instead we look at the file content.
25604 # Grep'ing the first line is not enough: some people post-process
25605 # each Makefile.in and add a new line on top of each file to say so.
25606 # Grep'ing the whole file is not good either: AIX grep has a line
25607 # limit of 2048, but all sed's we know have understand at least 4000.
25608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25609 dirpart
=`$as_dirname -- "$mf" ||
25610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25611 X"$mf" : 'X\(//\)[^/]' \| \
25612 X"$mf" : 'X\(//\)$' \| \
25613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25619 /^X\(\/\/\)[^/].*/{
25635 # Extract the definition of DEPDIR, am__include, and am__quote
25636 # from the Makefile without running `make'.
25637 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25638 test -z "$DEPDIR" && continue
25639 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25640 test -z "am__include" && continue
25641 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25642 # When using ansi2knr, U may be empty or an underscore; expand it
25643 U
=`sed -n 's/^U = //p' < "$mf"`
25644 # Find all dependency output files, they are included files with
25645 # $(DEPDIR) in their names. We invoke sed twice because it is the
25646 # simplest approach to changing $(DEPDIR) to its actual value in the
25648 for file in `sed -n "
25649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25651 # Make sure the directory exists.
25652 test -f "$dirpart/$file" && continue
25653 fdir
=`$as_dirname -- "$file" ||
25654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25655 X"$file" : 'X\(//\)[^/]' \| \
25656 X"$file" : 'X\(//\)$' \| \
25657 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25658 $as_echo X"$file" |
25659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25663 /^X\(\/\/\)[^/].*/{
25676 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25677 # echo "creating $dirpart/$file"
25678 echo '# dummy' > "$dirpart/$file"
25684 case x
$CONFIG_HEADERS in
25685 xconfig.h
:config.
in)
25696 ac_clean_files
=$ac_clean_files_save
25698 test $ac_write_fail = 0 ||
25699 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25702 # configure is writing to config.log, and then calls config.status.
25703 # config.status does its own redirection, appending to config.log.
25704 # Unfortunately, on DOS this fails, as config.log is still kept open
25705 # by configure, so config.status won't be able to write to it; its
25706 # output is simply discarded. So we exec the FD to /dev/null,
25707 # effectively closing config.log, so it can be properly (re)opened and
25708 # appended to by config.status. When coming back to configure, we
25709 # need to make the FD available again.
25710 if test "$no_create" != yes; then
25712 ac_config_status_args
=
25713 test "$silent" = yes &&
25714 ac_config_status_args
="$ac_config_status_args --quiet"
25716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25719 # would make configure fail if this is the last instruction.
25720 $ac_cs_success || as_fn_exit $?
25722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}