From 508cb5b97ec843aff26d60915578b2eb6cc155fc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Mar 2010 17:51:39 +1100 Subject: build: cope with double check for functions --- buildtools/wafsamba/samba_autoconf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 0b26860033..dc1a0b3094 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -125,8 +125,11 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None): @runonce def CHECK_FUNC(conf, f, checklink=False): '''check for a function''' + define='HAVE_%s' % f.upper() + if CONFIG_SET(define): + return True if checklink: - return CHECK_CODE(conf, '%s()' % f, execute=False, define='HAVE_%s' % f.upper()) + return CHECK_CODE(conf, '%s()' % f, execute=False, define=define) return conf.check(function_name=f, header_name=conf.env.hlist) -- cgit