config BR2_PACKAGE_POLKIT
	bool "polkit"
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, dbus
	depends on BR2_USE_MMU # libglib2, dbus
	depends on BR2_USE_WCHAR # libglib2
	depends on !BR2_STATIC_LIBS # duktape
	depends on !BR2_OPTIMIZE_FAST # duktape
	select BR2_PACKAGE_DBUS # runtime
	select BR2_PACKAGE_DUKTAPE
	select BR2_PACKAGE_EXPAT
	select BR2_PACKAGE_LIBGLIB2
	help
	  PolicyKit is a toolkit for defining and handling
	  authorizations. It is used for allowing unprivileged
	  processes to speak to privileged processes.

	  http://www.freedesktop.org/wiki/Software/polkit

comment "polkit needs a toolchain with dynamic library, wchar, threads, gcc >= 7"
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS

comment "polkit can't be built with Optimize for fast"
	depends on BR2_OPTIMIZE_FAST
