summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-11-19 14:29:56 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2020-11-19 14:29:56 +0000
commit94e91aa0e60551ebfe1c236176f455761909df7c (patch)
treeec47b04c4b85494b7a359b60ef6abc77623d41a8 /configure.ac
parent9c7fd727cf375974894624674a561c0adf12aa6e (diff)
Update libcap support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1fb6f61..95019eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,12 @@ AC_ARG_ENABLE(libgeoip,
[AC_SEARCH_LIBS(GeoIP_id_by_ipnum_v6_gl, GeoIP,
[AC_DEFINE(HAVE_LIBGEOIP, 1, [Define to 1 if libGeoIP (-lGeoIP) is available.])])])], [])
+AC_ARG_ENABLE(libcap,
+ [AS_HELP_STRING([--disable-libcap],[Disable libcap support])], [],
+ [AC_CHECK_HEADER(sys/capability.h,
+ [AC_SEARCH_LIBS(cap_from_text, cap,
+ [AC_DEFINE(HAVE_LIBCAP, 1, [Define to 1 if libcap (-lcap) is available.])])])], [])
+
AX_CHECK_OPENSSL
AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],