projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare for the release of rrdtool-1.4.2
[rrdtool.git]
/
m4
/
acinclude.m4
diff --git
a/m4/acinclude.m4
b/m4/acinclude.m4
index
f1b6119
..
01eb4a4
100644
(file)
--- a/
m4/acinclude.m4
+++ b/
m4/acinclude.m4
@@
-363,13
+363,13
@@
AC_CACHE_VAL([rd_cv_ieee_$2],
#endif
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
#endif
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
-#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
+#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS)
&& defined(FP_SNAN) && defined(FP_QNAN)
)
# undef isnan
# define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
#endif
/* Digital UNIX */
# undef isnan
# define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
#endif
/* Digital UNIX */
-#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
+#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)
&& defined(FP_NEG_INF) && defined( FP_POS_INF)
)
# define HAVE_ISINF 1
# define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
#endif
# define HAVE_ISINF 1
# define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
#endif
@@
-390,6
+390,10
@@
AC_CACHE_VAL([rd_cv_ieee_$2],
# define isinf(a) (fpclassify(a) == FP_INFINITE)
#endif
# 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;
#include <stdio.h>
int main(void){
double rrdnan,rrdinf,rrdc,rrdzero;