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=8f4873e3cfbeb446d43e1f8bacc9b6eca0ca7dbe;hp=0034f88ab143193084692ac9a175a0bbbeb1b822;p=rrdtool-all.git fixing the solaris build git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1254 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.ac b/program/configure.ac index e3d16d75..aa8c5203 100644 --- a/program/configure.ac +++ b/program/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