aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-22 14:29:29 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-22 14:29:29 +0000
commit2627a5bc9ea6e08279389b543af35d486572aa31 (patch)
treec7c284630d2d779ab7db4ffa60954da1fe19503f /util
parentf979ff5f0d7414bb087cb6e601e435174fca59b5 (diff)
downloadprosody-2627a5bc9ea6e08279389b543af35d486572aa31.tar.gz
prosody-2627a5bc9ea6e08279389b543af35d486572aa31.zip
util.dependencies: Show useful messages when our own libraries are not found, too
Diffstat (limited to 'util')
-rw-r--r--util/dependencies.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 6e78a138..601382df 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -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