summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 0a3fd1f4c0..0ebc09b450 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -379,18 +379,25 @@
#if HAVE_KRB5_H
#include <krb5.h>
+#else
+#undef HAVE_KRB5
#endif
#if HAVE_LDAP_H
#include <ldap.h>
+#else
+#undef HAVE_LDAP
#endif
#if HAVE_SASL_H
#include <sasl.h>
+#else
+/* we must have sasl to use ldap */
+#undef HAVE_LDAP
#endif
/* we support ADS if we have krb5 and ldap libs */
-#if defined(HAVE_KRB5) && defined(HAVE_KRB5_H) && defined(HAVE_LDAP) && defined(HAVE_LDAP_H) && defined(HAVE_SASL_H)
+#if defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS
#endif