Index: GNUmakefile.am =================================================================== --- GNUmakefile.am.orig +++ GNUmakefile.am @@ -1,3 +1,5 @@ +AUTOMAKE_OPTIONS=foreign + DIST_SUBDIRS = xml help wingdingfont patterns SUBDIRS = xml help wingdingfont patterns . @@ -8,7 +10,7 @@ INCLUDES = -I. -I$(top_builddir) -I$(src CFLAGS = @CFLAGS@ @ANSI_CFLAGS@ -CPPFLAGS = @CPPFLAGS@ @WMF_CFLAGS@ @XML_CFLAGS@ @GLIB_CFLAGS@ @GSF_CFLAGS@ @PNG_CFLAGS@ @ZLIB_CFLAGS@ +CPPFLAGS = $(filter-out -I/usr/include,@CPPFLAGS@ @WMF_CFLAGS@ @XML_CFLAGS@ @GLIB_CFLAGS@ @GSF_CFLAGS@ @PNG_CFLAGS@ @ZLIB_CFLAGS@) WVLIBS = @WMF_LIBS@ @XML_LIBS@ @GLIB_LIBS@ @GSF_LIBS@ @PNG_LIBS@ @ZLIB_LIBS@ @LIBS@ -lm