aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog7
-rw-r--r--test/Makefile.am4
-rw-r--r--test/Makefile.in4
3 files changed, 10 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index ff38cdcd..bd327f24 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,4 +1,9 @@
-2012-10-04 Arnold D. Robbins <arnold@skeeve.com>
+2012-10-04 Akim Demaille <akim@lrde.epita.fr>
+
+ Fix VPATH builds.
+
+ * Makefile.am (shlib-tests): config.h is in builddir.
+ (beginfile2): So is gawk itself.
* Makefile.am (functab1, functab2, functab3, functab4, id, symtab1,
symtab2, symtab3): New tests.
diff --git a/test/Makefile.am b/test/Makefile.am
index 1f20b923..c64e1e3b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1005,7 +1005,7 @@ machine-tests: $(MACHINE_TESTS)
mpfr-tests: $(MPFR_TESTS)
shlib-tests:
- @if grep 'DYNAMIC 1' $(top_srcdir)/config.h > /dev/null ; then \
+ @if grep 'DYNAMIC 1' $(top_builddir)/config.h > /dev/null ; then \
$(MAKE) shlib-real-tests ; \
else echo shlib tests not supported on this system ; \
fi
@@ -1517,7 +1517,7 @@ beginfile1::
beginfile2:
@echo $@
- @-( cd $(srcdir) && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in ) > _$@ 2>&1
+ @-( cd $(srcdir) && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)" $(abs_srcdir)/$@.sh $(abs_srcdir)/$@.in ) > _$@ 2>&1
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
dumpvars::
diff --git a/test/Makefile.in b/test/Makefile.in
index 5bb75637..db461f52 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1388,7 +1388,7 @@ machine-tests: $(MACHINE_TESTS)
mpfr-tests: $(MPFR_TESTS)
shlib-tests:
- @if grep 'DYNAMIC 1' $(top_srcdir)/config.h > /dev/null ; then \
+ @if grep 'DYNAMIC 1' $(top_builddir)/config.h > /dev/null ; then \
$(MAKE) shlib-real-tests ; \
else echo shlib tests not supported on this system ; \
fi
@@ -1898,7 +1898,7 @@ beginfile1::
beginfile2:
@echo $@
- @-( cd $(srcdir) && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in ) > _$@ 2>&1
+ @-( cd $(srcdir) && LC_ALL=C AWK="$(abs_builddir)/$(AWKPROG)" $(abs_srcdir)/$@.sh $(abs_srcdir)/$@.in ) > _$@ 2>&1
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
dumpvars::