summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-11-30 20:25:56 +0000
committerTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-11-30 20:25:56 +0000
commit973e3ec1494fcc7e9d2ce60f4646a2f2d5f5e0c5 (patch)
tree7215e3e2fe9787fdacb2494787fadcebaf22fb20
parent98f07ecbd4ec055c93cf769adcaf65d689d959f9 (diff)
downloadrabbitmq-server-973e3ec1494fcc7e9d2ce60f4646a2f2d5f5e0c5.tar.gz
Try harder to find a simplejson-supporting python
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a9845607..1cd48df2 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