summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-07-16 21:43:30 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-02 10:39:24 +0200
commit8a5e793a0576250da80371e53aa3e7eba15cdb63 (patch)
tree5e0533d309ba63b9f317c57671430e4a79ca7953 /src/external
parent8cfd1e0d696a573a92ef011a64317b9054f5c45f (diff)
downloadsssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.gz
sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.xz
sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.zip
Add conditional build for MIT Kerberos localauth plugin
This patch adds everything what is needed to build the MIT Kerberos localauth plugin if the used version of MIT Kerberos supports it. It does not implement the plugin. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/external')
-rw-r--r--src/external/krb5.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4
index 861c8c9fd..90b4a2583 100644
--- a/src/external/krb5.m4
+++ b/src/external/krb5.m4
@@ -96,5 +96,20 @@ AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN],
AM_COND_IF([BUILD_KRB5_LOCATOR_PLUGIN],
[AC_DEFINE_UNQUOTED(HAVE_KRB5_LOCATOR_PLUGIN, 1, [Build with krb5 locator plugin])])
+AC_CHECK_HEADER([krb5/localauth_plugin.h],
+ [have_localauth_plugin=yes],
+ [have_localauth_plugin=no]
+ [AC_MSG_NOTICE([Kerberos localauth plugin cannot be built])],
+ [ #ifdef HAVE_KRB5_KRB5_H
+ #include <krb5/krb5.h>
+ #else
+ #include <krb5.h>
+ #endif
+ ])
+AM_CONDITIONAL([BUILD_KRB5_LOCALAUTH_PLUGIN],
+ [test x$have_localauth_plugin = xyes])
+AM_COND_IF([BUILD_KRB5_LOCALAUTH_PLUGIN],
+ [AC_DEFINE_UNQUOTED(HAVE_KRB5_LOCALAUTH_PLUGIN, 1, [Build with krb5 localauth plugin])])
+
CFLAGS=$SAVE_CFLAGS
LIBS=$SAVE_LIBS