]> git.saurik.com Git - bison.git/blobdiff - m4/cxx.m4
Fix some "make check" problems with Tru64 C++.
[bison.git] / m4 / cxx.m4
index 1d17e8361c10fbc32504f5a5be28cc6abf67b5ea..4394b049ed1dbeaa3ce1e8cadee69e53c91c0e71 100644 (file)
--- a/m4/cxx.m4
+++ b/m4/cxx.m4
@@ -29,7 +29,8 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_CXX_COMPILER],
       [AC_LANG_PROGRAM(
         [#include <iostream>
          using namespace std;],
       [AC_LANG_PROGRAM(
         [#include <iostream>
          using namespace std;],
-         [cout << "";])],
+         [std::cerr << "";
+          cout << "";])],
       [bison_cv_cxx_works=yes],
       [bison_cv_cxx_works=no],
       [bison_cv_cxx_works=cross])
       [bison_cv_cxx_works=yes],
       [bison_cv_cxx_works=no],
       [bison_cv_cxx_works=cross])