mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check that
'#include <map>' works and that you can apply ++ to iterators.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2006-02-02 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
More portability fixes for problems summarized by Nelson H. F. Beebe.
|
||||||
|
|
||||||
|
* m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check that
|
||||||
|
'#include <map>' works and that you can apply ++ to iterators.
|
||||||
|
|
||||||
2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
|
2006-02-01 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
Work around portability problems summarized by Nelson H. F. Beebe in
|
Work around portability problems summarized by Nelson H. F. Beebe in
|
||||||
|
|||||||
10
m4/cxx.m4
10
m4/cxx.m4
@@ -29,10 +29,18 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_CXX_COMPILER],
|
|||||||
[AC_LANG_PROGRAM(
|
[AC_LANG_PROGRAM(
|
||||||
[#include <cstdlib>
|
[#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
using namespace std;],
|
using namespace std;],
|
||||||
[std::cerr << "";
|
[std::cerr << "";
|
||||||
cout << "";])],
|
cout << "";
|
||||||
|
typedef std::pair<unsigned int, int> uipair;
|
||||||
|
std::map<unsigned int, int> m;
|
||||||
|
std::map<unsigned int, int>::iterator i;
|
||||||
|
m.insert (uipair (4, -4));
|
||||||
|
for (i = m.begin (); i != m.end (); ++i)
|
||||||
|
if (i->first != 4)
|
||||||
|
return 1;])],
|
||||||
[bison_cv_cxx_works=yes],
|
[bison_cv_cxx_works=yes],
|
||||||
[bison_cv_cxx_works=no],
|
[bison_cv_cxx_works=no],
|
||||||
[bison_cv_cxx_works=cross])
|
[bison_cv_cxx_works=cross])
|
||||||
|
|||||||
Reference in New Issue
Block a user