aboutsummaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2001-05-30 15:35:50 +0000
committerRob Savoye <rob@welcomehome.org>2001-05-30 15:35:50 +0000
commit682f43d2645995ccfef6c84beaf7f1aea69d1875 (patch)
treedabde2872c7fb3f7c7b10321bbcf4dc9765b63f0 /aclocal.m4
parent4330bafff46c45742dc65b79a7e06196f0d89336 (diff)
downloaddejagnu-682f43d2645995ccfef6c84beaf7f1aea69d1875.zip
dejagnu-682f43d2645995ccfef6c84beaf7f1aea69d1875.tar.gz
dejagnu-682f43d2645995ccfef6c84beaf7f1aea69d1875.tar.bz2
* acinclude.m4(DJ_AC_STL): Also use
AC_LANG_CPLUSPLUS so we build this test case with G++. * aclocal.m4, configure: Regenerated. * dejagnu.h: Don't use testout(), have each method print the array value directly, which is much simpler. * acinclude.m4(DJ_AC_STL): s/for for/for/. * dejagnu.h: Add conditional support for sstream. (testout): Likewise. Make return type `const'.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index f5b577e..f6571f5 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -11,8 +11,9 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
AC_DEFUN(DJ_AC_STL, [
-AC_MSG_CHECKING(for for STL versions)
+AC_MSG_CHECKING(for STL versions)
AC_CACHE_VAL(ac_cv_stl,[
+ AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([#include <iostream>], [
using namespace std;
char bbuuff[5120];
@@ -23,6 +24,7 @@ AC_CACHE_VAL(ac_cv_stl,[
),
])
+AC_LANG_C
if test x"${ac_cv_stl}" != x"v2" ; then
AC_MSG_RESULT(v3)
AC_DEFINE(HAVE_STL3)