ac_cxx_have_stl.m4
来自「asn格式文件的编译器」· M4 代码 · 共 28 行
M4
28 行
dnl @synopsis AC_CXX_HAVE_STLdnldnl If the compiler supports the Standard Template Library, define HAVE_STL.dnldnl @version $Id: ac_cxx_have_stl.m4,v 1.1.1.1 2001/08/01 07:38:42 mangelo Exp $dnl @author Luc MaisonobednlAC_DEFUN([AC_CXX_HAVE_STL],[AC_CACHE_CHECK(whether the compiler supports Standard Template Library,ac_cv_cxx_have_stl,[AC_REQUIRE([AC_CXX_NAMESPACES]) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_COMPILE([#include <list>#include <deque>#ifdef HAVE_NAMESPACESusing namespace std;#endif],[list<int> x; x.push_back(5);list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;], ac_cv_cxx_have_stl=yes, ac_cv_cxx_have_stl=no) AC_LANG_RESTORE])if test "$ac_cv_cxx_have_stl" = yes; then AC_DEFINE(HAVE_STL,,[define if the compiler supports Standard Template Library])fi])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?