changeset 15010:f7ff26fc8b4c

roundf: Move AC_LIBOBJ invocations to module description. * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here... * modules/roundf (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:23:03 +0200
parents 2917eb19f982
children 6329fc5866f9
files ChangeLog m4/roundf.m4 modules/roundf
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>
+
+	roundf: Move AC_LIBOBJ invocations to module description.
+	* m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
+	* modules/roundf (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	truncl: Move AC_LIBOBJ invocations to module description.
--- a/m4/roundf.m4
+++ b/m4/roundf.m4
@@ -1,4 +1,4 @@
-# roundf.m4 serial 10
+# roundf.m4 serial 11
 dnl Copyright (C) 2007-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,
@@ -89,7 +89,7 @@
     HAVE_DECL_ROUNDF=0
   fi
   if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
-    AC_LIBOBJ([roundf])
+    dnl Find libraries needed to link lib/roundf.c.
     AC_CHECK_DECLS([ceilf, floorf], , , [#include <math.h>])
     if test "$ac_cv_have_decl_floorf" = yes \
        && test "$ac_cv_have_decl_ceilf" = yes; then
--- a/modules/roundf
+++ b/modules/roundf
@@ -16,6 +16,9 @@
 
 configure.ac:
 gl_FUNC_ROUNDF
+if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
+  AC_LIBOBJ([roundf])
+fi
 gl_MATH_MODULE_INDICATOR([roundf])
 
 Makefile.am: