1 dnl @synopsis AC_CXX_HAVE_STRSTREAM
3 dnl If the C++ library has a working strstream, define HAVE_CLASS_STRSTREAM.
5 dnl Adapted from ac_cxx_have_sstream.m4 by Steve Robbins
7 AC_DEFUN([AC_CXX_HAVE_STRSTREAM],
8 [AC_CACHE_CHECK(whether the library defines strstream,
9 ac_cv_cxx_have_strstream,
10 [AC_REQUIRE([AC_CXX_NAMESPACES])]
14 AC_CHECK_HEADER(strstream, ac_cv_cxx_have_strstream=yes, ac_cv_cxx_have_strstream=no)
17 if test "$ac_cv_cxx_have_strstream" = yes; then
18 AC_DEFINE(HAVE_STRSTREAM,1,[define if the library defines strstream])