changeset 15009:2917eb19f982

truncl: Move AC_LIBOBJ invocations to module description. * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here... * modules/truncl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:32:55 +0200
parents 43d9d32b39cb
children f7ff26fc8b4c
files ChangeLog m4/truncl.m4 modules/truncl
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	truncl: Move AC_LIBOBJ invocations to module description.
+	* m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
+	* modules/truncl (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	trunc: Move AC_LIBOBJ invocations to module description.
--- a/m4/truncl.m4
+++ b/m4/truncl.m4
@@ -1,4 +1,4 @@
-# truncl.m4 serial 6
+# truncl.m4 serial 7
 dnl Copyright (C) 2007-2008, 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,
@@ -107,7 +107,7 @@
     HAVE_DECL_TRUNCL=0
   fi
   if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
-    AC_LIBOBJ([truncl])
+    dnl No libraries are needed to link lib/truncl.c.
     TRUNCL_LIBM=
   fi
   AC_SUBST([TRUNCL_LIBM])
--- a/modules/truncl
+++ b/modules/truncl
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_TRUNCL
+if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
+  AC_LIBOBJ([truncl])
+fi
 gl_MATH_MODULE_INDICATOR([truncl])
 
 Makefile.am: