PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0])
fi
+dnl ******************************
+dnl DBus-glib stuff, to initialize thread for GConf, which is using it
+dnl this is returned back only temporarily and wil lbe removed as soon
+dnl as eds will stop using GConf completely
+dnl ******************************
+PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.6)
+AC_SUBST(DBUS_GLIB_CFLAGS)
+AC_SUBST(DBUS_GLIB_LIBS)
+
dnl *******************************
dnl Check for GNOME Online Accounts
dnl *******************************
-I$(top_builddir)/addressbook \
$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
$(FACTORY_GTK_CFLAGS) \
+ $(DBUS_GLIB_CFLAGS) \
$(GOA_CFLAGS) \
$(NULL)
$(top_builddir)/libedataserver/libedataserver-1.2.la \
$(EVOLUTION_ADDRESSBOOK_LIBS) \
$(FACTORY_GTK_LIBS) \
+ $(DBUS_GLIB_LIBS) \
$(GOA_LIBS) \
$(NULL)
#include <stdlib.h>
#include <glib/gi18n.h>
+#include <dbus/dbus-glib.h>
+
#ifdef ENABLE_MAINTAINER_MODE
#include <gtk/gtk.h>
#endif
g_type_init ();
#endif
+ /* this is to initialize threading for dbus-glib used by GConf */
+ dbus_g_thread_init ();
+
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
g_option_context_parse (context, &argc, &argv, &error);
-I$(top_builddir)/calendar \
$(EVOLUTION_CALENDAR_CFLAGS) \
$(FACTORY_GTK_CFLAGS) \
+ $(DBUS_GLIB_CFLAGS) \
$(NULL)
evolution_calendar_factory_SOURCES = \
$(top_builddir)/libedataserver/libedataserver-1.2.la \
$(EVOLUTION_CALENDAR_LIBS) \
$(FACTORY_GTK_LIBS) \
+ $(DBUS_GLIB_LIBS) \
$(NULL)
-include $(top_srcdir)/git.mk
#include <stdlib.h>
#include <glib/gi18n.h>
+#include <dbus/dbus-glib.h>
+
#ifdef ENABLE_MAINTAINER_MODE
#include <gtk/gtk.h>
#endif
g_type_init ();
#endif
+ /* this is to initialize threading for dbus-glib used by GConf */
+ dbus_g_thread_init ();
+
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
g_option_context_parse (context, &argc, &argv, &error);