m4_define([libbonobo_minimum_version], [2.20.3])
m4_define([gconf_minimum_version], [2.0.0]) # XXX Just a Guess
m4_define([libglade_minimum_version], [2.0.0]) # XXX Just a Guess
-m4_define([libgnome_minimum_version], [2.0.0]) # XXX Just a Guess
m4_define([libxml_minimum_version], [2.0.0]) # XXX Just a Guess
m4_define([libsoup_minimum_version], [2.3.0])
m4_define([gnome_keyring_minimum_version], [2.20.1])
libbonobo-2.0 >= libbonobo_minimum_version
gconf-2.0 >= gconf_minimum_version
libglade-2.0 >= libglade_minimum_version
- libgnome-2.0 >= libgnome_minimum_version
libxml-2.0 >= libxml_minimum_version
libsoup-2.4 >= libsoup_minimum_version])
AC_MSG_RESULT($IDL_INCLUDES)
AC_SUBST(IDL_INCLUDES)
-AC_MSG_CHECKING(for libgnomeui server directory)
-GNOMEUI_SERVERDIR="`$PKG_CONFIG --variable=libgnomeui_serverdir libgnomeui-2.0`"
-AC_MSG_RESULT($GNOMEUI_SERVERDIR)
-AC_DEFINE_UNQUOTED(GNOMEUI_SERVERDIR, "$GNOMEUI_SERVERDIR", [Path where we can find gnome_segv2])
-
dnl Utility macro to set compiler flags for a specific lib.
dnl EVO_SET_COMPILE_FLAGS(VAR-PREFIX, DEPS, EXTRA-CFLAGS, EXTRA-LIBS)
AC_DEFUN([EVO_SET_COMPILE_FLAGS], [
dnl --- factory flags
-E_FACTORY_DEPS="libgnome-2.0 $mozilla_nspr"
+E_FACTORY_DEPS="$mozilla_nspr"
if test "x${enable_calendar}" = "xyes"; then
E_FACTORY_DEPS="$E_FACTORY_DEPS libical"
fi
#include <glib.h>
#include <glib/gi18n.h>
-#include <libgnome/gnome-init.h>
#include <bonobo-activation/bonobo-activation.h>
#include <bonobo/bonobo-main.h>
#include <bonobo/bonobo-exception.h>
static GStaticMutex termination_lock = G_STATIC_MUTEX_INIT;
-#ifndef G_OS_WIN32
-static pthread_mutex_t segv_mutex = PTHREAD_MUTEX_INITIALIZER;
-static pthread_t main_thread;
-
-static void
-gnome_segv_handler (int signo)
-{
- const char *gnome_segv_path;
- static int in_segv = 0;
- char *exec;
-
- if (pthread_self() != main_thread) {
- /* deadlock intentionally in the sub-threads */
- pthread_kill(main_thread, signo);
- pthread_mutex_lock(&segv_mutex);
- }
-
- in_segv++;
- if (in_segv > 2) {
- /* The fprintf() was segfaulting, we are just totally hosed */
- _exit (1);
- } else if (in_segv > 1) {
- /* dialog display isn't working out */
- fprintf (stderr, _("Multiple segmentation faults occurred; cannot display error dialog\n"));
- _exit (1);
- }
-
- gnome_segv_path = GNOMEUI_SERVERDIR "/gnome_segv2";
-
- exec = g_strdup_printf ("%s \"" PACKAGE "-" BASE_VERSION "\" %d \"" VERSION "\"",
- gnome_segv_path, signo);
- system (exec);
- g_free (exec);
-
- _exit(1);
-}
-
-static void
-setup_segv_handler (void)
-{
- struct sigaction sa;
-
- sa.sa_flags = 0;
- sigemptyset (&sa.sa_mask);
- sa.sa_handler = gnome_segv_handler;
- sigaction (SIGSEGV, &sa, NULL);
- sigaction (SIGBUS, &sa, NULL);
- sigaction (SIGFPE, &sa, NULL);
-
- main_thread = pthread_self();
- pthread_mutex_lock(&segv_mutex);
-}
-
-#endif
-
/* Termination */
/* Termination handler. Checks if both factories have zero running backends,
signal (SIGUSR2, dump_backends);
#endif
- gnome_program_init (PACKAGE, VERSION,
- LIBGNOME_MODULE,
- argc, argv,
- GNOME_PROGRAM_STANDARD_PROPERTIES, NULL);
-
bonobo_init_full (&argc, argv,
bonobo_activation_orb_get(),
CORBA_OBJECT_NIL,
CORBA_OBJECT_NIL);
-#ifndef G_OS_WIN32
- setup_segv_handler ();
-#endif
+
e_data_server_module_init ();
if (!( (did_books = setup_books ())