From: Maya Rashish Date: Sat, 19 Oct 2019 11:46:33 +0000 (+0000) Subject: m4: Improve portability for non-bash shells X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=417bd1e71633add1e9b86ba3faad43a02037b220;p=libvirt.git m4: Improve portability for non-bash shells = and == are both operators to test for string equality in bash, but only = is required by POSIX. Signed-off-by: Maya Rashish Reviewed-by: Andrea Bolognani --- diff --git a/m4/virt-nls.m4 b/m4/virt-nls.m4 index be3c53fe4d..fd8707033a 100644 --- a/m4/virt-nls.m4 +++ b/m4/virt-nls.m4 @@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[ then AC_CHECK_FUNC([gettext], [], [ AC_CHECK_LIB([intl], [gettext], [], [ - if test "x$enable_nls" == "xcheck" + if test "x$enable_nls" = "xcheck" then enable_nls=no else @@ -39,7 +39,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[ if test "x$enable_nls" != "xno" then AC_CHECK_HEADERS([libintl.h], [enable_nls=yes],[ - if test "x$enable_nls" == "xcheck" + if test "x$enable_nls" = "xcheck" then enable_nls=no else