Produce an error if Active Directory support is requested and we don't
authorTim Potter <tpot@samba.org>
Mon, 23 Jun 2003 01:27:17 +0000 (01:27 +0000)
committerTim Potter <tpot@samba.org>
Mon, 23 Jun 2003 01:27:17 +0000 (01:27 +0000)
have krb5.h

Should fix bug 152.
(This used to be commit 82d3dd757be5c56fdeb97e66f64ec25d5e202614)

source3/configure.in

index 1a123553cdaad20b0f0bc83227974e6e9db4eeea..339a61c632327c8593a060acf8d541322c85d35e 100644 (file)
@@ -2199,6 +2199,10 @@ if test x"$with_ads_support" = x"yes"; then
   # include paths
   AC_CHECK_HEADERS(krb5.h)
 
+  if test x"$ac_cv_header_krb5_h" = x"no"; then
+    AC_MSG_ERROR([Active Directory cannot be supported without krb5.h])
+  fi
+
   # now check for gssapi headers.  This is also done here to allow for
   # different kerberos include paths
   AC_CHECK_HEADERS(gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h)