Jeff Thompson | ff092f5 | 2013-06-19 13:38:12 -0700 | [diff] [blame] | 1 | AC_INIT([ndn-cpp], [0.5], [], |
| 2 | [ndn-cpp], [https://github.com/named-data/ndn-cpp]) |
| 3 | AC_PREREQ([2.59]) |
| 4 | AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign]) |
| 5 | |
| 6 | AC_CONFIG_HEADERS([config.h]) |
| 7 | AC_PROG_CXX |
| 8 | AC_LANG([C++]) |
| 9 | |
| 10 | AC_MSG_CHECKING([for std::shared_ptr]) |
| 11 | AC_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 | ]) |
| 21 | AC_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 | |
| 32 | AC_CONFIG_FILES([Makefile]) |
| 33 | AC_OUTPUT |