s4:auth Move struct auth_usersupplied_info to a common location
[samba.git] / lib / zlib / wscript
1 #!/usr/bin/env python
2
3 def configure(conf):
4     conf.CHECK_HEADERS('zlib.h')
5     conf.CHECK_FUNCS_IN('zlibVersion', 'z')
6
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')
17
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''')