~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/triutils/config/ac_cxx_have_stl.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis AC_CXX_HAVE_STL
2
 
dnl
3
 
dnl If the compiler supports the Standard Template Library, define HAVE_STL.
4
 
dnl
5
 
dnl @version $Id: ac_cxx_have_stl.m4,v 1.1 2002/09/20 21:06:54 jmwille Exp $
6
 
dnl @author Luc Maisonobe
7
 
dnl
8
 
AC_DEFUN([AC_CXX_HAVE_STL],
9
 
[AC_CACHE_CHECK(whether the compiler supports Standard Template Library,
10
 
ac_cv_cxx_have_stl,
11
 
[AC_REQUIRE([AC_CXX_NAMESPACES])
12
 
 AC_LANG_SAVE
13
 
 AC_LANG_CPLUSPLUS
14
 
 AC_TRY_COMPILE([#include <list>
15
 
#include <deque>
16
 
#ifdef HAVE_NAMESPACES
17
 
using namespace std;
18
 
#endif],[list<int> x; x.push_back(5);
19
 
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;],
20
 
 ac_cv_cxx_have_stl=yes, ac_cv_cxx_have_stl=no)
21
 
 AC_LANG_RESTORE
22
 
])
23
 
if test "$ac_cv_cxx_have_stl" = yes; then
24
 
  AC_DEFINE(HAVE_STL,,[define if the compiler supports Standard Template Library])
25
 
fi
26
 
])