From: Bruno Haible <bruno@clisp.org>
Date: Tue, 3 Apr 2007 23:28:37 +0000 (+0000)
Subject: Clarify the dependencies on libm.
X-Git-Tag: cvs-readonly~591
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=aecb65d22ea2a79b4f171eeac3031b6db43a49fb;p=gnulib.git

Clarify the dependencies on libm.
---

diff --git a/ChangeLog b/ChangeLog
index 0655cd1e4c..b42ed2997e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2007-04-03  Bruno Haible  <bruno@clisp.org>
+
+	* m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
+	* modules/isnanl (Link): New section.
+
+	* m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
+	* modules/frexp (Link): New section.
+
+	* m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
+	* modules/frexpl (Link): New section.
+
+	* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
+	* modules/ldexpl (Link): New section.
+
 2007-04-03  Bruno Haible  <bruno@clisp.org>
 
 	* modules/TEMPLATE-EXTENDED: New file.
diff --git a/m4/frexp.m4 b/m4/frexp.m4
index 88d5be6e30..d423f2c2c0 100644
--- a/m4/frexp.m4
+++ b/m4/frexp.m4
@@ -53,6 +53,7 @@ AC_DEFUN([gl_FUNC_FREXP],
   else
     AC_LIBOBJ([frexp])
   fi
+  AC_SUBST([FREXP_LIBM])
 ])
 
 dnl Test whether frexp() works also on denormalized numbers (this fails e.g. on
diff --git a/m4/frexpl.m4 b/m4/frexpl.m4
index ab70e6ec8c..ca67add7a5 100644
--- a/m4/frexpl.m4
+++ b/m4/frexpl.m4
@@ -57,6 +57,7 @@ AC_DEFUN([gl_FUNC_FREXPL],
     HAVE_DECL_FREXPL=0
     AC_LIBOBJ([frexpl])
   fi
+  AC_SUBST([FREXPL_LIBM])
 ])
 
 dnl Test whether frexpl() works on finite numbers (this fails on AIX 5.1) and
diff --git a/m4/isnanl.m4 b/m4/isnanl.m4
index c01ab026ab..d035c07cbd 100644
--- a/m4/isnanl.m4
+++ b/m4/isnanl.m4
@@ -37,6 +37,7 @@ AC_DEFUN([gl_FUNC_ISNANL],
       gl_LONG_DOUBLE_EXPONENT_LOCATION
     fi
   fi
+  AC_SUBST([ISNANL_LIBM])
 ])
 
 AC_DEFUN([gl_FUNC_ISNANL_NO_LIBM],
diff --git a/m4/ldexpl.m4 b/m4/ldexpl.m4
index 6587d85c30..804f1b8ad7 100644
--- a/m4/ldexpl.m4
+++ b/m4/ldexpl.m4
@@ -57,6 +57,7 @@ AC_DEFUN([gl_FUNC_LDEXPL],
     HAVE_DECL_LDEXPL=0
     AC_LIBOBJ([ldexpl])
   fi
+  AC_SUBST([LDEXPL_LIBM])
 ])
 
 dnl Test whether ldexpl() works on finite numbers (this fails on AIX 5.1).
diff --git a/modules/frexp b/modules/frexp
index 03407fd38b..92c635baf7 100644
--- a/modules/frexp
+++ b/modules/frexp
@@ -18,6 +18,9 @@ Makefile.am:
 Include:
 <math.h>
 
+Link:
+$(FREXP_LIBM)
+
 License:
 LGPL
 
diff --git a/modules/frexpl b/modules/frexpl
index 465336e34e..185d54dde2 100644
--- a/modules/frexpl
+++ b/modules/frexpl
@@ -20,6 +20,9 @@ Makefile.am:
 Include:
 <math.h>
 
+Link:
+$(FREXPL_LIBM)
+
 License:
 LGPL
 
diff --git a/modules/isnanl b/modules/isnanl
index c3f768a8a5..bf6a5ae803 100644
--- a/modules/isnanl
+++ b/modules/isnanl
@@ -22,6 +22,9 @@ Include:
 # include "isnanl.h"
 #endif
 
+Link:
+$(ISNANL_LIBM)
+
 License:
 LGPL
 
diff --git a/modules/ldexpl b/modules/ldexpl
index 1d759d02b2..e143d83372 100644
--- a/modules/ldexpl
+++ b/modules/ldexpl
@@ -19,6 +19,9 @@ Makefile.am:
 Include:
 <math.h>
 
+Link:
+$(LDEXPL_LIBM)
+
 License:
 LGPL