X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fisnanf.m4;h=388e6c049c3b53248dd903367ff25a9950af09a9;hb=606dd130bdce412935eca78598923720a7e346c4;hp=03ab66b1e8248b12cfe9a138f6253db6e1cc9866;hpb=5459c1d28604293ebb0dcf929b72410b00263709;p=gnulib.git diff --git a/m4/isnanf.m4 b/m4/isnanf.m4 index 03ab66b1e..388e6c049 100644 --- a/m4/isnanf.m4 +++ b/m4/isnanf.m4 @@ -1,4 +1,4 @@ -# isnanf.m4 serial 2 +# isnanf.m4 serial 4 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -13,7 +13,11 @@ AC_DEFUN([gl_FUNC_ISNANF_NO_LIBM], gl_ISNANF_WORKS fi if test $gl_cv_func_isnanf_no_libm = yes \ - && test $gl_cv_func_isnanf_works = yes; then + && { case "$gl_cv_func_isnanf_works" in + *yes) true;; + *) false;; + esac + }; then AC_DEFINE([HAVE_ISNANF_IN_LIBC], 1, [Define if the isnan(float) function is available in libc.]) else @@ -46,7 +50,7 @@ AC_DEFUN([gl_ISNANF_WORKS], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles - AC_CACHE_CHECK([whether isnanf works], [gl_cv_func_isnanf_works], + AC_CACHE_CHECK([whether isnan(float) works], [gl_cv_func_isnanf_works], [ AC_TRY_RUN([ #include @@ -153,7 +157,7 @@ int main () ], [gl_cv_cc_float_expbit0=`cat conftest.out`], [gl_cv_cc_float_expbit0="unknown"], - [gl_cv_cc_double_expbit0="word 0 bit 23"]) + [gl_cv_cc_float_expbit0="word 0 bit 23"]) rm -f conftest.out ]) case "$gl_cv_cc_float_expbit0" in