3 from waflib
import Options
6 conf
.CHECK_FUNCS('strsignal')
7 conf
.CHECK_FUNCS('longjmp siglongjmp')
9 if conf
.CHECK_CMOCKA():
10 conf
.define('USING_SYSTEM_CMOCKA', 1)
13 if bld
.CONFIG_SET('USING_SYSTEM_CMOCKA'):
18 # Link to librt if needed for clock_gettime()
19 if bld
.CONFIG_SET('HAVE_LIBRT'): extra_libs
+= ' rt'
21 bld
.SAMBA_LIBRARY('cmocka',
23 cflags
='-DHAVE_CONFIG_H=1',