changeset 15015:674015319e54

sinl: Move AC_LIBOBJ invocations to module description. * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here... * modules/sinl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:42:59 +0200
parents ffe53e18481a
children 0cee0fa6cf32
files ChangeLog m4/sinl.m4 modules/sinl
diffstat 3 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	sinl: Move AC_LIBOBJ invocations to module description.
+	* m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
+	* modules/sinl (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	logl: Move AC_LIBOBJ invocations to module description.
--- a/m4/sinl.m4
+++ b/m4/sinl.m4
@@ -1,4 +1,4 @@
-# sinl.m4 serial 3
+# sinl.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,9 +55,7 @@
   else
     HAVE_DECL_SINL=0
     HAVE_SINL=0
-    AC_LIBOBJ([sinl])
-    AC_LIBOBJ([sincosl])
-    AC_LIBOBJ([trigl])
+    dnl Find libraries needed to link lib/sinl.c, lib/sincosl.c, lib/trigl.c.
     AC_REQUIRE([gl_FUNC_ISNANL])
     AC_REQUIRE([gl_FUNC_FLOOR])
     AC_REQUIRE([gl_FUNC_FLOORL])
--- a/modules/sinl
+++ b/modules/sinl
@@ -18,6 +18,11 @@
 
 configure.ac:
 gl_FUNC_SINL
+if test $HAVE_SINL = 0; then
+  AC_LIBOBJ([sinl])
+  AC_LIBOBJ([sincosl])
+  AC_LIBOBJ([trigl])
+fi
 gl_MATH_MODULE_INDICATOR([sinl])
 
 Makefile.am: