From bd3f069f471400c8a0dd1ee7775eb57e37a8ec0a Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 19 Nov 2012 11:58:17 +0100 Subject: [PATCH] Prefer LUAjit instead of interpreter --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index c30e8f7fc..7a2867804 100644 --- a/SConstruct +++ b/SConstruct @@ -145,7 +145,9 @@ else: print "zip library not found. Exiting" Exit(-1) - env.ParseConfig('pkg-config --cflags --libs lua5.1') + if not conf.CheckLibWithHeader('luajit-5.1', 'luajit-2.0/lua.h', 'CXX'): + print "luajit library not found. Checking for interpreter" + env.ParseConfig('pkg-config --cflags --libs lua5.1') env.ParseConfig('pkg-config --cflags --libs luabind') #Check if architecture optimizations shall be turned off