]> mj.ucw.cz Git - eval.git/blobdiff - configure
Use new Configure module to configure crypto libs.
[eval.git] / configure
index a7bfa1f6885eb7797b66d7e7f69c1cac83ef9e99..d8c25e2236a61b16f48bc2ca11eda68a6c9db644 100755 (executable)
--- a/configure
+++ b/configure
@@ -27,7 +27,18 @@ Log "### Configuring MO-Eval ###\n\n";
 Include Get("CONFIG");
 Include "lib/autoconf.cfg";
 
-Set("CONFIG_UCW_LIBS" => 1);
+if (Get("CONFIG_SUBMIT") || Get("CONFIG_MOP")) {
+       # Build libucw only if it is needed
+       Set("CONFIG_UCW_LIBS" => 1);
+}
+
+if (Get("CONFIG_SUBMIT")) {
+       # Submit server needs crypto libraries
+       if (!TrivConfig("libgnutls", script => "libgnutls-config") ||
+           !TrivConfig("libgcrypt", script => "libgcrypt-config")) {
+               Fail "The libgnutls and libgcrypt libraries are required to build the submit server.";
+       }
+}
 
 Finish();
 Log "\nConfigured, run `make' to build everything.\n";