-gtkmoduledir = $(libdir)/$(GTK_MODULE_DIR)
+if RELOCATE
+ gtkmoduledir = $(libdir)/gtk-2.0/modules/at-spi-dbus/modules
+else
+ gtkmoduledir = $(libdir)/gtk-2.0/modules
+endif
gtkmodule_LTLIBRARIES = libatk-bridge.la
libatk_bridge_la_CFLAGS = $(DBUS_GLIB_CFLAGS) \
Comment=Sets GTK_PATH for gnome-session to pick up D-Bus atk-bridge module
Exec=dbus-send --session --dest="org.gnome.SessionManager" /org/gnome/SessionManager org.gnome.SessionManager.Setenv string:"GTK_PATH" string:"@gtkpathdir@"
OnlyShowIn=GNOME;
-AutostartCondition=GNOME /desktop/gnome/interface/atspi-dbus
+AutostartCondition=GNOME /desktop/gnome/interface/at-spi-dbus
X-GNOME-Autostart-Phase=Initialization
DEFAULT_ATSPI_INTROSPECTION_PATH=dbus
fi
-AC_ARG_VAR([GTK_MODULE_DIR],
- [Where to place the atk-adaptor gtk module])
-if test -z "$GTK_MODULE_DIR"; then
- GTK_MODULE_DIR=gtk-2.0/modules
- AM_CONDITIONAL(RELOCATE, false)
-else
- AM_CONDITIONAL(RELOCATE, true)
+AC_ARG_ENABLE(relocate, [ --enable-relocate Relocate to coexist with CORBA [default=no]], enable_relocate="$enableval", enable_relocate=no)
+if test x$enable_relocate = xyes ; then
+ AC_DEFINE(RELOCATE, , [Relocate to coexist with CORBA])
fi
+AM_CONDITIONAL(RELOCATE, test x$enable_relocate = xyes)
#libtool option to strip symbols starting with cspi
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^cspi]].*"'