aboutsummaryrefslogtreecommitdiffstats
path: root/util/dependencies.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2014-04-09 14:01:02 -0400
committerWaqas Hussain <waqas20@gmail.com>2014-04-09 14:01:02 -0400
commit32b9b7ff472476c74c5e0d83b8712066b8de0d39 (patch)
treee2711f874b94ef0c247d7d56a7fee8d4b34bb951 /util/dependencies.lua
parentb18ab54899f747eed03c575778b010000f1f9e69 (diff)
downloadprosody-32b9b7ff472476c74c5e0d83b8712066b8de0d39.tar.gz
prosody-32b9b7ff472476c74c5e0d83b8712066b8de0d39.zip
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r--util/dependencies.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index e55b2405..4d50cf63 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -49,6 +49,14 @@ package.preload["util.ztact"] = function ()
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"