summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-12-01 16:14:01 +0000
committerTony Garnock-Jones <tonyg@lshift.net>2009-12-01 16:14:01 +0000
commite0db1ab53353c5f08a958c58db1a4e62b0ba58ae (patch)
treecccf79353d75ec6f22faf1d279e5f78241882fc7 /Makefile
parenteab18481fa7c4790fa435af97a9c487204820ebf (diff)
parent3bc4d27f0b3df7c98e16a7a2b121dbc22461dd20 (diff)
downloadrabbitmq-server-git-e0db1ab53353c5f08a958c58db1a4e62b0ba58ae.tar.gz
Merge default into amqp_0_9_1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a16a592652..cfbe3daca2 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,20 @@ TARGETS=$(EBIN_DIR)/rabbit.app $(BEAM_TARGETS)
WEB_URL=http://stage.rabbitmq.com/
MANPAGES=$(patsubst %.pod, %.gz, $(wildcard docs/*.[0-9].pod))
+ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes)
PYTHON=python
+else
+ifeq ($(shell python2.6 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.6
+else
+ifeq ($(shell python2.5 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.5
+else
+# Hmm. Missing simplejson?
+PYTHON=python
+endif
+endif
+endif
BASIC_PLT=basic.plt
RABBIT_PLT=rabbit.plt