diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 13:30:22 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:41 +1000 |
commit | 8bae4823f29984b49efb83b91e60fd761e0bbf9f (patch) | |
tree | ab81aefd88a8a92f7505084138fa013999a1603f /source4 | |
parent | 22fbe8cb701123e799fb9e16543963abc1645a82 (diff) | |
download | samba-8bae4823f29984b49efb83b91e60fd761e0bbf9f.tar.gz samba-8bae4823f29984b49efb83b91e60fd761e0bbf9f.tar.bz2 samba-8bae4823f29984b49efb83b91e60fd761e0bbf9f.zip |
build: waf build for lib/tls
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tls/wscript | 27 | ||||
-rw-r--r-- | source4/wscript | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/source4/lib/tls/wscript b/source4/lib/tls/wscript new file mode 100644 index 0000000000..5a6375720e --- /dev/null +++ b/source4/lib/tls/wscript @@ -0,0 +1,27 @@ +import Options + +def set_options(opt): + # allow users to disable gnutls + opt.add_option('--disable-gnutls', + help=("Disable use of gnutls"), + action="store_true", dest='disable_gnutls', default=False) + +def configure(conf): + # check for gnutls + conf.check_cfg(package='gnutls', + args='"gnutls >= 1.4.0" --cflags --libs', + msg='Checking for gnutls >= 1.4.0', mandatory=False) + + if 'HAVE_GNUTLS' in conf.env and not Options.options.disable_gnutls: + conf.DEFINE('ENABLE_GNUTLS', 1) + + conf.CHECK_HEADERS('gnutls/gnutls.h') + + # check for gnutls_datum types + conf.CHECK_TYPES('gnutls_datum gnutls_datum_t') + +def build(bld): + bld.SAMBA_SUBSYSTEM('LIBTLS', + source='tls.c tlscert.c', + public_deps='talloc GNUTLS GCRYPT LIBSAMBA-HOSTCONFIG samba_socket' + ) diff --git a/source4/wscript b/source4/wscript index 67c6f96870..04ae4be3f6 100644 --- a/source4/wscript +++ b/source4/wscript @@ -14,6 +14,7 @@ def set_options(opt): opt.recurse(LIBREPLACE_DIR) opt.recurse(LIBLDB_DIR) opt.recurse('selftest') + opt.recurse('lib/tls') def configure(conf): @@ -23,6 +24,7 @@ def configure(conf): conf.sub_config(LIBREPLACE_DIR) conf.sub_config(LIBLDB_DIR) conf.sub_config('heimdal_build') + conf.sub_config('lib/tls') conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1) conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib #source4/include #lib/socket_wrapper #lib/talloc #lib/replace #lib/event') |