summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-10-12 18:47:27 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-10-12 18:47:27 +0200
commite11f2bd6a0bdc9cc9656e186be00917c0bf03f1a (patch)
treebba2b1cd59ed4f4648b085958cece2e4a50b8934
parent02e67288e532e1caf2326efe0bebb6dd4e80dafd (diff)
downloadlibpwquality-git-e11f2bd6a0bdc9cc9656e186be00917c0bf03f1a.tar.gz
Fix regression with enabling cracklib check
The cracklib check was sometimes incorrectly treated as disabled.
-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