]> granicus.if.org Git - gc/commitdiff
Fix configure --disable-munmap handling
authorIvan Maidanski <ivmai@mail.ru>
Thu, 29 Jun 2017 18:19:33 +0000 (21:19 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 4 Jul 2017 21:47:14 +0000 (00:47 +0300)
(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).

configure.ac

index 5cb34fcfc649fe4ef04ec4317f52c45c494af39c..ae16ad3373a6b4e3691ab623e59bcc4debdfb48c 100644 (file)
@@ -889,7 +889,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