]> xenbits.xensource.com Git - libvirt.git/commitdiff
m4: Improve portability for non-bash shells
authorMaya Rashish <coypu@sdf.org>
Sat, 19 Oct 2019 11:46:33 +0000 (11:46 +0000)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 22 Oct 2019 09:39:38 +0000 (11:39 +0200)
= and == are both operators to test for string equality in bash,
but only = is required by POSIX.

Signed-off-by: Maya Rashish <coypu@sdf.org>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
m4/virt-nls.m4

index be3c53fe4d72e1d19dfb301c1124e3c2786ce18c..fd8707033af8d427e02690d92d44b6d50d029eaa 100644 (file)
@@ -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