From 0c6af1e2da4619634c3806b5c0ee022bef935bb5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 5 Jan 2012 11:30:22 +1100 Subject: krb5: Require krb5_principal_compare_any_realm be available to build with krb5 --- source3/configure.in | 6 ++++++ source3/wscript | 3 +++ 2 files changed, 9 insertions(+) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 53eaaf2bc5..b408b1c1a6 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -4447,6 +4447,12 @@ if test x"$with_ads_support" != x"no"; then use_ads=no fi + if test x"$ac_cv_func_ext_krb5_principal_compare_any_realm" != x"yes" + then + AC_MSG_WARN(krb5_principal_compare_any_realm not found in -lkrb5) + use_ads=no + fi + if test x"$ac_cv_func_ext_krb5_principal2salt" != x"yes" -a \ x"$ac_cv_func_ext_krb5_get_pw_salt" != x"yes" then diff --git a/source3/wscript b/source3/wscript index 7d6b708591..8734a4f069 100644 --- a/source3/wscript +++ b/source3/wscript @@ -768,6 +768,9 @@ return krb5_kt_resolve(context, "WRFILE:api", &keytab); if not conf.CONFIG_SET('HAVE_KRB5_GET_RENEWED_CREDS'): Logs.warn("krb5_get_renewed_creds not found in -lkrb5") use_ads=False + if not conf.CONFIG_SET('HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM'): + Logs.warn("krb5_principal_compare_any_realm not found in -lkrb5") + use_ads=False if not conf.CONFIG_SET('HAVE_KRB5_PRINCIPAL2SALT') and \ not conf.CONFIG_SET('HAVE_KRB5_GET_PW_SALT'): Logs.warn("no CREATE_KEY_FUNCTIONS detected") -- cgit