]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix detection of libcrypto's configured value in meson
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Mar 2025 11:27:43 +0000 (12:27 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 7 Mar 2025 16:24:20 +0000 (17:24 +0100)
pdns/dnsdistdist/meson/libcrypto/meson.build

index 9bb2d1ff7ac32a8d7cb4960add1cb64dd64da03d..3df544eb22fffa592b9f2b61ccb0297609c2e286 100644 (file)
@@ -56,7 +56,7 @@ endif
 if not dep_libcrypto.found()
   err_msg = 'Could not find libcrypto in ' + ', '.join(ssldirs)
 
-  if opt_libcrypto == 'auto'
+  if opt_libcrypto.auto()
     # We could not find libcrypto anywhere, and the user did not require it.
     warning(err_msg)
     summary('OpenSSL libcrypto', false, bool_yn: true, section: 'Crypto')
@@ -69,7 +69,7 @@ endif
 if not cxx.links(fs.read('bn_new.cc'), name: 'libcrypto test program', dependencies: dep_libcrypto)
   err_msg = 'Cannot link against libcrypto'
 
-  if opt_libcrypto == 'auto'
+  if opt_libcrypto.auto()
     # We could not link against libcrypto, and the user did not require it.
     warning(err_msg)
     summary('OpenSSL libcrypto', false, bool_yn: true, section: 'Crypto')