wafsamba: Allow passing 'lib' to CHECK_STRUCTURE_MEMBER
authorAndreas Schneider <asn@samba.org>
Fri, 19 Jan 2018 14:34:32 +0000 (15:34 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 22 Jan 2018 11:26:20 +0000 (12:26 +0100)
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>
buildtools/wafsamba/samba_autoconf.py

index 7940a7d4fe8024c386a5b170b3d9b2b640d86bae..cc08e0d5c3db07e5978a3bd21eea7da9e35859d2 100644 (file)
@@ -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,