diff options
author | Mike Frysinger | 2016-04-07 18:17:43 +0200 |
---|---|---|
committer | Karel Zak | 2016-04-12 11:33:15 +0200 |
commit | 801afcb09b11ee8e37959bac1f4c85a290780f4c (patch) | |
tree | 0ab1f8f3be80b77c4948bb61cd2bfe7eedaea141 /configure.ac | |
parent | build-sys: add --disable-logger and --disable-lslogins (diff) | |
download | kernel-qcow2-util-linux-801afcb09b11ee8e37959bac1f4c85a290780f4c.tar.gz kernel-qcow2-util-linux-801afcb09b11ee8e37959bac1f4c85a290780f4c.tar.xz kernel-qcow2-util-linux-801afcb09b11ee8e37959bac1f4c85a290780f4c.zip |
build-sys: fix cap-ng configure flag handling
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
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]) ]) |