From aa6f1b6c149dd724ce0da31231168b763c8970ce Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 7 Jul 2003 11:00:05 +0000 Subject: A better check to test whether a configuration was configured with MPI. This closes PR CactusElliptic/1218. git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllPETSc/trunk@72 1d96b42b-98df-4a6a-9d84-1b24288d4588 --- src/make.configuration.defn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/make.configuration.defn b/src/make.configuration.defn index 0db964b..c2444cd 100644 --- a/src/make.configuration.defn +++ b/src/make.configuration.defn @@ -11,7 +11,9 @@ ### check if this was configured with MPI, bail out if not -ifeq ($(strip $(MPI_LIBS)), ) +have_mpi := $(shell grep -s '\#define CCTK_MPI' $(CONFIG)/cctk_Extradefs.h) + +ifeq ($(strip $(have_mpi)), ) $(NAME): MissingMPI .pseudo: MissingMPI MissingMPI: -- cgit v1.2.3