summaryrefslogtreecommitdiff
path: root/auth/wscript_configure
blob: 9d930bab61c057042ffaff1a0881b96c41fd009c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

import Options, Utils

conf.SET_TARGET_TYPE('jansson', 'EMPTY')

if conf.CHECK_CFG(package='jansson', args='--cflags --libs',
		  msg='Checking for jansson'):
    conf.CHECK_FUNCS_IN('json_object', 'jansson')

if not conf.CONFIG_GET('HAVE_JSON_OBJECT') and \
   conf.CONFIG_GET('ENABLE_SELFTEST') and \
   (not Options.options.without_ad_dc):
    raise Utils.WafError('jansson JSON library required for '
                         '--enable-selftest '
                         'when building the AD DC')