Software /
code /
prosody
Diff
util/dependencies.lua @ 6065:9ab23488a17c
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 09 Apr 2014 14:01:02 -0400 |
parent | 6043:29d2dd705148 |
child | 6067:dab7ad6fa23c |
child | 7675:decb657bc0a0 |
line wrap: on
line diff
--- a/util/dependencies.lua Sat Apr 05 15:05:40 2014 +0100 +++ b/util/dependencies.lua Wed Apr 09 14:01:02 2014 -0400 @@ -49,6 +49,14 @@ end; function check_dependencies() + if _VERSION ~= "Lua 5.1" then + print "***********************************" + print("Unsupported Lua version: ".._VERSION); + print("Only Lua 5.1 is supported."); + print "***********************************" + return false; + end + local fatal; local lxp = softreq "lxp"