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 diff --git a/configure.in b/configure.in index bdd4431..1d16bcd 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 dfc0941..09af7e7 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 v0.10-9-g596f