util/dependencies.lua
changeset 7267 6d97895c2bd7
parent 7010 e28fbe6dd424
child 7362 a5a080c12c96
child 7682 589e27b47d56
equal deleted inserted replaced
7265:751a4832adb4 7267:6d97895c2bd7
    99 			}, "SSL/TLS support will not be available");
    99 			}, "SSL/TLS support will not be available");
   100 	end
   100 	end
   101 
   101 
   102 	local encodings, err = softreq "util.encodings"
   102 	local encodings, err = softreq "util.encodings"
   103 	if not encodings then
   103 	if not encodings then
   104 		if err:match("not found") then
   104 		if err:match("module '[^']*' not found") then
   105 			missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/";
   105 			missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/";
   106 		 				["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so";
   106 		 				["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so";
   107 		 			});
   107 		 			});
   108 		else
   108 		else
   109 			print "***********************************"
   109 			print "***********************************"
   116 		fatal = true;
   116 		fatal = true;
   117 	end
   117 	end
   118 
   118 
   119 	local hashes, err = softreq "util.hashes"
   119 	local hashes, err = softreq "util.hashes"
   120 	if not hashes then
   120 	if not hashes then
   121 		if err:match("not found") then
   121 		if err:match("module '[^']*' not found") then
   122 			missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/";
   122 			missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/";
   123 		 				["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so";
   123 		 				["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so";
   124 		 			});
   124 		 			});
   125 	 	else
   125 	 	else
   126 			print "***********************************"
   126 			print "***********************************"