s3-libnet: avoid using lp_dns_hostname() in join code
[samba4-gss.git] / lib / mscat / wscript
blob00eb1d4586150107730ae3bbec0785f2a1fabcf2
1 #!/usr/bin/env python
3 import os
4 import sys
5 from waflib import Logs
7 def configure(conf):
8 pkg_name = 'libtasn1'
9 pkg_minversion = '3.8'
11 if conf.CHECK_BUNDLED_SYSTEM_PKG(pkg_name, minversion=pkg_minversion):
12 if not conf.find_program('asn1Parser', var='ASN1PARSER'):
13 Logs.warn('WARNING: ans1Parser hasn\'t been found! Please install it (e.g. libtasn1-bin)')
15 def build(bld):
16 if (bld.CONFIG_SET('HAVE_LIBTASN1') and
17 bld.env.ASN1PARSER):
19 bld.SAMBA_GENERATOR('MSCAT_PARSER',
20 source='mscat.asn',
21 target='mscat_asn1_tab.c',
22 rule='${ASN1PARSER} --output ${TGT} ${SRC}',
23 group='build_source')
25 bld.SAMBA_LIBRARY('mscat',
26 source='''
27 mscat_asn1_tab.c
28 mscat_ctl.c
29 mscat_pkcs7.c
30 ''',
31 deps='''
32 talloc
33 gnutls
34 libtasn1
35 samba-util
36 ''',
37 private_library=True)
39 bld.SAMBA_BINARY('dumpmscat',
40 source='dumpmscat.c',
41 deps='mscat')