equal
deleted
inserted
replaced
6 if conf.check(header_name='stdlib.h'): |
6 if conf.check(header_name='stdlib.h'): |
7 conf.define('HAVE_STDLIB_H', 1) |
7 conf.define('HAVE_STDLIB_H', 1) |
8 conf.define('HAVE_GETENV', 1) |
8 conf.define('HAVE_GETENV', 1) |
9 |
9 |
10 conf.check(header_name='signal.h', define_name='HAVE_SIGNAL_H') |
10 conf.check(header_name='signal.h', define_name='HAVE_SIGNAL_H') |
11 |
|
12 conf.check(lib='rt', uselib='RT', define_name='HAVE_RT') |
|
13 |
11 |
14 conf.env['ENABLE_THREADING'] = conf.check(header_name='pthread.h', define_name='HAVE_PTHREAD_H') |
12 conf.env['ENABLE_THREADING'] = conf.check(header_name='pthread.h', define_name='HAVE_PTHREAD_H') |
15 |
13 |
16 conf.report_optional_feature("Threading", "Threading Primitives", |
14 conf.report_optional_feature("Threading", "Threading Primitives", |
17 conf.env['ENABLE_THREADING'], |
15 conf.env['ENABLE_THREADING'], |
52 'traced-callback.cc', |
50 'traced-callback.cc', |
53 'trace-source-accessor.cc', |
51 'trace-source-accessor.cc', |
54 'config.cc', |
52 'config.cc', |
55 'callback.cc', |
53 'callback.cc', |
56 ] |
54 ] |
57 core.uselib = 'RT' |
|
58 |
55 |
59 headers = bld.new_task_gen('ns3header') |
56 headers = bld.new_task_gen('ns3header') |
60 headers.module = 'core' |
57 headers.module = 'core' |
61 headers.source = [ |
58 headers.source = [ |
62 'system-wall-clock-ms.h', |
59 'system-wall-clock-ms.h', |