AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
+AC_PROG_RANLIB
GTK_DOC_CHECK(1.0)
+ IT_PROG_INTLTOOL
+
+ dnl ******************************
+ dnl Translations
+ dnl ******************************
+ GETTEXT_PACKAGE=libgdaex
+ AC_SUBST(GETTEXT_PACKAGE)
+ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
+ [The prefix for our gettext translation domains.])
+ AM_GLIB_GNU_GETTEXT
# Checks for libraries.
PKG_CHECK_MODULES(GDAEX, [libgda-4.0 >= 4
+guidir = $(datadir)/$(PACKAGE)/gui
+
AM_CPPFLAGS = -I$(top_srcdir) \
$(GDAEX_CFLAGS) \
+ -DGUIDIR=\""$(guidir)"\" \
+ -DLOCALEDIR=\"$(localedir)\" \
-DG_LOG_DOMAIN=\"GdaEx\"
LIBS = $(GDAEX_LIBS)
GdaExPrivate *priv = GDAEX_GET_PRIVATE (gdaex);
+ setlocale (LC_ALL, "");
+ gda_locale_changed ();
+
+ /* gui */
#ifdef G_OS_WIN32
gchar *moddir;
&& (g_ascii_strcasecmp (p + 1, "src") == 0
|| g_ascii_strcasecmp (p + 1, ".libs") == 0))
{
+ priv->guidir = g_strdup (GUIDIR);
+ localedir = g_strdup (LOCALEDIR);
}
else
{
+ priv->guidir = g_build_filename (moddir, "share", PACKAGE, "gui", NULL);
+ localedir = g_build_filename (moddir, "share", "locale", NULL);
}
+ g_free (moddir);
+ g_free (p);
+
#else
+ priv->guidir = g_strdup (GUIDIR);
+ localedir = g_strdup (LOCALEDIR);
#endif
-
+ priv->guifile = g_build_filename (priv->guidir, "libgdaex.ui", NULL);
+ priv->gtkbuilder = gtk_builder_new ();
+
++
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ textdomain (GETTEXT_PACKAGE);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
+ g_free (localedir);
+
return gdaex;
}
-I$(top_srcdir)/src \
-DTESTSDIR="\"@abs_builddir@\""
- noinst_PROGRAMS = test_prefix \
+ noinst_PROGRAMS = grid \
+ query_editor \
- grid
+ select \
+ test_prefix
LDADD = $(top_builddir)/src/libgdaex.la