roundl: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 09:27:30 +0000 (11:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:20 +0000 (00:06 +0200)
* m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
* modules/roundl (configure.ac): ... to here.

ChangeLog
m4/roundl.m4
modules/roundl

index 08c6d2e..2d245aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
        * modules/round (configure.ac): ... to here.
index 1d25585..790e0fe 100644 (file)
@@ -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 @@ int main()
     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
index 516ee0b..91671f4 100644 (file)
@@ -16,6 +16,9 @@ float           [test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1]
 
 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: