summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorShreyas Siravara <sshreyas@fb.com>2016-12-15 09:06:00 -0800
committerShreyas Siravara <sshreyas@fb.com>2016-12-15 14:54:52 -0800
commit2e1414c7d05bdff0f0750c6024cf867e51de37cb (patch)
tree1d5f000abf433f47d9fbe51dda8801fcad69b230 /configure.ac
parentbbceb48f0fe8b1fc2604fd3fcd347e143cab600a (diff)
core: Disable the memory pooler in Gluster via a build flag
Summary: Passing --disable-mempool to configure will disable the mempool. Signed-off-by: Shreyas Siravara <sshreyas@fb.com> Change-Id: I748d5afd67811ba9fdee6d651dbdb9d57e9d9123 Reviewed-on: http://review.gluster.org/16145 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kevin Vigor <kvigor@fb.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 713e5ada83d..d303cb69899 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1113,6 +1113,12 @@ AC_ARG_ENABLE([debug],
AC_HELP_STRING([--enable-debug],
[Enable debug build options.]))
+AC_ARG_ENABLE([mempool],
+ AC_HELP_STRING([--disable-mempool],
+ [Disable the Gluster memory pooler.]))
+if test "x$enable_mempool" = "xno"; then
+ CFLAGS="${CFLAGS} -DDISABLE_MEMPOOL"
+fi
# syslog section
AC_ARG_ENABLE([syslog],