1 dnl @synopsis AC_CXX_TYPENAME
3 dnl If the compiler recognizes the typename keyword, define HAVE_TYPENAME.
6 dnl @author Luc Maisonobe
8 AC_DEFUN(AC_CXX_TYPENAME,
9 [AC_CACHE_CHECK(whether the compiler recognizes typename,
13 AC_TRY_COMPILE([template<typename T>class X {public:X(){}};],
14 [X<float> z; return 0;],
15 ac_cv_cxx_typename=yes, ac_cv_cxx_typename=no)
18 if test "$ac_cv_cxx_typename" = yes; then
19 AC_DEFINE(HAVE_TYPENAME,,[define if the compiler recognizes typename])