+2017-07-13 Bruno Haible <bruno@clisp.org>
+
+ Improve cross-compilation guesses for native Windows.
+ * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
+ Windows.
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
+ * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
+ * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
+ * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
+ * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
+ * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
+ * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
+ * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
+ * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
+ * m4/dup.m4 (gl_FUNC_DUP): Likewise.
+ * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
+ * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
+ * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
+ * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
+ * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
+ * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
+ * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
+ * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
+ * m4/float_h.m4 (gl_FLOAT_H): Likewise.
+ * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
+ * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
+ * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
+ * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
+ * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
+ * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
+ * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
+ * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
+ * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
+ * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
+ * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
+ * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
+ * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
+ * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
+ * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
+ * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
+ * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
+ * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
+ * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
+ * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
+ * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
+ * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
+ * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
+ * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
+ * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
+ * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
+ * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
+ * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
+ * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
+ * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
+ * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
+ * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
+ * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
+ * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
+ * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
+ * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
+ * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
+ * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
+ * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
+ * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
+ * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
+ * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
+ * m4/modf.m4 (gl_FUNC_MODF): Likewise.
+ * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
+ * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
+ * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
+ * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
+ * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
+ * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
+ * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
+ * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
+ * m4/regex.m4 (gl_REGEX): Likewise.
+ * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
+ * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
+ gl_FUNC_REMAINDERF_WORKS): Likewise.
+ * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
+ gl_FUNC_REMAINDERL_WORKS): Likewise.
+ * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
+ * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
+ * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
+ * m4/round.m4 (gl_FUNC_ROUND): Likewise.
+ * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
+ * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
+ * m4/signbit.m4 (gl_SIGNBIT): Likewise.
+ * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
+ * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
+ * m4/stdint.m4 (gl_STDINT_H): Likewise.
+ * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
+ * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
+ * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
+ * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
+ * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
+ * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
+ * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
+ * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+ * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
+ * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
+ * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
+ * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
+ * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
+ * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
+ * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
+ * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
+ * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
+ Likewise.
+ * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
+ * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
+ Windows. Enable also on Autoconf 2.70.
+ * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
+ gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
+ gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
+ gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
+ gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
+ gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
+ for native Windows.
+ (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
+ gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
+
2017-07-13 Bruno Haible <bruno@clisp.org>
Improve cross-compilation guesses for native Windows.
-# btowc.m4 serial 10
+# btowc.m4 serial 11
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case "$host_os" in
# Guess no on Cygwin.
cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_btowc_nul="guessing yes" ;;
# Guess yes otherwise.
*) gl_cv_func_btowc_nul="guessing yes" ;;
esac
dnl is present.
changequote(,)dnl
case "$host_os" in
- # Guess no on IRIX.
- irix*) gl_cv_func_btowc_eof="guessing no" ;;
- # Guess yes otherwise.
- *) gl_cv_func_btowc_eof="guessing yes" ;;
+ # Guess no on IRIX.
+ irix*) gl_cv_func_btowc_eof="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_btowc_eof="guessing yes" ;;
+ # Guess yes otherwise.
+ *) gl_cv_func_btowc_eof="guessing yes" ;;
esac
changequote([,])dnl
if test $LOCALE_FR != none; then
# Written by Paul Eggert.
-# serial 15
+# serial 16
AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
[
]])],
[ac_cv_sys_stack_overflow_works=yes],
[ac_cv_sys_stack_overflow_works=no],
- [ac_cv_sys_stack_overflow_works=cross-compiling])])
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) ac_cv_sys_stack_overflow_works="guessing no" ;;
+ *) ac_cv_sys_stack_overflow_works=cross-compiling ;;
+ esac
+ ])
+ ])
- if test $ac_cv_sys_stack_overflow_works = yes; then
+ if test "$ac_cv_sys_stack_overflow_works" = yes; then
AC_DEFINE([HAVE_STACK_OVERFLOW_HANDLING], [1],
[Define to 1 if extending the stack slightly past the limit causes
a SIGSEGV which can be handled on an alternate stack established
fi
AC_CACHE_CHECK([for precise C stack overflow detection],
- ac_cv_sys_xsi_stack_overflow_heuristic,
+ [ac_cv_sys_xsi_stack_overflow_heuristic],
[AC_RUN_IFELSE([AC_LANG_SOURCE(
[[
#include <unistd.h>
-# calloc.m4 serial 16
+# calloc.m4 serial 17
# Copyright (C) 2004-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
# If we don't know, assume the worst.
*) ac_cv_func_calloc_0_nonnull="guessing no" ;;
esac
-# canonicalize.m4 serial 28
+# canonicalize.m4 serial 29
dnl Copyright (C) 2003-2007, 2009-2017 Free Software Foundation, Inc.
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_realpath_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_realpath_works="guessing no" ;;
esac
-# cbrtf.m4 serial 3
+# cbrtf.m4 serial 4
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_cbrtf_works=yes],
[gl_cv_func_cbrtf_works=no],
[case "$host_os" in
- irix*) gl_cv_func_cbrtf_works="guessing no";;
- *) gl_cv_func_cbrtf_works="guessing yes";;
+ irix*) gl_cv_func_cbrtf_works="guessing no";;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_cbrtf_works="guessing yes";;
+ *) gl_cv_func_cbrtf_works="guessing yes";;
esac
])
])
-# cbrtl.m4 serial 5
+# cbrtl.m4 serial 6
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_cbrtl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_cbrtl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_cbrtl_ieee="guessing no" ;;
esac
[gl_cv_func_cbrtl_works=no],
[case "$host_os" in
openbsd*) gl_cv_func_cbrtl_works="guessing no";;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_cbrtl_works="guessing yes";;
*) gl_cv_func_cbrtl_works="guessing yes";;
esac
])
-# ceil.m4 serial 9
+# ceil.m4 serial 10
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_ceil_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ceil_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_ceil_ieee="guessing no" ;;
esac
-# ceilf.m4 serial 14
+# ceilf.m4 serial 15
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_ceilf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ceilf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_ceilf_ieee="guessing no" ;;
esac
-# ceill.m4 serial 15
+# ceill.m4 serial 16
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_ceill_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ceill_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_ceill_ieee="guessing no" ;;
esac
long double d = 0.3L;]],
[[return (!(ceill (d) == 1)); ]])],
[gl_cv_func_ceill_buggy=no], [gl_cv_func_ceill_buggy=yes],
- [case $host_os in
- openbsd*) gl_cv_func_ceill_buggy="guessing yes";;
- *) gl_cv_func_ceill_buggy="guessing no";;
- esac])
+ [case "$host_os" in
+ openbsd*) gl_cv_func_ceill_buggy="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_ceill_buggy="guessing no" ;;
+ *) gl_cv_func_ceill_buggy="guessing no" ;;
+ esac
+ ])
LIBS="$save_LIBS"
])
case "$gl_cv_func_ceill_buggy" in
-# serial 27
+# serial 28
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2017 Free Software
# From Jim Meyering.
-m4_version_prereq([2.70], [] ,[
-
# This is taken from the following Autoconf patch:
# http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7fbb553727ed7e0e689a17594b58559ecf3ea6e9
AC_DEFUN([AC_FUNC_CHOWN],
[ac_cv_func_chown_works=no],
[case "$host_os" in # ((
# Guess yes on glibc systems.
- *-gnu*) ac_cv_func_chown_works=yes ;;
+ *-gnu*) ac_cv_func_chown_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) ac_cv_func_chown_works="guessing no" ;;
# If we don't know, assume the worst.
- *) ac_cv_func_chown_works=no ;;
+ *) ac_cv_func_chown_works="guessing no" ;;
esac
])
rm -f conftest.chown
])
- if test $ac_cv_func_chown_works = yes; then
- AC_DEFINE([HAVE_CHOWN], [1],
- [Define to 1 if your system has a working `chown' function.])
- fi
+ case "$ac_cv_func_chown_works" in
+ *yes)
+ AC_DEFINE([HAVE_CHOWN], [1],
+ [Define to 1 if your system has a working `chown' function.])
+ ;;
+ esac
])# AC_FUNC_CHOWN
-])
-
AC_DEFUN_ONCE([gl_FUNC_CHOWN],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
fi
dnl Some old systems tried to use uid/gid -1 literally.
- if test $ac_cv_func_chown_works = no; then
- AC_DEFINE([CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE], [1],
- [Define if chown is not POSIX compliant regarding IDs of -1.])
- REPLACE_CHOWN=1
- fi
+ case "$ac_cv_func_chown_works" in
+ *no)
+ AC_DEFINE([CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE], [1],
+ [Define if chown is not POSIX compliant regarding IDs of -1.])
+ REPLACE_CHOWN=1
+ ;;
+ esac
dnl Solaris 9 ignores trailing slash.
dnl FreeBSD 7.2 mishandles trailing slash on symlinks.
-# serial 17
+# serial 18
dnl From Jim Meyering.
dnl
[case "$host_os" in
# Guess yes on glibc systems with Linux kernel.
linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_struct_dirent_d_ino="guessing no" ;;
esac
-# dup.m4 serial 5
+# dup.m4 serial 6
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_DUP],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
m4_ifdef([gl_MSVC_INVAL], [
AC_REQUIRE([gl_MSVC_INVAL])
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
],
[gl_cv_func_dup_works=yes],
[gl_cv_func_dup_works=no],
- [gl_cv_func_dup_works='guessing yes'])
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_dup_works="guessing no" ;;
+ *) gl_cv_func_dup_works="guessing yes" ;;
+ esac
+ ])
])
case "$gl_cv_func_dup_works" in
*yes) ;;
-# exp2.m4 serial 1
+# exp2.m4 serial 2
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_exp2_works=yes],
[gl_cv_func_exp2_works=no],
[case "$host_os" in
- openbsd*) gl_cv_func_exp2_works="guessing no";;
- *) gl_cv_func_exp2_works="guessing yes";;
+ openbsd*) gl_cv_func_exp2_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_exp2_works="guessing yes" ;;
+ *) gl_cv_func_exp2_works="guessing yes" ;;
esac
])
])
-# exp2l.m4 serial 3
+# exp2l.m4 serial 4
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_exp2l_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_exp2l_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_exp2l_ieee="guessing no" ;;
esac
-# expl.m4 serial 9
+# expl.m4 serial 10
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
isnan(expl(-0.4)); ]])],
[gl_cv_func_expl_buggy=no], [gl_cv_func_expl_buggy=yes],
[case $host_os in
- openbsd*) gl_cv_func_expl_buggy="guessing yes";;
- *) gl_cv_func_expl_buggy="guessing no";;
- esac])
+ openbsd*) gl_cv_func_expl_buggy="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_expl_buggy="guessing no" ;;
+ *) gl_cv_func_expl_buggy="guessing no" ;;
+ esac
+ ])
LIBS="$save_LIBS"
])
case "$gl_cv_func_expl_buggy" in
-# expm1.m4 serial 3
+# expm1.m4 serial 4
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_expm1_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_expm1_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_expm1_ieee="guessing no" ;;
esac
-# expm1f.m4 serial 2
+# expm1f.m4 serial 3
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_expm1f_works=yes],
[gl_cv_func_expm1f_works=no],
[case "$host_os" in
- irix*) gl_cv_func_expm1f_works="guessing no";;
- *) gl_cv_func_expm1f_works="guessing yes";;
+ irix*) gl_cv_func_expm1f_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_expm1f_works="guessing yes" ;;
+ *) gl_cv_func_expm1f_works="guessing yes" ;;
esac
])
])
-# exponentl.m4 serial 3
+# exponentl.m4 serial 4
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_LONG_DOUBLE_EXPONENT_LOCATION],
[
AC_REQUIRE([gl_BIGENDIAN])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([where to find the exponent in a 'long double'],
[gl_cv_cc_long_double_expbit0],
[
[gl_cv_cc_long_double_expbit0=`cat conftest.out`],
[gl_cv_cc_long_double_expbit0="unknown"],
[
- dnl When cross-compiling, we don't know. It depends on the
+ dnl When cross-compiling, in general we don't know. It depends on the
dnl ABI and compiler version. There are too many cases.
gl_cv_cc_long_double_expbit0="unknown"
+ case "$host_os" in
+ mingw*) # On native Windows (little-endian), we know the result
+ # in two cases: mingw, MSVC.
+ AC_EGREP_CPP([Known], [
+#ifdef __MINGW32__
+ Known
+#endif
+ ], [gl_cv_cc_long_double_expbit0="word 2 bit 0"])
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ], [gl_cv_cc_long_double_expbit0="word 1 bit 20"])
+ ;;
+ esac
])
rm -f conftest.out
])
-# fabsl.m4 serial 2
+# fabsl.m4 serial 3
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_fabsl_works=yes],
[gl_cv_func_fabsl_works=no],
[case "$host_os" in
- irix*) gl_cv_func_fabsl_works="guessing no";;
- *) gl_cv_func_fabsl_works="guessing yes";;
+ irix*) gl_cv_func_fabsl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_fabsl_works="guessing yes" ;;
+ *) gl_cv_func_fabsl_works="guessing yes" ;;
esac
])
])
-# fchdir.m4 serial 21
+# fchdir.m4 serial 22
dnl Copyright (C) 2006-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_open_directory_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_open_directory_works="guessing no" ;;
esac
-# fcntl-o.m4 serial 4
+# fcntl-o.m4 serial 5
dnl Copyright (C) 2006, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
[AC_REQUIRE([AC_GNU_SOURCE])])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CHECK_HEADERS_ONCE([unistd.h])
AC_CHECK_FUNCS_ONCE([symlink])
AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
*) gl_cv_header_working_fcntl_h='no';;
esac],
- [gl_cv_header_working_fcntl_h=cross-compiling])])
+ [case "$host_os" in
+ # Guess 'no' on native Windows.
+ mingw*) gl_cv_header_working_fcntl_h='no' ;;
+ *) gl_cv_header_working_fcntl_h=cross-compiling ;;
+ esac
+ ])
+ ])
case $gl_cv_header_working_fcntl_h in #(
*O_NOATIME* | no | cross-compiling) ac_val=0;; #(
-# float_h.m4 serial 10
+# float_h.m4 serial 11
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_itold_works="guessing no"],
[gl_cv_func_itold_works="guessing yes"])
;;
- *) gl_cv_func_itold_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_itold_works="guessing yes" ;;
+ *) gl_cv_func_itold_works="guessing yes" ;;
esac
])
])
-# floor.m4 serial 8
+# floor.m4 serial 9
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_floor_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_floor_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_floor_ieee="guessing no" ;;
esac
-# floorf.m4 serial 13
+# floorf.m4 serial 14
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_floorf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_floorf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_floorf_ieee="guessing no" ;;
esac
-# fma.m4 serial 2
+# fma.m4 serial 3
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
}]])],
[gl_cv_func_fma_works=yes],
[gl_cv_func_fma_works=no],
- [dnl Guess no, even on glibc systems.
+ [dnl Guess yes on native Windows with MSVC.
+ dnl Otherwise guess no, even on glibc systems.
gl_cv_func_fma_works="guessing no"
+ case "$host_os" in
+ mingw*)
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ], [gl_cv_func_fma_works="guessing yes"])
+ ;;
+ esac
])
])
LIBS="$save_LIBS"
-# fmaf.m4 serial 3
+# fmaf.m4 serial 4
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
}]])],
[gl_cv_func_fmaf_works=yes],
[gl_cv_func_fmaf_works=no],
- [dnl Guess no, even on glibc systems.
+ [dnl Guess yes on native Windows with MSVC.
+ dnl Otherwise guess no, even on glibc systems.
gl_cv_func_fmaf_works="guessing no"
+ case "$host_os" in
+ mingw*)
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ], [gl_cv_func_fmaf_works="guessing yes"])
+ ;;
+ esac
])
])
LIBS="$save_LIBS"
-# fmal.m4 serial 5
+# fmal.m4 serial 6
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
}]])],
[gl_cv_func_fmal_works=yes],
[gl_cv_func_fmal_works=no],
- [dnl Guess no, even on glibc systems.
+ [dnl Guess yes on native Windows with MSVC.
+ dnl Otherwise guess no, even on glibc systems.
gl_cv_func_fmal_works="guessing no"
+ case "$host_os" in
+ mingw*)
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ], [gl_cv_func_fmal_works="guessing yes"])
+ ;;
+ esac
])
])
LIBS="$save_LIBS"
-# fmod.m4 serial 4
+# fmod.m4 serial 5
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_fmod_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_fmod_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_fmod_ieee="guessing no" ;;
esac
-# fmodf.m4 serial 6
+# fmodf.m4 serial 7
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_fmodf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_fmodf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_fmodf_ieee="guessing no" ;;
esac
-# fmodl.m4 serial 6
+# fmodl.m4 serial 7
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_fmodl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_fmodl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_fmodl_ieee="guessing no" ;;
esac
-# frexp.m4 serial 15
+# frexp.m4 serial 16
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_frexp_works=yes],
[gl_cv_func_frexp_works=no],
[case "$host_os" in
- netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
- *) gl_cv_func_frexp_works="guessing yes";;
+ netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
+ mingw*) # Guess yes with MSVC, no with mingw.
+ AC_EGREP_CPP([Good], [
+#ifdef _MSC_VER
+ Good
+#endif
+ ],
+ [gl_cv_func_frexp_works="guessing yes"],
+ [gl_cv_func_frexp_works="guessing no"])
+ ;;
+ *) gl_cv_func_frexp_works="guessing yes" ;;
esac
])
])
-# frexpf.m4 serial 5
+# frexpf.m4 serial 6
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_frexpf_works=yes],
[gl_cv_func_frexpf_works=no],
[case "$host_os" in
- irix* | mingw*) gl_cv_func_frexpf_works="guessing no";;
- *) gl_cv_func_frexpf_works="guessing yes";;
+ irix*) gl_cv_func_frexpf_works="guessing no" ;;
+ mingw*) # Guess yes with MSVC, no with mingw.
+ AC_EGREP_CPP([Good], [
+#ifdef _MSC_VER
+ Good
+#endif
+ ],
+ [gl_cv_func_frexpf_works="guessing yes"],
+ [gl_cv_func_frexpf_works="guessing no"])
+ ;;
+ *) gl_cv_func_frexpf_works="guessing yes" ;;
esac
])
])
-# ftello.m4 serial 12
+# ftello.m4 serial 13
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case "$host_os" in
# Guess no on Solaris.
solaris*) gl_cv_func_ftello_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ftello_works="guessing yes" ;;
# Guess yes otherwise.
*) gl_cv_func_ftello_works="guessing yes" ;;
esac
-# serial 23
+# serial 24
# Copyright (C) 2001-2003, 2005, 2007, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
case "$host_os" in
# Guess all is fine on glibc systems.
*-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
esac
-# hypot.m4 serial 4
+# hypot.m4 serial 5
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_hypot_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_hypot_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_hypot_ieee="guessing no" ;;
esac
-# hypotf.m4 serial 5
+# hypotf.m4 serial 6
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_hypotf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_hypotf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_hypotf_ieee="guessing no" ;;
esac
[gl_cv_func_hypotf_works=yes],
[gl_cv_func_hypotf_works=no],
[case "$host_os" in
- netbsd* | openbsd*) gl_cv_func_hypotf_works="guessing no";;
- *) gl_cv_func_hypotf_works="guessing yes";;
+ netbsd* | openbsd*) gl_cv_func_hypotf_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_hypotf_works="guessing yes" ;;
+ *) gl_cv_func_hypotf_works="guessing yes" ;;
esac
])
])
-# hypotl.m4 serial 6
+# hypotl.m4 serial 7
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_hypotl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_hypotl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_hypotl_ieee="guessing no" ;;
esac
[gl_cv_func_hypotl_works=yes],
[gl_cv_func_hypotl_works=no],
[case "$host_os" in
- openbsd*) gl_cv_func_hypotl_works="guessing no";;
- *) gl_cv_func_hypotl_works="guessing yes";;
+ openbsd*) gl_cv_func_hypotl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_hypotl_works="guessing yes" ;;
+ *) gl_cv_func_hypotl_works="guessing yes" ;;
esac
])
])
-# ilogb.m4 serial 1
+# ilogb.m4 serial 2
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_ilogb_works=no],
[case "$host_os" in
aix* | openbsd* | netbsd* | solaris*)
- gl_cv_func_ilogb_works="guessing no";;
- *) gl_cv_func_ilogb_works="guessing yes";;
+ gl_cv_func_ilogb_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ilogb_works="guessing yes" ;;
+ *) gl_cv_func_ilogb_works="guessing yes" ;;
esac
])
])
-# ilogbf.m4 serial 1
+# ilogbf.m4 serial 2
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_ilogbf_works=yes],
[gl_cv_func_ilogbf_works=no],
[case "$host_os" in
- openbsd* | netbsd*) gl_cv_func_ilogbf_works="guessing no";;
- *) gl_cv_func_ilogbf_works="guessing yes";;
+ openbsd* | netbsd*)
+ gl_cv_func_ilogbf_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ilogbf_works="guessing yes" ;;
+ *) gl_cv_func_ilogbf_works="guessing yes" ;;
esac
])
])
-# isfinite.m4 serial 15
+# isfinite.m4 serial 16
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
return result;
-}]])], [gl_cv_func_isfinitel_works=yes], [gl_cv_func_isfinitel_works=no],
- [gl_cv_func_isfinitel_works="guessing yes"])
+}]])],
+ [gl_cv_func_isfinitel_works=yes],
+ [gl_cv_func_isfinitel_works=no],
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_isfinitel_works="guessing no" ;;
+ *) gl_cv_func_isfinitel_works="guessing yes" ;;
+ esac
+ ])
])
])
-# isinf.m4 serial 11
+# isinf.m4 serial 12
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
return result;
-}]])], [gl_cv_func_isinfl_works=yes], [gl_cv_func_isinfl_works=no],
- [gl_cv_func_isinfl_works="guessing yes"])
+}]])],
+ [gl_cv_func_isinfl_works=yes],
+ [gl_cv_func_isinfl_works=no],
+ [case "$host_os" in
+ mingw*) # Guess yes on mingw, no on MSVC.
+ AC_EGREP_CPP([Known], [
+#ifdef __MINGW32__
+ Known
+#endif
+ ],
+ [gl_cv_func_isinfl_works="guessing yes"],
+ [gl_cv_func_isinfl_works="guessing no"])
+ ;;
+ *)
+ gl_cv_func_isinfl_works="guessing yes"
+ ;;
+ esac
+ ])
])
])
-# isnanf.m4 serial 14
+# isnanf.m4 serial 15
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_isnanf_works=yes],
[gl_cv_func_isnanf_works=no],
[case "$host_os" in
- irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
- *) gl_cv_func_isnanf_works="guessing yes";;
+ irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
+ mingw*) # Guess yes on mingw, no on MSVC.
+ AC_EGREP_CPP([Known], [
+#ifdef __MINGW32__
+ Known
+#endif
+ ],
+ [gl_cv_func_isnanf_works="guessing yes"],
+ [gl_cv_func_isnanf_works="guessing no"])
+ ;;
+ *) gl_cv_func_isnanf_works="guessing yes" ;;
esac
])
])
-# isnanl.m4 serial 19
+# isnanl.m4 serial 20
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
}]])],
[gl_cv_func_isnanl_works=yes],
[gl_cv_func_isnanl_works=no],
- [gl_cv_func_isnanl_works="guessing yes"])
+ [case "$host_os" in
+ mingw*) # Guess yes on mingw, no on MSVC.
+ AC_EGREP_CPP([Known], [
+#ifdef __MINGW32__
+ Known
+#endif
+ ],
+ [gl_cv_func_isnanl_works="guessing yes"],
+ [gl_cv_func_isnanl_works="guessing no"])
+ ;;
+ *) gl_cv_func_isnanl_works="guessing yes" ;;
+ esac
+ ])
])
])
-# ldexpl.m4 serial 16
+# ldexpl.m4 serial 17
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
changequote(,)dnl
case "$host_os" in
- aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no";;
- *) gl_cv_func_ldexpl_works="guessing yes";;
+ aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ldexpl_works="guessing yes" ;;
+ *) gl_cv_func_ldexpl_works="guessing yes" ;;
esac
changequote([,])dnl
])
-# log.m4 serial 4
+# log.m4 serial 5
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log_ieee="guessing no" ;;
esac
[gl_cv_func_log_works=yes],
[gl_cv_func_log_works=no],
[case "$host_os" in
- osf*) gl_cv_func_log_works="guessing no";;
- *) gl_cv_func_log_works="guessing yes";;
+ osf*) gl_cv_func_log_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log_works="guessing yes" ;;
+ *) gl_cv_func_log_works="guessing yes" ;;
esac
])
])
-# log10.m4 serial 4
+# log10.m4 serial 5
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log10_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log10_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log10_ieee="guessing no" ;;
esac
[gl_cv_func_log10_works=yes],
[gl_cv_func_log10_works=no],
[case "$host_os" in
- osf*) gl_cv_func_log10_works="guessing no";;
- *) gl_cv_func_log10_works="guessing yes";;
+ osf*) gl_cv_func_log10_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log10_works="guessing yes" ;;
+ *) gl_cv_func_log10_works="guessing yes" ;;
esac
])
])
-# log10f.m4 serial 7
+# log10f.m4 serial 8
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log10f_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log10f_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log10f_ieee="guessing no" ;;
esac
[gl_cv_func_log10f_works=yes],
[gl_cv_func_log10f_works=no],
[case "$host_os" in
- osf*) gl_cv_func_log10f_works="guessing no";;
- *) gl_cv_func_log10f_works="guessing yes";;
+ osf*) gl_cv_func_log10f_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log10f_works="guessing yes" ;;
+ *) gl_cv_func_log10f_works="guessing yes" ;;
esac
])
])
-# log10l.m4 serial 4
+# log10l.m4 serial 5
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_log10l_works=yes],
[gl_cv_func_log10l_works=no],
[case "$host_os" in
- aix* | irix* | osf*) gl_cv_func_log10l_works="guessing no";;
- *) gl_cv_func_log10l_works="guessing yes";;
+ aix* | irix* | osf*) gl_cv_func_log10l_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log10l_works="guessing yes" ;;
+ *) gl_cv_func_log10l_works="guessing yes" ;;
esac
])
])
-# log1p.m4 serial 3
+# log1p.m4 serial 4
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log1p_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log1p_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log1p_ieee="guessing no" ;;
esac
-# log1pf.m4 serial 3
+# log1pf.m4 serial 4
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log1pf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log1pf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log1pf_ieee="guessing no" ;;
esac
[gl_cv_func_log1pf_works=yes],
[gl_cv_func_log1pf_works=no],
[case "$host_os" in
- irix*) gl_cv_func_log1pf_works="guessing no";;
- *) gl_cv_func_log1pf_works="guessing yes";;
+ irix*) gl_cv_func_log1pf_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log1pf_works="guessing yes" ;;
+ *) gl_cv_func_log1pf_works="guessing yes" ;;
esac
])
])
-# log1pl.m4 serial 3
+# log1pl.m4 serial 4
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log1pl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log1pl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log1pl_ieee="guessing no" ;;
esac
-# log2.m4 serial 3
+# log2.m4 serial 4
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log2_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log2_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log2_ieee="guessing no" ;;
esac
[gl_cv_func_log2_works=yes],
[gl_cv_func_log2_works=no],
[case "$host_os" in
- cygwin* | osf*) gl_cv_func_log2_works="guessing no";;
- *) gl_cv_func_log2_works="guessing yes";;
+ cygwin* | osf*) gl_cv_func_log2_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log2_works="guessing yes" ;;
+ *) gl_cv_func_log2_works="guessing yes" ;;
esac
])
])
-# log2f.m4 serial 3
+# log2f.m4 serial 4
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_log2f_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log2f_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_log2f_ieee="guessing no" ;;
esac
[gl_cv_func_log2f_works=yes],
[gl_cv_func_log2f_works=no],
[case "$host_os" in
- cygwin* | osf*) gl_cv_func_log2f_works="guessing no";;
- *) gl_cv_func_log2f_works="guessing yes";;
+ cygwin* | osf*) gl_cv_func_log2f_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log2f_works="guessing yes" ;;
+ *) gl_cv_func_log2f_works="guessing yes" ;;
esac
])
])
-# log2l.m4 serial 1
+# log2l.m4 serial 2
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_log2l_works=yes],
[gl_cv_func_log2l_works=no],
[case "$host_os" in
- osf*) gl_cv_func_log2l_works="guessing no";;
- *) gl_cv_func_log2l_works="guessing yes";;
+ osf*) gl_cv_func_log2l_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_log2l_works="guessing yes" ;;
+ *) gl_cv_func_log2l_works="guessing yes" ;;
esac
])
])
-# logb.m4 serial 6
+# logb.m4 serial 7
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_logb_works=yes],
[gl_cv_func_logb_works=no],
[case "$host_os" in
- *gnu* | solaris* | cygwin*) gl_cv_func_logb_works="guessing no";;
- *) gl_cv_func_logb_works="guessing yes";;
+ *gnu* | solaris* | cygwin*) gl_cv_func_logb_works="guessing no" ;;
+ mingw*) # Guess yes on MSVC, no on mingw.
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_logb_works="guessing yes"],
+ [gl_cv_func_logb_works="guessing no"])
+ ;;
+ *) gl_cv_func_logb_works="guessing yes" ;;
esac
])
])
-# logbf.m4 serial 1
+# logbf.m4 serial 2
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_logbf_works=yes],
[gl_cv_func_logbf_works=no],
[case "$host_os" in
- *gnu* | solaris*) gl_cv_func_logbf_works="guessing no";;
- *) gl_cv_func_logbf_works="guessing yes";;
+ *gnu* | solaris*) gl_cv_func_logbf_works="guessing no" ;;
+ mingw*) # Guess yes on MSVC, no on mingw.
+ AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_logbf_works="guessing yes"],
+ [gl_cv_func_logbf_works="guessing no"])
+ ;;
+ *) gl_cv_func_logbf_works="guessing yes" ;;
esac
])
])
-# logbl.m4 serial 3
+# logbl.m4 serial 4
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_logbl_works=yes],
[gl_cv_func_logbl_works=no],
[case "$host_os" in
- *gnu* | solaris*) gl_cv_func_logbl_works="guessing no";;
- *) gl_cv_func_logbl_works="guessing yes";;
+ *gnu* | solaris*) gl_cv_func_logbl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_logbl_works="guessing yes" ;;
+ *) gl_cv_func_logbl_works="guessing yes" ;;
esac
])
])
-# logf.m4 serial 7
+# logf.m4 serial 8
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_logf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_logf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_logf_ieee="guessing no" ;;
esac
[gl_cv_func_logf_works=yes],
[gl_cv_func_logf_works=no],
[case "$host_os" in
- osf*) gl_cv_func_logf_works="guessing no";;
- *) gl_cv_func_logf_works="guessing yes";;
+ osf*) gl_cv_func_logf_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_logf_works="guessing yes" ;;
+ *) gl_cv_func_logf_works="guessing yes" ;;
esac
])
])
-# logl.m4 serial 9
+# logl.m4 serial 10
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_logl_works=yes],
[gl_cv_func_logl_works=no],
[case "$host_os" in
- osf*) gl_cv_func_logl_works="guessing no";;
- *) gl_cv_func_logl_works="guessing yes";;
+ osf*) gl_cv_func_logl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_logl_works="guessing yes" ;;
+ *) gl_cv_func_logl_works="guessing yes" ;;
esac
])
])
-# serial 28
+# serial 29
# Copyright (C) 1997-2001, 2003-2017 Free Software Foundation, Inc.
#
*-gnu*)
# Guess yes on glibc systems.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
+ mingw*)
+ # Guess no on native Windows.
+ gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
*)
# If we don't know, assume the worst.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
-# mbrtowc.m4 serial 28 -*- coding: utf-8 -*-
+# mbrtowc.m4 serial 29 -*- coding: utf-8 -*-
dnl Copyright (C) 2001-2002, 2004-2005, 2008-2017 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl is present.
changequote(,)dnl
case "$host_os" in
- # Guess no on AIX and glibc systems.
+ # Guess no on AIX and glibc systems.
aix* | *-gnu*)
gl_cv_func_mbrtowc_empty_input="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
esac
changequote([,])dnl
AC_DEFUN([gl_MBRTOWC_C_LOCALE],
[
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether the C locale is free of encoding errors],
[gl_cv_C_locale_sans_EILSEQ],
[
]])],
[gl_cv_C_locale_sans_EILSEQ=yes],
[gl_cv_C_locale_sans_EILSEQ=no],
- [:])])
+ [case "$host_os" in
+ # Guess yes on native Windows.
+ mingw*) gl_cv_C_locale_sans_EILSEQ="guessing yes" ;;
+ esac
+ ])
+ ])
])
# Prerequisites of lib/mbrtowc.c.
-# serial 11
+# serial 12
# Copyright (C) 2001, 2003-2004, 2006, 2008-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
+ [gl_cv_func_mkdir_trailing_slash_works="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
esac
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
esac
-#serial 23
+#serial 24
# Copyright (C) 2001, 2003-2007, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_working_mkstemp="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_working_mkstemp="guessing no" ;;
esac
-# serial 28
+# serial 29
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2017 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
AC_DEFUN([gl_FUNC_MKTIME_WORKS],
[
AC_REQUIRE([gl_TIME_T_IS_SIGNED])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
dnl We don't use AC_FUNC_MKTIME any more, because it is no longer maintained
dnl in Autoconf and because it invokes AC_LIBOBJ.
}]])],
[gl_cv_func_working_mktime=yes],
[gl_cv_func_working_mktime=no],
- [gl_cv_func_working_mktime="guessing no"])
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_working_mktime="guessing no" ;;
+ *) gl_cv_func_working_mktime="guessing no" ;;
+ esac
+ ])
])
])
-# modf.m4 serial 3
+# modf.m4 serial 4
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_modf_ieee="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_modf_ieee="guessing yes"],
+ [gl_cv_func_modf_ieee="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_modf_ieee="guessing no" ;;
esac
-# modff.m4 serial 5
+# modff.m4 serial 6
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_modff_ieee="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_modff_ieee="guessing yes"],
+ [gl_cv_func_modff_ieee="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_modff_ieee="guessing no" ;;
esac
-# modfl.m4 serial 3
+# modfl.m4 serial 4
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_modfl_ieee="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_modfl_ieee="guessing yes"],
+ [gl_cv_func_modfl_ieee="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_modfl_ieee="guessing no" ;;
esac
-# serial 36
+# serial 37
dnl From Jim Meyering.
dnl Check for the nanosleep function.
[case "$host_os" in dnl ((
linux*) # Guess it halfway works when the kernel is Linux.
gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
+ mingw*) # Guess no on native Windows.
+ gl_cv_func_nanosleep='guessing no' ;;
*) # If we don't know, assume the worst.
gl_cv_func_nanosleep='guessing no' ;;
esac
-# perror.m4 serial 6
+# perror.m4 serial 7
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_HEADER_ERRNO_H])
AC_REQUIRE([gl_FUNC_STRERROR_R])
AC_REQUIRE([gl_FUNC_STRERROR_0])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
dnl We intentionally do not check for the broader REPLACE_STRERROR_R,
dnl since on glibc systems, strerror_r is replaced only for signature
dnl issues, and perror is just fine. Rather, we only want to
fi
rm -rf conftest.txt1 conftest.txt2],
[gl_cv_func_perror_works=no],
- [dnl Guess no when cross-compiling.
- gl_cv_func_perror_works="guessing no"
+ [case "$host_os" in
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_perror_works="guessing yes" ;;
+ # Otherwise guess no.
+ *) gl_cv_func_perror_works="guessing no" ;;
+ esac
])
])
- if test "$gl_cv_func_perror_works" != yes; then
- REPLACE_PERROR=1
- fi
+ case "$gl_cv_func_perror_works" in
+ *yes) ;;
+ *) REPLACE_PERROR=1 ;;
+ esac
;;
*)
dnl The system's perror() probably inherits the bugs in the
-# popen.m4 serial 5
+# popen.m4 serial 6
dnl Copyright (C) 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_POPEN],
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CHECK_FUNCS_ONCE([popen])
if test $ac_cv_func_popen = no; then
HAVE_POPEN=0
]])],
[gl_cv_func_popen_works=yes],
[gl_cv_func_popen_works=no],
- dnl For now, only cygwin 1.5 or older is known to be broken.
- [gl_cv_func_popen_works='guessing yes'])
+ [case "$host_os" in
+ # For now, only cygwin 1.5 or older is known to be broken.
+ cygwin*) gl_cv_func_popen_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_popen_works="guessing yes" ;;
+ *) gl_cv_func_popen_works="guessing yes" ;;
+ esac
+ ])
])
- if test "$gl_cv_func_popen_works" = no; then
- REPLACE_POPEN=1
- fi
+ case "$gl_cv_func_popen_works" in
+ *yes) ;;
+ *) REPLACE_POPEN=1 ;;
+ esac
fi
])
-# posix_spawn.m4 serial 11
+# posix_spawn.m4 serial 12
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_posix_spawn_file_actions_addclose_works=no],
[# Guess no on Solaris, yes otherwise.
case "$host_os" in
- solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no";;
- *) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes";;
+ solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
+ *) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes" ;;
esac
])
])
[# Guess no on Solaris, yes otherwise.
case "$host_os" in
solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no" ;;
*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
esac
])
[# Guess no on Solaris, yes otherwise.
case "$host_os" in
solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no" ;;
*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
esac
])
-# printf.m4 serial 54
+# printf.m4 serial 55
dnl Copyright (C) 2003, 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_printf_sizes_c99=yes],
[gl_cv_func_printf_sizes_c99=no],
[
-changequote(,)dnl
case "$host_os" in
+changequote(,)dnl
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
# Guess yes on FreeBSD >= 5.
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
gl_cv_func_printf_sizes_c99="guessing no";;
netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
+changequote([,])dnl
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_printf_sizes_c99="guessing yes"],
+ [gl_cv_func_printf_sizes_c99="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_printf_sizes_c99="guessing no";;
esac
-changequote([,])dnl
])
])
])
}]])],
[gl_cv_func_printf_long_double=yes],
[gl_cv_func_printf_long_double=no],
- [
-changequote(,)dnl
- case "$host_os" in
- beos*) gl_cv_func_printf_long_double="guessing no";;
- mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
- *) gl_cv_func_printf_long_double="guessing yes";;
+ [case "$host_os" in
+ beos*) gl_cv_func_printf_long_double="guessing no";;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_printf_long_double="guessing yes"],
+ [gl_cv_func_printf_long_double="guessing no"])
+ ;;
+ *) gl_cv_func_printf_long_double="guessing yes";;
esac
-changequote([,])dnl
])
])
])
[gl_cv_func_printf_infinite=yes],
[gl_cv_func_printf_infinite=no],
[
-changequote(,)dnl
case "$host_os" in
+changequote(,)dnl
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_printf_infinite="guessing yes";;
# Guess yes on FreeBSD >= 6.
netbsd*) gl_cv_func_printf_infinite="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_printf_infinite="guessing yes";;
+changequote([,])dnl
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_printf_infinite="guessing yes"],
+ [gl_cv_func_printf_infinite="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_printf_infinite="guessing no";;
esac
-changequote([,])dnl
])
])
])
}]])],
[gl_cv_func_printf_infinite_long_double=yes],
[gl_cv_func_printf_infinite_long_double=no],
- [
-changequote(,)dnl
- case "$host_cpu" in
+ [case "$host_cpu" in
# Guess no on ia64, x86_64, i386.
ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
*)
case "$host_os" in
+changequote(,)dnl
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
# Guess yes on FreeBSD >= 6.
# Guess yes on HP-UX >= 11.
hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
+changequote([,])dnl
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_printf_infinite_long_double="guessing yes"],
+ [gl_cv_func_printf_infinite_long_double="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_printf_infinite_long_double="guessing no";;
esac
;;
esac
-changequote([,])dnl
])
])
;;
[gl_cv_func_printf_directive_a="guessing yes"],
[gl_cv_func_printf_directive_a="guessing no"])
;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_printf_directive_a="guessing no";;
# If we don't know, assume the worst.
*) gl_cv_func_printf_directive_a="guessing no";;
esac
[gl_cv_func_printf_directive_f=yes],
[gl_cv_func_printf_directive_f=no],
[
-changequote(,)dnl
case "$host_os" in
+changequote(,)dnl
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_printf_directive_f="guessing yes";;
# Guess yes on FreeBSD >= 6.
# Guess yes on Solaris >= 2.10.
solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
solaris*) gl_cv_func_printf_directive_f="guessing no";;
+changequote([,])dnl
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_printf_directive_f="guessing yes"],
+ [gl_cv_func_printf_directive_f="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_printf_directive_f="guessing no";;
esac
-changequote([,])dnl
])
])
])
}]])],
[gl_cv_func_printf_directive_n=yes],
[gl_cv_func_printf_directive_n=no],
- [
-changequote(,)dnl
- case "$host_os" in
+ [case "$host_os" in
+ # Guess no on native Windows.
mingw*) gl_cv_func_printf_directive_n="guessing no";;
*) gl_cv_func_printf_directive_n="guessing yes";;
esac
-changequote([,])dnl
])
])
])
[
changequote(,)dnl
case "$host_os" in
- openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
- irix*) gl_cv_func_printf_directive_ls="guessing no";;
- solaris*) gl_cv_func_printf_directive_ls="guessing no";;
- cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
- beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
- *) gl_cv_func_printf_directive_ls="guessing yes";;
+ openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
+ irix*) gl_cv_func_printf_directive_ls="guessing no";;
+ solaris*) gl_cv_func_printf_directive_ls="guessing no";;
+ cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
+ beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_printf_directive_ls="guessing yes";;
+ *) gl_cv_func_printf_directive_ls="guessing yes";;
esac
changequote([,])dnl
])
netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
gl_cv_func_printf_positions="guessing no";;
beos*) gl_cv_func_printf_positions="guessing no";;
+ # Guess no on native Windows.
mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
*) gl_cv_func_printf_positions="guessing yes";;
esac
case "$host_os" in
cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
+ # Guess no on native Windows.
mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
*) gl_cv_func_printf_flag_grouping="guessing yes";;
esac
hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
# Guess no on HP-UX 10 and older.
hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
# Guess yes otherwise.
*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
esac
*-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_printf_flag_zero="guessing yes";;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_printf_flag_zero="guessing no";;
# If we don't know, assume the worst.
*) gl_cv_func_printf_flag_zero="guessing no";;
esac
netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
# If we don't know, assume the worst.
*) gl_cv_func_snprintf_truncation_c99="guessing no";;
esac
}]])],
[gl_cv_func_snprintf_retval_c99=yes],
[gl_cv_func_snprintf_retval_c99=no],
- [
+ [case "$host_os" in
changequote(,)dnl
- case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
# Guess yes on FreeBSD >= 5.
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+changequote([,])dnl
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_snprintf_retval_c99="guessing yes"],
+ [gl_cv_func_snprintf_retval_c99="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_snprintf_retval_c99="guessing no";;
esac
-changequote([,])dnl
])
])
])
netbsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_snprintf_directive_n="guessing yes";;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_snprintf_directive_n="guessing no";;
# If we don't know, assume the worst.
*) gl_cv_func_snprintf_directive_n="guessing no";;
esac
AC_DEFUN([gl_SNPRINTF_SIZE1],
[
AC_REQUIRE([AC_PROG_CC])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_REQUIRE([gl_SNPRINTF_PRESENCE])
AC_CACHE_CHECK([whether snprintf respects a size of 1],
[gl_cv_func_snprintf_size1],
}]])],
[gl_cv_func_snprintf_size1=yes],
[gl_cv_func_snprintf_size1=no],
- [gl_cv_func_snprintf_size1="guessing yes"])
+ [case "$host_os" in
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
+ *) gl_cv_func_snprintf_size1="guessing yes" ;;
+ esac
+ ])
])
])
netbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
# Guess yes on BeOS.
beos*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
- # Guess yes on mingw.
+ # Guess yes on native Windows.
mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
# If we don't know, assume the worst.
*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
-# ptsname_r.m4 serial 3
+# ptsname_r.m4 serial 4
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_isatty_sets_errno=yes],
[gl_cv_func_isatty_sets_errno=no],
[case "$host_os" in
- irix* | solaris* | mingw*)
- gl_cv_func_isatty_sets_errno="guessing no";;
+ irix* | solaris*)
+ gl_cv_func_isatty_sets_errno="guessing no" ;;
+ mingw*) # Guess yes on mingw, no on MSVC.
+ AC_EGREP_CPP([Known], [
+#ifdef __MINGW32__
+ Known
+#endif
+ ],
+ [gl_cv_func_isatty_sets_errno="guessing yes"],
+ [gl_cv_func_isatty_sets_errno="guessing no"])
+ ;;
*)
- gl_cv_func_isatty_sets_errno="guessing yes";;
+ gl_cv_func_isatty_sets_errno="guessing yes" ;;
esac
])
])
-# putenv.m4 serial 20
+# putenv.m4 serial 21
dnl Copyright (C) 2002-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_svid_putenv="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_svid_putenv="guessing no" ;;
esac
-# serial 66
+# serial 67
# Copyright (C) 1996-2001, 2003-2017 Free Software Foundation, Inc.
#
AC_DEFUN([gl_REGEX],
[
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_ARG_WITH([included-regex],
[AS_HELP_STRING([--without-included-regex],
[don't compile regex; this is the default on systems
return result;
]])],
- [gl_cv_func_re_compile_pattern_working=yes],
- [gl_cv_func_re_compile_pattern_working=no],
- dnl When crosscompiling, assume it is not working.
- [gl_cv_func_re_compile_pattern_working=no])])
- case $gl_cv_func_re_compile_pattern_working in #(
- yes) ac_use_included_regex=no;; #(
- no) ac_use_included_regex=yes;;
+ [gl_cv_func_re_compile_pattern_working=yes],
+ [gl_cv_func_re_compile_pattern_working=no],
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;;
+ # Otherwise, assume it is not working.
+ *) gl_cv_func_re_compile_pattern_working="guessing no" ;;
+ esac
+ ])
+ ])
+ case "$gl_cv_func_re_compile_pattern_working" in #(
+ *yes) ac_use_included_regex=no;; #(
+ *no) ac_use_included_regex=yes;;
esac
;;
*) AC_MSG_ERROR([Invalid value for --with-included-regex: $with_included_regex])
-# remainder.m4 serial 4
+# remainder.m4 serial 5
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_remainder_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_remainder_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_remainder_ieee="guessing no" ;;
esac
-# remainderf.m4 serial 8
+# remainderf.m4 serial 9
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_remainderf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_remainderf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_remainderf_ieee="guessing no" ;;
esac
[gl_cv_func_remainderf_works=yes],
[gl_cv_func_remainderf_works=no],
[case "$host_os" in
- irix*) gl_cv_func_remainderf_works="guessing no";;
- *) gl_cv_func_remainderf_works="guessing yes";;
+ irix*) gl_cv_func_remainderf_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_remainderf_works="guessing yes" ;;
+ *) gl_cv_func_remainderf_works="guessing yes" ;;
esac
])
])
-# remainderl.m4 serial 7
+# remainderl.m4 serial 8
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_remainderl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_remainderl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_remainderl_ieee="guessing no" ;;
esac
[gl_cv_func_remainderl_works=yes],
[gl_cv_func_remainderl_works=no],
[case "$host_os" in
- openbsd*) gl_cv_func_remainderl_works="guessing no";;
- *) gl_cv_func_remainderl_works="guessing yes";;
+ openbsd*) gl_cv_func_remainderl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_remainderl_works="guessing yes" ;;
+ *) gl_cv_func_remainderl_works="guessing yes" ;;
esac
])
])
-# serial 26
+# serial 27
# Copyright (C) 2001, 2003, 2005-2006, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
esac
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_rename_slash_src_works="guessing no" ;;
esac
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_rename_link_works="guessing no" ;;
esac
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_rename_dest_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_rename_dest_works="guessing no" ;;
esac
-# serial 12
+# serial 13
# Copyright (C) 2000-2001, 2005-2006, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# test runs a test to determine the actual numeric value.
AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY],
[dnl
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CHECK_HEADERS_ONCE([unistd.h])
AC_CACHE_CHECK([for rmdir-not-empty errno value],
[gl_cv_func_rmdir_errno_not_empty],
]])],
[gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`],
[gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'],
- [gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY])
+ [case "$host_os" in
+ # Guess ENOTEMPTY = 41 on native Windows.
+ mingw*) gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY ;;
+ *) gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY ;;
+ esac
+ ])
]
)
AC_DEFINE_UNQUOTED([RMDIR_ERRNO_NOT_EMPTY],
- $gl_cv_func_rmdir_errno_not_empty,
+ [$gl_cv_func_rmdir_errno_not_empty],
[the value to which errno is set when rmdir fails on a nonempty directory])
])
-# rmdir.m4 serial 13
+# rmdir.m4 serial 14
dnl Copyright (C) 2002, 2005, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_rmdir_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_rmdir_works="guessing no" ;;
esac
-# round.m4 serial 17
+# round.m4 serial 18
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
return (x < 0.5 && round (x) != 0.0);
}]])], [gl_cv_func_round_works=yes], [gl_cv_func_round_works=no],
[case "$host_os" in
- netbsd* | aix*) gl_cv_func_round_works="guessing no";;
- *) gl_cv_func_round_works="guessing yes";;
+ netbsd* | aix*) gl_cv_func_round_works="guessing no" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_round_works="guessing yes"],
+ [gl_cv_func_round_works="guessing no"])
+ ;;
+ *) gl_cv_func_round_works="guessing yes" ;;
esac
])
LIBS="$save_LIBS"
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_round_ieee="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_round_ieee="guessing yes"],
+ [gl_cv_func_round_ieee="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_round_ieee="guessing no" ;;
esac
-# roundf.m4 serial 18
+# roundf.m4 serial 19
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
return (x < 0.5f && roundf (x) != 0.0f);
}]])], [gl_cv_func_roundf_works=yes], [gl_cv_func_roundf_works=no],
[case "$host_os" in
- mingw*) gl_cv_func_roundf_works="guessing no";;
- *) gl_cv_func_roundf_works="guessing yes";;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_roundf_works="guessing yes"],
+ [gl_cv_func_roundf_works="guessing no"])
+ ;;
+ *) gl_cv_func_roundf_works="guessing yes" ;;
esac
])
LIBS="$save_LIBS"
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_roundf_ieee="guessing yes" ;;
+ # Guess yes on MSVC, no on mingw.
+ mingw*) AC_EGREP_CPP([Known], [
+#ifdef _MSC_VER
+ Known
+#endif
+ ],
+ [gl_cv_func_roundf_ieee="guessing yes"],
+ [gl_cv_func_roundf_ieee="guessing no"])
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_roundf_ieee="guessing no" ;;
esac
-# roundl.m4 serial 15
+# roundl.m4 serial 16
dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_roundl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_roundl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_roundl_ieee="guessing no" ;;
esac
-# signbit.m4 serial 14
+# signbit.m4 serial 15
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_signbit="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_signbit="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_signbit="guessing no" ;;
esac
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
+ # Guess yes on mingw, no on MSVC.
+ mingw*) if test -n "$GCC"; then
+ gl_cv_func_signbit_gcc="guessing yes"
+ else
+ gl_cv_func_signbit_gcc="guessing no"
+ fi
+ ;;
# If we don't know, assume the worst.
*) gl_cv_func_signbit_gcc="guessing no" ;;
esac
-# sleep.m4 serial 7
+# sleep.m4 serial 8
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_sleep_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_sleep_works="guessing no" ;;
esac
-# sqrtl.m4 serial 9
+# sqrtl.m4 serial 10
dnl Copyright (C) 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_sqrtl_works=yes],
[gl_cv_func_sqrtl_works=no],
[case "$host_os" in
- openbsd*) gl_cv_func_sqrtl_works="guessing no";;
- *) gl_cv_func_sqrtl_works="guessing yes";;
+ openbsd*) gl_cv_func_sqrtl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_sqrtl_works="guessing yes" ;;
+ *) gl_cv_func_sqrtl_works="guessing yes" ;;
esac
])
])
-# stdint.m4 serial 50
+# stdint.m4 serial 51
dnl Copyright (C) 2001-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN_ONCE([gl_STDINT_H],
[
AC_PREREQ([2.59])dnl
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_REQUIRE([gl_LIMITS_H])
AC_REQUIRE([gt_TYPE_WINT_T])
]])],
[gl_cv_header_working_stdint_h=yes],
[],
- [dnl When cross-compiling, assume it works.
- gl_cv_header_working_stdint_h=yes
+ [case "$host_os" in
+ # Guess yes on native Windows.
+ mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
+ # In general, assume it works.
+ *) gl_cv_header_working_stdint_h="guessing yes" ;;
+ esac
])
])
])
HAVE_SYS_BITYPES_H=0
HAVE_SYS_INTTYPES_H=0
STDINT_H=stdint.h
- if test "$gl_cv_header_working_stdint_h" = yes; then
- HAVE_C99_STDINT_H=1
- dnl Now see whether the system <stdint.h> works without
- dnl __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined.
- AC_CACHE_CHECK([whether stdint.h predates C++11],
- [gl_cv_header_stdint_predates_cxx11_h],
- [gl_cv_header_stdint_predates_cxx11_h=yes
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
+ case "$gl_cv_header_working_stdint_h" in
+ *yes)
+ HAVE_C99_STDINT_H=1
+ dnl Now see whether the system <stdint.h> works without
+ dnl __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined.
+ AC_CACHE_CHECK([whether stdint.h predates C++11],
+ [gl_cv_header_stdint_predates_cxx11_h],
+ [gl_cv_header_stdint_predates_cxx11_h=yes
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([[
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
#include <stdint.h>
]
[
intmax_t im = INTMAX_MAX;
int32_t i32 = INT32_C (0x7fffffff);
- ]])],
- [gl_cv_header_stdint_predates_cxx11_h=no])])
+ ]])],
+ [gl_cv_header_stdint_predates_cxx11_h=no])])
- if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
- AC_DEFINE([__STDC_CONSTANT_MACROS], [1],
- [Define to 1 if the system <stdint.h> predates C++11.])
- AC_DEFINE([__STDC_LIMIT_MACROS], [1],
- [Define to 1 if the system <stdint.h> predates C++11.])
- fi
- AC_CACHE_CHECK([whether stdint.h has UINTMAX_WIDTH etc.],
- [gl_cv_header_stdint_width],
- [gl_cv_header_stdint_width=no
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[
- /* Work if build is not clean. */
- #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
- #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
- #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
- #endif
- #include <stdint.h>
- ]gl_STDINT_INCLUDES[
- int iw = UINTMAX_WIDTH;
- ]])],
- [gl_cv_header_stdint_width=yes])])
- if test "$gl_cv_header_stdint_width" = yes; then
- STDINT_H=
- fi
- else
- dnl Check for <sys/inttypes.h>, and for
- dnl <sys/bitypes.h> (used in Linux libc4 >= 4.6.7 and libc5).
- AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h])
- if test $ac_cv_header_sys_inttypes_h = yes; then
- HAVE_SYS_INTTYPES_H=1
- fi
- if test $ac_cv_header_sys_bitypes_h = yes; then
- HAVE_SYS_BITYPES_H=1
- fi
- gl_STDINT_TYPE_PROPERTIES
- fi
+ if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
+ AC_DEFINE([__STDC_CONSTANT_MACROS], [1],
+ [Define to 1 if the system <stdint.h> predates C++11.])
+ AC_DEFINE([__STDC_LIMIT_MACROS], [1],
+ [Define to 1 if the system <stdint.h> predates C++11.])
+ fi
+ AC_CACHE_CHECK([whether stdint.h has UINTMAX_WIDTH etc.],
+ [gl_cv_header_stdint_width],
+ [gl_cv_header_stdint_width=no
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[
+ /* Work if build is not clean. */
+ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
+ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
+ #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+ #endif
+ #include <stdint.h>
+ ]gl_STDINT_INCLUDES[
+ int iw = UINTMAX_WIDTH;
+ ]])],
+ [gl_cv_header_stdint_width=yes])])
+ if test "$gl_cv_header_stdint_width" = yes; then
+ STDINT_H=
+ fi
+ ;;
+ *)
+ dnl Check for <sys/inttypes.h>, and for
+ dnl <sys/bitypes.h> (used in Linux libc4 >= 4.6.7 and libc5).
+ AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h])
+ if test $ac_cv_header_sys_inttypes_h = yes; then
+ HAVE_SYS_INTTYPES_H=1
+ fi
+ if test $ac_cv_header_sys_bitypes_h = yes; then
+ HAVE_SYS_BITYPES_H=1
+ fi
+ gl_STDINT_TYPE_PROPERTIES
+ ;;
+ esac
dnl The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
LIMITS_H=limits.h
-# strerror.m4 serial 17
+# strerror.m4 serial 18
dnl Copyright (C) 2002, 2007-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_strerror_0_works="guessing no" ;;
esac
-# strncat.m4 serial 2
+# strncat.m4 serial 3
dnl Copyright (C) 2002-2004, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
case "$host_os" in
# Guess no on Solaris.
- solaris*) gl_cv_func_strncat_works="guessing no";;
+ solaris*) gl_cv_func_strncat_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_strncat_works="guessing yes" ;;
# Guess yes otherwise.
- *) gl_cv_func_strncat_works="guessing yes";;
+ *) gl_cv_func_strncat_works="guessing yes" ;;
esac
])
])
-# strtod.m4 serial 22
+# strtod.m4 serial 23
dnl Copyright (C) 2002-2003, 2006-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_STRTOD],
[
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
m4_ifdef([gl_FUNC_STRTOD_OBSOLETE], [
dnl Test whether strtod is declared.
dnl Don't call AC_FUNC_STRTOD, because it does not have the right guess
#endif
],
[gl_cv_func_strtod_works="guessing yes"],
- [gl_cv_func_strtod_works="guessing no"])])])
+ [case "$host_os" in
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_strtod_works="guessing yes" ;;
+ *) gl_cv_func_strtod_works="guessing no" ;;
+ esac
+ ])
+ ])
+ ])
case "$gl_cv_func_strtod_works" in
*yes) ;;
*)
-# strtoimax.m4 serial 14
+# strtoimax.m4 serial 15
dnl Copyright (C) 2002-2004, 2006, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_strtoimax=yes],
[gl_cv_func_strtoimax=no],
[case "$host_os" in
- # Guess no on AIX 5.
- aix5*) gl_cv_func_strtoimax="guessing no" ;;
- # Guess yes otherwise.
- *) gl_cv_func_strtoimax="guessing yes" ;;
+ # Guess no on AIX 5.
+ aix5*) gl_cv_func_strtoimax="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_strtoimax="guessing yes" ;;
+ # Guess yes otherwise.
+ *) gl_cv_func_strtoimax="guessing yes" ;;
esac
])
])
-# strtok_r.m4 serial 13
+# strtok_r.m4 serial 14
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2017 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
],
[gl_cv_func_strtok_r_works=yes],
[gl_cv_func_strtok_r_works=no],
- [
-changequote(,)dnl
- case "$host_os" in
+ [case "$host_os" in
# Guess no on glibc systems.
- *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
- *) gl_cv_func_strtok_r_works="guessing yes";;
+ *-gnu*) gl_cv_func_strtok_r_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_strtok_r_works="guessing yes" ;;
+ *) gl_cv_func_strtok_r_works="guessing yes" ;;
esac
-changequote([,])dnl
])
])
case "$gl_cv_func_strtok_r_works" in
-# trunc.m4 serial 9
+# trunc.m4 serial 10
dnl Copyright (C) 2007, 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_trunc_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_trunc_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_trunc_ieee="guessing no" ;;
esac
-# truncf.m4 serial 9
+# truncf.m4 serial 10
dnl Copyright (C) 2007, 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_truncf_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_truncf_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_truncf_ieee="guessing no" ;;
esac
-# truncl.m4 serial 11
+# truncl.m4 serial 12
dnl Copyright (C) 2007-2008, 2010-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_truncl_works=yes],
[gl_cv_func_truncl_works=no],
[case "$host_os" in
- osf4*) gl_cv_func_truncl_works="guessing no";;
- *) gl_cv_func_truncl_works="guessing yes";;
+ osf4*) gl_cv_func_truncl_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_truncl_works="guessing yes" ;;
+ *) gl_cv_func_truncl_works="guessing yes" ;;
esac
])
])
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_truncl_ieee="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_truncl_ieee="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_truncl_ieee="guessing no" ;;
esac
-# tsearch.m4 serial 6
+# tsearch.m4 serial 7
dnl Copyright (C) 2006-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
return result;
}]])], [gl_cv_func_tdelete_works=yes], [gl_cv_func_tdelete_works=no],
[case "$host_os" in
- openbsd*) gl_cv_func_tdelete_works="guessing no";;
- *) gl_cv_func_tdelete_works="guessing yes";;
+ openbsd*) gl_cv_func_tdelete_works="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_tdelete_works="guessing yes" ;;
+ *) gl_cv_func_tdelete_works="guessing yes" ;;
esac
])
])
-# serial 9
+# serial 10
# Copyright (C) 2003, 2007, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess all is fine on glibc systems.
*-gnu*) gl_cv_func_tzset_clobber="guessing no" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_tzset_clobber="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_tzset_clobber="guessing yes" ;;
esac
-# ungetc.m4 serial 4
+# ungetc.m4 serial 5
dnl Copyright (C) 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no],
[case "$host_os" in
# Guess yes on glibc and bionic systems.
- *-gnu*|*-android*)
+ *-gnu* | *-android*)
gl_cv_func_ungetc_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_ungetc_works="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_ungetc_works="guessing no" ;;
esac
-#serial 13
+#serial 14
dnl From J. David Anglin.
}]])],
[gl_cv_func_unlink_busy_text=yes],
[gl_cv_func_unlink_busy_text=no],
- [gl_cv_func_unlink_busy_text=no]
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_unlink_busy_text="guessing no" ;;
+ *) gl_cv_func_unlink_busy_text="guessing no" ;;
+ esac
+ ]
)
]
)
- if test $gl_cv_func_unlink_busy_text = no; then
- INSTALL=$ac_install_sh
- fi
+ case "$gl_cv_func_unlink_busy_text" in
+ *no) INSTALL=$ac_install_sh ;;
+ esac
])
-# unlink.m4 serial 11
+# unlink.m4 serial 12
dnl Copyright (C) 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_unlink_honors_slashes="guessing no" ;;
esac
-# usleep.m4 serial 3
+# usleep.m4 serial 4
dnl Copyright (C) 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_usleep_works="guessing yes" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_usleep_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_usleep_works="guessing no" ;;
esac
# Detect some bugs in glibc's implementation of utimes.
-# serial 4
+# serial 5
dnl Copyright (C) 2003-2005, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
AC_DEFUN([gl_FUNC_UTIMES],
[
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether the utimes function works],
[gl_cv_func_working_utimes],
- [
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
]])],
[gl_cv_func_working_utimes=yes],
[gl_cv_func_working_utimes=no],
- [gl_cv_func_working_utimes=no])])
+ [case "$host_os" in
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_working_utimes="guessing no" ;;
+ *) gl_cv_func_working_utimes="guessing no" ;;
+ esac
+ ])
+ ])
- if test $gl_cv_func_working_utimes = yes; then
- AC_DEFINE([HAVE_WORKING_UTIMES], [1], [Define if utimes works properly.])
- fi
+ case "$gl_cv_func_working_utimes" in
+ *yes)
+ AC_DEFINE([HAVE_WORKING_UTIMES], [1], [Define if utimes works properly.])
+ ;;
+ esac
])
-# wcrtomb.m4 serial 11
+# wcrtomb.m4 serial 12
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case "$host_os" in
# Guess no on AIX 4, OSF/1 and Solaris.
aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_wcrtomb_retval="guessing yes" ;;
# Guess yes otherwise.
*) gl_cv_func_wcrtomb_retval="guessing yes" ;;
esac
-# wcsrtombs.m4 serial 11
+# wcsrtombs.m4 serial 12
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl is present.
changequote(,)dnl
case "$host_os" in
- # Guess no on OSF/1.
- osf*) gl_cv_func_wcsrtombs_termination="guessing no" ;;
- # Guess yes otherwise.
- *) gl_cv_func_wcsrtombs_termination="guessing yes" ;;
+ # Guess no on OSF/1.
+ osf*) gl_cv_func_wcsrtombs_termination="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_wcsrtombs_termination="guessing yes" ;;
+ # Guess yes otherwise.
+ *) gl_cv_func_wcsrtombs_termination="guessing yes" ;;
esac
changequote([,])dnl
if test $LOCALE_FR != none; then
case "$host_os" in
# Guess no on HP-UX, OSF/1, mingw.
hpux* | osf* | mingw*) gl_cv_func_wcsrtombs_null="guessing no" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_wcsrtombs_null="guessing yes" ;;
# Guess yes otherwise.
*) gl_cv_func_wcsrtombs_null="guessing yes" ;;
esac
-# wctob.m4 serial 10
+# wctob.m4 serial 11
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case "$host_os" in
# Guess no on Solaris <= 9 and Cygwin.
solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
+ gl_cv_func_wctob_works="guessing no" ;;
+ # Guess no on native Windows.
+ mingw*)
gl_cv_func_wctob_works="guessing no" ;;
# Guess yes otherwise.
*) gl_cv_func_wctob_works="guessing yes" ;;