浏览代码

Fix testing for need for std=c++11 for simgrid

Samuel Thibault 9 年之前
父节点
当前提交
6ecce4424d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      configure.ac

+ 4 - 0
configure.ac

@@ -1100,8 +1100,12 @@ if test x$enable_simgrid = xyes ; then
 	# Simgrid 3.12 & 3.13 need -std=c++11 to be able to build anything in C++...
 	AC_LANG_PUSH([C++])
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+			  #ifdef HAVE_SIMGRID_MSG_H
 			  #include <simgrid/msg.h>
 			  #include <simgrid/host.h>
+			  #else
+			  #include <msg/msg.h>
+			  #endif
 			  ]]),],,
 			  CXXFLAGS="-std=c++11 $CXXFLAGS"
 			  NVCCFLAGS="-std=c++11 $NVCCFLAGS")