diff --git a/Makefile.am b/Makefile.am index f4d6be982b45d40e031c9e70b3616c681228bace..b1608aafbc9ac4df55128d8472af3691f79918a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -306,14 +306,15 @@ endif # test scripts +MPIEXEC ?= mpiexec -n 2 if WITH_MPI - wrapper="mpiexec -n 2 " + wrapper=$(MPIEXEC) else - wrapper="" + wrapper= endif TESTS = $(check_SCRIPTS) %.sh: % - echo '$(wrapper)./$^ $$TEST_FLAGS' > $@ + echo '$(wrapper) ./$^ $$TEST_FLAGS' > $@ chmod +x $@ ## this one does not want any arguments diff --git a/configure.ac b/configure.ac index 6d1bbdc99a82a128845289dbf846202ca2b631ff..050fa6dc10b9555c2a739c0ec3ceade24247010d 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ fi dnl mpi AC_ARG_WITH(mpi, [AS_HELP_STRING([--with-mpi=[[yes|no]]], [compile with MPI. Default: yes])],,[with_mpi=yes]) -AM_CONDITIONAL([WITH_MPI],[test x"with_mpi" = x"yes"]) +AM_CONDITIONAL([WITH_MPI],[test x"$with_mpi" = x"yes"]) if test x"${with_mpi}" = x"yes"; then AC_DEFINE([WITH_MPI], [1], [use MPI]) fi