Skip to content

Commit ac83391

Browse files
configure: Report on MPICH configuration failure.
This adds an output at the end of the top-level configure that explicitly states when MPICH's configure was unsuccessful.
1 parent b3c9609 commit ac83391

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

configure.ac

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,11 @@ if test "${CONFSET}" != "none" ; then
808808
# call original mpich configure
809809
# --disable-maintainer-mode prevent from refreshing autoconf generated files in the source folder.
810810
eval ${TOP_SRCDIR}/mpich2/configure ${CONFIGARGS} ${CONF_OPS} ${MPICHCONF} --disable-maintainer-mode
811+
if test $? -eq 0 ; then
812+
mpich_configure_successful="yes"
813+
else
814+
mpich_configure_successful="no"
815+
fi
811816
fi
812817

813818
echo "####### SUMMARY of psmpi configuration ########"
@@ -852,7 +857,11 @@ if test "${CONF_ADI3_DEVICE}" != "psp" -a "${CONF_ECHO_SUMMARY_PRINTED}" = "yes"
852857
echo "${CONF_ECHO_PREFIX}WARNING Top-level configure arguments for devices other than psp are propagated, but their effectiveness is not checked."
853858
echo "${CONF_ECHO_PREFIX}WARNING The canonical way for passing configure arguments on to the ch3/4 devices is the use of --with-mpichconf=[[args]]."
854859
fi
855-
860+
if test "$mpich_configure_successful" = "no" ; then
861+
AC_MSG_ERROR([MPICH's configure was NOT successful! Check logs for more details.])
862+
else
863+
echo "${CONF_ECHO_PREFIX}The configure for ParaStation MPI, including MPICH, completed successfully."
864+
fi
856865
#
857866
# Local Variables:
858867
# compile-command: "module load automake-1.15 && autoreconf -vif"

0 commit comments

Comments
 (0)