changeset 14990:8eed7b940300

isfinite: Move AC_LIBOBJ invocations to module description. * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here... * modules/isfinite (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Mon, 09 May 2011 00:46:17 +0200
parents 2f5bc02c2203
children 0e4f31ef0033
files ChangeLog m4/isfinite.m4 modules/isfinite
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	isfinite: Move AC_LIBOBJ invocations to module description.
+	* m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
+	* modules/isfinite (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	isblank: Move AC_LIBOBJ invocations to module description.
--- a/m4/isfinite.m4
+++ b/m4/isfinite.m4
@@ -1,4 +1,4 @@
-# isfinite.m4 serial 8
+# isfinite.m4 serial 9
 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,
@@ -27,7 +27,7 @@
   if test "$ac_cv_have_decl_isfinite" != yes ||
      test "$ISFINITE_LIBM" = missing; then
     REPLACE_ISFINITE=1
-    AC_LIBOBJ([isfinite])
+    dnl No libraries are needed to link lib/isfinite.c.
     ISFINITE_LIBM=
   fi
   AC_SUBST([ISFINITE_LIBM])
--- a/modules/isfinite
+++ b/modules/isfinite
@@ -15,6 +15,9 @@
 
 configure.ac:
 gl_ISFINITE
+if test $REPLACE_ISFINITE = 1; then
+  AC_LIBOBJ([isfinite])
+fi
 gl_MATH_MODULE_INDICATOR([isfinite])
 
 Makefile.am: