From 771a8c17afbb287297958de1f8a017c96507db78 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sun, 11 Apr 2010 10:34:12 +0200 Subject: s3-waf: Allow using --enable/--disable options as well --- buildtools/wafsamba/samba3.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'buildtools/wafsamba/samba3.py') diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py index ebf2565146..9f9bc09cbc 100644 --- a/buildtools/wafsamba/samba3.py +++ b/buildtools/wafsamba/samba3.py @@ -4,14 +4,15 @@ import Options from optparse import SUPPRESS_HELP -def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True): +def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True, + with_name="with", without_name="without"): if help == (): help = ("Build with %s support" % option) if dest is None: dest = "with_%s" % option - with_val = "--with-%s" % option - without_val = "--without-%s" % option + with_val = "--%s-%s" % (with_name, option) + without_val = "--%s-%s" % (without_name, option) opt.add_option(with_val, help=help, action="store_true", dest=dest, default=default) -- cgit