[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kjs
From: Hasso Tepper <hasso () kde ! org>
Date: 2007-05-22 9:00:08
Message-ID: 1179824408.821416.28952.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 667229 by hasso:
Fix the tests. With previous tests actual calls were optimized away
with some compilers causing errors in platforms where there is no
isnan() and/or isinf().
Thanks to Joerg Sonnenberger for pointers.
M +4 -2 configure.in.in
--- branches/KDE/3.5/kdelibs/kjs/configure.in.in #667228:667229
@@ -16,7 +16,8 @@
LIBS="-lm"
AC_MSG_CHECKING([for isnan with <math.h>])
AC_TRY_LINK(
- [#include <math.h>], [float f = 0.0; isnan(f)],
+ [#include <math.h>
+ float f;], [return isnan(f)],
[AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_FUNC_ISNAN], [1], [Define if you have isnan])],
AC_MSG_RESULT(no)
@@ -29,7 +30,8 @@
LIBS="-lm"
AC_MSG_CHECKING([for isinf with <math.h>])
AC_TRY_LINK(
- [#include <math.h>], [float f = 0.0; isinf(f)],
+ [#include <math.h>
+ float f;], [return isinf(f)],
[AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_FUNC_ISINF], [1], [Define if you have isinf])],
AC_MSG_RESULT(no)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic