~ubuntu-branches/ubuntu/vivid/deal.ii/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2009-07-21 08:02:26 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090721080226-h4itnctcm1l26swz
Tags: 6.2.1-1
* New upstream release.
* Removed backslashes from dependencies (closes: #535284).
* Added libboost-graph-dev to Build-Depends (closes: #533629).
* Updated Standards-Version.
* Updated debhelper Build-Depends version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
dnl
12
12
dnl Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
13
13
dnl
14
 
dnl $Id: aclocal.m4 18724 2009-04-23 23:06:37Z bangerth $
 
14
dnl $Id: aclocal.m4 18775 2009-04-28 20:47:33Z bangerth $
15
15
 
16
16
 
17
17
 
4329
4329
])
4330
4330
 
4331
4331
 
 
4332
 
 
4333
dnl -------------------------------------------------------------
 
4334
dnl Older gcc version appear to frown upon the way we write the
 
4335
dnl IsBlockMatrix<MatrixType> template. If that's the case,
 
4336
dnl remove the -Wctor-dtor-privacy flag.
 
4337
dnl
 
4338
dnl This is gcc bug 18644:
 
4339
dnl   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18644
 
4340
dnl
 
4341
dnl Usage: DEAL_II_CHECK_CTOR_DTOR_PRIVACY
 
4342
dnl
 
4343
dnl -------------------------------------------------------------
 
4344
AC_DEFUN(DEAL_II_CHECK_CTOR_DTOR_PRIVACY, dnl
 
4345
[
 
4346
  if test "x$GXX" = "xyes" ; then
 
4347
    AC_MSG_CHECKING(for problem with -Wctor-dtor-privacy)
 
4348
    AC_LANG(C++)
 
4349
    CXXFLAGS="$CXXFLAGSG -Werror"
 
4350
    AC_TRY_COMPILE(
 
4351
      [
 
4352
        template <typename T>
 
4353
        struct IsInt
 
4354
        {
 
4355
          private:
 
4356
            struct yes_type { char c[1]; };
 
4357
            struct no_type  { char c[2]; };
 
4358
 
 
4359
            static yes_type check_for_int (const int *);
 
4360
 
 
4361
            static no_type check_for_int (...);
 
4362
 
 
4363
          public:
 
4364
            static const bool value = (sizeof(check_for_int((T*)0))
 
4365
                                       ==
 
4366
                                       sizeof(yes_type));
 
4367
        };
 
4368
        
 
4369
        const bool x = IsInt<double>::value;
 
4370
      ],
 
4371
      [
 
4372
      ],
 
4373
      [
 
4374
        AC_MSG_RESULT(no)
 
4375
      ],
 
4376
      [
 
4377
        AC_MSG_RESULT(yes)
 
4378
        CXXFLAGSG="$CXXFLAGSG -Wno-ctor-dtor-privacy"
 
4379
      ])
 
4380
  fi
 
4381
])
 
4382
 
 
4383
 
4332
4384
dnl -------------------------------------------------------------
4333
4385
dnl Check for boost option and find pre-installed boost
4334
4386
dnl -------------------------------------------------------------