4 # AX_BOOST_WSERIALIZATION
8 # Test for WSerialization library from the Boost C++ libraries. The macro
9 # requires a preceding call to AX_BOOST_BASE.
13 # AC_SUBST(BOOST_WSERIALIZATION_LIB)
17 # HAVE_BOOST_WSERIALIZATION
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_WSERIALIZATION],
30 AC_REQUIRE([AX_BOOST_BASE])
32 dnl depends on BOOST_SERIALIZATION
33 AC_REQUIRE([AX_BOOST_SERIALIZATION])
34 axbws_LDFLAGS_SAVED=$LDFLAGS
35 LDFLAGS="$LDFLAGS $BOOST_SERIALIZATION_LIB"
37 _AX_BOOST_CHECK([boost_wserialization],
38 [@%:@include <fstream>
39 @%:@include <boost/archive/text_oarchive.hpp>
40 @%:@include <boost/archive/text_iarchive.hpp>],
41 [std::ofstream ofs("filename");
42 boost::archive::text_oarchive oa(ofs);
45 LDFLAGS=$axbf_LDFLAGS_SAVED