Check Boost library only when it is requested

This commit is contained in:
Tatsuhiro Tsujikawa 2014-09-27 23:50:33 +09:00
parent b48ceac56c
commit d25b9da9f6
1 changed files with 11 additions and 9 deletions

View File

@ -337,17 +337,19 @@ AM_CONDITIONAL([HAVE_SPDYLAY], [ test "x${have_spdylay}" = "xyes" ])
# Check Boost Asio library # Check Boost Asio library
have_asio_lib=no have_asio_lib=no
AX_BOOST_BASE([1.54.0], [have_boost_base=yes], [have_boost_base=no]) if test "x${request_asio_lib}" = "xyes"; then
AX_BOOST_BASE([1.54.0], [have_boost_base=yes], [have_boost_base=no])
if test "x${have_boost_base}" = "xyes"; then if test "x${have_boost_base}" = "xyes"; then
AX_BOOST_ASIO() AX_BOOST_ASIO()
AX_BOOST_SYSTEM() AX_BOOST_SYSTEM()
AX_BOOST_THREAD() AX_BOOST_THREAD()
if test "x${ax_cv_boost_asio}" = "xyes" && if test "x${ax_cv_boost_asio}" = "xyes" &&
test "x${ax_cv_boost_system}" = "xyes" && test "x${ax_cv_boost_system}" = "xyes" &&
test "x${ax_cv_boost_thread}" = "xyes"; then test "x${ax_cv_boost_thread}" = "xyes"; then
have_asio_lib=yes have_asio_lib=yes
fi
fi fi
fi fi