comparison configure.in @ 579:8c737cd7c1af

merge of '48fdaa8706d1acda35e9d564adc9a1fbc96c18c8' and '658fd03abd21e0da7c4c89b9fff9dc693c72daae'
author Matt Johnston <matt@ucc.asn.au>
date Sat, 27 Feb 2010 11:53:18 +0000
parents d3ea8b9672f0
children d194db6f9453
comparison
equal deleted inserted replaced
577:69e98c45db7c 579:8c737cd7c1af
80 no_loginfunc_check=1 80 no_loginfunc_check=1
81 AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.]) 81 AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.])
82 ],,,) 82 ],,,)
83 83
84 # Checks for libraries. 84 # Checks for libraries.
85 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 85 AC_CHECK_LIB(crypt, crypt, CRYPTLIB="-lcrypt")
86 AC_SUBST(CRYPTLIB)
86 87
87 # Check if zlib is needed 88 # Check if zlib is needed
88 AC_ARG_WITH(zlib, 89 AC_ARG_WITH(zlib,
89 [ --with-zlib=PATH Use zlib in PATH], 90 [ --with-zlib=PATH Use zlib in PATH],
90 [ 91 [
143 [ --enable-pam Try to include PAM support], 144 [ --enable-pam Try to include PAM support],
144 [ 145 [
145 if test "x$enableval" = "xyes"; then 146 if test "x$enableval" = "xyes"; then
146 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) 147 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***]))
147 AC_MSG_NOTICE(Enabling PAM) 148 AC_MSG_NOTICE(Enabling PAM)
149 AC_CHECK_FUNCS(pam_fail_delay)
148 else 150 else
149 AC_DEFINE(DISABLE_PAM,, Use PAM) 151 AC_DEFINE(DISABLE_PAM,, Use PAM)
150 AC_MSG_NOTICE(Disabling PAM) 152 AC_MSG_NOTICE(Disabling PAM)
151 fi 153 fi
152 ], 154 ],