]> mj.ucw.cz Git - eval.git/commitdiff
Configure: Newer versions of gnutls use pkg-config
authorMartin Mares <mj@ucw.cz>
Sun, 1 Apr 2012 13:17:44 +0000 (15:17 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 1 Apr 2012 13:17:44 +0000 (15:17 +0200)
configure

index 2b6461799a3ef49cb4c5c853cd9a8d2bf78917ce..b772db090c0d91ee6094f271df50f7f1f1c4cc74 100755 (executable)
--- a/configure
+++ b/configure
@@ -38,7 +38,7 @@ if (Get("CONFIG_SUBMIT") || Get("CONFIG_MOP")) {
 
 if (Get("CONFIG_SUBMIT")) {
        # Submit server needs crypto libraries
-       if (!TrivConfig("libgnutls", script => "libgnutls-config") ||
+       if (!PkgConfig("gnutls") && !TrivConfig("libgnutls", script => "libgnutls-config") ||
            !TrivConfig("libgcrypt", script => "libgcrypt-config")) {
                Fail "The libgnutls and libgcrypt libraries are required to build the submit server.";
        }