ceilf: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 08:56:23 +0000 (10:56 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:18 +0000 (00:06 +0200)
* m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
* modules/ceilf (configure.ac): ... to here.

ChangeLog
m4/ceilf.m4
modules/ceilf

index 11ef549..2438f9d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       ceilf: Move AC_LIBOBJ invocations to module description.
+       * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
+       * modules/ceilf (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        floorl: Respect rules for use of AC_LIBOBJ.
        * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
        * modules/floorl (configure.ac): ... to here.
index e7a6a46..9161a51 100644 (file)
@@ -1,4 +1,4 @@
-# ceilf.m4 serial 8
+# ceilf.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 @@ int main()
     HAVE_DECL_CEILF=0
   fi
   if test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1; then
-    AC_LIBOBJ([ceilf])
+    dnl No libraries are needed to link lib/ceilf.c.
     CEILF_LIBM=
   fi
   AC_SUBST([CEILF_LIBM])
index beba067..0a01465 100644 (file)
@@ -13,6 +13,9 @@ float           [test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1]
 
 configure.ac:
 gl_FUNC_CEILF
+if test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1; then
+  AC_LIBOBJ([ceilf])
+fi
 gl_MATH_MODULE_INDICATOR([ceilf])
 
 Makefile.am: