[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] {micro} maint: sanity checks in 'check-minimal-autoconf' conveni
From: |
Stefano Lattarini |
Subject: |
[PATCH] {micro} maint: sanity checks in 'check-minimal-autoconf' convenience target |
Date: |
Tue, 28 May 2013 16:33:48 +0200 |
* 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 <address@hidden>
---
maint.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/maint.mk b/maint.mk
index fe09135..54bff42 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
--
1.8.3.rc3.8.g5e49f30
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] {micro} maint: sanity checks in 'check-minimal-autoconf' convenience target,
Stefano Lattarini <=