- Fix HAVE_PAM_GETENVLIST setting from Simon Wilkinson <sxw@dcs.ed.ac.uk>
diff --git a/configure.in b/configure.in
index aaf3d85..62456ac 100644
--- a/configure.in
+++ b/configure.in
@@ -165,7 +165,7 @@
 	AC_CHECK_LIB(dl, dlopen, , )
 	LIBS="$LIBS -lpam"
 
-	AC_CHECK_FUNC(pam_getenvlist)
+	AC_CHECK_FUNCS(pam_getenvlist)
 
 	# Check PAM strerror arguments (old PAM)
 	AC_MSG_CHECKING([whether pam_strerror takes only one argument])