From 85041c88d8c2755448d3d659ca7261c4ebf1ec29 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 27 Mar 2014 16:37:18 +0100 Subject: [PATCH] wafsamba: replace dots in library names Certain libraries use a version number with a dot in the library name, eg libtracker-sparql-0.16. The dot is passed to the HAVE_LIBXXX macro but dots aren't allowed in C macros, compiler diagnostic: warning: missing whitespace after the macro name Signed-off-by: Ralph Boehme Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- buildtools/wafsamba/samba_autoconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 316aeda547c..59d9e791bde 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -567,7 +567,7 @@ int foo() if set_target: SET_TARGET_TYPE(conf, lib, 'EMPTY') else: - conf.define('HAVE_LIB%s' % lib.upper().replace('-','_'), 1) + conf.define('HAVE_LIB%s' % lib.upper().replace('-','_').replace('.','_'), 1) conf.env['LIB_' + lib.upper()] = lib if set_target: conf.SET_TARGET_TYPE(lib, 'SYSLIB') -- 2.11.4.GIT