root / config / ax_boost_iostreams.m4 @ f896ce03
History | View | Annotate | Download (1.1 kB)
| 1 | 2c8ea58e | eb | # |
|---|---|---|---|
| 2 | 2c8ea58e | eb | # SYNOPSIS |
| 3 | 2c8ea58e | eb | # |
| 4 | 2c8ea58e | eb | # AX_BOOST_IOSTREAMS |
| 5 | 2c8ea58e | eb | # |
| 6 | 2c8ea58e | eb | # DESCRIPTION |
| 7 | 2c8ea58e | eb | # |
| 8 | 2c8ea58e | eb | # Test for IOStreams library from the Boost C++ libraries. The macro |
| 9 | 2c8ea58e | eb | # requires a preceding call to AX_BOOST_BASE. |
| 10 | 2c8ea58e | eb | # |
| 11 | 2c8ea58e | eb | # This macro calls: |
| 12 | 2c8ea58e | eb | # |
| 13 | 2c8ea58e | eb | # AC_SUBST(BOOST_IOSTREAMS_LIB) |
| 14 | 2c8ea58e | eb | # |
| 15 | 2c8ea58e | eb | # And sets: |
| 16 | 2c8ea58e | eb | # |
| 17 | 2c8ea58e | eb | # HAVE_BOOST_IOSTREAMS |
| 18 | 2c8ea58e | eb | # |
| 19 | 2c8ea58e | eb | # COPYLEFT |
| 20 | 2c8ea58e | eb | # |
| 21 | 2c8ea58e | eb | # Copyright (c) 2008 Thomas Porschberg <[email protected]> |
| 22 | 2c8ea58e | eb | # Copyright (c) 2008 Free Software Foundation, Inc. |
| 23 | 2c8ea58e | eb | # |
| 24 | 2c8ea58e | eb | # Copying and distribution of this file, with or without modification, are |
| 25 | 2c8ea58e | eb | # permitted in any medium without royalty provided the copyright notice |
| 26 | 2c8ea58e | eb | # and this notice are preserved. |
| 27 | 2c8ea58e | eb | |
| 28 | 2c8ea58e | eb | AC_DEFUN([AX_BOOST_IOSTREAMS], |
| 29 | 2c8ea58e | eb | [ |
| 30 | 2c8ea58e | eb | AC_REQUIRE([AX_BOOST_BASE]) |
| 31 | 2c8ea58e | eb | _AX_BOOST_CHECK([boost_iostreams], |
| 32 | 2c8ea58e | eb | [@%:@include <boost/iostreams/filtering_stream.hpp> |
| 33 | 2c8ea58e | eb | @%:@include <boost/range/iterator_range.hpp>], |
| 34 | 2c8ea58e | eb | [std::string input = "Hello World!"; |
| 35 | 2c8ea58e | eb | namespace io = boost::iostreams; |
| 36 | 2c8ea58e | eb | io::filtering_istream in(boost::make_iterator_range(input)); |
| 37 | 2c8ea58e | eb | return 0;]) |
| 38 | 2c8ea58e | eb | |
| 39 | 2c8ea58e | eb | ]) |