From d25b9da9f6bc2becc91221e985c63b2e0313f7a2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 27 Sep 2014 23:50:33 +0900 Subject: [PATCH] Check Boost library only when it is requested --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 3183fe4d..ed64a40e 100644 --- a/configure.ac +++ b/configure.ac @@ -337,17 +337,19 @@ AM_CONDITIONAL([HAVE_SPDYLAY], [ test "x${have_spdylay}" = "xyes" ]) # Check Boost Asio library 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 - AX_BOOST_ASIO() - AX_BOOST_SYSTEM() - AX_BOOST_THREAD() + if test "x${have_boost_base}" = "xyes"; then + AX_BOOST_ASIO() + AX_BOOST_SYSTEM() + AX_BOOST_THREAD() - if test "x${ax_cv_boost_asio}" = "xyes" && - test "x${ax_cv_boost_system}" = "xyes" && - test "x${ax_cv_boost_thread}" = "xyes"; then - have_asio_lib=yes + if test "x${ax_cv_boost_asio}" = "xyes" && + test "x${ax_cv_boost_system}" = "xyes" && + test "x${ax_cv_boost_thread}" = "xyes"; then + have_asio_lib=yes + fi fi fi