In common.h, define func_lib for function objects.  In configure.ac, define HAVE_STD_FUNCTION and HAVE_BOOST_FUNCTION.  Include function headers in ndnboost.
diff --git a/ndnboost/function/detail/prologue.hpp b/ndnboost/function/detail/prologue.hpp
new file mode 100644
index 0000000..458324c
--- /dev/null
+++ b/ndnboost/function/detail/prologue.hpp
@@ -0,0 +1,26 @@
+// Boost.Function library
+
+//  Copyright Douglas Gregor 2002-2003. Use, modification and
+//  distribution is subject to the Boost Software License, Version
+//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
+//  http://www.boost.org/LICENSE_1_0.txt)
+
+// For more information, see http://www.boost.org
+
+#ifndef BOOST_FUNCTION_PROLOGUE_HPP
+#define BOOST_FUNCTION_PROLOGUE_HPP
+#  include <cassert>
+#  include <algorithm>
+#  include <ndnboost/config/no_tr1/functional.hpp> // unary_function, binary_function
+#  include <ndnboost/throw_exception.hpp>
+#  include <ndnboost/config.hpp>
+#  include <ndnboost/function/function_base.hpp>
+#  include <ndnboost/mem_fn.hpp>
+#  include <ndnboost/type_traits/is_integral.hpp>
+#  include <ndnboost/preprocessor/enum.hpp>
+#  include <ndnboost/preprocessor/enum_params.hpp>
+#  include <ndnboost/preprocessor/cat.hpp>
+#  include <ndnboost/preprocessor/repeat.hpp>
+#  include <ndnboost/preprocessor/inc.hpp>
+#  include <ndnboost/type_traits/is_void.hpp>
+#endif // BOOST_FUNCTION_PROLOGUE_HPP