From c857c880f31a89b7857bf01f1f48227c41bf8a93 Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Mon, 31 Aug 2020 16:01:59 +0300 Subject: Don't install eBPF plugin components when they shouldn't be installed (#9844) --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b3ff4ba785..190f3cd50a 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,12 @@ AC_ARG_ENABLE( , [enable_jsonc="detect"] ) +AC_ARG_ENABLE( + [ebpf], + [AS_HELP_STRING([--disable-ebpf], [Disable eBPF support @<:@default autodetect@:>@])], + , + [enable_ebpf="detect"] +) # ----------------------------------------------------------------------------- # Check if cloud is enabled and if the functionality is available @@ -968,6 +974,7 @@ AC_CHECK_FILE( AC_MSG_CHECKING([if ebpf.plugin should be enabled]) if test "${build_target}" = "linux" -a \ + "${enable_ebpf}" != "no" -a \ "${have_libelf}" = "yes" -a \ "${have_bpf}" = "yes" -a \ "${have_libbpf}" = "yes"; then -- cgit v1.2.3