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/config.h.in b/config.h.in
index 87c8c3e..cc0ae60 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,5 +1,8 @@
 /* config.h.in.  Generated from configure.ac by autoheader.  */
 
+/* 1 if have the `boost::function' class. */
+#undef HAVE_BOOST_FUNCTION
+
 /* 1 if have the `boost::shared_ptr' class. */
 #undef HAVE_BOOST_SHARED_PTR
 
@@ -33,6 +36,9 @@
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
+/* 1 if have the `std::function' class. */
+#undef HAVE_STD_FUNCTION
+
 /* 1 if have the `std::shared_ptr' class. */
 #undef HAVE_STD_SHARED_PTR