monotone

monotone Mtn Source Tree

Root/m4/gnucxxhashmap.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-07-18
7dnl @license AllPermissive
8
9AC_DEFUN([AC_CXX_GNUCXX_HASHMAP],[
10AC_LANG_ASSERT([C++])
11 AC_CACHE_CHECK(whether the compiler supports __gnu_cxx::hash_map,
12ac_cv_cxx_gnucxx_hashmap,
13[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
14#include <ext/hash_map>
15using __gnu_cxx::hash_map;
16])],
17 [ac_cv_cxx_gnucxx_hashmap=yes],
18 [ac_cv_cxx_gnucxx_hashmap=no])
19])
20if test "$ac_cv_cxx_gnucxx_hashmap" = yes; then
21 AC_DEFINE(HAVE_GNUCXX_HASHMAP, 1,
22 [Define if the compiler supports __gnu_cxx::hash_map.])
23fi
24])

Archive Download this file

Branches

Tags

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