summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-07 12:17:43 -0400
committerKarel Zak <kzak@redhat.com>2016-04-12 11:33:15 +0200
commit801afcb09b11ee8e37959bac1f4c85a290780f4c (patch)
tree0ab1f8f3be80b77c4948bb61cd2bfe7eedaea141
parent50e6f15bb3e81561465d06053b0d9fb9742291b2 (diff)
downloadutil-linux-801afcb09b11ee8e37959bac1f4c85a290780f4c.tar.gz
build-sys: fix cap-ng configure flag handling
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e42a2c4fd..9e0e28bc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1186,10 +1186,13 @@ AC_CHECK_FUNCS([setns])
AC_ARG_WITH([cap_ng],
- AS_HELP_STRING([--without-capng], [compile without libcap-ng]),
+ AS_HELP_STRING([--without-cap-ng], [compile without libcap-ng]),
[], [with_cap_ng=auto]
)
-AS_IF([test "x$with_cap_ng" = xno], [have_cap_ng=no],[
+AS_IF([test "x$with_cap_ng" = xno], [
+ AM_CONDITIONAL([HAVE_CAP_NG], [false])
+ have_cap_ng=no
+],[
UL_CHECK_LIB([cap-ng], [capng_apply], [cap_ng])
])