From 898ffefde4198a23a92810a9cf39ff6846f3bb39 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 15 May 2017 21:37:34 +0200 Subject: add libpseudotalloc as super-simplistic talloc replacement In tightly embedded builds (--enable-embedded), we want the ability to replace talloc with a very simple heap allocator to avoid the complexity of talloc without modifying all our code that assumes talloc. This will break the hierarchical notion of the allocator, but libosmo{core,gsm,coding,codec} don't rely on that anyway. Change-Id: Ie341034076f242a813f081919dd09d845775ad35 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1dd5930e..04d126e2 100644 --- a/configure.ac +++ b/configure.ac @@ -194,6 +194,14 @@ AC_ARG_ENABLE(ctrl, [enable_ctrl=$enableval], [enable_ctrl="yes"]) AM_CONDITIONAL(ENABLE_CTRL, test x"$enable_ctrl" = x"yes") +AC_ARG_ENABLE(pseudotalloc, + [AS_HELP_STRING( + [--enable-pseudotalloc], + [Enable building pseudotalloc library], + )], + [enable_pseudotalloc=$enableval], [enable_pseudotalloc="no"]) +AM_CONDITIONAL(ENABLE_PSEUDOTALLOC, test x"$enable_pseudotalloc" = x"yes") + AC_ARG_ENABLE(embedded, [AS_HELP_STRING( [--enable-embedded], @@ -211,6 +219,7 @@ then AM_CONDITIONAL(ENABLE_UTILITIES, false) AM_CONDITIONAL(ENABLE_GB, false) AM_CONDITIONAL(ENABLE_PCSC, false) + AM_CONDITIONAL(ENABLE_PSEUDOTALLOC, true) AC_DEFINE([PANIC_INFLOOP],[1],[Use infinite loop on panic rather than fprintf/abort]) fi @@ -287,6 +296,7 @@ AC_OUTPUT( src/gsm/Makefile src/gb/Makefile src/ctrl/Makefile + src/pseudotalloc/Makefile tests/Makefile tests/atlocal utils/Makefile -- cgit v1.2.3