Standard C++ header files don't have .h in their name: #include <iostream>
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 28 Jun 2013 12:18:03 +0000 (12:18 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 28 Jun 2013 12:18:03 +0000 (12:18 -0000)
rather than #include <iostream.h>.

Also reference cout as std::cout in the test program.

svn path=/trunk/; revision=50206

configure.ac

index f81854c4db7a454bf46ac18b4fa64e56488bc7d6..67b6123636e09de33a84cf9a270fd05287fb9e13 100644 (file)
@@ -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)],