X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fisnanf.m4;h=2ad8f9453658b946c034ec8724018b540bfdb874;hb=740cb7248fef99fc09b575deb650cfe9ecabafbf;hp=289a49bf4fa3445cbeb38a477f1d23558328d9e5;hpb=d581f6d5320f5d7b6d5e4a3ad1ccef7f0f9fb93a;p=gnulib.git diff --git a/m4/isnanf.m4 b/m4/isnanf.m4 index 289a49bf4..2ad8f9453 100644 --- a/m4/isnanf.m4 +++ b/m4/isnanf.m4 @@ -1,5 +1,5 @@ -# isnanf.m4 serial 8 -dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. +# isnanf.m4 serial 10 +dnl Copyright (C) 2007-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,6 +8,7 @@ dnl Check how to get or define isnanf(). AC_DEFUN([gl_FUNC_ISNANF], [ + AC_REQUIRE([gl_MATH_H_DEFAULTS]) ISNANF_LIBM= gl_HAVE_ISNANF_NO_LIBM if test $gl_cv_func_isnanf_no_libm = no; then @@ -29,10 +30,8 @@ AC_DEFUN([gl_FUNC_ISNANF], else gl_func_isnanf=no fi - if test $gl_func_isnanf = yes; then - AC_DEFINE([HAVE_ISNANF], 1, - [Define if the isnan(float) function is available.]) - else + if test $gl_func_isnanf != yes; then + HAVE_ISNANF=0 gl_BUILD_ISNANF fi AC_SUBST([ISNANF_LIBM]) @@ -52,7 +51,7 @@ AC_DEFUN([gl_FUNC_ISNANF_NO_LIBM], *) false;; esac }; then - AC_DEFINE([HAVE_ISNANF_IN_LIBC], 1, + AC_DEFINE([HAVE_ISNANF_IN_LIBC], [1], [Define if the isnan(float) function is available in libc.]) else gl_BUILD_ISNANF