doc: add FSRVP commands to rpcclient man page
[Samba/gbeck.git] / lib / zlib / wscript
blob42d6f76f149e52244ae8ef9c1213f4467cb14081
1 #!/usr/bin/env python
3 def configure(conf):
4 conf.CHECK_HEADERS('zlib.h')
5 conf.CHECK_FUNCS_IN('zlibVersion', 'z')
7 conf.CHECK_CODE('''
8 #if (ZLIB_VERNUM >= 0x1230)
9 #else
10 #error "ZLIB_VERNUM < 0x1230"
11 #endif
12 z_stream *z;
13 inflateInit2(z, -15);
14 ''',
15 headers='zlib.h',
16 lib='z',
17 local_include=False,
18 msg='Checking for ZLIB_VERNUM >= 0x1230 and working link to zlib',
19 define='HAVE_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
23 # is defined
24 if not conf.env['HAVE_ZLIB']:
25 conf.LOCAL_CACHE_SET('TARGET_TYPE', 'z', 'EMPTY')
27 def build(bld):
28 if not bld.CONFIG_SET('HAVE_ZLIB'):
29 bld.SAMBA_LIBRARY('z',
30 private_library=True,
31 deps='replace',
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''')