From 308cae2a36b73ea570af86e904528776a47b6e16 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 02:08:40 +0200 Subject: [PATCH] isnand*: Move AC_LIBOBJ invocations to module description. * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ invocation from here... * modules/isnand (configure.ac): ... to here. * modules/isnand-nolibm (configure.ac): ... and here. --- ChangeLog | 8 ++++++++ m4/isnand.m4 | 8 ++------ modules/isnand | 4 ++++ modules/isnand-nolibm | 4 ++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9e939114b..fdbc3e0160 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-20 Bruno Haible + + isnand*: Move AC_LIBOBJ invocations to module description. + * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ + invocation from here... + * modules/isnand (configure.ac): ... to here. + * modules/isnand-nolibm (configure.ac): ... and here. + 2011-05-20 Bruno Haible isnanf*: Move AC_LIBOBJ invocations to module description. diff --git a/m4/isnand.m4 b/m4/isnand.m4 index b000ab526c..2b18b0ac6d 100644 --- a/m4/isnand.m4 +++ b/m4/isnand.m4 @@ -1,4 +1,4 @@ -# isnand.m4 serial 9 +# isnand.m4 serial 10 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,8 +24,6 @@ AC_DEFUN([gl_FUNC_ISNAND], else gl_func_isnand=no HAVE_ISNAND=0 - AC_LIBOBJ([isnand]) - gl_PREREQ_ISNAND fi AC_SUBST([ISNAND_LIBM]) ]) @@ -35,12 +33,10 @@ dnl Check how to get or define isnand() without linking with libm. AC_DEFUN([gl_FUNC_ISNAND_NO_LIBM], [ gl_HAVE_ISNAND_NO_LIBM + gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm if test $gl_cv_func_isnand_no_libm = yes; then AC_DEFINE([HAVE_ISNAND_IN_LIBC], [1], [Define if the isnan(double) function is available in libc.]) - else - AC_LIBOBJ([isnand]) - gl_PREREQ_ISNAND fi ]) diff --git a/modules/isnand b/modules/isnand index c741769d1e..362b1f8226 100644 --- a/modules/isnand +++ b/modules/isnand @@ -15,6 +15,10 @@ memcmp configure.ac: gl_FUNC_ISNAND +if test $HAVE_ISNAND = 0; then + AC_LIBOBJ([isnand]) + gl_PREREQ_ISNAND +fi gl_MATH_MODULE_INDICATOR([isnand]) Makefile.am: diff --git a/modules/isnand-nolibm b/modules/isnand-nolibm index eceabf72fe..dfd587390f 100644 --- a/modules/isnand-nolibm +++ b/modules/isnand-nolibm @@ -15,6 +15,10 @@ memcmp configure.ac: gl_FUNC_ISNAND_NO_LIBM +if test $gl_func_isnand_no_libm != yes; then + AC_LIBOBJ([isnand]) + gl_PREREQ_ISNAND +fi Makefile.am: -- 2.30.2