]> granicus.if.org Git - postgis/commitdiff
Make the two-line decl check work
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 1 Aug 2014 23:17:00 +0000 (23:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 1 Aug 2014 23:17:00 +0000 (23:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12856 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index a63adee57e6411d57ecad0ccc3e475b08b375189..4d7d7db0024dec5123e2ce7901cdf07fc50b6418 100644 (file)
@@ -125,10 +125,16 @@ AC_CHECK_DECL(isfinite,
   [],
   [#include <math.h>])
 
+dnl Clear the cache
+unset ac_cv_have_decl_isfinite
+
 AC_CHECK_DECL(isfinite,
   AC_DEFINE([HAVE_GNU_ISFINITE]),
   [],
-  [[#define _GNU_SOURCE],[#include <math.h>]])
+  [[
+    #define _GNU_SOURCE 
+    #include <math.h>
+  ]])
 
 dnl 
 dnl MingW requires use of pwd -W to give proper Windows (not MingW) paths