|
|
| 2 |
|
2 |
|
| 3 |
import os |
3 |
import os |
| 4 |
import Options |
4 |
import Options |
|
|
5 |
import Logs |
| 5 |
from waflib.Errors import WafError |
6 |
from waflib.Errors import WafError |
| 6 |
|
7 |
|
| 7 |
def options(opt): |
8 |
def options(opt): |
| 8 |
opt.add_option('--with-openflow', |
9 |
opt.add_option('--with-openflow', |
| 9 |
help=('Path to OFSID source for NS-3 OpenFlow Integration support'), |
10 |
help=('Path to OFSID source for NS-3 OpenFlow Integration support'), |
| 10 |
default='', dest='with_openflow') |
11 |
default='', dest='with_openflow') |
| 11 |
opt.tool_options('boost', tooldir=["waf-tools"]) |
|
|
| 12 |
|
12 |
|
| 13 |
def configure(conf): |
13 |
def configure(conf): |
| 14 |
try: |
|
|
| 15 |
conf.check_tool('boost') |
| 16 |
conf.check_boost(lib='signals filesystem') |
| 17 |
if not conf.env.LIB_BOOST: |
| 18 |
conf.check_boost(lib='signals filesystem', libpath="/usr/lib64") |
| 19 |
except WafError: |
| 20 |
conf.env['LIB_BOOST'] = [] |
| 21 |
|
| 22 |
if not conf.env.LIB_BOOST: |
14 |
if not conf.env.LIB_BOOST: |
| 23 |
conf.report_optional_feature("openflow", "NS-3 OpenFlow Integration", False, |
15 |
conf.report_optional_feature("openflow", "NS-3 OpenFlow Integration", False, |
| 24 |
"Required boost libraries not found") |
16 |
"Required boost libraries not found") |