wafsamba: replace dots in library names
authorRalph Boehme <rb@sernet.de>
Thu, 27 Mar 2014 15:37:18 +0000 (16:37 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 8 Apr 2014 17:26:13 +0000 (19:26 +0200)
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 <rb@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 316aeda547caf29057679b6cf80096745ec23d69..59d9e791bdee96d297676222fe3a730cbbd81940 100644 (file)
@@ -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')