mirror of
https://github.com/samba-team/samba.git
synced 2025-01-20 14:03:59 +03:00
b8f91696f5
This way --bundled-libraries=ALL will use the internal zlib version. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
30 lines
976 B
Python
30 lines
976 B
Python
#!/usr/bin/env python
|
|
|
|
def configure(conf):
|
|
version_check='''
|
|
#if (ZLIB_VERNUM >= 0x1230)
|
|
#else
|
|
#error "ZLIB_VERNUM < 0x1230"
|
|
#endif
|
|
z_stream *z;
|
|
inflateInit2(z, -15);
|
|
'''
|
|
|
|
if conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
|
|
checkfunctions='zlibVersion',
|
|
headers='zlib.h',
|
|
checkcode=version_check,
|
|
implied_deps='replace'):
|
|
conf.define('USING_SYSTEM_ZLIB', 1)
|
|
|
|
def build(bld):
|
|
if bld.CONFIG_SET('USING_SYSTEM_ZLIB'):
|
|
return
|
|
|
|
bld.SAMBA_LIBRARY('z',
|
|
private_library=True,
|
|
deps='replace',
|
|
source='''adler32.c compress.c crc32.c gzio.c
|
|
uncompr.c deflate.c trees.c zutil.c
|
|
inflate.c infback.c inftrees.c inffast.c''')
|