From 31e94f286f3edd9819de134b0f4239df0ac2a599 Mon Sep 17 00:00:00 2001
From: Martin Nolte <mnolte@dune-project.org>
Date: Wed, 14 Sep 2011 06:35:13 +0000
Subject: [PATCH] add missing AC_LANG_SOURCE

[[Imported from SVN: r6498]]
---
 m4/fortran_overwrite.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/fortran_overwrite.m4 b/m4/fortran_overwrite.m4
index 9abe2a47b..fced2c37c 100644
--- a/m4/fortran_overwrite.m4
+++ b/m4/fortran_overwrite.m4
@@ -23,13 +23,13 @@ AC_DEFUN([__AC_FC_NAME_MANGLING],
 [_AC_FORTRAN_ASSERT()dnl
 AC_CACHE_CHECK([for Fortran name-mangling scheme],
                ac_cv_[]_AC_LANG_ABBREV[]_mangling,
-[AC_COMPILE_IFELSE(
+[AC_COMPILE_IFELSE([AC_LANG_SOURCE(
 [      subroutine foobar()
       return
       end
       subroutine foo_bar()
       return
-      end],
+      end])],
 [mv conftest.$ac_objext cfortran_test.$ac_objext
 
   ac_save_LIBS=$LIBS
-- 
GitLab