summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 12:08:54 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-09 15:24:05 +1000
commit25b9760a42929c27be4399cd3d7bff5bb71b67db (patch)
treecae3100446822c1fd461d4673f7343fc4331562e
parent46754e9665ceefe26cf28fbc70629e9660d847da (diff)
downloadsamba-25b9760a42929c27be4399cd3d7bff5bb71b67db.tar.gz
build: a more robust zlib test
Just in-case, and done this way due to the #define maze that applies to this function. No actual host has been found that needs this yet. Andrew Bartlett
-rw-r--r--lib/zlib/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/zlib/wscript b/lib/zlib/wscript
index a091de6b5f1..42d6f76f149 100644
--- a/lib/zlib/wscript
+++ b/lib/zlib/wscript
@@ -9,10 +9,13 @@ def configure(conf):
#else
#error "ZLIB_VERNUM < 0x1230"
#endif
+ z_stream *z;
+ inflateInit2(z, -15);
''',
headers='zlib.h',
+ lib='z',
local_include=False,
- msg='Checking for ZLIB_VERNUM >= 0x1230',
+ msg='Checking for ZLIB_VERNUM >= 0x1230 and working link to zlib',
define='HAVE_ZLIB')
# If we don't do this then we will receive an error that lib 'z'