From: Ruben Kerkhof Date: Fri, 24 Feb 2017 16:42:59 +0000 (+0100) Subject: look for cap_get_proc instead of cap_get_bound X-Git-Tag: collectd-5.7.2~10^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6cb7fdcc48e913ee293f27a6f16a3acc0c1bab05;p=collectd.git look for cap_get_proc instead of cap_get_bound a2ddc38 switched the capability check from cap_get_bound() to cap_get_proc() --- diff --git a/configure.ac b/configure.ac index a4603a9b..3d74fd05 100644 --- a/configure.ac +++ b/configure.ac @@ -813,12 +813,12 @@ 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_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")