1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

nss_wrapper: check for nss.h

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Oct 15 14:06:11 CEST 2014 on sn-devel-104
This commit is contained in:
Andreas Schneider 2014-10-15 11:29:12 +02:00 committed by Ralph Böhme
parent b8fce2c65b
commit ee9d075ae4

View File

@ -9,6 +9,8 @@ def configure(conf):
conf.DEFINE('USING_SYSTEM_NSS_WRAPPER', 1)
libnss_wrapper_so_path = 'libnss_wrapper.so'
else:
conf.CHECK_HEADERS('nss.h')
# check HAVE_GCC_THREAD_LOCAL_STORAGE
conf.CHECK_CODE('''
__thread int tls;
@ -94,7 +96,7 @@ def configure(conf):
conf.DEFINE('NSS_WRAPPER', 1)
def build(bld):
if not bld.CONFIG_SET("USING_SYSTEM_NSS_WRAPPER"):
if bld.CONFIG_SET("HAVE_NSS_H") and not bld.CONFIG_SET("USING_SYSTEM_NSS_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# breaks preloading!