diff options
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index b186804292..36bc2484ec 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -198,11 +198,13 @@ def CHECK_CODE(conf, code, define, if msg is None: msg="Checking for %s" % define + cflags = cflags + ' -I%s' % conf.curdir + if conf.check(fragment=fragment, execute=execute, define_name = define, mandatory = mandatory, - ccflags='-I%s %s' % (conf.curdir, cflags), + ccflags=to_list(cflags), includes='# . ../default', msg=msg): conf.DEFINE(define, 1) |