Fix compilation of Python bindings when libsqlite3 is not available (and so the class SqliteDataOutput is omitted).
1.1 --- a/bindings/python/ns3modulegen.py Tue Sep 02 11:12:42 2008 +0100
1.2 +++ b/bindings/python/ns3modulegen.py Tue Sep 02 17:32:19 2008 +0100
1.3 @@ -115,6 +115,10 @@
1.4 if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
1.5 root_module.classes.remove(root_module['ns3::GtkConfigStore'])
1.6
1.7 + # if no sqlite, the class SqliteDataOutput is disabled
1.8 + if 'SQLITE_STATS' in os.environ:
1.9 + root_module.classes.remove(root_module['ns3::SqliteDataOutput'])
1.10 +
1.11 root_module.generate(out, '_ns3')
1.12
1.13 out.close()
2.1 --- a/bindings/python/wscript Tue Sep 02 11:12:42 2008 +0100
2.2 +++ b/bindings/python/wscript Tue Sep 02 17:32:19 2008 +0100
2.3 @@ -374,6 +374,8 @@
2.4 bindgen.os_env = dict(os.environ)
2.5 if not env['ENABLE_GTK_CONFIG_STORE']:
2.6 bindgen.os_env['DISABLE_GTK_CONFIG_STORE'] = "1"
2.7 + if not env['SQLITE_STATS']:
2.8 + bindgen.os_env['SQLITE_STATS'] = "1"
2.9
2.10
2.11 ## we build python bindings if either we have the tools to