/usr/share/dune/aclocal/boost_fusion.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 | # -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
AC_DEFUN([DUNE_BOOST_FUSION],
[
AC_REQUIRE([AC_PROG_CC])
CPPFLAGS_SAVED="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
export CPPFLAGS
LDFLAGS_SAVED="$LDFLAGS"
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
export LDFLAGS
AC_CACHE_CHECK(whether the Boost::FUSION library is available,
dune_cv_boost_fusion,
[AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @%:@include <boost/fusion/container.hpp>
]],
[[
boost::fusion::vector<int,char,double> v;
return 0;
]])],
dune_cv_boost_fusion=yes, dune_cv_boost_fusion=no)
AC_LANG_POP([C++])])
if test "x$dune_cv_boost_fusion" = "xyes"; then
AC_DEFINE(HAVE_BOOST_FUSION,,[define if the Boost::Fusion headers are available])
fi
CPPFLAGS="$CPPFLAGS_SAVED"
LDFLAGS="$LDFLAGS_SAVED"
])
|