From: Francis Dupont Date: Sat, 29 Dec 2018 13:37:31 +0000 (+0100) Subject: [367-kea-does-not-compile-with-boost-installed-at-not-default-location] Retry with... X-Git-Tag: 100-implement-test-config-backend-dhcp6_base~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb2dbc04abe92993355f410eb43e8697a760731;p=thirdparty%2Fkea.git [367-kea-does-not-compile-with-boost-installed-at-not-default-location] Retry with infered lib dir --- diff --git a/m4macros/ax_boost_for_kea.m4 b/m4macros/ax_boost_for_kea.m4 index 0a90447b54..f38601a220 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