polkit is only useful on Linux systems
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
m4/virt-polkit.m4 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/m4/virt-polkit.m4 b/m4/virt-polkit.m4
index 16889e1639..06da9e4ba6 100644
--- a/m4/virt-polkit.m4
+++ b/m4/virt-polkit.m4
@@ -25,6 +25,10 @@ AC_DEFUN([LIBVIRT_ARG_POLKIT], [
AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
AC_REQUIRE([LIBVIRT_CHECK_DBUS])
+ if test "x$with_win" = "xyes"; then
+ with_polkit=no
+ fi
+
if test "x$with_polkit" = "xcheck"; then
dnl For --with-polkit=check, also require the pkcheck binary, even
dnl though we talk to polkit directly over D-Bus.
--
2.24.1