]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: ipcipher
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 5 Jul 2023 09:51:33 +0000 (11:51 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:26 +0000 (13:28 +0100)
meson.build
meson/ipcipher/meson.build [new file with mode: 0644]
meson_options.txt

index 8404892714105e53fe3872cac97897d9ae17cc9c..503dbcb3716a38fa89c67f933cbb0054d1a7e35e 100644 (file)
@@ -37,6 +37,7 @@ subdir('meson/libcrypto')       # OpenSSL-based signers
 subdir('meson/libssl')          # OpenSSL libssl
 subdir('meson/gnutls')          # GnuTLS
 subdir('meson/dot')             # DNS over TLS
+subdir('meson/ipcipher')        # IPCipher
 
 # Generate config.h ----------------------------------------------------------------------
 config_h = configure_file(configuration: conf, output: 'config.h')
diff --git a/meson/ipcipher/meson.build b/meson/ipcipher/meson.build
new file mode 100644 (file)
index 0000000..54d8139
--- /dev/null
@@ -0,0 +1,13 @@
+# IPCipher
+# Inputs: conf have_libcrypto
+
+opt_ipcipher = get_option('ipcipher')
+
+if not have_libcrypto and opt_ipcipher.enabled()
+  error('ipcipher support was requested but libcrypto is not available')
+endif
+
+enable_ipcipher = have_libcrypto and not opt_ipcipher.disabled()
+conf.set10('HAVE_IPCIPHER', enable_ipcipher, description: 'Whether ipcipher support is enabled')
+show_colors = have_libcrypto or not opt_ipcipher.auto()
+summary('ipcipher', enable_ipcipher, bool_yn: show_colors, section: 'Configuration')
index 08c82df7d6ca10623dc4c2fe37b8894101bd1b7d..4701f63efe6e387e265609036879096a5da91cc7 100644 (file)
@@ -8,3 +8,4 @@ option('libcrypto', type: 'string', value: 'auto', description: 'Build support f
 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)')
+option('ipcipher', type: 'feature', value: 'auto', description: 'Enable ipcipher support (requires libcrypto)')