]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Not only test whether we can include mpi.h, but also whether we can link. On charm...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Aug 2008 20:22:55 +0000 (20:22 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Aug 2008 20:22:55 +0000 (20:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@16579 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index b61c30b40667914c893052ddb0461547848e878b..ec08ea1a6b3e366bb0866b2f6b5615ca0732c169 100644 (file)
@@ -387,7 +387,7 @@ dnl -------------------------------------------------------------
 AC_DEFUN(DEAL_II_DETERMINE_IF_SUPPORTS_MPI, dnl
 [
   AC_MSG_CHECKING(if the compiler is built for MPI)
-  AC_TRY_COMPILE(
+  AC_TRY_LINK(
         [
           #include <mpi.h>
         ],
index 8040d133596478a178e9765f5c826ca9cd2a0212..b5b6c8cd18ea0b262493d29b87121bfaf8056776 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 16223 .
+# From configure.in Revision: 16569 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.60 for deal.II 6.2.pre.
 #
@@ -3899,14 +3899,14 @@ main ()
   return 0;
 }
 _ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
 case "(($ac_try" in
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   *) ac_try_echo=$ac_try;;
 esac
 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
+  (eval "$ac_link") 2>conftest.er1
   ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err
   rm -f conftest.er1
@@ -3923,7 +3923,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-        { ac_try='test -s conftest.$ac_objext'
+        { ac_try='test -s conftest$ac_exeext'
   { (case "(($ac_try" in
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   *) ac_try_echo=$ac_try;;
@@ -3952,7 +3952,8 @@ echo "${ECHO_T}no" >&6; }
 
 fi
 
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
 
 
     if test "$GXX" = yes ; then

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.