s4-waf: set CONFIG_H variable for selftest
[nivanova/samba-autobuild/.git] / source4 / selftest / wscript
index 6c48b8f65b2b9f8b92bd58ce8fdbbe80a06ab896..7ecb6bab363f7c40210bc6fe39cef257dd3411c8 100644 (file)
@@ -75,6 +75,9 @@ def cmd_testonly(opt):
     # this is needed for systems without rpath, or with rpath disabled
     ADD_LD_LIBRARY_PATH('bin/shared')
 
+    # tell build system where to find config.h
+    os.environ['CONFIG_H'] = 'bin/default/source4/include/config.h'
+
     st_done = os.path.join(env.SELFTEST_PREFIX, 'st_done')
     if os.path.exists(st_done):
         os.unlink(st_done)