Bug 454449. Teach client.mk to fail more gracefully if it can't locate autoconf. r=ted.mielczarek
authorPhilippe M. Chiasson <gozer@mozillamessaging.com>
Mon, 20 Oct 2008 12:07:23 -0400
changeset 20667 c966e7e41dbd336eb66d53c3dd2b620d18d7aeab
parent 20666 6e5c848a21832cf2c28d11e7877662c93b255361
child 20668 5e73b36a885cceda962163f03eefb813c1190172
child 20695 b3e39da711cd845be1b339f3e3a538e514bb6def
push idunknown
push userunknown
push dateunknown
reviewersted
bugs454449
milestone1.9.1b2pre
Bug 454449. Teach client.mk to fail more gracefully if it can't locate autoconf. r=ted.mielczarek
client.mk
--- a/client.mk
+++ b/client.mk
@@ -88,16 +88,20 @@ ifeq (,$(wildcard client.mk))
 endif
 TOPSRCDIR = $(CWD)
 endif
 
 # try to find autoconf 2.13 - discard errors from 'which'
 # MacOS X 10.4 sends "no autoconf*" errors to stdout, discard those via grep
 AUTOCONF ?= $(shell which autoconf-2.13 autoconf2.13 autoconf213 2>/dev/null | grep -v '^no autoconf' | head -1)
 
+ifeq (,$(strip $(AUTOCONF)))
+$(error Couldn't find autoconf 2.13)
+endif
+
 MKDIR := mkdir
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake
 endif
 PERL ?= perl
 PYTHON ?= python