diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-17 19:26:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-17 19:26:55 +0000 |
commit | 952a3cb8fbb0d2c6525543faf2f3ad2d7c73cd16 (patch) | |
tree | f9f43d8608c17490388c1b34b62b7075c94afbf4 /configure.in | |
parent | 4c1e4821d2f0d3a589840675c23d243e92c73201 (diff) | |
download | tor-952a3cb8fbb0d2c6525543faf2f3ad2d7c73cd16.tar.gz tor-952a3cb8fbb0d2c6525543faf2f3ad2d7c73cd16.zip |
r14240@tombo: nickm | 2008-02-17 14:26:52 -0500
Add a --with-tcmalloc argument to configure.
svn:r13546
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index ec5cae78a2..0445ad97f7 100644 --- a/configure.in +++ b/configure.in @@ -557,6 +557,14 @@ if [[ $dmalloc -eq 1 ]]; then AC_CHECK_FUNCS(dmalloc_strdup dmalloc_strndup) fi +AC_ARG_WITH(tcmalloc, +[ --with-tcmalloc Use tcmalloc memory allocation library. ], +[ tcmalloc=yes ], [ tcmalloc=no ]) + +if test x$tcmalloc = xyes ; then + LDFLAGS="-ltcmalloc $LDFLAGS" +fi + # Allow user to specify an alternate syslog facility AC_ARG_WITH(syslog-facility, [ --with-syslog-facility=LOG syslog facility to use (default=LOG_DAEMON)], |