summaryrefslogtreecommitdiff
path: root/lib/make/extras/MPI
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-04 10:01:33 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-04 10:01:33 +0000
commitc076204888260ba70574cdff2664e386436e45f3 (patch)
tree05a2e856187b1a349506fd2f4ddeb37f258d1932 /lib/make/extras/MPI
parent429a72a81d02f1fc343c570fbd41a02d50c6fbff (diff)
Use the NATIVE_MPI_XXX variables from the known-archs stuff here
to finally set the MPI libs, libdirs, and includedirs. Also test if MPI=NATIVE was selected but the system doesn't provide a native MPI. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1514 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/extras/MPI')
-rw-r--r--lib/make/extras/MPI/NATIVE13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/make/extras/MPI/NATIVE b/lib/make/extras/MPI/NATIVE
index 64bcc3c1..023ccc63 100644
--- a/lib/make/extras/MPI/NATIVE
+++ b/lib/make/extras/MPI/NATIVE
@@ -6,13 +6,18 @@
# @desc
#
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/NATIVE,v 1.2 1999-07-21 12:52:55 goodale Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/NATIVE,v 1.3 2000-04-04 10:01:33 tradke Exp $
# @@*/
echo "Native MPI selected"
# This should be filled out by the know-architecture stuff.
-: ${MPI_LIBS=""}
-: ${MPI_LIB_DIRS=""}
-: ${MPI_INC_DIRS=""}
+if test -z "$NATIVE_MPI_LIBS" ; then
+ echo "ERROR: NATIVE MPI selected, but this architecture has no native MPI"
+ exit 2
+fi
+
+MPI_LIBS=$NATIVE_MPI_LIBS
+MPI_LIB_DIRS=${NATIVE_MPI_LIB_DIRS:-""}
+MPI_INC_DIRS=${NATIVE_MPI_INC_DIRS:-""}