buildtools/wafsamba: undefine a define for a failed test unless asked to keep it
authorAlexander Bokovoy <ab@samba.org>
Fri, 7 Sep 2018 14:34:48 +0000 (14:34 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 10 Sep 2018 17:28:15 +0000 (19:28 +0200)
commit230796d7ee7384aa7310d5601b2136679857b277
tree1c2581b5777925c224357f4efa48d35b323cabc1
parent93b23570358e143a90a8aaaa007bb0d482a531ec
buildtools/wafsamba: undefine a define for a failed test unless asked to keep it

If conf.CHECK_CODE() is called without `always=True` and the test has
failed, undefine the define already set to '0' by conf.check_code().

This restores expectations that undefined symbols are not considered to
be set by CONFIG_SET() method.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_autoconf.py