s4-dynconfig: fixed dyn_SETUPDIR to point to the right directory
authorAndrew Tridgell <tridge@samba.org>
Thu, 3 Feb 2011 06:34:51 +0000 (17:34 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Feb 2011 02:22:00 +0000 (13:22 +1100)
this make dyn_SETUPDIR correct for both source4/ build and a top level
build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dynconfig/wscript

index 00580471826b57bd93610a1b0a6eccc397374f8c..ca664fbe6e586e01193f86914fd37f22ea900113 100644 (file)
@@ -124,8 +124,8 @@ def dynconfig_cflags(bld, list=None):
     cflags = []
     # override some paths when running from the build directory
     override = { 'MODULESDIR'    : 'bin/modules',
-                 'SCRIPTSBINDIR' : 'scripting/bin',
-                 'SETUPDIR'      : 'setup' }
+                 'SCRIPTSBINDIR' : os.path.join(bld.env.srcdir, 'source4/scripting/bin'),
+                 'SETUPDIR'      : os.path.join(bld.env.srcdir, 'source4/setup') }
     for f in dyn_cflags.keys():
         if list and not f in list:
             continue