/usr/share/dune/aclocal/dune_linkcxx.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 | # $Id: dune_linkcxx.m4 6496 2011-09-14 06:33:35Z mnolte $
# tries to link c++ objects
AC_DEFUN([DUNE_LINKCXX],[
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether compiling C++ code works])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE(
[ #include <iostream>
int main (int argc, char** argv) {
std::cout << std::endl;
}])],
[ AC_MSG_RESULT([yes]);
AC_MSG_CHECKING([whether linking C++ objects works]);
# link from object file
ac_old_link=$ac_link
ac_link=`echo "$ac_old_link" | sed "s/conftest\.$ac_ext/conftest\.$ac_objext/"`
# disable deletion of object file
ac_old_objext=$ac_objext;
ac_objext="";
AC_LINK_IFELSE([],
[ AC_MSG_RESULT([yes])],
[ AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not link C++ code])])
ac_objext=$ac_old_objext;
ac_link=$ac_old_link;],
[ AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not compile C++ code])]
)
AC_LANG_POP([C++])
])
|