summaryrefslogtreecommitdiffstats
path: root/main/wine/wine-isinf-isnan.patch
blob: e97586c8f063b4d1f0a7bedd3dbd053aae5491bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./configure.ac.orig
+++ ./configure.ac
@@ -2327,6 +2327,8 @@
 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 @@
 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