浏览代码

- add version check for Intel Fortran

Olivier Aumage 9 年之前
父节点
当前提交
cc04346b70
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      configure.ac

+ 12 - 0
configure.ac

@@ -2118,6 +2118,18 @@ if test "x$FC" != "x"; then
 			AC_MSG_WARN([GFortran $gfortran_fc_version too old, version >= 4.9.x needed, Fortran examples will not be built])
 			enable_build_fortran="no"
 		fi
+	else
+		if $FC -V 2>&1|grep -q 'Intel(R) Fortran'; then
+			ifort_fc_version=`$FC -V 2>&1 |head -1|sed 's/.*Version //;s/ Build.*//'`
+			ifort_maj_version=`echo $ifort_fc_version|cut -d. -f1`
+
+			if test $ifort_maj_version -lt 16; then
+				AC_MSG_WARN([Intel Fortran compiler $ifort_fc_version too old, version >= 2016.x needed, Fortran examples will not be built])
+				enable_build_fortran="no"
+			fi
+		else
+			AC_MSG_WARN(Fortran compiler has not been tested for StarPU native Fortran support)
+		fi
 	fi
 	if test "x$enable_build_fortran" = "xyes" ; then
 		AC_DEFINE(STARPU_HAVE_FC, [], [Define this if a Fortran compiler is available])