8 # Test for IOStreams library from the Boost C++ libraries. The macro
9 # requires a preceding call to AX_BOOST_BASE.
13 # AC_SUBST(BOOST_IOSTREAMS_LIB)
17 # HAVE_BOOST_IOSTREAMS
21 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
22 # Copyright (c) 2008 Free Software Foundation, Inc.
24 # Copying and distribution of this file, with or without modification, are
25 # permitted in any medium without royalty provided the copyright notice
26 # and this notice are preserved.
28 AC_DEFUN([AX_BOOST_IOSTREAMS],
30 AC_REQUIRE([AX_BOOST_BASE])
31 _AX_BOOST_CHECK([boost_iostreams],
32 [@%:@include <boost/iostreams/filtering_stream.hpp>
33 @%:@include <boost/range/iterator_range.hpp>],
34 [std::string input = "Hello World!";
35 namespace io = boost::iostreams;
36 io::filtering_istream in(boost::make_iterator_range(input));