Don't rely on the g++ version to include tr1/unordered_map and co.

The previous setup failed with clang++ 3.0.

* m4/stl.m4: New file.
* configure.ac: Call AC_HEADER_UNORDERED_MAP,
AC_HEADER_TR1_UNORDERED_MAP, and AC_HEADER_EXT_HASH_MAP.
* src/misc/hash.hh: Include _config.h, and used the
SPOT_HAVE_UNORDERED_MAP, SPOT_HAVE_TR1_UNORDERED_MAP,
or SPOT_HAVE_EXT_HASH_MAP defines to decide which
file to include.
This commit is contained in:
Alexandre Duret-Lutz 2011-12-14 16:51:35 +01:00
parent a804c88e1b
commit 9679032510
4 changed files with 105 additions and 27 deletions

View file

@ -46,6 +46,10 @@ AC_PROG_YACC
AC_LANG(C++)
AC_HEADER_UNORDERED_MAP
AC_HEADER_TR1_UNORDERED_MAP
AC_HEADER_EXT_HASH_MAP
AX_CHECK_BUDDY
AX_CHECK_LBTT
AX_CHECK_GSPNLIB