changeset 15012:61a8e016e080

roundl: Move AC_LIBOBJ invocations to module description. * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here... * modules/roundl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:27:30 +0200
parents 6329fc5866f9
children 8836800a98a0
files ChangeLog m4/roundl.m4 modules/roundl
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>
+
+	roundl: Move AC_LIBOBJ invocations to module description.
+	* m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
+	* modules/roundl (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	round: Move AC_LIBOBJ invocations to module description.
--- a/m4/roundl.m4
+++ b/m4/roundl.m4
@@ -1,4 +1,4 @@
-# roundl.m4 serial 8
+# roundl.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,
@@ -54,7 +54,7 @@
     HAVE_DECL_ROUNDL=0
   fi
   if test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
-    AC_LIBOBJ([roundl])
+    dnl Find libraries needed to link lib/roundl.c.
     AC_CHECK_DECLS([ceill, floorl], , , [#include <math.h>])
     if test "$ac_cv_have_decl_floorl" = yes \
        && test "$ac_cv_have_decl_ceill" = yes; then
--- a/modules/roundl
+++ b/modules/roundl
@@ -16,6 +16,9 @@
 
 configure.ac:
 gl_FUNC_ROUNDL
+if test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
+  AC_LIBOBJ([roundl])
+fi
 gl_MATH_MODULE_INDICATOR([roundl])
 
 Makefile.am: