wafsambaa: Support libraries that don't have the same name as their pkg-config file.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 12 Nov 2011 15:56:01 +0000 (16:56 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 13 Nov 2011 17:06:06 +0000 (18:06 +0100)
buildtools/wafsamba/samba_bundled.py

index aeaf8ca..95d0c7d 100644 (file)
@@ -126,7 +126,7 @@ def CHECK_BUNDLED_SYSTEM_PKG(conf, libname, minversion='0.0.0',
         pkg = libname
 
     if conf.check_cfg(package=pkg,
-                      args='"%s >= %s" --cflags --libs' % (libname, minversion),
+                      args='"%s >= %s" --cflags --libs' % (pkg, minversion),
                       msg=msg):
         conf.SET_TARGET_TYPE(libname, 'SYSLIB')
         conf.env[found] = True