diff options
author | Christian Persch <chpe@gnome.org> | 2009-06-06 13:07:29 (GMT) |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2009-06-11 21:41:44 (GMT) |
commit | bd3cac726fa7c739a146f5ca68fc33e36d4c1132 (patch) | |
tree | d5794d32cc096ade0b1ab88f266f98c784862672 | |
parent | 339427ecf1d397e8d50fd97d2bc85db3181e32b0 (diff) |
Disable single instance by DBUS for hildon platform
And remove the dbus-binding-tool NO_PREFIX check (very old version).
-rw-r--r-- | configure.ac | 46 | ||||
-rw-r--r-- | shell/Makefile.am | 5 |
2 files changed, 23 insertions, 28 deletions
diff --git a/configure.ac b/configure.ac index a023e36..6a8a694 100644 --- a/configure.ac +++ b/configure.ac @@ -232,34 +232,34 @@ fi GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) -dnl ========= Check for DBUS -AC_ARG_ENABLE(dbus, - [AC_HELP_STRING([--enable-dbus], [Compile with support for dbus])], - enable_dbus="$enableval",enable_dbus=yes) -if test "x$enable_dbus" != "xno"; then - PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED], - [enable_dbus=yes],[enable_dbus=no]) - - if test "x$enable_dbus" = "xno"; then - AC_MSG_WARN([DBUS support is disabled since dbus $DBUS_GLIB_REQUIRED or higher was not found]) - fi - - if test "x$enable_dbus" = "xyes" ; then - AC_PATH_PROG([DBUS_BINDING_TOOL], [dbus-binding-tool], [no]) - - if test x$DBUS_BINDING_TOOL = "xno" ; then - AC_MSG_ERROR([dbus-binding-tool executable not found in your path - should be installed with dbus glib bindings]) - fi - - AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled]) - fi +# **** +# DBUS +# **** + +AC_ARG_ENABLE([dbus], + [AS_HELP_STRING([--enable-dbus], [Compile with support for dbus])], + [], + [case "$with_platform" in + gnome) enable_dbus=yes ;; + hildon) enable_dbus=no ;; + esac]) + +if test "$enable_dbus" = "yes"; then + PKG_CHECK_MODULES([DBUS],[dbus-glib-1 >= $DBUS_GLIB_REQUIRED],[], + [AC_MSG_ERROR([DBUS not found; use --disable-dbus to disable DBUS support])]) + + AC_PATH_PROG([DBUS_BINDING_TOOL], [dbus-binding-tool], [no]) + if test x$DBUS_BINDING_TOOL = "xno" ; then + AC_MSG_ERROR([dbus-binding-tool executable not found in your path - should be installed with dbus glib bindings]) + fi + + AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled]) fi AC_SUBST([DBUS_CFLAGS]) AC_SUBST([DBUS_LIBS]) -AM_CONDITIONAL([ENABLE_DBUS], [test "x$enable_dbus" = "xyes"]) -AM_CONDITIONAL([DBUS_TOOL_NO_PREFIX], [test "x$DBUS_VERSION" = "x33"]) +AM_CONDITIONAL([ENABLE_DBUS], [test "$enable_dbus" = "yes"]) dnl ========= Check for GConf diff --git a/shell/Makefile.am b/shell/Makefile.am index 0262c37..0594ac9 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -121,10 +121,5 @@ ev-marshal.c: $(srcdir)/ev-marshal.list DISTCLEANFILES= \ ev-application-service.h -if DBUS_TOOL_NO_PREFIX -ev-application-service.h: $(srcdir)/ev-application-service.xml - $(QUIET_GEN)dbus-binding-tool --mode=glib-server --output=ev-application-service.h $(srcdir)/ev-application-service.xml -else ev-application-service.h: $(srcdir)/ev-application-service.xml $(QUIET_GEN)dbus-binding-tool --prefix=ev_application --mode=glib-server --output=ev-application-service.h $(srcdir)/ev-application-service.xml -endif |