diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-13 05:31:04 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 05:31:39 -0400 |
commit | 09fdab0d955561afecfe5b23b3c3bece62c4d0c6 (patch) | |
tree | aa53d0b54c04439d3abfb25a4740bb71b754e736 /tools | |
parent | 2dec00a882a72b4f031d23c641889a216785c345 (diff) | |
download | fork-ledger-09fdab0d955561afecfe5b23b3c3bece62c4d0c6.tar.gz fork-ledger-09fdab0d955561afecfe5b23b3c3bece62c4d0c6.tar.bz2 fork-ledger-09fdab0d955561afecfe5b23b3c3bece62c4d0c6.zip |
The --cache option is now officially deprecated
Diffstat (limited to 'tools')
-rw-r--r-- | tools/configure.ac | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/tools/configure.ac b/tools/configure.ac index e3149a18..69874101 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -325,36 +325,37 @@ else fi # check for boost_serialization -AC_CACHE_CHECK( - [if boost_serialization is available], - [boost_serialization_cpplib_avail_cv_], - [boost_serialization_save_libs=$LIBS - LIBS="-lboost_serialization$BOOST_SUFFIX -lboost_system$BOOST_SUFFIX $LIBS" - AC_LANG_PUSH(C++) - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include <boost/archive/binary_oarchive.hpp> - #include <iostream> - struct foo { - int a; - template<class Archive> - void serialize(Archive & ar, const unsigned int) { - ar & a; - } - };]], - [[boost::archive::binary_oarchive oa(std::cout); - foo x; - oa << x;]])], - [boost_serialization_cpplib_avail_cv_=true], - [boost_serialization_cpplib_avail_cv_=false]) - AC_LANG_POP - LIBS=$boost_serialization_save_libs]) - -if [test x$boost_serialization_cpplib_avail_cv_ = xtrue -a x$cache = xtrue]; then - AC_DEFINE([HAVE_BOOST_SERIALIZATION], [1], [Whether Boost.Serialization is available]) - LIBS="-lboost_serialization$BOOST_SUFFIX $LIBS" -fi -AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, test x$boost_serialization_cpplib_avail_cv_ = xtrue -a x$cache = xtrue) +#AC_CACHE_CHECK( +# [if boost_serialization is available], +# [boost_serialization_cpplib_avail_cv_], +# [boost_serialization_save_libs=$LIBS +# LIBS="-lboost_serialization$BOOST_SUFFIX -lboost_system$BOOST_SUFFIX $LIBS" +# AC_LANG_PUSH(C++) +# AC_LINK_IFELSE( +# [AC_LANG_PROGRAM( +# [[#include <boost/archive/binary_oarchive.hpp> +# #include <iostream> +# struct foo { +# int a; +# template<class Archive> +# void serialize(Archive & ar, const unsigned int) { +# ar & a; +# } +# };]], +# [[boost::archive::binary_oarchive oa(std::cout); +# foo x; +# oa << x;]])], +# [boost_serialization_cpplib_avail_cv_=true], +# [boost_serialization_cpplib_avail_cv_=false]) +# AC_LANG_POP +# LIBS=$boost_serialization_save_libs]) +# +#if [test x$boost_serialization_cpplib_avail_cv_ = xtrue -a x$cache = xtrue]; then +# AC_DEFINE([HAVE_BOOST_SERIALIZATION], [1], [Whether Boost.Serialization is available]) +# LIBS="-lboost_serialization$BOOST_SUFFIX $LIBS" +#fi +#AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, test x$boost_serialization_cpplib_avail_cv_ = xtrue -a x$cache = xtrue) +AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, false) # check for Python if [ test x$python = xtrue ]; then |