s3: smbd: Cause SMB2_OP_FLUSH to go synchronous in a compound anywhere but the last...
[Samba.git] / third_party / cmocka / wscript
blobebac963b0e1c9e703cf4941b79169631f7c67816
1 #!/usr/bin/env python
3 from waflib import Options
5 def configure(conf):
6 conf.CHECK_FUNCS('strsignal')
7 conf.CHECK_FUNCS('longjmp siglongjmp')
9 if conf.CHECK_CMOCKA():
10 conf.define('USING_SYSTEM_CMOCKA', 1)
12 def build(bld):
13 if bld.CONFIG_SET('USING_SYSTEM_CMOCKA'):
14 return
16 extra_libs=''
18 # Link to librt if needed for clock_gettime()
19 if bld.CONFIG_SET('HAVE_LIBRT'): extra_libs += ' rt'
21 bld.SAMBA_LIBRARY('cmocka',
22 source='cmocka.c',
23 cflags='-DHAVE_CONFIG_H=1',
24 deps=extra_libs,
25 allow_warnings=True,
26 private_library=True)