From ba07288e32b07a98c79f8812eed7e03daa5b7f26 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 02:21:30 +0200 Subject: 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. --- modules/isnanf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/isnanf') diff --git a/modules/isnanf b/modules/isnanf index a04a8b364a..8b9e3a1388 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 -- cgit v1.2.1