summaryrefslogtreecommitdiffstats
path: root/lib/nss_wrapper
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-10-15 11:29:12 +0200
committerRalph Böhme <slow@samba.org>2014-10-15 14:06:11 +0200
commitee9d075ae44ca8fdfa16afe878038711641f9a0c (patch)
treedc377614c0bf5c86cfdb637888ac708e66d3bcde /lib/nss_wrapper
parentb8fce2c65bad91abb5b22484456bac4060526039 (diff)
downloadsamba-ee9d075ae44ca8fdfa16afe878038711641f9a0c.tar.gz
samba-ee9d075ae44ca8fdfa16afe878038711641f9a0c.tar.xz
samba-ee9d075ae44ca8fdfa16afe878038711641f9a0c.zip
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
Diffstat (limited to 'lib/nss_wrapper')
-rw-r--r--lib/nss_wrapper/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nss_wrapper/wscript b/lib/nss_wrapper/wscript
index 94d23d55ad..b25b83d30a 100644
--- a/lib/nss_wrapper/wscript
+++ b/lib/nss_wrapper/wscript
@@ -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!