util.dependencies: Show useful messages when our own libraries are not found, too
authorMatthew Wild <mwild1@gmail.com>
Thu, 22 Jan 2009 14:29:29 +0000 (14:29 +0000)
committerMatthew Wild <mwild1@gmail.com>
Thu, 22 Jan 2009 14:29:29 +0000 (14:29 +0000)
util/dependencies.lua

index 6e78a13865f41bd9d09678f043a1fc4a997cb05c..601382df142cff91f536e5091bde081f7212f461 100644 (file)
@@ -62,5 +62,18 @@ if not ssl then
        end
 end
 
+local encodings = softreq "util.encodings"
+if not encodings then
+       missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/";
+                                       ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so";
+                               });
+end
+
+local encodings = softreq "util.hashes"
+if not encodings then
+       missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/";
+                                       ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so";
+                               });
+end
 
 if fatal then os.exit(1); end