mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 08:48:07 +02:00
Modernize checks for DBUS__ACQUIRE_SVC
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
9bedcb0717
commit
7fe24aacd2
1 changed files with 7 additions and 6 deletions
13
configure.ac
13
configure.ac
|
|
@ -848,12 +848,13 @@ else
|
|||
# see if we have the SELinux header with the new D-Bus stuff in it
|
||||
if test x$have_selinux = xyes ; then
|
||||
AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
|
||||
AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
|
||||
[#ifdef DBUS__ACQUIRE_SVC return 0;
|
||||
#else
|
||||
#error DBUS__ACQUIRE_SVC not defined
|
||||
#endif],
|
||||
have_selinux=yes, have_selinux=no)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <selinux/av_permissions.h>]],
|
||||
[[#ifdef DBUS__ACQUIRE_SVC return 0;
|
||||
#else
|
||||
#error DBUS__ACQUIRE_SVC not defined
|
||||
#endif]])],
|
||||
[have_selinux=yes],
|
||||
[have_selinux=no])
|
||||
AC_MSG_RESULT($have_selinux)
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue