ac_cxx_have_strstream.m4
来自「这是国外的resip协议栈」· M4 代码 · 共 30 行
M4
30 行
dnl @synopsis AC_CXX_HAVE_STRSTREAMdnldnl If the C++ library has a working strstream, define HAVE_CLASS_STRSTREAM.dnldnl Adapted from ac_cxx_have_sstream.m4 by Steve RobbinsdnlAC_DEFUN([AC_CXX_HAVE_STRSTREAM],[AC_CACHE_CHECK(whether the library defines class strstream,ac_cv_cxx_have_class_strstream,[AC_REQUIRE([AC_CXX_NAMESPACES]) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADERS(strstream) AC_TRY_COMPILE([#if HAVE_STRSTREAM# include <strstream>#else# include <strstream.h>#endif#ifdef HAVE_NAMESPACESusing namespace std;#endif],[ostrstream message; message << "Hello"; return 0;], ac_cv_cxx_have_class_strstream=yes, ac_cv_cxx_have_class_strstream=no) AC_LANG_RESTORE])if test "$ac_cv_cxx_have_class_strstream" = yes; then AC_DEFINE(HAVE_CLASS_STRSTREAM,1,[define if the library defines strstream])fi])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?