提交 417bd1e7 编写于 作者: M Maya Rashish 提交者: Andrea Bolognani

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: NMaya Rashish <coypu@sdf.org>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
上级 7530ebc7
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册