summaryrefslogtreecommitdiff
path: root/lib/zlib/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 17:35:20 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:44 +1000
commit82f3ef486f6566246d26156ac59c662aefee4c88 (patch)
treea7a69095b001e27e7ff72ab584852e8e886ece67 /lib/zlib/wscript
parentada6e570d11636ea79cc0503c3b7ee12fb07daa6 (diff)
downloadsamba-82f3ef486f6566246d26156ac59c662aefee4c88.tar.gz
samba-82f3ef486f6566246d26156ac59c662aefee4c88.tar.bz2
samba-82f3ef486f6566246d26156ac59c662aefee4c88.zip
build: zlib checks
Diffstat (limited to 'lib/zlib/wscript')
-rw-r--r--lib/zlib/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/zlib/wscript b/lib/zlib/wscript
new file mode 100644
index 0000000000..705fe90d9c
--- /dev/null
+++ b/lib/zlib/wscript
@@ -0,0 +1,11 @@
+def configure(conf):
+ conf.CHECK_HEADERS('zlib.h')
+ conf.CHECK_FUNCS_IN('zlibVersion', 'z')
+
+ conf.CHECK_CODE('''
+ #if (ZLIB_VERNUM >= 0x1230)
+ #else
+ #error "ZLIB_VERNUM < 0x1230"
+ #endif
+ ''',
+ define='HAVE_ZLIB')