Francois Gouget : configure: Fix the isinf() detection. Fixes compilation on Solaris.

Alexandre Julliard julliard at winehq.org
Thu Jun 26 14:50:21 CDT 2008


Module: wine
Branch: master
Commit: 2fef93a857c50ec6df129e20055ecd3d4c3edd77
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2fef93a857c50ec6df129e20055ecd3d4c3edd77

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Jun 26 15:59:05 2008 +0200

configure: Fix the isinf() detection. Fixes compilation on Solaris.

---

 configure    |    2 +-
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 40365dc..2f13aa8 100755
--- a/configure
+++ b/configure
@@ -21374,7 +21374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 int
 main ()
 {
-float f = 0.0; isinf(f)
+float f = 0.0; int i=isinf(f)
   ;
   return 0;
 }
diff --git a/configure.ac b/configure.ac
index a3bf985..8695b89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1612,7 +1612,7 @@ fi
 
 dnl Check for isinf
 AC_CACHE_CHECK([for isinf], ac_cv_have_isinf,
-               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
+               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
 if test "$ac_cv_have_isinf" = "yes"
 then
     AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])




More information about the wine-cvs mailing list