From: Bruno Haible Date: Sat, 21 May 2011 00:21:30 +0000 (+0200) Subject: isnan: Respect rules for use of AC_LIBOBJ. X-Git-Tag: v0.1~2530 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=ba07288e32b07a98c79f8812eed7e03daa5b7f26;p=gnulib.git isnan: Respect rules for use of AC_LIBOBJ. * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN* invocations here. * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test REPLACE_ISNAN. * modules/isnand (configure.ac): Likewise. * modules/isnanl (configure.ac): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 3cbbbc502..56de524e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2011-05-20 Bruno Haible + isnan: Respect rules for use of AC_LIBOBJ. + * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN* + invocations here. + * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test + REPLACE_ISNAN. + * modules/isnand (configure.ac): Likewise. + * modules/isnanl (configure.ac): Likewise. + +2011-05-20 Bruno Haible + isnanl*: Respect rules for use of AC_LIBOBJ. * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ invocation from here... diff --git a/m4/isnan.m4 b/m4/isnan.m4 index 0c5e78328..a99cbb3b9 100644 --- a/m4/isnan.m4 +++ b/m4/isnan.m4 @@ -1,4 +1,4 @@ -# isnan.m4 serial 4 +# isnan.m4 serial 5 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, @@ -36,14 +36,8 @@ AC_DEFUN([gl_ISNAN], esac else AC_MSG_RESULT([no]) + dnl REPLACE_ISNAN=1 also makes sure the rpl_isnan[fdl] functions get built. REPLACE_ISNAN=1 - # Make sure the rpl_isnan[fdl] functions get built. - AC_LIBOBJ([isnanf]) - gl_PREREQ_ISNANF - AC_LIBOBJ([isnand]) - gl_PREREQ_ISNAND - AC_LIBOBJ([isnanl]) - gl_PREREQ_ISNANL ISNAN_LIBM= fi AC_SUBST([ISNAN_LIBM]) diff --git a/modules/isnand b/modules/isnand index 362b1f822..1ac796d52 100644 --- a/modules/isnand +++ b/modules/isnand @@ -15,7 +15,10 @@ memcmp configure.ac: gl_FUNC_ISNAND -if test $HAVE_ISNAND = 0; then +m4_ifdef([gl_ISNAN], [ + AC_REQUIRE([gl_ISNAN]) +]) +if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then AC_LIBOBJ([isnand]) gl_PREREQ_ISNAND fi diff --git a/modules/isnanf b/modules/isnanf index a04a8b364..8b9e3a138 100644 --- a/modules/isnanf +++ b/modules/isnanf @@ -15,7 +15,10 @@ memcmp configure.ac: gl_FUNC_ISNANF -if test $HAVE_ISNANF = 0; then +m4_ifdef([gl_ISNAN], [ + AC_REQUIRE([gl_ISNAN]) +]) +if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then AC_LIBOBJ([isnanf]) gl_PREREQ_ISNANF fi diff --git a/modules/isnanl b/modules/isnanl index 01b4417f2..c44b2c9a7 100644 --- a/modules/isnanl +++ b/modules/isnanl @@ -16,7 +16,10 @@ memcmp configure.ac: gl_FUNC_ISNANL -if test $HAVE_ISNANL = 0; then +m4_ifdef([gl_ISNAN], [ + AC_REQUIRE([gl_ISNAN]) +]) +if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then AC_LIBOBJ([isnanl]) gl_PREREQ_ISNANL fi