diff --git a/configure.ac b/configure.ac
index 24fa4a7..ec810fc 100644
--- a/configure.ac
+++ b/configure.ac
[enable Mesh profile support]), [enable_mesh=${enableval}])
AM_CONDITIONAL(MESH, test "${enable_mesh}" = "yes")
-if (test "${enable_mesh}" == "yes"); then
+if (test "${enable_mesh}" = "yes"); then
PKG_CHECK_MODULES(JSONC, json-c, dummy=yes,
AC_MSG_ERROR(json-c is required))
AC_SUBST(JSON_CFLAGS)
[disable command line client]), [enable_client=${enableval}])
AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
-if (test "${enable_client}" != "no" || test "${enable_mesh}" == "yes"); then
+if (test "${enable_client}" != "no" || test "${enable_mesh}" = "yes"); then
AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
AC_MSG_ERROR(readline header files are required))
fi