Standard C++ header files don't have .h in their name: #include <iostream>
rather than #include <iostream.h>. Also reference cout as std::cout in the test program. svn path=/trunk/; revision=50206
This commit is contained in:
parent
9a09ef907a
commit
8c826964bf
|
@ -1078,16 +1078,16 @@ if test "x$enable_wireshark" = "xyes"; then
|
|||
# the C++ compiler.
|
||||
#
|
||||
# So we check by feeding the purported C++ compiler a
|
||||
# program using C++ features (iostream.h).
|
||||
# program using C++ features (iostream).
|
||||
#
|
||||
AC_MSG_CHECKING(whether we have a working C++ compiler)
|
||||
AC_LANG_PUSH([C++])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
[
|
||||
#include <iostream.h>
|
||||
#include <iostream>
|
||||
],
|
||||
[
|
||||
cout << "Hello World! ";
|
||||
std::cout << "Hello World! ";
|
||||
return 0;
|
||||
])],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
|
|
Loading…
Reference in New Issue