From beb2dbc04abe92993355f410eb43e8697a760731 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sat, 29 Dec 2018 14:37:31 +0100 Subject: [PATCH] [367-kea-does-not-compile-with-boost-installed-at-not-default-location] Retry with infered lib dir --- m4macros/ax_boost_for_kea.m4 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/m4macros/ax_boost_for_kea.m4 b/m4macros/ax_boost_for_kea.m4 index 0a90447b5..f38601a22 100644 --- a/m4macros/ax_boost_for_kea.m4 +++ b/m4macros/ax_boost_for_kea.m4 @@ -206,8 +206,19 @@ if test "x${BOOST_LIBS}" != "x"; then [AC_LANG_PROGRAM([#include ], [boost::system::error_code ec;])], [AC_MSG_RESULT([checking for Boost system library... yes])], - [AC_MSG_RESULT([checking for Boost system library... no]) - AC_MSG_ERROR([Linking with ${BOOST_LIBS} is not enough: please make sure libboost_system is installed; Check config.log for details, you may be missing other libraries.])]) + [if test "x${BOOST_LIB_DIR}" = "x"; then + BOOST_LIB_DIR="$boost_lib_path" + fi + if test "x${BOOST_LIB_DIR}" != "x"; then + BOOST_LIBS="-L$BOOST_LIB_DIR $BOOST_LIBS" + fi + LIBS="$BOOST_LIBS $LIBS_SAVED" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([#include ], + [boost::system::error_code ec;])], + [AC_MSG_RESULT([checking for Boost system library... yes])], + [AC_MSG_RESULT([checking for Boost system library... no]) + AC_MSG_ERROR([Linking with ${BOOST_LIBS} is not enough: please make sure libboost_system is installed in an expected location; Check config.log for details, you may be missing other libraries.])])]) LIBS="$LIBS_SAVED" fi -- 2.18.1