diff options
author | Sumit Bose <sbose@redhat.com> | 2016-04-15 12:41:35 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-04-21 12:24:10 +0200 |
commit | 91d312000e6ded4a93327c137b10c5beda55f65c (patch) | |
tree | b0eee51d2be219a03f4c9ea5231b8a6fd100c598 /src/external/pac_responder.m4 | |
parent | fd3cbf6bfe86a245d7e90d2a355794eb9c70d525 (diff) | |
download | sssd-91d312000e6ded4a93327c137b10c5beda55f65c.tar.gz sssd-91d312000e6ded4a93327c137b10c5beda55f65c.tar.xz sssd-91d312000e6ded4a93327c137b10c5beda55f65c.zip |
build: move ndr_krb5pac check to the other Samba checks
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/external/pac_responder.m4')
-rw-r--r-- | src/external/pac_responder.m4 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4 index a9e142dc9..928b1d295 100644 --- a/src/external/pac_responder.m4 +++ b/src/external/pac_responder.m4 @@ -1,19 +1,12 @@ -AC_SUBST(NDR_KRB5PAC_CFLAGS) -AC_SUBST(NDR_KRB5PAC_LIBS) - AC_ARG_ENABLE([pac-responder], [AS_HELP_STRING([--enable-pac-responder], [build pac responder])], [build_pac_responder=$enableval], [build_pac_responder=yes]) -ndr_krb5pac_ok=no krb5_version_ok=no if test x$build_pac_responder = xyes then - PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac, ndr_krb5pac_ok=yes, - AC_MSG_WARN([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`" @@ -34,6 +27,11 @@ then esac fi -AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes -a x$ndr_krb5pac_ok = xyes -a x$krb5_version_ok = xyes ]) +if test x$with_samba != xyes +then + AC_MSG_WARN([Cannot build PAC responder without Samba]) +fi + +AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes -a x$with_samba = xyes -a x$krb5_version_ok = xyes ]) AM_COND_IF([BUILD_PAC_RESPONDER], [AC_DEFINE_UNQUOTED(HAVE_PAC_RESPONDER, 1, [Build with the PAC responder])]) |