diff options
author | Andreas Schneider <asn@samba.org> | 2018-10-10 14:20:11 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-04-30 23:18:26 +0000 |
commit | 382d5908a45f7a4a0bb6df98b3b8fa884ed9729a (patch) | |
tree | 5765a7c43095474029bb760cfdd347ffc5d1d894 /wscript_configure_system_gnutls | |
parent | 8ad4c1575805cc5d00e6873e55144ee6f8bc4b33 (diff) | |
download | samba-382d5908a45f7a4a0bb6df98b3b8fa884ed9729a.tar.gz |
waf: Add mandatory requirement for GnuTLS >= 3.2.0
We plan to move to GnuTLS for crypto in Samba, this is the first step to
make it mandatory and to require a version which is in LTS
distributions.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wscript_configure_system_gnutls')
-rw-r--r-- | wscript_configure_system_gnutls | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wscript_configure_system_gnutls b/wscript_configure_system_gnutls new file mode 100644 index 00000000000..90b0f8f184b --- /dev/null +++ b/wscript_configure_system_gnutls @@ -0,0 +1,24 @@ +from waflib import Options + +gnutls_min_required_version = "3.2.0" + +gnutls_required_version = gnutls_min_required_version + +# +# If we build with MIT Kerberos we need at least GnuTLS 3.4.7 for the backupkey +# protocol. +# +if Options.options.with_system_mitkrb5 and conf.env.AD_DC_BUILD_IS_ENABLED: + gnutls_required_version = "3.4.7" + conf.DEFINE('HAVE_GNUTLS_3_4_7', 1) + +conf.CHECK_CFG(package='gnutls', + args=('"gnutls >= %s" --cflags --libs' % gnutls_required_version), + msg='Checking for GnuTLS >= %s' % gnutls_required_version, + mandatory=True) + +# Define gnutls as a system library +conf.SET_TARGET_TYPE('gnutls', 'SYSLIB') + +conf.DEFINE('HAVE_GNUTLS3', 1) +conf.DEFINE('ENABLE_GNUTLS', 1) |