The jemalloc allocator is scalable high performance allocator, this is
the first in the series of commits that will add jemalloc as a memory
allocator for BIND 9.
This commit adds configure.ac check and Makefile modifications to use
jemalloc as BIND 9 allocator.
AM_CONDITIONAL([HAVE_CMOCKA], [test "$with_cmocka" = "yes"])
+#
+#
+#
+AC_MSG_CHECKING([for jemalloc])
+PKG_CHECK_MODULES([JEMALLOC], [jemalloc >= 5], []
+ [AC_MSG_WARN([Using jemalloc 5 is recommended])
+ PKG_CHECK_MODULES([JEMALLOC], [jemalloc], [],
+ [AC_MSG_ERROR([jemalloc not found])])])
+AC_SUBST([JEMALLOC_CFLAGS])
+AC_SUBST([JEMALLOC_LIBS])
+
#
# was --with-tuning specified?
#
libisc_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
+ $(JEMALLOC_CPPFLAGS) \
$(LIBISC_CFLAGS) \
$(LIBUV_CFLAGS) \
$(OPENSSL_CFLAGS) \
-release "$(PACKAGE_VERSION)"
libisc_la_LIBADD = \
+ $(JEMALLOC_LIBS) \
$(LIBUV_LIBS) \
$(OPENSSL_LIBS) \
$(ZLIB_LIBS)