4 conf
.CHECK_HEADERS('zlib.h')
5 conf
.CHECK_FUNCS_IN('zlibVersion', 'z')
8 #if (ZLIB_VERNUM >= 0x1230)
10 #error "ZLIB_VERNUM < 0x1230"
18 msg
='Checking for ZLIB_VERNUM >= 0x1230 and working link to zlib',
21 # If we don't do this then we will receive an error that lib 'z'
22 # is already declared as a system lib (for the cases where zlibVersion
24 if not conf
.env
['HAVE_ZLIB']:
25 conf
.LOCAL_CACHE_SET('TARGET_TYPE', 'z', 'EMPTY')
28 if not bld
.CONFIG_SET('HAVE_ZLIB'):
29 bld
.SAMBA_LIBRARY('z',
32 source
='''adler32.c compress.c crc32.c gzio.c
33 uncompr.c deflate.c trees.c zutil.c
34 inflate.c infback.c inftrees.c inffast.c''')