selftest: enable py3 for samba.tests.dcerpc.string
[nivanova/samba-autobuild/.git] / auth / wscript_configure
1 #!/usr/bin/env python
2
3 import Options, Utils
4
5 conf.SET_TARGET_TYPE('jansson', 'EMPTY')
6
7 if conf.CHECK_CFG(package='jansson', args='--cflags --libs',
8                   msg='Checking for jansson'):
9     conf.CHECK_FUNCS_IN('json_object', 'jansson')
10
11 if not conf.CONFIG_GET('HAVE_JSON_OBJECT') and \
12    conf.CONFIG_GET('ENABLE_SELFTEST') and \
13    (not Options.options.without_ad_dc):
14     raise Utils.WafError('jansson JSON library required for '
15                          '--enable-selftest '
16                          'when building the AD DC')