libsmb: Make cli_smb2_create_fnum async
[Samba.git] / lib / zlib / wscript
blob9965fe276014617c869bdc5fe36691efed357278
1 #!/usr/bin/env python
3 def configure(conf):
4 version_check='''
5 #if (ZLIB_VERNUM >= 0x1230)
6 #else
7 #error "ZLIB_VERNUM < 0x1230"
8 #endif
9 z_stream *z;
10 inflateInit2(z, -15);
11 '''
13 if conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
14 checkfunctions='zlibVersion',
15 headers='zlib.h',
16 checkcode=version_check,
17 implied_deps='replace'):
18 conf.define('USING_SYSTEM_ZLIB', 1)
20 def build(bld):
21 if bld.CONFIG_SET('USING_SYSTEM_ZLIB'):
22 return
24 bld.SAMBA_LIBRARY('z',
25 private_library=True,
26 deps='replace',
27 allow_warnings=True,
28 source='''adler32.c compress.c crc32.c gzio.c
29 uncompr.c deflate.c trees.c zutil.c
30 inflate.c infback.c inftrees.c inffast.c''')