summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-05-28 16:24:41 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-05-28 16:32:41 +0200
commit8a2c43b6e7764eaee17f26c47091062d42b40909 (patch)
tree50148541356588d095b9cd458b52e7f2d9750078
parentcc9d8f26dbeadc908248b6992770f531c69b655b (diff)
downloadautomake-8a2c43b6e7764eaee17f26c47091062d42b40909.tar.gz
maint: sanity checks in 'check-minimal-autoconf' convenience target
* maint.mk (check-minimal-autoconf): Here, check that autoconf seems to be locally installed, and that such local install refers to the correct expected minimal version. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
-rw-r--r--maint.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index fe09135af..54bff429f 100644
--- a/maint.mk
+++ b/maint.mk
@@ -518,6 +518,12 @@ build-minimal-autoconf:
.PHONY: build-minimal-autoconf
check-minimal-autoconf:
+ $(AM_V_at)p='$(ac-d)/bin/autoconf'; \
+ if test ! -f "$$p" || test ! -x "$$p"; then \
+ echo "$@: program '$$p' seems missing." >&2; \
+ echo "$@: have you run '$(MAKE) build-minimal-autoconf'?" >&2; \
+ exit 1; \
+ fi
$(AM_V_GEN): \
&& PATH='$(CURDIR)/$(ac-d)/bin$(PATH_SEPARATOR)'$$PATH \
&& export PATH \
@@ -527,7 +533,13 @@ check-minimal-autoconf:
&& AUTOM4TE=autom4te \
&& AUTOUPDATE=autoupdate \
&& export AUTOCONF AUTOHEADER AUTORECONF AUTOM4TE AUTOUPDATE \
+ && echo === check autoconf version '(must be = $(ac-v))' \
+ && autoconf --version \
+ && autoconf --version | sed -e 's/^/ /; s/$$/ /' -e 1q \
+ | $(FGREP) '$(ac-v)' >/dev/null \
+ && echo === configure \
&& ./configure $(shell ./config.status --config) \
+ && echo === build and test \
&& $(MAKE) check
.PHONY: check-minimal-autoconf