Skip to content

Commit

Permalink
remove tcmalloc again. it effectively prevents to catch possible core…
Browse files Browse the repository at this point in the history
…dumps
  • Loading branch information
voipmonitor committed Aug 25, 2015
1 parent 1c2e261 commit f9e5824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
44 changes: 1 addition & 43 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4114,49 +4114,7 @@ else
$as_echo "$as_me: Unable to find gnutls disabling SIP TLS decoder. apt-get install libgnutls-dev | yum install gnutls-devel" >&6;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tc_malloc in -ltcmalloc_minimal" >&5
$as_echo_n "checking for tc_malloc in -ltcmalloc_minimal... " >&6; }
if ${ac_cv_lib_tcmalloc_minimal_tc_malloc+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltcmalloc_minimal $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char tc_malloc ();
int
main ()
{
return tc_malloc ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_tcmalloc_minimal_tc_malloc=yes
else
ac_cv_lib_tcmalloc_minimal_tc_malloc=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_tc_malloc" >&5
$as_echo "$ac_cv_lib_tcmalloc_minimal_tc_malloc" >&6; }
if test "x$ac_cv_lib_tcmalloc_minimal_tc_malloc" = xyes; then :
HAVE_LIBTCMALLOC=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find tcmalloc_minimal library which speeds up threads by 10%. The library is optional: apt-get install libtcmalloc-minimal4 or compile from source https://code.google.com/p/gperftools/" >&5
$as_echo "$as_me: Unable to find tcmalloc_minimal library which speeds up threads by 10%. The library is optional: apt-get install libtcmalloc-minimal4 or compile from source https://code.google.com/p/gperftools/" >&6;}
fi
#AC_CHECK_LIB([tcmalloc_minimal], [tc_malloc], HAVE_LIBTCMALLOC=1, AC_MSG_NOTICE([Unable to find tcmalloc_minimal library which speeds up threads by 10%. The library is optional: apt-get install libtcmalloc-minimal4 or compile from source https://code.google.com/p/gperftools/]))
HAVE_LIBLZMA_T=no
if test "x$HAVE_LIBLZMA" = "x1"; then
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ AC_CHECK_LIB([z], [main], , AC_MSG_ERROR([Unable to find libz. apt-get install z
AC_CHECK_LIB([lzma], [main], HAVE_LIBLZMA=1, AC_MSG_NOTICE([Unable to find lzma. apt-get install liblzma-dev | yum install lzma-devel]))
AC_CHECK_LIB([lzo2], [main], HAVE_LIBLZO=1, AC_MSG_ERROR([Unable to find lzo. apt-get install liblzo2-dev | yum install lzo-devel]))
AC_CHECK_LIB([gnutls], [gnutls_init], HAVE_LIBGNUTLS=1, AC_MSG_NOTICE([Unable to find gnutls disabling SIP TLS decoder. apt-get install libgnutls-dev | yum install gnutls-devel]))
AC_CHECK_LIB([tcmalloc_minimal], [tc_malloc], HAVE_LIBTCMALLOC=1, AC_MSG_NOTICE([Unable to find tcmalloc_minimal library which speeds up threads by 10%. The library is optional: apt-get install libtcmalloc-minimal4 or compile from source https://code.google.com/p/gperftools/]))
#AC_CHECK_LIB([tcmalloc_minimal], [tc_malloc], HAVE_LIBTCMALLOC=1, AC_MSG_NOTICE([Unable to find tcmalloc_minimal library which speeds up threads by 10%. The library is optional: apt-get install libtcmalloc-minimal4 or compile from source https://code.google.com/p/gperftools/]))

HAVE_LIBLZMA_T=no
if test "x$HAVE_LIBLZMA" = "x1"; then
Expand Down

0 comments on commit f9e5824

Please sign in to comment.