summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-04-06 00:28:05 +0200
committerAndrew Tridgell <tridge@samba.org>2010-04-12 17:47:30 +1000
commitacc81f96a45275b4bfe356fdc4dd3cc5f03775ff (patch)
tree90caa72aa86d9ebebae35c5625d204a0c079915c
parentc09fa85735b044028f9659e2db075918fdfd07c8 (diff)
downloadsamba-acc81f96a45275b4bfe356fdc4dd3cc5f03775ff.tar.gz
samba-acc81f96a45275b4bfe356fdc4dd3cc5f03775ff.tar.bz2
samba-acc81f96a45275b4bfe356fdc4dd3cc5f03775ff.zip
build: Add an always parameter to CHECK_DECLS
-rw-r--r--buildtools/wafsamba/samba_autoconf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 60c505717b..d12fb9d9cd 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -204,7 +204,7 @@ def CHECK_VARIABLE(conf, v, define=None, always=False,
@conf
-def CHECK_DECLS(conf, vars, reverse=False, headers=None):
+def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
'''check a list of variable declarations, using the HAVE_DECL_xxx form
of define
@@ -219,7 +219,8 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None):
if not CHECK_VARIABLE(conf, v,
define=define,
headers=headers,
- msg='Checking for declaration of %s' % v):
+ msg='Checking for declaration of %s' % v,
+ always=always):
ret = False
return ret