blob: af7095e182cfb915f518595fe915de50944dd178 [file] [log] [blame]
Jeff Thompsonff092f52013-06-19 13:38:12 -07001AC_INIT([ndn-cpp], [0.5], [],
2 [ndn-cpp], [https://github.com/named-data/ndn-cpp])
3AC_PREREQ([2.59])
4AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
5
6AC_CONFIG_HEADERS([config.h])
7AC_PROG_CXX
8AC_LANG([C++])
9
10AC_MSG_CHECKING([for std::shared_ptr])
11AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
12 [[#include <memory>]]
13 [[std::shared_ptr<int> have_shared_ptr;]])
14], [
15 AC_MSG_RESULT([yes])
16 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 1, [1 if have the `std::shared_ptr' class.])
17], [
18 AC_MSG_RESULT([no])
19 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 0, [1 if have the `std::shared_ptr' class.])
20])
21AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
22 [[#include <boost/shared_ptr.hpp>]]
23 [[boost::shared_ptr<int> have_shared_ptr;]])
24], [
25 AC_MSG_RESULT([yes])
26 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 1, [1 if have the `boost::shared_ptr' class.])
27], [
28 AC_MSG_RESULT([no])
29 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 0, [1 if have the `boost::shared_ptr' class.])
30])
31
32AC_CONFIG_FILES([Makefile])
33AC_OUTPUT