Skip to content

Commit

Permalink
Add BOOST_LOG and BOOST_LOG_SETUP.
Browse files Browse the repository at this point in the history
Based on a contribution from Bernd Prager <bernd at prager.ws>.
  • Loading branch information
tsuna committed Jun 18, 2011
1 parent b5e3b42 commit 0cf028b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions THANKS
Expand Up @@ -8,6 +8,7 @@ Alexandre Rostovtsev
Anthony Mallet
Aurimas Černius
Bastien Nocera
Bernd Prager
Daniel Herring
Giles Hall
Hubert Figuière
Expand Down
23 changes: 23 additions & 0 deletions build-aux/boost.m4
Expand Up @@ -588,6 +588,29 @@ BOOST_DEFUN([Lambda],
[BOOST_FIND_HEADER([boost/lambda/lambda.hpp])])


# BOOST_LOG([PREFERRED-RT-OPT])
# -----------------------------
# Look for Boost.Log For the documentation of PREFERRED-RT-OPT, see the
# documentation of BOOST_FIND_LIB above.
BOOST_DEFUN([Log],
[BOOST_FIND_LIB([log], [$1],
[boost/log/core/core.hpp],
[boost::log::attribute a; a.get_value();])
])# BOOST_LOG


# BOOST_LOG_SETUP([PREFERRED-RT-OPT])
# -----------------------------------
# Look for Boost.Log For the documentation of PREFERRED-RT-OPT, see the
# documentation of BOOST_FIND_LIB above.
BOOST_DEFUN([Log_Setup],
[AC_REQUIRE([BOOST_LOG])dnl
BOOST_FIND_LIB([log_setup], [$1],
[boost/log/utility/init/from_settings.hpp],
[boost::log::basic_settings<char> bs; bs.empty();])
])# BOOST_LOG_SETUP


# BOOST_MATH()
# ------------
# Look for Boost.Math
Expand Down
2 changes: 2 additions & 0 deletions tests/testsuite.at
Expand Up @@ -286,6 +286,8 @@ AT_CHECK_MACRO_CROSS([BOOST_FILESYSTEM], [lib])
AT_CHECK_MACRO([BOOST_GRAPH], [lib])
AT_CHECK_MACRO([BOOST_IOSTREAMS], [lib])
AT_CHECK_MACRO([BOOST_IOSTREAMS (static)], [lib], [BOOST_IOSTREAMS([s])])
AT_CHECK_MACRO([BOOST_LOG], [lib])
AT_CHECK_MACRO([BOOST_LOG_SETUP], [lib])
AT_CHECK_MACRO([BOOST_PROGRAM_OPTIONS], [lib])
AT_CHECK_MACRO([BOOST_PYTHON], [lib])
AT_CHECK_MACRO([BOOST_PYTHON (static)], [lib], [BOOST_PYTHON([s])])
Expand Down

0 comments on commit 0cf028b

Please sign in to comment.