monotone

monotone Mtn Source Tree

Root/m4/typeof.m4

1dnl @synopsis AC_CXX_GNUCXX_HASHMAP
2dnl
3dnl tests for the presence of the gcc hashmap stl extension
4dnl
5dnl @author Patrick Mauritz <oxygene@studentenbude.ath.cx>
6dnl @version 2005-08-15
7dnl @license AllPermissive
8
9AC_DEFUN([AC_CXX_TYPEOF],[
10AC_LANG_ASSERT([C++])
11AC_CACHE_CHECK(whether the compiler supports typeof,
12ac_cv_cxx_typeof,
13[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ int x; typeof (x) y[6]; ]])],
14 [ac_cv_cxx_typeof=yes],
15 [ac_cv_cxx_typeof=no])
16])
17if test "$ac_cv_cxx_typeof" = yes; then
18 AC_DEFINE(HAVE_TYPEOF, 1, [Define if the compiler supports typeof.])
19fi
20])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status