diff options
author | Andy Wingo <wingo@pobox.com> | 2021-01-20 21:52:54 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2021-01-20 23:03:56 +0100 |
commit | a91b95cca2d397c84f8b9bbd602d40209a7092ce (patch) | |
tree | 2c286a291f5a2b812d6e216be10936f2709d59cf /m4/isfinite.m4 | |
parent | 758b31994cff582c7e8785b4cc2240dbf3573837 (diff) | |
download | guile-a91b95cca2d397c84f8b9bbd602d40209a7092ce.tar.gz |
Update Gnulib to v0.1-4379-g2ef5a9b4b
Also bump required autoconf version to 2.64, as required by Gnulib.
Diffstat (limited to 'm4/isfinite.m4')
-rw-r--r-- | m4/isfinite.m4 | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/m4/isfinite.m4 b/m4/isfinite.m4 index fab12be86..2b8902d4a 100644 --- a/m4/isfinite.m4 +++ b/m4/isfinite.m4 @@ -1,5 +1,5 @@ -# isfinite.m4 serial 15 -dnl Copyright (C) 2007-2017 Free Software Foundation, Inc. +# isfinite.m4 serial 17 +dnl Copyright (C) 2007-2021 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 with or without modifications, as long as this notice is preserved. @@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_ISFINITE], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl Persuade glibc <math.h> to declare isfinite. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS([isfinite], , , [[#include <math.h>]]) @@ -25,8 +26,13 @@ AC_DEFUN([gl_ISFINITE], dnl isfinite(long double) also does not work in this situation. fi fi - if test "$ac_cv_have_decl_isfinite" != yes || - test "$ISFINITE_LIBM" = missing; then + dnl On Solaris 10, with CC in C++ mode, isfinite is not available although + dnl is with cc in C mode. This cannot be worked around by defining + dnl _XOPEN_SOURCE=600, because the latter does not work in C++ mode on + dnl Solaris 11.0. Therefore use the replacement functions on Solaris. + if test "$ac_cv_have_decl_isfinite" != yes \ + || test "$ISFINITE_LIBM" = missing \ + || { case "$host_os" in solaris*) true;; *) false;; esac; }; then REPLACE_ISFINITE=1 dnl No libraries are needed to link lib/isfinite.c. ISFINITE_LIBM= @@ -143,7 +149,14 @@ int main () #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 + ]) ]) ]) |