Merge 0.9->0.10
[prosody.git] / util / dependencies.lua
index 9d80d241ad38370c985e662d3b44e26743e070c4..ea19d9a8b606b4f5cfa1d372b54d0f117035135c 100644 (file)
@@ -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"