/usr/share/dune/aclocal/dune_deprecated.m4 is in libdune-common-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # $Id: dune_deprecated.m4 6543 2012-01-05 10:20:52Z robertk $
# Check for the right way to create the deprecation warning
AC_DEFUN([DUNE_CHECKDEPRECATED],[
AC_CACHE_CHECK([for __attribute__((deprecated))], dune_cv_attribute_deprecated, [
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([#define DEP __attribute__((deprecated))
class bar { bar() DEP; };
class peng { } DEP;
template <class T>
class t_bar { t_bar() DEP; };
template <class T>
class t_peng { t_peng() {}; } DEP;
void foo() DEP;
void foo() {};],[],
dune_cv_attribute_deprecated="yes",
dune_cv_attribute_deprecated="no")
AC_LANG_POP([C++])
])
AC_CACHE_CHECK([for __attribute__((deprecated("message")))],
dune_cv_attribute_deprecated_message, [
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([#define DEP __attribute__((deprecated("fireworks!")))
class bar { bar() DEP; };
class peng { } DEP;
template <class T>
class t_bar { t_bar() DEP; };
template <class T>
class t_peng { t_peng() {}; } DEP;
void foo() DEP;
void foo() {};],[],
dune_cv_attribute_deprecated_message="yes",
dune_cv_attribute_deprecated_message="no")
AC_LANG_POP([C++])
])
if test "$dune_cv_attribute_deprecated" = "yes"; then
AC_DEFINE_UNQUOTED(HAS_ATTRIBUTE_DEPRECATED, 1,
[does the compiler support __attribute__((deprecated))?])
fi
if test "$dune_cv_attribute_deprecated_message" = "yes"; then
AC_DEFINE_UNQUOTED(HAS_ATTRIBUTE_DEPRECATED_MSG, 1,
[does the compiler support __attribute__((deprecated("message"))?])
fi
AH_BOTTOM([#include <dune/common/deprecated.hh>])
])
|