Using "==" in shell tests is not portable.

Patch from rsbecker at nexbridge.com.
This commit is contained in:
Darren Tucker 2018-04-13 13:43:55 +10:00
parent cfb1d9bc76
commit d97874cbd9
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ AC_RUN_IFELSE(
)
AC_MSG_RESULT([$func_calloc_0_nonnull])
if test "x$func_calloc_0_nonnull" == "xyes"; then
if test "x$func_calloc_0_nonnull" = "xyes"; then
AC_DEFINE(HAVE_CALLOC, 1, [calloc(0, x) returns non-null])
else
AC_DEFINE(HAVE_CALLOC, 0, [calloc(0, x) returns NULL])