~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/galeri/config/ac_cxx_new_for_scoping.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_NEW_FOR_SCOPING
2
 
dnl
3
 
dnl If the compiler accepts the new for scoping rules (the scope of a
4
 
dnl variable declared inside the parentheses is restricted to the
5
 
dnl for-body), define HAVE_NEW_FOR_SCOPING.
6
 
dnl
7
 
dnl @version $Id: ac_cxx_new_for_scoping.m4,v 1.1 2005/09/17 07:10:49 msala Exp $
8
 
dnl @author Luc Maisonobe
9
 
dnl
10
 
AC_DEFUN([AC_CXX_NEW_FOR_SCOPING],
11
 
[AC_CACHE_CHECK(whether the compiler accepts the new for scoping rules,
12
 
ac_cv_cxx_new_for_scoping,
13
 
[AC_LANG_SAVE
14
 
 AC_LANG_CPLUSPLUS
15
 
 AC_TRY_COMPILE(,[
16
 
  int z = 0;
17
 
  for (int i = 0; i < 10; ++i)
18
 
    z = z + i;
19
 
  for (int i = 0; i < 10; ++i)
20
 
    z = z - i;
21
 
  return z;],
22
 
 ac_cv_cxx_new_for_scoping=yes, ac_cv_cxx_new_for_scoping=no)
23
 
 AC_LANG_RESTORE
24
 
])
25
 
if test "$ac_cv_cxx_new_for_scoping" = yes; then
26
 
  AC_DEFINE(HAVE_NEW_FOR_SCOPING,,[define if the compiler accepts the new for scoping rules])
27
 
fi
28
 
])