diff options
Diffstat (limited to 'source4/auth/config.m4')
-rw-r--r-- | source4/auth/config.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/auth/config.m4 b/source4/auth/config.m4 index f6500cc1e7..e70df2e400 100644 --- a/source4/auth/config.m4 +++ b/source4/auth/config.m4 @@ -17,3 +17,13 @@ SMB_ENABLE(CRYPT,YES) SMB_EXT_LIB(CRYPT, $CRYPT_LIBS) AC_CHECK_FUNCS(crypt16 getauthuid getpwanam) + +AC_CHECK_HEADERS(sasl/sasl.h) +AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init) +SMB_EXT_LIB(SASL, $SASL_LIBS) + +if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then + SMB_ENABLE(cyrus_sasl,YES) +else + SMB_ENABLE(cyrus_sasl, NO) +fi |