* update the changelog
[tango.git] / config / ac_cxx_have_strstream.m4
blobd127d09b05c13c8c8d0aee87b7d8afd47a86e873
1 dnl @synopsis AC_CXX_HAVE_STRSTREAM
2 dnl
3 dnl If the C++ library has a working strstream, define HAVE_CLASS_STRSTREAM.
4 dnl
5 dnl Adapted from ac_cxx_have_sstream.m4 by Steve Robbins
6 dnl
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])]
12 AC_LANG_SAVE
13 AC_LANG_CPLUSPLUS
14 AC_CHECK_HEADER(strstream, ac_cv_cxx_have_strstream=yes, ac_cv_cxx_have_strstream=no)
15 AC_LANG_RESTORE
17 if test "$ac_cv_cxx_have_strstream" = yes; then
18     AC_DEFINE(HAVE_STRSTREAM,1,[define if the library defines strstream])
19   fi
20   ])