summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-01-19 15:34:32 +0100
committerKarolin Seeger <kseeger@samba.org>2018-01-25 21:05:22 +0100
commit7ed0c0663f378de90b4a0b5b8fe057929979a37f (patch)
tree231ae744c4be2cff73dcb79bf5a42c7ecc996705
parent25e01d97e7713e419f0910c803f32c282d10f8a2 (diff)
downloadsamba-7ed0c0663f378de90b4a0b5b8fe057929979a37f.tar.gz
wafsamba: Allow passing 'lib' to CHECK_STRUCTURE_MEMBER
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238 We need to be able to point it to the right header location, so we need to be able to pass the 'lib' that it gets set. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> (cherry picked from commit 87f105d76ce074bff08fd507d72568be88d48d00)
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 795d13075cf..5305d9a1ae5 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -454,7 +454,8 @@ def CHECK_CODE(conf, code, define,
@conf
def CHECK_STRUCTURE_MEMBER(conf, structname, member,
- always=False, define=None, headers=None):
+ always=False, define=None, headers=None,
+ lib=None):
'''check for a structure member'''
if define is None:
define = 'HAVE_%s' % member.upper()
@@ -463,6 +464,7 @@ def CHECK_STRUCTURE_MEMBER(conf, structname, member,
define,
execute=False,
link=False,
+ lib=lib,
always=always,
headers=headers,
local_include=False,