summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-24 13:43:22 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-24 13:43:22 +0100
commit41d45203ffd0936acbd4649b23e926b90c9a3333 (patch)
tree8497ddcfdd715fbd5a038d680ffab1229af3bbbc /configure.ac
parent8fe30a808b12159162d5ecebbba040d976fe91fd (diff)
trying to fix #5605
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 745300939..d4ef1ed4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -705,7 +705,14 @@ then
AM_CONDITIONAL(HAVE_GLIBCNSS, false)
AC_MSG_WARN([No GNU libc nss header, will not build NSS plugin])
else
- AM_CONDITIONAL(HAVE_GLIBCNSS, true)
+ NSS_INCLUDES="
+ #include <nss.h>
+ "
+ AC_CHECK_DECL([NSS_STATUS_UNAVAIL],
+ [AM_CONDITIONAL(HAVE_GLIBCNSS, true)],
+ [AM_CONDITIONAL(HAVE_GLIBCNSS, false)
+ AC_MSG_WARN([No nss header fails to define NSS_STATUS_UNAVAIl, will not build NSS plugin])],
+ [$NSS_INCLUDES])
fi