changeset 15006:53aac8a36d9f

ceill: Move AC_LIBOBJ invocations to module description. * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here... * modules/ceill (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:00:42 +0200
parents 182d0b65605e
children d3a315873582
files ChangeLog m4/ceill.m4 modules/ceill
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>
+
+	ceill: Move AC_LIBOBJ invocations to module description.
+	* m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
+	* modules/ceill (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	ceil: Move AC_LIBOBJ invocations to module description.
--- a/m4/ceill.m4
+++ b/m4/ceill.m4
@@ -1,4 +1,4 @@
-# ceill.m4 serial 8
+# ceill.m4 serial 9
 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,
@@ -58,7 +58,7 @@
     HAVE_DECL_CEILL=0
   fi
   if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then
-    AC_LIBOBJ([ceill])
+    dnl No libraries are needed to link lib/ceill.c.
     CEILL_LIBM=
   fi
   AC_SUBST([CEILL_LIBM])
--- a/modules/ceill
+++ b/modules/ceill
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_CEILL
+if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then
+  AC_LIBOBJ([ceill])
+fi
 gl_MATH_MODULE_INDICATOR([ceill])
 
 Makefile.am: