summaryrefslogtreecommitdiffstats
path: root/c++/configure.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-12-10 18:37:44 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-12-10 18:37:44 (GMT)
commitc597c46ae4ab72205cb1fe3f6592e52c1f3c7c5a (patch)
tree5cca243fe637fea263986296db4b25ff121d9868 /c++/configure.in
parent692896a9e73ecff9e77ab5487335d879c7551a91 (diff)
downloadhdf5-c597c46ae4ab72205cb1fe3f6592e52c1f3c7c5a.zip
hdf5-c597c46ae4ab72205cb1fe3f6592e52c1f3c7c5a.tar.gz
hdf5-c597c46ae4ab72205cb1fe3f6592e52c1f3c7c5a.tar.bz2
[svn-r4688]
Purpose: Bug Fix Description & Solution: In the test for "namespace", we needed to include the "iostream" header file to remove errors for strict compilers who need iostream for namespaces. I moved the test for namespace to after the test for "old header filenames" to make sure that I'm #including the correct iostream ("iostream" or "iostream.h"). Platforms tested: Linux
Diffstat (limited to 'c++/configure.in')
-rw-r--r--c++/configure.in35
1 files changed, 21 insertions, 14 deletions
diff --git a/c++/configure.in b/c++/configure.in
index f4bba77..f44afdc 100644
--- a/c++/configure.in
+++ b/c++/configure.in
@@ -1,8 +1,9 @@
dnl ----------------------------------------------------------------------
dnl Process this file with autoconf to produce configure.
dnl
-dnl Copyright (C) 2000 National Center for Supercomputing Applications.
-dnl All rights reserved.
+dnl Copyright (C) 2000, 2001
+dnl National Center for Supercomputing Applications.
+dnl All rights reserved.
dnl ----------------------------------------------------------------------
dnl ----------------------------------------------------------------------
@@ -268,8 +269,26 @@ dnl Checks for compiler characteristics.
dnl
AC_LANG_CPLUSPLUS
+AC_MSG_CHECKING(if $CXX needs old style header files in includes)
+AC_TRY_RUN([
+#include <iostream>
+
+int main(void) { return 0; }
+], [
+ echo no
+], [
+ echo yes
+ CXXFLAGS="${CXXFLAGS} -DOLD_HEADER_FILENAME"
+])
+
AC_MSG_CHECKING(if $CXX can handle namespaces)
AC_TRY_RUN([
+#ifdef OLD_HEADER_FILENAME
+#include <iostream.h>
+#else
+#include <iostream>
+#endif
+
using namespace std;
namespace H5 {
@@ -288,18 +307,6 @@ int main(void) {
CXXFLAGS="${CXXFLAGS} -DH5_NO_NAMESPACE"
])
-AC_MSG_CHECKING(if $CXX needs old style header files in includes)
-AC_TRY_RUN([
-#include <iostream>
-
-int main(void) { return 0; }
-], [
- echo no
-], [
- echo yes
- CXXFLAGS="${CXXFLAGS} -DOLD_HEADER_FILENAME"
-])
-
AC_MSG_CHECKING(if $CXX supports bool types)
AC_TRY_RUN([
int main(void) {