1 # Check for C++ namespace support. This is from
2 # http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_namespaces.html
4 AC_DEFUN([AC_CXX_NAMESPACES],
5 [AC_CACHE_CHECK(whether the compiler implements namespaces,
8 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
9 [[namespace Outer { namespace Inner { int i = 0; }}]],
10 [[using namespace Outer::Inner; return i;]])],
11 ac_cv_cxx_namespaces=yes,
12 ac_cv_cxx_namespaces=no)
15 if test "$ac_cv_cxx_namespaces" = yes; then
16 AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])