# HG changeset patch # User Matthew Wild # Date 1232634569 0 # Node ID b9f59372eb4e851751642df2474fce5265f0bd72 # Parent 97577b6c07ca408b082e0e5a984392cd5ae8e81f util.dependencies: Show useful messages when our own libraries are not found, too diff -r 97577b6c07ca -r b9f59372eb4e util/dependencies.lua --- a/util/dependencies.lua Sat Jan 17 14:57:21 2009 +0000 +++ b/util/dependencies.lua Thu Jan 22 14:29:29 2009 +0000 @@ -62,5 +62,18 @@ 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