Merge branch 'master' of git://git.samba.org/samba
[Samba/ita.git] / lib / zlib / wscript
blob6f0d4f798986abe46ef83037f6299a847bbb54c6
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 ''',
13 headers='zlib.h',
14 local_include=False,
15 msg='Checking for ZLIB_VERNUM >= 0x1230',
16 define='HAVE_ZLIB')
18 def build(bld):
19 if bld.CONFIG_SET('HAVE_ZLIB'):
20 bld.TARGET_ALIAS('z', 'ZLIB')
21 else:
22 bld.SAMBA_LIBRARY('ZLIB',
23 deps='replace',
24 source='''adler32.c compress.c crc32.c gzio.c
25 uncompr.c deflate.c trees.c zutil.c
26 inflate.c infback.c inftrees.c inffast.c''')