~emersion/basu

660a68b412da2d8ffce633eb94d5b654027f45b8 — Arsen Arsenović 3 years ago c39b85b
meson: convert audit option to feature object

features are more idiomatic and ubiquitous
2 files changed, 3 insertions(+), 10 deletions(-)

M meson.build
M meson_options.txt
M meson.build => meson.build +2 -9
@@ 235,15 235,8 @@ libcap = dependency('libcap', required: get_option('libcap'))
have_libcap = libcap.found()
conf.set10('HAVE_LIBCAP', have_libcap)

want_audit = get_option('audit')
if want_audit != 'false'
        libaudit = dependency('audit', required : want_audit == 'true')
        have = libaudit.found()
else
        have = false
        libaudit = []
endif
conf.set10('HAVE_AUDIT', have)
libaudit = dependency('audit', required : get_option('audit'))
conf.set10('HAVE_AUDIT', libaudit.found())

tests = []


M meson_options.txt => meson_options.txt +1 -1
@@ 12,7 12,7 @@ option('system-bus-address', type : 'string',
       description : 'The address of the sytem bus (defined at dbus compilation)',
       value : 'unix:path=/var/run/dbus/system_bus_socket')

option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
option('audit', type : 'feature',
       description : 'libaudit support')

option('libcap', type : 'feature',