X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfigure.ac;h=e2b50749e3a3293ffb4e5d8f31d1ce983ee63886;hb=60e1890d866f912f94b604f3af05bcd421109469;hp=8320a9dbf4b19f9d659f59054baa860675e7dd6e;hpb=6473885628e33ec5633bb05caa92391aa34cff03;p=citadel.git diff --git a/citadel/configure.ac b/citadel/configure.ac index 8320a9dbf..e2b50749e 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -181,6 +181,25 @@ AC_CHECK_HEADER(zlib.h, ) CFLAGS="$saved_CFLAGS" +dnl Checks for the crypt_r function +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $SERVER_LIBS" +AC_CHECK_HEADER(crypt.h, + [AC_CHECK_LIB(crypt, crypt_r, + [ + SERVER_LIBS="-lcrypt $SERVER_LIBS" + ], + [ + AC_MSG_ERROR(crypt_r was not found or is not usable.) + ] + , + )], + [ + AC_MSG_ERROR(crypt.h was not found or is not usable.) + ] +) +CFLAGS="$saved_CFLAGS" + dnl Here is the check for a libc integrated iconv AC_ARG_ENABLE(iconv, [ --disable-iconv do not use iconv charset conversion],