Code

Merge branch 'collectd-5.6' into collectd-5.7
[collectd.git] / configure.ac
index 366ef9b6ddc2256830862c943303b191b0419084..9d49d915675602c1ae5238172932837a897aa737 100644 (file)
@@ -839,6 +839,12 @@ AC_CHECK_LIB(cap, cap_get_proc,
                  [have_capability="yes"],
                  [have_capability="no (cap_get_proc() not found)"])
 fi
+if test "x$have_capability" = "xyes"; then
+AC_CHECK_DECL([CAP_IS_SUPPORTED],
+                 [have_capability="yes"],
+                 [have_capability="no (CAP_IS_SUPPORTED not found)"],
+                 [[#include <sys/capability.h>]])
+fi
 if test "x$have_capability" = "xyes"; then
   AC_DEFINE(HAVE_CAPABILITY, 1, [Define to 1 if you have cap_get_proc() (-lcap).])
 fi