diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-03-22 09:37:09 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-04-03 09:53:08 +0200 |
commit | 81cc940c994424d351ac282383df4d1a57d6b614 (patch) | |
tree | 4ff11525029ee5f204dee62fe5c06da08af91046 | |
parent | 0d75c902254c6e27964c631459ef8e9b379b77fc (diff) | |
download | samba-81cc940c994424d351ac282383df4d1a57d6b614.tar.gz samba-81cc940c994424d351ac282383df4d1a57d6b614.tar.bz2 samba-81cc940c994424d351ac282383df4d1a57d6b614.zip |
wafsamba: display the default value in help for SAMBA3_ADD_OPTION
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r-- | buildtools/wafsamba/samba3.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py index 476d8fc9e4..fd063ad8c4 100644 --- a/buildtools/wafsamba/samba3.py +++ b/buildtools/wafsamba/samba3.py @@ -8,8 +8,17 @@ from samba_autoconf import library_flags def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True, with_name="with", without_name="without"): + if default is None: + default_str="auto" + elif default == True: + default_str="yes" + elif default == False: + default_str="no" + else: + default_str=str(default) + if help == (): - help = ("Build with %s support" % option) + help = ("Build with %s support (default=%s)" % (option, default_str)) if dest is None: dest = "with_%s" % option.replace('-', '_') |