summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87660d3)
raw | patch | inline | side by side (parent: 87660d3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 3 Aug 2006 22:21:37 +0000 (22:21 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 3 Aug 2006 22:21:37 +0000 (22:21 +0000) |
this will replace isnan with an fpclass expression hopefully working around the problem
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@865 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@865 a5681a0c-68f1-0310-ab6d-d61299d08faa
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 56b9532f802ac979f25d84ef3304e913260a47e3..e50796edaa116d13ecec02c53c134ee5bb39e487 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
#endif
+/* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
+#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
+# undef isnan
+# define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
+#endif
+
/* for OSF1 Digital Unix */
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
# define HAVE_ISINF 1