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',