include math.h when testing IEEE
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 10 Aug 2009 11:47:18 +0000 (11:47 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 10 Aug 2009 11:47:18 +0000 (11:47 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1887 a5681a0c-68f1-0310-ab6d-d61299d08faa

m4/acinclude.m4

index f1b6119..c1e5c4b 100644 (file)
@@ -390,6 +390,10 @@ AC_CACHE_VAL([rd_cv_ieee_$2],
 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
 #endif
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 #include <stdio.h>
 int main(void){
     double rrdnan,rrdinf,rrdc,rrdzero;