base64: Reference latest RFC.
[gnulib.git] / m4 / isinf.m4
index 3d94231..145e37e 100644 (file)
@@ -1,5 +1,5 @@
-# isinf.m4 serial 2
-dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
+# isinf.m4 serial 5
+dnl Copyright (C) 2007-2011 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.
@@ -11,7 +11,7 @@ AC_DEFUN([gl_ISINF],
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   AC_CHECK_DECLS([isinf], , , [#include <math.h>])
   if test "$ac_cv_have_decl_isinf" = yes; then
-    gl_CHECK_MATH_LIB([ISINF_LIBM], [x = isinf (x);])
+    gl_CHECK_MATH_LIB([ISINF_LIBM], [x = isinf (x) + isinf ((float) x);])
     if test "$ISINF_LIBM" != missing; then
       dnl Test whether isinf() on 'long double' works.
       gl_ISINFL_WORKS
@@ -24,10 +24,9 @@ AC_DEFUN([gl_ISINF],
   if test "$ac_cv_have_decl_isinf" != yes ||
      test "$ISINF_LIBM" = missing; then
     REPLACE_ISINF=1
-    AC_LIBOBJ([isinf])
+    dnl No libraries are needed to link lib/isinf.c.
     ISINF_LIBM=
   fi
-  AC_SUBST([REPLACE_ISINF])
   AC_SUBST([ISINF_LIBM])
 ])
 
@@ -44,6 +43,6 @@ AC_DEFUN([gl_ISINFL_WORKS],
                                      [[return !!isinf(LDBL_MAX);]])],
                     [gl_cv_func_isinfl_works=yes],
                     [gl_cv_func_isinfl_works=no],
-                   [gl_cv_func_isinfl_works="guessing no"])
+                    [gl_cv_func_isinfl_works="guessing no"])
     ])
 ])