Browse Source

Add argument --with-boost-include to point to include path.
I have been using this for a few days for building from the tarball
which doesn't include ext/boost and my system doesn't have
boost headers in standard location.

Also check for the boost headers.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1504 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed 15 years ago
parent
commit
b4bd55b9b7
1 changed files with 17 additions and 0 deletions
  1. 17 0
      configure.ac

+ 17 - 0
configure.ac

@@ -134,6 +134,18 @@ if test "$lcov" != "no"; then
 fi
 AC_SUBST(USE_LCOV)
 
+AC_ARG_WITH([boost-include],
+  AC_HELP_STRING([--with-boost-include=PATH],
+    [specify exact directory for Boost headers]),
+    [boost_include_path="$withval"])
+if test "${boost_include_path}" ; then
+  CPPFLAGS="$CPPFLAGS -I${boost_include_path}"
+else
+# abs_top_srcdir not defined yet
+# so this is only useful to check but not to use later
+  CPPFLAGS="$CPPFLAGS -Iext"
+fi
+
 # Check availability of the Boost System library
 
 AC_MSG_CHECKING([for boost::system library])
@@ -234,6 +246,11 @@ AC_SUBST(GTEST_LDADD)
 
 PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9)
 
+# Check for headers from required devel kits.
+# boost/shared_ptr.hpp is in ext in svn but not in tarball.
+AC_CHECK_HEADERS([boost/shared_ptr.hpp],,
+  AC_MSG_ERROR([Missing required header files.]))
+
 # Checks for library functions.
 
 AC_CONFIG_FILES([Makefile