changeset 15000:e36ba7ba51ce

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 03:02:56 +0200
parents 96019ab39a93
children 038c814724c1
files ChangeLog m4/sqrtl.m4 modules/sqrtl
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
--- a/m4/sqrtl.m4
+++ b/m4/sqrtl.m4
@@ -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 @@
   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])
--- a/modules/sqrtl
+++ b/modules/sqrtl
@@ -16,6 +16,9 @@
 
 configure.ac:
 gl_FUNC_SQRTL
+if test $HAVE_SQRTL = 0; then
+  AC_LIBOBJ([sqrtl])
+fi
 gl_MATH_MODULE_INDICATOR([sqrtl])
 
 Makefile.am: