Add missing 'test' to LG_SIZEOF_PTR tests.

This fixes a bug/regression introduced by
a01f993077 (Only disable munmap(2) by
default on 64-bit Linux.).
This commit is contained in:
Jason Evans 2017-04-24 09:14:31 -07:00
parent 3aac709029
commit 7d86c92c61

View File

@ -558,7 +558,7 @@ case "${host}" in
AC_DEFINE([JEMALLOC_THREADED_INIT], [ ]) AC_DEFINE([JEMALLOC_THREADED_INIT], [ ])
AC_DEFINE([JEMALLOC_C11_ATOMICS]) AC_DEFINE([JEMALLOC_C11_ATOMICS])
force_tls="0" force_tls="0"
if "${LG_SIZEOF_PTR}" = "3"; then if test "${LG_SIZEOF_PTR}" = "3"; then
default_munmap="0" default_munmap="0"
fi fi
;; ;;
@ -571,7 +571,7 @@ case "${host}" in
AC_DEFINE([JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY], [ ]) AC_DEFINE([JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY], [ ])
AC_DEFINE([JEMALLOC_THREADED_INIT], [ ]) AC_DEFINE([JEMALLOC_THREADED_INIT], [ ])
AC_DEFINE([JEMALLOC_USE_CXX_THROW], [ ]) AC_DEFINE([JEMALLOC_USE_CXX_THROW], [ ])
if "${LG_SIZEOF_PTR}" = "3"; then if test "${LG_SIZEOF_PTR}" = "3"; then
default_munmap="0" default_munmap="0"
fi fi
;; ;;
@ -596,7 +596,7 @@ case "${host}" in
JE_APPEND_VS(LIBS, -lposix4 -lsocket -lnsl) JE_APPEND_VS(LIBS, -lposix4 -lsocket -lnsl)
;; ;;
*-ibm-aix*) *-ibm-aix*)
if "${LG_SIZEOF_PTR}" = "3"; then if test "${LG_SIZEOF_PTR}" = "3"; then
dnl 64bit AIX dnl 64bit AIX
LD_PRELOAD_VAR="LDR_PRELOAD64" LD_PRELOAD_VAR="LDR_PRELOAD64"
else else