src/internet/wscript
changeset 10881 c076ac985771
parent 10689 a506de747327
child 10885 462d70f54ada
--- a/src/internet/wscript	Thu Sep 04 23:13:41 2014 +0300
+++ b/src/internet/wscript	Fri Sep 05 15:25:10 2014 -0700
@@ -14,11 +14,18 @@
                    help=('Use Network Simulation Cradle, given by the indicated path,'
                          ' to allow the use of real-world network stacks'),
                    default='', dest='with_nsc')
-
+    opt.add_option('--disable-nsc',
+                   help=('Disable Network Simulation Cradle support'),
+                   dest='disable_nsc', default=False, action="store_true")
 
 def configure(conf):
     conf.env['ENABLE_NSC'] = False
 
+    if Options.options.disable_nsc:
+        conf.report_optional_feature("nsc", "Network Simulation Cradle", False,
+                                     "disabled by user request")
+        return
+
     # checks for flex and bison, which is needed to build NSCs globaliser
     # TODO: how to move these checks into the allinone scripts?
     #def check_nsc_buildutils():