Bug 1119512: port bug 1071438 to c-c (detect python2.7) r=standard8 a=aleth
authorLandry Breuil <landry@openbsd.org>
Mon, 12 Jan 2015 11:23:41 +0100
changeset 21627 9c437b0d8caf4b3a1221cb07da6e709fc9fd7df3
parent 21626 33de262ca789ee680afd85812839bd5b40bb4052
child 21628 702909d96ee0ab3ba48d8aafc826b76f4bc4a8f7
push idunknown
push userunknown
push dateunknown
reviewersstandard8, aleth
bugs1119512, 1071438
Bug 1119512: port bug 1071438 to c-c (detect python2.7) r=standard8 a=aleth
client.mk
--- a/client.mk
+++ b/client.mk
@@ -69,17 +69,17 @@ ifeq (,$(strip $(AUTOCONF)))
 AUTOCONF=$(error Couldn't find autoconf 2.13)
 endif
 
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake
 endif
 PERL ?= perl
-PYTHON ?= python
+PYTHON ?= $(shell which python2.7 > /dev/null 2>&1 && echo python2.7 || echo python)
 
 CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
 ifdef CONFIG_GUESS_SCRIPT
   CONFIG_GUESS := $(shell $(CONFIG_GUESS_SCRIPT))
 endif
 
 
 ####################################