2008-10-07  Alp Toker  <alp@nuanti.com>

        GTK+ build fix for older automake versions (1.7). Discussed in bug
        #21392.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/GNUmakefile.am b/GNUmakefile.am
index 7f9484a..d3e11d6 100644
--- a/GNUmakefile.am
+++ b/GNUmakefile.am
@@ -152,6 +152,9 @@
 webcoregtk_cppflags :=
 webcoregtk_sources :=
 
+nodist_EXTRA_libWebCore_la_SOURCES = \
+	$(webcore_built_nosources)
+
 nodist_libWebCore_la_SOURCES = \
 	$(webcore_built_sources)
 
@@ -475,6 +478,11 @@
 	INSTALL \
 	README
 
+# Older automake versions (1.7) place Plo files in a different place so we need
+# to create the output directory manually.
+all-local:
+	mkdir -p $(top_builddir)/$(DEPDIR)/DerivedSources
+
 # remove built sources and program directories
 clean-local:
 	-rm -rf $(GENSOURCES) $(GENPROGRAMS)