浏览代码

build: configure errors out if the C++ compiler cannot link executables.

legacy
Sam Hocevar sam 12 年前
父节点
当前提交
b114090d97
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      configure.ac

+ 9
- 0
configure.ac 查看文件

@@ -22,6 +22,15 @@ AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_RANLIB

dnl Check that the C++ compiler really works
AC_LANG_PUSH(C++)
AC_MSG_CHECKING(for a fully working C++ compiler)
AC_TRY_LINK([], [],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([[C++ compiler cannot link executables]])])
AC_LANG_POP(C++)

AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_LIBTOOL_CXX


正在加载...
取消
保存