From 529bfb0ad31f881afa22bb3906301c191f512bd0 Mon Sep 17 00:00:00 2001
From: Martin Nolte <mnolte@dune-project.org>
Date: Wed, 14 Sep 2011 06:34:04 +0000
Subject: [PATCH] use proper quoting to avoid autoconf warning on missing
 AC_LANG_SOURCE

[[Imported from SVN: r6497]]
---
 m4/dune_mpi.m4 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/m4/dune_mpi.m4 b/m4/dune_mpi.m4
index 22c2e0ec7..2f5198ec9 100644
--- a/m4/dune_mpi.m4
+++ b/m4/dune_mpi.m4
@@ -149,11 +149,11 @@ AC_DEFUN([DUNE_MPI],[
     # try to create MPI program
     AC_LANG_PUSH([C++])
     AC_COMPILE_IFELSE(
-      AC_LANG_SOURCE(
+      [AC_LANG_SOURCE(
         [ #include <mpi.h>
           int main (int argc, char** argv) { 
           MPI_Init(&argc, &argv); 
-          MPI_Finalize(); }]),
+          MPI_Finalize(); }])],
         [ AC_MSG_RESULT([yes]) ],
         [ AC_MSG_RESULT([no])
           AC_MSG_ERROR([could not compile MPI testprogram!
@@ -166,11 +166,11 @@ AC_DEFUN([DUNE_MPI],[
     ],[
       AC_MSG_CHECKING([whether running with $dune_MPI_VERSION works])
       AC_RUN_IFELSE(
-        AC_LANG_SOURCE(
+        [AC_LANG_SOURCE(
           [ #include <mpi.h>
             int main (int argc, char** argv) { 
             MPI_Init(&argc, &argv); 
-            MPI_Finalize(); }]),
+            MPI_Finalize(); }])],
           [ AC_MSG_RESULT([yes]) ],
           [ AC_MSG_RESULT([no])
             AC_MSG_ERROR([could not run MPI testprogram!
-- 
GitLab