summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wafsamba.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/replace/wafsamba.py b/lib/replace/wafsamba.py
index 96e8e7645de..7796dc25bfa 100644
--- a/lib/replace/wafsamba.py
+++ b/lib/replace/wafsamba.py
@@ -51,8 +51,12 @@ def CHECK_FUNCS_IN(conf, list, library):
#################################################
# write out config.h in the right directory
@conf
-def SAMBA_CONFIG_H(conf, path='config.h'):
- if os.path.normpath(conf.curdir) == os.path.normpath(os.environ.get('PWD')):
+def SAMBA_CONFIG_H(conf, path=None):
+ if os.path.normpath(conf.curdir) != os.path.normpath(os.environ.get('PWD')):
+ return
+ if path is None:
+ conf.write_config_header('config.h', top=True)
+ else:
conf.write_config_header(path)