From: Fred Morcos Date: Thu, 3 Aug 2023 17:21:49 +0000 (+0200) Subject: Meson: Use enabled/disabled in libcrypto instead of yes/no X-Git-Tag: rec-5.1.0-alpha1~80^2~305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2054c1d0d13da2dcc0d41985a541c2bcf8458f04;p=thirdparty%2Fpdns.git Meson: Use enabled/disabled in libcrypto instead of yes/no --- diff --git a/meson/libcrypto/meson.build b/meson/libcrypto/meson.build index fecafaa9a7..c88b3ad544 100644 --- a/meson/libcrypto/meson.build +++ b/meson/libcrypto/meson.build @@ -8,17 +8,18 @@ dep_libcrypto = dependency('', required: false) ssldirs = [] have_libcrypto = false if opt_libcrypto == '' - error('Invalid value for libcrypto option, either use auto, yes, no, ' + - 'or pass a directory where the library can be found') + error('Invalid value for libcrypto option, either use auto, enabled, disabled, ' + + 'or pass a directory where the library can be found. ' + + 'See `meson configure` for more info.') endif -if opt_libcrypto == 'no' +if opt_libcrypto == 'disabled' subdir_done() endif # Generally, try to find libcrypto using the mechanisms provided by meson # (e.g. pkg-config). If an explicit directory for libcrypto was passed, use that instead. -if opt_libcrypto == 'auto' or opt_libcrypto == 'yes' +if opt_libcrypto == 'auto' or opt_libcrypto == 'enabled' dep_libcrypto = dependency('libcrypto', required: false) have_libcrypto = dep_libcrypto.found() else diff --git a/meson_options.txt b/meson_options.txt index c0517ea350..fdad646c9c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,7 +4,7 @@ option('fortify-source', type: 'combo', choices: ['auto', 'disabled', '1', '2', option('kiss-rng', type: 'boolean', value: false, description: 'Use the unsafe KISS RNG') option('libsodium', type: 'feature', value: 'auto', description: 'Build support for libsodium-based signers') option('libdecaf', type: 'feature', value: 'auto', description: 'Build support for libdecaf-based signers') -option('libcrypto', type: 'string', value: 'auto', description: 'Build support for libcrypto-based signers (auto, yes, no, or a path)') +option('libcrypto', type: 'string', value: 'auto', description: 'Build support for libcrypto-based signers (auto, enabled, disabled, or a path)') option('libssl', type: 'feature', value: 'auto', description: 'Build support for libssl') option('gnutls', type: 'feature', value: 'auto', description: 'Build support for GnuTLS') option('dns-over-tls', type: 'boolean', value: false, description: 'Enable DNS over TLS (requires GnuTLS or OpenSSL)')