From 4035150b3286c97362712890a2a89d8284342bb8 Mon Sep 17 00:00:00 2001 From: hinder Date: Thu, 14 Feb 2013 14:03:31 +0000 Subject: configure.sh: Detect OpenMPI on Mac OS automatically git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/MPI/trunk@15 043a8217-7a68-40fe-abfd-36aa7d4fa6a8 --- configure.sh | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 configure.sh diff --git a/configure.sh b/configure.sh old mode 100644 new mode 100755 index b2cfdb4..8c567c1 --- a/configure.sh +++ b/configure.sh @@ -49,6 +49,14 @@ if [ -z "${MPI_DIR}" ]; then fi done + if [[ -z "$MPI_DIR" && -z "$MPI_INC_DIRS" ]]; then + # MacPorts OpenMPI + if [ -r /opt/local/include/openmpi/mpi.h ]; then + MPI_DIR=/opt/local + MPI_INC_DIRS=/opt/local/include/openmpi + fi + fi + if [ -z "$MPI_DIR" ]; then echo "BEGIN MESSAGE" echo "MPI not found" -- cgit v1.2.3