Commit 87eaa052 87eaa052018987b325535a9ca2418b9b4636459f by Sergey Poznyakoff

Check if crypt is declared.

1 parent 51ea95ed
...@@ -305,6 +305,16 @@ if test x"$testpam" = x"yes"; then ...@@ -305,6 +305,16 @@ if test x"$testpam" = x"yes"; then
305 fi 305 fi
306 306
307 AC_CHECK_HEADERS(crypt.h) 307 AC_CHECK_HEADERS(crypt.h)
308 AC_CHECK_DECLS(crypt, , ,[
309 #include <unistd.h>
310 #ifdef HAVE_CRYPT_H
311 # include <crypt.h>
312 #endif])
313 AH_BOTTOM([
314 #if !HAVE_DECL_CRYPT
315 char *crypt(const char *key, const char *salt);
316 #endif])
317
308 AC_CHECK_LIB(crypt, crypt) 318 AC_CHECK_LIB(crypt, crypt)
309 319
310 AC_SUBST(AUTHLIBS) 320 AC_SUBST(AUTHLIBS)
......