summaryrefslogtreecommitdiff
path: root/lib/make/extras/MPI
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-13 09:04:22 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-13 09:04:22 +0000
commitee5a8399973e2da24d949f1406d925629eeec9c6 (patch)
tree464c59ac383b227045345e8cefbeb733a22447dc /lib/make/extras/MPI
parenteed931adec041e08f3d6ca177e06146bf3560f57 (diff)
Added search for include/lam and lib/lam so can just do
MPI=LAM when configuring on machines setup in that way (e.g. the rh6.2 rpm installation). Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1942 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/extras/MPI')
-rw-r--r--lib/make/extras/MPI/LAM31
1 files changed, 21 insertions, 10 deletions
diff --git a/lib/make/extras/MPI/LAM b/lib/make/extras/MPI/LAM
index 0d3447d8..367887d1 100644
--- a/lib/make/extras/MPI/LAM
+++ b/lib/make/extras/MPI/LAM
@@ -4,24 +4,35 @@
# @date Wed Jul 21 13:27:07 1999
# @author Tom Goodale
# @desc
-#
+# Configure Cactus to compile with the LAM version of MPI.
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/LAM,v 1.3 2000-10-15 17:21:52 tradke Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/LAM,v 1.4 2000-12-13 09:04:22 goodale Exp $
# @@*/
echo "LAM selected"
if test -z "$LAM_LIB_DIR" -o -z "$LAM_INC_DIR" ; then
if test -z "$LAM_DIR" ; then
- echo "LAM selected but no LAM_DIR set... Checking some places"
- CCTK_Search LAM_DIR "/usr /usr/local /usr/local/lam /usr/local/packages/lam /usr/local/apps/lam" h/lam.h
- if test -z "$LAM_DIR" ; then
- echo "Unable to locate the LAM directory - please set LAM_DIR"
- exit 2
- fi
+ echo "LAM selected but no LAM_DIR set... Checking some places"
+ if test -d "/usr/include/lam" -a -d "/usr/lib/lam" ; then
+ LAM_LIB_DIR="/usr/lib/lam"
+ LAM_INC_DIR="/usr/include/lam"
+ elif test -d "/usr/local/include/lam" -a -d "/usr/local/lib/lam" ; then
+ LAM_LIB_DIR="/usr/local/lib/lam"
+ LAM_INC_DIR="/usr/local/include/lam"
+ else
+ CCTK_Search LAM_DIR "/usr /usr/local /usr/local/lam /usr/local/packages/lam /usr/local/apps/lam" h/lam.h
+ if test -z "$LAM_DIR" ; then
+ echo "Unable to locate the LAM directory - please set LAM_DIR"
+ exit 2
+ fi
+ fi
fi
- LAM_LIB_DIR="$LAM_DIR/lib"
- LAM_INC_DIR="$LAM_DIR/h"
+ : ${LAM_LIB_DIR="$LAM_DIR/lib"}
+ : ${LAM_INC_DIR="$LAM_DIR/h"}
+
+ echo "Using $LAM_LIB_DIR as lam library path"
+ echo "Using $LAM_INC_DIR as lam include path"
fi
MPI_LIBS="mpi tstdio args t trillium "