summaryrefslogtreecommitdiff
path: root/lib/util/wscript
blob: d4d7867470589cb0fb492748b5212a09ef6c0b6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
def options(opt):
    ''' This is a bit strange, but disable is the flag, not enable. '''
    opt.add_option('--disable-fault-handling', action='store_true', dest='disable_fault_handling', help=('disable the fault handlers'), default=False)

    opt.add_option(
        "--with-json",
        action="store_true",
        dest="with_json",
        default=True,
        help=(
            "Build with JSON support (default=True). This "
            "requires the jansson development headers."
        ),
    )
    opt.add_option(
        "--without-json",
        action="store_false",
        dest="with_json",
        help=("Build without JSON support."),
    )

    # We do not want libunwind by default (backtrace_symbols() in
    # glibc is better) but allow (eg) IA-64 to build with it where it
    # might be better (per old comment in fault.c)
    opt.samba_add_onoff_option('libunwind',
                               default=None,
                               help='''Use libunwind instead of the default backtrace_symbols()
                               from libc, for example on IA-64 where it might give a better
                               backtrace.''')

    opt.add_option('--with-systemd',
                   help=("Enable systemd integration"),
                   action='store_true', dest='enable_systemd')

    opt.add_option('--without-systemd',
                   help=("Disable systemd integration"),
                   action='store_false', dest='enable_systemd')

    opt.add_option('--with-lttng',
                   help=("Enable lttng integration"),
                   action='store_true', dest='enable_lttng')

    opt.add_option('--without-lttng',
                   help=("Disable lttng integration"),
                   action='store_false', dest='enable_lttng')

    opt.add_option('--with-gpfs',
                   help=("Directory under which gpfs headers are installed"),
                   action="store", dest='gpfs_headers_dir')