Bug 793953 - Support autoconf2.13 installed through fink; r=khuey
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 25 Sep 2012 00:17:32 -0400
changeset 108110 5668f229dc6af6ae48d32374bd4b4e211cde7c9a
parent 108109 212cf709135c0379d254036e7437c933b57fb607
child 108111 6b87b58ff491875e1d8e5462834ffe3965f22351
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs793953
milestone18.0a1
Bug 793953 - Support autoconf2.13 installed through fink; r=khuey DONTBUILD
client.mk
--- a/client.mk
+++ b/client.mk
@@ -55,16 +55,21 @@ else
 TOPSRCDIR := $(CWD)
 endif
 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)
 
+# See if the autoconf package was installed through fink
+ifeq (,$(strip $(AUTOCONF)))
+AUTOCONF = $(shell which fink >/dev/null 2>&1 && echo `which fink`/../../lib/autoconf2.13/bin/autoconf)
+endif
+
 ifeq (,$(strip $(AUTOCONF)))
 AUTOCONF=$(error Could not find autoconf 2.13)
 endif
 
 SH := /bin/sh
 PERL ?= perl
 PYTHON ?= python