aboutsummaryrefslogtreecommitdiff
path: root/configure
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 /configure
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 'configure')
-rwxr-xr-xconfigure26
1 files changed, 20 insertions, 6 deletions
diff --git a/configure b/configure
index c780689..48ec40b 100755
--- a/configure
+++ b/configure
@@ -1784,14 +1784,21 @@ TCLSH="${ac_cv_path_tclsh}"
-echo $ac_n "checking for for STL versions""... $ac_c" 1>&6
-echo "configure:1789: checking for for STL versions" >&5
+echo $ac_n "checking for STL versions""... $ac_c" 1>&6
+echo "configure:1789: checking for STL versions" >&5
if eval "test \"`echo '$''{'ac_cv_stl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
+ ac_ext=C
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cxx_cross
+
cat > conftest.$ac_ext <<EOF
-#line 1795 "configure"
+#line 1802 "configure"
#include "confdefs.h"
#include <iostream>
int main() {
@@ -1801,7 +1808,7 @@ int main() {
cout.rdbuf()->pubsetbuf(bbuuff, 5120);
; return 0; }
EOF
-if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_stl=v3
@@ -1817,6 +1824,13 @@ rm -f conftest*,
fi
+ac_ext=c
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
+
if test x"${ac_cv_stl}" != x"v2" ; then
echo "$ac_t""v3" 1>&6
cat >> confdefs.h <<\EOF
@@ -1950,7 +1964,7 @@ ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "Makefile doc/Makefile testsuite/Makefile example/Makefile
-testsuite/libdejagnu/Makefile unitparse/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+testsuite/libdejagnu/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@@ -2052,7 +2066,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile testsuite/Makefile example/Makefile
-testsuite/libdejagnu/Makefile unitparse/Makefile"}
+testsuite/libdejagnu/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then