From 801afcb09b11ee8e37959bac1f4c85a290780f4c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 7 Apr 2016 12:17:43 -0400 Subject: build-sys: fix cap-ng configure flag handling Signed-off-by: Mike Frysinger --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure.ac') 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]) ]) -- cgit v1.2.3-55-g7522