瀏覽代碼

Use simgrid's smpicc instead of mpicc when building in simgrid mode

Samuel Thibault 10 年之前
父節點
當前提交
0b355d84db
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      configure.ac

+ 6 - 1
configure.ac

@@ -1759,8 +1759,13 @@ AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
 		fi
 	],
 	[
+		if test x$enable_simgrid = xyes ; then
+			DEFAULT_MPICC=smpicc
+		else
+			DEFAULT_MPICC=mpicc
+		fi
 		# nothing was specified: default value is used
-		AC_PATH_PROG(mpicc_path, mpicc, [no], [])
+		AC_PATH_PROG(mpicc_path, $DEFAULT_MPICC, [no], [])
 	])
 
 # We test if the MPICC compiler exists