1 dnl @synopsis AC_CXX_HAVE_SSTREAM
3 dnl If the C++ library has a working stringstream, define HAVE_SSTREAM.
5 dnl @author Ben Stanley
8 dnl modified by Marc Tajchman (CEA) - 10/10/2002
10 AC_DEFUN([AC_CXX_HAVE_SSTREAM],
11 [AC_CACHE_CHECK(whether the compiler has stringstream,
13 [AC_REQUIRE([AC_CXX_NAMESPACES])
16 AC_TRY_COMPILE([#include <sstream>
17 #ifdef HAVE_NAMESPACES
19 #endif],[stringstream message; message << "Hello"; return 0;],
20 HAVE_SSTREAM=yes, HAVE_SSTREAM=no)
23 AC_SUBST(HAVE_SSTREAM)