diff --git a/config/m4/check_tls.m4 b/config/m4/check_tls.m4 index c063a571ae..607dd96bdd 100644 --- a/config/m4/check_tls.m4 +++ b/config/m4/check_tls.m4 @@ -18,13 +18,13 @@ AC_DEFUN([CHECK_TLS_REQUIRED], [ CHECKED_TL_REQUIRED=n required="y" tls_str=${TLS_REQUIRED} - AS_IF([ test "${TLS_REQUIRED:0:1}" == "^" ], [ + AS_IF([ expr "x${TLS_REQUIRED} : 'x\^'" -eq 2 ], [ CHECKED_TL_REQUIRED=y required="n" - tls_str=${TLS_REQUIRED:1}]) + tls_str=${TLS_REQUIRED#^}]) # AC_MSG_WARN([checking tl : $tl_name, TLS_REQUIRED=${TLS_REQUIRED}, tls_str=${tls_str}, required=${required}]) for t in $(echo ${tls_str} | tr "," " "); do - AS_IF([ test "$t" == "$tl_name" ], [CHECKED_TL_REQUIRED=$required], []) + AS_IF([ test "$t" = "$tl_name" ], [CHECKED_TL_REQUIRED=$required], []) done ]) ]) diff --git a/config/m4/configure.m4 b/config/m4/configure.m4 index 3c04314681..9bf7036327 100644 --- a/config/m4/configure.m4 +++ b/config/m4/configure.m4 @@ -40,7 +40,7 @@ AC_DEFUN([CHECK_NEED_TL_PROFILING], [ AS_IF([ test x"$with_profiling" = "xall" ], [TL_PROFILING_REQUIRED=y], [ for t in $(echo ${with_profiling} | tr ":" " "); do - AS_IF([ test "$t" == "$tl_name" ], [TL_PROFILING_REQUIRED=y], []) + AS_IF([ test "$t" = "$tl_name" ], [TL_PROFILING_REQUIRED=y], []) done ]) ]) diff --git a/config/m4/gtest.m4 b/config/m4/gtest.m4 index 7575106bfc..34d7017eb7 100644 --- a/config/m4/gtest.m4 +++ b/config/m4/gtest.m4 @@ -12,6 +12,6 @@ dnl Provide a flag to enable or disable Google Test usage. [enable_gtest=no]) AM_CONDITIONAL([HAVE_GTEST],[test "x$enable_gtest" = "xyes"]) - AS_IF([test "x$enable_gtest" == "xyes"], + AS_IF([test "x$enable_gtest" = "xyes"], [gtest_enable=enabled], [gtest_enable=disabled]) ]) diff --git a/config/m4/tl_coll_plugins.m4 b/config/m4/tl_coll_plugins.m4 index 1e681f4584..7abf0ee0ab 100644 --- a/config/m4/tl_coll_plugins.m4 +++ b/config/m4/tl_coll_plugins.m4 @@ -26,7 +26,7 @@ AC_DEFUN([CHECK_TLCP_REQUIRED], [ [CHECKED_TLCP_REQUIRED=y], [ for t in $(echo ${TLCP_REQUIRED} | tr "," " "); do - AS_IF([ test "$t" == "$tlcp_name" ], [CHECKED_TLCP_REQUIRED=y], []) + AS_IF([ test "$t" = "$tlcp_name" ], [CHECKED_TLCP_REQUIRED=y], []) done ]) ]) diff --git a/configure.ac b/configure.ac index bd8c27a210..961bb1e524 100644 --- a/configure.ac +++ b/configure.ac @@ -119,7 +119,7 @@ AC_ARG_WITH([docs_only], AC_DEFUN([UCC_DX_ENABLE_CHECK], [AS_IF([DX_TEST_FEATURE($1)], [], - [AS_IF([test "x$enable_doxygen_$1" == xyes], + [AS_IF([test "x$enable_doxygen_$1" = xyes], [AC_MSG_ERROR([--enable-doxygen-$1 was specified, but $1 doxygen was not found])], [])])])