From 4011599466b8247ced0b6400b72e16620636d0fc Mon Sep 17 00:00:00 2001 From: Eric Stanley Date: Fri, 10 Feb 2012 10:27:24 -0600 Subject: Enable compiling on AIX 6.1 --- configure.in | 2 ++ plugins/common.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index bdd44314..1d16bcd1 100644 --- a/configure.in +++ b/configure.in @@ -162,6 +162,8 @@ dnl dnl check for math-related functions needing -lm AC_CHECK_HEADERS(math.h) AC_CHECK_LIB(m,floor,MATHLIBS="-lm") +AC_CHECK_HEADERS(mp.h) +AC_CHECK_LIB(bsd,pow,MATHLIBS="$MATHLIBS -lbsd") AC_SUBST(MATHLIBS) dnl Check if we buils local libtap diff --git a/plugins/common.h b/plugins/common.h index dfc09416..09af7e7e 100644 --- a/plugins/common.h +++ b/plugins/common.h @@ -59,6 +59,12 @@ #include #endif +#ifdef _AIX +#ifdef HAVE_MP_H +#include +#endif +#endif + #ifdef HAVE_STRINGS_H #include #endif -- cgit v1.2.3-74-g34f1