mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
Do not check for pkcheck
All we need is D-Bus. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0d4b988b3e
commit
2499d1a095
@ -25,16 +25,8 @@ AC_DEFUN([LIBVIRT_ARG_POLKIT], [
|
||||
AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
|
||||
AC_REQUIRE([LIBVIRT_CHECK_DBUS])
|
||||
|
||||
PKCHECK_PATH=
|
||||
|
||||
if test "x$with_polkit" = "xyes" || test "x$with_polkit" = "xcheck"; then
|
||||
dnl Check for new polkit first. We directly talk over DBus
|
||||
dnl but we use existence of pkcheck binary as a sign that
|
||||
dnl we should prefer polkit-1 over polkit-0, so we check
|
||||
dnl for it even though we don't ultimately use it
|
||||
AC_PATH_PROG([PKCHECK_PATH], [pkcheck], [], [$LIBVIRT_SBIN_PATH])
|
||||
if test "x$PKCHECK_PATH" != "x" ; then
|
||||
dnl Found pkcheck, so ensure dbus-devel is present
|
||||
dnl All we need to talk to polkit is D-Bus.
|
||||
if test "x$with_dbus" = "xyes" ; then
|
||||
AC_DEFINE_UNQUOTED([WITH_POLKIT], 1,
|
||||
[use PolicyKit for UNIX socket access checks])
|
||||
@ -48,12 +40,10 @@ AC_DEFUN([LIBVIRT_CHECK_POLKIT], [
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([WITH_POLKIT], [test "x$with_polkit" = "xyes"])
|
||||
])
|
||||
|
||||
AC_DEFUN([LIBVIRT_RESULT_POLKIT], [
|
||||
msg="$PKCHECK_PATH (version 1)"
|
||||
LIBVIRT_RESULT([polkit], [$with_polkit], [$msg])
|
||||
LIBVIRT_RESULT([polkit], [$with_polkit])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user