[svn] commit: r1504 - /trunk/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 18 01:56:04 UTC 2010


Author: jreed
Date: Thu Mar 18 01:56:04 2010
New Revision: 1504

Log:
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.

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Mar 18 01:56:04 2010
@@ -134,6 +134,18 @@
 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])
@@ -233,6 +245,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.
 




More information about the bind10-changes mailing list