cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiAC_DEFUN([DOVECOT_CRYPT], [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CHECK_FUNC(crypt,, [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CHECK_LIB(crypt, crypt, [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AUTH_LIBS="-lcrypt $AUTH_LIBS"
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi CRYPT_LIBS="-lcrypt"
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_MSG_ERROR([crypt() wasn't found])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_SUBST(CRYPT_LIBS)