Help waf to guess release versions of nsc and pybindgen

This commit is contained in:
Tom Henderson committed 2010-08-20 12:17:19 -07:00
1 parent d8ef95f3b3
commit 8f58376360
2 files changed
+13

No files matched your search

+6
View File
@@ -35,11 +35,17 @@ def configure(conf):
conf.check_message("NSC location", '', True, ("%s (given)" % Options.options.with_nsc))
conf.env['WITH_NSC'] = os.path.abspath(Options.options.with_nsc)
else:
# ns-3-dev uses ../nsc, while ns-3 releases use ../NSC_RELEASE_NAME
nsc_dir = os.path.join('..', "nsc")
nsc_release_dir = os.path.join('..', NSC_RELEASE_NAME)
if os.path.isdir(nsc_dir):
conf.check_message("NSC location", '', True, ("%s (guessed)" % nsc_dir))
conf.env['WITH_NSC'] = os.path.abspath(nsc_dir)
elif os.path.isdir(nsc_release_dir):
conf.check_message("NSC location", '', True, ("%s (guessed)" % nsc_release_dir))
conf.env['WITH_NSC'] = os.path.abspath(nsc_release_dir)
del nsc_dir
del nsc_release_dir
if not conf.env['WITH_NSC']:
conf.check_message("NSC location", '', False)
conf.report_optional_feature("nsc", "Network Simulation Cradle", False,