From: Ivan Maidanski Date: Thu, 29 Jun 2017 18:19:33 +0000 (+0300) Subject: Fix configure --disable-munmap handling X-Git-Tag: v7.6.2~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=141cf0104a9a66ab6e2a0404c3fd61c9a2a6b8d4;p=gc Fix configure --disable-munmap handling (Cherry-pick commit cb66553 from 'master' branch.) * configure.ac (USE_MUNMAP, MUNMAP_THRESHOLD): Do not define if enable_munmap is "no" (or a blank value). --- diff --git a/configure.ac b/configure.ac index a6b15f35..28a261a6 100644 --- a/configure.ac +++ b/configure.ac @@ -911,7 +911,7 @@ AC_ARG_ENABLE(munmap, [AC_HELP_STRING([--enable-munmap=N], [return page to the os if empty for N collections])], MUNMAP_THRESHOLD=$enableval) -if test "${enable_munmap}" != ""; then +if test x$enable_munmap != x -a x$enable_munmap != xno; then AC_DEFINE([USE_MMAP], 1, [Define to use mmap instead of sbrk to expand the heap.]) case "$host" in