diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-10-08 12:10:54 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-03-24 17:09:10 +0100 |
commit | 1c1a2e459655c6062ab4fc425cb055360a75b3f3 (patch) | |
tree | ce073a962178a61c936b35c43a3e3c19e457199a /buildtools | |
parent | 59767911bded48388c27d5f9cd2ff1346a1c01a6 (diff) | |
download | samba-1c1a2e459655c6062ab4fc425cb055360a75b3f3.tar.gz samba-1c1a2e459655c6062ab4fc425cb055360a75b3f3.tar.xz samba-1c1a2e459655c6062ab4fc425cb055360a75b3f3.zip |
wafsamba: add CONFIG_RESET()
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.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index e14f9cd321e..e726536eb4e 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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 |