build: define HAVE_LIBxxx when we find a library
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 06:35:31 +0000 (17:35 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:44 +0000 (20:26 +1000)
buildtools/wafsamba/samba_autoconf.py

index be8e1258969a91f9ce3ba10feba0e9cc250d0279..9966b32d5aff036b65528a20053b23b4550cf49c 100644 (file)
@@ -280,6 +280,8 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False):
         LOCAL_CACHE_SET(conf, 'EMPTY_TARGETS', library.upper(), True)
         return False
 
+    conf.define('HAVE_LIB%s' % library.upper(), 1)
+
     ret = True
     for f in remaining:
         if not conf.check(function_name=f, lib=library, header_name=conf.env.hlist):