Hello,

the attached patch lets me build libgsf outside the source tree.

Cheers,
Rob
? libgsf-build.diff
? py-compile
? m4/gtk-doc.m4
? m4/intltool.m4
Index: autogen.sh
===================================================================
RCS file: /cvs/gnome/libgsf/autogen.sh,v
retrieving revision 1.6
diff -u -r1.6 autogen.sh
--- autogen.sh	7 Sep 2006 13:21:53 -0000	1.6
+++ autogen.sh	24 Sep 2006 08:37:21 -0000
@@ -2,7 +2,6 @@
 # Run this to generate all the initial makefiles, etc.
 
 PKG_NAME="libgsf"
-ACLOCAL_FLAGS="-I `pwd`/m4 $ACLOCAL_FLAGS"
 
 REQUIRED_AUTOMAKE_VERSION=1.8
 # We require Automake 1.7.1, which requires Autoconf 2.54.
@@ -12,6 +11,8 @@
 
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
+
+ACLOCAL_FLAGS="-I `pwd`/$srcdir/m4 $ACLOCAL_FLAGS"
 
 (test -f $srcdir/configure.in \
   && test -d $srcdir/gsf \
Index: python/Makefile.am
===================================================================
RCS file: /cvs/gnome/libgsf/python/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- python/Makefile.am	24 Sep 2006 02:42:48 -0000	1.7
+++ python/Makefile.am	24 Sep 2006 08:37:21 -0000
@@ -27,7 +27,9 @@
 EXTRA_DIST += gsfgnome.defs gsfgnome.override  
 gsfgnome.c: gsfgnome.defs gsfgnome.override
 
-_gsfmodule_la_CFLAGS = $(LIBGSF_CFLAGS)
+_gsfmodule_la_CFLAGS = 		\
+	-I$(top_srcdir)		\
+	$(LIBGSF_CFLAGS)
 _gsfmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gsf
 _gsfmodule_la_LIBADD = $(top_builddir)/gsf/libgsf-1.la $(LIBGSF_LIBS)
 _gsfmodule_la_SOURCES = gsfmodule.c
_______________________________________________
gnumeric-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnumeric-list

Reply via email to