changeset 15011:6329fc5866f9

round: Move AC_LIBOBJ invocations to module description. * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here... * modules/round (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:25:14 +0200
parents f7ff26fc8b4c
children 61a8e016e080
files ChangeLog m4/round.m4 modules/round
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>
+
+	round: Move AC_LIBOBJ invocations to module description.
+	* m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
+	* modules/round (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	roundf: Move AC_LIBOBJ invocations to module description.
--- a/m4/round.m4
+++ b/m4/round.m4
@@ -1,4 +1,4 @@
-# round.m4 serial 10
+# round.m4 serial 11
 dnl Copyright (C) 2007, 2009-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,
@@ -92,7 +92,7 @@
     HAVE_DECL_ROUND=0
   fi
   if test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1; then
-    AC_LIBOBJ([round])
+    dnl Find libraries needed to link lib/round.c.
     gl_FUNC_FLOOR_LIBS
     gl_FUNC_CEIL_LIBS
     ROUND_LIBM=
--- a/modules/round
+++ b/modules/round
@@ -16,6 +16,9 @@
 
 configure.ac:
 gl_FUNC_ROUND
+if test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1; then
+  AC_LIBOBJ([round])
+fi
 gl_MATH_MODULE_INDICATOR([round])
 
 Makefile.am: