Module: wine
Branch: master
Commit: 3b11f79b7b74e3d5f24db33173d6c5600e2e4b06
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3b11f79b7b74e3d5f24db3317…
Author: Natanael Copa <ncopa(a)alpinelinux.org>
Date: Wed Jul 6 08:58:01 2011 +0000
configure: Test for isinf and isnan needs link to -lm.
---
configure | 3 +++
configure.ac | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 61efbd9..2694c59 100755
--- a/configure
+++ b/configure
@@ -14270,6 +14270,8 @@ $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
fi
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS -lm"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
$as_echo_n "checking for isinf... " >&6; }
if ${ac_cv_have_isinf+:} false; then :
@@ -14335,6 +14337,7 @@ then
$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
fi
+LIBS="$ac_save_LIBS"
case $host_cpu in
diff --git a/configure.ac b/configure.ac
index 3d493cf..dccc4d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2327,6 +2327,8 @@ then
fi
dnl Check for isinf
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS -lm"
AC_CACHE_CHECK([for isinf], ac_cv_have_isinf,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
if test "$ac_cv_have_isinf" = "yes"
@@ -2341,6 +2343,7 @@ if test "$ac_cv_have_isnan" = "yes"
then
AC_DEFINE(HAVE_ISNAN, 1, [Define to 1 if you have the `isnan' function.])
fi
+LIBS="$ac_save_LIBS"
dnl *** check for the need to define platform-specific symbols