浏览代码

configure.ac: fail when no C++ compiler is found

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

+ 4 - 0
configure.ac

@@ -82,6 +82,10 @@ AC_CHECK_PROGS(PROG_STAT,gstat stat)
 AC_CHECK_PROGS(PROG_DATE,gdate date)
 AC_OPENMP
 
+if test x$ac_cv_env_CXX_set = x; then
+   AC_MSG_ERROR([No compiler C++ found])
+fi
+
 if test x$enable_perf_debug = xyes; then
     enable_shared=no
 fi