From 387dda1dab2b8e9e79ab06c545d2f3387123f7c0 Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 14 May 2013 22:43:28 +0000 Subject: Require libmpi.a to be present for auto-detecting OpenMPI git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/MPI/trunk@30 043a8217-7a68-40fe-abfd-36aa7d4fa6a8 --- configure.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.sh b/configure.sh index 94531ff..eff032f 100755 --- a/configure.sh +++ b/configure.sh @@ -49,11 +49,14 @@ if [ -z "${MPI_DIR}" ]; then fi done - if [[ -z "$MPI_DIR" && -z "$MPI_INC_DIRS" ]]; then + if [ -z "${MPI_DIR}" -a -z "${MPI_INC_DIRS}" ]; then # MacPorts OpenMPI - if [ -r /opt/local/include/openmpi/mpi.h ]; then + if [ -r /opt/local/include/openmpi/mpi.h -a \ + -r /opt/local/lib/libmpi.a ]; + then MPI_DIR=/opt/local MPI_INC_DIRS=/opt/local/include/openmpi + MPI_LIB_DIRS=/opt/local/lib fi fi -- cgit v1.2.3