wafsamba: add CONFIG_RESET()
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Oct 2013 10:10:54 +0000 (12:10 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 24 Mar 2014 16:09:10 +0000 (17:09 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/samba_autoconf.py

index e14f9cd321e789f4145be53496aaffeefe41e00f..e726536eb4e993c4b284ae4d19c4efc0f1de034f 100644 (file)
@@ -495,6 +495,14 @@ def CONFIG_SET(conf, option):
     if v == ():
         return False
     return True
+
+@conf
+def CONFIG_RESET(conf, option):
+    if option not in conf.env:
+        return
+    del conf.env[option]
+
+Build.BuildContext.CONFIG_RESET = CONFIG_RESET
 Build.BuildContext.CONFIG_SET = CONFIG_SET
 Build.BuildContext.CONFIG_GET = CONFIG_GET