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";