diff --git a/m4/dune_all.m4 b/m4/dune_all.m4
index 16f30ad898fd00396a583c835b8df4545595cf0a..a9bf96ba306887a4df9ed75dd4cbcbb1d11a0b60 100644
--- a/m4/dune_all.m4
+++ b/m4/dune_all.m4
@@ -187,6 +187,8 @@ AC_ARG_WITH(revision,
   AC_SUBST(revision, $with_revision)
   AC_LANG_PUSH([C++])
 
+  AC_REQUIRE([DUNE_MODULE_DEPENDENCIES])
+  DUNE_MODULE_DEPENDENCIES($@)
   AC_REQUIRE([DUNE_CHECK_ALL])
   AC_REQUIRE([DUNE_DEV_MODE])