diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-05-12 18:23:34 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-05-12 18:23:34 -0700 |
commit | 39d4e67be8283b2a7141a7aa8342d30e27f47e6f (patch) | |
tree | dbc602ce1470c3e8c7b2d13ec89336464b563956 /src/common/include.am | |
parent | 17435384c050b29cd3c70819ac7176c407f4d1bb (diff) | |
download | tor-39d4e67be8283b2a7141a7aa8342d30e27f47e6f.tar.gz tor-39d4e67be8283b2a7141a7aa8342d30e27f47e6f.zip |
Add --disable-mempools configure option
Diffstat (limited to 'src/common/include.am')
-rw-r--r-- | src/common/include.am | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/common/include.am b/src/common/include.am index 7b2465cd84..61a90cd355 100644 --- a/src/common/include.am +++ b/src/common/include.am @@ -24,6 +24,14 @@ else libor_extra_source= endif +if USE_MEMPOOLS +libor_mempool_source=src/common/mempool.c +libor_mempool_header=src/common/mempool.h +else +libor_mempool_source= +libor_mempool_header= +endif + src_common_libcurve25519_donna_a_CFLAGS= if BUILD_CURVE25519_DONNA @@ -56,13 +64,13 @@ LIBOR_A_SOURCES = \ src/common/di_ops.c \ src/common/log.c \ src/common/memarea.c \ - src/common/mempool.c \ src/common/procmon.c \ src/common/util.c \ src/common/util_codedigest.c \ src/common/sandbox.c \ src/ext/csiphash.c \ - $(libor_extra_source) + $(libor_extra_source) \ + $(libor_mempool_source) LIBOR_CRYPTO_A_SOURCES = \ src/common/aes.c \ @@ -102,7 +110,6 @@ COMMONHEADERS = \ src/common/crypto_curve25519.h \ src/common/di_ops.h \ src/common/memarea.h \ - src/common/mempool.h \ src/common/linux_syscalls.inc \ src/common/procmon.h \ src/common/sandbox.h \ @@ -111,7 +118,8 @@ COMMONHEADERS = \ src/common/torint.h \ src/common/torlog.h \ src/common/tortls.h \ - src/common/util.h + src/common/util.h \ + $(libor_mempool_header) noinst_HEADERS+= $(COMMONHEADERS) |