waf: Check for libnscd
authorChristof Schmitt <cs@samba.org>
Tue, 12 Feb 2019 19:28:32 +0000 (12:28 -0700)
committerGünther Deschner <gd@samba.org>
Wed, 13 Feb 2019 16:58:33 +0000 (17:58 +0100)
The check was in the old autoconf, but not in waf. As the code is still
in source3/lib/util_nscd.c, add the check for libnscd to allow building
and using the code.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13787

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Feb 13 17:58:33 CET 2019 on sn-devel-144

source3/wscript
source3/wscript_build

index 0cd7f40317ac6c7044eb68980defe227ecf9b197..e5d519d7fc82e5da39d728fa5f44a27d651c78fd 100644 (file)
@@ -1648,6 +1648,9 @@ main() {
 
     conf.CHECK_HEADERS('rpc/xdr.h', lib='tirpc')
 
+    if conf.CHECK_FUNCS_IN('nscd_flush_cache', 'nscd', headers='libnscd.h'):
+        conf.DEFINE('HAVE_NSCD_FLUSH_CACHE', '1')
+
     forced_static_modules.extend(TO_LIST('auth_builtin auth_sam auth_winbind'))
     default_static_modules.extend(TO_LIST('''pdb_smbpasswd pdb_tdbsam
                                       auth_unix
index 11c877818c2f74b55f4342570ea9325a022decef..6f6d74211ba422773a8e642ce64f607a8839cd25 100644 (file)
@@ -178,6 +178,7 @@ bld.SAMBA3_SUBSYSTEM('pdb',
                         LIBCLI_AUTH
                         flag_mapping
                         samba-credentials
+                        nscd
                         ''')
 
 bld.SAMBA3_LIBRARY('smbldaphelper',