summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-12 12:13:23 +0200
committerStefan Metzmacher <metze@samba.org>2015-06-12 17:08:20 +0200
commitff072a633660780cf72d204f4620c664957a6072 (patch)
tree34b2b46831c8717a9d4cf50a23924b2dff3539a0 /buildtools
parent86671dbd9f912e27be3ff7ba3a5f9b8200bf2550 (diff)
downloadsamba-ff072a633660780cf72d204f4620c664957a6072.tar.gz
wafsamba: let CHECK_DECLS() find enum values
In the current state this still generates the same config.h at least on ubuntu 14.04 amd64. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 4f646fdb8f0..c5f132cf17b 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -229,7 +229,18 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
headers=headers,
msg='Checking for declaration of %s' % v,
always=always):
- ret = False
+ if not CHECK_CODE(conf,
+ '''
+ return (int)%s;
+ ''' % (v),
+ execute=False,
+ link=False,
+ msg='Checking for declaration of %s (as enum)' % v,
+ local_include=False,
+ headers=headers,
+ define=define,
+ always=always):
+ ret = False
return ret