Code

include math.h when compileing
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 10 Aug 2009 11:48:10 +0000 (11:48 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 10 Aug 2009 11:48:10 +0000 (11:48 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1888 a5681a0c-68f1-0310-ab6d-d61299d08faa

m4/acinclude.m4

index d207abbe2b35d5939d2960071e63b8156fe61e82..dff8026d066f3e42443cdab1c89b2c1f07d39321 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;