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 | |
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')
-rw-r--r-- | src/external/pac_responder.m4 | 14 | ||||
-rw-r--r-- | src/external/samba.m4 | 12 |
2 files changed, 17 insertions, 9 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])]) diff --git a/src/external/samba.m4 b/src/external/samba.m4 index 10a553b83..91a583a0d 100644 --- a/src/external/samba.m4 +++ b/src/external/samba.m4 @@ -2,10 +2,20 @@ AC_SUBST(NDR_NBT_CFLAGS) AC_SUBST(NDR_NBT_LIBS) AC_SUBST(SMBCLIENT_CFLAGS) AC_SUBST(SMBCLIENT_LIBS) +AC_SUBST(NDR_KRB5PAC_CFLAGS) +AC_SUBST(NDR_KRB5PAC_LIBS) if test x"$with_samba" = xyes; then PKG_CHECK_MODULES(NDR_NBT, ndr_nbt, , - AC_MSG_ERROR([[Please install Samba 4 development libraries. + AC_MSG_ERROR([[Please install Samba 4 NDR NBT development libraries. +Samba 4 libraries are necessary for building ad and ipa provider. +If you do not want to build these providers it is possible to build SSSD +without them. In this case, you will need to execute configure script +with argument --without-samba + ]])) + + PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac, , + AC_MSG_ERROR([[Please install Samba 4 NDR KRB5PAC development libraries. Samba 4 libraries are necessary for building ad and ipa provider. If you do not want to build these providers it is possible to build SSSD without them. In this case, you will need to execute configure script |