Diff between 314cf642223e3bd2c317057ebfcdc36df6b22c4d and 65f10c8537f794314c0055764d70d474d79cd558

Changed Files

File Additions Deletions Status
Makefile.am +4 -0 modified
configure.ac +2 -0 modified

Full Patch

diff --git a/Makefile.am b/Makefile.am
index a9373e6..9e94648 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -419,6 +419,10 @@ endif
 TESTS = $(unit_tests)
 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
 
+if DBUS_RUN_SESSION
+AM_TESTS_ENVIRONMENT += dbus-run-session --
+endif
+
 pkgconfigdir = $(libdir)/pkgconfig
 
 if LIBRARY
diff --git a/configure.ac b/configure.ac
index 1016ee4..d632657 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,8 +34,10 @@ AC_PROG_LIBTOOL
 
 if (test "$USE_MAINTAINER_MODE" = "yes"); then
 	AC_CHECK_PROG(enable_coverage, [lcov], [yes], [no])
+	AC_CHECK_PROG(enable_dbus_run_session, [dbus-run-session], [yes])
 fi
 AM_CONDITIONAL(COVERAGE, test "${enable_coverage}" = "yes")
+AM_CONDITIONAL(DBUS_RUN_SESSION, test "${enable_dbus_run_session}" = "yes")
 
 MISC_FLAGS