summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-02-24 15:47:28 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-02-24 15:47:28 +0000
commit7fe24aacd23a1e2bf4b8f89457f4c18baceef198 (patch)
treecca6fb44972049ffffe11840c41e87204821a7a6 /configure.ac
parent9bedcb071720dd506384ece87df06417e8ed3c49 (diff)
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 4ab8b4a1..23d4f2c0 100644
--- a/configure.ac
+++ b/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