]> www.fi.muni.cz Git - evince.git/commitdiff
Disable single instance by DBUS for hildon platform
authorChristian Persch <chpe@gnome.org>
Sat, 6 Jun 2009 13:07:29 +0000 (15:07 +0200)
committerChristian Persch <chpe@gnome.org>
Thu, 11 Jun 2009 21:41:44 +0000 (23:41 +0200)
And remove the dbus-binding-tool NO_PREFIX check (very old version).

configure.ac
shell/Makefile.am

index a023e36850891147b37cb4e459eb3b75d70e8f76..6a8a694c54348eb3d7f8ffda88df7626b5b7be79 100644 (file)
@@ -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
 
index 0262c37b31e566b4a1857096dadf3fe908675922..0594ac961a1fe4ee2b15095d4202ec98f9a94447 100644 (file)
@@ -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