From 3d96d085dc5d36f48fa377f3c0c8602bcf0ef067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCthing?= <muething@dune-project.org> Date: Mon, 15 Feb 2016 21:10:03 +0100 Subject: [PATCH] [autotools] Fix compilation if Fortran is not installed Thanks to Elias Pipping for figuring this one out - it (re)closes the absolutely ancient #flyspray/FS185. --- m4/dune_all.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m4/dune_all.m4 b/m4/dune_all.m4 index 3277de21d..ebba03081 100644 --- a/m4/dune_all.m4 +++ b/m4/dune_all.m4 @@ -17,6 +17,9 @@ AC_DEFUN([DUNE_CHECK_ALL],[ AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) AC_REQUIRE([DUNE_SYNC_FC_F77]) + AC_LANG_PUSH([Fortran]) + AC_REQUIRE([__AC_FC_NAME_MANGLING]) + AC_LANG_POP([Fortran]) AC_REQUIRE([AC_PROG_F77]) AC_REQUIRE([AC_PROG_FC]) # don't build shared libs per default, this is way better for debugging... -- GitLab