git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d923068
)
Use uselib in CHECK_HEADER.
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 19 Feb 2012 02:58:32 +0000
(
03:58
+0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sun, 19 Feb 2012 02:58:32 +0000
(
03:58
+0100)
buildtools/wafsamba/samba_autoconf.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_autoconf.py
b/buildtools/wafsamba/samba_autoconf.py
index de94a1cc98e6fca9b877f2af43db37c95022379a..65dfa781cf3407a6d14e003dd8531ac5a78b1134 100644
(file)
--- 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)