diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build index b04c92776c..9b46a7edd8 100644 --- a/meson.build +++ b/meson.build @@ -617,6 +617,21 @@ if smack_run_label != '' m4_defines += ['-DHAVE_SMACK_RUN_LABEL'] endif +want_polkit = get_option('polkit') +install_polkit = false +install_polkit_pkla = false +if want_polkit != 'no' + conf.set('ENABLE_POLKIT', 1) + install_polkit = true + + libpolkit = dependency('polkit-gobject-1', + required : false) + if libpolkit.found() and libpolkit.version().version_compare('< 0.106') + message('Old polkit detected, will install pkla files') + install_polkit_pkla = true + endif +endif + want_audit = get_option('audit') if want_audit != 'no' libaudit = dependency('audit', required : want_audit == 'yes') |