From ac25f010af2e9d8c7553425f4e9762b2cb6e4f6c Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 20 Jun 2011 10:25:13 +0200 Subject: [PATCH] Bugfixes to autotools for GtkFormUI. --- configure.ac | 2 -- ui/Makefile.am | 8 ++++---- ui/glade/Makefile.am | 24 +++++++++++++++++------- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index d8c6087..d74cfe1 100644 --- a/configure.ac +++ b/configure.ac @@ -12,8 +12,6 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AM_MAINTAINER_MODE -m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) - AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_SYSTEM diff --git a/ui/Makefile.am b/ui/Makefile.am index e4f4503..5f127a8 100644 --- a/ui/Makefile.am +++ b/ui/Makefile.am @@ -18,20 +18,20 @@ SUBDIRS = . \ AM_CPPFLAGS = $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ - $(GTKFORMUI_CFLAGS) \ $(GTKFORM_CFLAGS) \ -DLOCALEDIR=\"$(localedir)\" \ -DMODULESDIR=\""$(libdir)/$(PACKAGE)/modules"\" \ -DG_LOG_DOMAIN=\"GtkFormUI\" -LIBS = $(GTKFORMUI_LIBS) \ - $(GTKFORM_LIBS) +LIBS = $(GTKFORM_LIBS) lib_LTLIBRARIES = libgtkformui.la libgtkformui_la_SOURCES = gtkformdecoder.c \ gtkformwidgetdecoder.c +libgtkformui_la_LIBADD = $(top_builddir)/src/libgtkform.la + libgtkformui_la_LDFLAGS = -no-undefined libgtkformui_include_HEADERS = gtkformdecoder.h \ @@ -44,4 +44,4 @@ install-exec-hook: ln -s -f $(libmodulesdir)/libgtkformui$(libmodulesext) . uninstall-hook: - rm -f $(libdir)/$(PACKAGE)/modules/libgtkdateentry$(libmodulesext) + rm -f $(libdir)/$(PACKAGE)/modules/libgtkformui$(libmodulesext) diff --git a/ui/glade/Makefile.am b/ui/glade/Makefile.am index 8d22cb8..be8b722 100644 --- a/ui/glade/Makefile.am +++ b/ui/glade/Makefile.am @@ -1,16 +1,26 @@ SUBDIRS = icons -moduledir = `pkg-config --variable=moduledir gladeui-1.0` +glademodulesdir = `pkg-config --variable=moduledir gladeui-1.0` -catalogsdir = `pkg-config --variable=catalogdir gladeui-1.0` +gladecatalogsdir = `pkg-config --variable=catalogdir gladeui-1.0` -catalogs_DATA = gtkformui.xml +gladecatalogs_DATA = gtkformui.xml -EXTRA_DIST = $(catalogs_DATA) +EXTRA_DIST = $(gladecatalogs_DATA) + +if PLATFORM_WIN32 +libmodulesext = -0.dll +libmodulesextglade = .dll +libmodulesdir = $(bindir) +else +libmodulesext = .so +libmodulesextglade = $(libmodulesext) +libmodulesdir = $(libdir) +endif install-exec-hook: - cd $(moduledir) && \ - ln -s -f $(libdir)/libgtkformui.so . + cd $(glademodulesdir) && \ + ln -s -f $(libmodulesdir)/libgtkformui$(libmodulesext) libgtkformui$(libmodulesextglade) uninstall-hook: - rm -f $(moduledir)/libgtkformui.so + rm -f $(glademodulesdir)/libgtkformui$(libmodulesextglade) -- 2.49.0