浏览代码

configure.ac: check the version of simgrid is recent enough, it needs
to define the type msg_host_t

Nathalie Furmento 12 年之前
父节点
当前提交
498c47a0dd
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      configure.ac

+ 8 - 0
configure.ac

@@ -794,6 +794,14 @@ if test x$enable_simgrid = xyes ; then
 			AC_MSG_ERROR(Simgrid support needs simgrid installed)
 		]
 	)
+	AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+		    		[[#include <msg/msg.h>]],
+				[[msg_host_t foo; ]]
+			    )],
+	                 [],
+	                 [
+			   AC_MSG_ERROR(StarPU needs a version of Simgrid which defines the type msg_host_t (should be any version >= 3.8.1))
+		         ])
 	SIMGRID_LIBS=-lsimgrid
 	AC_DEFINE(STARPU_SIMGRID, 1, [Define this to enable simgrid execution])
 	# Avoid the starpu top thread compilation