Commit 89279d98 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Do use of tr1::unordered_map with G++ 4.0.0.

* m4/stl.m4 (AC_HEADER_TR1_UNORDERED_MAP): Add some code so
we don't pick a broken tr1::unordered_map.
parent 253e38ae
2012-01-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Do use of tr1::unordered_map with G++ 4.0.0.
* m4/stl.m4 (AC_HEADER_TR1_UNORDERED_MAP): Add some code so
we don't pick a broken tr1::unordered_map.
2012-01-06 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* lrde-upload.sh: Retrieve the package version from configure.ac.
......
......@@ -23,7 +23,11 @@ AC_DEFUN([AC_HEADER_TR1_UNORDERED_MAP], [
AC_LANG_CPLUSPLUS
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -Werror"
AC_TRY_COMPILE([#include <tr1/unordered_map>], [using std::tr1::unordered_map;],
# GCC 4.0.0 has tr1/unordered_map, but it fails to compile the following code
AC_TRY_COMPILE([#include <tr1/unordered_map>],
[using std::tr1::unordered_map;
const unordered_map<int, int> t;
return t.find(42) == t.end();],
[ac_cv_cxx_tr1_unordered_map=yes], [ac_cv_cxx_tr1_unordered_map=no])
CXXFLAGS="$ac_save_CXXFLAGS"
AC_LANG_RESTORE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment