X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=9d49d915675602c1ae5238172932837a897aa737;hb=a2c3d69ed4116206ca4fd67133dd52028a5ff29a;hp=ab6f2298072e603708f14f70ab942aff61a9d278;hpb=877672d20fcf0ed25f5fc5faa8aa3964c622bc27;p=collectd.git diff --git a/configure.ac b/configure.ac index ab6f2298..9d49d915 100644 --- a/configure.ac +++ b/configure.ac @@ -835,12 +835,18 @@ AC_CHECK_HEADERS(sys/capability.h, [have_capability="yes"], [have_capability="no ( not found)"]) if test "x$have_capability" = "xyes"; then -AC_CHECK_LIB(cap, cap_get_bound, +AC_CHECK_LIB(cap, cap_get_proc, [have_capability="yes"], - [have_capability="no (cap_get_bound() not found)"]) + [have_capability="no (cap_get_proc() not found)"]) fi if test "x$have_capability" = "xyes"; then - AC_DEFINE(HAVE_CAPABILITY, 1, [Define to 1 if you have cap_get_bound() (-lcap).]) +AC_CHECK_DECL([CAP_IS_SUPPORTED], + [have_capability="yes"], + [have_capability="no (CAP_IS_SUPPORTED not found)"], + [[#include ]]) +fi +if test "x$have_capability" = "xyes"; then + AC_DEFINE(HAVE_CAPABILITY, 1, [Define to 1 if you have cap_get_proc() (-lcap).]) fi AM_CONDITIONAL(BUILD_WITH_CAPABILITY, test "x$have_capability" = "xyes")