Add a summary of optional features at the end of the configuration stage.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-09-05 18:16:29 +01:00
parent 6e375eee8e
commit 453dd8a294
5 changed files with 49 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ def configure(conf):
e.define = 'SQLITE3'
e.uselib = 'SQLITE3'
conf.env['SQLITE_STATS'] = e.run()
conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output",
conf.env['SQLITE_STATS'],
"library 'sqlite3' not found")
def build(bld):
obj = bld.create_ns3_module('stats', ['node'])

View File

@@ -6,6 +6,10 @@ def configure(conf):
check.uselib = 'GTK_CONFIG_STORE'
check.mandatory = False
conf.env['ENABLE_GTK_CONFIG_STORE'] = check.run()
conf.report_optional_feature("GtkConfigStore", "GtkConfigStore",
conf.env['ENABLE_GTK_CONFIG_STORE'],
"library 'gtk+-2.0 >= 2.12' not found")
conf.sub_config('stats')
def build(bld):

View File

@@ -37,6 +37,8 @@ def configure(conf):
e.run()
if not Params.g_options.nsc:
conf.report_optional_feature("nsc", "Network Simulation Cradle", False,
"--nsc configure option not given")
return
check_nsc_buildutils()
@@ -55,6 +57,8 @@ def configure(conf):
e.run()
ok = True
conf.check_message('NSC supported architecture', arch, ok)
conf.report_optional_feature("nsc", "Network Simulation Cradle", ok,
"architecture %r not supported" % arch)
nsc_fetch()