Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / salome_adm / unix / config_files / ac_cxx_typename.m4
1 dnl @synopsis AC_CXX_TYPENAME
2 dnl
3 dnl If the compiler recognizes the typename keyword, define HAVE_TYPENAME.
4 dnl
5 dnl @version $Id$
6 dnl @author Luc Maisonobe
7 dnl
8 AC_DEFUN(AC_CXX_TYPENAME,
9 [AC_CACHE_CHECK(whether the compiler recognizes typename,
10 ac_cv_cxx_typename,
11 [AC_LANG_SAVE
12  AC_LANG_CPLUSPLUS
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)
16  AC_LANG_RESTORE
17 ])
18 if test "$ac_cv_cxx_typename" = yes; then
19   AC_DEFINE(HAVE_TYPENAME,,[define if the compiler recognizes typename])
20 fi
21 ])