Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 23357)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 23358)
@@ -2270,4 +2270,7 @@
 			AC_MSG_ERROR([cannot compile ISSM with both ADOLC and CoDiPack]);
 		fi
+		if test "$HAVE_ADJOINTMPI" = "yes"  && test "$HAVE_MEDIPACK" = "yes" ; then
+			AC_MSG_ERROR([cannot compile ISSM with both MeDiPack and AdjointMPI]);
+		fi
 		dnl check that if we run meteoio, we have snowpack also
 		if test "$HAVE_METEOIO" = "yes"  && test "$HAVE_SNOWPACK" = "no" ; then
