mirror of https://github.com/openzfs/zfs.git
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 <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Signed-off-by: Harald van Dijk <harald@gigawatt.nl> Closes #10509
This commit is contained in:
parent
3c42c9ed84
commit
2ac6aa1176
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue