summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 51f92ff..8f35526 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,9 +154,10 @@ AC_DEFINE_UNQUOTED(CONF_PATH_RANDOMDEV, "$opt_randomdev", [Random device path.])
dnl Check for cracklib
AC_ARG_ENABLE([cracklib-check],
- AS_HELP_STRING([--disable-cracklib-check], [disable cracklib dictionary check]))
+ AS_HELP_STRING([--disable-cracklib-check], [disable cracklib dictionary check]),
+ [enable_cracklib_check=$enableval])
-AS_IF([test "x$enableval" != "xno"], [
+AS_IF([test "x$enable_cracklib_check" != "xno"], [
AC_CHECK_HEADERS([crack.h],
AC_SEARCH_LIBS([FascistCheck], [crack], LIBCRACK="-lz -lcrack" LIBS="$LIBS -lz", LIBCRACK="", [-lz]))
if test "x$LIBCRACK" = "x" ; then