4 from dynconfig
import *
7 # get all the basic GNU options from the gnu_dirs tool
8 opt
.tool_options('gnu_dirs')
9 for option
in dir_options
.keys():
10 default
= dir_options
[option
][0]
11 help = dir_options
[option
][1]
12 varname
= get_varname(option
)
13 opt
.add_option('--%s' % option
,
14 help=(help + ' [%s]' % default
),
15 action
="store", dest
=varname
, default
=default
)
18 # get all the basic GNU options from the gnu_dirs tool
19 conf
.check_tool('gnu_dirs')
20 for option
in dir_options
.keys():
21 varname
= get_varname(option
)
22 value
= getattr(Options
.options
, varname
, None)
23 conf
.ASSERT(value
is not None, "Missing configure option %s" % varname
)
24 conf
.ASSERT(varname
not in conf
.env
, "Variable %s already defined" % varname
)
25 conf
.env
[varname
] = value
28 cflags
= dynconfig_cflags(bld
)
29 bld
.SAMBA_SUBSYSTEM('DYNCONFIG',
31 deps
='replace talloc tdb',