From e28df27f2a6744e20e6413cee0f48c66c920e080 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 4 Jun 2011 14:18:31 +0200 Subject: s3: Fix the build on FreeBSD 8 This is probably not the last word on gss_mech_krb5, but for now it fixes the build on FreeBSD --- source3/configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index 12d083b468..324ada4c54 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3917,6 +3917,11 @@ if test x"$with_ads_support" != x"no"; then AC_CHECK_FUNC_EXT(gss_oid_equal, $KRB5_LIBS) AC_CHECK_FUNC_EXT(gss_inquire_sec_context_by_oid, $KRB5_LIBS) + # This is for FreeBSD (and possibly others). gss_mech_krb5 is a + # #define to GSS_KRB5_MECHANISM, which is defined in -lgssapi_krb5 + AC_CHECK_LIB_EXT(gssapi_krb5, KRB5_LIBS, GSS_KRB5_MECHANISM, + [KRB5_LIBS="$KRB5_LIBS -lgssapi_krb5"]) + # MIT krb5 1.8 does not expose this call (yet) AC_CHECK_DECLS(krb5_get_credentials_for_user, [], [], [#include ]) -- cgit