]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
configure: Interpret --with-tcmalloc=no correctly
authorteor <teor@torproject.org>
Fri, 18 Oct 2019 07:16:32 +0000 (17:16 +1000)
committerteor <teor@torproject.org>
Fri, 18 Oct 2019 07:16:32 +0000 (17:16 +1000)
Fixes bug 32124; bugfix on 0.2.0.20-rc.

configure.ac

index 11d49df45807971d4f8fe52b938c4616591bfb73..da74042dc8a0992e8163fd69e244d9c627d64dda 100644 (file)
@@ -1894,8 +1894,7 @@ if test "$tor_cv_uint8_uchar" = "no"; then
 fi
 
 AC_ARG_WITH(tcmalloc,
-AS_HELP_STRING(--with-tcmalloc, [use tcmalloc memory allocation library. Deprecated; see --with-malloc]),
-[ tcmalloc=yes ], [ tcmalloc=no ])
+AS_HELP_STRING(--with-tcmalloc, [use tcmalloc memory allocation library. Deprecated; see --with-malloc]))
 
 default_malloc=system
 
@@ -1904,7 +1903,7 @@ if test "x$enable_openbsd_malloc" = "xyes" ; then
   default_malloc=openbsd
 fi
 
-if test "x$tcmalloc" = "xyes"; then
+if test "x$with_tcmalloc" = "xyes"; then
   AC_MSG_NOTICE([The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead.])
   default_malloc=tcmalloc
 fi