diff options
author | Christof Schmitt <cs@samba.org> | 2019-02-12 12:28:32 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-21 17:42:07 +0100 |
commit | 080dae0641293547cb88e4d39e7a9266d4decb0e (patch) | |
tree | 7512f0ac746281b805d06cb0d422cd3d9416614d /source3 | |
parent | e60d5ca3a7b4b962e012c4ee8f0ff9062c534af4 (diff) | |
download | samba-080dae0641293547cb88e4d39e7a9266d4decb0e.tar.gz |
waf: Check for libnscd
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
(cherry picked from commit 3a793497796395ffa3efda5807bdb1ca8e09e35b)
Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Thu Feb 21 17:42:07 CET 2019 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 3 | ||||
-rw-r--r-- | source3/wscript_build | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 3b081bc2c79..799ee08dbb5 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1659,6 +1659,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 diff --git a/source3/wscript_build b/source3/wscript_build index 5a8380906ae..8b43bef54b9 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -170,6 +170,7 @@ bld.SAMBA3_SUBSYSTEM('pdb', LIBCLI_AUTH flag_mapping samba-credentials + nscd ''') bld.SAMBA3_LIBRARY('smbldaphelper', |