From abaf9aaba7acc10dde3a0b619209749748df52e2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 13:56:40 +1100 Subject: build: add_headers flag to CHECK_HEADER() This allows you to ask the header not be added to the list of headers for future configure checks --- buildtools/wafsamba/samba_autoconf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 898264e474..808428b08c 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -18,14 +18,14 @@ def DEFINE(conf, d, v): conf.env.append_value('CCDEFINES', d + '=' + str(v)) @runonce -def CHECK_HEADER(conf, h): - if conf.check(header_name=h): +def CHECK_HEADER(conf, h, add_headers=True): + if conf.check(header_name=h) and add_headers: conf.env.hlist.append(h) @conf -def CHECK_HEADERS(conf, list): +def CHECK_HEADERS(conf, list, add_headers=True): for hdr in list.split(): - CHECK_HEADER(conf, hdr) + CHECK_HEADER(conf, hdr, add_header) @conf def CHECK_TYPES(conf, list): -- cgit