From 7b69bdf15e4e01255071a52fc5d67eabd284ff9f Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 13 May 2011 18:44:15 +0200 Subject: [PATCH 1/7] Add configure option to build pac responder --- configure.ac | 1 + src/external/pac_responder.m4 | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) create mode 100644 src/external/pac_responder.m4 diff --git a/configure.ac b/configure.ac index 972c24c..71dc14e 100644 --- a/configure.ac +++ b/configure.ac @@ -113,6 +113,7 @@ m4_include([src/external/nsupdate.m4]) m4_include([src/external/libkeyutils.m4]) m4_include([src/external/libnl.m4]) m4_include([src/external/systemd.m4]) +m4_include([src/external/pac_responder.m4]) m4_include([src/util/signal.m4]) WITH_INITSCRIPT diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4 new file mode 100644 index 0000000..a3f997e --- /dev/null +++ b/src/external/pac_responder.m4 @@ -0,0 +1,29 @@ +AC_SUBST(NDR_KRB5PAC_CFLAGS) +AC_SUBST(NDR_KRB5PAC_LIBS) + +AC_ARG_ENABLE([experimental-pac-responder], + [AS_HELP_STRING([--enable-experimental-pac-responder], + [build experimental pac responder])], + [build_pac_responder=$enableval], + [build_pac_responder=no]) + +if test x$build_pac_responder == xyes +then + PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac,, + AC_MSG_ERROR([Cannot build pac responder without libndr_krb5pac])) + + AC_PATH_PROG(KRB5_CONFIG, krb5-config) + AC_MSG_CHECKING(for supported MIT krb5 version) + KRB5_VERSION="`$KRB5_CONFIG --version`" + case $KRB5_VERSION in + Kerberos\ 5\ release\ 1.9*) + AC_MSG_RESULT(yes) + ;; + *) + AC_MSG_ERROR([Cannot build authdata plugin with this version of + MIT Kerberos, please use 1.9.x]) + esac +fi + +AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes ]) + -- 1.7.5.1