mirror of
https://github.com/gperftools/gperftools
synced 2024-12-18 13:34:33 +00:00
c437e1fcdd
* google-perftools: version 0.92 release * PERFORMANCE: use a packed cache to speed up tcmalloc * PORTING: preliminary windows support! (see README.windows) * PORTING: better support for solaris, OS X, FreeBSD (see INSTALL) * Envvar support for running the heap-checker under gdb * Add weak declarations to maybe_threads to fix no-pthreads compile bugs * Some 64bit fixes, especially with pprof * Better heap-checker support for some low-level allocations * Fix bug where heap-profiles would sometimes get truncated * New documentation about how to handle common heap leak situations * Use computed includes for hash_map/set: easier config * Added all used .m4 templates to the distribution git-svn-id: http://gperftools.googlecode.com/svn/trunk@36 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
26 lines
917 B
Plaintext
26 lines
917 B
Plaintext
# We check what namespace stl code like vector expects to be executed in
|
|
|
|
AC_DEFUN([AC_CXX_STL_NAMESPACE],
|
|
[AC_CACHE_CHECK(
|
|
what namespace STL code is in,
|
|
ac_cv_cxx_stl_namespace,
|
|
[AC_REQUIRE([AC_CXX_NAMESPACES])
|
|
AC_LANG_SAVE
|
|
AC_LANG_CPLUSPLUS
|
|
AC_TRY_COMPILE([#include <vector>],
|
|
[vector<int> t; return 0;],
|
|
ac_cv_cxx_stl_namespace=none)
|
|
AC_TRY_COMPILE([#include <vector>],
|
|
[std::vector<int> t; return 0;],
|
|
ac_cv_cxx_stl_namespace=std)
|
|
AC_LANG_RESTORE])
|
|
if test "$ac_cv_cxx_stl_namespace" = none; then
|
|
AC_DEFINE(STL_NAMESPACE,,
|
|
[the namespace where STL code like vector<> is defined])
|
|
fi
|
|
if test "$ac_cv_cxx_stl_namespace" = std; then
|
|
AC_DEFINE(STL_NAMESPACE,std,
|
|
[the namespace where STL code like vector<> is defined])
|
|
fi
|
|
])
|