changeset 14991:0e4f31ef0033

isinf: Move AC_LIBOBJ invocations to module description. * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here... * modules/isinf (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Mon, 09 May 2011 00:48:43 +0200
parents 8eed7b940300
children b9ba4973335a
files ChangeLog m4/isinf.m4 modules/isinf
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>
+
+	isinf: Move AC_LIBOBJ invocations to module description.
+	* m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
+	* modules/isinf (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	isfinite: Move AC_LIBOBJ invocations to module description.
--- a/m4/isinf.m4
+++ b/m4/isinf.m4
@@ -1,4 +1,4 @@
-# isinf.m4 serial 3
+# isinf.m4 serial 4
 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,
@@ -24,7 +24,7 @@
   if test "$ac_cv_have_decl_isinf" != yes ||
      test "$ISINF_LIBM" = missing; then
     REPLACE_ISINF=1
-    AC_LIBOBJ([isinf])
+    dnl No libraries are needed to link lib/isinf.c.
     ISINF_LIBM=
   fi
   AC_SUBST([ISINF_LIBM])
--- a/modules/isinf
+++ b/modules/isinf
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_ISINF
+if test $REPLACE_ISINF = 1; then
+  AC_LIBOBJ([isinf])
+fi
 gl_MATH_MODULE_INDICATOR([isinf])
 
 Makefile.am: