aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in2
-rw-r--r--plugins/common.h6
2 files changed, 8 insertions, 0 deletions
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 <math.h>
#endif
+#ifdef _AIX
+#ifdef HAVE_MP_H
+#include <mp.h>
+#endif
+#endif
+
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif