mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
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 <coypu@sdf.org> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
7530ebc7b4
commit
417bd1e716
@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[
|
|||||||
then
|
then
|
||||||
AC_CHECK_FUNC([gettext], [], [
|
AC_CHECK_FUNC([gettext], [], [
|
||||||
AC_CHECK_LIB([intl], [gettext], [], [
|
AC_CHECK_LIB([intl], [gettext], [], [
|
||||||
if test "x$enable_nls" == "xcheck"
|
if test "x$enable_nls" = "xcheck"
|
||||||
then
|
then
|
||||||
enable_nls=no
|
enable_nls=no
|
||||||
else
|
else
|
||||||
@ -39,7 +39,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[
|
|||||||
if test "x$enable_nls" != "xno"
|
if test "x$enable_nls" != "xno"
|
||||||
then
|
then
|
||||||
AC_CHECK_HEADERS([libintl.h], [enable_nls=yes],[
|
AC_CHECK_HEADERS([libintl.h], [enable_nls=yes],[
|
||||||
if test "x$enable_nls" == "xcheck"
|
if test "x$enable_nls" = "xcheck"
|
||||||
then
|
then
|
||||||
enable_nls=no
|
enable_nls=no
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user