build: make polkit optional again for sysprof-cli

This commit is contained in:
Christian Hergert
2020-11-16 14:57:04 -08:00
parent 6e4413d3aa
commit 04eacbcfe2
5 changed files with 26 additions and 14 deletions

View File

@ -71,6 +71,12 @@ config_h.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h'))
config_h.set('HAVE_STRLCPY', cc.has_function('strlcpy'))
config_h.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray'))
polkit_agent_dep = dependency('polkit-agent-1', required: false)
polkit_dep = dependency('polkit-gobject-1', version: polkit_req_version, required: false)
config_h.set10('HAVE_POLKIT_AGENT', polkit_agent_dep.found())
config_h.set10('HAVE_POLKIT', polkit_dep.found())
if get_option('libunwind')
libunwind_dep = dependency('libunwind-generic', required: false)
config_h.set('ENABLE_LIBUNWIND', libunwind_dep.found())