subunit: Only check for pkg-config file and use proper pkg-config file name.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 12 Nov 2011 15:35:48 +0000 (16:35 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 13 Nov 2011 17:06:06 +0000 (18:06 +0100)
lib/subunit/c/wscript

index 3e5311d79f5ca8ec57d80897a61215cd7deff702..f308b33e0f58eea1fe39b4c42fb10403c799da65 100644 (file)
@@ -3,7 +3,7 @@
 import Options
 
 def configure(conf):
-       if conf.CHECK_BUNDLED_SYSTEM('subunit', checkfunctions='subunit_test_start', headers='subunit/child.h'):
+       if conf.CHECK_BUNDLED_SYSTEM_PKG('subunit', pkg='libsubunit'):
                conf.define('USING_SYSTEM_SUBUNIT', 1)
 
 def build(bld):