mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
build: put config.h in top dir by default
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user