Commit beb2dbc0 authored by Francis Dupont's avatar Francis Dupont

[367-kea-does-not-compile-with-boost-installed-at-not-default-location] Retry with infered lib dir

parent 7ef3fd28
......@@ -202,12 +202,23 @@ if test "x${BOOST_LIBS}" != "x"; then
LIBS="-static $LIBS"
fi
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <boost/system/error_code.hpp>],
[boost::system::error_code ec;])],
[AC_MSG_RESULT([checking for Boost system library... yes])],
[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.hpp>],
[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.])])
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment