sqrtl: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 01:02:56 +0000 (03:02 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:16 +0000 (00:06 +0200)
* m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
* modules/sqrtl (configure.ac): ... to here.

ChangeLog
m4/sqrtl.m4
modules/sqrtl

index c558ca2..6fdc9d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-20  Bruno Haible  <bruno@clisp.org>
 
+       sqrtl: Respect rules for use of AC_LIBOBJ.
+       * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
+       * modules/sqrtl (configure.ac): ... to here.
+
+2011-05-20  Bruno Haible  <bruno@clisp.org>
+
        ldexpl: Respect rules for use of AC_LIBOBJ.
        * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
        * modules/ldexpl (configure.ac): ... to here.
index c64fc19..87ffc37 100644 (file)
@@ -1,4 +1,4 @@
-# sqrtl.m4 serial 3
+# sqrtl.m4 serial 4
 dnl Copyright (C) 2010-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,
@@ -55,7 +55,7 @@ AC_DEFUN([gl_FUNC_SQRTL],
   else
     HAVE_DECL_SQRTL=0
     HAVE_SQRTL=0
-    AC_LIBOBJ([sqrtl])
+    dnl Find libraries needed to link lib/sqrtl.c.
     AC_REQUIRE([gl_FUNC_ISNANL])
     AC_REQUIRE([gl_FUNC_FREXPL])
     AC_REQUIRE([gl_FUNC_LDEXPL])
index d7f73ca..df01005 100644 (file)
@@ -16,6 +16,9 @@ sqrt            [test $HAVE_SQRTL = 0]
 
 configure.ac:
 gl_FUNC_SQRTL
+if test $HAVE_SQRTL = 0; then
+  AC_LIBOBJ([sqrtl])
+fi
 gl_MATH_MODULE_INDICATOR([sqrtl])
 
 Makefile.am: