summaryrefslogtreecommitdiff
path: root/lib/zlib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-26 14:29:45 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:07 +1000
commit42bad41cedfc717cfb6c80744bef6b1570ae502b (patch)
tree8d694db167804818568d6c1660f234d4ad9b8278 /lib/zlib
parent9ddd9de59b94580ca1bf141e85e26d92ede2d701 (diff)
downloadsamba-42bad41cedfc717cfb6c80744bef6b1570ae502b.tar.gz
samba-42bad41cedfc717cfb6c80744bef6b1570ae502b.tar.bz2
samba-42bad41cedfc717cfb6c80744bef6b1570ae502b.zip
s4-waf: cope with systems with zlib versions that are too old
Diffstat (limited to 'lib/zlib')
-rw-r--r--lib/zlib/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/zlib/wscript b/lib/zlib/wscript
index 705fe90d9c..51e4690869 100644
--- a/lib/zlib/wscript
+++ b/lib/zlib/wscript
@@ -9,3 +9,14 @@ def configure(conf):
#endif
''',
define='HAVE_ZLIB')
+
+def build(bld):
+ if bld.CONFIG_SET('HAVE_ZLIB'):
+ bld.TARGET_ALIAS('z', 'ZLIB')
+ else:
+ bld.SAMBA_LIBRARY('ZLIB',
+ 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''')
+
+