From 2ac6aa117603d5856b172114dcc62c454dafddb1 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Mon, 29 Jun 2020 17:28:22 +0100 Subject: pam: fix test usage in configure script The standard test command does not support the == operator. Certain shells, including bash, do support it, but in those shells it does exactly the same thing as the standard = operator. Use that instead. Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Harald van Dijk Closes #10509 --- config/user-pam.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/user-pam.m4 b/config/user-pam.m4 index 1d376681d..fc29a1e1b 100644 --- a/config/user-pam.m4 +++ b/config/user-pam.m4 @@ -19,7 +19,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [ AC_CHECK_HEADERS([security/pam_modules.h], [ enable_pam=yes ], [ - AS_IF([test "x$enable_pam" == "xyes"], [ + AS_IF([test "x$enable_pam" = "xyes"], [ AC_MSG_FAILURE([ *** security/pam_modules.h missing, libpam0g-dev package required ]) @@ -28,7 +28,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [ ]) ]) ]) - AS_IF([test "x$enable_pam" == "xyes"], [ + AS_IF([test "x$enable_pam" = "xyes"], [ DEFINE_PAM='--with "pam" --define "_pamconfigsdir $(pamconfigsdir)"' ]) AC_SUBST(DEFINE_PAM) -- cgit v1.2.3