From f8b9e720b2f2eb29f241d2ff9808f2f29ee603b0 Mon Sep 17 00:00:00 2001 From: James Peach Date: Sun, 18 Nov 2007 13:56:19 -0800 Subject: [PATCH] Detect Heimdal Kerberos on OpenBSD 4.2. Patch from Sean McCreary . (This used to be commit 8b0bee7c7688a966777f502c97922d7ad40d841c) --- source3/configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index d37e3925aa9..69a8e3f023d 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3671,10 +3671,12 @@ if test x"$with_ads_support" != x"no"; then KRB5_CFLAGS="-I/usr/include/heimdal" KRB5_CPPFLAGS="-I/usr/include/heimdal" KRB5_LDFLAGS="-L/usr/lib/heimdal/lib" + FOUND_KRB5=yes AC_MSG_RESULT(yes) else KRB5_CFLAGS="-I/usr/include/heimdal" KRB5_CPPFLAGS="-I/usr/include/heimdal" + FOUND_KRB5=yes AC_MSG_RESULT(yes) fi else @@ -3690,6 +3692,21 @@ if test x"$with_ads_support" != x"no"; then KRB5_LDFLAGS="-L/usr/kerberos/lib" KRB5_CFLAGS="-I/usr/kerberos/include" KRB5_CPPFLAGS="-I/usr/kerberos/include" + FOUND_KRB5=yes + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + fi + + if test x$FOUND_KRB5 = x"no"; then + ################################################# + # see if this box has the OpenBSD location for heimdal krb5 + AC_MSG_CHECKING(for /usr/include/kerberosV) + if test -d /usr/include/kerberosV; then + KRB5_CPPFLAGS="-I/usr/include/kerberosV" + KRB5_LIBS="-lcrypto" + FOUND_KRB5=yes AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) -- 2.34.1