summarylogtreecommitdiffstats
path: root/0002-meson-Fix-typos-in-crypto-library-detection.patch
blob: 5ccfcc6bddfc3c92bb9b20711ea60484a31683ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From e75f9730c64301f68aaf42bb8d1e8d7ccf9cd6d5 Mon Sep 17 00:00:00 2001
From: Nirbheek Chauhan <nirbheek@centricular.com>
Date: Tue, 16 Jun 2020 03:54:28 +0530
Subject: [PATCH 2/2] meson: Fix typos in crypto-library detection

---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 0004d91..5b876de 100644
--- a/meson.build
+++ b/meson.build
@@ -189,7 +189,7 @@ gthread_dep = dependency('gthread-2.0',
 
 # Cryto library
 opt_cryptolib = get_option('crypto-library')
-message('Crypto librar requested: ' + opt_cryptolib)
+message('Crypto library requested: ' + opt_cryptolib)
 if opt_cryptolib != 'openssl'
   crypto_dep = dependency('gnutls', version: gnutls_req, required: false)
   cdata.set('HAVE_GNUTLS', crypto_dep.found())
@@ -243,7 +243,7 @@ endif
 if not crypto_dep.found()
   if opt_cryptolib == 'gnutls'
     error('GnuTLS requested as crypto library, but not found')
-  elif opt_cryptolib == 'gnutls'
+  elif opt_cryptolib == 'openssl'
     error('OpenSSL requested as crypto library, but not found')
   else
     error('Either GnuTLS or OpenSSL is required as crypto library, but neither was found')
-- 
2.27.0.windows.1