truncl: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 09:32:55 +0000 (11:32 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:19 +0000 (00:06 +0200)
* m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
* modules/truncl (configure.ac): ... to here.

ChangeLog
m4/truncl.m4
modules/truncl

index b5a4a8b..82ce8d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
        * modules/trunc (configure.ac): ... to here.
index 36dd648..2b6988b 100644 (file)
@@ -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 @@ int main()
     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])
index 808c63e..8dbb752 100644 (file)
@@ -13,6 +13,9 @@ float           [test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1]
 
 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: