~ubuntu-branches/ubuntu/jaunty/google-perftools/jaunty

« back to all changes in this revision

Viewing changes to m4/stl_namespace.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2008-06-15 23:41:36 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20080615234136-al5gawvdvt5vhdtz
Tags: 0.98-1
* New upstream release. (Closes: #425147)
* Compiled with GCC 4.3. (Closes: #454841)
* debian/watch: can now report upstream's version (Closes: #450294)
* Because of a file conflict between tau and libgoogle-perftools the
  binary pprof is renamed as google-pprof. (Closes: #404001)
  Great thanks to Michael Mende.
* debian/rules: autoconf files are now generated at the build time.
* Bumped up Standards-Version to 3.7.3, no changes are required.
* Split a new package, libtcmallc_minimal0. The upstream supports
  this module for wider platforms. So I leave its architecture to be
  `any'.
* libgoogle-perftools0's architecture is now i386. The upstream
  supports this module for x86 and x86_64. However, x86_64 requires
  libunwind's development head, which Debian does not have yet.
* Removed an unnecessary patch, debian/patches/02_profiler.cc_alpha.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# We check what namespace stl code like vector expects to be executed in
 
2
 
 
3
AC_DEFUN([AC_CXX_STL_NAMESPACE],
 
4
  [AC_CACHE_CHECK(
 
5
      what namespace STL code is in,
 
6
      ac_cv_cxx_stl_namespace,
 
7
      [AC_REQUIRE([AC_CXX_NAMESPACES])
 
8
      AC_LANG_SAVE
 
9
      AC_LANG_CPLUSPLUS
 
10
      AC_TRY_COMPILE([#include <vector>],
 
11
                     [vector<int> t; return 0;],
 
12
                     ac_cv_cxx_stl_namespace=none)
 
13
      AC_TRY_COMPILE([#include <vector>],
 
14
                     [std::vector<int> t; return 0;],
 
15
                     ac_cv_cxx_stl_namespace=std)
 
16
      AC_LANG_RESTORE])
 
17
   if test "$ac_cv_cxx_stl_namespace" = none; then
 
18
      AC_DEFINE(STL_NAMESPACE,,
 
19
                [the namespace where STL code like vector<> is defined])
 
20
   fi
 
21
   if test "$ac_cv_cxx_stl_namespace" = std; then
 
22
      AC_DEFINE(STL_NAMESPACE,std,
 
23
                [the namespace where STL code like vector<> is defined])
 
24
   fi
 
25
])