diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-27 22:37:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-27 22:37:25 +0000 |
commit | 17e2f3897374c76dd66b21fdcd93c3a04671f4ce (patch) | |
tree | cdb72d739d823d0af0fb507daff3863ad1bdd37b /source/include/includes.h | |
parent | 4013ae87a1c73ceba346de2a0b905e7c8df355c4 (diff) | |
download | samba-17e2f3897374c76dd66b21fdcd93c3a04671f4ce.tar.gz samba-17e2f3897374c76dd66b21fdcd93c3a04671f4ce.tar.xz samba-17e2f3897374c76dd66b21fdcd93c3a04671f4ce.zip |
added test for krb5.h
this was causing the kerberos stuff to fail compilation on several
platforms
Diffstat (limited to 'source/include/includes.h')
-rw-r--r-- | source/include/includes.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index 0a3fd1f4c0a..0ebc09b4500 100644 --- a/source/include/includes.h +++ b/source/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 |