isnan: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 00:21:30 +0000 (02:21 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:15 +0000 (00:06 +0200)
* m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
invocations here.
* modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
REPLACE_ISNAN.
* modules/isnand (configure.ac): Likewise.
* modules/isnanl (configure.ac): Likewise.

ChangeLog
m4/isnan.m4
modules/isnand
modules/isnanf
modules/isnanl

index 3cbbbc5..56de524 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2011-05-20  Bruno Haible  <bruno@clisp.org>
 
+       isnan: Respect rules for use of AC_LIBOBJ.
+       * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
+       invocations here.
+       * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
+       REPLACE_ISNAN.
+       * modules/isnand (configure.ac): Likewise.
+       * modules/isnanl (configure.ac): Likewise.
+
+2011-05-20  Bruno Haible  <bruno@clisp.org>
+
        isnanl*: Respect rules for use of AC_LIBOBJ.
        * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
        invocation from here...
index 0c5e783..a99cbb3 100644 (file)
@@ -1,4 +1,4 @@
-# isnan.m4 serial 4
+# isnan.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,
@@ -36,14 +36,8 @@ AC_DEFUN([gl_ISNAN],
     esac
   else
     AC_MSG_RESULT([no])
+    dnl REPLACE_ISNAN=1 also makes sure the rpl_isnan[fdl] functions get built.
     REPLACE_ISNAN=1
-    # Make sure the rpl_isnan[fdl] functions get built.
-    AC_LIBOBJ([isnanf])
-    gl_PREREQ_ISNANF
-    AC_LIBOBJ([isnand])
-    gl_PREREQ_ISNAND
-    AC_LIBOBJ([isnanl])
-    gl_PREREQ_ISNANL
     ISNAN_LIBM=
   fi
   AC_SUBST([ISNAN_LIBM])
index 362b1f8..1ac796d 100644 (file)
@@ -15,7 +15,10 @@ memcmp
 
 configure.ac:
 gl_FUNC_ISNAND
-if test $HAVE_ISNAND = 0; then
+m4_ifdef([gl_ISNAN], [
+  AC_REQUIRE([gl_ISNAN])
+])
+if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
   AC_LIBOBJ([isnand])
   gl_PREREQ_ISNAND
 fi
index a04a8b3..8b9e3a1 100644 (file)
@@ -15,7 +15,10 @@ memcmp
 
 configure.ac:
 gl_FUNC_ISNANF
-if test $HAVE_ISNANF = 0; then
+m4_ifdef([gl_ISNAN], [
+  AC_REQUIRE([gl_ISNAN])
+])
+if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
   AC_LIBOBJ([isnanf])
   gl_PREREQ_ISNANF
 fi
index 01b4417..c44b2c9 100644 (file)
@@ -16,7 +16,10 @@ memcmp
 
 configure.ac:
 gl_FUNC_ISNANL
-if test $HAVE_ISNANL = 0; then
+m4_ifdef([gl_ISNAN], [
+  AC_REQUIRE([gl_ISNAN])
+])
+if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
   AC_LIBOBJ([isnanl])
   gl_PREREQ_ISNANL
 fi