M meson.build => meson.build +1 -1
@@ 231,7 231,7 @@ threads = dependency('threads')
librt = cc.find_library('rt')
libm = cc.find_library('m')
-libcap = dependency('libcap', required: false)
+libcap = dependency('libcap', required: get_option('libcap'))
have_libcap = libcap.found()
conf.set10('HAVE_LIBCAP', have_libcap)
M meson_options.txt => meson_options.txt +3 -0
@@ 14,3 14,6 @@ option('system-bus-address', type : 'string',
option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'libaudit support')
+
+option('libcap', type : 'feature',
+ description : 'libcap support')