From: oetiker Date: Sat, 8 Dec 2007 22:17:25 +0000 (+0000) Subject: fixing the solaris build X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45a83050b03f175c97295d5083190658f69f310b;p=rrdtool.git fixing the solaris build git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1254 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/configure.ac b/configure.ac index e3d16d7..aa8c520 100644 --- a/configure.ac +++ b/configure.ac @@ -194,12 +194,15 @@ char *strchr (), *strrchr (); /* for Solaris */ #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS)) # define HAVE_ISINF 1 +# ifdef isinf +# undef isinf /* confuse autoconf */ +# endif # 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)) -# undefine isnan +# undef isnan /* confuse autoconf to NOT remove this */ # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN) #endif