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
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 UNISTD_H_DEFINES_STRUCT_TIMESPEC
660 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
661 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
662 TIME_H_DEFINES_STRUCT_TIMESPEC
663 NEXT_AS_FIRST_DIRECTIVE_TIME_H
674 HAVE_DECL_LOCALTIME_R
682 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
685 NEXT_AS_FIRST_DIRECTIVE_STRING_H
687 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
689 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
691 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
693 GL_GENERATE_STDDEF_H_FALSE
694 GL_GENERATE_STDDEF_H_TRUE
700 GL_GENERATE_STDBOOL_H_FALSE
701 GL_GENERATE_STDBOOL_H_TRUE
703 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
706 REPLACE_PTHREAD_SIGMASK
708 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
709 HAVE_STRUCT_SIGACTION_SA_SIGACTION
715 HAVE_POSIX_SIGNALBLOCKING
718 GNULIB_SIGNAL_H_SIGPIPE
720 GNULIB_PTHREAD_SIGMASK
728 REPLACE_STDIO_WRITE_FUNCS
729 REPLACE_STDIO_READ_FUNCS
738 REPLACE_OBSTACK_PRINTF
763 HAVE_DECL_OBSTACK_PRINTF
769 GNULIB_VSPRINTF_POSIX
773 GNULIB_VFPRINTF_POSIX
780 GNULIB_STDIO_H_SIGPIPE
781 GNULIB_STDIO_H_NONBLOCKING
796 GNULIB_OBSTACK_PRINTF_POSIX
797 GNULIB_OBSTACK_PRINTF
990 NEXT_AS_FIRST_DIRECTIVE_MATH_H
992 LOCALCHARSET_TESTS_ENVIRONMENT
994 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
996 UINT64_MAX_EQ_ULONG_MAX
997 UINT32_MAX_LT_UINTMAX_MAX
1000 INT64_MAX_EQ_LONG_MAX
1001 INT32_MAX_LT_INTMAX_MAX
1012 GL_GENERATE_STDINT_H_FALSE
1013 GL_GENERATE_STDINT_H_TRUE
1025 HAVE_SIGNED_SIG_ATOMIC_T
1028 BITSIZEOF_SIG_ATOMIC_T
1031 APPLE_UNIVERSAL_BUILD
1033 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1038 HAVE_UNSIGNED_LONG_LONG_INT
1040 GL_GENERATE_LIMITS_H_FALSE
1041 GL_GENERATE_LIMITS_H_TRUE
1043 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1046 GL_GENERATE_GLOB_H_FALSE
1047 GL_GENERATE_GLOB_H_TRUE
1049 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1051 REPLACE_STRUCT_TIMEVAL
1052 REPLACE_GETTIMEOFDAY
1060 WINDOWS_64_BIT_ST_SIZE
1061 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1097 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1103 REPLACE_SIGNBIT_USING_GCC
1172 HAVE_DECL_REMAINDERL
1353 GL_GENERATE_FNMATCH_H_FALSE
1354 GL_GENERATE_FNMATCH_H_TRUE
1357 GL_GENERATE_FLOAT_H_FALSE
1358 GL_GENERATE_FLOAT_H_TRUE
1360 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1362 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1379 GL_GENERATE_ERRNO_H_FALSE
1380 GL_GENERATE_ERRNO_H_TRUE
1382 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1385 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1388 PRAGMA_SYSTEM_HEADER
1389 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1416 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1417 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1418 UNISTD_H_HAVE_WINSOCK2_H
1441 REPLACE_GETDTABLESIZE
1442 REPLACE_GETDOMAINNAME
1453 HAVE_DECL_SETHOSTNAME
1454 HAVE_DECL_GETUSERSHELL
1455 HAVE_DECL_GETPAGESIZE
1456 HAVE_DECL_GETLOGIN_R
1457 HAVE_DECL_GETDOMAINNAME
1496 GNULIB_UNISTD_H_SIGPIPE
1497 GNULIB_UNISTD_H_NONBLOCKING
1523 GNULIB_GETDTABLESIZE
1524 GNULIB_GETDOMAINNAME
1554 REPLACE_CANONICALIZE_FILE_NAME
1559 HAVE_STRUCT_RANDOM_DATA
1582 HAVE_DECL_GETLOADAVG
1583 HAVE_CANONICALIZE_FILE_NAME
1594 GNULIB_SECURE_GETENV
1597 GNULIB_REALLOC_POSIX
1615 GNULIB_CANONICALIZE_FILE_NAME
1619 GL_GENERATE_ALLOCA_H_FALSE
1620 GL_GENERATE_ALLOCA_H_TRUE
1623 GL_COND_LIBTOOL_FALSE
1624 GL_COND_LIBTOOL_TRUE
1651 MAINTAINER_MODE_FALSE
1652 MAINTAINER_MODE_TRUE
1680 program_transform_name
1693 enable_option_checking
1694 enable_maintainer_mode
1696 enable_dependency_tracking
1698 ac_precious_vars
='build_alias
1709 # Initialize some variables set by options.
1711 ac_init_version
=false
1712 ac_unrecognized_opts
=
1713 ac_unrecognized_sep
=
1714 # The variables have the same names as the options, with
1715 # dashes changed to underlines.
1716 cache_file
=/dev
/null
1723 program_transform_name
=s
,x
,x
,
1731 # Installation directory options.
1732 # These are left unexpanded so users can "make install exec_prefix=/foo"
1733 # and all the variables that are supposed to be based on exec_prefix
1734 # by default will actually change.
1735 # Use braces instead of parens because sh, perl, etc. also accept them.
1736 # (The list follows the same order as the GNU Coding Standards.)
1737 bindir
='${exec_prefix}/bin'
1738 sbindir
='${exec_prefix}/sbin'
1739 libexecdir
='${exec_prefix}/libexec'
1740 datarootdir
='${prefix}/share'
1741 datadir
='${datarootdir}'
1742 sysconfdir
='${prefix}/etc'
1743 sharedstatedir
='${prefix}/com'
1744 localstatedir
='${prefix}/var'
1745 includedir
='${prefix}/include'
1746 oldincludedir
='/usr/include'
1747 docdir
='${datarootdir}/doc/${PACKAGE}'
1748 infodir
='${datarootdir}/info'
1753 libdir
='${exec_prefix}/lib'
1754 localedir
='${datarootdir}/locale'
1755 mandir
='${datarootdir}/man'
1761 # If the previous option needs an argument, assign it.
1762 if test -n "$ac_prev"; then
1763 eval $ac_prev=\
$ac_option
1769 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1773 # Accept the important Cygnus configure options, so we can diagnose typos.
1775 case $ac_dashdash$ac_option in
1779 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1781 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1782 bindir
=$ac_optarg ;;
1784 -build |
--build |
--buil |
--bui |
--bu)
1785 ac_prev
=build_alias
;;
1786 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1787 build_alias
=$ac_optarg ;;
1789 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1790 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1791 ac_prev
=cache_file
;;
1792 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1793 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1794 cache_file
=$ac_optarg ;;
1796 --config-cache |
-C)
1797 cache_file
=config.cache
;;
1799 -datadir |
--datadir |
--datadi |
--datad)
1801 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1802 datadir
=$ac_optarg ;;
1804 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1805 |
--dataroo |
--dataro |
--datar)
1806 ac_prev
=datarootdir
;;
1807 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1808 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1809 datarootdir
=$ac_optarg ;;
1811 -disable-* |
--disable-*)
1812 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1815 as_fn_error
"invalid feature name: $ac_useropt"
1816 ac_useropt_orig
=$ac_useropt
1817 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1820 "enable_
$ac_useropt"
1822 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1823 ac_unrecognized_sep
=', ';;
1825 eval enable_
$ac_useropt=no
;;
1827 -docdir |
--docdir |
--docdi |
--doc |
--do)
1829 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1830 docdir
=$ac_optarg ;;
1832 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1834 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1835 dvidir
=$ac_optarg ;;
1837 -enable-* |
--enable-*)
1838 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1839 # Reject names that are not valid shell variable names.
1840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1841 as_fn_error
"invalid feature name: $ac_useropt"
1842 ac_useropt_orig
=$ac_useropt
1843 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1844 case $ac_user_opts in
1846 "enable_
$ac_useropt"
1848 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1849 ac_unrecognized_sep
=', ';;
1851 eval enable_
$ac_useropt=\
$ac_optarg ;;
1853 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1854 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1855 |
--exec |
--exe |
--ex)
1856 ac_prev
=exec_prefix
;;
1857 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1858 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1859 |
--exec=* |
--exe=* |
--ex=*)
1860 exec_prefix
=$ac_optarg ;;
1862 -gas |
--gas |
--ga |
--g)
1863 # Obsolete; use --with-gas.
1866 -help |
--help |
--hel |
--he |
-h)
1867 ac_init_help
=long
;;
1868 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1869 ac_init_help
=recursive
;;
1870 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1871 ac_init_help
=short
;;
1873 -host |
--host |
--hos |
--ho)
1874 ac_prev
=host_alias
;;
1875 -host=* |
--host=* |
--hos=* |
--ho=*)
1876 host_alias
=$ac_optarg ;;
1878 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1880 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1882 htmldir
=$ac_optarg ;;
1884 -includedir |
--includedir |
--includedi |
--included |
--include \
1885 |
--includ |
--inclu |
--incl |
--inc)
1886 ac_prev
=includedir
;;
1887 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1888 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1889 includedir
=$ac_optarg ;;
1891 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1893 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1894 infodir
=$ac_optarg ;;
1896 -libdir |
--libdir |
--libdi |
--libd)
1898 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1899 libdir
=$ac_optarg ;;
1901 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1902 |
--libexe |
--libex |
--libe)
1903 ac_prev
=libexecdir
;;
1904 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1905 |
--libexe=* |
--libex=* |
--libe=*)
1906 libexecdir
=$ac_optarg ;;
1908 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1909 ac_prev
=localedir
;;
1910 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1911 localedir
=$ac_optarg ;;
1913 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1914 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1915 ac_prev
=localstatedir
;;
1916 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1917 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1918 localstatedir
=$ac_optarg ;;
1920 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1922 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1923 mandir
=$ac_optarg ;;
1925 -nfp |
--nfp |
--nf)
1926 # Obsolete; use --without-fp.
1929 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1930 |
--no-cr |
--no-c |
-n)
1933 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1934 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1937 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1938 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1939 |
--oldin |
--oldi |
--old |
--ol |
--o)
1940 ac_prev
=oldincludedir
;;
1941 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1942 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1943 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1944 oldincludedir
=$ac_optarg ;;
1946 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1948 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1949 prefix
=$ac_optarg ;;
1951 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1952 |
--program-pre |
--program-pr |
--program-p)
1953 ac_prev
=program_prefix
;;
1954 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1955 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1956 program_prefix
=$ac_optarg ;;
1958 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1959 |
--program-suf |
--program-su |
--program-s)
1960 ac_prev
=program_suffix
;;
1961 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1962 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1963 program_suffix
=$ac_optarg ;;
1965 -program-transform-name |
--program-transform-name \
1966 |
--program-transform-nam |
--program-transform-na \
1967 |
--program-transform-n |
--program-transform- \
1968 |
--program-transform |
--program-transfor \
1969 |
--program-transfo |
--program-transf \
1970 |
--program-trans |
--program-tran \
1971 |
--progr-tra |
--program-tr |
--program-t)
1972 ac_prev
=program_transform_name
;;
1973 -program-transform-name=* |
--program-transform-name=* \
1974 |
--program-transform-nam=* |
--program-transform-na=* \
1975 |
--program-transform-n=* |
--program-transform-=* \
1976 |
--program-transform=* |
--program-transfor=* \
1977 |
--program-transfo=* |
--program-transf=* \
1978 |
--program-trans=* |
--program-tran=* \
1979 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1980 program_transform_name
=$ac_optarg ;;
1982 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1984 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1985 pdfdir
=$ac_optarg ;;
1987 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1989 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1992 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1993 |
-silent |
--silent |
--silen |
--sile |
--sil)
1996 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1998 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2000 sbindir
=$ac_optarg ;;
2002 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2003 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2004 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2006 ac_prev
=sharedstatedir
;;
2007 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2008 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2009 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2011 sharedstatedir
=$ac_optarg ;;
2013 -site |
--site |
--sit)
2015 -site=* |
--site=* |
--sit=*)
2018 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2020 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2021 srcdir
=$ac_optarg ;;
2023 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2024 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2025 ac_prev
=sysconfdir
;;
2026 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2027 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2028 sysconfdir
=$ac_optarg ;;
2030 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2031 ac_prev
=target_alias
;;
2032 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2033 target_alias
=$ac_optarg ;;
2035 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2038 -version |
--version |
--versio |
--versi |
--vers |
-V)
2039 ac_init_version
=: ;;
2042 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2043 # Reject names that are not valid shell variable names.
2044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2045 as_fn_error
"invalid package name: $ac_useropt"
2046 ac_useropt_orig
=$ac_useropt
2047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2048 case $ac_user_opts in
2052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2053 ac_unrecognized_sep
=', ';;
2055 eval with_
$ac_useropt=\
$ac_optarg ;;
2057 -without-* |
--without-*)
2058 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2059 # Reject names that are not valid shell variable names.
2060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2061 as_fn_error
"invalid package name: $ac_useropt"
2062 ac_useropt_orig
=$ac_useropt
2063 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2064 case $ac_user_opts in
2068 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2069 ac_unrecognized_sep
=', ';;
2071 eval with_
$ac_useropt=no
;;
2074 # Obsolete; use --with-x.
2077 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2078 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2079 ac_prev
=x_includes
;;
2080 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2081 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2082 x_includes
=$ac_optarg ;;
2084 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2085 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2086 ac_prev
=x_libraries
;;
2087 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2088 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2089 x_libraries
=$ac_optarg ;;
2091 -*) as_fn_error
"unrecognized option: \`$ac_option'
2092 Try \`$0 --help' for more information."
2096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2097 # Reject names that are not valid shell variable names.
2098 case $ac_envvar in #(
2099 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2100 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2102 eval $ac_envvar=\
$ac_optarg
2103 export $ac_envvar ;;
2106 # FIXME: should be removed in autoconf 3.0.
2107 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2109 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2116 if test -n "$ac_prev"; then
2117 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2118 as_fn_error
"missing argument to $ac_option"
2121 if test -n "$ac_unrecognized_opts"; then
2122 case $enable_option_checking in
2124 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2125 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2129 # Check all directory arguments for consistency.
2130 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2131 datadir sysconfdir sharedstatedir localstatedir includedir \
2132 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2133 libdir localedir mandir
2135 eval ac_val
=\$
$ac_var
2136 # Remove trailing slashes.
2139 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2140 eval $ac_var=\
$ac_val;;
2142 # Be sure to have absolute directory names.
2144 [\\/$
]* | ?
:[\\/]* ) continue;;
2145 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2147 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2150 # There might be people who depend on the old broken behavior: `$host'
2151 # used to hold the argument of --host etc.
2152 # FIXME: To remove some day.
2155 target
=$target_alias
2157 # FIXME: To remove some day.
2158 if test "x$host_alias" != x
; then
2159 if test "x$build_alias" = x
; then
2160 cross_compiling
=maybe
2161 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2162 If a cross compiler is detected then cross compile mode will be used." >&2
2163 elif test "x$build_alias" != "x$host_alias"; then
2169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2171 test "$silent" = yes && exec 6>/dev
/null
2174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2175 ac_ls_di
=`ls -di .` &&
2176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2177 as_fn_error
"working directory cannot be determined"
2178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2179 as_fn_error
"pwd does not report name of working directory"
2182 # Find the source files, if location was not specified.
2183 if test -z "$srcdir"; then
2184 ac_srcdir_defaulted
=yes
2185 # Try the directory containing this script, then the parent directory.
2186 ac_confdir
=`$as_dirname -- "$as_myself" ||
2187 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2188 X"$as_myself" : 'X\(//\)[^/]' \| \
2189 X"$as_myself" : 'X\(//\)$' \| \
2190 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2191 $as_echo X"$as_myself" |
2192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2210 if test ! -r "$srcdir/$ac_unique_file"; then
2214 ac_srcdir_defaulted
=no
2216 if test ! -r "$srcdir/$ac_unique_file"; then
2217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2218 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2220 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2222 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2224 # When building in place, set srcdir=.
2225 if test "$ac_abs_confdir" = "$ac_pwd"; then
2228 # Remove unnecessary trailing slashes from srcdir.
2229 # Double slashes in file names in object file debugging info
2230 # mess up M-x gdb in Emacs.
2232 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2234 for ac_var
in $ac_precious_vars; do
2235 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2236 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2237 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2238 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2242 # Report the --help message.
2244 if test "$ac_init_help" = "long"; then
2245 # Omit some internal or obsolete options to make the list less imposing.
2246 # This message is too long to be a string in the A/UX 3.1 sh.
2248 \`configure' configures this package to adapt to many kinds of systems.
2250 Usage: $0 [OPTION]... [VAR=VALUE]...
2252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2253 VAR=VALUE. See below for descriptions of some of the useful variables.
2255 Defaults for the options are specified in brackets.
2258 -h, --help display this help and exit
2259 --help=short display options specific to this package
2260 --help=recursive display the short help of all the included packages
2261 -V, --version display version information and exit
2262 -q, --quiet, --silent do not print \`checking...' messages
2263 --cache-file=FILE cache test results in FILE [disabled]
2264 -C, --config-cache alias for \`--cache-file=config.cache'
2265 -n, --no-create do not create output files
2266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2268 Installation directories:
2269 --prefix=PREFIX install architecture-independent files in PREFIX
2270 [$ac_default_prefix]
2271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2274 By default, \`make install' will install all the files in
2275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2277 for instance \`--prefix=\$HOME'.
2279 For better control, use the options below.
2281 Fine tuning of the installation directories:
2282 --bindir=DIR user executables [EPREFIX/bin]
2283 --sbindir=DIR system admin executables [EPREFIX/sbin]
2284 --libexecdir=DIR program executables [EPREFIX/libexec]
2285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2288 --libdir=DIR object code libraries [EPREFIX/lib]
2289 --includedir=DIR C header files [PREFIX/include]
2290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2293 --infodir=DIR info documentation [DATAROOTDIR/info]
2294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2295 --mandir=DIR man documentation [DATAROOTDIR/man]
2296 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2297 --htmldir=DIR html documentation [DOCDIR]
2298 --dvidir=DIR dvi documentation [DOCDIR]
2299 --pdfdir=DIR pdf documentation [DOCDIR]
2300 --psdir=DIR ps documentation [DOCDIR]
2306 --program-prefix=PREFIX prepend PREFIX to installed program names
2307 --program-suffix=SUFFIX append SUFFIX to installed program names
2308 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2311 --build=BUILD configure
for building on BUILD
[guessed
]
2312 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2313 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2317 if test -n "$ac_init_help"; then
2322 --disable-option-checking ignore unrecognized
--enable/--with options
2323 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2324 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2325 --enable-maintainer-mode enable make rules and dependencies not useful
2326 (and sometimes confusing
) to the casual installer
2327 --disable-largefile omit support
for large files
2328 --disable-dependency-tracking speeds up one-time build
2329 --enable-dependency-tracking do not reject slow dependency extractors
2331 Some influential environment variables
:
2332 CC C compiler
command
2333 CFLAGS C compiler flags
2334 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2335 nonstandard directory
<lib dir
>
2336 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2337 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2338 you have headers
in a nonstandard directory
<include dir
>
2341 Use these variables to override the choices made by
`configure' or to help
2342 it to find libraries and programs with nonstandard names/locations.
2344 Report bugs to the package provider.
2349 if test "$ac_init_help" = "recursive"; then
2350 # If there are subdirs, report their specific --help.
2351 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2352 test -d "$ac_dir" ||
2353 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2360 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2361 # A ".." for each directory in $ac_dir_suffix.
2362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2363 case $ac_top_builddir_sub in
2364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2368 ac_abs_top_builddir=$ac_pwd
2369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2370 # for backward compatibility:
2371 ac_top_builddir=$ac_top_build_prefix
2374 .) # We are building in place.
2376 ac_top_srcdir=$ac_top_builddir_sub
2377 ac_abs_top_srcdir=$ac_pwd ;;
2378 [\\/]* | ?:[\\/]* ) # Absolute name.
2379 ac_srcdir=$srcdir$ac_dir_suffix;
2380 ac_top_srcdir=$srcdir
2381 ac_abs_top_srcdir=$srcdir ;;
2383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2384 ac_top_srcdir=$ac_top_build_prefix$srcdir
2385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2389 cd "$ac_dir" || { ac_status=$?; continue; }
2390 # Check for guested configure.
2391 if test -f "$ac_srcdir/configure.gnu"; then
2393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2394 elif test -f "$ac_srcdir/configure"; then
2396 $SHELL "$ac_srcdir/configure" --help=recursive
2398 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2400 cd "$ac_pwd" || { ac_status=$?; break; }
2404 test -n "$ac_init_help" && exit $ac_status
2405 if $ac_init_version; then
2408 generated by GNU Autoconf 2.64
2410 Copyright (C) 2009 Free Software Foundation, Inc.
2411 This configure script is free software; the Free Software Foundation
2412 gives unlimited permission to copy, distribute and modify it.
2417 ## ------------------------ ##
2418 ## Autoconf initialization. ##
2419 ## ------------------------ ##
2421 # ac_fn_c_try_compile LINENO
2422 # --------------------------
2423 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2424 ac_fn_c_try_compile ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 rm -f conftest.$ac_objext
2428 if { { ac_try="$ac_compile"
2430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2431 *) ac_try_echo
=$ac_try;;
2433 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_compile") 2>conftest.err
2437 if test -s conftest.err
; then
2438 grep -v '^ *+' conftest.err
>conftest.er1
2439 cat conftest.er1
>&5
2440 mv -f conftest.er1 conftest.err
2442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 test $ac_status = 0; } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.
$ac_objext; then :
2449 $as_echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.
$ac_ext >&5
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2457 } # ac_fn_c_try_compile
2459 # ac_fn_c_try_cpp LINENO
2460 # ----------------------
2461 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2464 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2465 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } >/dev/null && {
2481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2482 test ! -s conftest.err
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2497 # -------------------------------------------------------
2498 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2499 # the include files in INCLUDES and setting the cache variable VAR
2501 ac_fn_c_check_header_mongrel ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2514 # Is the header compilable?
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2516 $as_echo_n "checking $2 usability... " >&6; }
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2522 if ac_fn_c_try_compile "$LINENO"; then :
2523 ac_header_compiler=yes
2525 ac_header_compiler=no
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2529 $as_echo "$ac_header_compiler" >&6; }
2531 # Is the header present?
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2533 $as_echo_n "checking $2 presence... " >&6; }
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2538 if ac_fn_c_try_cpp "$LINENO"; then :
2539 ac_header_preproc=yes
2541 ac_header_preproc=no
2543 rm -f conftest.err conftest.$ac_ext
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2545 $as_echo "$ac_header_preproc" >&6; }
2547 # So? What about this header?
2548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2551 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2553 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2557 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2559 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2561 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2563 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2565 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2573 eval "$3=\$ac_header_compiler"
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 } # ac_fn_c_check_header_mongrel
2583 # ac_fn_c_try_run LINENO
2584 # ----------------------
2585 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2586 # that executables *can* be run.
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 if { { ac_try="$ac_link"
2592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2593 *) ac_try_echo
=$ac_try;;
2595 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2596 $as_echo "$ac_try_echo"; } >&5
2597 (eval "$ac_link") 2>&5
2599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2600 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2601 { { case "(($ac_try" in
2602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2606 $as_echo "$ac_try_echo"; } >&5
2607 (eval "$ac_try") 2>&5
2609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610 test $ac_status = 0; }; }; then :
2613 $as_echo "$as_me: program exited with status $ac_status" >&5
2614 $as_echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 ac_retval=$ac_status
2619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2626 # -------------------------------------------------------
2627 # Tests whether HEADER exists and can be compiled using the include files in
2628 # INCLUDES, setting the cache variable VAR accordingly.
2629 ac_fn_c_check_header_compile ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2642 if ac_fn_c_try_compile "$LINENO"; then :
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651 $as_echo "$ac_res" >&6; }
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_c_check_header_compile
2656 # ac_fn_c_try_link LINENO
2657 # -----------------------
2658 # Try to link conftest.$ac_ext, and return whether this succeeded.
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { { ac_try="$ac_link"
2665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2666 *) ac_try_echo
=$ac_try;;
2668 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_link") 2>conftest.err
2672 if test -s conftest.err
; then
2673 grep -v '^ *+' conftest.err
>conftest.er1
2674 cat conftest.er1
>&5
2675 mv -f conftest.er1 conftest.err
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; } && {
2679 test -z "$ac_c_werror_flag" ||
2680 test ! -s conftest.err
2681 } && test -s conftest
$ac_exeext && {
2682 test "$cross_compiling" = yes ||
2683 $as_test_x conftest
$ac_exeext
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.
$ac_ext >&5
2692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2694 # interfere with the next link command; also delete a directory that is
2695 # left behind by Apple's compiler. We do this before executing the actions.
2696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2697 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2700 } # ac_fn_c_try_link
2702 # ac_fn_c_check_func LINENO FUNC VAR
2703 # ----------------------------------
2704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2705 ac_fn_c_check_func
()
2707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2717 #define $2 innocuous_$2
2719 /* System header to define __stub macros and hopefully few prototypes,
2720 which can conflict with char $2 (); below.
2721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2722 <limits.h> exists even on freestanding compilers. */
2725 # include <limits.h>
2727 # include <assert.h>
2732 /* Override any GCC internal prototype to avoid an error.
2733 Use char because int might match the return type of a GCC
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined __stub_$2 || defined __stub___$2
2754 if ac_fn_c_try_link
"$LINENO"; then :
2759 rm -f core conftest.err conftest.
$ac_objext \
2760 conftest
$ac_exeext conftest.
$ac_ext
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2767 } # ac_fn_c_check_func
2769 # ac_fn_c_check_decl LINENO SYMBOL VAR
2770 # ------------------------------------
2771 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2772 ac_fn_c_check_decl
()
2774 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2776 $as_echo_n "checking whether $2 is declared... " >&6; }
2777 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2778 $as_echo_n "(cached) " >&6
2780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2794 if ac_fn_c_try_compile
"$LINENO"; then :
2799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2806 } # ac_fn_c_check_decl
2808 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2809 # --------------------------------------------
2810 # Tries to find the compile-time value of EXPR in a program that includes
2811 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2813 ac_fn_c_compute_int
()
2815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2816 if test "$cross_compiling" = yes; then
2817 # Depending upon the size, compute the lo and hi bounds.
2818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2824 static int test_array [1 - 2 * !(($2) >= 0)];
2831 if ac_fn_c_try_compile
"$LINENO"; then :
2834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2840 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2847 if ac_fn_c_try_compile
"$LINENO"; then :
2848 ac_hi
=$ac_mid; break
2850 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2851 if test $ac_lo -le $ac_mid; then
2855 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2866 static int test_array [1 - 2 * !(($2) < 0)];
2873 if ac_fn_c_try_compile
"$LINENO"; then :
2876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2882 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2889 if ac_fn_c_try_compile
"$LINENO"; then :
2890 ac_lo
=$ac_mid; break
2892 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2893 if test $ac_mid -le $ac_hi; then
2897 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2907 # Binary search between lo and hi bounds.
2908 while test "x$ac_lo" != "x$ac_hi"; do
2909 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2923 if ac_fn_c_try_compile
"$LINENO"; then :
2926 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2931 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2938 static long int longval () { return $2; }
2939 static unsigned long int ulongval () { return $2; }
2946 FILE *f = fopen ("conftest.val", "w");
2951 long int i = longval ();
2954 fprintf (f, "%ld", i);
2958 unsigned long int i = ulongval ();
2961 fprintf (f, "%lu", i);
2963 /* Do not output a trailing newline, as this causes \r\n confusion
2964 on some platforms. */
2965 return ferror (f) || fclose (f) != 0;
2971 if ac_fn_c_try_run
"$LINENO"; then :
2972 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2981 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2984 } # ac_fn_c_compute_int
2986 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2987 # -------------------------------------------
2988 # Tests whether TYPE exists after having included INCLUDES, setting cache
2989 # variable VAR accordingly.
2990 ac_fn_c_check_type
()
2992 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2994 $as_echo_n "checking for $2... " >&6; }
2995 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2996 $as_echo_n "(cached) " >&6
2999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3011 if ac_fn_c_try_compile
"$LINENO"; then :
3012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3024 if ac_fn_c_try_compile
"$LINENO"; then :
3029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3035 $as_echo "$ac_res" >&6; }
3036 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3038 } # ac_fn_c_check_type
3039 cat >config.log
<<_ACEOF
3040 This file contains any messages produced by compilers while
3041 running configure, to aid debugging if configure makes a mistake.
3043 It was created by $as_me, which was
3044 generated by GNU Autoconf 2.64. Invocation command line was
3056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 $as_echo "PATH: $as_dir"
3096 # Keep a trace of the command line.
3097 # Strip out --no-create and --no-recursion so they do not pile up.
3098 # Strip out --silent because we don't want to record it for future runs.
3099 # Also quote any args containing shell meta-characters.
3100 # Make two passes to allow for proper duplicate-argument suppression.
3104 ac_must_keep_next
=false
3110 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3111 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3112 |
-silent |
--silent |
--silen |
--sile |
--sil)
3115 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3118 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3120 as_fn_append ac_configure_args1
" '$ac_arg'"
3121 if test $ac_must_keep_next = true
; then
3122 ac_must_keep_next
=false
# Got value, back to normal.
3125 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3126 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3127 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3128 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3129 case "$ac_configure_args0 " in
3130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3133 -* ) ac_must_keep_next
=true
;;
3136 as_fn_append ac_configure_args
" '$ac_arg'"
3141 { ac_configure_args0
=; unset ac_configure_args0
;}
3142 { ac_configure_args1
=; unset ac_configure_args1
;}
3144 # When interrupted or exit'd, cleanup temporary files, and complete
3145 # config.log. We remove comments because anyway the quotes in there
3146 # would cause problems or look ugly.
3147 # WARNING: Use '\'' to represent an apostrophe within the trap.
3148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3149 trap 'exit_status=$?
3150 # Save into config.log some information that might help in debugging.
3155 ## ---------------- ##
3156 ## Cache variables. ##
3157 ## ---------------- ##
3160 # The following way of writing the cache mishandles newlines in values,
3162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3163 eval ac_val=\$$ac_var
3167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171 _ | IFS | as_nl) ;; #(
3172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3173 *) { eval $ac_var=; unset $ac_var;} ;;
3178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3179 *${as_nl}ac_space=\ *)
3181 "s/'\''/'\''\\\\'\'''\''/g;
3182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3193 ## ----------------- ##
3194 ## Output variables. ##
3195 ## ----------------- ##
3198 for ac_var in $ac_subst_vars
3200 eval ac_val=\$$ac_var
3202 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 $as_echo "$ac_var='\''$ac_val'\''"
3208 if test -n "$ac_subst_files"; then
3210 ## ------------------- ##
3211 ## File substitutions. ##
3212 ## ------------------- ##
3215 for ac_var
in $ac_subst_files
3217 eval ac_val
=\$
$ac_var
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3221 $as_echo "$ac_var='\''$ac_val'\''"
3226 if test -s confdefs.h; then
3236 test "$ac_signal" != 0 &&
3237 $as_echo "$as_me: caught signal $ac_signal"
3238 $as_echo "$as_me: exit $exit_status"
3240 rm -f core *.core core.conftest.* &&
3241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3244 for ac_signal
in 1 2 13 15; do
3245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3250 rm -f -r conftest
* confdefs.h
3252 $as_echo "/* confdefs.h */" > confdefs.h
3254 # Predefined preprocessor variables.
3256 cat >>confdefs.h
<<_ACEOF
3257 #define PACKAGE_NAME "$PACKAGE_NAME"
3260 cat >>confdefs.h
<<_ACEOF
3261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3264 cat >>confdefs.h
<<_ACEOF
3265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3268 cat >>confdefs.h
<<_ACEOF
3269 #define PACKAGE_STRING "$PACKAGE_STRING"
3272 cat >>confdefs.h
<<_ACEOF
3273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3276 cat >>confdefs.h
<<_ACEOF
3277 #define PACKAGE_URL "$PACKAGE_URL"
3281 # Let the site file select an alternate cache file if it wants to.
3282 # Prefer an explicitly selected file to automatically selected ones.
3285 if test -n "$CONFIG_SITE"; then
3286 ac_site_file1
=$CONFIG_SITE
3287 elif test "x$prefix" != xNONE
; then
3288 ac_site_file1
=$prefix/share
/config.site
3289 ac_site_file2
=$prefix/etc
/config.site
3291 ac_site_file1
=$ac_default_prefix/share
/config.site
3292 ac_site_file2
=$ac_default_prefix/etc
/config.site
3294 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3296 test "x$ac_site_file" = xNONE
&& continue
3297 if test -r "$ac_site_file"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
3305 if test -r "$cache_file"; then
3306 # Some versions of bash will fail to source /dev/null (special
3307 # files actually), so we avoid doing that.
3308 if test -f "$cache_file"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3310 $as_echo "$as_me: loading cache $cache_file" >&6;}
3312 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3313 *) .
"./$cache_file";;
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3318 $as_echo "$as_me: creating cache $cache_file" >&6;}
3322 as_fn_append ac_func_list
" canonicalize_file_name"
3323 as_fn_append ac_func_list
" getcwd"
3324 as_fn_append ac_func_list
" readlink"
3325 as_fn_append ac_func_list
" realpath"
3326 as_fn_append ac_header_list
" sys/param.h"
3327 as_fn_append ac_header_list
" unistd.h"
3328 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3329 as_fn_append ac_header_list
" sys/socket.h"
3330 as_fn_append ac_func_list
" fchdir"
3331 as_fn_append ac_header_list
" dirent.h"
3332 as_fn_append ac_func_list
" fcntl"
3333 as_fn_append ac_func_list
" symlink"
3334 as_fn_append ac_func_list
" fdopendir"
3335 as_fn_append ac_func_list
" mempcpy"
3336 as_fn_append ac_func_list
" btowc"
3337 as_fn_append ac_func_list
" isblank"
3338 as_fn_append ac_func_list
" iswctype"
3339 as_fn_append ac_func_list
" mbsrtowcs"
3340 as_fn_append ac_func_list
" wmemchr"
3341 as_fn_append ac_func_list
" wmemcpy"
3342 as_fn_append ac_func_list
" wmempcpy"
3343 as_fn_append ac_header_list
" wctype.h"
3344 gl_fnmatch_required
=GNU
3345 as_fn_append ac_header_list
" sys/stat.h"
3346 as_fn_append ac_func_list
" fstatat"
3347 as_fn_append ac_func_list
" getdtablesize"
3348 as_fn_append ac_func_list
" getlogin_r"
3349 as_fn_append ac_func_list
" getprogname"
3350 as_fn_append ac_func_list
" getexecname"
3351 as_fn_append ac_header_list
" sys/time.h"
3352 as_fn_append ac_func_list
" gettimeofday"
3353 as_fn_append ac_header_list
" sys/cdefs.h"
3354 as_fn_append ac_func_list
" getpwnam_r"
3355 as_fn_append ac_header_list
" limits.h"
3356 as_fn_append ac_header_list
" wchar.h"
3357 as_fn_append ac_header_list
" stdint.h"
3358 as_fn_append ac_header_list
" inttypes.h"
3359 as_fn_append ac_func_list
" lstat"
3360 as_fn_append ac_header_list
" math.h"
3361 as_fn_append ac_func_list
" mbsinit"
3362 as_fn_append ac_func_list
" mbrtowc"
3363 as_fn_append ac_header_list
" sys/mman.h"
3364 as_fn_append ac_func_list
" mprotect"
3365 as_fn_append ac_func_list
" openat"
3366 as_fn_append ac_func_list
" link"
3367 as_fn_append ac_func_list
" setenv"
3368 as_fn_append ac_func_list
" strdup"
3369 as_fn_append ac_func_list
" pipe"
3370 as_fn_append ac_header_list
" features.h"
3371 as_fn_append ac_func_list
" iswcntrl"
3372 # Check that the precious variables saved in the cache have kept the same
3374 ac_cache_corrupted
=false
3375 for ac_var
in $ac_precious_vars; do
3376 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3377 eval ac_new_set
=\
$ac_env_${ac_var}_set
3378 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3379 eval ac_new_val
=\
$ac_env_${ac_var}_value
3380 case $ac_old_set,$ac_new_set in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3383 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3384 ac_cache_corrupted
=: ;;
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3387 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3388 ac_cache_corrupted
=: ;;
3391 if test "x$ac_old_val" != "x$ac_new_val"; then
3392 # differences in whitespace do not lead to failure.
3393 ac_old_val_w
=`echo x $ac_old_val`
3394 ac_new_val_w
=`echo x $ac_new_val`
3395 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3397 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3398 ac_cache_corrupted
=:
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3401 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3402 eval $ac_var=\
$ac_old_val
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3405 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3407 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3410 # Pass precious variables to config.status.
3411 if test "$ac_new_set" = set; then
3413 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3414 *) ac_arg
=$ac_var=$ac_new_val ;;
3416 case " $ac_configure_args " in
3417 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3418 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3422 if $ac_cache_corrupted; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3426 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3427 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3429 ## -------------------- ##
3430 ## Main body of script. ##
3431 ## -------------------- ##
3434 ac_cpp
='$CPP $CPPFLAGS'
3435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3440 ac_config_headers
="$ac_config_headers config.h:config.in"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3444 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3445 # Check whether --enable-maintainer-mode was given.
3446 if test "${enable_maintainer_mode+set}" = set; then :
3447 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3449 USE_MAINTAINER_MODE
=no
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3453 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3454 if test $USE_MAINTAINER_MODE = yes; then
3455 MAINTAINER_MODE_TRUE
=
3456 MAINTAINER_MODE_FALSE
='#'
3458 MAINTAINER_MODE_TRUE
='#'
3459 MAINTAINER_MODE_FALSE
=
3462 MAINT
=$MAINTAINER_MODE_TRUE
3467 ac_cpp
='$CPP $CPPFLAGS'
3468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_CC+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC
="$CC" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3510 if test -z "$ac_cv_prog_CC"; then
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc
; ac_word
=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_ac_ct_CC
="gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 $as_echo "$ac_ct_CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3548 if test "x$ac_ct_CC" = x
; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned
=yes ;;
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3566 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_CC+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CC"; then
3573 ac_cv_prog_CC
="$CC" # Let the user override the test.
3575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir
=.
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 if test -n "$CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3604 if test -z "$CC"; then
3605 # Extract the first word of "cc", so it can be a program name with args.
3606 set dummy cc
; ac_word
=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC
="$CC" # Let the user override the test.
3616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3620 test -z "$as_dir" && as_dir
=.
3621 for ac_exec_ext
in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3624 ac_prog_rejected
=yes
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test $ac_prog_rejected = yes; then
3636 # We found a bogon in the path, so make sure we never use it.
3637 set dummy
$ac_cv_prog_CC
3639 if test $# != 0; then
3640 # We chose a different compiler from the bogus one.
3641 # However, it has the same basename, so the bogon will be chosen
3642 # first if we set CC to just the basename; use the full file name.
3644 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3650 if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 if test -n "$ac_tool_prefix"; then
3662 for ac_prog
in cl.exe
3664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC
="$CC" # Let the user override the test.
3674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir
=.
3679 for ac_exec_ext
in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$CC" && break
3704 if test -z "$CC"; then
3706 for ac_prog
in cl.exe
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy
$ac_prog; ac_word
=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir
=.
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_CC
="$ac_prog"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3736 if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738 $as_echo "$ac_ct_CC" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3745 test -n "$ac_ct_CC" && break
3748 if test "x$ac_ct_CC" = x
; then
3751 case $cross_compiling:$ac_tool_warned in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned
=yes ;;
3764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error
"no acceptable C compiler found in \$PATH
3767 See \`config.log' for more details." "$LINENO" 5; }
3769 # Provide some information about the compiler.
3770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3773 for ac_option
in --version -v -V -qversion; do
3774 { { ac_try
="$ac_compiler $ac_option >&5"
3776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 if test -s conftest.err; then
3785 ... rest of stderr output deleted ...
3786 10q' conftest.err >conftest.er1
3787 cat conftest.er1 >&5
3788 rm -f conftest.er1 conftest.err
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3800 FILE *f = fopen ("conftest.out", "w");
3801 return ferror (f) || fclose (f) != 0;
3807 ac_clean_files_save=$ac_clean_files
3808 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3809 # Try to create an executable without -o first, disregard a.out.
3810 # It will help us diagnose broken compilers, and finding out an intuition
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3813 $as_echo_n "checking for C compiler default output file name... " >&6; }
3814 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3816 # The possible output files:
3817 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3820 for ac_file in $ac_files
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3824 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3829 if { { ac_try="$ac_link_default"
3831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3832 *) ac_try_echo
=$ac_try;;
3834 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_link_default") 2>&5
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; then :
3840 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3841 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3842 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3843 # so that the user can short-circuit this test for compilers unknown to
3845 for ac_file
in $ac_files ''
3847 test -f "$ac_file" ||
continue
3849 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3852 # We found the default executable, but exeext='' is most
3856 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3858 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 # We set ac_cv_exeext here because the later test for it is not
3861 # safe: cross compilers may not add the suffix if given an `-o'
3862 # argument, so we may need to know it at that point already.
3863 # Even if this section looks crufty: it has the advantage of
3870 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3876 $as_echo "$ac_file" >&6; }
3877 if test -z "$ac_file"; then :
3878 $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.
$ac_ext >&5
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 { as_fn_set_status
77
3884 as_fn_error
"C compiler cannot create executables
3885 See \`config.log' for more details." "$LINENO" 5; }; }
3887 ac_exeext
=$ac_cv_exeext
3889 # Check that the compiler produces executables we can run. If not, either
3890 # the compiler is broken, or we cross compile.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3892 $as_echo_n "checking whether the C compiler works... " >&6; }
3893 # If not cross compiling, check that we can run a simple program.
3894 if test "$cross_compiling" != yes; then
3895 if { ac_try
='./$ac_file'
3896 { { case "(($ac_try" in
3897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_try") 2>&5
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; }; then
3908 if test "$cross_compiling" = maybe; then
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error "cannot run C compiled programs.
3914 If you meant to cross compile
, use \
`--host'.
3915 See \`config.log
' for more details." "$LINENO" 5; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3922 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3923 ac_clean_files=$ac_clean_files_save
3924 # Check that the compiler produces executables we can run. If not, either
3925 # the compiler is broken, or we cross compile.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3927 $as_echo_n "checking whether we are cross compiling... " >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3929 $as_echo "$cross_compiling" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932 $as_echo_n "checking for suffix of executables... " >&6; }
3933 if { { ac_try="$ac_link"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_link") 2>&5
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3945 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3946 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3948 for ac_file
in conftest.exe conftest conftest.
*; do
3949 test -f "$ac_file" ||
continue
3951 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3952 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3961 See \`config.log' for more details." "$LINENO" 5; }
3963 rm -f conftest
$ac_cv_exeext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3965 $as_echo "$ac_cv_exeext" >&6; }
3967 rm -f conftest.
$ac_ext
3968 EXEEXT
=$ac_cv_exeext
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3971 $as_echo_n "checking for suffix of object files... " >&6; }
3972 if test "${ac_cv_objext+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3986 rm -f conftest.o conftest.obj
3987 if { { ac_try
="$ac_compile"
3989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_compile") 2>&5
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; then :
3998 for ac_file in conftest.o conftest.obj conftest.*; do
3999 test -f "$ac_file" || continue;
4001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error "cannot compute suffix of object files
: cannot compile
4013 See \
`config.log' for more details." "$LINENO" 5; }
4015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4018 $as_echo "$ac_cv_objext" >&6; }
4019 OBJEXT=$ac_cv_objext
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4022 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4023 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4050 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4051 if test $ac_compiler_gnu = yes; then
4056 ac_test_CFLAGS=${CFLAGS+set}
4057 ac_save_CFLAGS=$CFLAGS
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4059 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4060 if test "${ac_cv_prog_cc_g+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 ac_save_c_werror_flag=$ac_c_werror_flag
4064 ac_c_werror_flag=yes
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 if ac_fn_c_try_compile "$LINENO"; then :
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 if ac_fn_c_try_compile "$LINENO"; then :
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4120 $as_echo "$ac_cv_prog_cc_g" >&6; }
4121 if test "$ac_test_CFLAGS" = set; then
4122 CFLAGS=$ac_save_CFLAGS
4123 elif test $ac_cv_prog_cc_g = yes; then
4124 if test "$GCC" = yes; then
4130 if test "$GCC" = yes; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4137 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4138 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4141 ac_cv_prog_cc_c89=no
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/stat.h>
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4163 s = g (p, va_arg (v,int));
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4169 function prototypes and stuff, but not '\xHH' hex character constants.
4170 These don't provoke an error unfortunately, instead are silently treated
4171 as 'x'. The following induces an error, until -std is added to get
4172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4173 array size at least. It's necessary to write '\x00'==0 to get something
4174 that's true only with -std. */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178 inside strings and character constants. */
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_c89=$ac_arg
4203 rm -f core conftest.err conftest.$ac_objext
4204 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 rm -f conftest.$ac_ext
4211 case "x$ac_cv_prog_cc_c89" in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4219 CC="$CC $ac_cv_prog_cc_c89"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4245 if test -z "$CPP"; then
4246 if test "${ac_cv_prog_CPP+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4249 # Double quotes because CPP needs to be expanded
4250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4264 # include <limits.h>
4266 # include <assert.h>
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4288 # Passes both tests.
4292 rm -f conftest.err conftest.$ac_ext
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.err conftest.
$ac_ext
4297 if $ac_preproc_ok; then :
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310 $as_echo "$CPP" >&6; }
4312 for ac_c_preproc_warn_flag
in '' yes
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4323 # include <limits.h>
4325 # include <assert.h>
4329 if ac_fn_c_try_cpp
"$LINENO"; then :
4332 # Broken: fails on valid input.
4335 rm -f conftest.err conftest.
$ac_ext
4337 # OK, works on sane cases. Now check whether nonexistent headers
4338 # can be detected and how.
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ac_nonexistent.h>
4343 if ac_fn_c_try_cpp
"$LINENO"; then :
4344 # Broken: success on invalid input.
4347 # Passes both tests.
4351 rm -f conftest.err conftest.
$ac_ext
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.err conftest.
$ac_ext
4356 if $ac_preproc_ok; then :
4359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details." "$LINENO" 5; }
4366 ac_cpp
='$CPP $CPPFLAGS'
4367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4373 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4374 if test "${ac_cv_path_GREP+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -z "$GREP"; then
4378 ac_path_GREP_found
=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4381 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4384 test -z "$as_dir" && as_dir
=.
4385 for ac_prog
in grep ggrep
; do
4386 for ac_exec_ext
in '' $ac_executable_extensions; do
4387 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4389 # Check for GNU ac_path_GREP and select it if it is found.
4390 # Check for GNU $ac_path_GREP
4391 case `"$ac_path_GREP" --version 2>&1` in
4393 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4396 $as_echo_n 0123456789 >"conftest.in"
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'GREP' >> "conftest.nl"
4403 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4404 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4405 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4406 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_GREP
="$ac_path_GREP"
4409 ac_path_GREP_max
=$ac_count
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4414 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4417 $ac_path_GREP_found && break 3
4422 if test -z "$ac_cv_path_GREP"; then
4423 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 ac_cv_path_GREP
=$GREP
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4431 $as_echo "$ac_cv_path_GREP" >&6; }
4432 GREP
="$ac_cv_path_GREP"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4436 $as_echo_n "checking for egrep... " >&6; }
4437 if test "${ac_cv_path_EGREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4441 then ac_cv_path_EGREP
="$GREP -E"
4443 if test -z "$EGREP"; then
4444 ac_path_EGREP_found
=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4447 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4450 test -z "$as_dir" && as_dir
=.
4451 for ac_prog
in egrep; do
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4455 # Check for GNU ac_path_EGREP and select it if it is found.
4456 # Check for GNU $ac_path_EGREP
4457 case `"$ac_path_EGREP" --version 2>&1` in
4459 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4462 $as_echo_n 0123456789 >"conftest.in"
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'EGREP' >> "conftest.nl"
4469 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4470 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4471 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4472 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_EGREP
="$ac_path_EGREP"
4475 ac_path_EGREP_max
=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4480 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4483 $ac_path_EGREP_found && break 3
4488 if test -z "$ac_cv_path_EGREP"; then
4489 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 ac_cv_path_EGREP
=$EGREP
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4498 $as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP
="$ac_cv_path_EGREP"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4503 $as_echo_n "checking for ANSI C header files... " >&6; }
4504 if test "${ac_cv_header_stdc+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4522 if ac_fn_c_try_compile
"$LINENO"; then :
4523 ac_cv_header_stdc
=yes
4525 ac_cv_header_stdc
=no
4527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4529 if test $ac_cv_header_stdc = yes; then
4530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "memchr" >/dev
/null
2>&1; then :
4540 ac_cv_header_stdc
=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 $EGREP "free" >/dev
/null
2>&1; then :
4557 ac_cv_header_stdc
=no
4563 if test $ac_cv_header_stdc = yes; then
4564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565 if test "$cross_compiling" = yes; then :
4568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 #if ((' ' & 0x0FF) == 0x020)
4573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 # define ISLOWER(c) \
4577 (('a' <= (c) && (c) <= 'i') \
4578 || ('j' <= (c) && (c) <= 'r') \
4579 || ('s' <= (c) && (c) <= 'z'))
4580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4588 for (i = 0; i < 256; i++)
4589 if (XOR (islower (i), ISLOWER (i))
4590 || toupper (i) != TOUPPER (i))
4595 if ac_fn_c_try_run
"$LINENO"; then :
4598 ac_cv_header_stdc
=no
4600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4601 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4607 $as_echo "$ac_cv_header_stdc" >&6; }
4608 if test $ac_cv_header_stdc = yes; then
4610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4621 eval as_val
=\$
$as_ac_Header
4622 if test "x$as_val" = x
""yes; then :
4623 cat >>confdefs.h
<<_ACEOF
4624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4633 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4634 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4641 if test "$MINIX" = yes; then
4643 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4649 $as_echo "#define _MINIX 1" >>confdefs.h
4652 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4658 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 # define __EXTENSIONS__ 1
4666 $ac_includes_default
4675 if ac_fn_c_try_compile
"$LINENO"; then :
4676 ac_cv_safe_to_define___extensions__
=yes
4678 ac_cv_safe_to_define___extensions__
=no
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4683 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4684 test $ac_cv_safe_to_define___extensions__ = yes &&
4685 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4687 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4689 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4691 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4693 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4695 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4697 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4699 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4701 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4703 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4705 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4707 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4709 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4712 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4713 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4716 ac_cv_should_define__xopen_source
=no
4717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4730 if ac_fn_c_try_compile
"$LINENO"; then :
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4736 #define _XOPEN_SOURCE 500
4747 if ac_fn_c_try_compile
"$LINENO"; then :
4748 ac_cv_should_define__xopen_source
=yes
4750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4755 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4756 test $ac_cv_should_define__xopen_source = yes &&
4757 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4770 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4771 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4785 gl_cv_c_amsterdam_compiler
=yes
4787 gl_cv_c_amsterdam_compiler
=no
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4794 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4796 if test $gl_cv_c_amsterdam_compiler = yes; then
4797 if test -z "$AR"; then
4800 if test -z "$ARFLAGS"; then
4807 if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4809 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_AR+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -n "$AR"; then
4816 ac_cv_prog_AR
="$AR" # Let the user override the test.
4818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir
=.
4823 for ac_exec_ext
in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 if test -n "$AR"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4838 $as_echo "$AR" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4846 if test -z "$ac_cv_prog_AR"; then
4848 # Extract the first word of "ar", so it can be a program name with args.
4849 set dummy
ar; ac_word
=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$ac_ct_AR"; then
4856 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir
=.
4863 for ac_exec_ext
in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_AR
="ar"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4876 if test -n "$ac_ct_AR"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4878 $as_echo "$ac_ct_AR" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4884 if test "x$ac_ct_AR" = x
; then
4887 case $cross_compiling:$ac_tool_warned in
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned
=yes ;;
4899 if test -z "$ARFLAGS"; then
4905 if test -z "$RANLIB"; then
4906 if test $gl_cv_c_amsterdam_compiler = yes; then
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4911 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -n "$RANLIB"; then
4918 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir
=.
4925 for ac_exec_ext
in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 RANLIB
=$ac_cv_prog_RANLIB
4938 if test -n "$RANLIB"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4940 $as_echo "$RANLIB" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB
=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib
; ac_word
=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir
=.
4965 for ac_exec_ext
in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4980 $as_echo "$ac_ct_RANLIB" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4986 if test "x$ac_ct_RANLIB" = x
; then
4989 case $cross_compiling:$ac_tool_warned in
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned
=yes ;;
4995 RANLIB
=$ac_ct_RANLIB
4998 RANLIB
="$ac_cv_prog_RANLIB"
5006 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5007 for ac_t
in install-sh
install.sh shtool
; do
5008 if test -f "$ac_dir/$ac_t"; then
5010 ac_install_sh
="$ac_aux_dir/$ac_t -c"
5015 if test -z "$ac_aux_dir"; then
5016 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5019 # These three variables are undocumented and unsupported,
5020 # and are intended to be withdrawn in a future Autoconf release.
5021 # They can cause serious problems if a builder's source tree is in a directory
5022 # whose full name contains unusual characters.
5023 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5024 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5025 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5028 # Make sure we can run config.sub.
5029 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5030 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5033 $as_echo_n "checking build system type... " >&6; }
5034 if test "${ac_cv_build+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5037 ac_build_alias
=$build_alias
5038 test "x$ac_build_alias" = x
&&
5039 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5040 test "x$ac_build_alias" = x
&&
5041 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
5042 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5043 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5047 $as_echo "$ac_cv_build" >&6; }
5048 case $ac_cv_build in
5050 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
5053 ac_save_IFS
=$IFS; IFS
='-'
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5063 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5067 $as_echo_n "checking host system type... " >&6; }
5068 if test "${ac_cv_host+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5071 if test "x$host_alias" = x
; then
5072 ac_cv_host
=$ac_cv_build
5074 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5075 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5080 $as_echo "$ac_cv_host" >&6; }
5083 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5086 ac_save_IFS
=$IFS; IFS
='-'
5092 # Remember, the first character of IFS is used to create $*,
5093 # except with old shells:
5096 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5102 # IEEE behaviour is the default on all CPUs except Alpha and SH
5103 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5104 # and the GCC 4.1.2 manual).
5107 # On Alpha systems, a compiler option provides the behaviour.
5108 # See the ieee(3) manual page, also available at
5109 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5110 if test -n "$GCC"; then
5111 # GCC has the option -mieee.
5112 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5113 CPPFLAGS
="$CPPFLAGS -mieee"
5115 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5116 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5117 CPPFLAGS
="$CPPFLAGS -ieee"
5121 if test -n "$GCC"; then
5122 # GCC has the option -mieee.
5123 CPPFLAGS
="$CPPFLAGS -mieee"
5128 # Check whether --enable-largefile was given.
5129 if test "${enable_largefile+set}" = set; then :
5130 enableval
=$enable_largefile;
5133 if test "$enable_largefile" != no
; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5136 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5137 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5140 ac_cv_sys_largefile_CC
=no
5141 if test "$GCC" != yes; then
5144 # IRIX 6.2 and later do not support large files by default,
5145 # so use the C compiler's -n32 option if that helps.
5146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #include <sys/types.h>
5149 /* Check that off_t can represent 2**63 - 1 correctly.
5150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5151 since some C++ compilers masquerading as C compilers
5152 incorrectly reject 9223372036854775807. */
5153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5155 && LARGE_OFF_T % 2147483647 == 1)
5165 if ac_fn_c_try_compile
"$LINENO"; then :
5168 rm -f core conftest.err conftest.
$ac_objext
5170 if ac_fn_c_try_compile
"$LINENO"; then :
5171 ac_cv_sys_largefile_CC
=' -n32'; break
5173 rm -f core conftest.err conftest.
$ac_objext
5177 rm -f conftest.
$ac_ext
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5181 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5182 if test "$ac_cv_sys_largefile_CC" != no
; then
5183 CC
=$CC$ac_cv_sys_largefile_CC
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5187 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5188 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #include <sys/types.h>
5195 /* Check that off_t can represent 2**63 - 1 correctly.
5196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5197 since some C++ compilers masquerading as C compilers
5198 incorrectly reject 9223372036854775807. */
5199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5201 && LARGE_OFF_T % 2147483647 == 1)
5211 if ac_fn_c_try_compile
"$LINENO"; then :
5212 ac_cv_sys_file_offset_bits
=no
; break
5214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #define _FILE_OFFSET_BITS 64
5218 #include <sys/types.h>
5219 /* Check that off_t can represent 2**63 - 1 correctly.
5220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5221 since some C++ compilers masquerading as C compilers
5222 incorrectly reject 9223372036854775807. */
5223 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5225 && LARGE_OFF_T % 2147483647 == 1)
5235 if ac_fn_c_try_compile
"$LINENO"; then :
5236 ac_cv_sys_file_offset_bits
=64; break
5238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5239 ac_cv_sys_file_offset_bits
=unknown
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5244 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5245 case $ac_cv_sys_file_offset_bits in #(
5248 cat >>confdefs.h
<<_ACEOF
5249 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5254 if test $ac_cv_sys_file_offset_bits = unknown
; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5256 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5257 if test "${ac_cv_sys_large_files+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <sys/types.h>
5264 /* Check that off_t can represent 2**63 - 1 correctly.
5265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5266 since some C++ compilers masquerading as C compilers
5267 incorrectly reject 9223372036854775807. */
5268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5270 && LARGE_OFF_T % 2147483647 == 1)
5280 if ac_fn_c_try_compile
"$LINENO"; then :
5281 ac_cv_sys_large_files
=no
; break
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #define _LARGE_FILES 1
5287 #include <sys/types.h>
5288 /* Check that off_t can represent 2**63 - 1 correctly.
5289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5290 since some C++ compilers masquerading as C compilers
5291 incorrectly reject 9223372036854775807. */
5292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5294 && LARGE_OFF_T % 2147483647 == 1)
5304 if ac_fn_c_try_compile
"$LINENO"; then :
5305 ac_cv_sys_large_files
=1; break
5307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5308 ac_cv_sys_large_files
=unknown
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5313 $as_echo "$ac_cv_sys_large_files" >&6; }
5314 case $ac_cv_sys_large_files in #(
5317 cat >>confdefs.h
<<_ACEOF
5318 #define _LARGE_FILES $ac_cv_sys_large_files
5326 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5332 # Pre-early section.
5336 # Code from module absolute-header:
5337 # Code from module alloca:
5338 # Code from module alloca-opt:
5339 # Code from module assure:
5340 # Code from module at-internal:
5341 # Code from module canonicalize-lgpl:
5342 # Code from module chdir:
5343 # Code from module chdir-long:
5344 # Code from module cloexec:
5345 # Code from module close:
5346 # Code from module closedir:
5347 # Code from module configmake:
5348 # Code from module d-ino:
5349 # Code from module d-type:
5350 # Code from module dirent:
5351 # Code from module dirfd:
5352 # Code from module dirname-lgpl:
5353 # Code from module dosname:
5354 # Code from module double-slash-root:
5355 # Code from module dup:
5356 # Code from module dup2:
5357 # Code from module environ:
5358 # Code from module errno:
5359 # Code from module error:
5360 # Code from module exitfail:
5361 # Code from module extensions:
5362 # Code from module extern-inline:
5363 # Code from module fchdir:
5364 # Code from module fcntl:
5365 # Code from module fcntl-h:
5366 # Code from module fd-hook:
5367 # Code from module fdopendir:
5368 # Code from module filename:
5369 # Code from module filenamecat-lgpl:
5370 # Code from module flexmember:
5371 # Code from module float:
5372 # Code from module fnmatch:
5373 # Code from module fnmatch-gnu:
5374 # Code from module fpieee:
5376 # Code from module fpucw:
5377 # Code from module frexp:
5378 # Code from module frexpl:
5379 # Code from module fstat:
5380 # Code from module fstatat:
5381 # Code from module getcwd:
5382 # Code from module getcwd-lgpl:
5383 # Code from module getdtablesize:
5384 # Code from module getlogin_r:
5385 # Code from module getprogname:
5386 # Code from module gettext-h:
5387 # Code from module gettimeofday:
5388 # Code from module glob:
5389 # Code from module hard-locale:
5390 # Code from module include_next:
5391 # Code from module intprops:
5392 # Code from module inttypes:
5393 # Code from module inttypes-incomplete:
5394 # Code from module isnand-nolibm:
5395 # Code from module isnanl-nolibm:
5396 # Code from module largefile:
5398 # Code from module limits-h:
5399 # Code from module localcharset:
5400 # Code from module lstat:
5401 # Code from module malloc-posix:
5402 # Code from module malloca:
5403 # Code from module math:
5404 # Code from module mbrtowc:
5405 # Code from module mbsinit:
5406 # Code from module mbsrtowcs:
5407 # Code from module memchr:
5408 # Code from module memmem:
5409 # Code from module memmem-simple:
5410 # Code from module mempcpy:
5411 # Code from module memrchr:
5412 # Code from module msvc-inval:
5413 # Code from module msvc-nothrow:
5414 # Code from module multiarch:
5415 # Code from module nocrash:
5416 # Code from module open:
5417 # Code from module openat:
5418 # Code from module openat-die:
5419 # Code from module openat-h:
5420 # Code from module opendir:
5421 # Code from module pathmax:
5422 # Code from module rawmemchr:
5423 # Code from module readdir:
5424 # Code from module readlink:
5425 # Code from module realloc-posix:
5426 # Code from module rename:
5427 # Code from module rewinddir:
5428 # Code from module rmdir:
5429 # Code from module same-inode:
5430 # Code from module save-cwd:
5431 # Code from module setenv:
5432 # Code from module signal-h:
5433 # Code from module snippet/_Noreturn:
5434 # Code from module snippet/arg-nonnull:
5435 # Code from module snippet/c++defs:
5436 # Code from module snippet/warn-on-use:
5437 # Code from module ssize_t:
5438 # Code from module stat:
5439 # Code from module stdbool:
5440 # Code from module stddef:
5441 # Code from module stdint:
5442 # Code from module stdio:
5443 # Code from module stdlib:
5444 # Code from module strchrnul:
5445 # Code from module strdup-posix:
5446 # Code from module streq:
5447 # Code from module strerror:
5448 # Code from module strerror-override:
5449 # Code from module string:
5450 # Code from module strnlen1:
5451 # Code from module strstr:
5452 # Code from module strstr-simple:
5453 # Code from module strtok_r:
5454 # Code from module sys_stat:
5455 # Code from module sys_time:
5456 # Code from module sys_types:
5457 # Code from module time:
5458 # Code from module unistd:
5459 # Code from module unistd-safer:
5460 # Code from module unsetenv:
5461 # Code from module update-copyright:
5462 # Code from module verify:
5463 # Code from module wchar:
5464 # Code from module wctype-h:
5467 ac_cpp
='$CPP $CPPFLAGS'
5468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5473 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_prog_CC+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -n "$CC"; then
5480 ac_cv_prog_CC
="$CC" # Let the user override the test.
5482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir
=.
5487 for ac_exec_ext
in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 if test -n "$CC"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5502 $as_echo "$CC" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5510 if test -z "$ac_cv_prog_CC"; then
5512 # Extract the first word of "gcc", so it can be a program name with args.
5513 set dummy gcc
; ac_word
=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5519 if test -n "$ac_ct_CC"; then
5520 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir
=.
5527 for ac_exec_ext
in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_ac_ct_CC
="gcc"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5540 if test -n "$ac_ct_CC"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5542 $as_echo "$ac_ct_CC" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5548 if test "x$ac_ct_CC" = x
; then
5551 case $cross_compiling:$ac_tool_warned in
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned
=yes ;;
5563 if test -z "$CC"; then
5564 if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5566 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if test "${ac_cv_prog_CC+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5572 if test -n "$CC"; then
5573 ac_cv_prog_CC
="$CC" # Let the user override the test.
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_exec_ext
in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 if test -n "$CC"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5595 $as_echo "$CC" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5604 if test -z "$CC"; then
5605 # Extract the first word of "cc", so it can be a program name with args.
5606 set dummy cc
; ac_word
=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_prog_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 if test -n "$CC"; then
5613 ac_cv_prog_CC
="$CC" # Let the user override the test.
5616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir
=.
5621 for ac_exec_ext
in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5624 ac_prog_rejected
=yes
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 if test $ac_prog_rejected = yes; then
5636 # We found a bogon in the path, so make sure we never use it.
5637 set dummy
$ac_cv_prog_CC
5639 if test $# != 0; then
5640 # We chose a different compiler from the bogus one.
5641 # However, it has the same basename, so the bogon will be chosen
5642 # first if we set CC to just the basename; use the full file name.
5644 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5650 if test -n "$CC"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5652 $as_echo "$CC" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5660 if test -z "$CC"; then
5661 if test -n "$ac_tool_prefix"; then
5662 for ac_prog
in cl.exe
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_CC+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5671 if test -n "$CC"; then
5672 ac_cv_prog_CC
="$CC" # Let the user override the test.
5674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5678 test -z "$as_dir" && as_dir
=.
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 if test -n "$CC"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5694 $as_echo "$CC" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5701 test -n "$CC" && break
5704 if test -z "$CC"; then
5706 for ac_prog
in cl.exe
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy
$ac_prog; ac_word
=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$ac_ct_CC"; then
5716 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir
=.
5723 for ac_exec_ext
in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_ac_ct_CC
="$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5736 if test -n "$ac_ct_CC"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5738 $as_echo "$ac_ct_CC" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 test -n "$ac_ct_CC" && break
5748 if test "x$ac_ct_CC" = x
; then
5751 case $cross_compiling:$ac_tool_warned in
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755 ac_tool_warned
=yes ;;
5764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 as_fn_error
"no acceptable C compiler found in \$PATH
5767 See \`config.log' for more details." "$LINENO" 5; }
5769 # Provide some information about the compiler.
5770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5773 for ac_option
in --version -v -V -qversion; do
5774 { { ac_try
="$ac_compiler $ac_option >&5"
5776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5780 $as_echo "$ac_try_echo"; } >&5
5781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5783 if test -s conftest.err; then
5785 ... rest of stderr output deleted ...
5786 10q' conftest.err >conftest.er1
5787 cat conftest.er1 >&5
5788 rm -f conftest.er1 conftest.err
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5796 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5813 if ac_fn_c_try_compile "$LINENO"; then :
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5824 if test $ac_compiler_gnu = yes; then
5829 ac_test_CFLAGS=${CFLAGS+set}
5830 ac_save_CFLAGS=$CFLAGS
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5833 if test "${ac_cv_prog_cc_g+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 ac_save_c_werror_flag=$ac_c_werror_flag
5837 ac_c_werror_flag=yes
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5851 if ac_fn_c_try_compile "$LINENO"; then :
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5866 if ac_fn_c_try_compile "$LINENO"; then :
5869 ac_c_werror_flag=$ac_save_c_werror_flag
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5882 if ac_fn_c_try_compile "$LINENO"; then :
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ac_c_werror_flag=$ac_save_c_werror_flag
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5893 $as_echo "$ac_cv_prog_cc_g" >&6; }
5894 if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS=$ac_save_CFLAGS
5896 elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5903 if test "$GCC" = yes; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5911 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 ac_cv_prog_cc_c89=no
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5920 #include <sys/types.h>
5921 #include <sys/stat.h>
5922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5923 struct buf { int x; };
5924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5925 static char *e (p, i)
5931 static char *f (char * (*g) (char **, int), char **p, ...)
5936 s = g (p, va_arg (v,int));
5941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5942 function prototypes and stuff, but not '\xHH' hex character constants.
5943 These don't provoke an error unfortunately, instead are silently treated
5944 as 'x'. The following induces an error, until -std is added to get
5945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5946 array size at least. It's necessary to write '\x00'==0 to get something
5947 that's true only with -std. */
5948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5951 inside strings and character constants. */
5953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5955 int test (int i, double x);
5956 struct s1 {int (*f) (int a);};
5957 struct s2 {int (*f) (double a);};
5958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5972 CC="$ac_save_CC $ac_arg"
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 ac_cv_prog_cc_c89=$ac_arg
5976 rm -f core conftest.err conftest.$ac_objext
5977 test "x$ac_cv_prog_cc_c89" != "xno" && break
5979 rm -f conftest.$ac_ext
5984 case "x$ac_cv_prog_cc_c89" in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5987 $as_echo "none needed" >&6; } ;;
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5990 $as_echo "unsupported" >&6; } ;;
5992 CC="$CC $ac_cv_prog_cc_c89"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5996 if test "x$ac_cv_prog_cc_c89" != xno; then :
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6011 for ac_dir in ../.. "$srcdir"/../..; do
6012 for ac_t in install-sh install.sh shtool; do
6013 if test -f "$ac_dir/$ac_t"; then
6015 ac_install_sh="$ac_aux_dir/$ac_t -c"
6020 if test -z "$ac_aux_dir"; then
6021 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6024 # These three variables are undocumented and unsupported,
6025 # and are intended to be withdrawn in a future Autoconf release.
6026 # They can cause serious problems if a builder's source tree is in a directory
6027 # whose full name contains unusual characters.
6028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6034 $as_echo_n "checking target system type... " >&6; }
6035 if test "${ac_cv_target+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6038 if test "x$target_alias" = x; then
6039 ac_cv_target=$ac_cv_host
6041 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6042 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6047 $as_echo "$ac_cv_target" >&6; }
6048 case $ac_cv_target in
6050 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
6052 target=$ac_cv_target
6053 ac_save_IFS=$IFS; IFS='-'
6059 # Remember, the first character of IFS is used to create $*,
6060 # except with old shells:
6063 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6066 # The aliases save the names the user supplied, while $host etc.
6067 # will get canonicalized.
6068 test -n "$target_alias" &&
6069 test "$program_prefix$program_suffix$program_transform_name" = \
6071 program_prefix=${target_alias}-
6079 LIBC_FATAL_STDERR_=1
6080 export LIBC_FATAL_STDERR_
6082 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6083 # for constant arguments. Useless!
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6085 $as_echo_n "checking for working alloca.h... " >&6; }
6086 if test "${ac_cv_working_alloca_h+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6095 char *p = (char *) alloca (2 * sizeof (int));
6101 if ac_fn_c_try_link "$LINENO"; then :
6102 ac_cv_working_alloca_h=yes
6104 ac_cv_working_alloca_h=no
6106 rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6110 $as_echo "$ac_cv_working_alloca_h" >&6; }
6111 if test $ac_cv_working_alloca_h = yes; then
6113 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6118 $as_echo_n "checking for alloca... " >&6; }
6119 if test "${ac_cv_func_alloca_works+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6125 # define alloca __builtin_alloca
6128 # include <malloc.h>
6129 # define alloca _alloca
6131 # ifdef HAVE_ALLOCA_H
6132 # include <alloca.h>
6137 # ifndef alloca /* predefined by HP cc +Olibcalls */
6148 char *p = (char *) alloca (1);
6154 if ac_fn_c_try_link "$LINENO"; then :
6155 ac_cv_func_alloca_works=yes
6157 ac_cv_func_alloca_works=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6163 $as_echo "$ac_cv_func_alloca_works" >&6; }
6165 if test $ac_cv_func_alloca_works = yes; then
6167 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6170 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6171 # that cause trouble. Some versions do not even contain alloca or
6172 # contain a buggy version. If you still want to use their alloca,
6173 # use ar to extract alloca.o from them instead of compiling alloca.c.
6179 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6181 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6185 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6186 if test "${ac_cv_os_cray+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #if defined CRAY && ! defined CRAY2
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 $EGREP "webecray" >/dev/null 2>&1; then :
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6208 $as_echo "$ac_cv_os_cray" >&6; }
6209 if test $ac_cv_os_cray = yes; then
6210 for ac_func in _getb67 GETB67 getb67; do
6211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6213 eval as_val=\$$as_ac_var
6214 if test "x$as_val" = x""yes; then :
6216 cat >>confdefs.h <<_ACEOF
6217 #define CRAY_STACKSEG_END $ac_func
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6227 $as_echo_n "checking stack direction for C alloca... " >&6; }
6228 if test "${ac_cv_c_stack_direction+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 if test "$cross_compiling" = yes; then :
6232 ac_cv_c_stack_direction=0
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 $ac_includes_default
6238 find_stack_direction (int *addr, int depth)
6243 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6244 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6249 main (int argc, char **argv)
6251 return find_stack_direction (0, argc + !argv + 20) < 0;
6254 if ac_fn_c_try_run "$LINENO"; then :
6255 ac_cv_c_stack_direction=1
6257 ac_cv_c_stack_direction=-1
6259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6260 conftest.$ac_objext conftest.beam conftest.$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6265 $as_echo "$ac_cv_c_stack_direction" >&6; }
6266 cat >>confdefs.h <<_ACEOF
6267 #define STACK_DIRECTION $ac_cv_c_stack_direction
6276 GNULIB_CALLOC_POSIX=0;
6277 GNULIB_CANONICALIZE_FILE_NAME=0;
6278 GNULIB_GETLOADAVG=0;
6281 GNULIB_MALLOC_POSIX=0;
6288 GNULIB_POSIX_OPENPT=0;
6295 GNULIB_REALLOC_POSIX=0;
6298 GNULIB_SECURE_GETENV=0;
6303 GNULIB_SYSTEM_POSIX=0;
6309 HAVE_CANONICALIZE_FILE_NAME=1;
6310 HAVE_DECL_GETLOADAVG=1;
6318 HAVE_POSIX_OPENPT=1;
6327 HAVE_SECURE_GETENV=1;
6333 HAVE_STRUCT_RANDOM_DATA=1;
6334 HAVE_SYS_LOADAVG_H=0;
6336 HAVE_DECL_UNSETENV=1;
6338 REPLACE_CANONICALIZE_FILE_NAME=0;
6343 REPLACE_PTSNAME_R=0;
6357 for ac_func in $ac_func_list
6359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6361 eval as_val=\$$as_ac_var
6362 if test "x$as_val" = x""yes; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6379 $as_echo_n "checking whether // is distinct from /... " >&6; }
6380 if test "${gl_cv_double_slash_root+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6383 if test x"$cross_compiling" = xyes ; then
6384 # When cross-compiling, there is no way to tell whether // is special
6385 # short of a list of hosts. However, the only known hosts to date
6386 # that have a distinct // are Apollo DomainOS (too old to port to),
6387 # Cygwin, and z/OS. If anyone knows of another system for which // has
6388 # special semantics and is distinct from /, please report it to
6389 # <bug-gnulib@gnu.org>.
6391 *-cygwin | i370-ibm-openedition)
6392 gl_cv_double_slash_root=yes ;;
6394 # Be optimistic and assume that / and // are the same when we
6396 gl_cv_double_slash_root='unknown, assuming no' ;;
6399 set x `ls -di / // 2>/dev
/null
`
6400 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6401 gl_cv_double_slash_root=no
6403 gl_cv_double_slash_root=yes
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6408 $as_echo "$gl_cv_double_slash_root" >&6; }
6409 if test "$gl_cv_double_slash_root" = yes; then
6411 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6420 $as_echo_n "checking whether realpath works... " >&6; }
6421 if test "${gl_cv_func_realpath_works+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6427 if test "$cross_compiling" = yes; then :
6429 # Guess yes on glibc systems.
6430 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6431 # If we don't know, assume the worst.
6432 *) gl_cv_func_realpath_works="guessing no" ;;
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6442 #if defined __MACH__ && defined __APPLE__
6443 /* Avoid a crash on Mac OS X. */
6444 #include <mach/mach.h>
6445 #include <mach/mach_error.h>
6446 #include <mach/thread_status.h>
6447 #include <mach/exception.h>
6448 #include <mach/task.h>
6449 #include <pthread.h>
6450 /* The exception port on which our thread listens. */
6451 static mach_port_t our_exception_port;
6452 /* The main function of the thread listening for exceptions of type
6455 mach_exception_thread (void *arg)
6457 /* Buffer for a message to be received. */
6459 mach_msg_header_t head;
6460 mach_msg_body_t msgh_body;
6463 mach_msg_return_t retval;
6464 /* Wait for a message on the exception port. */
6465 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6466 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6467 if (retval != MACH_MSG_SUCCESS)
6474 mach_port_t self = mach_task_self ();
6475 /* Allocate a port on which the thread shall listen for exceptions. */
6476 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6478 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6479 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6480 MACH_MSG_TYPE_MAKE_SEND)
6482 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6484 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6485 /* Create the thread listening on the exception port. */
6486 pthread_attr_t attr;
6488 if (pthread_attr_init (&attr) == 0
6489 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6490 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6491 pthread_attr_destroy (&attr);
6492 /* Replace the exception port info for these exceptions with our own.
6493 Note that we replace the exception port for the entire task, not only
6494 for a particular thread. This has the effect that when our exception
6495 port gets the message, the thread specific exception port has already
6496 been asked, and we don't need to bother about it.
6497 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6498 task_set_exception_ports (self, mask, our_exception_port,
6499 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6504 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6505 /* Avoid a crash on native Windows. */
6506 #define WIN32_LEAN_AND_MEAN
6507 #include <windows.h>
6508 #include <winerror.h>
6510 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6512 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6514 case EXCEPTION_ACCESS_VIOLATION:
6515 case EXCEPTION_IN_PAGE_ERROR:
6516 case EXCEPTION_STACK_OVERFLOW:
6517 case EXCEPTION_GUARD_PAGE:
6518 case EXCEPTION_PRIV_INSTRUCTION:
6519 case EXCEPTION_ILLEGAL_INSTRUCTION:
6520 case EXCEPTION_DATATYPE_MISALIGNMENT:
6521 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6522 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6525 return EXCEPTION_CONTINUE_SEARCH;
6530 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6533 /* Avoid a crash on POSIX systems. */
6536 /* A POSIX signal handler. */
6538 exception_handler (int sig)
6546 signal (SIGSEGV, exception_handler);
6549 signal (SIGBUS, exception_handler);
6563 char *name = realpath ("conftest.a", NULL);
6564 if (!(name && *name == '/'))
6569 char *name = realpath ("conftest.b/../conftest.a", NULL);
6575 char *name = realpath ("conftest.a/", NULL);
6581 char *name1 = realpath (".", NULL);
6582 char *name2 = realpath ("conftest.d//./..", NULL);
6583 if (! name1 || ! name2 || strcmp (name1, name2))
6595 if ac_fn_c_try_run "$LINENO"; then :
6596 gl_cv_func_realpath_works=yes
6598 gl_cv_func_realpath_works=no
6600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6601 conftest.$ac_objext conftest.beam conftest.$ac_ext
6604 rm -rf conftest.a conftest.d
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6608 $as_echo "$gl_cv_func_realpath_works" >&6; }
6609 case "$gl_cv_func_realpath_works" in
6612 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6620 for ac_header in $ac_header_list
6622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6625 eval as_val=\$$as_ac_Header
6626 if test "x$as_val" = x""yes; then :
6627 cat >>confdefs.h <<_ACEOF
6628 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6652 GNULIB_EUIDACCESS=0;
6660 GNULIB_GETDOMAINNAME=0;
6661 GNULIB_GETDTABLESIZE=0;
6663 GNULIB_GETHOSTNAME=0;
6665 GNULIB_GETLOGIN_R=0;
6666 GNULIB_GETPAGESIZE=0;
6667 GNULIB_GETUSERSHELL=0;
6668 GNULIB_GROUP_MEMBER=0;
6680 GNULIB_READLINKAT=0;
6682 GNULIB_SETHOSTNAME=0;
6687 GNULIB_UNISTD_H_NONBLOCKING=0;
6688 GNULIB_UNISTD_H_SIGPIPE=0;
6703 HAVE_GETDTABLESIZE=1;
6708 HAVE_GROUP_MEMBER=1;
6724 HAVE_DECL_ENVIRON=1;
6726 HAVE_DECL_FDATASYNC=1;
6727 HAVE_DECL_GETDOMAINNAME=1;
6728 HAVE_DECL_GETLOGIN_R=1;
6729 HAVE_DECL_GETPAGESIZE=1;
6730 HAVE_DECL_GETUSERSHELL=1;
6731 HAVE_DECL_SETHOSTNAME=1;
6732 HAVE_DECL_TTYNAME_R=1;
6740 REPLACE_FTRUNCATE=0;
6742 REPLACE_GETDOMAINNAME=0;
6743 REPLACE_GETDTABLESIZE=0;
6744 REPLACE_GETLOGIN_R=0;
6745 REPLACE_GETGROUPS=0;
6746 REPLACE_GETPAGESIZE=0;
6756 REPLACE_READLINKAT=0;
6760 REPLACE_SYMLINKAT=0;
6761 REPLACE_TTYNAME_R=0;
6766 UNISTD_H_HAVE_WINSOCK2_H=0;
6767 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6779 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
6780 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
6782 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
6785 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
6807 HAVE_DECL_FDOPENDIR=1;
6814 REPLACE_FDOPENDIR=0;
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6819 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6820 if test "${gl_cv_have_include_next+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6823 rm -rf conftestd1a conftestd1b conftestd2
6824 mkdir conftestd1a conftestd1b conftestd2
6825 cat <<EOF > conftestd1a/conftest.h
6826 #define DEFINED_IN_CONFTESTD1
6827 #include_next <conftest.h>
6828 #ifdef DEFINED_IN_CONFTESTD2
6831 #error "include_next doesn't work"
6834 cat <<EOF > conftestd1b/conftest.h
6835 #define DEFINED_IN_CONFTESTD1
6837 #include_next <conftest.h>
6838 #ifdef DEFINED_IN_CONFTESTD2
6841 #error "include_next doesn't work"
6844 cat <<EOF > conftestd2/conftest.h
6845 #ifndef DEFINED_IN_CONFTESTD1
6846 #error "include_next test doesn't work"
6848 #define DEFINED_IN_CONFTESTD2
6850 gl_save_CPPFLAGS="$CPPFLAGS"
6851 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <conftest.h>
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 gl_cv_have_include_next=yes
6859 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <conftest.h>
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_have_include_next=buggy
6867 gl_cv_have_include_next=no
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 CPPFLAGS="$gl_save_CPPFLAGS"
6874 rm -rf conftestd1a conftestd1b conftestd2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6878 $as_echo "$gl_cv_have_include_next" >&6; }
6879 PRAGMA_SYSTEM_HEADER=
6880 if test $gl_cv_have_include_next = yes; then
6881 INCLUDE_NEXT=include_next
6882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6883 if test -n "$GCC"; then
6884 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6887 if test $gl_cv_have_include_next = buggy; then
6888 INCLUDE_NEXT=include
6889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6891 INCLUDE_NEXT=include
6892 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6899 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6900 if test "${gl_cv_pragma_columns+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "choke me" >/dev/null 2>&1; then :
6913 gl_cv_pragma_columns=yes
6915 gl_cv_pragma_columns=no
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6922 $as_echo "$gl_cv_pragma_columns" >&6; }
6923 if test $gl_cv_pragma_columns = yes; then
6924 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
6940 $as_echo_n "checking if environ is properly declared... " >&6; }
6941 if test "${gt_cv_var_environ_declaration+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6950 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
6953 extern struct { int foo; } environ;
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 gt_cv_var_environ_declaration=no
6965 gt_cv_var_environ_declaration=yes
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
6971 $as_echo "$gt_cv_var_environ_declaration" >&6; }
6972 if test $gt_cv_var_environ_declaration = yes; then
6974 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
6979 if test $gt_cv_var_environ_declaration != yes; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6986 $as_echo_n "checking for complete errno.h... " >&6; }
6987 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6995 #if !defined ETXTBSY
7004 #if !defined ENOLINK
7010 #if !defined EMULTIHOP
7013 #if !defined EBADMSG
7016 #if !defined EOVERFLOW
7019 #if !defined ENOTSUP
7022 #if !defined ENETRESET
7025 #if !defined ECONNABORTED
7034 #if !defined ECANCELED
7037 #if !defined EOWNERDEAD
7040 #if !defined ENOTRECOVERABLE
7048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7049 $EGREP "booboo" >/dev/null 2>&1; then :
7050 gl_cv_header_errno_h_complete=no
7052 gl_cv_header_errno_h_complete=yes
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7059 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7060 if test $gl_cv_header_errno_h_complete = yes; then
7071 if test $gl_cv_have_include_next = yes; then
7072 gl_cv_next_errno_h='<'errno.h'>'
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7075 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7076 if test "${gl_cv_next_errno_h+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7087 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7088 *) gl_absname_cpp="$ac_cpp" ;;
7093 gl_dirsep_regex='[/\\]'
7096 gl_dirsep_regex='\/'
7099 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7100 gl_header_literal_regex=`echo 'errno.h' \
7101 |
sed -e "$gl_make_literal_regex_sed"`
7102 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7103 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7109 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7110 sed -n "$gl_absolute_header_sed"`
7112 gl_header=$gl_cv_absolute_errno_h
7113 gl_cv_next_errno_h='"'$gl_header'"'
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7118 $as_echo "$gl_cv_next_errno_h" >&6; }
7120 NEXT_ERRNO_H=$gl_cv_next_errno_h
7122 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7123 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7124 gl_next_as_first_directive='<'errno.h'>'
7126 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7127 gl_next_as_first_directive=$gl_cv_next_errno_h
7129 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7137 if test -n "$ERRNO_H"; then
7138 GL_GENERATE_ERRNO_H_TRUE=
7139 GL_GENERATE_ERRNO_H_FALSE='#'
7141 GL_GENERATE_ERRNO_H_TRUE='#'
7142 GL_GENERATE_ERRNO_H_FALSE=
7146 if test -n "$ERRNO_H"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7148 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7149 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "yes" >/dev/null 2>&1; then :
7164 gl_cv_header_errno_h_EMULTIHOP=yes
7166 gl_cv_header_errno_h_EMULTIHOP=no
7170 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7174 #define _XOPEN_SOURCE_EXTENDED 1
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "yes" >/dev/null 2>&1; then :
7183 gl_cv_header_errno_h_EMULTIHOP=hidden
7187 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7188 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7189 #define _XOPEN_SOURCE_EXTENDED 1
7191 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7203 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7204 case $gl_cv_header_errno_h_EMULTIHOP in
7206 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7209 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7217 if test -n "$ERRNO_H"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7219 $as_echo_n "checking for ENOLINK value... " >&6; }
7220 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "yes" >/dev/null 2>&1; then :
7235 gl_cv_header_errno_h_ENOLINK=yes
7237 gl_cv_header_errno_h_ENOLINK=no
7241 if test $gl_cv_header_errno_h_ENOLINK = no; then
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7245 #define _XOPEN_SOURCE_EXTENDED 1
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 $EGREP "yes" >/dev/null 2>&1; then :
7254 gl_cv_header_errno_h_ENOLINK=hidden
7258 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7259 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7260 #define _XOPEN_SOURCE_EXTENDED 1
7262 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7274 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7275 case $gl_cv_header_errno_h_ENOLINK in
7277 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7280 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7288 if test -n "$ERRNO_H"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7290 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7291 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "yes" >/dev/null 2>&1; then :
7306 gl_cv_header_errno_h_EOVERFLOW=yes
7308 gl_cv_header_errno_h_EOVERFLOW=no
7312 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7316 #define _XOPEN_SOURCE_EXTENDED 1
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "yes" >/dev/null 2>&1; then :
7325 gl_cv_header_errno_h_EOVERFLOW=hidden
7329 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7330 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7331 #define _XOPEN_SOURCE_EXTENDED 1
7333 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7345 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7346 case $gl_cv_header_errno_h_EOVERFLOW in
7348 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7351 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7359 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7360 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
7366 cat >>confdefs.h <<_ACEOF
7367 #define HAVE_DECL_STRERROR_R $ac_have_decl
7370 for ac_func in strerror_r
7372 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7373 if test "x$ac_cv_func_strerror_r" = x""yes; then :
7374 cat >>confdefs.h <<_ACEOF
7375 #define HAVE_STRERROR_R 1
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7382 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7383 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7387 ac_cv_func_strerror_r_char_p=no
7388 if test $ac_cv_have_decl_strerror_r = yes; then
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 $ac_includes_default
7397 char x = *strerror_r (0, buf, sizeof buf);
7398 char *p = strerror_r (0, buf, sizeof buf);
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_func_strerror_r_char_p=yes
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 # strerror_r is not declared. Choose between
7411 # systems that have relatively inaccessible declarations for the
7412 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7413 # former has a strerror_r that returns char*, while the latter
7414 # has a strerror_r that returns `int
'.
7415 # This test should segfault on the DEC system.
7416 if test "$cross_compiling" = yes; then :
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 $ac_includes_default
7422 extern char *strerror_r ();
7427 char x = *strerror_r (0, buf, sizeof buf);
7428 return ! isalpha (x);
7433 if ac_fn_c_try_run "$LINENO"; then :
7434 ac_cv_func_strerror_r_char_p=yes
7436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7437 conftest.$ac_objext conftest.beam conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7444 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7445 if test $ac_cv_func_strerror_r_char_p = yes; then
7447 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7454 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7455 if test "x$ac_cv_have_decl_fchdir" = x""yes; then :
7461 cat >>confdefs.h <<_ACEOF
7462 #define HAVE_DECL_FCHDIR $ac_have_decl
7467 GNULIB_NONBLOCKING=0;
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7486 $as_echo_n "checking for working fcntl.h... " >&6; }
7487 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7490 if test "$cross_compiling" = yes; then :
7491 gl_cv_header_working_fcntl_h=cross-compiling
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7496 #include <sys/stat.h>
7498 # include <unistd.h>
7499 #else /* on Windows with MSVC */
7501 # include <stdlib.h>
7502 # defined sleep(n) _sleep ((n) * 1000)
7509 #define O_NOFOLLOW 0
7511 static int const constants[] =
7513 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7514 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7521 int result = !constants;
7524 static char const sym[] = "conftest.sym";
7525 if (symlink ("/dev/null", sym) != 0)
7529 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7536 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7540 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7551 static char const file[] = "confdefs.h";
7552 int fd = open (file, O_RDONLY | O_NOATIME);
7558 if (fstat (fd, &st0) != 0)
7564 if (read (fd, &c, 1) != 1)
7568 if (close (fd) != 0)
7573 if (stat (file, &st1) != 0)
7576 if (st0.st_atime != st1.st_atime)
7588 if ac_fn_c_try_run "$LINENO"; then :
7589 gl_cv_header_working_fcntl_h=yes
7592 4) gl_cv_header_working_fcntl_h='no
(bad O_NOFOLLOW
)';; #(
7593 64) gl_cv_header_working_fcntl_h='no
(bad O_NOATIME
)';; #(
7594 68) gl_cv_header_working_fcntl_h='no
(bad O_NOATIME
, O_NOFOLLOW
)';; #(
7595 *) gl_cv_header_working_fcntl_h='no
';;
7598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7599 conftest.$ac_objext conftest.beam conftest.$ac_ext
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7604 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7606 case $gl_cv_header_working_fcntl_h in #(
7607 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7611 cat >>confdefs.h <<_ACEOF
7612 #define HAVE_WORKING_O_NOATIME $ac_val
7616 case $gl_cv_header_working_fcntl_h in #(
7617 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7626 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7627 if test "x$ac_cv_type_pid_t" = x""yes; then :
7631 cat >>confdefs.h <<_ACEOF
7637 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7638 if test "x$ac_cv_type_mode_t" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7655 $as_echo_n "checking for mbstate_t... " >&6; }
7656 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 $ac_includes_default
7662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7664 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7665 included before <wchar.h>. */
7673 mbstate_t x; return sizeof x;
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 ac_cv_type_mbstate_t=yes
7681 ac_cv_type_mbstate_t=no
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7686 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7687 if test $ac_cv_type_mbstate_t = yes; then
7689 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7693 $as_echo "#define mbstate_t int" >>confdefs.h
7789 GNULIB_REMAINDERF=0;
7790 GNULIB_REMAINDERL=0;
7876 HAVE_DECL_COPYSIGNF=1;
7893 HAVE_DECL_REMAINDER=1;
7894 HAVE_DECL_REMAINDERL=1;
7956 REPLACE_REMAINDER=0;
7957 REPLACE_REMAINDERF=0;
7958 REPLACE_REMAINDERL=0;
7963 REPLACE_SIGNBIT_USING_GCC=0;
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7971 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7972 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7983 int e; return frexp (x, &e) > 0;
7988 if ac_fn_c_try_link "$LINENO"; then :
7989 gl_cv_func_frexp_no_libm=yes
7991 gl_cv_func_frexp_no_libm=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7998 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8000 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8001 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_DECL_ALARM $ac_have_decl
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8013 $as_echo_n "checking whether long double and double are the same... " >&6; }
8014 if test "${gl_cv_long_double_equals_double+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8023 typedef int check[sizeof (long double) == sizeof (double)
8024 && LDBL_MANT_DIG == DBL_MANT_DIG
8025 && LDBL_MAX_EXP == DBL_MAX_EXP
8026 && LDBL_MIN_EXP == DBL_MIN_EXP
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 gl_cv_long_double_equals_double=yes
8036 gl_cv_long_double_equals_double=no
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8042 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8043 if test $gl_cv_long_double_equals_double = yes; then
8045 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8047 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8049 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8086 REPLACE_UTIMENSAT=0;
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8089 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8090 if test "${ac_cv_header_stat_broken+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <sys/types.h>
8096 #include <sys/stat.h>
8098 #if defined S_ISBLK && defined S_IFDIR
8099 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8102 #if defined S_ISBLK && defined S_IFCHR
8103 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8106 #if defined S_ISLNK && defined S_IFREG
8107 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8110 #if defined S_ISSOCK && defined S_IFREG
8111 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 ac_cv_header_stat_broken=no
8118 ac_cv_header_stat_broken=yes
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8123 $as_echo "$ac_cv_header_stat_broken" >&6; }
8124 if test $ac_cv_header_stat_broken = yes; then
8126 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8137 $as_echo_n "checking for 64-bit off_t... " >&6; }
8138 if test "${gl_cv_type_off_t_64+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #include <sys/types.h>
8144 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155 gl_cv_type_off_t_64=yes
8157 gl_cv_type_off_t_64=no
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8163 $as_echo "$gl_cv_type_off_t_64" >&6; }
8164 if test $gl_cv_type_off_t_64 = no; then
8165 WINDOWS_64_BIT_OFF_T=1
8167 WINDOWS_64_BIT_OFF_T=0
8169 WINDOWS_64_BIT_ST_SIZE=1
8172 WINDOWS_64_BIT_OFF_T=0
8173 WINDOWS_64_BIT_ST_SIZE=0
8191 if test $gl_cv_have_include_next = yes; then
8192 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8195 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8196 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8200 if test $ac_cv_header_sys_stat_h = yes; then
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <sys/stat.h>
8210 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8211 *) gl_absname_cpp="$ac_cpp" ;;
8216 gl_dirsep_regex='[/\\]'
8219 gl_dirsep_regex='\
/'
8222 gl_make_literal_regex_sed='s
,[]$^
\\.
*/[],\\&,g
'
8223 gl_header_literal_regex=`echo 'sys
/stat.h
' \
8224 | sed -e "$gl_make_literal_regex_sed"`
8225 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8226 s
/.
*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".
*/\
1/
8232 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8233 sed -n "$gl_absolute_header_sed"`
8235 gl_header=$gl_cv_absolute_sys_stat_h
8236 gl_cv_next_sys_stat_h='"'$gl_header'"'
8238 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8244 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8246 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next
'
8250 gl_next_as_first_directive='<'sys/stat.h'>'
8252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include
'
8253 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
8255 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
8267 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8269 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8273 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8274 #include <sys/stat.h>
8276 if test "x$ac_cv_type_nlink_t" = x""yes; then :
8280 $as_echo "#define nlink_t int" >>confdefs.h
8286 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
8287 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8289 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8290 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8291 $as_echo_n "(cached) " >&6
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <sys/stat.h>
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307 eval "$as_gl_Symbol=yes"
8309 eval "$as_gl_Symbol=no"
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 eval ac_res=\$$as_gl_Symbol
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8315 $as_echo "$ac_res" >&6; }
8316 eval as_val=\$$as_gl_Symbol
8317 if test "x$as_val" = x""yes; then :
8318 cat >>confdefs.h <<_ACEOF
8319 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8322 eval ac_cv_have_decl_$gl_func=yes
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8329 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8330 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8333 rm -f conftest.sym conftest.file
8335 if test "$cross_compiling" = yes; then :
8338 # Guess yes on glibc systems.
8339 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
8341 # If we don't know
, assume the worst.
8342 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
8346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 $ac_includes_default
8353 if (symlink ("conftest.file", "conftest.sym") != 0)
8355 /* Linux will dereference the symlink and fail, as required by
8356 POSIX. That is better in the sense that it means we will not
8357 have to compile and use the lstat wrapper. */
8358 return lstat ("conftest.sym/", &sbuf) == 0;
8364 if ac_fn_c_try_run
"$LINENO"; then :
8365 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
8367 gl_cv_func_lstat_dereferences_slashed_symlink
=no
8369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8373 rm -f conftest.sym conftest.
file
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8377 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8378 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8381 cat >>confdefs.h
<<_ACEOF
8382 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
8393 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
8394 if test "${gl_cv_func_getcwd_null+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 if test "$cross_compiling" = yes; then :
8399 # Guess yes on glibc systems.
8400 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
8401 # Guess yes on Cygwin.
8402 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
8403 # If we don't know, assume the worst.
8404 *) gl_cv_func_getcwd_null
="guessing no";;
8408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8411 # include <stdlib.h>
8413 # include <unistd.h>
8414 # else /* on Windows with MSVC */
8415 # include <direct.h>
8425 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8426 /* mingw cwd does not start with '/', but getcwd does allocate.
8427 However, mingw fails to honor non-zero size. */
8429 if (chdir ("/") != 0)
8433 char *f = getcwd (NULL, 0);
8449 if ac_fn_c_try_run
"$LINENO"; then :
8450 gl_cv_func_getcwd_null
=yes
8452 gl_cv_func_getcwd_null
=no
8454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
8460 $as_echo "$gl_cv_func_getcwd_null" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
8464 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
8465 if test "${gl_cv_func_getcwd_posix_signature+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8478 char *getcwd (char *, size_t);
8485 if ac_fn_c_try_compile
"$LINENO"; then :
8486 gl_cv_func_getcwd_posix_signature
=yes
8488 gl_cv_func_getcwd_posix_signature
=no
8490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
8494 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
8496 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
8497 if test "x$ac_cv_have_decl_getcwd" = x
""yes; then :
8503 cat >>confdefs.h
<<_ACEOF
8504 #define HAVE_DECL_GETCWD $ac_have_decl
8509 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
8510 if test "x$ac_cv_have_decl_getdtablesize" = x
""yes; then :
8516 cat >>confdefs.h
<<_ACEOF
8517 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
8520 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
8521 if test "x$ac_cv_have_decl_getlogin_r" = x
""yes; then :
8527 cat >>confdefs.h
<<_ACEOF
8528 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
8533 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
8534 if test "x$ac_cv_have_decl_getlogin" = x
""yes; then :
8540 cat >>confdefs.h
<<_ACEOF
8541 #define HAVE_DECL_GETLOGIN $ac_have_decl
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8549 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8550 if test "${ac_cv_c_restrict+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8554 # The order here caters to the fact that C++ does not require restrict.
8555 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
8556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 typedef int *int_ptr;
8559 int foo (int_ptr $ac_kw ip) { return ip[0]; }
8560 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
8561 int bar (int ip[$ac_kw]) { return ip[0]; }
8569 return foo (t) + bar (t);
8575 if ac_fn_c_try_compile
"$LINENO"; then :
8576 ac_cv_c_restrict
=$ac_kw
8578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8579 test "$ac_cv_c_restrict" != no
&& break
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8584 $as_echo "$ac_cv_c_restrict" >&6; }
8586 case $ac_cv_c_restrict in
8588 no
) $as_echo "#define restrict /**/" >>confdefs.h
8590 *) cat >>confdefs.h
<<_ACEOF
8591 #define restrict $ac_cv_c_restrict
8597 GNULIB_GETTIMEOFDAY
=0;
8598 HAVE_GETTIMEOFDAY
=1;
8599 HAVE_STRUCT_TIMEVAL
=1;
8602 REPLACE_GETTIMEOFDAY
=0;
8603 REPLACE_STRUCT_TIMEVAL
=0;
8620 if test $gl_cv_have_include_next = yes; then
8621 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
8624 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
8625 if test "${gl_cv_next_sys_time_h+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8629 if test $ac_cv_header_sys_time_h = yes; then
8634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/time.h>
8639 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8640 *) gl_absname_cpp
="$ac_cpp" ;;
8645 gl_dirsep_regex
='[/\\]'
8648 gl_dirsep_regex
='\/'
8651 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8652 gl_header_literal_regex
=`echo 'sys/time.h' \
8653 | sed -e "$gl_make_literal_regex_sed"`
8654 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8655 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8661 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8662 sed -n "$gl_absolute_header_sed"`
8664 gl_header
=$gl_cv_absolute_sys_time_h
8665 gl_cv_next_sys_time_h
='"'$gl_header'"'
8667 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
8673 $as_echo "$gl_cv_next_sys_time_h" >&6; }
8675 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
8677 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8679 gl_next_as_first_directive
='<'sys
/time.h
'>'
8681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8682 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
8684 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
8690 if test $ac_cv_header_sys_time_h != yes; then
8698 if test $ac_cv_header_sys_socket_h != yes; then
8699 for ac_header
in winsock2.h
8701 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8702 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
8703 cat >>confdefs.h
<<_ACEOF
8704 #define HAVE_WINSOCK2_H 1
8712 if test "$ac_cv_header_winsock2_h" = yes; then
8714 UNISTD_H_HAVE_WINSOCK2_H
=1
8715 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8722 $as_echo_n "checking for struct timeval... " >&6; }
8723 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8729 #include <sys/time.h>
8733 # include <winsock2.h>
8739 static struct timeval x; x.tv_sec = x.tv_usec;
8744 if ac_fn_c_try_compile
"$LINENO"; then :
8745 gl_cv_sys_struct_timeval
=yes
8747 gl_cv_sys_struct_timeval
=no
8749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
8753 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
8754 if test $gl_cv_sys_struct_timeval != yes; then
8755 HAVE_STRUCT_TIMEVAL
=0
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
8758 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
8759 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8765 #include <sys/time.h>
8769 # include <winsock2.h>
8775 static struct timeval x;
8776 typedef int verify_tv_sec_type[
8777 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
8784 if ac_fn_c_try_compile
"$LINENO"; then :
8785 gl_cv_sys_struct_timeval_tv_sec
=yes
8787 gl_cv_sys_struct_timeval_tv_sec
=no
8789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
8793 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
8794 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
8795 REPLACE_STRUCT_TIMEVAL
=1
8800 for gl_func
in gettimeofday
; do
8801 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8803 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8804 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8811 # include <sys/time.h>
8824 if ac_fn_c_try_compile
"$LINENO"; then :
8825 eval "$as_gl_Symbol=yes"
8827 eval "$as_gl_Symbol=no"
8829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8831 eval ac_res
=\$
$as_gl_Symbol
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8833 $as_echo "$ac_res" >&6; }
8834 eval as_val
=\$
$as_gl_Symbol
8835 if test "x$as_val" = x
""yes; then :
8836 cat >>confdefs.h
<<_ACEOF
8837 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8840 eval ac_cv_have_decl_
$gl_func=yes
8866 if test $gl_cv_have_include_next = yes; then
8867 gl_cv_next_limits_h
='<'limits.h
'>'
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
8870 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
8871 if test "${gl_cv_next_limits_h+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8875 if test $ac_cv_header_limits_h = yes; then
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8885 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8886 *) gl_absname_cpp
="$ac_cpp" ;;
8891 gl_dirsep_regex
='[/\\]'
8894 gl_dirsep_regex
='\/'
8897 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8898 gl_header_literal_regex
=`echo 'limits.h' \
8899 | sed -e "$gl_make_literal_regex_sed"`
8900 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8907 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8908 sed -n "$gl_absolute_header_sed"`
8910 gl_header
=$gl_cv_absolute_limits_h
8911 gl_cv_next_limits_h
='"'$gl_header'"'
8913 gl_cv_next_limits_h
='<'limits.h
'>'
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8919 $as_echo "$gl_cv_next_limits_h" >&6; }
8921 NEXT_LIMITS_H
=$gl_cv_next_limits_h
8923 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8925 gl_next_as_first_directive
='<'limits.h
'>'
8927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8928 gl_next_as_first_directive
=$gl_cv_next_limits_h
8930 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
8937 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
8938 if test "${gl_cv_header_limits_width+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8944 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8947 int ullw = ULLONG_WIDTH;
8956 if ac_fn_c_try_compile
"$LINENO"; then :
8957 gl_cv_header_limits_width
=yes
8959 gl_cv_header_limits_width
=no
8961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8964 $as_echo "$gl_cv_header_limits_width" >&6; }
8965 if test "$gl_cv_header_limits_width" = yes; then
8971 if test -n "$LIMITS_H"; then
8972 GL_GENERATE_LIMITS_H_TRUE
=
8973 GL_GENERATE_LIMITS_H_FALSE
='#'
8975 GL_GENERATE_LIMITS_H_TRUE
='#'
8976 GL_GENERATE_LIMITS_H_FALSE
=
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8982 $as_echo_n "checking for unsigned long long int... " >&6; }
8983 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8986 ac_cv_type_unsigned_long_long_int
=yes
8987 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
8988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8991 /* For now, do not test the preprocessor; as of 2007 there are too many
8992 implementations with broken preprocessors. Perhaps this can
8993 be revisited in 2012. In the meantime, code should not expect
8994 #if to work with literals wider than 32 bits. */
8995 /* Test literals. */
8996 long long int ll = 9223372036854775807ll;
8997 long long int nll = -9223372036854775807LL;
8998 unsigned long long int ull = 18446744073709551615ULL;
8999 /* Test constant expressions. */
9000 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9002 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9008 /* Test availability of runtime routines for shift and division. */
9009 long long int llmax = 9223372036854775807ll;
9010 unsigned long long int ullmax = 18446744073709551615ull;
9011 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9012 | (llmax / ll) | (llmax % ll)
9013 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9014 | (ullmax / ull) | (ullmax % ull));
9020 if ac_fn_c_try_link
"$LINENO"; then :
9023 ac_cv_type_unsigned_long_long_int
=no
9025 rm -f core conftest.err conftest.
$ac_objext \
9026 conftest
$ac_exeext conftest.
$ac_ext
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9030 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9031 if test $ac_cv_type_unsigned_long_long_int = yes; then
9033 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9040 $as_echo_n "checking for long long int... " >&6; }
9041 if test "${ac_cv_type_long_long_int+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9044 ac_cv_type_long_long_int
=yes
9045 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9046 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9047 if test $ac_cv_type_long_long_int = yes; then
9048 if test "$cross_compiling" = yes; then :
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9056 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9057 # define LLONG_MAX (HALF - 1 + HALF)
9062 long long int n = 1;
9066 long long int m = n << i;
9069 if (LLONG_MAX / 2 < m)
9077 if ac_fn_c_try_run
"$LINENO"; then :
9080 ac_cv_type_long_long_int
=no
9082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9090 $as_echo "$ac_cv_type_long_long_int" >&6; }
9091 if test $ac_cv_type_long_long_int = yes; then
9093 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9102 gl_cv_c_multiarch
=no
9103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 #ifndef __APPLE_CC__
9106 not a universal capable compiler
9111 if ac_fn_c_try_compile
"$LINENO"; then :
9115 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9116 if test -n "$prev"; then
9118 i?
86 | x86_64 | ppc | ppc64
)
9119 if test -z "$arch" ||
test "$arch" = "$word"; then
9122 gl_cv_c_multiarch
=yes
9128 if test "x$word" = "x-arch"; then
9135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9136 if test $gl_cv_c_multiarch = yes; then
9137 APPLE_UNIVERSAL_BUILD
=1
9139 APPLE_UNIVERSAL_BUILD
=0
9148 if test $ac_cv_type_long_long_int = yes; then
9149 HAVE_LONG_LONG_INT
=1
9151 HAVE_LONG_LONG_INT
=0
9155 if test $ac_cv_type_unsigned_long_long_int = yes; then
9156 HAVE_UNSIGNED_LONG_LONG_INT
=1
9158 HAVE_UNSIGNED_LONG_LONG_INT
=0
9163 if test $ac_cv_header_wchar_h = yes; then
9170 if test $ac_cv_header_inttypes_h = yes; then
9177 if test $ac_cv_header_sys_types_h = yes; then
9193 if test $gl_cv_have_include_next = yes; then
9194 gl_cv_next_stdint_h
='<'stdint.h
'>'
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
9197 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9198 if test "${gl_cv_next_stdint_h+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9202 if test $ac_cv_header_stdint_h = yes; then
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9212 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9213 *) gl_absname_cpp
="$ac_cpp" ;;
9218 gl_dirsep_regex
='[/\\]'
9221 gl_dirsep_regex
='\/'
9224 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9225 gl_header_literal_regex
=`echo 'stdint.h' \
9226 | sed -e "$gl_make_literal_regex_sed"`
9227 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9228 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9234 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9235 sed -n "$gl_absolute_header_sed"`
9237 gl_header
=$gl_cv_absolute_stdint_h
9238 gl_cv_next_stdint_h
='"'$gl_header'"'
9240 gl_cv_next_stdint_h
='<'stdint.h
'>'
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
9246 $as_echo "$gl_cv_next_stdint_h" >&6; }
9248 NEXT_STDINT_H
=$gl_cv_next_stdint_h
9250 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9252 gl_next_as_first_directive
='<'stdint.h
'>'
9254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9255 gl_next_as_first_directive
=$gl_cv_next_stdint_h
9257 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
9262 if test $ac_cv_header_stdint_h = yes; then
9269 if test $ac_cv_header_stdint_h = yes; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
9271 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
9272 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9275 gl_cv_header_working_stdint_h
=no
9276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9280 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9281 #define __STDC_CONSTANT_MACROS 1
9282 #define __STDC_LIMIT_MACROS 1
9284 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
9285 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
9286 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
9290 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9291 included before <wchar.h>. */
9302 int8_t a1 = INT8_MAX;
9303 int8_t a1min = INT8_MIN;
9306 int16_t a2 = INT16_MAX;
9307 int16_t a2min = INT16_MIN;
9310 int32_t a3 = INT32_MAX;
9311 int32_t a3min = INT32_MIN;
9314 int64_t a4 = INT64_MAX;
9315 int64_t a4min = INT64_MIN;
9318 uint8_t b1 = UINT8_MAX;
9320 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9323 uint16_t b2 = UINT16_MAX;
9326 uint32_t b3 = UINT32_MAX;
9329 uint64_t b4 = UINT64_MAX;
9331 int_least8_t c1 = INT8_C (0x7f);
9332 int_least8_t c1max = INT_LEAST8_MAX;
9333 int_least8_t c1min = INT_LEAST8_MIN;
9334 int_least16_t c2 = INT16_C (0x7fff);
9335 int_least16_t c2max = INT_LEAST16_MAX;
9336 int_least16_t c2min = INT_LEAST16_MIN;
9337 int_least32_t c3 = INT32_C (0x7fffffff);
9338 int_least32_t c3max = INT_LEAST32_MAX;
9339 int_least32_t c3min = INT_LEAST32_MIN;
9340 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9341 int_least64_t c4max = INT_LEAST64_MAX;
9342 int_least64_t c4min = INT_LEAST64_MIN;
9343 uint_least8_t d1 = UINT8_C (0xff);
9344 uint_least8_t d1max = UINT_LEAST8_MAX;
9345 uint_least16_t d2 = UINT16_C (0xffff);
9346 uint_least16_t d2max = UINT_LEAST16_MAX;
9347 uint_least32_t d3 = UINT32_C (0xffffffff);
9348 uint_least32_t d3max = UINT_LEAST32_MAX;
9349 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9350 uint_least64_t d4max = UINT_LEAST64_MAX;
9351 int_fast8_t e1 = INT_FAST8_MAX;
9352 int_fast8_t e1min = INT_FAST8_MIN;
9353 int_fast16_t e2 = INT_FAST16_MAX;
9354 int_fast16_t e2min = INT_FAST16_MIN;
9355 int_fast32_t e3 = INT_FAST32_MAX;
9356 int_fast32_t e3min = INT_FAST32_MIN;
9357 int_fast64_t e4 = INT_FAST64_MAX;
9358 int_fast64_t e4min = INT_FAST64_MIN;
9359 uint_fast8_t f1 = UINT_FAST8_MAX;
9360 uint_fast16_t f2 = UINT_FAST16_MAX;
9361 uint_fast32_t f3 = UINT_FAST32_MAX;
9362 uint_fast64_t f4 = UINT_FAST64_MAX;
9364 intptr_t g = INTPTR_MAX;
9365 intptr_t gmin = INTPTR_MIN;
9368 uintptr_t h = UINTPTR_MAX;
9370 intmax_t i = INTMAX_MAX;
9371 uintmax_t j = UINTMAX_MAX;
9373 /* Check that SIZE_MAX has the correct type, if possible. */
9374 #if 201112 <= __STDC_VERSION__
9375 int k = _Generic (SIZE_MAX, size_t: 0);
9376 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9377 || (0x5110 <= __SUNPRO_C && !__STDC__))
9379 extern __typeof__ (SIZE_MAX) k;
9382 #include <limits.h> /* for CHAR_BIT */
9383 #define TYPE_MINIMUM(t) \
9384 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
9385 #define TYPE_MAXIMUM(t) \
9386 ((t) ((t) 0 < (t) -1 \
9388 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
9391 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
9392 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
9394 /* Detect bug in FreeBSD 6.0 / ia64. */
9395 int check_SIG_ATOMIC:
9396 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
9397 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
9399 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
9401 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
9402 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
9404 /* Detect bug in mingw. */
9406 WINT_MIN == TYPE_MINIMUM (wint_t)
9407 && WINT_MAX == TYPE_MAXIMUM (wint_t)
9410 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
9412 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
9414 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
9416 /* Detect bugs in OpenBSD 3.9 stdint.h. */
9418 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
9421 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
9424 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
9427 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
9429 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
9430 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
9431 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
9432 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
9433 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
9434 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
9435 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
9436 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
9437 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
9438 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
9439 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
9450 if ac_fn_c_try_compile
"$LINENO"; then :
9451 if test "$cross_compiling" = yes; then :
9452 gl_cv_header_working_stdint_h
=yes
9455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9459 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9460 #define __STDC_CONSTANT_MACROS 1
9461 #define __STDC_LIMIT_MACROS 1
9465 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9466 included before <wchar.h>. */
9478 #define MVAL(macro) MVAL1(macro)
9479 #define MVAL1(expression) #expression
9480 static const char *macro_values[] =
9514 for (mv = macro_values; *mv != NULL; mv++)
9516 const char *value = *mv;
9517 /* Test whether it looks like a cast expression. */
9518 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
9519 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
9520 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
9521 || strncmp (value, "((int)"/*)*/, 6) == 0
9522 || strncmp (value, "((signed short)"/*)*/, 15) == 0
9523 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
9524 return mv - macro_values + 1;
9532 if ac_fn_c_try_run
"$LINENO"; then :
9533 gl_cv_header_working_stdint_h
=yes
9535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
9545 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
9549 HAVE_SYS_BITYPES_H
=0
9550 HAVE_SYS_INTTYPES_H
=0
9552 if test "$gl_cv_header_working_stdint_h" = yes; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
9555 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
9556 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9559 gl_cv_header_stdint_predates_cxx11_h
=yes
9560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9564 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9569 included before <wchar.h>. */
9579 intmax_t im = INTMAX_MAX;
9580 int32_t i32 = INT32_C (0x7fffffff);
9590 if ac_fn_c_try_compile
"$LINENO"; then :
9591 gl_cv_header_stdint_predates_cxx11_h
=no
9593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
9596 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
9598 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
9600 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9603 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
9607 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
9608 if test "${gl_cv_header_stdint_width+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9611 gl_cv_header_stdint_width
=no
9612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9615 /* Work if build is not clean. */
9616 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
9617 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9618 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9622 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9623 included before <wchar.h>. */
9632 int iw = UINTMAX_WIDTH;
9642 if ac_fn_c_try_compile
"$LINENO"; then :
9643 gl_cv_header_stdint_width
=yes
9645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
9648 $as_echo "$gl_cv_header_stdint_width" >&6; }
9649 if test "$gl_cv_header_stdint_width" = yes; then
9653 for ac_header
in sys
/inttypes.h sys
/bitypes.h
9655 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9657 eval as_val
=\$
$as_ac_Header
9658 if test "x$as_val" = x
""yes; then :
9659 cat >>confdefs.h
<<_ACEOF
9660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9667 if test $ac_cv_header_sys_inttypes_h = yes; then
9668 HAVE_SYS_INTTYPES_H
=1
9670 if test $ac_cv_header_sys_bitypes_h = yes; then
9671 HAVE_SYS_BITYPES_H
=1
9675 if test $APPLE_UNIVERSAL_BUILD = 0; then
9678 for gltype
in ptrdiff_t size_t
; do
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9680 $as_echo_n "checking for bit size of $gltype... " >&6; }
9681 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
9682 $as_echo_n "(cached) " >&6
9684 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9685 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9686 included before <wchar.h>. */
9695 #include <limits.h>"; then :
9701 eval gl_cv_bitsizeof_
${gltype}=\
$result
9704 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9706 $as_echo "$ac_res" >&6; }
9707 eval result
=\
$gl_cv_bitsizeof_${gltype}
9708 if test $result = unknown
; then
9711 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9712 cat >>confdefs.h
<<_ACEOF
9713 #define BITSIZEOF_${GLTYPE} $result
9716 eval BITSIZEOF_
${GLTYPE}=\
$result
9723 for gltype
in sig_atomic_t wchar_t wint_t
; do
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9725 $as_echo_n "checking for bit size of $gltype... " >&6; }
9726 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
9727 $as_echo_n "(cached) " >&6
9729 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9730 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9731 included before <wchar.h>. */
9740 #include <limits.h>"; then :
9746 eval gl_cv_bitsizeof_
${gltype}=\
$result
9749 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9751 $as_echo "$ac_res" >&6; }
9752 eval result
=\
$gl_cv_bitsizeof_${gltype}
9753 if test $result = unknown
; then
9756 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9757 cat >>confdefs.h
<<_ACEOF
9758 #define BITSIZEOF_${GLTYPE} $result
9761 eval BITSIZEOF_
${GLTYPE}=\
$result
9767 for gltype
in sig_atomic_t wchar_t wint_t
; do
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
9769 $as_echo_n "checking whether $gltype is signed... " >&6; }
9770 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9777 included before <wchar.h>. */
9786 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
9795 if ac_fn_c_try_compile
"$LINENO"; then :
9800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 eval gl_cv_type_
${gltype}_signed
=\
$result
9804 eval ac_res
=\
$gl_cv_type_${gltype}_signed
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9806 $as_echo "$ac_res" >&6; }
9807 eval result
=\
$gl_cv_type_${gltype}_signed
9808 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9809 if test "$result" = yes; then
9810 cat >>confdefs.h
<<_ACEOF
9811 #define HAVE_SIGNED_${GLTYPE} 1
9814 eval HAVE_SIGNED_
${GLTYPE}=1
9816 eval HAVE_SIGNED_
${GLTYPE}=0
9821 gl_cv_type_ptrdiff_t_signed
=yes
9822 gl_cv_type_size_t_signed
=no
9823 if test $APPLE_UNIVERSAL_BUILD = 0; then
9826 for gltype
in ptrdiff_t size_t
; do
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9828 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9829 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9830 $as_echo_n "(cached) " >&6
9832 eval gl_cv_type_
${gltype}_suffix
=no
9833 eval result
=\
$gl_cv_type_${gltype}_signed
9834 if test "$result" = yes; then
9839 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
9842 l
) gltype1
='long int';;
9843 ll
) gltype1
='long long int';;
9844 i64
) gltype1
='__int64';;
9845 u
) gltype1
='unsigned int';;
9846 ul
) gltype1
='unsigned long int';;
9847 ull
) gltype1
='unsigned long long int';;
9848 ui64
)gltype1
='unsigned __int64';;
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9854 included before <wchar.h>. */
9864 extern $gltype1 foo;
9873 if ac_fn_c_try_compile
"$LINENO"; then :
9874 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
9876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9877 eval result
=\
$gl_cv_type_${gltype}_suffix
9878 test "$result" != no
&& break
9881 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9883 $as_echo "$ac_res" >&6; }
9884 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9885 eval result
=\
$gl_cv_type_${gltype}_suffix
9886 test "$result" = no
&& result
=
9887 eval ${GLTYPE}_SUFFIX
=\
$result
9888 cat >>confdefs.h
<<_ACEOF
9889 #define ${GLTYPE}_SUFFIX $result
9898 for gltype
in sig_atomic_t wchar_t wint_t
; do
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9900 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9901 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9902 $as_echo_n "(cached) " >&6
9904 eval gl_cv_type_
${gltype}_suffix
=no
9905 eval result
=\
$gl_cv_type_${gltype}_signed
9906 if test "$result" = yes; then
9911 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
9914 l
) gltype1
='long int';;
9915 ll
) gltype1
='long long int';;
9916 i64
) gltype1
='__int64';;
9917 u
) gltype1
='unsigned int';;
9918 ul
) gltype1
='unsigned long int';;
9919 ull
) gltype1
='unsigned long long int';;
9920 ui64
)gltype1
='unsigned __int64';;
9922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9926 included before <wchar.h>. */
9936 extern $gltype1 foo;
9945 if ac_fn_c_try_compile
"$LINENO"; then :
9946 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
9948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9949 eval result
=\
$gl_cv_type_${gltype}_suffix
9950 test "$result" != no
&& break
9953 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9955 $as_echo "$ac_res" >&6; }
9956 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9957 eval result
=\
$gl_cv_type_${gltype}_suffix
9958 test "$result" = no
&& result
=
9959 eval ${GLTYPE}_SUFFIX
=\
$result
9960 cat >>confdefs.h
<<_ACEOF
9961 #define ${GLTYPE}_SUFFIX $result
9968 if test $BITSIZEOF_WINT_T -lt 32; then
9974 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9976 if test -n "$LIMITS_H"; then
9977 GL_GENERATE_LIMITS_H_TRUE
=
9978 GL_GENERATE_LIMITS_H_FALSE
='#'
9980 GL_GENERATE_LIMITS_H_TRUE
='#'
9981 GL_GENERATE_LIMITS_H_FALSE
=
9989 if test -n "$STDINT_H"; then
9990 GL_GENERATE_STDINT_H_TRUE
=
9991 GL_GENERATE_STDINT_H_FALSE
='#'
9993 GL_GENERATE_STDINT_H_TRUE
='#'
9994 GL_GENERATE_STDINT_H_FALSE
=
10003 GNULIB_STRTOIMAX
=0;
10004 GNULIB_STRTOUMAX
=0;
10005 HAVE_DECL_IMAXABS
=1;
10006 HAVE_DECL_IMAXDIV
=1;
10007 HAVE_DECL_STRTOIMAX
=1;
10008 HAVE_DECL_STRTOUMAX
=1;
10009 REPLACE_STRTOIMAX
=0;
10010 REPLACE_STRTOUMAX
=0;
10011 INT32_MAX_LT_INTMAX_MAX
=1;
10012 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10013 PRI_MACROS_BROKEN
=0;
10014 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10015 UINT32_MAX_LT_UINTMAX_MAX
=1;
10016 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10032 if test $gl_cv_have_include_next = yes; then
10033 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10036 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10037 if test "${gl_cv_next_inttypes_h+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10041 if test $ac_cv_header_inttypes_h = yes; then
10046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #include <inttypes.h>
10051 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10052 *) gl_absname_cpp
="$ac_cpp" ;;
10057 gl_dirsep_regex
='[/\\]'
10060 gl_dirsep_regex
='\/'
10063 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10064 gl_header_literal_regex
=`echo 'inttypes.h' \
10065 | sed -e "$gl_make_literal_regex_sed"`
10066 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10073 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10074 sed -n "$gl_absolute_header_sed"`
10076 gl_header
=$gl_cv_absolute_inttypes_h
10077 gl_cv_next_inttypes_h
='"'$gl_header'"'
10079 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
10085 $as_echo "$gl_cv_next_inttypes_h" >&6; }
10087 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
10089 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10091 gl_next_as_first_directive
='<'inttypes.h
'>'
10093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10094 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
10096 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
10105 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
10106 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10108 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10109 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10110 $as_echo_n "(cached) " >&6
10112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 #include <inttypes.h>
10125 if ac_fn_c_try_compile
"$LINENO"; then :
10126 eval "$as_gl_Symbol=yes"
10128 eval "$as_gl_Symbol=no"
10130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10132 eval ac_res
=\$
$as_gl_Symbol
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10134 $as_echo "$ac_res" >&6; }
10135 eval as_val
=\$
$as_gl_Symbol
10136 if test "x$as_val" = x
""yes; then :
10137 cat >>confdefs.h
<<_ACEOF
10138 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10141 eval ac_cv_have_decl_
$gl_func=yes
10147 for ac_header
in inttypes.h
10149 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10150 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
10151 cat >>confdefs.h
<<_ACEOF
10152 #define HAVE_INTTYPES_H 1
10159 if test $ac_cv_header_inttypes_h = yes; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
10161 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
10162 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10169 #include <inttypes.h>
10182 if ac_fn_c_try_compile
"$LINENO"; then :
10183 gt_cv_inttypes_pri_broken
=no
10185 gt_cv_inttypes_pri_broken
=yes
10187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
10191 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
10193 if test "$gt_cv_inttypes_pri_broken" = yes; then
10195 cat >>confdefs.h
<<_ACEOF
10196 #define PRI_MACROS_BROKEN 1
10199 PRI_MACROS_BROKEN
=1
10201 PRI_MACROS_BROKEN
=0
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10207 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10208 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10212 if test "$cross_compiling" = yes; then :
10214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10217 #if defined arm || defined __arm || defined __arm__
10222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10223 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
10224 gl_cv_cc_double_expbit0
="unknown"
10228 if test "${ac_cv_c_bigendian+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 ac_cv_c_bigendian
=unknown
10232 # See if we're dealing with a universal compiler.
10233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 #ifndef __APPLE_CC__
10236 not a universal capable compiler
10241 if ac_fn_c_try_compile
"$LINENO"; then :
10243 # Check for potential -arch flags. It is not universal unless
10244 # there are at least two -arch flags with different values.
10247 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10248 if test -n "$ac_prev"; then
10250 i?
86 | x86_64 | ppc | ppc64
)
10251 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10254 ac_cv_c_bigendian
=universal
10260 elif test "x$ac_word" = "x-arch"; then
10265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10266 if test $ac_cv_c_bigendian = unknown
; then
10267 # See if sys/param.h defines the BYTE_ORDER macro.
10268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 #include <sys/types.h>
10271 #include <sys/param.h>
10276 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10277 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10279 bogus endian macros
10286 if ac_fn_c_try_compile
"$LINENO"; then :
10287 # It does; now see whether it defined to BIG_ENDIAN or not.
10288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290 #include <sys/types.h>
10291 #include <sys/param.h>
10296 #if BYTE_ORDER != BIG_ENDIAN
10304 if ac_fn_c_try_compile
"$LINENO"; then :
10305 ac_cv_c_bigendian
=yes
10307 ac_cv_c_bigendian
=no
10309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10313 if test $ac_cv_c_bigendian = unknown
; then
10314 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 #include <limits.h>
10322 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10323 bogus endian macros
10330 if ac_fn_c_try_compile
"$LINENO"; then :
10331 # It does; now see whether it defined to _BIG_ENDIAN or not.
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 #include <limits.h>
10339 #ifndef _BIG_ENDIAN
10347 if ac_fn_c_try_compile
"$LINENO"; then :
10348 ac_cv_c_bigendian
=yes
10350 ac_cv_c_bigendian
=no
10352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10356 if test $ac_cv_c_bigendian = unknown
; then
10357 # Compile a test program.
10358 if test "$cross_compiling" = yes; then :
10359 # Try to guess by grepping values from an object file.
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362 short int ascii_mm[] =
10363 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10364 short int ascii_ii[] =
10365 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10366 int use_ascii (int i) {
10367 return ascii_mm[i] + ascii_ii[i];
10369 short int ebcdic_ii[] =
10370 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10371 short int ebcdic_mm[] =
10372 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10373 int use_ebcdic (int i) {
10374 return ebcdic_mm[i] + ebcdic_ii[i];
10381 return use_ascii (foo) == use_ebcdic (foo);
10386 if ac_fn_c_try_compile
"$LINENO"; then :
10387 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10388 ac_cv_c_bigendian
=yes
10390 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10391 if test "$ac_cv_c_bigendian" = unknown
; then
10392 ac_cv_c_bigendian
=no
10394 # finding both strings is unlikely to happen, but who knows?
10395 ac_cv_c_bigendian
=unknown
10399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 $ac_includes_default
10408 /* Are we little or big endian? From Harbison&Steele. */
10412 char c[sizeof (long int)];
10415 return u.c[sizeof (long int) - 1] == 1;
10421 if ac_fn_c_try_run
"$LINENO"; then :
10422 ac_cv_c_bigendian
=no
10424 ac_cv_c_bigendian
=yes
10426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10433 case $ac_cv_c_bigendian in #(
10435 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
10437 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
10440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10444 gl_cv_cc_double_expbit0
="unknown" ;;
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10457 #include <stddef.h>
10459 #include <string.h>
10461 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10462 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
10463 static unsigned int ored_words[NWORDS];
10464 static unsigned int anded_words[NWORDS];
10465 static void add_to_ored_words (double x)
10469 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
10470 memset (&m, 0, sizeof (memory_double));
10472 for (i = 0; i < NWORDS; i++)
10474 ored_words[i] |= m.word[i];
10475 anded_words[i] &= m.word[i];
10481 FILE *fp = fopen ("conftest.out", "w");
10484 for (j = 0; j < NWORDS; j++)
10485 anded_words[j] = ~ (unsigned int) 0;
10486 add_to_ored_words (0.25);
10487 add_to_ored_words (0.5);
10488 add_to_ored_words (1.0);
10489 add_to_ored_words (2.0);
10490 add_to_ored_words (4.0);
10491 /* Remove bits that are common (e.g. if representation of the first mantissa
10492 bit is explicit). */
10493 for (j = 0; j < NWORDS; j++)
10494 ored_words[j] &= ~anded_words[j];
10495 /* Now find the nonzero word. */
10496 for (j = 0; j < NWORDS; j++)
10497 if (ored_words[j] != 0)
10502 for (i = j + 1; i < NWORDS; i++)
10503 if (ored_words[i] != 0)
10505 fprintf (fp, "unknown");
10506 return (fclose (fp) != 0);
10509 if ((ored_words[j] >> i) & 1)
10511 fprintf (fp, "word %d bit %d", (int) j, (int) i);
10512 return (fclose (fp) != 0);
10515 fprintf (fp, "unknown");
10516 return (fclose (fp) != 0);
10520 if ac_fn_c_try_run
"$LINENO"; then :
10521 gl_cv_cc_double_expbit0
=`cat conftest.out`
10523 gl_cv_cc_double_expbit0
="unknown"
10525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
10533 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
10534 case "$gl_cv_cc_double_expbit0" in
10536 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
10537 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
10539 cat >>confdefs.h
<<_ACEOF
10540 #define DBL_EXPBIT0_WORD $word
10544 cat >>confdefs.h
<<_ACEOF
10545 #define DBL_EXPBIT0_BIT $bit
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10553 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10554 if test "${ac_cv_c_bigendian+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10557 ac_cv_c_bigendian
=unknown
10558 # See if we're dealing with a universal compiler.
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #ifndef __APPLE_CC__
10562 not a universal capable compiler
10567 if ac_fn_c_try_compile
"$LINENO"; then :
10569 # Check for potential -arch flags. It is not universal unless
10570 # there are at least two -arch flags with different values.
10573 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10574 if test -n "$ac_prev"; then
10576 i?
86 | x86_64 | ppc | ppc64
)
10577 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10580 ac_cv_c_bigendian
=universal
10586 elif test "x$ac_word" = "x-arch"; then
10591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10592 if test $ac_cv_c_bigendian = unknown
; then
10593 # See if sys/param.h defines the BYTE_ORDER macro.
10594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596 #include <sys/types.h>
10597 #include <sys/param.h>
10602 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10603 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10605 bogus endian macros
10612 if ac_fn_c_try_compile
"$LINENO"; then :
10613 # It does; now see whether it defined to BIG_ENDIAN or not.
10614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616 #include <sys/types.h>
10617 #include <sys/param.h>
10622 #if BYTE_ORDER != BIG_ENDIAN
10630 if ac_fn_c_try_compile
"$LINENO"; then :
10631 ac_cv_c_bigendian
=yes
10633 ac_cv_c_bigendian
=no
10635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10639 if test $ac_cv_c_bigendian = unknown
; then
10640 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 #include <limits.h>
10648 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10649 bogus endian macros
10656 if ac_fn_c_try_compile
"$LINENO"; then :
10657 # It does; now see whether it defined to _BIG_ENDIAN or not.
10658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10660 #include <limits.h>
10665 #ifndef _BIG_ENDIAN
10673 if ac_fn_c_try_compile
"$LINENO"; then :
10674 ac_cv_c_bigendian
=yes
10676 ac_cv_c_bigendian
=no
10678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10682 if test $ac_cv_c_bigendian = unknown
; then
10683 # Compile a test program.
10684 if test "$cross_compiling" = yes; then :
10685 # Try to guess by grepping values from an object file.
10686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 short int ascii_mm[] =
10689 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10690 short int ascii_ii[] =
10691 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10692 int use_ascii (int i) {
10693 return ascii_mm[i] + ascii_ii[i];
10695 short int ebcdic_ii[] =
10696 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10697 short int ebcdic_mm[] =
10698 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10699 int use_ebcdic (int i) {
10700 return ebcdic_mm[i] + ebcdic_ii[i];
10707 return use_ascii (foo) == use_ebcdic (foo);
10712 if ac_fn_c_try_compile
"$LINENO"; then :
10713 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10714 ac_cv_c_bigendian
=yes
10716 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10717 if test "$ac_cv_c_bigendian" = unknown
; then
10718 ac_cv_c_bigendian
=no
10720 # finding both strings is unlikely to happen, but who knows?
10721 ac_cv_c_bigendian
=unknown
10725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 $ac_includes_default
10734 /* Are we little or big endian? From Harbison&Steele. */
10738 char c[sizeof (long int)];
10741 return u.c[sizeof (long int) - 1] == 1;
10747 if ac_fn_c_try_run
"$LINENO"; then :
10748 ac_cv_c_bigendian
=no
10750 ac_cv_c_bigendian
=yes
10752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10759 $as_echo "$ac_cv_c_bigendian" >&6; }
10760 case $ac_cv_c_bigendian in #(
10762 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10768 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10772 as_fn_error
"unknown endianness
10773 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10779 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10780 if test "${am_cv_langinfo_codeset+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 #include <langinfo.h>
10789 char* cs = nl_langinfo(CODESET); return !cs;
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 am_cv_langinfo_codeset
=yes
10797 am_cv_langinfo_codeset
=no
10799 rm -f core conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10804 $as_echo "$am_cv_langinfo_codeset" >&6; }
10805 if test $am_cv_langinfo_codeset = yes; then
10807 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10811 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10812 if test "x$ac_cv_have_decl_getc_unlocked" = x
""yes; then :
10818 cat >>confdefs.h
<<_ACEOF
10819 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10824 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10825 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 #include <features.h>
10832 #ifdef __GNU_LIBRARY__
10833 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10843 $EGREP "Lucky" >/dev
/null
2>&1; then :
10844 ac_cv_gnu_library_2_1
=yes
10846 ac_cv_gnu_library_2_1
=no
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10854 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10856 GLIBC21
="$ac_cv_gnu_library_2_1"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10863 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10864 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10874 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10882 if ac_fn_c_try_compile
"$LINENO"; then :
10883 gl_cv_func_malloc_posix
=yes
10885 gl_cv_func_malloc_posix
=no
10887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10891 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10895 for ac_header
in stdlib.h
10897 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10898 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
10899 cat >>confdefs.h
<<_ACEOF
10900 #define HAVE_STDLIB_H 1
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10908 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10909 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10912 if test "$cross_compiling" = yes; then :
10914 # Guess yes on platforms where we know the result.
10915 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
10916 | hpux
* | solaris
* | cygwin
* | mingw
*)
10917 ac_cv_func_malloc_0_nonnull
=yes ;;
10918 # If we don't know, assume the worst.
10919 *) ac_cv_func_malloc_0_nonnull
=no
;;
10923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10926 # include <stdlib.h>
10934 char *p = malloc (0);
10943 if ac_fn_c_try_run
"$LINENO"; then :
10944 ac_cv_func_malloc_0_nonnull
=yes
10946 ac_cv_func_malloc_0_nonnull
=no
10948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10955 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10956 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10957 gl_cv_func_malloc_0_nonnull
=1
10959 gl_cv_func_malloc_0_nonnull
=0
10963 cat >>confdefs.h
<<_ACEOF
10964 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10976 GNULIB_MBSRTOWCS
=0;
10977 GNULIB_MBSNRTOWCS
=0;
10979 GNULIB_WCSRTOMBS
=0;
10980 GNULIB_WCSNRTOMBS
=0;
10997 GNULIB_WCSCASECMP
=0;
10998 GNULIB_WCSNCASECMP
=0;
11035 HAVE_WCSNCASECMP
=1;
11048 HAVE_DECL_WCWIDTH
=1;
11049 REPLACE_MBSTATE_T
=0;
11055 REPLACE_MBSRTOWCS
=0;
11056 REPLACE_MBSNRTOWCS
=0;
11058 REPLACE_WCSRTOMBS
=0;
11059 REPLACE_WCSNRTOMBS
=0;
11061 REPLACE_WCSWIDTH
=0;
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11071 $as_echo_n "checking for a traditional japanese locale... " >&6; }
11072 if test "${gt_cv_locale_ja+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 #include <locale.h>
11081 #if HAVE_LANGINFO_CODESET
11082 # include <langinfo.h>
11084 #include <stdlib.h>
11085 #include <string.h>
11091 /* Check whether the given locale name is recognized by the system. */
11092 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11093 /* On native Windows, setlocale(category, "") looks at the system settings,
11094 not at the environment variables. Also, when an encoding suffix such
11095 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11096 category of the locale to "C". */
11097 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11098 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11101 if (setlocale (LC_ALL, "") == NULL) return 1;
11103 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11104 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11105 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11106 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11107 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11108 some unit tests fail.
11109 On MirBSD 10, when an unsupported locale is specified, setlocale()
11110 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11111 #if HAVE_LANGINFO_CODESET
11113 const char *cs = nl_langinfo (CODESET);
11114 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11115 || strcmp (cs, "UTF-8") == 0)
11120 /* On Cygwin, avoid locale names without encoding suffix, because the
11121 locale_charset() function relies on the encoding suffix. Note that
11122 LC_ALL is set on the command line. */
11123 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11125 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11126 on Cygwin 1.5.x. */
11127 if (MB_CUR_MAX == 1)
11129 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11130 This excludes the UTF-8 encoding (except on MirBSD). */
11131 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11132 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11133 for (p = buf; *p != '\0'; p++)
11134 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11141 (eval $ac_link) 2>&5
11143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11144 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11146 # Handle native Windows specially, because there setlocale() interprets
11147 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11148 # "fr" or "fra" as "French" or "French_France.1252",
11149 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11150 # "ja" as "Japanese" or "Japanese_Japan.932",
11153 # Note that on native Windows, the Japanese locale is
11154 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11155 # cannot use it here.
11156 gt_cv_locale_ja
=none
11159 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11160 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11161 # configure script would override the LC_ALL setting. Likewise for
11162 # LC_CTYPE, which is also set at the beginning of the configure script.
11163 # Test for the AIX locale name.
11164 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11165 gt_cv_locale_ja
=ja_JP
11167 # Test for the locale name with explicit encoding suffix.
11168 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11169 gt_cv_locale_ja
=ja_JP.EUC-JP
11171 # Test for the HP-UX, OSF/1, NetBSD locale name.
11172 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11173 gt_cv_locale_ja
=ja_JP.eucJP
11175 # Test for the IRIX, FreeBSD locale name.
11176 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11177 gt_cv_locale_ja
=ja_JP.EUC
11179 # Test for the Solaris 7 locale name.
11180 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11183 # Special test for NetBSD 1.6.
11184 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
11185 gt_cv_locale_ja
=ja_JP.eucJP
11188 gt_cv_locale_ja
=none
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11202 $as_echo "$gt_cv_locale_ja" >&6; }
11203 LOCALE_JA
=$gt_cv_locale_ja
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
11210 $as_echo_n "checking for a transitional chinese locale... " >&6; }
11211 if test "${gt_cv_locale_zh_CN+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 #include <locale.h>
11219 #include <stdlib.h>
11221 #if HAVE_LANGINFO_CODESET
11222 # include <langinfo.h>
11224 #include <stdlib.h>
11225 #include <string.h>
11231 /* Check whether the given locale name is recognized by the system. */
11232 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11233 /* On native Windows, setlocale(category, "") looks at the system settings,
11234 not at the environment variables. Also, when an encoding suffix such
11235 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11236 category of the locale to "C". */
11237 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11238 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11241 if (setlocale (LC_ALL, "") == NULL) return 1;
11243 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11244 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11245 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11246 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11247 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11248 some unit tests fail.
11249 On MirBSD 10, when an unsupported locale is specified, setlocale()
11250 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11251 #if HAVE_LANGINFO_CODESET
11253 const char *cs = nl_langinfo (CODESET);
11254 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11255 || strcmp (cs, "UTF-8") == 0)
11260 /* On Cygwin, avoid locale names without encoding suffix, because the
11261 locale_charset() function relies on the encoding suffix. Note that
11262 LC_ALL is set on the command line. */
11263 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11265 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11266 This excludes the UTF-8 encoding (except on MirBSD). */
11267 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11268 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11269 for (p = buf; *p != '\0'; p++)
11270 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11272 /* Check whether a typical GB18030 multibyte sequence is recognized as a
11273 single wide character. This excludes the GB2312 and GBK encodings. */
11274 if (mblen ("\203\062\332\066", 5) != 4)
11280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11281 (eval $ac_link) 2>&5
11283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11286 # Handle native Windows specially, because there setlocale() interprets
11287 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11288 # "fr" or "fra" as "French" or "French_France.1252",
11289 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11290 # "ja" as "Japanese" or "Japanese_Japan.932",
11293 # Test for the hypothetical native Windows locale name.
11294 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11295 gt_cv_locale_zh_CN
=Chinese_China
.54936
11298 gt_cv_locale_zh_CN
=none
11302 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
11303 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
11304 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
11305 gt_cv_locale_zh_CN
=none
11308 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11309 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11310 # configure script would override the LC_ALL setting. Likewise for
11311 # LC_CTYPE, which is also set at the beginning of the configure script.
11312 # Test for the locale name without encoding suffix.
11313 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11314 gt_cv_locale_zh_CN
=zh_CN
11316 # Test for the locale name with explicit encoding suffix.
11317 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11318 gt_cv_locale_zh_CN
=zh_CN.GB18030
11321 gt_cv_locale_zh_CN
=none
11327 # If there was a link error, due to mblen(), the system is so old that
11328 # it certainly doesn't have a chinese locale.
11329 gt_cv_locale_zh_CN
=none
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
11335 $as_echo "$gt_cv_locale_zh_CN" >&6; }
11336 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11342 $as_echo_n "checking for a french Unicode locale... " >&6; }
11343 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 #include <locale.h>
11352 #if HAVE_LANGINFO_CODESET
11353 # include <langinfo.h>
11355 #include <stdlib.h>
11356 #include <string.h>
11360 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
11361 imitates locale dependent behaviour by looking at the environment
11362 variables, and all locales use the UTF-8 encoding. */
11363 #if !(defined __BEOS__ || defined __HAIKU__)
11364 /* Check whether the given locale name is recognized by the system. */
11365 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11366 /* On native Windows, setlocale(category, "") looks at the system settings,
11367 not at the environment variables. Also, when an encoding suffix such
11368 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11369 category of the locale to "C". */
11370 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11371 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11374 if (setlocale (LC_ALL, "") == NULL) return 1;
11376 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11377 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11378 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11379 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11380 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11381 some unit tests fail. */
11382 # if HAVE_LANGINFO_CODESET
11384 const char *cs = nl_langinfo (CODESET);
11385 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
11390 /* On Cygwin, avoid locale names without encoding suffix, because the
11391 locale_charset() function relies on the encoding suffix. Note that
11392 LC_ALL is set on the command line. */
11393 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11395 /* Check whether in the abbreviation of the second month, the second
11396 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
11397 two bytes long, with UTF-8 encoding. */
11398 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11399 if (strftime (buf, sizeof (buf), "%b", &t) < 4
11400 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
11403 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11404 /* Check whether the decimal separator is a comma.
11405 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11406 are nl_langinfo(RADIXCHAR) are both ".". */
11407 if (localeconv () ->decimal_point[0] != ',') return 1;
11413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11414 (eval $ac_link) 2>&5
11416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11417 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11419 # Handle native Windows specially, because there setlocale() interprets
11420 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11421 # "fr" or "fra" as "French" or "French_France.1252",
11422 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11423 # "ja" as "Japanese" or "Japanese_Japan.932",
11426 # Test for the hypothetical native Windows locale name.
11427 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11428 gt_cv_locale_fr_utf8
=French_France
.65001
11431 gt_cv_locale_fr_utf8
=none
11435 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11436 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11437 # configure script would override the LC_ALL setting. Likewise for
11438 # LC_CTYPE, which is also set at the beginning of the configure script.
11439 # Test for the usual locale name.
11440 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11441 gt_cv_locale_fr_utf8
=fr_FR
11443 # Test for the locale name with explicit encoding suffix.
11444 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11445 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
11447 # Test for the Solaris 7 locale name.
11448 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11449 gt_cv_locale_fr_utf8
=fr.UTF-8
11452 gt_cv_locale_fr_utf8
=none
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
11463 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
11464 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11471 $as_echo_n "checking for a traditional french locale... " >&6; }
11472 if test "${gt_cv_locale_fr+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 #include <locale.h>
11481 #if HAVE_LANGINFO_CODESET
11482 # include <langinfo.h>
11484 #include <stdlib.h>
11485 #include <string.h>
11489 /* Check whether the given locale name is recognized by the system. */
11490 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11491 /* On native Windows, setlocale(category, "") looks at the system settings,
11492 not at the environment variables. Also, when an encoding suffix such
11493 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11494 category of the locale to "C". */
11495 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11496 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11499 if (setlocale (LC_ALL, "") == NULL) return 1;
11501 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11502 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11503 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11504 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11505 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11506 some unit tests fail.
11507 On MirBSD 10, when an unsupported locale is specified, setlocale()
11508 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11509 #if HAVE_LANGINFO_CODESET
11511 const char *cs = nl_langinfo (CODESET);
11512 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11513 || strcmp (cs, "UTF-8") == 0)
11518 /* On Cygwin, avoid locale names without encoding suffix, because the
11519 locale_charset() function relies on the encoding suffix. Note that
11520 LC_ALL is set on the command line. */
11521 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11523 /* Check whether in the abbreviation of the second month, the second
11524 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11525 one byte long. This excludes the UTF-8 encoding. */
11526 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11527 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11528 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11529 /* Check whether the decimal separator is a comma.
11530 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11531 are nl_langinfo(RADIXCHAR) are both ".". */
11532 if (localeconv () ->decimal_point[0] != ',') return 1;
11538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11539 (eval $ac_link) 2>&5
11541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11542 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11544 # Handle native Windows specially, because there setlocale() interprets
11545 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11546 # "fr" or "fra" as "French" or "French_France.1252",
11547 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11548 # "ja" as "Japanese" or "Japanese_Japan.932",
11551 # Test for the native Windows locale name.
11552 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11553 gt_cv_locale_fr
=French_France
.1252
11556 gt_cv_locale_fr
=none
11560 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11561 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11562 # configure script would override the LC_ALL setting. Likewise for
11563 # LC_CTYPE, which is also set at the beginning of the configure script.
11564 # Test for the usual locale name.
11565 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11566 gt_cv_locale_fr
=fr_FR
11568 # Test for the locale name with explicit encoding suffix.
11569 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11570 gt_cv_locale_fr
=fr_FR.ISO-8859-1
11572 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11573 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11574 gt_cv_locale_fr
=fr_FR.ISO8859-1
11576 # Test for the HP-UX locale name.
11577 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11578 gt_cv_locale_fr
=fr_FR.iso88591
11580 # Test for the Solaris 7 locale name.
11581 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11585 gt_cv_locale_fr
=none
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11598 $as_echo "$gt_cv_locale_fr" >&6; }
11599 LOCALE_FR
=$gt_cv_locale_fr
11613 GNULIB_RAWMEMCHR
=0;
11616 GNULIB_STRCHRNUL
=0;
11624 GNULIB_STRCASESTR
=0;
11631 GNULIB_MBSCASECMP
=0;
11632 GNULIB_MBSNCASECMP
=0;
11633 GNULIB_MBSPCASECMP
=0;
11634 GNULIB_MBSCASESTR
=0;
11641 GNULIB_STRERROR_R
=0;
11642 GNULIB_STRSIGNAL
=0;
11643 GNULIB_STRVERSCMP
=0;
11648 HAVE_DECL_MEMMEM
=1;
11650 HAVE_DECL_MEMRCHR
=1;
11655 HAVE_DECL_STRDUP
=1;
11656 HAVE_DECL_STRNDUP
=1;
11657 HAVE_DECL_STRNLEN
=1;
11661 HAVE_DECL_STRTOK_R
=1;
11662 HAVE_DECL_STRERROR_R
=1;
11663 HAVE_DECL_STRSIGNAL
=1;
11670 REPLACE_STRCASESTR
=0;
11671 REPLACE_STRCHRNUL
=0;
11672 REPLACE_STRERROR
=0;
11673 REPLACE_STRERROR_R
=0;
11677 REPLACE_STRSIGNAL
=0;
11678 REPLACE_STRTOK_R
=0;
11679 UNDEFINE_STRTOK_R
=0;
11685 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11686 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11687 # irrelevant for anonymous mappings.
11688 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
11689 if test "x$ac_cv_func_mmap" = x
""yes; then :
11696 # Try to allow MAP_ANONYMOUS.
11697 gl_have_mmap_anonymous
=no
11698 if test $gl_have_mmap = yes; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11700 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 #include <sys/mman.h>
11705 #ifdef MAP_ANONYMOUS
11706 I cannot identify this map
11710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11711 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
11712 gl_have_mmap_anonymous
=yes
11716 if test $gl_have_mmap_anonymous != yes; then
11717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11720 #include <sys/mman.h>
11722 I cannot identify this map
11726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11727 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
11729 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11731 gl_have_mmap_anonymous
=yes
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11737 $as_echo "$gl_have_mmap_anonymous" >&6; }
11738 if test $gl_have_mmap_anonymous = yes; then
11740 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11750 if test $HAVE_MEMCHR = 1; then
11751 # Detect platform-specific bugs in some versions of glibc:
11752 # memchr should not dereference anything with length 0
11753 # http://bugzilla.redhat.com/499689
11754 # memchr should not dereference overestimated length after a match
11755 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11756 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11757 # Assume that memchr works on platforms that lack mprotect.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11759 $as_echo_n "checking whether memchr works... " >&6; }
11760 if test "${gl_cv_func_memchr_works+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11763 if test "$cross_compiling" = yes; then :
11764 gl_cv_func_memchr_works
="guessing no"
11766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11769 #include <string.h>
11770 #if HAVE_SYS_MMAN_H
11771 # include <fcntl.h>
11772 # include <unistd.h>
11773 # include <sys/types.h>
11774 # include <sys/mman.h>
11776 # define MAP_FILE 0
11785 char *fence = NULL;
11786 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11787 # if HAVE_MAP_ANONYMOUS
11788 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11790 # else /* !HAVE_MAP_ANONYMOUS */
11791 const int flags = MAP_FILE | MAP_PRIVATE;
11792 int fd = open ("/dev/zero", O_RDONLY, 0666);
11796 int pagesize = getpagesize ();
11798 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11800 if (two_pages != (char *)(-1)
11801 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11802 fence = two_pages + pagesize;
11807 if (memchr (fence, 0, 0))
11809 strcpy (fence - 9, "12345678");
11810 if (memchr (fence - 9, 0, 79) != fence - 1)
11812 if (memchr (fence - 1, 0, 3) != fence - 1)
11821 if ac_fn_c_try_run
"$LINENO"; then :
11822 gl_cv_func_memchr_works
=yes
11824 gl_cv_func_memchr_works
=no
11826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11832 $as_echo "$gl_cv_func_memchr_works" >&6; }
11833 if test "$gl_cv_func_memchr_works" != yes; then
11838 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11839 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
11845 cat >>confdefs.h
<<_ACEOF
11846 #define HAVE_DECL_MEMMEM $ac_have_decl
11853 for ac_func
in memmem
11855 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
11856 if test "x$ac_cv_func_memmem" = x
""yes; then :
11857 cat >>confdefs.h
<<_ACEOF
11858 #define HAVE_MEMMEM 1
11864 if test $ac_cv_func_memmem = yes; then
11870 if test $ac_cv_have_decl_memmem = no
; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11874 $as_echo_n "checking whether memmem works... " >&6; }
11875 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11876 $as_echo_n "(cached) " >&6
11878 if test "$cross_compiling" = yes; then :
11879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11882 #ifdef __GNU_LIBRARY__
11883 #include <features.h>
11884 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11885 || __GLIBC_MINOR__ > 12)) \
11886 || (__GLIBC__ > 2)) \
11887 || defined __UCLIBC__
11890 #elif defined __CYGWIN__
11891 #include <cygwin/version.h>
11892 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11901 $EGREP "Lucky user" >/dev
/null
2>&1; then :
11902 gl_cv_func_memmem_works_always
="guessing yes"
11904 gl_cv_func_memmem_works_always
="guessing no"
11910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 #include <string.h> /* for memmem */
11914 #define P "_EF_BF_BD"
11915 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11916 #define NEEDLE P P P P P
11923 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11925 /* Check for empty needle behavior. */
11927 const char *haystack = "AAA";
11928 if (memmem (haystack, 3, NULL, 0) != haystack)
11937 if ac_fn_c_try_run
"$LINENO"; then :
11938 gl_cv_func_memmem_works_always
=yes
11940 gl_cv_func_memmem_works_always
=no
11942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11943 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11949 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11950 case "$gl_cv_func_memmem_works_always" in
11959 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
11960 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
11966 cat >>confdefs.h
<<_ACEOF
11967 #define HAVE_DECL_MEMRCHR $ac_have_decl
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
11976 $as_echo_n "checking for promoted mode_t type... " >&6; }
11977 if test "${gl_cv_promoted_mode_t+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <sys/types.h>
11987 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
11992 if ac_fn_c_try_compile
"$LINENO"; then :
11993 gl_cv_promoted_mode_t
='int'
11995 gl_cv_promoted_mode_t
='mode_t'
11997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12001 $as_echo "$gl_cv_promoted_mode_t" >&6; }
12003 cat >>confdefs.h
<<_ACEOF
12004 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
12019 GNULIB_FPRINTF_POSIX
=0;
12035 GNULIB_OBSTACK_PRINTF
=0;
12036 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12041 GNULIB_PRINTF_POSIX
=0;
12050 GNULIB_SPRINTF_POSIX
=0;
12051 GNULIB_STDIO_H_NONBLOCKING
=0;
12052 GNULIB_STDIO_H_SIGPIPE
=0;
12054 GNULIB_VASPRINTF
=0;
12059 GNULIB_VFPRINTF_POSIX
=0;
12061 GNULIB_VPRINTF_POSIX
=0;
12062 GNULIB_VSNPRINTF
=0;
12063 GNULIB_VSPRINTF_POSIX
=0;
12064 HAVE_DECL_FPURGE
=1;
12065 HAVE_DECL_FSEEKO
=1;
12066 HAVE_DECL_FTELLO
=1;
12067 HAVE_DECL_GETDELIM
=1;
12068 HAVE_DECL_GETLINE
=1;
12069 HAVE_DECL_OBSTACK_PRINTF
=1;
12070 HAVE_DECL_SNPRINTF
=1;
12071 HAVE_DECL_VSNPRINTF
=1;
12092 REPLACE_GETDELIM
=0;
12094 REPLACE_OBSTACK_PRINTF
=0;
12100 REPLACE_RENAMEAT
=0;
12101 REPLACE_SNPRINTF
=0;
12103 REPLACE_STDIO_READ_FUNCS
=0;
12104 REPLACE_STDIO_WRITE_FUNCS
=0;
12106 REPLACE_VASPRINTF
=0;
12107 REPLACE_VDPRINTF
=0;
12108 REPLACE_VFPRINTF
=0;
12110 REPLACE_VSNPRINTF
=0;
12111 REPLACE_VSPRINTF
=0;
12115 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
12116 if test "x$ac_cv_have_decl_setenv" = x
""yes; then :
12122 cat >>confdefs.h
<<_ACEOF
12123 #define HAVE_DECL_SETENV $ac_have_decl
12131 if test $ac_cv_have_decl_setenv = no
; then
12139 for ac_header
in search.h
12141 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
12142 if test "x$ac_cv_header_search_h" = x
""yes; then :
12143 cat >>confdefs.h
<<_ACEOF
12144 #define HAVE_SEARCH_H 1
12151 for ac_func
in tsearch
12153 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
12154 if test "x$ac_cv_func_tsearch" = x
""yes; then :
12155 cat >>confdefs.h
<<_ACEOF
12156 #define HAVE_TSEARCH 1
12165 GNULIB_PTHREAD_SIGMASK
=0;
12167 GNULIB_SIGNAL_H_SIGPIPE
=0;
12168 GNULIB_SIGPROCMASK
=0;
12169 GNULIB_SIGACTION
=0;
12170 HAVE_POSIX_SIGNALBLOCKING
=1;
12171 HAVE_PTHREAD_SIGMASK
=1;
12176 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
12178 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
12180 HAVE_SIGHANDLER_T
=1;
12181 REPLACE_PTHREAD_SIGMASK
=0;
12185 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
12186 #include <signal.h>
12187 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
12188 #include <sys/types.h>
12191 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
12193 cat >>confdefs.h
<<_ACEOF
12194 #define HAVE_SIGSET_T 1
12197 gl_cv_type_sigset_t
=yes
12199 gl_cv_type_sigset_t
=no
12202 if test $gl_cv_type_sigset_t != yes; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12207 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12208 if test "${ac_cv_type_uid_t+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213 #include <sys/types.h>
12216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12217 $EGREP "uid_t" >/dev
/null
2>&1; then :
12218 ac_cv_type_uid_t
=yes
12220 ac_cv_type_uid_t
=no
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12226 $as_echo "$ac_cv_type_uid_t" >&6; }
12227 if test $ac_cv_type_uid_t = no
; then
12229 $as_echo "#define uid_t int" >>confdefs.h
12232 $as_echo "#define gid_t int" >>confdefs.h
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12237 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12238 if test "${ac_cv_header_stdbool_h+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 #include <stdbool.h>
12249 typedef _Bool Bool;
12251 "error: bool is not defined"
12254 "error: false is not defined"
12257 "error: false is not 0"
12260 "error: true is not defined"
12263 "error: true is not 1"
12267 #ifndef __bool_true_false_are_defined
12268 "error: __bool_true_false_are_defined is not defined"
12271 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
12273 char a[true == 1 ? 1 : -1];
12274 char b[false == 0 ? 1 : -1];
12275 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12276 char d[(bool) 0.5 == true ? 1 : -1];
12277 /* See body of main program for 'e'. */
12278 char f[(Bool) 0.0 == false ? 1 : -1];
12280 char h[sizeof (Bool)];
12281 char i[sizeof s.t];
12282 enum { j = false, k = true, l = false * true, m = true * 256 };
12283 /* The following fails for
12284 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12286 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12287 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12288 /* Catch a bug in an HP-UX C compiler. See
12289 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12290 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12301 *pq |= q; *pq |= ! q;
12302 *qq |= q; *qq |= ! q;
12303 /* Refer to every declared value, to avoid compiler optimizations. */
12304 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12305 + !m + !n + !o + !p + !q + !pq + !qq);
12311 if ac_fn_c_try_compile
"$LINENO"; then :
12312 ac_cv_header_stdbool_h
=yes
12314 ac_cv_header_stdbool_h
=no
12316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12319 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12320 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12321 if test "x$ac_cv_type__Bool" = x
""yes; then :
12323 cat >>confdefs.h
<<_ACEOF
12324 #define HAVE__BOOL 1
12333 HAVE_MAX_ALIGN_T
=1;
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12338 $as_echo_n "checking for wchar_t... " >&6; }
12339 if test "${gt_cv_c_wchar_t+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 #include <stddef.h>
12345 wchar_t foo = (wchar_t)'\0';
12354 if ac_fn_c_try_compile
"$LINENO"; then :
12355 gt_cv_c_wchar_t
=yes
12359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12362 $as_echo "$gt_cv_c_wchar_t" >&6; }
12363 if test $gt_cv_c_wchar_t = yes; then
12365 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12371 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
12372 if test "x$ac_cv_have_decl_strdup" = x
""yes; then :
12378 cat >>confdefs.h
<<_ACEOF
12379 #define HAVE_DECL_STRDUP $ac_have_decl
12383 REPLACE_STRERROR_0
=0
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
12385 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
12386 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12389 if test "$cross_compiling" = yes; then :
12391 # Guess yes on glibc systems.
12392 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
12393 # If we don't know, assume the worst.
12394 *) gl_cv_func_strerror_0_works
="guessing no" ;;
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #include <string.h>
12409 str = strerror (0);
12410 if (!*str) result |= 1;
12411 if (errno) result |= 2;
12412 if (strstr (str, "nknown") || strstr (str, "ndefined"))
12419 if ac_fn_c_try_run
"$LINENO"; then :
12420 gl_cv_func_strerror_0_works
=yes
12422 gl_cv_func_strerror_0_works
=no
12424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
12431 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
12432 case "$gl_cv_func_strerror_0_works" in
12435 REPLACE_STRERROR_0
=1
12437 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
12453 if test $gl_cv_have_include_next = yes; then
12454 gl_cv_next_string_h
='<'string.h
'>'
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
12457 $as_echo_n "checking absolute name of <string.h>... " >&6; }
12458 if test "${gl_cv_next_string_h+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #include <string.h>
12469 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12470 *) gl_absname_cpp
="$ac_cpp" ;;
12475 gl_dirsep_regex
='[/\\]'
12478 gl_dirsep_regex
='\/'
12481 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12482 gl_header_literal_regex
=`echo 'string.h' \
12483 | sed -e "$gl_make_literal_regex_sed"`
12484 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12485 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12491 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12492 sed -n "$gl_absolute_header_sed"`
12494 gl_header
=$gl_cv_absolute_string_h
12495 gl_cv_next_string_h
='"'$gl_header'"'
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
12500 $as_echo "$gl_cv_next_string_h" >&6; }
12502 NEXT_STRING_H
=$gl_cv_next_string_h
12504 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12506 gl_next_as_first_directive
='<'string.h
'>'
12508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12509 gl_next_as_first_directive
=$gl_cv_next_string_h
12511 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
12518 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
12519 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12521 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12522 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12523 $as_echo_n "(cached) " >&6
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <string.h>
12538 if ac_fn_c_try_compile
"$LINENO"; then :
12539 eval "$as_gl_Symbol=yes"
12541 eval "$as_gl_Symbol=no"
12543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12545 eval ac_res
=\$
$as_gl_Symbol
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12547 $as_echo "$ac_res" >&6; }
12548 eval as_val
=\$
$as_gl_Symbol
12549 if test "x$as_val" = x
""yes; then :
12550 cat >>confdefs.h
<<_ACEOF
12551 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12554 eval ac_cv_have_decl_
$gl_func=yes
12562 if test "$gl_cv_func_memchr_works" != yes; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
12566 $as_echo_n "checking whether strstr works... " >&6; }
12567 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12570 if test "$cross_compiling" = yes; then :
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 #ifdef __GNU_LIBRARY__
12575 #include <features.h>
12576 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
12577 || defined __UCLIBC__
12580 #elif defined __CYGWIN__
12581 #include <cygwin/version.h>
12582 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 $EGREP "Lucky user" >/dev
/null
2>&1; then :
12592 gl_cv_func_strstr_works_always
="guessing yes"
12594 gl_cv_func_strstr_works_always
="guessing no"
12600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12603 #include <string.h> /* for strstr */
12604 #define P "_EF_BF_BD"
12605 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12606 #define NEEDLE P P P P P
12611 return !!strstr (HAYSTACK, NEEDLE);
12617 if ac_fn_c_try_run
"$LINENO"; then :
12618 gl_cv_func_strstr_works_always
=yes
12620 gl_cv_func_strstr_works_always
=no
12622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
12629 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
12630 case "$gl_cv_func_strstr_works_always" in
12638 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
12639 if test "x$ac_cv_have_decl_strtok_r" = x
""yes; then :
12645 cat >>confdefs.h
<<_ACEOF
12646 #define HAVE_DECL_STRTOK_R $ac_have_decl
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12650 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12651 if test -z "$MKDIR_P"; then
12652 if test "${ac_cv_path_mkdir+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12656 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
12659 test -z "$as_dir" && as_dir
=.
12660 for ac_prog
in mkdir gmkdir
; do
12661 for ac_exec_ext
in '' $ac_executable_extensions; do
12662 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
12663 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12664 'mkdir (GNU coreutils) '* | \
12665 'mkdir (coreutils) '* | \
12666 'mkdir (fileutils) '4.1*)
12667 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
12677 if test "${ac_cv_path_mkdir+set}" = set; then
12678 MKDIR_P
="$ac_cv_path_mkdir -p"
12680 # As a last resort, use the slow shell script. Don't cache a
12681 # value for MKDIR_P within a source directory, because that will
12682 # break other packages using the cache if that directory is
12683 # removed, or if the value is a relative name.
12684 test -d .
/--version && rmdir .
/--version
12685 MKDIR_P
="$ac_install_sh -d"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12689 $as_echo "$MKDIR_P" >&6; }
12709 if test $gl_cv_have_include_next = yes; then
12710 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12713 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12714 if test "${gl_cv_next_sys_types_h+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <sys/types.h>
12725 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12726 *) gl_absname_cpp
="$ac_cpp" ;;
12731 gl_dirsep_regex
='[/\\]'
12734 gl_dirsep_regex
='\/'
12737 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12738 gl_header_literal_regex
=`echo 'sys/types.h' \
12739 | sed -e "$gl_make_literal_regex_sed"`
12740 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12741 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12747 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12748 sed -n "$gl_absolute_header_sed"`
12750 gl_header
=$gl_cv_absolute_sys_types_h
12751 gl_cv_next_sys_types_h
='"'$gl_header'"'
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12756 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12758 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
12760 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12762 gl_next_as_first_directive
='<'sys
/types.h
'>'
12764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12765 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
12767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
12781 GNULIB_NANOSLEEP
=0;
12786 HAVE_DECL_LOCALTIME_R
=1;
12790 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
12791 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
12792 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
12793 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
12795 : ${GNULIB_GETTIMEOFDAY=0};
12797 REPLACE_LOCALTIME
=0;
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12802 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12803 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12813 static struct timespec x; x.tv_sec = x.tv_nsec;
12818 if ac_fn_c_try_compile
"$LINENO"; then :
12819 gl_cv_sys_struct_timespec_in_time_h
=yes
12821 gl_cv_sys_struct_timespec_in_time_h
=no
12823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12826 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12828 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12829 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12830 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
12831 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
12832 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12833 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12836 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12837 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12838 $as_echo_n "(cached) " >&6
12840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 #include <sys/time.h>
12847 static struct timespec x; x.tv_sec = x.tv_nsec;
12852 if ac_fn_c_try_compile
"$LINENO"; then :
12853 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
12855 gl_cv_sys_struct_timespec_in_sys_time_h
=no
12857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12860 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12861 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12862 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12865 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12866 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <pthread.h>
12876 static struct timespec x; x.tv_sec = x.tv_nsec;
12881 if ac_fn_c_try_compile
"$LINENO"; then :
12882 gl_cv_sys_struct_timespec_in_pthread_h
=yes
12884 gl_cv_sys_struct_timespec_in_pthread_h
=no
12886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12889 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12890 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12891 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12894 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12895 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12900 #include <unistd.h>
12905 static struct timespec x; x.tv_sec = x.tv_nsec;
12910 if ac_fn_c_try_compile
"$LINENO"; then :
12911 gl_cv_sys_struct_timespec_in_unistd_h
=yes
12913 gl_cv_sys_struct_timespec_in_unistd_h
=no
12915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12918 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12919 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12920 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
12941 if test $gl_cv_have_include_next = yes; then
12942 gl_cv_next_time_h
='<'time.h
'>'
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12945 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12946 if test "${gl_cv_next_time_h+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12957 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12958 *) gl_absname_cpp
="$ac_cpp" ;;
12963 gl_dirsep_regex
='[/\\]'
12966 gl_dirsep_regex
='\/'
12969 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12970 gl_header_literal_regex
=`echo 'time.h' \
12971 | sed -e "$gl_make_literal_regex_sed"`
12972 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12979 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12980 sed -n "$gl_absolute_header_sed"`
12982 gl_header
=$gl_cv_absolute_time_h
12983 gl_cv_next_time_h
='"'$gl_header'"'
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12988 $as_echo "$gl_cv_next_time_h" >&6; }
12990 NEXT_TIME_H
=$gl_cv_next_time_h
12992 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12994 gl_next_as_first_directive
='<'time.h
'>'
12996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12997 gl_next_as_first_directive
=$gl_cv_next_time_h
12999 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
13008 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13009 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
13015 cat >>confdefs.h
<<_ACEOF
13016 #define HAVE_DECL_UNSETENV $ac_have_decl
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13021 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13022 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
13023 $as_echo_n "(cached) " >&6
13025 gl_cv_header_wchar_h_correct_inline
=yes
13026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 #define wcstod renamed_wcstod
13030 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13032 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13033 included before <wchar.h>. */
13034 #include <stddef.h>
13038 extern int zero (void);
13039 int main () { return zero(); }
13042 save_ac_compile
="$ac_compile"
13043 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13045 (eval $ac_compile) 2>&5
13047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }; then
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 #define wcstod renamed_wcstod
13053 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13056 included before <wchar.h>. */
13057 #include <stddef.h>
13061 int zero (void) { return 0; }
13064 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13066 (eval $ac_compile) 2>&5
13068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069 test $ac_status = 0; }; then
13070 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
13073 gl_cv_header_wchar_h_correct_inline
=no
13077 ac_compile
="$save_ac_compile"
13078 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13082 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13083 if test $gl_cv_header_wchar_h_correct_inline = no
; then
13084 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13085 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13086 C99 mode. You have four options:
13087 - Add the flag -fgnu89-inline to CC and reconfigure, or
13088 - Fix your include files, using parts of
13089 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13090 - Use a gcc version older than 4.3, or
13091 - Don't use the flags -std=c99 or -std=gnu99.
13092 Configuration aborted." "$LINENO" 5
13099 if test $ac_cv_header_features_h = yes; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13108 $as_echo_n "checking for wint_t... " >&6; }
13109 if test "${gt_cv_c_wint_t+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13117 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13118 before <wchar.h>. */
13119 #include <stddef.h>
13123 wint_t foo = (wchar_t)'\0';
13132 if ac_fn_c_try_compile
"$LINENO"; then :
13137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13140 $as_echo "$gt_cv_c_wint_t" >&6; }
13141 if test $gt_cv_c_wint_t = yes; then
13143 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13152 GNULIB_TOWCTRANS
=0;
13156 REPLACE_ISWBLANK
=0;
13162 GL_COND_LIBTOOL_TRUE
=
13163 GL_COND_LIBTOOL_FALSE
='#'
13165 GL_COND_LIBTOOL_TRUE
='#'
13166 GL_COND_LIBTOOL_FALSE
=
13169 gl_cond_libtool
=false
13172 gl_m4_base
='import/m4'
13182 gl_source_base
='import'
13185 if test $ac_cv_func_alloca_works = no
; then
13189 # Define an additional variable used in the Makefile substitution.
13190 if test $ac_cv_working_alloca_h = yes; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13192 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13193 if test "${gl_cv_rpl_alloca+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13206 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
13207 gl_cv_rpl_alloca
=yes
13209 gl_cv_rpl_alloca
=no
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13216 $as_echo "$gl_cv_rpl_alloca" >&6; }
13217 if test $gl_cv_rpl_alloca = yes; then
13219 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13229 if test -n "$ALLOCA_H"; then
13230 GL_GENERATE_ALLOCA_H_TRUE
=
13231 GL_GENERATE_ALLOCA_H_FALSE
='#'
13233 GL_GENERATE_ALLOCA_H_TRUE
='#'
13234 GL_GENERATE_ALLOCA_H_FALSE
=
13246 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
13251 if test $ac_cv_func_canonicalize_file_name = no
; then
13252 HAVE_CANONICALIZE_FILE_NAME
=0
13253 if test $ac_cv_func_realpath = no
; then
13256 case "$gl_cv_func_realpath_works" in
13258 *) REPLACE_REALPATH
=1 ;;
13262 case "$gl_cv_func_realpath_works" in
13266 REPLACE_CANONICALIZE_FILE_NAME
=1
13272 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
13281 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
13286 cat >>confdefs.h
<<_ACEOF
13287 #define GNULIB_CANONICALIZE_LGPL 1
13296 GNULIB_CANONICALIZE_FILE_NAME
=1
13302 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
13317 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
13332 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
13339 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
13340 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13346 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
13348 # include <unistd.h>
13350 #include <limits.h>
13351 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
13352 # include <sys/param.h>
13354 #if !defined PATH_MAX && defined MAXPATHLEN
13355 # define PATH_MAX MAXPATHLEN
13359 # define PATH_MAX 1024
13361 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13363 # define PATH_MAX 260
13367 have_arbitrary_file_name_length_limit
13370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13371 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
13372 gl_cv_have_arbitrary_file_name_length_limit
=yes
13374 gl_cv_have_arbitrary_file_name_length_limit
=no
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
13380 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
13382 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
13391 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
13397 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
13403 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
13411 if test $ac_cv_header_sys_socket_h != yes; then
13412 for ac_header
in winsock2.h
13414 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13415 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
13416 cat >>confdefs.h
<<_ACEOF
13417 #define HAVE_WINSOCK2_H 1
13425 if test "$ac_cv_header_winsock2_h" = yes; then
13427 UNISTD_H_HAVE_WINSOCK2_H
=1
13428 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
13434 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
13439 if test $REPLACE_CLOSE = 0; then
13443 if test $ac_cv_func_fchdir = no
; then
13447 if test $HAVE_FCHDIR = 0; then
13453 if test $REPLACE_CLOSE = 1; then
13462 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
13476 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
13483 for ac_func
in closedir
13485 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
13486 if test "x$ac_cv_func_closedir" = x
""yes; then :
13487 cat >>confdefs.h
<<_ACEOF
13488 #define HAVE_CLOSEDIR 1
13494 if test $ac_cv_func_closedir = no
; then
13501 if test $ac_cv_func_fchdir = no
; then
13505 if test $HAVE_FCHDIR = 0; then
13506 if test $HAVE_CLOSEDIR = 1; then
13511 case $host_os,$HAVE_CLOSEDIR in
13513 REPLACE_CLOSEDIR
=1;;
13516 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
13525 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
13539 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
13544 if test "x$datarootdir" = x
; then
13545 datarootdir
='${datadir}'
13548 if test "x$docdir" = x
; then
13549 docdir
='${datarootdir}/doc/${PACKAGE}'
13552 if test "x$htmldir" = x
; then
13553 htmldir
='${docdir}'
13556 if test "x$dvidir" = x
; then
13560 if test "x$pdfdir" = x
; then
13564 if test "x$psdir" = x
; then
13568 if test "x$lispdir" = x
; then
13569 lispdir
='${datarootdir}/emacs/site-lisp'
13572 if test "x$localedir" = x
; then
13573 localedir
='${datarootdir}/locale'
13576 if test "x$runstatedir" = x
; then
13577 runstatedir
='${localstatedir}/run'
13581 pkglibexecdir
='${libexecdir}/${PACKAGE}'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
13585 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
13586 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13589 if test "$cross_compiling" = yes; then :
13591 # Guess yes on glibc systems with Linux kernel.
13592 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
13593 # If we don't know, assume the worst.
13594 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
13598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13600 #include <sys/types.h>
13601 #include <sys/stat.h>
13602 #include <dirent.h>
13607 DIR *dp = opendir (".");
13615 if (lstat (e->d_name, &st) != 0)
13617 if (e->d_ino != st.st_ino)
13626 if ac_fn_c_try_run
"$LINENO"; then :
13627 gl_cv_struct_dirent_d_ino
=yes
13629 gl_cv_struct_dirent_d_ino
=no
13631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
13637 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
13638 case "$gl_cv_struct_dirent_d_ino" in
13641 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
13648 $as_echo_n "checking for d_type member in directory struct... " >&6; }
13649 if test "${gl_cv_struct_dirent_d_type+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13655 #include <sys/types.h>
13656 #include <dirent.h>
13661 struct dirent dp; dp.d_type = 0;
13666 if ac_fn_c_try_link
"$LINENO"; then :
13667 gl_cv_struct_dirent_d_type
=yes
13669 gl_cv_struct_dirent_d_type
=no
13671 rm -f core conftest.err conftest.
$ac_objext \
13672 conftest
$ac_exeext conftest.
$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
13677 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
13678 if test $gl_cv_struct_dirent_d_type = yes; then
13680 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
13697 if test $gl_cv_have_include_next = yes; then
13698 gl_cv_next_dirent_h
='<'dirent.h
'>'
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
13701 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
13702 if test "${gl_cv_next_dirent_h+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13706 if test $ac_cv_header_dirent_h = yes; then
13711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 #include <dirent.h>
13716 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13717 *) gl_absname_cpp
="$ac_cpp" ;;
13722 gl_dirsep_regex
='[/\\]'
13725 gl_dirsep_regex
='\/'
13728 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13729 gl_header_literal_regex
=`echo 'dirent.h' \
13730 | sed -e "$gl_make_literal_regex_sed"`
13731 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13732 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13738 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13739 sed -n "$gl_absolute_header_sed"`
13741 gl_header
=$gl_cv_absolute_dirent_h
13742 gl_cv_next_dirent_h
='"'$gl_header'"'
13744 gl_cv_next_dirent_h
='<'dirent.h
'>'
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
13750 $as_echo "$gl_cv_next_dirent_h" >&6; }
13752 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
13754 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13756 gl_next_as_first_directive
='<'dirent.h
'>'
13758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13759 gl_next_as_first_directive
=$gl_cv_next_dirent_h
13761 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
13766 if test $ac_cv_header_dirent_h = yes; then
13774 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
13775 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13777 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13778 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13779 $as_echo_n "(cached) " >&6
13781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 #include <dirent.h>
13794 if ac_fn_c_try_compile
"$LINENO"; then :
13795 eval "$as_gl_Symbol=yes"
13797 eval "$as_gl_Symbol=no"
13799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13801 eval ac_res
=\$
$as_gl_Symbol
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13803 $as_echo "$ac_res" >&6; }
13804 eval as_val
=\$
$as_gl_Symbol
13805 if test "x$as_val" = x
""yes; then :
13806 cat >>confdefs.h
<<_ACEOF
13807 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13810 eval ac_cv_have_decl_
$gl_func=yes
13820 for ac_func
in dirfd
13822 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
13823 if test "x$ac_cv_func_dirfd" = x
""yes; then :
13824 cat >>confdefs.h
<<_ACEOF
13825 #define HAVE_DIRFD 1
13831 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
13832 #include <dirent.h>
13834 if test "x$ac_cv_have_decl_dirfd" = x
""yes; then :
13840 cat >>confdefs.h
<<_ACEOF
13841 #define HAVE_DECL_DIRFD $ac_have_decl
13844 if test $ac_cv_have_decl_dirfd = no
; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
13849 $as_echo_n "checking whether dirfd is a macro... " >&6; }
13850 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13856 #include <sys/types.h>
13857 #include <dirent.h>
13859 dirent_header_defines_dirfd
13862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13863 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
13864 gl_cv_func_dirfd_macro
=yes
13866 gl_cv_func_dirfd_macro
=no
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
13872 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
13874 # Use the replacement if we have no function or macro with that name,
13875 # or if OS/2 kLIBC whose dirfd() does not work.
13876 # Replace only if the system declares dirfd already.
13877 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
13878 no
,no
,*,yes |
*,*,os2
*,yes)
13881 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
13885 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
13886 ||
test $REPLACE_DIRFD = 1; then
13895 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
13899 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
13900 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13904 dirfd_save_CFLAGS
=$CFLAGS
13905 for ac_expr
in d_fd dd_fd
; do
13907 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
13908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13911 #include <sys/types.h>
13912 #include <dirent.h>
13916 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
13921 if ac_fn_c_try_compile
"$LINENO"; then :
13925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13926 CFLAGS
=$dirfd_save_CFLAGS
13927 test "$dir_fd_found" = yes && break
13929 test "$dir_fd_found" = yes || ac_expr
=no_such_member
13931 gl_cv_sys_dir_fd_member_name
=$ac_expr
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
13936 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
13937 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
13939 cat >>confdefs.h
<<_ACEOF
13940 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
13958 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
13969 $as_echo_n "checking whether // is distinct from /... " >&6; }
13970 if test "${gl_cv_double_slash_root+set}" = set; then :
13971 $as_echo_n "(cached) " >&6
13973 if test x
"$cross_compiling" = xyes
; then
13974 # When cross-compiling, there is no way to tell whether // is special
13975 # short of a list of hosts. However, the only known hosts to date
13976 # that have a distinct // are Apollo DomainOS (too old to port to),
13977 # Cygwin, and z/OS. If anyone knows of another system for which // has
13978 # special semantics and is distinct from /, please report it to
13979 # <bug-gnulib@gnu.org>.
13981 *-cygwin | i370-ibm-openedition
)
13982 gl_cv_double_slash_root
=yes ;;
13984 # Be optimistic and assume that / and // are the same when we
13986 gl_cv_double_slash_root
='unknown, assuming no' ;;
13989 set x
`ls -di / // 2>/dev/null`
13990 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
13991 gl_cv_double_slash_root
=no
13993 gl_cv_double_slash_root
=yes
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
13998 $as_echo "$gl_cv_double_slash_root" >&6; }
13999 if test "$gl_cv_double_slash_root" = yes; then
14001 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14008 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14015 if test $ac_cv_func_fchdir = no
; then
14019 if test $HAVE_FCHDIR = 0; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
14024 $as_echo_n "checking whether dup works... " >&6; }
14025 if test "${gl_cv_func_dup_works+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14028 if test "$cross_compiling" = yes; then :
14029 gl_cv_func_dup_works
='guessing yes'
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 #include <unistd.h>
14039 /* On OS/2 kLIBC, dup does not work on a directory fd. */
14040 int fd = open (".", O_RDONLY);
14041 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
14048 if ac_fn_c_try_run
"$LINENO"; then :
14049 gl_cv_func_dup_works
=yes
14051 gl_cv_func_dup_works
=no
14053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14054 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
14060 $as_echo "$gl_cv_func_dup_works" >&6; }
14061 case "$gl_cv_func_dup_works" in
14068 if test $REPLACE_DUP = 1; then
14077 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
14092 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
14101 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
14104 if test $HAVE_DUP2 = 1; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
14106 $as_echo_n "checking whether dup2 works... " >&6; }
14107 if test "${gl_cv_func_dup2_works+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14110 if test "$cross_compiling" = yes; then :
14112 mingw
*) # on this platform, dup2 always returns 0 for success
14113 gl_cv_func_dup2_works
="guessing no" ;;
14114 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
14115 gl_cv_func_dup2_works
="guessing no" ;;
14117 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
14119 gl_cv_func_dup2_works
="guessing no" ;;
14120 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
14121 gl_cv_func_dup2_works
="guessing no" ;;
14122 *-android*) # implemented using dup3(), which fails if oldfd == newfd
14123 gl_cv_func_dup2_works
="guessing no" ;;
14124 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
14125 gl_cv_func_dup2_works
="guessing no" ;;
14126 *) gl_cv_func_dup2_works
="guessing yes" ;;
14129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14134 #include <limits.h>
14135 #include <sys/resource.h>
14136 #include <unistd.h>
14137 #ifndef RLIM_SAVED_CUR
14138 # define RLIM_SAVED_CUR RLIM_INFINITY
14140 #ifndef RLIM_SAVED_MAX
14141 # define RLIM_SAVED_MAX RLIM_INFINITY
14148 int bad_fd = INT_MAX;
14149 struct rlimit rlim;
14150 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14151 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14152 && rlim.rlim_cur != RLIM_INFINITY
14153 && rlim.rlim_cur != RLIM_SAVED_MAX
14154 && rlim.rlim_cur != RLIM_SAVED_CUR)
14155 bad_fd = rlim.rlim_cur;
14157 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
14160 if (dup2 (1, 1) != 1)
14163 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
14167 if (dup2 (0, 0) != -1)
14169 /* Many gnulib modules require POSIX conformance of EBADF. */
14170 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
14172 /* Flush out some cygwin core dumps. */
14173 if (dup2 (2, -1) != -1 || errno != EBADF)
14177 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
14179 int fd = open (".", O_RDONLY);
14182 else if (dup2 (fd, fd + 1) == -1)
14193 if ac_fn_c_try_run
"$LINENO"; then :
14194 gl_cv_func_dup2_works
=yes
14196 gl_cv_func_dup2_works
=no
14198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
14205 $as_echo "$gl_cv_func_dup2_works" >&6; }
14206 case "$gl_cv_func_dup2_works" in
14210 for ac_func
in setdtablesize
14212 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
14213 if test "x$ac_cv_func_setdtablesize" = x
""yes; then :
14214 cat >>confdefs.h
<<_ACEOF
14215 #define HAVE_SETDTABLESIZE 1
14228 if test $ac_cv_func_fchdir = no
; then
14232 if test $HAVE_FCHDIR = 0; then
14233 if test $HAVE_DUP2 = 1; then
14239 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
14248 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
14263 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
14279 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14286 $as_echo_n "checking for error_at_line... " >&6; }
14287 if test "${ac_cv_lib_error_at_line+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14296 error_at_line (0, 0, "", 0, "an error occurred");
14301 if ac_fn_c_try_link
"$LINENO"; then :
14302 ac_cv_lib_error_at_line
=yes
14304 ac_cv_lib_error_at_line
=no
14306 rm -f core conftest.err conftest.
$ac_objext \
14307 conftest
$ac_exeext conftest.
$ac_ext
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14310 $as_echo "$ac_cv_lib_error_at_line" >&6; }
14312 if test $ac_cv_lib_error_at_line = no
; then
14321 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
14335 if test $ac_cv_have_decl_fchdir = no
; then
14340 if test $HAVE_FCHDIR = 0; then
14349 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
14353 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
14356 $as_echo_n "checking whether open can visit directories... " >&6; }
14357 if test "${gl_cv_func_open_directory_works+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14360 if test "$cross_compiling" = yes; then :
14362 # Guess yes on glibc systems.
14363 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
14364 # If we don't know, assume the worst.
14365 *) gl_cv_func_open_directory_works
="guessing no" ;;
14369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14376 return open(".", O_RDONLY) < 0;
14381 if ac_fn_c_try_run
"$LINENO"; then :
14382 gl_cv_func_open_directory_works
=yes
14384 gl_cv_func_open_directory_works
=no
14386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
14392 $as_echo "$gl_cv_func_open_directory_works" >&6; }
14393 case "$gl_cv_func_open_directory_works" in
14397 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
14414 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
14423 if test $ac_cv_func_fcntl = no
; then
14427 if test $ac_cv_func_fcntl = no
; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
14435 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
14436 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14439 if test "$cross_compiling" = yes; then :
14441 aix
* | cygwin
* | haiku
*)
14442 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
14443 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
14446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14450 #include <limits.h>
14451 #include <sys/resource.h>
14452 #include <unistd.h>
14453 #ifndef RLIM_SAVED_CUR
14454 # define RLIM_SAVED_CUR RLIM_INFINITY
14456 #ifndef RLIM_SAVED_MAX
14457 # define RLIM_SAVED_MAX RLIM_INFINITY
14464 int bad_fd = INT_MAX;
14465 struct rlimit rlim;
14466 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14467 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14468 && rlim.rlim_cur != RLIM_INFINITY
14469 && rlim.rlim_cur != RLIM_SAVED_MAX
14470 && rlim.rlim_cur != RLIM_SAVED_CUR)
14471 bad_fd = rlim.rlim_cur;
14472 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
14473 if (errno != EINVAL) result |= 2;
14474 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
14475 if (errno != EINVAL) result |= 8;
14476 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
14479 fd = open (".", O_RDONLY);
14482 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
14492 if ac_fn_c_try_run
"$LINENO"; then :
14493 gl_cv_func_fcntl_f_dupfd_works
=yes
14495 gl_cv_func_fcntl_f_dupfd_works
=no
14497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
14503 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
14504 case $gl_cv_func_fcntl_f_dupfd_works in
14509 if test $ac_cv_func_fcntl = no
; then
14516 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
14521 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
14522 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14529 #ifndef F_DUPFD_CLOEXEC
14541 if ac_fn_c_try_compile
"$LINENO"; then :
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14546 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
14547 it to support the semantics on older kernels that failed with EINVAL. */
14559 if ac_fn_c_try_compile
"$LINENO"; then :
14560 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
14562 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
14564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14566 gl_cv_func_fcntl_f_dupfd_cloexec
=no
14568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
14571 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
14572 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
14576 if test $ac_cv_func_fcntl = no
; then
14588 if test $ac_cv_func_fchdir = no
; then
14592 if test $HAVE_FCHDIR = 0; then
14596 if test $ac_cv_func_fcntl = no
; then
14605 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
14614 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
14628 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
14643 if test $gl_cv_have_include_next = yes; then
14644 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
14647 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
14648 if test "${gl_cv_next_fcntl_h+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14659 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14660 *) gl_absname_cpp
="$ac_cpp" ;;
14665 gl_dirsep_regex
='[/\\]'
14668 gl_dirsep_regex
='\/'
14671 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14672 gl_header_literal_regex
=`echo 'fcntl.h' \
14673 | sed -e "$gl_make_literal_regex_sed"`
14674 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14675 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14681 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14682 sed -n "$gl_absolute_header_sed"`
14684 gl_header
=$gl_cv_absolute_fcntl_h
14685 gl_cv_next_fcntl_h
='"'$gl_header'"'
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
14690 $as_echo "$gl_cv_next_fcntl_h" >&6; }
14692 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
14694 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14695 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14696 gl_next_as_first_directive
='<'fcntl.h
'>'
14698 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14699 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
14701 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
14712 for gl_func
in fcntl openat
; do
14713 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14715 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14716 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14717 $as_echo_n "(cached) " >&6
14719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14732 if ac_fn_c_try_compile
"$LINENO"; then :
14733 eval "$as_gl_Symbol=yes"
14735 eval "$as_gl_Symbol=no"
14737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14739 eval ac_res
=\$
$as_gl_Symbol
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14741 $as_echo "$ac_res" >&6; }
14742 eval as_val
=\$
$as_gl_Symbol
14743 if test "x$as_val" = x
""yes; then :
14744 cat >>confdefs.h
<<_ACEOF
14745 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14748 eval ac_cv_have_decl_
$gl_func=yes
14758 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
14759 #include <dirent.h>
14762 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
14768 cat >>confdefs.h
<<_ACEOF
14769 #define HAVE_DECL_FDOPENDIR $ac_have_decl
14771 if test $ac_have_decl = 1; then :
14774 HAVE_DECL_FDOPENDIR
=0
14778 if test $ac_cv_func_fdopendir = no
; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
14782 $as_echo_n "checking whether fdopendir works... " >&6; }
14783 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
14784 $as_echo_n "(cached) " >&6
14786 if test "$cross_compiling" = yes; then :
14788 # Guess yes on glibc systems.
14789 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
14790 # If we don't know, assume the worst.
14791 *) gl_cv_func_fdopendir_works
="guessing no" ;;
14795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14798 #include <dirent.h>
14800 #include <unistd.h>
14801 #if !HAVE_DECL_FDOPENDIR
14803 # ifdef __cplusplus
14806 DIR *fdopendir (int);
14813 int fd = open ("conftest.c", O_RDONLY);
14814 if (fd < 0) result |= 1;
14815 if (fdopendir (fd)) result |= 2;
14816 if (close (fd)) result |= 4;
14822 if ac_fn_c_try_run
"$LINENO"; then :
14823 gl_cv_func_fdopendir_works
=yes
14825 gl_cv_func_fdopendir_works
=no
14827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
14833 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
14834 case "$gl_cv_func_fdopendir_works" in
14837 REPLACE_FDOPENDIR
=1
14842 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
14851 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
14865 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
14871 cat >>confdefs.h
<<_ACEOF
14872 #define GNULIB_FDOPENDIR 1
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
14881 $as_echo_n "checking for flexible array member... " >&6; }
14882 if test "${ac_cv_c_flexmember+set}" = set; then :
14883 $as_echo_n "(cached) " >&6
14885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 #include <stdlib.h>
14889 #include <stddef.h>
14890 struct s { int n; double d[]; };
14894 int m = getchar ();
14895 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
14896 nbytes += sizeof (struct s) - 1;
14897 nbytes -= nbytes % sizeof (struct s);
14898 struct s *p = malloc (nbytes);
14900 return p->d != (double *) NULL;
14905 if ac_fn_c_try_compile
"$LINENO"; then :
14906 ac_cv_c_flexmember
=yes
14908 ac_cv_c_flexmember
=no
14910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14913 $as_echo "$ac_cv_c_flexmember" >&6; }
14914 if test $ac_cv_c_flexmember = yes; then
14916 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14919 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14927 REPLACE_FLOAT_LDBL
=0
14929 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
14933 case "$host_cpu" in
14938 # On x86_64 systems, the C compiler may still be generating
14940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
14946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14947 $EGREP "yes" >/dev
/null
2>&1; then :
14958 case "$host_cpu" in
14966 aix
* | freebsd
* | linux
*)
14967 if test -n "$FLOAT_H"; then
14968 REPLACE_FLOAT_LDBL
=1
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
14975 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
14976 if test "${gl_cv_func_itold_works+set}" = set; then :
14977 $as_echo_n "(cached) " >&6
14980 if test "$cross_compiling" = yes; then :
14983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 #if defined __LP64__ || defined __arch64__
14989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14990 $EGREP "yes" >/dev
/null
2>&1; then :
14991 gl_cv_func_itold_works
="guessing no"
14993 gl_cv_func_itold_works
="guessing yes"
14998 *) gl_cv_func_itold_works
="guessing yes" ;;
15002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15006 volatile long double ld;
15015 if ac_fn_c_try_run
"$LINENO"; then :
15016 gl_cv_func_itold_works
=yes
15018 gl_cv_func_itold_works
=no
15020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
15027 $as_echo "$gl_cv_func_itold_works" >&6; }
15028 case "$gl_cv_func_itold_works" in
15035 if test -n "$FLOAT_H"; then
15044 if test $gl_cv_have_include_next = yes; then
15045 gl_cv_next_float_h
='<'float.h
'>'
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
15048 $as_echo_n "checking absolute name of <float.h>... " >&6; }
15049 if test "${gl_cv_next_float_h+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15060 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15061 *) gl_absname_cpp
="$ac_cpp" ;;
15066 gl_dirsep_regex
='[/\\]'
15069 gl_dirsep_regex
='\/'
15072 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15073 gl_header_literal_regex
=`echo 'float.h' \
15074 | sed -e "$gl_make_literal_regex_sed"`
15075 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15082 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15083 sed -n "$gl_absolute_header_sed"`
15085 gl_header
=$gl_cv_absolute_float_h
15086 gl_cv_next_float_h
='"'$gl_header'"'
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
15091 $as_echo "$gl_cv_next_float_h" >&6; }
15093 NEXT_FLOAT_H
=$gl_cv_next_float_h
15095 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15097 gl_next_as_first_directive
='<'float.h
'>'
15099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15100 gl_next_as_first_directive
=$gl_cv_next_float_h
15102 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
15109 if test -n "$FLOAT_H"; then
15110 GL_GENERATE_FLOAT_H_TRUE
=
15111 GL_GENERATE_FLOAT_H_FALSE
='#'
15113 GL_GENERATE_FLOAT_H_TRUE
='#'
15114 GL_GENERATE_FLOAT_H_FALSE
=
15119 if test $REPLACE_FLOAT_LDBL = 1; then
15128 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
15131 if test $REPLACE_ITOLD = 1; then
15140 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
15149 gl_fnmatch_required_lowercase
=`
15150 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
15152 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
15154 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
15155 if { as_var
=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
15156 $as_echo_n "(cached) " >&6
15158 if test $gl_fnmatch_required = GNU
; then
15159 gl_fnmatch_gnu_start
=
15160 gl_fnmatch_gnu_end
=
15162 gl_fnmatch_gnu_start
='#if 0'
15163 gl_fnmatch_gnu_end
='#endif'
15165 if test "$cross_compiling" = yes; then :
15166 eval "$gl_fnmatch_cache_var=\"guessing no\""
15168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 #include <fnmatch.h>
15172 y (char const *pattern, char const *string, int flags)
15174 return fnmatch (pattern, string, flags) == 0;
15177 n (char const *pattern, char const *string, int flags)
15179 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
15185 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
15186 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
15187 static char const A_1[] = { 'A' - 1, 0 };
15188 static char const A01[] = { 'A' + 1, 0 };
15189 static char const a_1[] = { 'a' - 1, 0 };
15190 static char const a01[] = { 'a' + 1, 0 };
15191 static char const bs_1[] = { '\\\\' - 1, 0 };
15192 static char const bs01[] = { '\\\\' + 1, 0 };
15194 if (!n ("a*", "", 0))
15196 if (!y ("a*", "abc", 0))
15198 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
15200 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
15202 if (!y ("a\\\\bc", "abc", 0))
15204 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
15206 if (!y ("*x", ".x", 0))
15208 if (!n ("*x", ".x", FNM_PERIOD))
15210 if (!y (Apat, "\\\\", 0))
15212 if (!y (Apat, "A", 0))
15214 if (!y (apat, "\\\\", 0))
15216 if (!y (apat, "a", 0))
15218 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
15220 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
15222 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
15224 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
15226 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
15228 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
15230 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
15232 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
15234 $gl_fnmatch_gnu_start
15235 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
15237 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
15239 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
15241 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
15243 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
15245 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
15247 $gl_fnmatch_gnu_end
15254 if ac_fn_c_try_run
"$LINENO"; then :
15255 eval "$gl_fnmatch_cache_var=yes"
15257 eval "$gl_fnmatch_cache_var=no"
15259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15265 eval ac_res
=\$
$gl_fnmatch_cache_var
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15267 $as_echo "$ac_res" >&6; }
15268 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
15269 if test "$gl_fnmatch_result" = yes; then
15270 rm -f "$gl_source_base/fnmatch.h"
15272 FNMATCH_H
=fnmatch.h
15275 if test -n "$FNMATCH_H"; then
15276 GL_GENERATE_FNMATCH_H_TRUE
=
15277 GL_GENERATE_FNMATCH_H_FALSE
='#'
15279 GL_GENERATE_FNMATCH_H_TRUE
='#'
15280 GL_GENERATE_FNMATCH_H_FALSE
=
15284 if test -n "$FNMATCH_H"; then
15293 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
15297 cat >>confdefs.h
<<_ACEOF
15298 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
15302 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
15304 if test "x$ac_cv_have_decl_isblank" = x
""yes; then :
15310 cat >>confdefs.h
<<_ACEOF
15311 #define HAVE_DECL_ISBLANK $ac_have_decl
15323 if test -n "$FNMATCH_H"; then
15332 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
15336 cat >>confdefs.h
<<_ACEOF
15337 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
15341 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
15343 if test "x$ac_cv_have_decl_isblank" = x
""yes; then :
15349 cat >>confdefs.h
<<_ACEOF
15350 #define HAVE_DECL_ISBLANK $ac_have_decl
15361 if test $gl_cv_func_frexp_no_libm = no
; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
15363 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
15364 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15377 int e; return frexp (x, &e) > 0;
15382 if ac_fn_c_try_link
"$LINENO"; then :
15383 gl_cv_func_frexp_in_libm
=yes
15385 gl_cv_func_frexp_in_libm
=no
15387 rm -f core conftest.err conftest.
$ac_objext \
15388 conftest
$ac_exeext conftest.
$ac_ext
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
15393 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
15394 if test $gl_cv_func_frexp_in_libm = yes; then
15398 if test $gl_cv_func_frexp_no_libm = yes \
15399 ||
test $gl_cv_func_frexp_in_libm = yes; then
15401 LIBS
="$LIBS $FREXP_LIBM"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15406 $as_echo_n "checking whether frexp works... " >&6; }
15407 if test "${gl_cv_func_frexp_works+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15411 if test "$cross_compiling" = yes; then :
15413 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
15414 *) gl_cv_func_frexp_works
="guessing yes";;
15418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15423 #include <string.h>
15424 #if HAVE_DECL_ALARM
15425 # include <signal.h>
15426 # include <unistd.h>
15428 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15429 ICC 10.0 has a bug when optimizing the expression -zero.
15430 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
15431 to PowerPC on Mac OS X 10.5. */
15432 #if defined __hpux || defined __sgi || defined __ICC
15434 compute_minus_zero (void)
15436 return -DBL_MIN * DBL_MIN;
15438 # define minus_zero compute_minus_zero ()
15440 double minus_zero = -0.0;
15448 #if HAVE_DECL_ALARM
15449 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
15450 number. Let the test fail in this case. */
15451 signal (SIGALRM, SIG_DFL);
15454 /* Test on denormalized numbers. */
15455 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15460 double y = frexp (x, &exp);
15461 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15462 On NetBSD: y = 0.75. Correct: y = 0.5. */
15466 /* Test on infinite numbers. */
15470 double y = frexp (x, &exp);
15474 /* Test on negative zero. */
15478 double y = frexp (x, &exp);
15479 if (memcmp (&y, &x, sizeof x))
15485 if ac_fn_c_try_run
"$LINENO"; then :
15486 gl_cv_func_frexp_works
=yes
15488 gl_cv_func_frexp_works
=no
15490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
15497 $as_echo "$gl_cv_func_frexp_works" >&6; }
15500 case "$gl_cv_func_frexp_works" in
15501 *yes) gl_func_frexp
=yes ;;
15502 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
15507 if test $gl_func_frexp = yes; then
15509 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
15514 if test $gl_func_frexp != yes; then
15523 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
15537 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
15547 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
15549 if test "x$ac_cv_have_decl_frexpl" = x
""yes; then :
15557 if test $HAVE_DECL_FREXPL = 1; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
15560 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
15561 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15572 int e; return frexpl (x, &e) > 0;
15577 if ac_fn_c_try_link
"$LINENO"; then :
15578 gl_cv_func_frexpl_no_libm
=yes
15580 gl_cv_func_frexpl_no_libm
=no
15582 rm -f core conftest.err conftest.
$ac_objext \
15583 conftest
$ac_exeext conftest.
$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
15587 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
15589 if test $gl_cv_func_frexpl_no_libm = no
; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
15591 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
15592 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15605 int e; return frexpl (x, &e) > 0;
15610 if ac_fn_c_try_link
"$LINENO"; then :
15611 gl_cv_func_frexpl_in_libm
=yes
15613 gl_cv_func_frexpl_in_libm
=no
15615 rm -f core conftest.err conftest.
$ac_objext \
15616 conftest
$ac_exeext conftest.
$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
15621 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
15622 if test $gl_cv_func_frexpl_in_libm = yes; then
15626 if test $gl_cv_func_frexpl_no_libm = yes \
15627 ||
test $gl_cv_func_frexpl_in_libm = yes; then
15629 LIBS
="$LIBS $FREXPL_LIBM"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
15633 $as_echo_n "checking whether frexpl works... " >&6; }
15634 if test "${gl_cv_func_frexpl_works+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15638 if test "$cross_compiling" = yes; then :
15641 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
15642 gl_cv_func_frexpl_works
="guessing no";;
15643 *) gl_cv_func_frexpl_works
="guessing yes";;
15647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15652 /* Override the values of <float.h>, like done in float.in.h. */
15653 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
15654 # undef LDBL_MIN_EXP
15655 # define LDBL_MIN_EXP (-16381)
15657 #if defined __i386__ && defined __FreeBSD__
15658 # undef LDBL_MIN_EXP
15659 # define LDBL_MIN_EXP (-16381)
15661 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
15662 # undef LDBL_MIN_EXP
15663 # define LDBL_MIN_EXP DBL_MIN_EXP
15665 #if defined __sgi && (LDBL_MANT_DIG >= 106)
15666 # if defined __GNUC__
15667 # undef LDBL_MIN_EXP
15668 # define LDBL_MIN_EXP DBL_MIN_EXP
15675 long double frexpl (long double, int *);
15679 volatile long double x;
15680 /* Test on finite numbers that fails on AIX 5.1. */
15688 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
15689 function returns an invalid (incorrectly normalized) value: it returns
15690 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
15691 but the correct result is
15692 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
15696 long double y = frexpl (x, &exp);
15697 if (!(exp == 1 && y == 0.505L))
15700 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
15701 LDBL_MAX_EXP = 16384.
15702 In the loop end test, we test x against Infinity, rather than comparing
15703 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
15706 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
15717 /* Test on denormalized numbers. */
15720 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
15725 long double y = frexpl (x, &exp);
15726 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
15727 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
15728 if (exp != LDBL_MIN_EXP - 1)
15732 /* Test on infinite numbers. */
15736 long double y = frexpl (x, &exp);
15743 if ac_fn_c_try_run
"$LINENO"; then :
15744 gl_cv_func_frexpl_works
=yes
15746 gl_cv_func_frexpl_works
=no
15748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
15755 $as_echo "$gl_cv_func_frexpl_works" >&6; }
15758 case "$gl_cv_func_frexpl_works" in
15759 *yes) gl_func_frexpl
=yes ;;
15760 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
15765 if test $gl_func_frexpl = yes; then
15767 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
15771 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
15772 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
15774 FREXPL_LIBM
="$FREXP_LIBM"
15781 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
15790 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
15804 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
15812 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15817 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15825 if test $ac_cv_func_fchdir = no
; then
15829 if test $HAVE_FCHDIR = 0; then
15830 case "$gl_cv_func_open_directory_works" in
15839 if test $REPLACE_FSTAT = 1; then
15848 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
15863 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
15873 if test $ac_cv_func_fstatat = no
; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
15877 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
15878 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15881 if test "$cross_compiling" = yes; then :
15883 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
15884 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15892 #include <sys/stat.h>
15897 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
15901 if ac_fn_c_try_run
"$LINENO"; then :
15902 gl_cv_func_fstatat_zero_flag
=yes
15904 gl_cv_func_fstatat_zero_flag
=no
15906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
15913 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
15915 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
15917 *) REPLACE_FSTATAT
=1
15918 case $gl_cv_func_fstatat_zero_flag in
15921 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
15929 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
15938 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
15952 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
15964 gl_cv_func_getcwd_path_max
=yes
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
15973 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
15974 if test "${gl_cv_func_getcwd_path_max+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15977 # Arrange for deletion of the temporary directory this test creates.
15978 ac_clean_files
="$ac_clean_files confdir3"
15979 if test "$cross_compiling" = yes; then :
15981 aix
*) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
15982 *) gl_cv_func_getcwd_path_max
=no
;;
15985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15989 #include <stdlib.h>
15991 # include <unistd.h>
15993 # include <direct.h>
15995 #include <string.h>
15996 #include <limits.h>
15997 #include <sys/stat.h>
15998 #include <sys/types.h>
16002 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16004 # include <unistd.h>
16006 #include <limits.h>
16007 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16008 # include <sys/param.h>
16010 #if !defined PATH_MAX && defined MAXPATHLEN
16011 # define PATH_MAX MAXPATHLEN
16015 # define PATH_MAX 1024
16017 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16019 # define PATH_MAX 260
16024 # define AT_FDCWD 0
16026 #ifdef ENAMETOOLONG
16027 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
16029 # define is_ENAMETOOLONG(x) 0
16032 /* Use the getcwd function, not any macro. */
16035 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16039 # define S_IRWXU 0700
16042 /* The length of this name must be 8. */
16043 #define DIR_NAME "confdir3"
16044 #define DIR_NAME_LEN 8
16045 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
16047 /* The length of "../". */
16048 #define DOTDOTSLASH_LEN 3
16050 /* Leftover bytes in the buffer, to work around library or OS bugs. */
16051 #define BUF_SLOP 20
16057 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
16058 at least not on a local file system. And if we were to start worrying
16059 about remote file systems, we'd have to enable the wrapper function
16060 all of the time, just to be safe. That's not worth the cost. */
16062 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
16063 - DIR_NAME_SIZE - BUF_SLOP) \
16065 /* FIXME: Assuming there's a system for which this is true,
16066 this should be done in a compile test. */
16069 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
16070 + DIR_NAME_SIZE + BUF_SLOP];
16071 char *cwd = getcwd (buf, PATH_MAX);
16072 size_t initial_cwd_len;
16075 size_t n_chdirs = 0;
16080 cwd_len = initial_cwd_len = strlen (cwd);
16084 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
16087 cwd_len += DIR_NAME_SIZE;
16088 /* If mkdir or chdir fails, it could be that this system cannot create
16089 any file with an absolute name longer than PATH_MAX, such as cygwin.
16090 If so, leave fail as 0, because the current working directory can't
16091 be too long for getcwd if it can't even be created. For other
16092 errors, be pessimistic and consider that as a failure, too. */
16093 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
16095 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
16100 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
16104 c = getcwd (buf, PATH_MAX);
16105 if (!c && errno == ENOENT)
16115 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
16121 /* Our replacement needs to be able to stat() long ../../paths,
16122 so generate a path larger than PATH_MAX to check,
16123 avoiding the replacement if we can't stat(). */
16124 c = getcwd (buf, cwd_len + 1);
16125 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
16132 if (dotdot_max <= cwd_len - initial_cwd_len)
16134 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
16136 c = getcwd (buf, cwd_len + 1);
16139 if (! (errno == ERANGE || errno == ENOENT
16140 || is_ENAMETOOLONG (errno)))
16145 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
16153 if (c && strlen (c) != cwd_len)
16161 /* Leaving behind such a deep directory is not polite.
16162 So clean up here, right away, even though the driving
16163 shell script would also clean up. */
16167 /* Try rmdir first, in case the chdir failed. */
16169 for (i = 0; i <= n_chdirs; i++)
16171 if (chdir ("..") < 0)
16173 if (rmdir (DIR_NAME) != 0)
16183 if ac_fn_c_try_run
"$LINENO"; then :
16184 gl_cv_func_getcwd_path_max
=yes
16187 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
16188 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
16189 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
16190 *) gl_cv_func_getcwd_path_max
=no
;;
16193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
16200 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
16202 case "$gl_cv_func_getcwd_null" in
16208 for ac_func
in getpagesize
16210 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16211 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
16212 cat >>confdefs.h
<<_ACEOF
16213 #define HAVE_GETPAGESIZE 1
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
16220 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
16221 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then :
16222 $as_echo_n "(cached) " >&6
16224 # Remove any remnants of a previous test.
16225 rm -rf confdir-14B---
16226 # Arrange for deletion of the temporary directory this test creates.
16227 ac_clean_files
="$ac_clean_files confdir-14B---"
16228 if test "$cross_compiling" = yes; then :
16229 gl_cv_func_getcwd_abort_bug
=yes
16231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16235 #include <stdlib.h>
16237 # include <unistd.h>
16238 #else /* on Windows with MSVC */
16239 # include <direct.h>
16241 #include <string.h>
16242 #include <sys/stat.h>
16245 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16247 # include <unistd.h>
16249 #include <limits.h>
16250 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16251 # include <sys/param.h>
16253 #if !defined PATH_MAX && defined MAXPATHLEN
16254 # define PATH_MAX MAXPATHLEN
16258 # define PATH_MAX 1024
16260 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16262 # define PATH_MAX 260
16266 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16270 # define S_IRWXU 0700
16273 /* FIXME: skip the run-test altogether on systems without getpagesize. */
16274 #if ! HAVE_GETPAGESIZE
16275 # define getpagesize() 0
16278 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
16279 the 16kB pagesize on ia64 linux. Those conditions make the code below
16280 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
16281 #define TARGET_LEN (5 * 1024)
16287 size_t initial_cwd_len;
16290 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
16291 this relatively expensive and invasive test if that's not true. */
16293 int bug_possible = PATH_MAX < getpagesize ();
16295 int bug_possible = 0;
16297 if (! bug_possible)
16300 cwd = getcwd (NULL, 0);
16304 initial_cwd_len = strlen (cwd);
16309 static char const dir_name[] = "confdir-14B---";
16310 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
16311 / sizeof dir_name);
16313 for (d = 0; d < desired_depth; d++)
16315 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
16317 if (! (errno == ERANGE || errno == ENAMETOOLONG
16318 || errno == ENOENT))
16319 fail = 3; /* Unable to construct deep hierarchy. */
16324 /* If libc has the bug in question, this invocation of getcwd
16325 results in a failed assertion. */
16326 cwd = getcwd (NULL, 0);
16328 fail = 4; /* getcwd didn't assert, but it failed for a long name
16329 where the answer could have been learned. */
16332 /* Call rmdir first, in case the above chdir failed. */
16336 if (chdir ("..") < 0)
16349 if ac_fn_c_try_run
"$LINENO"; then :
16350 gl_cv_func_getcwd_abort_bug
=no
16353 if test $ret -ge 128 ||
test $ret = 4; then
16354 gl_cv_func_getcwd_abort_bug
=yes
16356 gl_cv_func_getcwd_abort_bug
=no
16359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
16366 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
16367 if test $gl_cv_func_getcwd_abort_bug = yes; then :
16375 case "$gl_cv_func_getcwd_path_max" in
16376 "no"|
"no, it has the AIX bug") ;;
16379 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
16383 case "$gl_cv_func_getcwd_path_max" in
16384 "no, but it is partly working")
16386 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
16389 "yes, but with shorter paths")
16391 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
16396 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
16397 ||
test $gl_cv_func_getcwd_posix_signature != yes \
16398 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
16399 ||
test $gl_abort_bug = yes; then
16403 if test $REPLACE_GETCWD = 1; then
16412 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
16422 cat >>confdefs.h
<<_ACEOF
16423 #define GNULIB_GETCWD 1
16438 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
16447 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
16454 if test $REPLACE_GETCWD = 1; then
16463 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
16477 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
16486 if test $ac_cv_func_getdtablesize = yes &&
16487 test $ac_cv_have_decl_getdtablesize = yes; then
16488 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
16489 # up to an unchangeable hard limit; all other platforms correctly
16490 # require setrlimit before getdtablesize() can report a larger value.
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
16492 $as_echo_n "checking whether getdtablesize works... " >&6; }
16493 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
16494 $as_echo_n "(cached) " >&6
16496 if test "$cross_compiling" = yes; then :
16498 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
16499 gl_cv_func_getdtablesize_works
="guessing no" ;;
16500 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
16503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16506 #include <unistd.h>
16510 int size = getdtablesize();
16511 if (dup2 (0, getdtablesize()) != -1)
16513 if (size != getdtablesize())
16520 if ac_fn_c_try_run
"$LINENO"; then :
16521 gl_cv_func_getdtablesize_works
=yes
16523 gl_cv_func_getdtablesize_works
=no
16525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
16532 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
16533 case "$gl_cv_func_getdtablesize_works" in
16535 *) REPLACE_GETDTABLESIZE
=1 ;;
16538 HAVE_GETDTABLESIZE
=0
16541 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
16550 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
16559 GNULIB_GETDTABLESIZE
=1
16565 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
16575 if test $ac_cv_have_decl_getlogin_r = no
; then
16576 HAVE_DECL_GETLOGIN_R
=0
16580 if test $ac_cv_func_getlogin_r = no
; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
16586 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
16587 if test "${gl_cv_func_getlogin_r_works+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16592 # Guess no on OSF/1.
16593 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
16594 # Guess yes otherwise.
16595 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
16597 if test "$cross_compiling" = yes; then :
16600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16603 #include <stddef.h>
16604 #include <unistd.h>
16605 #if !HAVE_DECL_GETLOGIN_R
16607 # ifdef __cplusplus
16610 int getlogin_r (char *, size_t);
16618 if (getlogin_r (buf, 0) == 0)
16620 if (getlogin_r (buf, 1) == 0)
16625 if ac_fn_c_try_run
"$LINENO"; then :
16626 gl_cv_func_getlogin_r_works
=yes
16629 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
16633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
16640 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
16641 case "$gl_cv_func_getlogin_r_works" in
16643 *) REPLACE_GETLOGIN_R
=1 ;;
16647 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
16656 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
16667 GNULIB_GETLOGIN_R
=1
16673 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
16681 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16683 if test "x$ac_cv_have_decl_program_invocation_name" = x
""yes; then :
16689 cat >>confdefs.h
<<_ACEOF
16690 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16692 if test $ac_have_decl = 1; then :
16696 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16698 if test "x$ac_cv_have_decl_program_invocation_short_name" = x
""yes; then :
16704 cat >>confdefs.h
<<_ACEOF
16705 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16707 if test $ac_have_decl = 1; then :
16711 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
16713 if test "x$ac_cv_have_decl___argv" = x
""yes; then :
16719 cat >>confdefs.h
<<_ACEOF
16720 #define HAVE_DECL___ARGV $ac_have_decl
16722 if test $ac_have_decl = 1; then :
16727 # Incur the cost of this test only if none of the above worked.
16728 if test $ac_found = 0; then
16729 # On OpenBSD 5.1, using the global __progname variable appears to be
16730 # the only way to implement getprogname.
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
16732 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
16733 if test "${gl_cv_var___progname+set}" = set; then :
16734 $as_echo_n "(cached) " >&6
16737 gl_cv_var___progname
=
16738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 extern char *__progname;
16744 return *__progname;
16750 if ac_fn_c_try_link
"$LINENO"; then :
16751 gl_cv_var___progname
=yes
16754 rm -f core conftest.err conftest.
$ac_objext \
16755 conftest
$ac_exeext conftest.
$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
16760 $as_echo "$gl_cv_var___progname" >&6; }
16761 if test "$gl_cv_var___progname" = yes; then
16763 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
16776 gl_gettimeofday_timezone
=void
16777 if test $ac_cv_func_gettimeofday != yes; then
16778 HAVE_GETTIMEOFDAY
=0
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
16784 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
16785 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
16786 $as_echo_n "(cached) " >&6
16788 if test "$cross_compiling" = yes; then :
16789 # When cross-compiling:
16791 # Guess all is fine on glibc systems.
16792 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
16793 # If we don't know, assume the worst.
16794 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
16798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 #include <string.h>
16801 #include <sys/time.h>
16803 #include <stdlib.h>
16811 struct tm saved_lt;
16813 lt = localtime (&t);
16815 gettimeofday (&tv, NULL);
16816 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
16822 if ac_fn_c_try_run
"$LINENO"; then :
16823 gl_cv_func_gettimeofday_clobber
=no
16825 gl_cv_func_gettimeofday_clobber
=yes
16827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
16833 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
16835 case "$gl_cv_func_gettimeofday_clobber" in
16837 REPLACE_GETTIMEOFDAY
=1
16840 REPLACE_LOCALTIME
=1
16843 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
16849 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
16850 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
16851 $as_echo_n "(cached) " >&6
16853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 #include <sys/time.h>
16857 int gettimeofday (struct timeval *restrict, void *restrict);
16862 /* glibc uses struct timezone * rather than the POSIX void *
16863 if _GNU_SOURCE is defined. However, since the only portable
16864 use of gettimeofday uses NULL as the second parameter, and
16865 since the glibc definition is actually more typesafe, it is
16866 not worth wrapping this to get a compliant signature. */
16867 int (*f) (struct timeval *restrict, void *restrict)
16870 return !(x | c.tv_sec | c.tv_usec);
16876 if ac_fn_c_try_compile
"$LINENO"; then :
16877 gl_cv_func_gettimeofday_posix_signature
=yes
16879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16881 #include <sys/time.h>
16882 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
16892 if ac_fn_c_try_compile
"$LINENO"; then :
16893 gl_cv_func_gettimeofday_posix_signature
=almost
16895 gl_cv_func_gettimeofday_posix_signature
=no
16897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
16902 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
16903 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
16904 gl_gettimeofday_timezone
='struct timezone'
16905 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
16906 REPLACE_GETTIMEOFDAY
=1
16908 if test $REPLACE_STRUCT_TIMEVAL = 1; then
16909 REPLACE_GETTIMEOFDAY
=1
16914 cat >>confdefs.h
<<_ACEOF
16915 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
16919 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
16928 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
16931 for ac_header
in sys
/timeb.h
16933 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
16934 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
16935 cat >>confdefs.h
<<_ACEOF
16936 #define HAVE_SYS_TIMEB_H 1
16943 for ac_func
in _ftime
16945 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
16946 if test "x$ac_cv_func__ftime" = x
""yes; then :
16947 cat >>confdefs.h
<<_ACEOF
16948 #define HAVE__FTIME 1
16961 GNULIB_GETTIMEOFDAY
=1
16967 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
16972 for ac_header
in glob.h
16974 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
16975 if test "x$ac_cv_header_glob_h" = x
""yes; then :
16976 cat >>confdefs.h
<<_ACEOF
16977 #define HAVE_GLOB_H 1
16987 if test -z "$GLOB_H"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
16989 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
16990 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then :
16991 $as_echo_n "(cached) " >&6
16993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <gnu-versions.h>
16996 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
16998 if ac_fn_c_try_compile
"$LINENO"; then :
16999 gl_cv_gnu_glob_interface_version_1
=yes
17001 gl_cv_gnu_glob_interface_version_1
=no
17003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
17006 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
17008 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
17013 if test -z "$GLOB_H"; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
17015 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
17016 if test "${gl_cv_glob_lists_symlinks+set}" = set; then :
17017 $as_echo_n "(cached) " >&6
17019 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
17020 gl_cv_glob_lists_symlinks
=maybe
17022 # If we can't make a symlink, then we cannot test this issue. Be
17023 # pessimistic about this.
17024 gl_cv_glob_lists_symlinks
=no
17027 if test $gl_cv_glob_lists_symlinks = maybe
; then
17028 if test "$cross_compiling" = yes; then :
17029 gl_cv_glob_lists_symlinks
=no
17031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 #include <stddef.h>
17040 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
17045 if ac_fn_c_try_run
"$LINENO"; then :
17046 gl_cv_glob_lists_symlinks
=yes
17048 gl_cv_glob_lists_symlinks
=no
17050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
17057 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
17059 if test $gl_cv_glob_lists_symlinks = no
; then
17064 rm -f conf$$
-globtest
17067 if test -n "$GLOB_H"; then
17068 GL_GENERATE_GLOB_H_TRUE
=
17069 GL_GENERATE_GLOB_H_FALSE
='#'
17071 GL_GENERATE_GLOB_H_TRUE
='#'
17072 GL_GENERATE_GLOB_H_FALSE
=
17076 if test -n "$GLOB_H"; then
17085 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
17088 if test $ac_cv_header_sys_cdefs_h = yes; then
17105 if test -n "$STDINT_H"; then
17106 PRIPTR_PREFIX
='"l"'
17108 for glpfx
in '' l ll I64
; do
17110 '') gltype1
='int';;
17111 l
) gltype1
='long int';;
17112 ll
) gltype1
='long long int';;
17113 I64
) gltype1
='__int64';;
17115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117 #include <stdint.h>
17118 extern intptr_t foo;
17119 extern $gltype1 foo;
17128 if ac_fn_c_try_compile
"$LINENO"; then :
17129 PRIPTR_PREFIX
='"'$glpfx'"'
17131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17132 test -n "$PRIPTR_PREFIX" && break
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
17139 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
17140 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
17141 $as_echo_n "(cached) " >&6
17143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17145 /* Work also in C++ mode. */
17146 #define __STDC_LIMIT_MACROS 1
17148 /* Work if build is not clean. */
17149 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17151 #include <limits.h>
17153 #include <stdint.h>
17156 #if defined INT32_MAX && defined INTMAX_MAX
17157 #define CONDITION (INT32_MAX < INTMAX_MAX)
17158 #elif HAVE_LONG_LONG_INT
17159 #define CONDITION (sizeof (int) < sizeof (long long int))
17161 #define CONDITION 0
17163 int test[CONDITION ? 1 : -1];
17172 if ac_fn_c_try_compile
"$LINENO"; then :
17173 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
17175 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
17177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
17180 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
17181 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
17182 INT32_MAX_LT_INTMAX_MAX
=1;
17184 INT32_MAX_LT_INTMAX_MAX
=0;
17188 if test $APPLE_UNIVERSAL_BUILD = 0; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
17191 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
17192 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
17193 $as_echo_n "(cached) " >&6
17195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197 /* Work also in C++ mode. */
17198 #define __STDC_LIMIT_MACROS 1
17200 /* Work if build is not clean. */
17201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17203 #include <limits.h>
17205 #include <stdint.h>
17208 #if defined INT64_MAX
17209 #define CONDITION (INT64_MAX == LONG_MAX)
17210 #elif HAVE_LONG_LONG_INT
17211 #define CONDITION (sizeof (long long int) == sizeof (long int))
17213 #define CONDITION 0
17215 int test[CONDITION ? 1 : -1];
17224 if ac_fn_c_try_compile
"$LINENO"; then :
17225 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
17227 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
17229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
17232 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
17233 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
17234 INT64_MAX_EQ_LONG_MAX
=1;
17236 INT64_MAX_EQ_LONG_MAX
=0;
17241 INT64_MAX_EQ_LONG_MAX
=-1
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
17245 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
17246 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 /* Work also in C++ mode. */
17252 #define __STDC_LIMIT_MACROS 1
17254 /* Work if build is not clean. */
17255 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17257 #include <limits.h>
17259 #include <stdint.h>
17262 #if defined UINT32_MAX && defined UINTMAX_MAX
17263 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
17264 #elif HAVE_LONG_LONG_INT
17265 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
17267 #define CONDITION 0
17269 int test[CONDITION ? 1 : -1];
17278 if ac_fn_c_try_compile
"$LINENO"; then :
17279 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
17281 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
17283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
17286 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
17287 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
17288 UINT32_MAX_LT_UINTMAX_MAX
=1;
17290 UINT32_MAX_LT_UINTMAX_MAX
=0;
17294 if test $APPLE_UNIVERSAL_BUILD = 0; then
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
17297 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
17298 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
17299 $as_echo_n "(cached) " >&6
17301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303 /* Work also in C++ mode. */
17304 #define __STDC_LIMIT_MACROS 1
17306 /* Work if build is not clean. */
17307 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
17309 #include <limits.h>
17311 #include <stdint.h>
17314 #if defined UINT64_MAX
17315 #define CONDITION (UINT64_MAX == ULONG_MAX)
17316 #elif HAVE_LONG_LONG_INT
17317 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
17319 #define CONDITION 0
17321 int test[CONDITION ? 1 : -1];
17330 if ac_fn_c_try_compile
"$LINENO"; then :
17331 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
17333 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
17335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
17338 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
17339 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
17340 UINT64_MAX_EQ_ULONG_MAX
=1;
17342 UINT64_MAX_EQ_ULONG_MAX
=0;
17347 UINT64_MAX_EQ_ULONG_MAX
=-1
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
17355 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
17356 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
17357 $as_echo_n "(cached) " >&6
17360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17365 # define isnand(x) __builtin_isnan ((double)(x))
17368 # define isnand(x) isnan ((double)(x))
17379 if ac_fn_c_try_link
"$LINENO"; then :
17380 gl_cv_func_isnand_no_libm
=yes
17382 gl_cv_func_isnand_no_libm
=no
17384 rm -f core conftest.err conftest.
$ac_objext \
17385 conftest
$ac_exeext conftest.
$ac_ext
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
17389 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
17391 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
17392 if test $gl_cv_func_isnand_no_libm = yes; then
17394 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
17398 if test $gl_func_isnand_no_libm != yes; then
17407 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
17416 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
17417 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
17418 $as_echo_n "(cached) " >&6
17421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17426 # define isnanl(x) __builtin_isnanl ((long double)(x))
17427 #elif defined isnan
17429 # define isnanl(x) isnan ((long double)(x))
17440 if ac_fn_c_try_link
"$LINENO"; then :
17441 gl_cv_func_isnanl_no_libm
=yes
17443 gl_cv_func_isnanl_no_libm
=no
17445 rm -f core conftest.err conftest.
$ac_objext \
17446 conftest
$ac_exeext conftest.
$ac_ext
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
17450 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
17452 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
17453 if test $gl_func_isnanl_no_libm = yes; then
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
17459 $as_echo_n "checking whether isnanl works... " >&6; }
17460 if test "${gl_cv_func_isnanl_works+set}" = set; then :
17461 $as_echo_n "(cached) " >&6
17464 if test "$cross_compiling" = yes; then :
17465 gl_cv_func_isnanl_works
="guessing yes"
17467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17471 #include <limits.h>
17475 # define isnanl(x) __builtin_isnanl ((long double)(x))
17476 #elif defined isnan
17478 # define isnanl(x) isnan ((long double)(x))
17481 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17482 typedef union { unsigned int word[NWORDS]; long double value; }
17483 memory_long_double;
17484 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
17485 runtime type conversion. */
17487 static long double NaNl ()
17490 return zero / zero;
17493 # define NaNl() (0.0L / 0.0L)
17499 if (!isnanl (NaNl ()))
17503 memory_long_double m;
17506 /* The isnanl function should be immune against changes in the sign bit and
17507 in the mantissa bits. The xor operation twiddles a bit that can only be
17508 a sign bit or a mantissa bit (since the exponent never extends to
17511 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
17512 for (i = 0; i < NWORDS; i++)
17514 if (!isnanl (m.value))
17518 #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
17519 /* Representation of an 80-bit 'long double' as an initializer for a sequence
17520 of 'unsigned int' words. */
17521 # ifdef WORDS_BIGENDIAN
17522 # define LDBL80_WORDS(exponent,manthi,mantlo) \
17523 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
17524 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
17525 (unsigned int) (mantlo) << 16 \
17528 # define LDBL80_WORDS(exponent,manthi,mantlo) \
17529 { mantlo, manthi, exponent }
17532 static memory_long_double x =
17533 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
17534 if (!isnanl (x.value))
17538 /* Signalling NaN. */
17539 static memory_long_double x =
17540 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
17541 if (!isnanl (x.value))
17544 /* isnanl should return something even for noncanonical values. */
17545 { /* Pseudo-NaN. */
17546 static memory_long_double x =
17547 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
17548 if (isnanl (x.value) && !isnanl (x.value))
17551 { /* Pseudo-Infinity. */
17552 static memory_long_double x =
17553 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
17554 if (isnanl (x.value) && !isnanl (x.value))
17557 { /* Pseudo-Zero. */
17558 static memory_long_double x =
17559 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
17560 if (isnanl (x.value) && !isnanl (x.value))
17563 { /* Unnormalized number. */
17564 static memory_long_double x =
17565 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
17566 if (isnanl (x.value) && !isnanl (x.value))
17569 { /* Pseudo-Denormal. */
17570 static memory_long_double x =
17571 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
17572 if (isnanl (x.value) && !isnanl (x.value))
17580 if ac_fn_c_try_run
"$LINENO"; then :
17581 gl_cv_func_isnanl_works
=yes
17583 gl_cv_func_isnanl_works
=no
17585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
17592 $as_echo "$gl_cv_func_isnanl_works" >&6; }
17594 case "$gl_cv_func_isnanl_works" in
17596 *) gl_func_isnanl_no_libm
=no
;;
17599 if test $gl_func_isnanl_no_libm = yes; then
17601 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
17605 if test $gl_func_isnanl_no_libm != yes; then
17614 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
17620 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
17621 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
17625 if test "$cross_compiling" = yes; then :
17627 gl_cv_cc_long_double_expbit0
="unknown"
17630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17634 #include <stddef.h>
17636 #include <string.h>
17638 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17639 typedef union { long double value; unsigned int word[NWORDS]; }
17640 memory_long_double;
17641 static unsigned int ored_words[NWORDS];
17642 static unsigned int anded_words[NWORDS];
17643 static void add_to_ored_words (long double x)
17645 memory_long_double m;
17647 /* Clear it first, in case
17648 sizeof (long double) < sizeof (memory_long_double). */
17649 memset (&m, 0, sizeof (memory_long_double));
17651 for (i = 0; i < NWORDS; i++)
17653 ored_words[i] |= m.word[i];
17654 anded_words[i] &= m.word[i];
17660 FILE *fp = fopen ("conftest.out", "w");
17663 for (j = 0; j < NWORDS; j++)
17664 anded_words[j] = ~ (unsigned int) 0;
17665 add_to_ored_words (0.25L);
17666 add_to_ored_words (0.5L);
17667 add_to_ored_words (1.0L);
17668 add_to_ored_words (2.0L);
17669 add_to_ored_words (4.0L);
17670 /* Remove bits that are common (e.g. if representation of the first mantissa
17671 bit is explicit). */
17672 for (j = 0; j < NWORDS; j++)
17673 ored_words[j] &= ~anded_words[j];
17674 /* Now find the nonzero word. */
17675 for (j = 0; j < NWORDS; j++)
17676 if (ored_words[j] != 0)
17681 for (i = j + 1; i < NWORDS; i++)
17682 if (ored_words[i] != 0)
17684 fprintf (fp, "unknown");
17685 return (fclose (fp) != 0);
17688 if ((ored_words[j] >> i) & 1)
17690 fprintf (fp, "word %d bit %d", (int) j, (int) i);
17691 return (fclose (fp) != 0);
17694 fprintf (fp, "unknown");
17695 return (fclose (fp) != 0);
17699 if ac_fn_c_try_run
"$LINENO"; then :
17700 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
17702 gl_cv_cc_long_double_expbit0
="unknown"
17704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
17712 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
17713 case "$gl_cv_cc_long_double_expbit0" in
17715 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
17716 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
17718 cat >>confdefs.h
<<_ACEOF
17719 #define LDBL_EXPBIT0_WORD $word
17723 cat >>confdefs.h
<<_ACEOF
17724 #define LDBL_EXPBIT0_BIT $bit
17743 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
17748 if test $ac_cv_func_lstat = yes; then
17750 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17759 if test $REPLACE_LSTAT = 1; then
17768 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
17783 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
17790 if test $gl_cv_func_malloc_posix = yes; then
17792 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
17798 if test $REPLACE_MALLOC = 1; then
17807 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
17815 GNULIB_MALLOC_POSIX
=1
17821 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
17840 if test $gl_cv_have_include_next = yes; then
17841 gl_cv_next_math_h
='<'math.h
'>'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
17844 $as_echo_n "checking absolute name of <math.h>... " >&6; }
17845 if test "${gl_cv_next_math_h+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17849 if test $ac_cv_header_math_h = yes; then
17854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17859 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17860 *) gl_absname_cpp
="$ac_cpp" ;;
17865 gl_dirsep_regex
='[/\\]'
17868 gl_dirsep_regex
='\/'
17871 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17872 gl_header_literal_regex
=`echo 'math.h' \
17873 | sed -e "$gl_make_literal_regex_sed"`
17874 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17875 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17881 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17882 sed -n "$gl_absolute_header_sed"`
17884 gl_header
=$gl_cv_absolute_math_h
17885 gl_cv_next_math_h
='"'$gl_header'"'
17887 gl_cv_next_math_h
='<'math.h
'>'
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
17893 $as_echo "$gl_cv_next_math_h" >&6; }
17895 NEXT_MATH_H
=$gl_cv_next_math_h
17897 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17899 gl_next_as_first_directive
='<'math.h
'>'
17901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17902 gl_next_as_first_directive
=$gl_cv_next_math_h
17904 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
17911 $as_echo_n "checking whether NAN macro works... " >&6; }
17912 if test "${gl_cv_header_math_nan_works+set}" = set; then :
17913 $as_echo_n "(cached) " >&6
17915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17921 /* Solaris 10 has a broken definition of NAN. Other platforms
17922 fail to provide NAN, or provide it only in C99 mode; this
17923 test only needs to fail when NAN is provided but wrong. */
17933 if ac_fn_c_try_compile
"$LINENO"; then :
17934 gl_cv_header_math_nan_works
=yes
17936 gl_cv_header_math_nan_works
=no
17938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
17941 $as_echo "$gl_cv_header_math_nan_works" >&6; }
17942 if test $gl_cv_header_math_nan_works = no
; then
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
17946 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
17947 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17956 /* Solaris 10 has a broken definition of HUGE_VAL. */
17957 double d = HUGE_VAL;
17963 if ac_fn_c_try_compile
"$LINENO"; then :
17964 gl_cv_header_math_huge_val_works
=yes
17966 gl_cv_header_math_huge_val_works
=no
17968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
17971 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
17972 if test $gl_cv_header_math_huge_val_works = no
; then
17977 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
17978 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17980 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17981 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17982 $as_echo_n "(cached) " >&6
17984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17996 if ac_fn_c_try_compile
"$LINENO"; then :
17997 eval "$as_gl_Symbol=yes"
17999 eval "$as_gl_Symbol=no"
18001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18003 eval ac_res
=\$
$as_gl_Symbol
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18005 $as_echo "$ac_res" >&6; }
18006 eval as_val
=\$
$as_gl_Symbol
18007 if test "x$as_val" = x
""yes; then :
18008 cat >>confdefs.h
<<_ACEOF
18009 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18012 eval ac_cv_have_decl_
$gl_func=yes
18027 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18032 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18033 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18034 $as_echo_n "(cached) " >&6
18038 # Guess no on AIX and OSF/1.
18039 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18040 # Guess yes otherwise.
18041 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18043 if test $LOCALE_JA != none
; then
18044 if test "$cross_compiling" = yes; then :
18047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18050 #include <locale.h>
18051 #include <string.h>
18052 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18054 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18055 included before <wchar.h>. */
18056 #include <stddef.h>
18062 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18064 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18068 memset (&state, '\0', sizeof (mbstate_t));
18069 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18070 if (mbsinit (&state))
18076 if ac_fn_c_try_run
"$LINENO"; then :
18077 gl_cv_func_mbrtowc_incomplete_state
=yes
18079 gl_cv_func_mbrtowc_incomplete_state
=no
18081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18089 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18095 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18096 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18097 $as_echo_n "(cached) " >&6
18101 # Guess no on Solaris 8.
18102 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18103 # Guess yes otherwise.
18104 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18106 if test $LOCALE_ZH_CN != none
; then
18107 if test "$cross_compiling" = yes; then :
18110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18113 #include <locale.h>
18114 #include <stdlib.h>
18115 #include <string.h>
18116 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18118 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18119 included before <wchar.h>. */
18120 #include <stddef.h>
18126 /* This fails on Solaris 8:
18127 mbrtowc returns 2, and sets wc to 0x00F0.
18128 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18129 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18131 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18135 memset (&state, '\0', sizeof (mbstate_t));
18136 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18137 && mbtowc (&wc, input + 3, 6) == 4)
18143 if ac_fn_c_try_run
"$LINENO"; then :
18144 gl_cv_func_mbrtowc_sanitycheck
=yes
18146 gl_cv_func_mbrtowc_sanitycheck
=no
18148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18149 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18156 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18158 REPLACE_MBSTATE_T
=0
18159 case "$gl_cv_func_mbrtowc_incomplete_state" in
18161 *) REPLACE_MBSTATE_T
=1 ;;
18163 case "$gl_cv_func_mbrtowc_sanitycheck" in
18165 *) REPLACE_MBSTATE_T
=1 ;;
18168 REPLACE_MBSTATE_T
=1
18173 if test $ac_cv_func_mbrtowc = no
; then
18175 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18176 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18178 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18179 included before <wchar.h>. */
18180 #include <stddef.h>
18186 if test "x$ac_cv_have_decl_mbrtowc" = x
""yes; then :
18192 cat >>confdefs.h
<<_ACEOF
18193 #define HAVE_DECL_MBRTOWC $ac_have_decl
18196 if test $ac_cv_have_decl_mbrtowc = yes; then
18200 if test $REPLACE_MBSTATE_T = 1; then
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
18207 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
18208 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
18209 $as_echo_n "(cached) " >&6
18213 # Guess no on Solaris.
18214 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
18215 # Guess yes otherwise.
18216 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
18218 if test $LOCALE_FR_UTF8 != none
; then
18219 if test "$cross_compiling" = yes; then :
18222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18225 #include <locale.h>
18226 #include <stdlib.h>
18227 #include <string.h>
18228 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18230 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18231 included before <wchar.h>. */
18232 #include <stddef.h>
18240 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18242 char input[] = "\303\237er";
18247 memset (&state, '\0', sizeof (mbstate_t));
18248 wc = (wchar_t) 0xBADFACE;
18249 ret = mbrtowc (&wc, input, 5, &state);
18252 if (!mbsinit (&state))
18255 memset (&state, '\0', sizeof (mbstate_t));
18256 ret = mbrtowc (NULL, input, 5, &state);
18257 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
18259 if (!mbsinit (&state))
18265 if ac_fn_c_try_run
"$LINENO"; then :
18266 gl_cv_func_mbrtowc_null_arg1
=yes
18268 gl_cv_func_mbrtowc_null_arg1
=no
18270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
18278 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
18284 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
18285 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
18286 $as_echo_n "(cached) " >&6
18290 # Guess no on OSF/1.
18291 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
18292 # Guess yes otherwise.
18293 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
18295 if test $LOCALE_FR_UTF8 != none
; then
18296 if test "$cross_compiling" = yes; then :
18299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 #include <locale.h>
18303 #include <string.h>
18304 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18307 included before <wchar.h>. */
18308 #include <stddef.h>
18314 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18320 memset (&state, '\0', sizeof (mbstate_t));
18321 wc = (wchar_t) 0xBADFACE;
18322 mbrtowc (&wc, NULL, 5, &state);
18323 /* Check that wc was not modified. */
18324 if (wc != (wchar_t) 0xBADFACE)
18330 if ac_fn_c_try_run
"$LINENO"; then :
18331 gl_cv_func_mbrtowc_null_arg2
=yes
18333 gl_cv_func_mbrtowc_null_arg2
=no
18335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
18343 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
18351 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
18352 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
18353 $as_echo_n "(cached) " >&6
18357 # Guess no on HP-UX, Solaris, native Windows.
18358 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
18359 # Guess yes otherwise.
18360 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
18362 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
18363 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
18364 if test "$cross_compiling" = yes; then :
18367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #include <locale.h>
18371 #include <string.h>
18372 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18374 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18375 included before <wchar.h>. */
18376 #include <stddef.h>
18383 int found_some_locale = 0;
18384 /* This fails on Solaris. */
18385 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18387 char input[] = "B\303\274\303\237er"; /* "Büßer" */
18391 memset (&state, '\0', sizeof (mbstate_t));
18392 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18395 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
18398 found_some_locale = 1;
18400 /* This fails on HP-UX 11.11. */
18401 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18403 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18407 memset (&state, '\0', sizeof (mbstate_t));
18408 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18411 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
18414 found_some_locale = 1;
18416 /* This fails on native Windows. */
18417 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
18419 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
18423 memset (&state, '\0', sizeof (mbstate_t));
18424 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18427 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18430 found_some_locale = 1;
18432 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
18434 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
18438 memset (&state, '\0', sizeof (mbstate_t));
18439 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18442 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18445 found_some_locale = 1;
18447 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
18449 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
18453 memset (&state, '\0', sizeof (mbstate_t));
18454 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
18457 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
18460 found_some_locale = 1;
18462 return (found_some_locale ? result : 77);
18465 if ac_fn_c_try_run
"$LINENO"; then :
18466 gl_cv_func_mbrtowc_retval
=yes
18468 if test $?
!= 77; then
18469 gl_cv_func_mbrtowc_retval
=no
18473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
18481 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
18487 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
18488 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
18489 $as_echo_n "(cached) " >&6
18493 # Guess no on Solaris 8 and 9.
18494 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
18495 # Guess yes otherwise.
18496 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
18498 if test $LOCALE_ZH_CN != none
; then
18499 if test "$cross_compiling" = yes; then :
18502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18505 #include <locale.h>
18506 #include <string.h>
18507 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18509 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18510 included before <wchar.h>. */
18511 #include <stddef.h>
18517 /* This fails on Solaris 8 and 9. */
18518 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18523 memset (&state, '\0', sizeof (mbstate_t));
18524 if (mbrtowc (&wc, "", 1, &state) != 0)
18530 if ac_fn_c_try_run
"$LINENO"; then :
18531 gl_cv_func_mbrtowc_nul_retval
=yes
18533 gl_cv_func_mbrtowc_nul_retval
=no
18535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
18543 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
18548 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
18549 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
18550 $as_echo_n "(cached) " >&6
18554 # Guess no on AIX and glibc systems.
18556 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
18557 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
18559 if test "$cross_compiling" = yes; then :
18562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18567 static mbstate_t mbs;
18571 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
18574 if ac_fn_c_try_run
"$LINENO"; then :
18575 gl_cv_func_mbrtowc_empty_input
=yes
18577 gl_cv_func_mbrtowc_empty_input
=no
18579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
18586 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
18590 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
18591 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18595 gl_cv_C_locale_sans_EILSEQ
="guessing no"
18597 if test "$cross_compiling" = yes; then :
18600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602 #include <limits.h>
18603 #include <locale.h>
18611 char *locale = setlocale (LC_ALL, "C");
18614 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
18618 mbstate_t mbs = { 0, };
18619 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
18629 if ac_fn_c_try_run
"$LINENO"; then :
18630 gl_cv_C_locale_sans_EILSEQ
=yes
18632 gl_cv_C_locale_sans_EILSEQ
=no
18634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
18640 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
18642 case "$gl_cv_func_mbrtowc_null_arg1" in
18645 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
18650 case "$gl_cv_func_mbrtowc_null_arg2" in
18653 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
18658 case "$gl_cv_func_mbrtowc_retval" in
18661 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
18666 case "$gl_cv_func_mbrtowc_nul_retval" in
18669 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
18674 case "$gl_cv_func_mbrtowc_empty_input" in
18677 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
18682 case $gl_cv_C_locale_sans_EILSEQ in
18685 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
18693 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
18702 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
18719 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
18734 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18739 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18740 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18741 $as_echo_n "(cached) " >&6
18745 # Guess no on AIX and OSF/1.
18746 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18747 # Guess yes otherwise.
18748 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18750 if test $LOCALE_JA != none
; then
18751 if test "$cross_compiling" = yes; then :
18754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18757 #include <locale.h>
18758 #include <string.h>
18759 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18761 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18762 included before <wchar.h>. */
18763 #include <stddef.h>
18769 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18771 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18775 memset (&state, '\0', sizeof (mbstate_t));
18776 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18777 if (mbsinit (&state))
18783 if ac_fn_c_try_run
"$LINENO"; then :
18784 gl_cv_func_mbrtowc_incomplete_state
=yes
18786 gl_cv_func_mbrtowc_incomplete_state
=no
18788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18789 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18796 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18802 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18803 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18804 $as_echo_n "(cached) " >&6
18808 # Guess no on Solaris 8.
18809 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18810 # Guess yes otherwise.
18811 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18813 if test $LOCALE_ZH_CN != none
; then
18814 if test "$cross_compiling" = yes; then :
18817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18820 #include <locale.h>
18821 #include <stdlib.h>
18822 #include <string.h>
18823 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18825 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18826 included before <wchar.h>. */
18827 #include <stddef.h>
18833 /* This fails on Solaris 8:
18834 mbrtowc returns 2, and sets wc to 0x00F0.
18835 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18836 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18838 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18842 memset (&state, '\0', sizeof (mbstate_t));
18843 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18844 && mbtowc (&wc, input + 3, 6) == 4)
18850 if ac_fn_c_try_run
"$LINENO"; then :
18851 gl_cv_func_mbrtowc_sanitycheck
=yes
18853 gl_cv_func_mbrtowc_sanitycheck
=no
18855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18863 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18865 REPLACE_MBSTATE_T
=0
18866 case "$gl_cv_func_mbrtowc_incomplete_state" in
18868 *) REPLACE_MBSTATE_T
=1 ;;
18870 case "$gl_cv_func_mbrtowc_sanitycheck" in
18872 *) REPLACE_MBSTATE_T
=1 ;;
18875 REPLACE_MBSTATE_T
=1
18880 if test $ac_cv_func_mbsinit = no
; then
18882 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
18883 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18885 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18886 included before <wchar.h>. */
18887 #include <stddef.h>
18893 if test "x$ac_cv_have_decl_mbsinit" = x
""yes; then :
18899 cat >>confdefs.h
<<_ACEOF
18900 #define HAVE_DECL_MBSINIT $ac_have_decl
18903 if test $ac_cv_have_decl_mbsinit = yes; then
18907 if test $REPLACE_MBSTATE_T = 1; then
18911 mingw
*) REPLACE_MBSINIT
=1 ;;
18916 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
18925 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
18942 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
18956 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18961 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18962 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18963 $as_echo_n "(cached) " >&6
18967 # Guess no on AIX and OSF/1.
18968 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18969 # Guess yes otherwise.
18970 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18972 if test $LOCALE_JA != none
; then
18973 if test "$cross_compiling" = yes; then :
18976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18979 #include <locale.h>
18980 #include <string.h>
18981 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18983 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18984 included before <wchar.h>. */
18985 #include <stddef.h>
18991 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18993 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18997 memset (&state, '\0', sizeof (mbstate_t));
18998 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18999 if (mbsinit (&state))
19005 if ac_fn_c_try_run
"$LINENO"; then :
19006 gl_cv_func_mbrtowc_incomplete_state
=yes
19008 gl_cv_func_mbrtowc_incomplete_state
=no
19010 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19011 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19018 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19024 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19025 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
19026 $as_echo_n "(cached) " >&6
19030 # Guess no on Solaris 8.
19031 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19032 # Guess yes otherwise.
19033 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19035 if test $LOCALE_ZH_CN != none
; then
19036 if test "$cross_compiling" = yes; then :
19039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19042 #include <locale.h>
19043 #include <stdlib.h>
19044 #include <string.h>
19045 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19047 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19048 included before <wchar.h>. */
19049 #include <stddef.h>
19055 /* This fails on Solaris 8:
19056 mbrtowc returns 2, and sets wc to 0x00F0.
19057 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19058 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19060 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19064 memset (&state, '\0', sizeof (mbstate_t));
19065 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19066 && mbtowc (&wc, input + 3, 6) == 4)
19072 if ac_fn_c_try_run
"$LINENO"; then :
19073 gl_cv_func_mbrtowc_sanitycheck
=yes
19075 gl_cv_func_mbrtowc_sanitycheck
=no
19077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19085 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19087 REPLACE_MBSTATE_T
=0
19088 case "$gl_cv_func_mbrtowc_incomplete_state" in
19090 *) REPLACE_MBSTATE_T
=1 ;;
19092 case "$gl_cv_func_mbrtowc_sanitycheck" in
19094 *) REPLACE_MBSTATE_T
=1 ;;
19097 REPLACE_MBSTATE_T
=1
19102 if test $ac_cv_func_mbsrtowcs = no
; then
19104 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19105 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19107 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19108 included before <wchar.h>. */
19109 #include <stddef.h>
19115 if test "x$ac_cv_have_decl_mbsrtowcs" = x
""yes; then :
19121 cat >>confdefs.h
<<_ACEOF
19122 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19125 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19126 REPLACE_MBSRTOWCS
=1
19129 if test $REPLACE_MBSTATE_T = 1; then
19130 REPLACE_MBSRTOWCS
=1
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19139 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19140 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
19141 $as_echo_n "(cached) " >&6
19145 # Guess no on HP-UX, Solaris, mingw.
19146 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
19147 # Guess yes otherwise.
19148 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
19150 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
19151 if test "$cross_compiling" = yes; then :
19154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19157 #include <locale.h>
19158 #include <string.h>
19159 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19161 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19162 included before <wchar.h>. */
19163 #include <stddef.h>
19170 /* Test whether the function supports a NULL destination argument.
19171 This fails on native Windows. */
19172 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19174 const char input[] = "\337er";
19175 const char *src = input;
19178 memset (&state, '\0', sizeof (mbstate_t));
19179 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19183 /* Test whether the function works when started with a conversion state
19184 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19185 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19187 const char input[] = "B\303\274\303\237er";
19190 memset (&state, '\0', sizeof (mbstate_t));
19191 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19192 if (!mbsinit (&state))
19194 const char *src = input + 2;
19195 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19199 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19201 const char input[] = "<\306\374\313\334\270\354>";
19204 memset (&state, '\0', sizeof (mbstate_t));
19205 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19206 if (!mbsinit (&state))
19208 const char *src = input + 4;
19209 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19213 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19215 const char input[] = "B\250\271\201\060\211\070er";
19218 memset (&state, '\0', sizeof (mbstate_t));
19219 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19220 if (!mbsinit (&state))
19222 const char *src = input + 2;
19223 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19230 if ac_fn_c_try_run
"$LINENO"; then :
19231 gl_cv_func_mbsrtowcs_works
=yes
19233 gl_cv_func_mbsrtowcs_works
=no
19235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19243 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19245 case "$gl_cv_func_mbsrtowcs_works" in
19247 *) REPLACE_MBSRTOWCS
=1 ;;
19252 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
19261 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19271 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19288 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19293 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
19302 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
19305 for ac_header
in bp-sym.h
19307 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
19308 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
19309 cat >>confdefs.h
<<_ACEOF
19310 #define HAVE_BP_SYM_H 1
19330 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
19336 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
19338 $as_echo_n "checking whether memmem works in linear time... " >&6; }
19339 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
19340 $as_echo_n "(cached) " >&6
19342 if test "$cross_compiling" = yes; then :
19343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 #include <features.h>
19347 #ifdef __GNU_LIBRARY__
19348 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
19349 && !defined __UCLIBC__
19354 #include <cygwin/version.h>
19355 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
19361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19362 $EGREP "Lucky user" >/dev
/null
2>&1; then :
19363 gl_cv_func_memmem_works_fast
="guessing yes"
19365 gl_cv_func_memmem_works_fast
="guessing no"
19371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19372 /* end confdefs.h. */
19374 #include <signal.h> /* for signal */
19375 #include <string.h> /* for memmem */
19376 #include <stdlib.h> /* for malloc */
19377 #include <unistd.h> /* for alarm */
19378 static void quit (int sig) { _exit (sig + 128); }
19385 size_t m = 1000000;
19386 char *haystack = (char *) malloc (2 * m + 1);
19387 char *needle = (char *) malloc (m + 1);
19388 /* Failure to compile this test due to missing alarm is okay,
19389 since all such platforms (mingw) also lack memmem. */
19390 signal (SIGALRM, quit);
19392 /* Check for quadratic performance. */
19393 if (haystack && needle)
19395 memset (haystack, 'A', 2 * m);
19396 haystack[2 * m] = 'B';
19397 memset (needle, 'A', m);
19399 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
19408 if ac_fn_c_try_run
"$LINENO"; then :
19409 gl_cv_func_memmem_works_fast
=yes
19411 gl_cv_func_memmem_works_fast
=no
19413 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19414 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
19420 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
19421 case "$gl_cv_func_memmem_works_fast" in
19429 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
19438 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
19445 for ac_func
in memmem
19447 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
19448 if test "x$ac_cv_func_memmem" = x
""yes; then :
19449 cat >>confdefs.h
<<_ACEOF
19450 #define HAVE_MEMMEM 1
19456 if test $ac_cv_func_memmem = yes; then
19462 if test $ac_cv_have_decl_memmem = no
; then
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
19466 $as_echo_n "checking whether memmem works... " >&6; }
19467 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19470 if test "$cross_compiling" = yes; then :
19471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19474 #ifdef __GNU_LIBRARY__
19475 #include <features.h>
19476 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
19477 || __GLIBC_MINOR__ > 12)) \
19478 || (__GLIBC__ > 2)) \
19479 || defined __UCLIBC__
19482 #elif defined __CYGWIN__
19483 #include <cygwin/version.h>
19484 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
19492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493 $EGREP "Lucky user" >/dev
/null
2>&1; then :
19494 gl_cv_func_memmem_works_always
="guessing yes"
19496 gl_cv_func_memmem_works_always
="guessing no"
19502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 #include <string.h> /* for memmem */
19506 #define P "_EF_BF_BD"
19507 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
19508 #define NEEDLE P P P P P
19515 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
19517 /* Check for empty needle behavior. */
19519 const char *haystack = "AAA";
19520 if (memmem (haystack, 3, NULL, 0) != haystack)
19529 if ac_fn_c_try_run
"$LINENO"; then :
19530 gl_cv_func_memmem_works_always
=yes
19532 gl_cv_func_memmem_works_always
=no
19534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
19541 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
19542 case "$gl_cv_func_memmem_works_always" in
19551 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
19560 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
19574 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
19584 for ac_func
in mempcpy
19586 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
19587 if test "x$ac_cv_func_mempcpy" = x
""yes; then :
19588 cat >>confdefs.h
<<_ACEOF
19589 #define HAVE_MEMPCPY 1
19595 if test $ac_cv_func_mempcpy = no
; then
19599 if test $HAVE_MEMPCPY = 0; then
19608 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
19625 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
19634 if test $ac_cv_have_decl_memrchr = no
; then
19635 HAVE_DECL_MEMRCHR
=0
19638 for ac_func
in memrchr
19640 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
19641 if test "x$ac_cv_func_memrchr" = x
""yes; then :
19642 cat >>confdefs.h
<<_ACEOF
19643 #define HAVE_MEMRCHR 1
19650 if test $ac_cv_func_memrchr = no
; then
19659 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
19674 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
19679 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19688 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
19692 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19701 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
19714 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
19715 if test "${gl_cv_func_open_slash+set}" = set; then :
19716 $as_echo_n "(cached) " >&6
19718 # Assume that if we have lstat, we can also check symlinks.
19719 if test $ac_cv_func_lstat = yes; then
19721 ln -s conftest.tmp conftest.lnk
19723 if test "$cross_compiling" = yes; then :
19726 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
19727 gl_cv_func_open_slash
="guessing no" ;;
19729 gl_cv_func_open_slash
="guessing yes" ;;
19733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19738 # include <unistd.h>
19744 if (open ("conftest.lnk/", O_RDONLY) != -1)
19747 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
19752 if ac_fn_c_try_run
"$LINENO"; then :
19753 gl_cv_func_open_slash
=yes
19755 gl_cv_func_open_slash
=no
19757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19761 rm -f conftest.sl conftest.tmp conftest.lnk
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
19765 $as_echo "$gl_cv_func_open_slash" >&6; }
19766 case "$gl_cv_func_open_slash" in
19769 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
19777 if test $REPLACE_OPEN = 0; then
19781 if test $ac_cv_func_fchdir = no
; then
19785 if test $HAVE_FCHDIR = 0; then
19792 if test $REPLACE_OPEN = 1; then
19801 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
19819 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
19828 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
19832 # Solaris 9 has *at functions, but uniformly mishandles trailing
19833 # slash in all of them.
19841 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
19850 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
19859 cat >>confdefs.h
<<_ACEOF
19860 #define GNULIB_OPENAT 1
19874 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
19881 for ac_func
in opendir
19883 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
19884 if test "x$ac_cv_func_opendir" = x
""yes; then :
19885 cat >>confdefs.h
<<_ACEOF
19886 #define HAVE_OPENDIR 1
19892 if test $ac_cv_func_opendir = no
; then
19899 if test $ac_cv_func_fchdir = no
; then
19903 if test $HAVE_FCHDIR = 0; then
19904 if test $HAVE_OPENDIR = 1; then
19909 case $host_os,$HAVE_OPENDIR in
19911 REPLACE_OPENDIR
=1;;
19914 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
19923 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
19937 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
19948 for ac_func
in rawmemchr
19950 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
19951 if test "x$ac_cv_func_rawmemchr" = x
""yes; then :
19952 cat >>confdefs.h
<<_ACEOF
19953 #define HAVE_RAWMEMCHR 1
19959 if test $ac_cv_func_rawmemchr = no
; then
19963 if test $HAVE_RAWMEMCHR = 0; then
19972 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
19987 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
19994 for ac_func
in readdir
19996 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
19997 if test "x$ac_cv_func_readdir" = x
""yes; then :
19998 cat >>confdefs.h
<<_ACEOF
19999 #define HAVE_READDIR 1
20005 if test $ac_cv_func_readdir = no
; then
20009 if test $HAVE_READDIR = 0; then
20018 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
20032 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
20039 if test $ac_cv_func_readlink = no
; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20043 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20044 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h. */
20049 #include <unistd.h>
20050 /* Cause compilation failure if original declaration has wrong type. */
20051 ssize_t readlink (const char *, char *, size_t);
20060 if ac_fn_c_try_compile
"$LINENO"; then :
20061 gl_cv_decl_readlink_works
=yes
20063 gl_cv_decl_readlink_works
=no
20065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20068 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20070 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20071 if test "${gl_cv_func_readlink_works+set}" = set; then :
20072 $as_echo_n "(cached) " >&6
20074 # We have readlink, so assume ln -s works.
20075 ln -s conftest.no-such conftest.link
20076 ln -s conftest.link conftest.lnk2
20077 if test "$cross_compiling" = yes; then :
20079 # Guess yes on glibc systems.
20080 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
20081 # If we don't know, assume the worst.
20082 *) gl_cv_func_readlink_works
="guessing no" ;;
20086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20088 #include <unistd.h>
20094 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20099 if ac_fn_c_try_run
"$LINENO"; then :
20100 gl_cv_func_readlink_works
=yes
20102 gl_cv_func_readlink_works
=no
20104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20108 rm -f conftest.link conftest.lnk2
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20111 $as_echo "$gl_cv_func_readlink_works" >&6; }
20112 case "$gl_cv_func_readlink_works" in
20114 if test "$gl_cv_decl_readlink_works" != yes; then
20120 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20127 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20136 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20153 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
20160 if test $gl_cv_func_malloc_posix = yes; then
20162 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20168 if test $REPLACE_REALLOC = 1; then
20177 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
20185 GNULIB_REALLOC_POSIX
=1
20191 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
20201 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
20202 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20205 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20206 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
20207 as_fn_error
"cannot create temporary files" "$LINENO" 5
20208 # Assume that if we have lstat, we can also check symlinks.
20209 if test $ac_cv_func_lstat = yes; then
20210 ln -s conftest.f conftest.lnk
20212 if test "$cross_compiling" = yes; then :
20214 # Guess yes on glibc systems.
20215 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
20216 # If we don't know, assume the worst.
20217 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
20221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20222 /* end confdefs.h. */
20224 # include <stdio.h>
20225 # include <stdlib.h>
20231 if (rename ("conftest.f1", "conftest.f2/") == 0)
20233 if (rename ("conftest.d1", "conftest.d2/") != 0)
20236 if (rename ("conftest.f", "conftest.lnk/") == 0)
20245 if ac_fn_c_try_run
"$LINENO"; then :
20246 gl_cv_func_rename_slash_dst_works
=yes
20248 gl_cv_func_rename_slash_dst_works
=no
20250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20254 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
20258 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
20259 case "$gl_cv_func_rename_slash_dst_works" in
20264 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
20270 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
20271 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
20272 $as_echo_n "(cached) " >&6
20274 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20275 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
20276 as_fn_error
"cannot create temporary files" "$LINENO" 5
20277 # Assume that if we have lstat, we can also check symlinks.
20278 if test $ac_cv_func_lstat = yes; then
20279 ln -s conftest.f conftest.lnk
20281 if test "$cross_compiling" = yes; then :
20283 # Guess yes on glibc systems.
20284 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
20285 # If we don't know, assume the worst.
20286 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
20290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 # include <stdio.h>
20294 # include <stdlib.h>
20300 if (rename ("conftest.f1/", "conftest.d3") == 0)
20302 if (rename ("conftest.d1/", "conftest.d2") != 0)
20305 if (rename ("conftest.lnk/", "conftest.f") == 0)
20314 if ac_fn_c_try_run
"$LINENO"; then :
20315 gl_cv_func_rename_slash_src_works
=yes
20317 gl_cv_func_rename_slash_src_works
=no
20319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20323 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
20327 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
20328 case "$gl_cv_func_rename_slash_src_works" in
20333 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
20340 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
20341 if test "${gl_cv_func_rename_link_works+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20344 if test $ac_cv_func_link = yes; then
20345 rm -rf conftest.f conftest.f1
20346 if touch conftest.f
&& ln conftest.f conftest.f1
&&
20347 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
20348 if test "$cross_compiling" = yes; then :
20350 # Guess yes on glibc systems.
20351 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
20352 # If we don't know, assume the worst.
20353 *) gl_cv_func_rename_link_works
="guessing no" ;;
20357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20360 # include <stdio.h>
20361 # include <stdlib.h>
20362 # include <unistd.h>
20368 if (rename ("conftest.f", "conftest.f1"))
20370 if (unlink ("conftest.f1"))
20372 if (rename ("conftest.f", "conftest.f"))
20374 if (rename ("conftest.f1", "conftest.f1") == 0)
20382 if ac_fn_c_try_run
"$LINENO"; then :
20383 gl_cv_func_rename_link_works
=yes
20385 gl_cv_func_rename_link_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
20392 gl_cv_func_rename_link_works
="guessing no"
20394 rm -rf conftest.f conftest.f1
20396 gl_cv_func_rename_link_works
=yes
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
20401 $as_echo "$gl_cv_func_rename_link_works" >&6; }
20402 case "$gl_cv_func_rename_link_works" in
20407 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
20413 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
20414 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
20415 $as_echo_n "(cached) " >&6
20417 rm -rf conftest.f conftest.d1 conftest.d2
20418 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
20419 as_fn_error
"cannot create temporary files" "$LINENO" 5
20420 if test "$cross_compiling" = yes; then :
20422 # Guess yes on glibc systems.
20423 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
20424 # If we don't know, assume the worst.
20425 *) gl_cv_func_rename_dest_works
="guessing no" ;;
20429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h. */
20432 # include <stdio.h>
20433 # include <stdlib.h>
20439 if (rename ("conftest.d1", "conftest.d2") != 0)
20441 if (rename ("conftest.d2", "conftest.f") == 0)
20449 if ac_fn_c_try_run
"$LINENO"; then :
20450 gl_cv_func_rename_dest_works
=yes
20452 gl_cv_func_rename_dest_works
=no
20454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20458 rm -rf conftest.f conftest.d1 conftest.d2
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
20462 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
20463 case "$gl_cv_func_rename_dest_works" in
20468 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
20473 if test $REPLACE_RENAME = 1; then
20482 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
20496 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
20503 for ac_func
in rewinddir
20505 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
20506 if test "x$ac_cv_func_rewinddir" = x
""yes; then :
20507 cat >>confdefs.h
<<_ACEOF
20508 #define HAVE_REWINDDIR 1
20514 if test $ac_cv_func_rewinddir = no
; then
20518 if test $HAVE_REWINDDIR = 0; then
20527 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
20541 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
20549 $as_echo_n "checking whether rmdir works... " >&6; }
20550 if test "${gl_cv_func_rmdir_works+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20554 touch conftest.
file
20555 if test "$cross_compiling" = yes; then :
20557 # Guess yes on glibc systems.
20558 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
20559 # If we don't know, assume the worst.
20560 *) gl_cv_func_rmdir_works
="guessing no" ;;
20564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20569 # include <unistd.h>
20570 #else /* on Windows with MSVC */
20571 # include <direct.h>
20578 if (!rmdir ("conftest.file/"))
20580 else if (errno != ENOTDIR)
20582 if (!rmdir ("conftest.dir/./"))
20590 if ac_fn_c_try_run
"$LINENO"; then :
20591 gl_cv_func_rmdir_works
=yes
20593 gl_cv_func_rmdir_works
=no
20595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20599 rm -rf conftest.dir conftest.
file
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
20602 $as_echo "$gl_cv_func_rmdir_works" >&6; }
20603 case "$gl_cv_func_rmdir_works" in
20610 if test $REPLACE_RMDIR = 1; then
20619 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
20633 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
20642 if test $ac_cv_func_setenv = no
; then
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
20646 $as_echo_n "checking whether setenv validates arguments... " >&6; }
20647 if test "${gl_cv_func_setenv_works+set}" = set; then :
20648 $as_echo_n "(cached) " >&6
20650 if test "$cross_compiling" = yes; then :
20652 # Guess yes on glibc systems.
20653 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
20654 # If we don't know, assume the worst.
20655 *) gl_cv_func_setenv_works
="guessing no" ;;
20659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20662 #include <stdlib.h>
20664 #include <string.h>
20672 if (setenv ("", "", 0) != -1)
20674 else if (errno != EINVAL)
20678 if (setenv ("a", "=", 1) != 0)
20680 else if (strcmp (getenv ("a"), "=") != 0)
20689 if ac_fn_c_try_run
"$LINENO"; then :
20690 gl_cv_func_setenv_works
=yes
20692 gl_cv_func_setenv_works
=no
20694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
20700 $as_echo "$gl_cv_func_setenv_works" >&6; }
20701 case "$gl_cv_func_setenv_works" in
20709 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
20718 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
20732 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
20747 if test $gl_cv_have_include_next = yes; then
20748 gl_cv_next_signal_h
='<'signal.h
'>'
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20751 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20752 if test "${gl_cv_next_signal_h+set}" = set; then :
20753 $as_echo_n "(cached) " >&6
20758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20760 #include <signal.h>
20763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20764 *) gl_absname_cpp
="$ac_cpp" ;;
20769 gl_dirsep_regex
='[/\\]'
20772 gl_dirsep_regex
='\/'
20775 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20776 gl_header_literal_regex
=`echo 'signal.h' \
20777 | sed -e "$gl_make_literal_regex_sed"`
20778 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20785 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20786 sed -n "$gl_absolute_header_sed"`
20788 gl_header
=$gl_cv_absolute_signal_h
20789 gl_cv_next_signal_h
='"'$gl_header'"'
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20794 $as_echo "$gl_cv_next_signal_h" >&6; }
20796 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20798 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20800 gl_next_as_first_directive
='<'signal.h
'>'
20802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20803 gl_next_as_first_directive
=$gl_cv_next_signal_h
20805 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20811 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20812 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20813 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20814 #include <signal.h>
20817 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20820 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20829 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20830 #include <signal.h>
20833 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20836 HAVE_SIGHANDLER_T
=0
20841 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
20842 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20844 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20845 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
20846 $as_echo_n "(cached) " >&6
20848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h. */
20850 #include <signal.h>
20861 if ac_fn_c_try_compile
"$LINENO"; then :
20862 eval "$as_gl_Symbol=yes"
20864 eval "$as_gl_Symbol=no"
20866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20868 eval ac_res
=\$
$as_gl_Symbol
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20870 $as_echo "$ac_res" >&6; }
20871 eval as_val
=\$
$as_gl_Symbol
20872 if test "x$as_val" = x
""yes; then :
20873 cat >>confdefs.h
<<_ACEOF
20874 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20877 eval ac_cv_have_decl_
$gl_func=yes
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20884 $as_echo_n "checking for ssize_t... " >&6; }
20885 if test "${gt_cv_ssize_t+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890 #include <sys/types.h>
20894 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20900 if ac_fn_c_try_compile
"$LINENO"; then :
20905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20908 $as_echo "$gt_cv_ssize_t" >&6; }
20909 if test $gt_cv_ssize_t = no
; then
20911 $as_echo "#define ssize_t int" >>confdefs.h
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
20919 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
20920 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20923 if test "$cross_compiling" = yes; then :
20925 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
20926 *) gl_cv_func_stat_dir_slash
="guessing yes";;
20929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931 #include <sys/stat.h>
20936 struct stat st; return stat (".", &st) != stat ("./", &st);
20941 if ac_fn_c_try_run
"$LINENO"; then :
20942 gl_cv_func_stat_dir_slash
=yes
20944 gl_cv_func_stat_dir_slash
=no
20946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
20952 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
20954 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
20955 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
20956 $as_echo_n "(cached) " >&6
20959 # Assume that if we have lstat, we can also check symlinks.
20960 if test $ac_cv_func_lstat = yes; then
20961 ln -s conftest.tmp conftest.lnk
20963 if test "$cross_compiling" = yes; then :
20965 # Guess yes on glibc systems.
20966 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
20967 # If we don't know, assume the worst.
20968 *) gl_cv_func_stat_file_slash
="guessing no" ;;
20972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20974 #include <sys/stat.h>
20981 if (!stat ("conftest.tmp/", &st))
20984 if (!stat ("conftest.lnk/", &st))
20993 if ac_fn_c_try_run
"$LINENO"; then :
20994 gl_cv_func_stat_file_slash
=yes
20996 gl_cv_func_stat_file_slash
=no
20998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21002 rm -f conftest.tmp conftest.lnk
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21005 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21006 case $gl_cv_func_stat_dir_slash in
21007 *no
) REPLACE_STAT
=1
21009 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21012 case $gl_cv_func_stat_file_slash in
21013 *no
) REPLACE_STAT
=1
21015 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21019 if test $REPLACE_STAT = 1; then
21028 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21043 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
21050 # Define two additional variables used in the Makefile substitution.
21052 if test "$ac_cv_header_stdbool_h" = yes; then
21055 STDBOOL_H
='stdbool.h'
21058 if test -n "$STDBOOL_H"; then
21059 GL_GENERATE_STDBOOL_H_TRUE
=
21060 GL_GENERATE_STDBOOL_H_FALSE
='#'
21062 GL_GENERATE_STDBOOL_H_TRUE
='#'
21063 GL_GENERATE_STDBOOL_H_FALSE
=
21067 if test "$ac_cv_type__Bool" = yes; then
21078 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
21081 if test "x$ac_cv_type_max_align_t" = x
""yes; then :
21084 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
21087 if test $gt_cv_c_wchar_t = no
; then
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21092 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21093 if test "${gl_cv_decl_null_works+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21097 /* end confdefs.h. */
21098 #include <stddef.h>
21099 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21109 if ac_fn_c_try_compile
"$LINENO"; then :
21110 gl_cv_decl_null_works
=yes
21112 gl_cv_decl_null_works
=no
21114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21117 $as_echo "$gl_cv_decl_null_works" >&6; }
21118 if test $gl_cv_decl_null_works = no
; then
21123 if test -n "$STDDEF_H"; then
21124 GL_GENERATE_STDDEF_H_TRUE
=
21125 GL_GENERATE_STDDEF_H_FALSE
='#'
21127 GL_GENERATE_STDDEF_H_TRUE
='#'
21128 GL_GENERATE_STDDEF_H_FALSE
=
21131 if test -n "$STDDEF_H"; then
21140 if test $gl_cv_have_include_next = yes; then
21141 gl_cv_next_stddef_h
='<'stddef.h
'>'
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21144 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21145 if test "${gl_cv_next_stddef_h+set}" = set; then :
21146 $as_echo_n "(cached) " >&6
21151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21153 #include <stddef.h>
21156 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21157 *) gl_absname_cpp
="$ac_cpp" ;;
21162 gl_dirsep_regex
='[/\\]'
21165 gl_dirsep_regex
='\/'
21168 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21169 gl_header_literal_regex
=`echo 'stddef.h' \
21170 | sed -e "$gl_make_literal_regex_sed"`
21171 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21172 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21178 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21179 sed -n "$gl_absolute_header_sed"`
21181 gl_header
=$gl_cv_absolute_stddef_h
21182 gl_cv_next_stddef_h
='"'$gl_header'"'
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21187 $as_echo "$gl_cv_next_stddef_h" >&6; }
21189 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21191 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21193 gl_next_as_first_directive
='<'stddef.h
'>'
21195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21196 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21198 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21208 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
21219 if test $gl_cv_have_include_next = yes; then
21220 gl_cv_next_stdio_h
='<'stdio.h
'>'
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21223 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21224 if test "${gl_cv_next_stdio_h+set}" = set; then :
21225 $as_echo_n "(cached) " >&6
21230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21235 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21236 *) gl_absname_cpp
="$ac_cpp" ;;
21241 gl_dirsep_regex
='[/\\]'
21244 gl_dirsep_regex
='\/'
21247 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21248 gl_header_literal_regex
=`echo 'stdio.h' \
21249 | sed -e "$gl_make_literal_regex_sed"`
21250 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21251 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21257 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21258 sed -n "$gl_absolute_header_sed"`
21260 gl_header
=$gl_cv_absolute_stdio_h
21261 gl_cv_next_stdio_h
='"'$gl_header'"'
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21266 $as_echo "$gl_cv_next_stdio_h" >&6; }
21268 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21270 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21272 gl_next_as_first_directive
='<'stdio.h
'>'
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21275 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21277 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
21284 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
21285 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
21286 $as_echo_n "(cached) " >&6
21288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h. */
21291 #define __STDC_FORMAT_MACROS 1
21293 #include <inttypes.h>
21294 /* For non-mingw systems, compilation will trivially succeed.
21295 For mingw, compilation will succeed for older mingw (system
21296 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
21297 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
21298 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
21299 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
21310 if ac_fn_c_try_compile
"$LINENO"; then :
21311 gl_cv_func_printf_attribute_flavor
=system
21313 gl_cv_func_printf_attribute_flavor
=gnu
21315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
21318 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
21319 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
21321 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
21328 cat >>confdefs.h
<<_ACEOF
21329 #define GNULIB_FSCANF 1
21336 cat >>confdefs.h
<<_ACEOF
21337 #define GNULIB_SCANF 1
21362 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
21363 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21365 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21366 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21367 $as_echo_n "(cached) " >&6
21369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h. */
21382 if ac_fn_c_try_compile
"$LINENO"; then :
21383 eval "$as_gl_Symbol=yes"
21385 eval "$as_gl_Symbol=no"
21387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21389 eval ac_res
=\$
$as_gl_Symbol
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21391 $as_echo "$ac_res" >&6; }
21392 eval as_val
=\$
$as_gl_Symbol
21393 if test "x$as_val" = x
""yes; then :
21394 cat >>confdefs.h
<<_ACEOF
21395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21398 eval ac_cv_have_decl_
$gl_func=yes
21413 if test $gl_cv_have_include_next = yes; then
21414 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21417 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21418 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21419 $as_echo_n "(cached) " >&6
21424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <stdlib.h>
21429 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21430 *) gl_absname_cpp
="$ac_cpp" ;;
21435 gl_dirsep_regex
='[/\\]'
21438 gl_dirsep_regex
='\/'
21441 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21442 gl_header_literal_regex
=`echo 'stdlib.h' \
21443 | sed -e "$gl_make_literal_regex_sed"`
21444 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21445 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21451 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21452 sed -n "$gl_absolute_header_sed"`
21454 gl_header
=$gl_cv_absolute_stdlib_h
21455 gl_cv_next_stdlib_h
='"'$gl_header'"'
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21460 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21462 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21464 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21466 gl_next_as_first_directive
='<'stdlib.h
'>'
21468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21469 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21471 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21478 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
21479 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21481 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21482 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21483 $as_echo_n "(cached) " >&6
21485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21487 #include <stdlib.h>
21488 #if HAVE_SYS_LOADAVG_H
21489 # include <sys/loadavg.h>
21492 # include <random.h>
21504 if ac_fn_c_try_compile
"$LINENO"; then :
21505 eval "$as_gl_Symbol=yes"
21507 eval "$as_gl_Symbol=no"
21509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21511 eval ac_res
=\$
$as_gl_Symbol
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21513 $as_echo "$ac_res" >&6; }
21514 eval as_val
=\$
$as_gl_Symbol
21515 if test "x$as_val" = x
""yes; then :
21516 cat >>confdefs.h
<<_ACEOF
21517 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21520 eval ac_cv_have_decl_
$gl_func=yes
21529 for ac_func
in strchrnul
21531 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21532 if test "x$ac_cv_func_strchrnul" = x
""yes; then :
21533 cat >>confdefs.h
<<_ACEOF
21534 #define HAVE_STRCHRNUL 1
21540 if test $ac_cv_func_strchrnul = no
; then
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21544 $as_echo_n "checking whether strchrnul works... " >&6; }
21545 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
21546 $as_echo_n "(cached) " >&6
21548 if test "$cross_compiling" = yes; then :
21549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21552 #if defined __CYGWIN__
21553 #include <cygwin/version.h>
21554 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21563 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21564 gl_cv_func_strchrnul_works
="guessing yes"
21566 gl_cv_func_strchrnul_works
="guessing no"
21572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h. */
21575 #include <string.h> /* for strchrnul */
21580 const char *buf = "a";
21581 return strchrnul (buf, 'b') != buf + 1;
21587 if ac_fn_c_try_run
"$LINENO"; then :
21588 gl_cv_func_strchrnul_works
=yes
21590 gl_cv_func_strchrnul_works
=no
21592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21599 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21600 case "$gl_cv_func_strchrnul_works" in
21602 *) REPLACE_STRCHRNUL
=1 ;;
21606 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
21615 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
21630 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21638 if test $ac_cv_func_strdup = yes; then
21639 if test $gl_cv_func_malloc_posix != yes; then
21644 if test $ac_cv_have_decl_strdup = no
; then
21648 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
21657 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
21672 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
21681 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21683 $as_echo_n "checking for working strerror function... " >&6; }
21684 if test "${gl_cv_func_working_strerror+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21687 if test "$cross_compiling" = yes; then :
21689 # Guess yes on glibc systems.
21690 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
21691 # If we don't know, assume the worst.
21692 *) gl_cv_func_working_strerror
="guessing no" ;;
21696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21698 #include <string.h>
21703 if (!*strerror (-2)) return 1;
21708 if ac_fn_c_try_run
"$LINENO"; then :
21709 gl_cv_func_working_strerror
=yes
21711 gl_cv_func_working_strerror
=no
21713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21720 $as_echo "$gl_cv_func_working_strerror" >&6; }
21721 case "$gl_cv_func_working_strerror" in
21732 if test $REPLACE_STRERROR = 1; then
21741 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
21746 cat >>confdefs.h
<<_ACEOF
21747 #define GNULIB_STRERROR 1
21762 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21768 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
21777 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
21783 if test $ac_cv_header_sys_socket_h != yes; then
21784 for ac_header
in winsock2.h
21786 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21787 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21788 cat >>confdefs.h
<<_ACEOF
21789 #define HAVE_WINSOCK2_H 1
21797 if test "$ac_cv_header_winsock2_h" = yes; then
21799 UNISTD_H_HAVE_WINSOCK2_H
=1
21800 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21812 if test $REPLACE_STRSTR = 0; then
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
21814 $as_echo_n "checking whether strstr works in linear time... " >&6; }
21815 if test "${gl_cv_func_strstr_linear+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21818 if test "$cross_compiling" = yes; then :
21819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21822 #include <features.h>
21823 #ifdef __GNU_LIBRARY__
21824 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
21825 && !(defined __i386__ || defined __x86_64__) \
21826 && !defined __UCLIBC__
21831 #include <cygwin/version.h>
21832 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21839 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21840 gl_cv_func_strstr_linear
="guessing yes"
21842 gl_cv_func_strstr_linear
="guessing no"
21848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21852 /* z/OS does not deliver signals while strstr() is running (thanks to
21853 restrictions on its LE runtime), which prevents us from limiting the
21854 running time of this test. */
21855 # error "This test does not work properly on z/OS"
21857 #include <signal.h> /* for signal */
21858 #include <string.h> /* for strstr */
21859 #include <stdlib.h> /* for malloc */
21860 #include <unistd.h> /* for alarm */
21861 static void quit (int sig) { _exit (sig + 128); }
21868 size_t m = 1000000;
21869 char *haystack = (char *) malloc (2 * m + 2);
21870 char *needle = (char *) malloc (m + 2);
21871 /* Failure to compile this test due to missing alarm is okay,
21872 since all such platforms (mingw) also have quadratic strstr. */
21873 signal (SIGALRM, quit);
21875 /* Check for quadratic performance. */
21876 if (haystack && needle)
21878 memset (haystack, 'A', 2 * m);
21879 haystack[2 * m] = 'B';
21880 haystack[2 * m + 1] = 0;
21881 memset (needle, 'A', m);
21884 if (!strstr (haystack, needle))
21893 if ac_fn_c_try_run
"$LINENO"; then :
21894 gl_cv_func_strstr_linear
=yes
21896 gl_cv_func_strstr_linear
=no
21898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
21905 $as_echo "$gl_cv_func_strstr_linear" >&6; }
21906 case "$gl_cv_func_strstr_linear" in
21914 if test $REPLACE_STRSTR = 1; then
21923 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
21929 if test "$gl_cv_func_memchr_works" != yes; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
21933 $as_echo_n "checking whether strstr works... " >&6; }
21934 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
21935 $as_echo_n "(cached) " >&6
21937 if test "$cross_compiling" = yes; then :
21938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21941 #ifdef __GNU_LIBRARY__
21942 #include <features.h>
21943 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
21944 || defined __UCLIBC__
21947 #elif defined __CYGWIN__
21948 #include <cygwin/version.h>
21949 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21958 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21959 gl_cv_func_strstr_works_always
="guessing yes"
21961 gl_cv_func_strstr_works_always
="guessing no"
21967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21970 #include <string.h> /* for strstr */
21971 #define P "_EF_BF_BD"
21972 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21973 #define NEEDLE P P P P P
21978 return !!strstr (HAYSTACK, NEEDLE);
21984 if ac_fn_c_try_run
"$LINENO"; then :
21985 gl_cv_func_strstr_works_always
=yes
21987 gl_cv_func_strstr_works_always
=no
21989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
21996 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
21997 case "$gl_cv_func_strstr_works_always" in
22005 if test $REPLACE_STRSTR = 1; then
22014 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
22028 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
22036 for ac_func
in strtok_r
22038 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
22039 if test "x$ac_cv_func_strtok_r" = x
""yes; then :
22040 cat >>confdefs.h
<<_ACEOF
22041 #define HAVE_STRTOK_R 1
22047 if test $ac_cv_func_strtok_r = yes; then
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
22050 $as_echo_n "checking whether strtok_r works... " >&6; }
22051 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22054 if test "$cross_compiling" = yes; then :
22057 # Guess no on glibc systems.
22058 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
22059 *) gl_cv_func_strtok_r_works
="guessing yes";;
22063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22066 #ifndef __OPTIMIZE__
22067 # define __OPTIMIZE__ 1
22069 #undef __OPTIMIZE_SIZE__
22070 #undef __NO_INLINE__
22071 #include <stdlib.h>
22072 #include <string.h>
22077 static const char dummy[] = "\177\01a";
22078 char delimiters[] = "xxxxxxxx";
22079 char *save_ptr = (char *) dummy;
22080 strtok_r (delimiters, "x", &save_ptr);
22081 strtok_r (NULL, "x", &save_ptr);
22089 if ac_fn_c_try_run
"$LINENO"; then :
22090 gl_cv_func_strtok_r_works
=yes
22092 gl_cv_func_strtok_r_works
=no
22094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
22101 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
22102 case "$gl_cv_func_strtok_r_works" in
22104 UNDEFINE_STRTOK_R
=1
22111 if test $ac_cv_have_decl_strtok_r = no
; then
22112 HAVE_DECL_STRTOK_R
=0
22115 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
22124 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
22141 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
22159 if test $gl_cv_have_include_next = yes; then
22160 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22163 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22164 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22168 if test $ac_cv_header_sys_stat_h = yes; then
22173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h. */
22175 #include <sys/stat.h>
22178 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22179 *) gl_absname_cpp
="$ac_cpp" ;;
22184 gl_dirsep_regex
='[/\\]'
22187 gl_dirsep_regex
='\/'
22190 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22191 gl_header_literal_regex
=`echo 'sys/stat.h' \
22192 | sed -e "$gl_make_literal_regex_sed"`
22193 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22200 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22201 sed -n "$gl_absolute_header_sed"`
22203 gl_header
=$gl_cv_absolute_sys_stat_h
22204 gl_cv_next_sys_stat_h
='"'$gl_header'"'
22206 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22212 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22214 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
22216 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22217 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22218 gl_next_as_first_directive
='<'sys
/stat.h
'>'
22220 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22221 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
22223 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
22235 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
22237 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
22241 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22242 #include <sys/stat.h>
22244 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
22248 $as_echo "#define nlink_t int" >>confdefs.h
22254 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
22255 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22257 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22258 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22259 $as_echo_n "(cached) " >&6
22261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22263 #include <sys/stat.h>
22274 if ac_fn_c_try_compile
"$LINENO"; then :
22275 eval "$as_gl_Symbol=yes"
22277 eval "$as_gl_Symbol=no"
22279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22281 eval ac_res
=\$
$as_gl_Symbol
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22283 $as_echo "$ac_res" >&6; }
22284 eval as_val
=\$
$as_gl_Symbol
22285 if test "x$as_val" = x
""yes; then :
22286 cat >>confdefs.h
<<_ACEOF
22287 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22290 eval ac_cv_have_decl_
$gl_func=yes
22317 if test $gl_cv_have_include_next = yes; then
22318 gl_cv_next_unistd_h
='<'unistd.h
'>'
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22321 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22322 if test "${gl_cv_next_unistd_h+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22326 if test $ac_cv_header_unistd_h = yes; then
22331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22333 #include <unistd.h>
22336 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22337 *) gl_absname_cpp
="$ac_cpp" ;;
22342 gl_dirsep_regex
='[/\\]'
22345 gl_dirsep_regex
='\/'
22348 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22349 gl_header_literal_regex
=`echo 'unistd.h' \
22350 | sed -e "$gl_make_literal_regex_sed"`
22351 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22352 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22358 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22359 sed -n "$gl_absolute_header_sed"`
22361 gl_header
=$gl_cv_absolute_unistd_h
22362 gl_cv_next_unistd_h
='"'$gl_header'"'
22364 gl_cv_next_unistd_h
='<'unistd.h
'>'
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22370 $as_echo "$gl_cv_next_unistd_h" >&6; }
22372 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22374 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22376 gl_next_as_first_directive
='<'unistd.h
'>'
22378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22379 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22381 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22386 if test $ac_cv_header_unistd_h = yes; then
22398 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
22399 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22401 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22402 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22403 $as_echo_n "(cached) " >&6
22405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22406 /* end confdefs.h. */
22409 # include <unistd.h>
22411 /* Some systems declare various items in the wrong headers. */
22412 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22413 # include <fcntl.h>
22414 # include <stdio.h>
22415 # include <stdlib.h>
22416 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22430 if ac_fn_c_try_compile
"$LINENO"; then :
22431 eval "$as_gl_Symbol=yes"
22433 eval "$as_gl_Symbol=no"
22435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22437 eval ac_res
=\$
$as_gl_Symbol
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22439 $as_echo "$ac_res" >&6; }
22440 eval as_val
=\$
$as_gl_Symbol
22441 if test "x$as_val" = x
""yes; then :
22442 cat >>confdefs.h
<<_ACEOF
22443 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22446 eval ac_cv_have_decl_
$gl_func=yes
22457 if test $ac_cv_have_decl_unsetenv = no
; then
22458 HAVE_DECL_UNSETENV
=0
22460 for ac_func
in unsetenv
22462 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
22463 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
22464 cat >>confdefs.h
<<_ACEOF
22465 #define HAVE_UNSETENV 1
22471 if test $ac_cv_func_unsetenv = no
; then
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
22476 $as_echo_n "checking for unsetenv() return type... " >&6; }
22477 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
22478 $as_echo_n "(cached) " >&6
22480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22481 /* end confdefs.h. */
22484 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
22485 #include <stdlib.h>
22490 int unsetenv (const char *name);
22500 if ac_fn_c_try_compile
"$LINENO"; then :
22501 gt_cv_func_unsetenv_ret
='int'
22503 gt_cv_func_unsetenv_ret
='void'
22505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
22508 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
22509 if test $gt_cv_func_unsetenv_ret = 'void'; then
22511 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
22517 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
22518 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
22519 $as_echo_n "(cached) " >&6
22521 if test "$cross_compiling" = yes; then :
22523 # Guess yes on glibc systems.
22524 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
22525 # If we don't know, assume the worst.
22526 *) gl_cv_func_unsetenv_works
="guessing no" ;;
22530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22533 #include <stdlib.h>
22535 extern char **environ;
22541 char entry1[] = "a=1";
22542 char entry2[] = "b=2";
22543 char *env[] = { entry1, entry2, NULL };
22544 if (putenv ((char *) "a=1")) return 1;
22545 if (putenv (entry2)) return 2;
22548 if (getenv ("a")) return 3;
22549 if (!unsetenv ("") || errno != EINVAL) return 4;
22552 if (!getenv ("a")) return 5;
22555 if (getenv ("a")) return 6;
22561 if ac_fn_c_try_run
"$LINENO"; then :
22562 gl_cv_func_unsetenv_works
=yes
22564 gl_cv_func_unsetenv_works
=no
22566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
22572 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
22573 case "$gl_cv_func_unsetenv_works" in
22581 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
22590 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
22608 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
22624 if test $gl_cv_have_include_next = yes; then
22625 gl_cv_next_wchar_h
='<'wchar.h
'>'
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22628 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22629 if test "${gl_cv_next_wchar_h+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22633 if test $ac_cv_header_wchar_h = yes; then
22638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22639 /* end confdefs.h. */
22643 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22644 *) gl_absname_cpp
="$ac_cpp" ;;
22649 gl_dirsep_regex
='[/\\]'
22652 gl_dirsep_regex
='\/'
22655 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22656 gl_header_literal_regex
=`echo 'wchar.h' \
22657 | sed -e "$gl_make_literal_regex_sed"`
22658 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22665 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22666 sed -n "$gl_absolute_header_sed"`
22668 gl_header
=$gl_cv_absolute_wchar_h
22669 gl_cv_next_wchar_h
='"'$gl_header'"'
22671 gl_cv_next_wchar_h
='<'wchar.h
'>'
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22677 $as_echo "$gl_cv_next_wchar_h" >&6; }
22679 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
22681 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22683 gl_next_as_first_directive
='<'wchar.h
'>'
22685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22686 gl_next_as_first_directive
=$gl_cv_next_wchar_h
22688 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
22693 if test $ac_cv_header_wchar_h = yes; then
22703 if test $gt_cv_c_wint_t = yes; then
22711 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
22712 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22714 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22715 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22716 $as_echo_n "(cached) " >&6
22718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22719 /* end confdefs.h. */
22721 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22723 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22724 included before <wchar.h>. */
22725 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22726 # include <stddef.h>
22727 # include <stdio.h>
22741 if ac_fn_c_try_compile
"$LINENO"; then :
22742 eval "$as_gl_Symbol=yes"
22744 eval "$as_gl_Symbol=no"
22746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22748 eval ac_res
=\$
$as_gl_Symbol
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22750 $as_echo "$ac_res" >&6; }
22751 eval as_val
=\$
$as_gl_Symbol
22752 if test "x$as_val" = x
""yes; then :
22753 cat >>confdefs.h
<<_ACEOF
22754 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22757 eval ac_cv_have_decl_
$gl_func=yes
22767 if test $ac_cv_func_iswcntrl = yes; then
22775 if test $gt_cv_c_wint_t = yes; then
22791 if test $gl_cv_have_include_next = yes; then
22792 gl_cv_next_wctype_h
='<'wctype.h
'>'
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
22795 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
22796 if test "${gl_cv_next_wctype_h+set}" = set; then :
22797 $as_echo_n "(cached) " >&6
22800 if test $ac_cv_header_wctype_h = yes; then
22805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h. */
22807 #include <wctype.h>
22810 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22811 *) gl_absname_cpp
="$ac_cpp" ;;
22816 gl_dirsep_regex
='[/\\]'
22819 gl_dirsep_regex
='\/'
22822 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22823 gl_header_literal_regex
=`echo 'wctype.h' \
22824 | sed -e "$gl_make_literal_regex_sed"`
22825 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22832 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22833 sed -n "$gl_absolute_header_sed"`
22835 gl_header
=$gl_cv_absolute_wctype_h
22836 gl_cv_next_wctype_h
='"'$gl_header'"'
22838 gl_cv_next_wctype_h
='<'wctype.h
'>'
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
22844 $as_echo "$gl_cv_next_wctype_h" >&6; }
22846 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
22848 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22850 gl_next_as_first_directive
='<'wctype.h
'>'
22852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22853 gl_next_as_first_directive
=$gl_cv_next_wctype_h
22855 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
22860 if test $ac_cv_header_wctype_h = yes; then
22861 if test $ac_cv_func_iswcntrl = yes; then
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
22863 $as_echo_n "checking whether iswcntrl works... " >&6; }
22864 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22868 if test "$cross_compiling" = yes; then :
22869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h. */
22871 #include <stdlib.h>
22872 #if __GNU_LIBRARY__ == 1
22873 Linux libc5 i18n is broken.
22883 if ac_fn_c_try_compile
"$LINENO"; then :
22884 gl_cv_func_iswcntrl_works
="guessing yes"
22886 gl_cv_func_iswcntrl_works
="guessing no"
22888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22894 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22895 included before <wchar.h>.
22896 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22897 must be included before <wchar.h>. */
22898 #include <stddef.h>
22902 #include <wctype.h>
22903 int main () { return iswprint ('x') == 0; }
22906 if ac_fn_c_try_run
"$LINENO"; then :
22907 gl_cv_func_iswcntrl_works
=yes
22909 gl_cv_func_iswcntrl_works
=no
22911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
22918 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
22926 case "$gl_cv_func_iswcntrl_works" in
22927 *yes) REPLACE_ISWCNTRL
=0 ;;
22928 *) REPLACE_ISWCNTRL
=1 ;;
22932 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
22936 if test $REPLACE_ISWCNTRL = 1; then
22939 for ac_func
in towlower
22941 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
22942 if test "x$ac_cv_func_towlower" = x
""yes; then :
22943 cat >>confdefs.h
<<_ACEOF
22944 #define HAVE_TOWLOWER 1
22950 if test $ac_cv_func_towlower = yes; then
22953 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22954 included before <wchar.h>.
22955 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22956 must be included before <wchar.h>. */
22957 #include <stddef.h>
22962 # include <wctype.h>
22966 if test "x$ac_cv_have_decl_towlower" = x
""yes; then :
22972 cat >>confdefs.h
<<_ACEOF
22973 #define HAVE_DECL_TOWLOWER $ac_have_decl
22976 if test $ac_cv_have_decl_towlower = yes; then
22985 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
22990 $as_echo_n "checking for wctype_t... " >&6; }
22991 if test "${gl_cv_type_wctype_t+set}" = set; then :
22992 $as_echo_n "(cached) " >&6
22994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22995 /* end confdefs.h. */
22996 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22997 included before <wchar.h>.
22998 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22999 must be included before <wchar.h>. */
23000 #include <stddef.h>
23005 # include <wctype.h>
23017 if ac_fn_c_try_compile
"$LINENO"; then :
23018 gl_cv_type_wctype_t
=yes
23020 gl_cv_type_wctype_t
=no
23022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23026 $as_echo "$gl_cv_type_wctype_t" >&6; }
23027 if test $gl_cv_type_wctype_t = no
; then
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23032 $as_echo_n "checking for wctrans_t... " >&6; }
23033 if test "${gl_cv_type_wctrans_t+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23038 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23039 included before <wchar.h>.
23040 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23041 must be included before <wchar.h>. */
23042 #include <stddef.h>
23046 #include <wctype.h>
23057 if ac_fn_c_try_compile
"$LINENO"; then :
23058 gl_cv_type_wctrans_t
=yes
23060 gl_cv_type_wctrans_t
=no
23062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23066 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23067 if test $gl_cv_type_wctrans_t = no
; then
23072 for gl_func
in wctype iswctype wctrans towctrans
; do
23073 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23075 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23076 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
23077 $as_echo_n "(cached) " >&6
23079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23084 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23085 included before <wchar.h>. */
23086 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23087 # include <stddef.h>
23088 # include <stdio.h>
23090 # include <wchar.h>
23092 #include <wctype.h>
23103 if ac_fn_c_try_compile
"$LINENO"; then :
23104 eval "$as_gl_Symbol=yes"
23106 eval "$as_gl_Symbol=no"
23108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23110 eval ac_res
=\$
$as_gl_Symbol
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23112 $as_echo "$ac_res" >&6; }
23113 eval as_val
=\$
$as_gl_Symbol
23114 if test "x$as_val" = x
""yes; then :
23115 cat >>confdefs.h
<<_ACEOF
23116 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23119 eval ac_cv_have_decl_
$gl_func=yes
23124 # End of code from modules
23145 gl_source_base
='tests'
23146 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
23148 gl_module_indicator_condition
=$gltests_WITNESS
23158 LIBGNU_LIBDEPS
="$gl_libdeps"
23160 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23164 # We don't use automake, but gnulib does. This line lets us generate
23166 am__api_version
='1.11'
23168 # Find a good install program. We prefer a C program (faster),
23169 # so one script is as good as another. But avoid the broken or
23170 # incompatible versions:
23171 # SysV /etc/install, /usr/sbin/install
23172 # SunOS /usr/etc/install
23173 # IRIX /sbin/install
23175 # AmigaOS /C/install, which installs bootblocks on floppy discs
23176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
23178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23179 # OS/2's system install, which has a completely different semantic
23180 # ./install, which can be erroneously created by make from ./install.sh.
23181 # Reject install programs that cannot install multiple files.
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
23183 $as_echo_n "checking for a BSD-compatible install... " >&6; }
23184 if test -z "$INSTALL"; then
23185 if test "${ac_cv_path_install+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23189 for as_dir
in $PATH
23192 test -z "$as_dir" && as_dir
=.
23193 # Account for people who put trailing slashes in PATH elements.
23194 case $as_dir/ in #((
23195 .
/ | .
// |
/[cC
]/* | \
23196 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
23197 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
23200 # OSF1 and SCO ODT 3.0 have their own names for install.
23201 # Don't use installbsd from OSF since it installs stuff as root
23203 for ac_prog
in ginstall scoinst
install; do
23204 for ac_exec_ext
in '' $ac_executable_extensions; do
23205 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
23206 if test $ac_prog = install &&
23207 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
23208 # AIX install. It has an incompatible calling convention.
23210 elif test $ac_prog = install &&
23211 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
23212 # program-specific install script used by HP pwplus--don't use.
23215 rm -rf conftest.one conftest.two conftest.dir
23216 echo one
> conftest.one
23217 echo two
> conftest.two
23219 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
23220 test -s conftest.one
&& test -s conftest.two
&&
23221 test -s conftest.dir
/conftest.one
&&
23222 test -s conftest.dir
/conftest.two
23224 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
23237 rm -rf conftest.one conftest.two conftest.dir
23240 if test "${ac_cv_path_install+set}" = set; then
23241 INSTALL
=$ac_cv_path_install
23243 # As a last resort, use the slow shell script. Don't cache a
23244 # value for INSTALL within a source directory, because that will
23245 # break other packages using the cache if that directory is
23246 # removed, or if the value is a relative name.
23247 INSTALL
=$ac_install_sh
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
23251 $as_echo "$INSTALL" >&6; }
23253 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23254 # It thinks the first close brace ends the variable substitution.
23255 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
23257 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
23259 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23262 $as_echo_n "checking whether build environment is sane... " >&6; }
23265 echo timestamp
> conftest.
file
23266 # Reject unsafe characters in $srcdir or the absolute working directory
23267 # name. Accept space and tab only in the latter.
23271 *[\\\"\
#\$\&\'\`$am_lf]*)
23272 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
23275 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
23276 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23279 # Do `set' in a subshell so we don't clobber the current shell's
23280 # arguments. Must try -L first in case configure is actually a
23281 # symlink; some systems play weird games with the mod time of symlinks
23282 # (eg FreeBSD returns the mod time of the symlink's containing
23285 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
23286 if test "$*" = "X"; then
23288 set X
`ls -t "$srcdir/configure" conftest.file`
23290 rm -f conftest.
file
23291 if test "$*" != "X $srcdir/configure conftest.file" \
23292 && test "$*" != "X conftest.file $srcdir/configure"; then
23294 # If neither matched, then we have a broken ls. This can happen
23295 # if, for instance, CONFIG_SHELL is bash and it inherits a
23296 # broken ls alias from the environment. This has actually
23297 # happened. Such a system could not be considered "sane".
23298 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
23299 alias in your environment" "$LINENO" 5
23302 test "$2" = conftest.
file
23308 as_fn_error
"newly created file is older than distributed files!
23309 Check your system clock" "$LINENO" 5
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23312 $as_echo "yes" >&6; }
23313 test "$program_prefix" != NONE
&&
23314 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
23315 # Use a double $ so make ignores it.
23316 test "$program_suffix" != NONE
&&
23317 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
23318 # Double any \ or $.
23319 # By default was `s,x,x', remove it if useless.
23320 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
23321 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
23323 # expand $ac_aux_dir to an absolute path
23324 am_aux_dir
=`cd $ac_aux_dir && pwd`
23326 if test x
"${MISSING+set}" != xset
; then
23327 case $am_aux_dir in
23329 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
23331 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
23334 # Use eval to expand $SHELL
23335 if eval "$MISSING --run true"; then
23336 am_missing_run
="$MISSING --run "
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23340 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23343 if test x
"${install_sh}" != xset
; then
23344 case $am_aux_dir in
23346 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
23348 install_sh
="\${SHELL} $am_aux_dir/install-sh"
23352 # Installed binaries are usually stripped using `strip' when the user
23353 # run `make install-strip'. However `strip' might not be the right
23354 # tool to use in cross-compilation environments, therefore Automake
23355 # will honor the `STRIP' environment variable to overrule this program.
23356 if test "$cross_compiling" != no
; then
23357 if test -n "$ac_tool_prefix"; then
23358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23359 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23361 $as_echo_n "checking for $ac_word... " >&6; }
23362 if test "${ac_cv_prog_STRIP+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23365 if test -n "$STRIP"; then
23366 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
23368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23369 for as_dir
in $PATH
23372 test -z "$as_dir" && as_dir
=.
23373 for ac_exec_ext
in '' $ac_executable_extensions; do
23374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23375 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
23376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23385 STRIP
=$ac_cv_prog_STRIP
23386 if test -n "$STRIP"; then
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23388 $as_echo "$STRIP" >&6; }
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23391 $as_echo "no" >&6; }
23396 if test -z "$ac_cv_prog_STRIP"; then
23398 # Extract the first word of "strip", so it can be a program name with args.
23399 set dummy strip
; ac_word
=$2
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23401 $as_echo_n "checking for $ac_word... " >&6; }
23402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23405 if test -n "$ac_ct_STRIP"; then
23406 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
23408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23409 for as_dir
in $PATH
23412 test -z "$as_dir" && as_dir
=.
23413 for ac_exec_ext
in '' $ac_executable_extensions; do
23414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23415 ac_cv_prog_ac_ct_STRIP
="strip"
23416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23425 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
23426 if test -n "$ac_ct_STRIP"; then
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
23428 $as_echo "$ac_ct_STRIP" >&6; }
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23431 $as_echo "no" >&6; }
23434 if test "x$ac_ct_STRIP" = x
; then
23437 case $cross_compiling:$ac_tool_warned in
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23441 ac_tool_warned
=yes ;;
23446 STRIP
="$ac_cv_prog_STRIP"
23450 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
23454 [\\/$
]* | ?
:[\\/]*) ;;
23455 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
23458 for ac_prog
in gawk mawk nawk
awk
23460 # Extract the first word of "$ac_prog", so it can be a program name with args.
23461 set dummy
$ac_prog; ac_word
=$2
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23463 $as_echo_n "checking for $ac_word... " >&6; }
23464 if test "${ac_cv_prog_AWK+set}" = set; then :
23465 $as_echo_n "(cached) " >&6
23467 if test -n "$AWK"; then
23468 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
23470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23471 for as_dir
in $PATH
23474 test -z "$as_dir" && as_dir
=.
23475 for ac_exec_ext
in '' $ac_executable_extensions; do
23476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23477 ac_cv_prog_AWK
="$ac_prog"
23478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23487 AWK
=$ac_cv_prog_AWK
23488 if test -n "$AWK"; then
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
23490 $as_echo "$AWK" >&6; }
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23493 $as_echo "no" >&6; }
23497 test -n "$AWK" && break
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23501 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
23503 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23504 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
23505 $as_echo_n "(cached) " >&6
23507 cat >conftest.
make <<\_ACEOF
23510 @
echo '@@@%%%=$(MAKE)=@@@%%%'
23512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
23514 *@@@
%%%=?
*=@@@
%%%*)
23515 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
23517 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
23519 rm -f conftest.
make
23521 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23523 $as_echo "yes" >&6; }
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23527 $as_echo "no" >&6; }
23528 SET_MAKE
="MAKE=${MAKE-make}"
23531 rm -rf .tst
2>/dev
/null
23532 mkdir .tst
2>/dev
/null
23533 if test -d .tst
; then
23538 rmdir .tst
2>/dev
/null
23540 DEPDIR
="${am__leading_dot}deps"
23542 ac_config_commands
="$ac_config_commands depfiles"
23545 am_make
=${MAKE-make}
23546 cat > confinc
<< 'END'
23548 @
echo this is the am__doit target
23551 # If we don't find an include directive, just comment out the code.
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
23553 $as_echo_n "checking for style of include used by $am_make... " >&6; }
23557 # First try GNU make style include.
23558 echo "include confinc" > confmf
23559 # Ignore all kinds of additional output from `make'.
23560 case `$am_make -s -f confmf 2> /dev/null` in #(
23561 *the\ am__doit\ target
*)
23562 am__include
=include
23567 # Now try BSD make style include.
23568 if test "$am__include" = "#"; then
23569 echo '.include "confinc"' > confmf
23570 case `$am_make -s -f confmf 2> /dev/null` in #(
23571 *the\ am__doit\ target
*)
23572 am__include
=.include
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
23581 $as_echo "$_am_result" >&6; }
23582 rm -f confinc confmf
23584 # Check whether --enable-dependency-tracking was given.
23585 if test "${enable_dependency_tracking+set}" = set; then :
23586 enableval
=$enable_dependency_tracking;
23589 if test "x$enable_dependency_tracking" != xno
; then
23590 am_depcomp
="$ac_aux_dir/depcomp"
23593 if test "x$enable_dependency_tracking" != xno; then
23602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
23603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23604 # is not polluted with repeated "-I."
23605 am__isrc
=' -I$(srcdir)'
23606 # test to see if srcdir already configured
23607 if test -f $srcdir/config.status
; then
23608 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
23612 # test whether we have cygpath
23613 if test -z "$CYGPATH_W"; then
23614 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
23615 CYGPATH_W
='cygpath -w'
23622 # Define the identity of the package.
23624 VERSION
=UNUSED-VERSION
23627 # Some tools Automake needs.
23629 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23632 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
23635 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23638 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
23641 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
23643 # We need awk for the "check" target. The system "awk" is bad on
23645 # Always define AMTAR for backward compatibility.
23647 AMTAR
=${AMTAR-"${am_missing_run}tar"}
23649 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
23654 depcc
="$CC" am_compiler_list
=
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23657 $as_echo_n "checking dependency style of $depcc... " >&6; }
23658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23661 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23662 # We make a subdir and do the tests there. Otherwise we can end up
23663 # making bogus files that we don't know about and never remove. For
23664 # instance it was reported that on HP-UX the gcc test will end up
23665 # making a dummy file named `D' -- because `-MD' means `put the output
23668 # Copy depcomp to subdir because otherwise we won't find it if we're
23669 # using a relative directory.
23670 cp "$am_depcomp" conftest.dir
23672 # We will build objects and dependencies in a subdirectory because
23673 # it helps to detect inapplicable dependency modes. For instance
23674 # both Tru64's cc and ICC support -MD to output dependencies as a
23675 # side effect of compilation, but ICC will put the dependencies in
23676 # the current directory while Tru64 will put them in the object
23680 am_cv_CC_dependencies_compiler_type
=none
23681 if test "$am_compiler_list" = ""; then
23682 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23684 am__universal
=false
23685 case " $depcc " in #(
23686 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
23689 for depmode
in $am_compiler_list; do
23690 # Setup a source with many dependencies, because some compilers
23691 # like to wrap large dependency lists on column 80 (with \), and
23692 # we should not choose a depcomp mode which is confused by this.
23694 # We need to recreate these files for each test, as the compiler may
23695 # overwrite some of them when testing with obscure command lines.
23696 # This happens at least with the AIX C compiler.
23698 for i
in 1 2 3 4 5 6; do
23699 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
23700 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23701 # Solaris 8's {/usr,}/bin/sh.
23702 touch sub
/conftst
$i.h
23704 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23706 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23707 # mode. It turns out that the SunPro C++ compiler does not properly
23708 # handle `-M -o', and we need to detect this. Also, some Intel
23709 # versions had trouble with output in subdirs
23710 am__obj
=sub
/conftest.
${OBJEXT-o}
23711 am__minus_obj
="-o $am__obj"
23714 # This depmode causes a compiler race in universal mode.
23715 test "$am__universal" = false ||
continue
23718 # after this tag, mechanisms are not by side-effect, so they'll
23719 # only be used when explicitly requested
23720 if test "x$enable_dependency_tracking" = xyes
; then
23726 msvisualcpp | msvcmsys
)
23727 # This compiler won't grok `-c -o', but also, the minuso test has
23728 # not run yet. These depmodes are late enough in the game, and
23729 # so weak that their functioning should not be impacted.
23730 am__obj
=conftest.
${OBJEXT-o}
23735 if depmode
=$depmode \
23736 source=sub
/conftest.c object
=$am__obj \
23737 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
23738 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
23739 >/dev
/null
2>conftest.err
&&
23740 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
23741 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
23742 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
23743 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
23744 # icc doesn't choke on unknown options, it will just issue warnings
23745 # or remarks (even with -Werror). So we grep stderr for any message
23746 # that says an option was ignored or not supported.
23747 # When given -MP, icc 7.0 and 7.1 complain thusly:
23748 # icc: Command line warning: ignoring option '-M'; no argument required
23749 # The diagnosis changed in icc 8.0:
23750 # icc: Command line remark: option '-MP' not supported
23751 if (grep 'ignoring option' conftest.err ||
23752 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
23753 am_cv_CC_dependencies_compiler_type
=$depmode
23760 rm -rf conftest.dir
23762 am_cv_CC_dependencies_compiler_type
=none
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
23767 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
23768 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
23771 test "x$enable_dependency_tracking" != xno \
23772 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
23773 am__fastdepCC_TRUE
=
23774 am__fastdepCC_FALSE
='#'
23776 am__fastdepCC_TRUE
='#'
23777 am__fastdepCC_FALSE
=
23783 # --------------------- #
23784 # Checks for programs. #
23785 # --------------------- #
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
23789 $as_echo_n "checking whether ln -s works... " >&6; }
23791 if test "$LN_S" = "ln -s"; then
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23793 $as_echo "yes" >&6; }
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
23796 $as_echo "no, using $LN_S" >&6; }
23799 if test -n "$ac_tool_prefix"; then
23800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23801 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23803 $as_echo_n "checking for $ac_word... " >&6; }
23804 if test "${ac_cv_prog_RANLIB+set}" = set; then :
23805 $as_echo_n "(cached) " >&6
23807 if test -n "$RANLIB"; then
23808 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
23810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23811 for as_dir
in $PATH
23814 test -z "$as_dir" && as_dir
=.
23815 for ac_exec_ext
in '' $ac_executable_extensions; do
23816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23817 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
23818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23827 RANLIB
=$ac_cv_prog_RANLIB
23828 if test -n "$RANLIB"; then
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
23830 $as_echo "$RANLIB" >&6; }
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23833 $as_echo "no" >&6; }
23838 if test -z "$ac_cv_prog_RANLIB"; then
23839 ac_ct_RANLIB
=$RANLIB
23840 # Extract the first word of "ranlib", so it can be a program name with args.
23841 set dummy ranlib
; ac_word
=$2
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23843 $as_echo_n "checking for $ac_word... " >&6; }
23844 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
23845 $as_echo_n "(cached) " >&6
23847 if test -n "$ac_ct_RANLIB"; then
23848 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
23850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23851 for as_dir
in $PATH
23854 test -z "$as_dir" && as_dir
=.
23855 for ac_exec_ext
in '' $ac_executable_extensions; do
23856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23857 ac_cv_prog_ac_ct_RANLIB
="ranlib"
23858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23867 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
23868 if test -n "$ac_ct_RANLIB"; then
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
23870 $as_echo "$ac_ct_RANLIB" >&6; }
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23873 $as_echo "no" >&6; }
23876 if test "x$ac_ct_RANLIB" = x
; then
23879 case $cross_compiling:$ac_tool_warned in
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23883 ac_tool_warned
=yes ;;
23885 RANLIB
=$ac_ct_RANLIB
23888 RANLIB
="$ac_cv_prog_RANLIB"
23892 if test -n "$ac_tool_prefix"; then
23893 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
23894 set dummy
${ac_tool_prefix}ar; ac_word
=$2
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23896 $as_echo_n "checking for $ac_word... " >&6; }
23897 if test "${ac_cv_prog_AR+set}" = set; then :
23898 $as_echo_n "(cached) " >&6
23900 if test -n "$AR"; then
23901 ac_cv_prog_AR
="$AR" # Let the user override the test.
23903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23904 for as_dir
in $PATH
23907 test -z "$as_dir" && as_dir
=.
23908 for ac_exec_ext
in '' $ac_executable_extensions; do
23909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23910 ac_cv_prog_AR
="${ac_tool_prefix}ar"
23911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23921 if test -n "$AR"; then
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
23923 $as_echo "$AR" >&6; }
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23926 $as_echo "no" >&6; }
23931 if test -z "$ac_cv_prog_AR"; then
23933 # Extract the first word of "ar", so it can be a program name with args.
23934 set dummy
ar; ac_word
=$2
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23936 $as_echo_n "checking for $ac_word... " >&6; }
23937 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
23938 $as_echo_n "(cached) " >&6
23940 if test -n "$ac_ct_AR"; then
23941 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
23943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23944 for as_dir
in $PATH
23947 test -z "$as_dir" && as_dir
=.
23948 for ac_exec_ext
in '' $ac_executable_extensions; do
23949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23950 ac_cv_prog_ac_ct_AR
="ar"
23951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23960 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
23961 if test -n "$ac_ct_AR"; then
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
23963 $as_echo "$ac_ct_AR" >&6; }
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23969 if test "x$ac_ct_AR" = x
; then
23972 case $cross_compiling:$ac_tool_warned in
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23976 ac_tool_warned
=yes ;;
23981 AR
="$ac_cv_prog_AR"
23985 # ---------------------- #
23986 # Checks for libraries. #
23987 # ---------------------- #
23989 ac_config_files
="$ac_config_files Makefile import/Makefile"
23991 ac_config_commands
="$ac_config_commands default"
23993 cat >confcache
<<\_ACEOF
23994 # This file is a shell script that caches the results of configure
23995 # tests run on this system so they can be shared between configure
23996 # scripts and configure runs, see configure's option --config-cache.
23997 # It is not useful on other systems. If it contains results you don't
23998 # want to keep, you may remove or edit it.
24000 # config.status only pays attention to the cache file if you give it
24001 # the --recheck option to rerun configure.
24003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24005 # following values.
24009 # The following way of writing the cache mishandles newlines in values,
24010 # but we know of no workaround that is simple, portable, and efficient.
24011 # So, we kill variables containing newlines.
24012 # Ultrix sh set writes to stderr and can't be redirected directly,
24013 # and sets the high bit in the cache file unless we assign to the vars.
24015 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24016 eval ac_val
=\$
$ac_var
24020 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24024 _ | IFS | as_nl
) ;; #(
24025 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24026 *) { eval $ac_var=; unset $ac_var;} ;;
24032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24033 *${as_nl}ac_space
=\
*)
24034 # `set' does not quote correctly, so add quotes: double-quote
24035 # substitution turns \\\\ into \\, and sed turns \\ into \.
24038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24041 # `set' quotes correctly as required by POSIX, so do not add quotes.
24042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24055 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24056 if test -w "$cache_file"; then
24057 test "x$cache_file" != "x/dev/null" &&
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24059 $as_echo "$as_me: updating cache $cache_file" >&6;}
24060 cat confcache
>$cache_file
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24068 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24069 # Let make expand exec_prefix.
24070 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24072 DEFS
=-DHAVE_CONFIG_H
24076 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24077 # 1. Remove the extension, and $U if already installed.
24078 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24079 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24081 # will be set to the directory where LIBOBJS objects are built.
24082 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24083 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24085 LIBOBJS
=$ac_libobjs
24087 LTLIBOBJS
=$ac_ltlibobjs
24090 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24091 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
24092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24094 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24095 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24098 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24099 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24102 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
24103 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
24104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24106 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
24107 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
24108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24110 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
24111 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
24112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24114 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
24115 as_fn_error
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
24116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24118 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24119 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24122 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
24123 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
24124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24126 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24127 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24132 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24133 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24136 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24137 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24143 if test -n "$gl_LIBOBJS"; then
24144 # Remove the extension.
24145 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24146 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24147 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24148 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24151 gl_LIBOBJS
=$gl_libobjs
24153 gl_LTLIBOBJS
=$gl_ltlibobjs
24159 if test -n "$gltests_LIBOBJS"; then
24160 # Remove the extension.
24161 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24162 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24163 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24164 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24167 gltests_LIBOBJS
=$gltests_libobjs
24169 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24172 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24173 as_fn_error
"conditional \"AMDEP\" was never defined.
24174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24177 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24180 if test -n "$EXEEXT"; then
24182 am__EXEEXT_FALSE
='#'
24184 am__EXEEXT_TRUE
='#'
24189 : ${CONFIG_STATUS=./config.status}
24191 ac_clean_files_save
=$ac_clean_files
24192 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24194 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24196 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24198 # Generated by $as_me.
24199 # Run this file to recreate the current configuration.
24200 # Compiler output produced by configure, useful for debugging
24201 # configure, is in config.log if it exists.
24204 ac_cs_recheck=false
24207 SHELL=\${CONFIG_SHELL-$SHELL}
24210 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24211 ## -------------------- ##
24212 ## M4sh Initialization. ##
24213 ## -------------------- ##
24215 # Be more Bourne compatible
24216 DUALCASE
=1; export DUALCASE
# for MKS sh
24217 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24220 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24221 # is contrary to our usage. Disable this feature.
24222 alias -g '${1+"$@"}'='"$@"'
24223 setopt NO_GLOB_SUBST
24225 case `(set -o) 2>/dev/null` in #(
24237 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24238 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24241 # Prefer a ksh shell builtin over an external printf program on Solaris,
24242 # but without wasting forks for bash or zsh.
24243 if test -z "$BASH_VERSION$ZSH_VERSION" \
24244 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24245 as_echo='print
-r --'
24246 as_echo_n='print
-rn --'
24247 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24248 as_echo='printf %s
\n'
24249 as_echo_n='printf %s
'
24251 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24252 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24253 as_echo_n='/usr
/ucb
/echo -n'
24255 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24256 as_echo_n_body='eval
24260 expr "X$arg" : "X\\(.*\\)$as_nl";
24261 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24263 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24265 export as_echo_n_body
24266 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24268 export as_echo_body
24269 as_echo='sh
-c $as_echo_body as_echo
'
24272 # The user is always right.
24273 if test "${PATH_SEPARATOR+set}" != set; then
24275 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24276 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24283 # We need space, tab and new line, in precisely that order. Quoting is
24284 # there to prevent editors from complaining about space-tab.
24285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24286 # splitting by setting IFS to empty value.)
24289 # Find who we are. Look in the path if we contain no directory separator.
24291 *[\\/]* ) as_myself=$0 ;;
24292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24293 for as_dir in $PATH
24296 test -z "$as_dir" && as_dir=.
24297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24303 # We did not find ourselves, most probably we were run as `sh COMMAND'
24304 # in which case we are not to be found in the path.
24305 if test "x$as_myself" = x
; then
24308 if test ! -f "$as_myself"; then
24309 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24313 # Unset variables that we do not need and which cause bugs (e.g. in
24314 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24315 # suppresses any "Segmentation fault" message there. '((' could
24316 # trigger a bug in pdksh 5.2.14.
24317 for as_var
in BASH_ENV ENV MAIL MAILPATH
24318 do eval test x\
${$as_var+set} = xset \
24319 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24332 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24335 # as_fn_error ERROR [LINENO LOG_FD]
24336 # ---------------------------------
24337 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24338 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24339 # script with status $?, using 1 if that was 0.
24342 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24344 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24345 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24347 $as_echo "$as_me: error: $1" >&2
24348 as_fn_exit
$as_status
24352 # as_fn_set_status STATUS
24353 # -----------------------
24354 # Set $? to STATUS, without forking.
24355 as_fn_set_status
()
24358 } # as_fn_set_status
24360 # as_fn_exit STATUS
24361 # -----------------
24362 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24366 as_fn_set_status
$1
24372 # Portably unset VAR.
24375 { eval $1=; unset $1;}
24377 as_unset
=as_fn_unset
24378 # as_fn_append VAR VALUE
24379 # ----------------------
24380 # Append the text in VALUE to the end of the definition contained in VAR. Take
24381 # advantage of any shell optimizations that allow amortized linear growth over
24382 # repeated appends, instead of the typical quadratic growth present in naive
24384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24385 eval 'as_fn_append ()
24396 # as_fn_arith ARG...
24397 # ------------------
24398 # Perform arithmetic evaluation on the ARGs, and store the result in the
24399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24400 # must be portable across $(()) and expr.
24401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24402 eval 'as_fn_arith ()
24409 as_val
=`expr "$@" || test $? -eq 1`
24414 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24415 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24421 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24422 as_basename
=basename
24427 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24433 as_me
=`$as_basename -- "$0" ||
24434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24435 X"$0" : 'X\(//\)$' \| \
24436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24438 sed '/^.*\/\([^/][^/]*\)\/*$/{
24452 # Avoid depending upon Character Ranges.
24453 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24454 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24455 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24456 as_cr_digits
='0123456789'
24457 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24459 ECHO_C
= ECHO_N
= ECHO_T
=
24460 case `echo -n x` in #(((((
24462 case `echo 'xy\c'` in
24463 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24465 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24472 rm -f conf$$ conf$$.exe conf$$.
file
24473 if test -d conf$$.dir
; then
24474 rm -f conf$$.dir
/conf$$.
file
24477 mkdir conf$$.dir
2>/dev
/null
24479 if (echo >conf$$.
file) 2>/dev
/null
; then
24480 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24482 # ... but there are two gotchas:
24483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24485 # In both cases, we have to default to `cp -p'.
24486 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24488 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24496 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24497 rmdir conf$$.dir
2>/dev
/null
24502 # Create "$as_dir" as a directory, including parents if necessary.
24507 -*) as_dir
=.
/$as_dir;;
24509 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24513 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24514 *) as_qdir
=$as_dir;;
24516 as_dirs
="'$as_qdir' $as_dirs"
24517 as_dir
=`$as_dirname -- "$as_dir" ||
24518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24519 X"$as_dir" : 'X\(//\)[^/]' \| \
24520 X"$as_dir" : 'X\(//\)$' \| \
24521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24522 $as_echo X"$as_dir" |
24523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24527 /^X\(\/\/\)[^/].*/{
24540 test -d "$as_dir" && break
24542 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24543 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24547 if mkdir
-p .
2>/dev
/null
; then
24548 as_mkdir_p
='mkdir -p "$as_dir"'
24550 test -d .
/-p && rmdir .
/-p
24554 if test -x / >/dev
/null
2>&1; then
24555 as_test_x
='test -x'
24557 if ls -dL / >/dev
/null
2>&1; then
24564 if test -d "$1"; then
24570 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24571 ???[sx]*):;;*)false;;esac;fi
24575 as_executable_p
=$as_test_x
24577 # Sed expression to map a string onto a valid CPP name.
24578 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24580 # Sed expression to map a string onto a valid variable name.
24581 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24585 ## ----------------------------------- ##
24586 ## Main body of $CONFIG_STATUS script. ##
24587 ## ----------------------------------- ##
24589 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24592 # Save the log message, to keep $0 and so on meaningful, and to
24593 # report actual input values of CONFIG_FILES etc. instead of their
24594 # values after options handling.
24596 This file was extended by $as_me, which was
24597 generated by GNU Autoconf 2.64. Invocation command line was
24599 CONFIG_FILES = $CONFIG_FILES
24600 CONFIG_HEADERS = $CONFIG_HEADERS
24601 CONFIG_LINKS = $CONFIG_LINKS
24602 CONFIG_COMMANDS = $CONFIG_COMMANDS
24605 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24610 case $ac_config_files in *"
24611 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24614 case $ac_config_headers in *"
24615 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24620 # Files that config.status was made for.
24621 config_files="$ac_config_files"
24622 config_headers="$ac_config_headers"
24623 config_commands="$ac_config_commands"
24627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24629 \`$as_me' instantiates files and other configuration actions
24630 from templates according to the current configuration. Unless the files
24631 and actions are specified as TAGs, all are instantiated by default.
24633 Usage: $0 [OPTION]... [TAG]...
24635 -h, --help print this help, then exit
24636 -V, --version print version number and configuration settings, then exit
24637 -q, --quiet, --silent
24638 do not print progress messages
24639 -d, --debug don't remove temporary files
24640 --recheck update $as_me by reconfiguring in the same conditions
24641 --file=FILE[:TEMPLATE]
24642 instantiate the configuration file FILE
24643 --header=FILE[:TEMPLATE]
24644 instantiate the configuration header FILE
24646 Configuration files:
24649 Configuration headers:
24652 Configuration commands:
24655 Report bugs to the package provider."
24658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24661 configured by $0, generated by GNU Autoconf 2.64,
24662 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24664 Copyright (C) 2009 Free Software Foundation, Inc.
24665 This config.status script is free software; the Free Software Foundation
24666 gives unlimited permission to copy, distribute and modify it."
24673 test -n "\$AWK" || AWK=awk
24676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24677 # The default lists apply if the user does not specify any file.
24683 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24684 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24695 # Handling of the options.
24696 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24698 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24699 $as_echo "$ac_cs_version"; exit ;;
24700 --debug |
--debu |
--deb |
--de |
--d |
-d )
24702 --file |
--fil |
--fi |
--f )
24705 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24707 as_fn_append CONFIG_FILES
" '$ac_optarg'"
24708 ac_need_defaults
=false
;;
24709 --header |
--heade |
--head |
--hea )
24712 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24714 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
24715 ac_need_defaults
=false
;;
24717 # Conflict between --help and --header
24718 as_fn_error
"ambiguous option: \`$1'
24719 Try \`$0 --help' for more information.";;
24720 --help |
--hel |
-h )
24721 $as_echo "$ac_cs_usage"; exit ;;
24722 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24723 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24726 # This is an error.
24727 -*) as_fn_error
"unrecognized option: \`$1'
24728 Try \`$0 --help' for more information." ;;
24730 *) as_fn_append ac_config_targets
" $1"
24731 ac_need_defaults
=false
;;
24737 ac_configure_extra_args
=
24739 if $ac_cs_silent; then
24741 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24746 if \$ac_cs_recheck; then
24747 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24749 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24750 CONFIG_SHELL='$SHELL'
24751 export CONFIG_SHELL
24756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24761 ## Running $as_me. ##
24767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24771 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24777 # Handling of arguments.
24778 for ac_config_target
in $ac_config_targets
24780 case $ac_config_target in
24781 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
24782 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
24783 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24784 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
24785 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24787 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24792 # If the user did not use the arguments to specify the items to instantiate,
24793 # then the envvar interface is used. Set only those that are not.
24794 # We use the long form for the default assignment because of an extremely
24795 # bizarre bug on SunOS 4.1.3.
24796 if $ac_need_defaults; then
24797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24802 # Have a temporary directory for convenience. Make it in the build tree
24803 # simply because there is no reason against having it here, and in addition,
24804 # creating and moving files from /tmp can sometimes cause problems.
24805 # Hook for its removal unless debugging.
24806 # Note that there is a small window in which the directory will not be cleaned:
24807 # after its creation but before its name has been assigned to `$tmp'.
24811 trap 'exit_status=$?
24812 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24814 trap 'as_fn_exit 1' 1 2 13 15
24816 # Create a (secure) tmp directory for tmp files.
24819 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24820 test -n "$tmp" && test -d "$tmp"
24823 tmp
=.
/conf$$
-$RANDOM
24824 (umask 077 && mkdir
"$tmp")
24825 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
24827 # Set up the scripts for CONFIG_FILES section.
24828 # No need to generate them if there are no CONFIG_FILES.
24829 # This happens for instance with `./config.status config.h'.
24830 if test -n "$CONFIG_FILES"; then
24833 ac_cr
=`echo X | tr X '\015'`
24834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24835 # But we know of no other shell where ac_cr would be empty at this
24836 # point, so we can use a bashism as a fallback.
24837 if test "x$ac_cr" = x
; then
24838 eval ac_cr
=\$
\'\\r
\'
24840 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24844 ac_cs_awk_cr
=$ac_cr
24847 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24852 echo "cat >conf$$subs.awk <<_ACEOF" &&
24853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24855 } >conf$$subs.sh ||
24856 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24859 for ac_last_try in false false false false false :; do
24860 . ./conf$$subs.sh ||
24861 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24863 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24864 if test $ac_delim_n = $ac_delim_num; then
24866 elif $ac_last_try; then
24867 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24869 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24872 rm -f conf$$subs.sh
24874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24875 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24879 s/^/S["/; s
/!.
*/"]=/
24889 s/\(.\{148\}\).*/\1/
24891 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24896 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24903 s/\(.\{148\}\).*/\1/
24905 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24909 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24914 ' <conf$$subs.awk | sed '
24919 ' >>$CONFIG_STATUS || ac_write_fail=1
24920 rm -f conf$$subs.awk
24921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24923 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24924 for (key in S) S_is_set[key] = 1
24930 nfields = split(line, field, "@
")
24932 len = length(field[1])
24933 for (i = 2; i < nfields; i++) {
24935 keylen = length(key)
24936 if (S_is_set[key]) {
24938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24939 len += length(value) + length(field[++i])
24950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24951 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24952 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24955 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24956 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24961 # trailing colons and then remove the whole line if VPATH becomes empty
24962 # (actually we leave an empty line to preserve line numbers).
24963 if test "x
$srcdir" = x.; then
24964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24965 s/:*\$(srcdir):*/:/
24966 s/:*\${srcdir}:*/:/
24968 s/^\([^=]*=[ ]*\):*/\1/
24974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24975 fi # test -n "$CONFIG_FILES"
24977 # Set up the scripts for CONFIG_HEADERS section.
24978 # No need to generate them if there are no CONFIG_HEADERS.
24979 # This happens for instance with `./config.status Makefile'.
24980 if test -n "$CONFIG_HEADERS"; then
24981 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24985 # Transform confdefs.h into an awk script `defines.awk', embedded as
24986 # here-document in config.status, that substitutes the proper values into
24987 # config.h.in to produce config.h.
24989 # Create a delimiter string that does not exist in confdefs.h, to ease
24990 # handling of long lines.
24992 for ac_last_try in false false :; do
24993 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24994 if test -z "$ac_t"; then
24996 elif $ac_last_try; then
24997 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24999 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25003 # For the awk script, D is an array of macro values keyed by name,
25004 # likewise P contains macro parameters if any. Preserve backslash
25005 # newline sequences.
25007 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25009 s/.\{148\}/&'"$ac_delim"'/g
25012 s/^[ ]*#[ ]*define[ ][ ]*/ /
25019 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25021 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25026 D["\
1"]=" \
3\\\\\\n
"\\/p
25028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25033 s/.\{148\}/&'"$ac_delim"'/g
25038 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25041 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25043 ' <confdefs.h | sed '
25044 s/'"$ac_delim"'/"\\\
25045 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25048 for (key in D) D_is_set[key] = 1
25051 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25053 split(line, arg, " ")
25054 if (arg[1] == "#") {
25058 defundef
= substr
(arg
[1], 2)
25061 split(mac1
, mac2
, "(") #)
25063 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25064 if (D_is_set
[macro
]) {
25065 # Preserve the white space surrounding the "#".
25066 print prefix
"define", macro P
[macro
] D
[macro
]
25069 # Replace #undef with comments. This is necessary, for example,
25070 # in the case of _POSIX_SOURCE, which is predefined and required
25071 # on some systems where configure will not decide to define it.
25072 if (defundef
== "undef") {
25073 print
"/*", prefix defundef
, macro
, "*/"
25081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25082 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25083 fi # test -n "$CONFIG_HEADERS"
25086 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25091 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25093 case $ac_mode$ac_tag in
25095 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25096 :[FH
]-) ac_tag
=-:-;;
25097 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25114 -) ac_f
="$tmp/stdin";;
25115 *) # Look for the file first in the build tree, then in the source tree
25116 # (if the path is not absolute). The absolute path cannot be DOS-style,
25117 # because $ac_f cannot contain `:'.
25121 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25123 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25125 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25126 as_fn_append ac_file_inputs
" '$ac_f'"
25129 # Let's still pretend it is `configure' which instantiates (i.e., don't
25130 # use $as_me), people would be surprised to read:
25131 # /* config.h. Generated by config.status. */
25132 configure_input
='Generated from '`
25133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25135 if test x
"$ac_file" != x-
; then
25136 configure_input
="$ac_file. $configure_input"
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25138 $as_echo "$as_me: creating $ac_file" >&6;}
25140 # Neutralize special characters interpreted by sed in replacement strings.
25141 case $configure_input in #(
25142 *\
&* |
*\|
* |
*\\* )
25143 ac_sed_conf_input
=`$as_echo "$configure_input" |
25144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25145 *) ac_sed_conf_input
=$configure_input;;
25149 *:-:* |
*:-) cat >"$tmp/stdin" \
25150 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25155 ac_dir
=`$as_dirname -- "$ac_file" ||
25156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25157 X"$ac_file" : 'X\(//\)[^/]' \| \
25158 X"$ac_file" : 'X\(//\)$' \| \
25159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25160 $as_echo X"$ac_file" |
25161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25165 /^X\(\/\/\)[^/].*/{
25178 as_dir
="$ac_dir"; as_fn_mkdir_p
25182 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25184 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25185 # A ".." for each directory in $ac_dir_suffix.
25186 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25187 case $ac_top_builddir_sub in
25188 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25189 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25192 ac_abs_top_builddir
=$ac_pwd
25193 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25194 # for backward compatibility:
25195 ac_top_builddir
=$ac_top_build_prefix
25198 .
) # We are building in place.
25200 ac_top_srcdir
=$ac_top_builddir_sub
25201 ac_abs_top_srcdir
=$ac_pwd ;;
25202 [\\/]* | ?
:[\\/]* ) # Absolute name.
25203 ac_srcdir
=$srcdir$ac_dir_suffix;
25204 ac_top_srcdir
=$srcdir
25205 ac_abs_top_srcdir
=$srcdir ;;
25206 *) # Relative name.
25207 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25208 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25209 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25211 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25221 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25222 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25224 ac_MKDIR_P
=$MKDIR_P
25226 [\\/$
]* | ?
:[\\/]* ) ;;
25227 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25232 # If the template does not know about datarootdir, expand it.
25233 # FIXME: This hack should be removed a few years after 2.60.
25234 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25245 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25246 *datarootdir
*) ac_datarootdir_seen
=yes;;
25247 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25249 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25252 ac_datarootdir_hack='
25253 s&@datadir@&$datadir&g
25254 s&@docdir@&$docdir&g
25255 s&@infodir@&$infodir&g
25256 s&@localedir@&$localedir&g
25257 s&@mandir@&$mandir&g
25258 s&\\\${datarootdir}&$datarootdir&g' ;;
25262 # Neutralize VPATH when `$srcdir' = `.'.
25263 # Shell code in configure.ac might set extrasub.
25264 # FIXME: do we really want to maintain this feature?
25265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25266 ac_sed_extra="$ac_vpsub
25269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25271 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25272 s|@configure_input@|
$ac_sed_conf_input|
;t t
25273 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25274 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25275 s
&@srcdir@
&$ac_srcdir&;t t
25276 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25277 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25278 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25279 s
&@builddir@
&$ac_builddir&;t t
25280 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25281 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25282 s
&@INSTALL@
&$ac_INSTALL&;t t
25283 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25284 $ac_datarootdir_hack
25286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
25287 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25293 which seems to be undefined. Please make sure it is defined." >&5
25294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25295 which seems to be undefined. Please make sure it is defined." >&2;}
25299 -) cat "$tmp/out" && rm -f "$tmp/out";;
25300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25302 || as_fn_error "could not create $ac_file" "$LINENO" 5
25308 if test x"$ac_file" != x-; then
25310 $as_echo "/* $configure_input */" \
25311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25312 } >"$tmp/config.h" \
25313 || as_fn_error "could not create $ac_file" "$LINENO" 5
25314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25319 mv "$tmp/config.h" "$ac_file" \
25320 || as_fn_error "could not create $ac_file" "$LINENO" 5
25323 $as_echo "/* $configure_input */" \
25324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25325 || as_fn_error "could not create -" "$LINENO" 5
25327 # Compute "$ac_file"'s index
in $config_headers.
25330 for _am_header
in $config_headers :; do
25331 case $_am_header in
25332 $_am_arg |
$_am_arg:* )
25335 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25338 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25339 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25340 X"$_am_arg" : 'X\(//\)[^/]' \| \
25341 X"$_am_arg" : 'X\(//\)$' \| \
25342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25343 $as_echo X"$_am_arg" |
25344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25348 /^X\(\/\/\)[^/].*/{
25360 s/.*/./; q'`/stamp-h
$_am_stamp_count
25363 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25364 $as_echo "$as_me: executing $ac_file commands" >&6;}
25369 case $ac_file$ac_mode in
25370 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25371 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25372 # are listed without --file. Let's play safe and only enable the eval
25373 # if we detect the quoting.
25374 case $CONFIG_FILES in
25375 *\'*) eval set x
"$CONFIG_FILES" ;;
25376 *) set x
$CONFIG_FILES ;;
25381 # Strip MF so we end up with the name of the file.
25382 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25383 # Check whether this is an Automake generated Makefile or not.
25384 # We used to match only the files named `Makefile.in', but
25385 # some people rename them; so instead we look at the file content.
25386 # Grep'ing the first line is not enough: some people post-process
25387 # each Makefile.in and add a new line on top of each file to say so.
25388 # Grep'ing the whole file is not good either: AIX grep has a line
25389 # limit of 2048, but all sed's we know have understand at least 4000.
25390 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25391 dirpart
=`$as_dirname -- "$mf" ||
25392 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25393 X"$mf" : 'X\(//\)[^/]' \| \
25394 X"$mf" : 'X\(//\)$' \| \
25395 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25401 /^X\(\/\/\)[^/].*/{
25417 # Extract the definition of DEPDIR, am__include, and am__quote
25418 # from the Makefile without running `make'.
25419 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25420 test -z "$DEPDIR" && continue
25421 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25422 test -z "am__include" && continue
25423 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25424 # When using ansi2knr, U may be empty or an underscore; expand it
25425 U
=`sed -n 's/^U = //p' < "$mf"`
25426 # Find all dependency output files, they are included files with
25427 # $(DEPDIR) in their names. We invoke sed twice because it is the
25428 # simplest approach to changing $(DEPDIR) to its actual value in the
25430 for file in `sed -n "
25431 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25432 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25433 # Make sure the directory exists.
25434 test -f "$dirpart/$file" && continue
25435 fdir
=`$as_dirname -- "$file" ||
25436 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25437 X"$file" : 'X\(//\)[^/]' \| \
25438 X"$file" : 'X\(//\)$' \| \
25439 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25440 $as_echo X"$file" |
25441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25445 /^X\(\/\/\)[^/].*/{
25458 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25459 # echo "creating $dirpart/$file"
25460 echo '# dummy' > "$dirpart/$file"
25466 case x
$CONFIG_HEADERS in
25467 xconfig.h
:config.
in)
25478 ac_clean_files
=$ac_clean_files_save
25480 test $ac_write_fail = 0 ||
25481 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25484 # configure is writing to config.log, and then calls config.status.
25485 # config.status does its own redirection, appending to config.log.
25486 # Unfortunately, on DOS this fails, as config.log is still kept open
25487 # by configure, so config.status won't be able to write to it; its
25488 # output is simply discarded. So we exec the FD to /dev/null,
25489 # effectively closing config.log, so it can be properly (re)opened and
25490 # appended to by config.status. When coming back to configure, we
25491 # need to make the FD available again.
25492 if test "$no_create" != yes; then
25494 ac_config_status_args
=
25495 test "$silent" = yes &&
25496 ac_config_status_args
="$ac_config_status_args --quiet"
25498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25501 # would make configure fail if this is the last instruction.
25502 $ac_cs_success || as_fn_exit $?
25504 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25506 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}