changeset 15005:182d0b65605e

ceil: Move AC_LIBOBJ invocations to module description. * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here... * modules/ceil (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 10:58:45 +0200
parents 44bb55821215
children 53aac8a36d9f
files ChangeLog m4/ceil.m4 modules/ceil
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>
+
+	ceil: Move AC_LIBOBJ invocations to module description.
+	* m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
+	* modules/ceil (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	ceilf: Move AC_LIBOBJ invocations to module description.
--- a/m4/ceil.m4
+++ b/m4/ceil.m4
@@ -1,4 +1,4 @@
-# ceil.m4 serial 5
+# ceil.m4 serial 6
 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,
@@ -48,7 +48,7 @@
     fi
   ])
   if test $REPLACE_CEIL = 1; then
-    AC_LIBOBJ([ceil])
+    dnl No libraries are needed to link lib/ceil.c.
     CEIL_LIBM=
   fi
   AC_SUBST([CEIL_LIBM])
--- a/modules/ceil
+++ b/modules/ceil
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_CEIL
+if test $REPLACE_CEIL = 1; then
+  AC_LIBOBJ([ceil])
+fi
 gl_MATH_MODULE_INDICATOR([ceil])
 
 Makefile.am: