]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Don't test X11 autolaunching if it was disabled at compile time
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 9 Nov 2016 18:44:21 +0000 (18:44 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 22 Nov 2016 19:27:43 +0000 (19:27 +0000)
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98665

configure.ac
test/Makefile.am

index b75a106295536dbb6f767e517802a43f09b02e2c..4899ef0c1458b88272a343f52103eb847d55e240 100644 (file)
@@ -1336,6 +1336,8 @@ fi
 if test "x$enable_x11_autolaunch" = xyes ; then
    AC_DEFINE([DBUS_ENABLE_X11_AUTOLAUNCH], [1], [Define to enable X11 auto-launch])
 fi
+AM_CONDITIONAL([DBUS_ENABLE_X11_AUTOLAUNCH],
+  [test "x$enable_x11_autolaunch" = xyes])
 
 AC_SUBST([DBUS_X_CFLAGS])
 AC_SUBST([DBUS_X_LIBS])
index 7f4cdd086dc73523e3bf8087eabe95ec1c90f3ce..914dd7f2fe5e1394b8a19f62d426b84dfe2c960c 100644 (file)
@@ -172,8 +172,13 @@ dist_installable_test_scripts += \
 if DBUS_ENABLE_EMBEDDED_TESTS
 dist_installable_test_scripts += \
        test-dbus-launch-eval.sh \
+       $(NULL)
+
+if DBUS_ENABLE_X11_AUTOLAUNCH
+dist_installable_test_scripts += \
        test-dbus-launch-x11.sh \
        $(NULL)
+endif DBUS_ENABLE_X11_AUTOLAUNCH
 endif DBUS_ENABLE_EMBEDDED_TESTS
 
 endif DBUS_UNIX