summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-19 03:58:32 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-19 03:58:32 +0100
commit8ce7abd449b3c09a24fd2226d699e87a946dd380 (patch)
tree17e1b616b19ef8cb208221e68df059b9242431b8 /buildtools
parentd92306894aeb09788c2be22f5e754d8bf929b7f6 (diff)
downloadsamba-8ce7abd449b3c09a24fd2226d699e87a946dd380.tar.gz
Use uselib in CHECK_HEADER.
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index de94a1cc98e..65dfa781cf3 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -95,10 +95,13 @@ def CHECK_HEADER(conf, h, add_headers=False, lib=None):
(ccflags, ldflags) = library_flags(conf, lib)
hdrs = hlist_to_string(conf, headers=h)
+ if lib is None:
+ lib = ""
ret = conf.check(fragment='%s\nint main(void) { return 0; }' % hdrs,
type='nolink',
execute=0,
ccflags=ccflags,
+ uselib=lib.upper(),
msg="Checking for header %s" % h)
if not ret:
missing_headers.add(h)