See attached patch. Another option is to just have dbus-glib-1 inside the PKG_CHECK_MODULES(GTK...)
-- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202
From 747fa80e1b45209d9b8930743a7cb91434c36e01 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri <barbi...@profusion.mobi> Date: Sun, 14 Nov 2010 08:01:02 -0200 Subject: [PATCH] dbus-glib is just required by gtk's systemadm. do not fail if there is no dbus-glib and we're not building the gtk frontend. --- configure.ac | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 12cdb0c..fc0fc90 100644 --- a/configure.ac +++ b/configure.ac @@ -112,10 +112,6 @@ PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ]) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) -PKG_CHECK_MODULES(DBUSGLIB, [ dbus-glib-1 ]) -AC_SUBST(DBUSGLIB_CFLAGS) -AC_SUBST(DBUSGLIB_LIBS) - have_selinux=no AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support])) if test "x$enable_selinux" != "xno"; then @@ -255,6 +251,12 @@ if test "x$enable_gtk" != "xno"; then fi AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"]) +if test "$have_gtk" = "yes"; then + PKG_CHECK_MODULES(DBUSGLIB, [ dbus-glib-1 ]) + AC_SUBST(DBUSGLIB_CFLAGS) + AC_SUBST(DBUSGLIB_LIBS) +fi + AM_PROG_VALAC([0.9]) AC_SUBST(VAPIDIR) AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x) -- 1.7.2.2
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel