From bce0156180b1223fe96bcec6f7420e69b3a420df Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Tue, 25 Sep 2007 13:01:30 +0000
Subject: [PATCH] revert patch 4988... this breaks out of source build, but
 fixed normal build again

[[Imported from SVN: r4994]]
---
 am/webstuff  | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/am/webstuff b/am/webstuff
index 92916fe19..0e7333002 100644
--- a/am/webstuff
+++ b/am/webstuff
@@ -14,7 +14,7 @@
 .wml.html:
 	export DUNEWEBDIR=$(DUNEWEBDIR); \
 	export BASEDIR=$(BASEDIR); \
-	sh $(top_builddir)/bin/wmlwrap -I $(srcdir) $< -o $@
+	sh $(DUNE_COMMON_ROOT)/bin/wmlwrap -I $(srcdir) $< -o $@
 
 web-install: all
 	if test -d $(DUNEWEBDIR) && test -r $(DUNEWEBDIR)/Make.global ; then \
diff --git a/configure.ac b/configure.ac
index 179f538f2..5c3f2bbe3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@ AM_CONFIG_HEADER([config.h])
 DUNE_CHECK_ALL_M
 
 # preset variable to path such that #include <dune/...> works
-AC_SUBST([DUNE_COMMON_ROOT], '$(top_srcdir)')
+AC_SUBST([DUNE_COMMON_ROOT], '$(top_builddir)')
 AC_SUBST([AM_CPPFLAGS], '-I$(top_srcdir)')
 AC_SUBST([LOCAL_LIBS], '$(top_builddir)/common/libcommon.la')
 
-- 
GitLab