+ if test x$PRINT = xgtk -a x$enable_gtk_print = xyes; then
+ enable_print=gtk
+ else
+ if test x$PRINT = xauto; then
+ if test x$enable_gtk_print = xyes; then
+ enable_print=gtk
+ else
+ if test x$enable_gnome_print = xyes; then
+ enable_print=gnome
+ fi
+ fi
+ fi
+ fi
+fi
+
+if test x$enable_print = xgnome; then
+ AC_SUBST(GNOME_PRINT_CFLAGS)
+ AC_SUBST(GNOME_PRINT_LIBS)
+ AC_DEFINE([WITH_GNOME_PRINT],[1],[Enable GNOME Print Support.])
+ AC_DEFINE([WITH_PRINT],[1],[Enable Print Support.])
+fi
+
+if test x$enable_print = xgtk; then
+ AC_SUBST(GTK_PRINT_CFLAGS)
+ AC_SUBST(GTK_PRINT_LIBS)
+ AC_DEFINE([WITH_GTK_PRINT],[1],[Enable GTK Print Support.])
+ AC_DEFINE([WITH_PRINT],[1],[Enable Print Support.])
+fi
+
+AM_CONDITIONAL(WITH_GNOME_PRINT, test x$enable_print = xgnome)
+AM_CONDITIONAL(WITH_GTK_PRINT, test x$enable_print = xgtk)
+
+
+dnl ========= Check for DBUS
+PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED],
+ [enable_dbus=yes],[enable_dbus=no])
+AC_SUBST([DBUS_CFLAGS])
+AC_SUBST([DBUS_LIBS])
+
+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])