]> Savannah Git Hosting - gnulib.git/commitdiff
ceill: Change configure message.
authorBruno Haible <bruno@clisp.org>
Wed, 26 Aug 2020 22:47:22 +0000 (00:47 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Aug 2020 23:30:26 +0000 (01:30 +0200)
* m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
instead of "checking whether ceill() breaks with small values...".

ChangeLog
m4/ceill.m4

index b23b2f46c8d04c709b3d1ae68301d8465801cc7f..0728224b4749298a070fa35afb9d753eed09148b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-08-26  Bruno Haible  <bruno@clisp.org>
+
+       ceill: Change configure message.
+       * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
+       instead of "checking whether ceill() breaks with small values...".
+
 2020-08-26  Bruno Haible  <bruno@clisp.org>
 
        iconv: Change configure message.
index 806c4e6aedb64afe021b237254860a16114b3fcb..3428530f7bb894a3dd9b74f863fd90149597327d 100644 (file)
@@ -1,4 +1,4 @@
-# ceill.m4 serial 21
+# ceill.m4 serial 22
 dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,31 +74,31 @@ int main (int argc, char *argv[])
     HAVE_DECL_CEILL=0
   fi
   dnl On OpenBSD 5.6 the system's native ceill() is buggy:
-  dnl it returns '0' for small values. Test for this anomaly.
+  dnl it returns '0' for small values. Test against this anomaly.
   if test $REPLACE_CEILL = 0 ; then
-    AC_CACHE_CHECK([whether ceill() breaks with small values],
-        [gl_cv_func_ceill_buggy],
-        [
-          save_LIBS="$LIBS"
-          LIBS="$CEILL_LIBM"
-          AC_RUN_IFELSE(
-           [AC_LANG_PROGRAM(
-             [[#include <math.h>
+    AC_CACHE_CHECK([whether ceill() works],
+      [gl_cv_func_ceill_works],
+      [save_LIBS="$LIBS"
+       LIBS="$CEILL_LIBM"
+       AC_RUN_IFELSE(
+         [AC_LANG_PROGRAM(
+            [[#include <math.h>
 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" ;;
-                          # 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
-      *yes)
-        REPLACE_CEILL=1 ;;
+            [[return (!(ceill (d) == 1)); ]])],
+         [gl_cv_func_ceill_works=yes],
+         [gl_cv_func_ceill_works=no],
+         [case "$host_os" in
+            openbsd*) gl_cv_func_ceill_works="guessing no" ;;
+                      # Guess yes on native Windows.
+            mingw*)   gl_cv_func_ceill_works="guessing yes" ;;
+            *)        gl_cv_func_ceill_works="guessing yes" ;;
+          esac
+         ])
+       LIBS="$save_LIBS"
+      ])
+    case "$gl_cv_func_ceill_works" in
+      *yes) ;;
+      *) REPLACE_CEILL=1 ;;
     esac
   fi
   if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then