s3: Fix the build on FreeBSD 8
authorVolker Lendecke <vl@samba.org>
Sat, 4 Jun 2011 12:18:31 +0000 (14:18 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 4 Jun 2011 10:44:58 +0000 (12:44 +0200)
This is probably not the last word on gss_mech_krb5, but for now it fixes
the build on FreeBSD

source3/configure.in

index 12d083b46841019e72e1145f9bc610ddb3bbb515..324ada4c541a5856c37620e37ef0661737fc3b86 100644 (file)
@@ -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 <krb5.h>])