summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-09-23 16:22:00 +0200
committerFrancis Dupont <fdupont@isc.org>2015-09-23 16:22:00 +0200
commite4c8ba6da6d5536d06da45bd4c8adc51a74ebf4f (patch)
treef4ebc64a839ff935c9a1a0228ea7dfccfd7dee58
parent[4009] Added ext/coroutine Makefile (diff)
downloadkea-e4c8ba6da6d5536d06da45bd4c8adc51a74ebf4f.tar.xz
kea-e4c8ba6da6d5536d06da45bd4c8adc51a74ebf4f.zip
[4009] Added boost_lib_path (NetBSD (and more?) fix)
-rw-r--r--m4macros/ax_boost_for_kea.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4macros/ax_boost_for_kea.m4 b/m4macros/ax_boost_for_kea.m4
index ce6b3bad2c..29a56e7a50 100644
--- a/m4macros/ax_boost_for_kea.m4
+++ b/m4macros/ax_boost_for_kea.m4
@@ -42,6 +42,7 @@ DISTCHECK_BOOST_CONFIGURE_FLAG=
# No library by default (and as goal)
BOOST_LIBS=
+boost_lib_path=
#
# Configure Boost header path
@@ -58,6 +59,7 @@ if test -z "$with_boost_include"; then
do
if test -f $d/include/boost/shared_ptr.hpp; then
boost_include_path=$d/include
+ boost_lib_path="-L$d/lib"
break
fi
done
@@ -161,7 +163,7 @@ if test "x${BOOST_LIBS}" = "x"; then
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_WARN([The Boost system library is required.])
- BOOST_LIBS="-lboost_system"])
+ BOOST_LIBS="$boost_lib_path -lboost_system"])
CPPFLAGS="$CXXFLAGS_SAVED2"
fi