s3-waf: replace all - with _ in the configuration option names
authorKai Blin <kai@samba.org>
Fri, 30 Apr 2010 12:21:28 +0000 (14:21 +0200)
committerKai Blin <kai@samba.org>
Thu, 20 May 2010 20:16:14 +0000 (22:16 +0200)
buildtools/wafsamba/samba3.py

index 9f9bc09cbccd7419bc9dc5448e79664ee961633e..af8ddf710616fe6a0e525cada6d6aded380ade71 100644 (file)
@@ -9,7 +9,7 @@ def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True,
     if help == ():
         help = ("Build with %s support" % option)
     if dest is None:
-        dest = "with_%s" % option
+        dest = "with_%s" % option.replace('-', '_')
 
     with_val = "--%s-%s" % (with_name, option)
     without_val = "--%s-%s" % (without_name, option)