From 9129be58ebc29e4855fa32050c1eb9aa3915109d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 3 Jul 2019 21:44:45 -0700 Subject: [PATCH] configure: Improve defaulting by 1abbd7a2dcf7c0118ea4e699b900014a4d15eb66 --- configure.ac | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 6d2dc9eb8..dc3122e75 100644 --- a/configure.ac +++ b/configure.ac @@ -1687,19 +1687,16 @@ AC_CHECK_LIB(jemalloc, malloc, ]) AC_MSG_CHECKING(whether to enable use of jemalloc) -AC_ARG_ENABLE(jemalloc, AC_HELP_STRING([--enable-jemalloc], [Use jemalloc as third-party dynamic memory manager.]), +AC_ARG_ENABLE(jemalloc, AC_HELP_STRING([--disable-jemalloc], [Use jemalloc as third-party dynamic memory manager.]), [ - use_jemalloc="yes" - AC_MSG_RESULT([yes]) -], [ use_jemalloc="no" AC_MSG_RESULT([no]) +], [ + use_jemalloc="yes" + AC_MSG_RESULT([yes]) ]) -dnl jemalloc by default if available -dnl -AM_CONDITIONAL([JEMALLOC], [test "x$have_jemalloc" = "xyes"]) -dnl AM_CONDITIONAL([JEMALLOC], [test "x$have_jemalloc" = "xyes" && test "x$use_jemalloc" = "xyes" ]) +AM_CONDITIONAL([JEMALLOC], [test "x$have_jemalloc" = "xyes" && test "x$use_jemalloc" = "xyes" ]) dnl dnl