summaryrefslogtreecommitdiff
path: root/source4/dynconfig/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dynconfig/wscript')
-rw-r--r--source4/dynconfig/wscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/dynconfig/wscript b/source4/dynconfig/wscript
index 5be688c72e..722940f28e 100644
--- a/source4/dynconfig/wscript
+++ b/source4/dynconfig/wscript
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-import string, Utils, Options, sys
+import string, Utils, Options, sys, Build
from samba_utils import EXPAND_VARIABLES
# list of directory options to offer in configure
@@ -37,6 +37,7 @@ dyn_cflags = {
'SWATDIR' : '${DATADIR}/swat',
'CODEPAGEDIR' : '${LIBDIR}/samba',
'LIBDIR' : '${LIBDIR}',
+ 'LIBEXECDIR' : '${MODULESDIR}',
'STATEDIR' : '${LOCALSTATEDIR}',
'CACHEDIR' : '${LOCKDIR}',
'SMB_PASSWD_FILE' : '${PRIVATEDIR}/smbpasswd',
@@ -61,6 +62,7 @@ dyn_cflags_fhs = {
'NCALRPCDIR' : '${LOCALSTATEDIR}/ncalrpc',
'PYTHONDIR' : '${PYTHONDIR}',
'MODULESDIR' : '${LIBDIR}/samba',
+ 'LIBEXECDIR' : '${MODULESDIR}',
'INCLUDEDIR' : '${INCLUDEDIR}/samba-4.0',
'PKGCONFIGDIR' : '${LIBDIR}/pkgconfig',
'SWATDIR' : '${DATADIR}/swat',
@@ -120,9 +122,10 @@ def dynconfig_cflags(bld):
for f in dyn_cflags.keys():
cflags.append('-D%s="%s"' % (f, bld.env[f]))
return cflags
+Build.BuildContext.dynconfig_cflags = dynconfig_cflags
def build(bld):
- cflags = dynconfig_cflags(bld)
+ cflags = bld.dynconfig_cflags()
bld.SAMBA_SUBSYSTEM('DYNCONFIG',
'dynconfig.c',
deps='replace talloc',