Commit be5aeb60 by Mark Mitchell Committed by Mark Mitchell

Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.

	* Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
	* configure.in (enable-libstdcxx-v3): Arrange to have
	HAVE_LIBSTDCXX_V3 substituted into the output files.

	* lib/g++.exp (g++_include_flags): Trust HAVE_LIBSTDCXX_V3
	to tell us whether or not we are using V3.

	* Makefile.in (check): Don't make mkcheck executable.
	(check-install): Likewise.
	* configure.in (AC_OUTPUT): Make mkcheck executable.
	* mkcheck.in (top_srcdir): New variable.
	(INC_PATH): Set the path to the backward and ext directories
	correctly.

From-SVN: r37068
parent 5f9cd837
2000-10-25 Mark Mitchell <mark@codesourcery.com>
* Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
* configure.in (enable-libstdcxx-v3): Arrange to have
HAVE_LIBSTDCXX_V3 substituted into the output files.
2000-10-25 Richard Henderson <rth@redhat.com> 2000-10-25 Richard Henderson <rth@redhat.com>
* recog.c (constrain_operands): Initialize which_alternative * recog.c (constrain_operands): Initialize which_alternative
......
...@@ -2593,6 +2593,7 @@ site.exp: ./config.status Makefile ...@@ -2593,6 +2593,7 @@ site.exp: ./config.status Makefile
# CFLAGS is set even though it's empty to show we reserve the right to set it. # CFLAGS is set even though it's empty to show we reserve the right to set it.
@echo "set CFLAGS \"\"" >> ./tmp0 @echo "set CFLAGS \"\"" >> ./tmp0
@echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0 @echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0
@echo "set HAVE_LIBSTDCXX_V3 @HAVE_LIBSTDCXX_V3@" >> ./tmp0
# If newlib has been configured, we need to pass -B to gcc so it can find # If newlib has been configured, we need to pass -B to gcc so it can find
# newlib's crt0.o if it exists. This will cause a "path prefix not used" # newlib's crt0.o if it exists. This will cause a "path prefix not used"
# message if it doesn't, but the testsuite is supposed to ignore the message - # message if it doesn't, but the testsuite is supposed to ignore the message -
......
...@@ -1575,7 +1575,7 @@ esac ...@@ -1575,7 +1575,7 @@ esac
# Find some useful tools # Find some useful tools
for ac_prog in mawk gawk nawk awk for ac_prog in gawk mawk nawk awk
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
...@@ -9522,9 +9522,11 @@ fi ...@@ -9522,9 +9522,11 @@ fi
if test x$enable_libstdcxx_v3 = xyes; then if test x$enable_libstdcxx_v3 = xyes; then
echo "$ac_t""v3" 1>&6 echo "$ac_t""v3" 1>&6
HAVE_LIBSTDCXX_V3=1
ac_esn=1 ac_esn=1
else else
echo "$ac_t""v2" 1>&6 echo "$ac_t""v2" 1>&6
HAVE_LIBSTDCXX_V3=0
ac_esn=0 ac_esn=0
fi fi
cat >> confdefs.h <<EOF cat >> confdefs.h <<EOF
...@@ -9533,8 +9535,9 @@ EOF ...@@ -9533,8 +9535,9 @@ EOF
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo "configure:9538: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo "configure:9541: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then if test "${enable_maintainer_mode+set}" = set; then
enableval="$enable_maintainer_mode" enableval="$enable_maintainer_mode"
...@@ -10033,6 +10036,7 @@ s%@GGC@%$GGC%g ...@@ -10033,6 +10036,7 @@ s%@GGC@%$GGC%g
s%@zlibdir@%$zlibdir%g s%@zlibdir@%$zlibdir%g
s%@zlibinc@%$zlibinc%g s%@zlibinc@%$zlibinc%g
s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
s%@MAINT@%$MAINT%g s%@MAINT@%$MAINT%g
s%@build_canonical@%$build_canonical%g s%@build_canonical@%$build_canonical%g
s%@host_canonical@%$host_canonical%g s%@host_canonical@%$host_canonical%g
......
...@@ -4907,13 +4907,16 @@ AC_ARG_ENABLE(libstdcxx-v3, ...@@ -4907,13 +4907,16 @@ AC_ARG_ENABLE(libstdcxx-v3,
if test x$enable_libstdcxx_v3 = xyes; then if test x$enable_libstdcxx_v3 = xyes; then
AC_MSG_RESULT(v3) AC_MSG_RESULT(v3)
HAVE_LIBSTDCXX_V3=1
ac_esn=1 ac_esn=1
else else
AC_MSG_RESULT(v2) AC_MSG_RESULT(v2)
HAVE_LIBSTDCXX_V3=0
ac_esn=0 ac_esn=0
fi fi
AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn, AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
[Define to 1 if you want to enable namespaces (-fhonor-std) by default.]) [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
AC_SUBST(HAVE_LIBSTDCXX_V3)
dnl Very limited version of automake's enable-maintainer-mode dnl Very limited version of automake's enable-maintainer-mode
......
2000-10-25 Mark Mitchell <mark@codesourcery.com>
* lib/g++.exp (g++_include_flags): Trust HAVE_LIBSTDCXX_V3
to tell us whether or not we are using V3.
2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com> 2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
* g++.old-deja/g++.pt/memtemp77.C (main): Adjust comparaison * g++.old-deja/g++.pt/memtemp77.C (main): Adjust comparaison
......
...@@ -68,30 +68,29 @@ proc g++_version { } { ...@@ -68,30 +68,29 @@ proc g++_version { } {
# #
proc g++_include_flags { args } { proc g++_include_flags { args } {
global srcdir global srcdir
global HAVE_LIBSTDCXX_V3
set flags ""
if [is_remote host] { if [is_remote host] {
return "" return "${flags}"
} }
set gccpath [get_multilibs]
set libio_dir ""
set flags ""
set dir [lookfor_file ${srcdir} libg++] set dir [lookfor_file ${srcdir} libg++]
if { ${dir} != "" } { if { ${dir} != "" } {
append flags "-I${dir} -I${dir}/src " append flags "-I${dir} -I${dir}/src "
} }
set odir_v2 [lookfor_file ${gccpath} libstdc++]
set sdir_v2 [lookfor_file ${srcdir} libstdc++] set gccpath [get_multilibs]
if { ${odir_v2} != "" } {
append flags "-I${sdir_v2} -I${sdir_v2}/stl " if { ${HAVE_LIBSTDCXX_V3} } {
} else {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3] set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
set sdir_v3 [lookfor_file ${srcdir} libstdc++-v3] set sdir_v3 [lookfor_file ${srcdir} libstdc++-v3]
if { ${odir_v3} != "" } { append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}]
append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}] } else {
} set odir_v2 [lookfor_file ${gccpath} libstdc++]
# else we're probably testing an already-installed GCC. set sdir_v2 [lookfor_file ${srcdir} libstdc++]
append flags "-I${sdir_v2} -I${sdir_v2}/stl "
} }
return "$flags" return "$flags"
......
2000-10-25 Mark Mitchell <mark@codesourcery.com>
* Makefile.in (check): Don't make mkcheck executable.
(check-install): Likewise.
* configure.in (AC_OUTPUT): Make mkcheck executable.
* mkcheck.in (top_srcdir): New variable.
(INC_PATH): Set the path to the backward and ext directories
correctly.
2000-10-25 Phil Edwards <pme@sources.redhat.com> 2000-10-25 Phil Edwards <pme@sources.redhat.com>
* configure.in: Check for gconv.h. * configure.in: Check for gconv.h.
......
# Makefile.in generated automatically by automake 1.4 from Makefile.am # Makefile.in generated automatically by automake 1.4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # Copyright (C) 1994, 1995-8, 1999, 2000 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation # This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
...@@ -407,11 +407,9 @@ mostlyclean distclean maintainer-clean ...@@ -407,11 +407,9 @@ mostlyclean distclean maintainer-clean
# because then the paths will be full pathnames, not relative # because then the paths will be full pathnames, not relative
# pathnames. (-Wl,--rpath seems to like this better.) # pathnames. (-Wl,--rpath seems to like this better.)
check: $(top_builddir)/mkcheck check: $(top_builddir)/mkcheck
chmod +x $(top_builddir)/mkcheck
$(top_builddir)/mkcheck 0 `pwd` $(top_srcdir) $(top_builddir)/mkcheck 0 `pwd` $(top_srcdir)
check-install: $(top_builddir)/mkcheck check-install: $(top_builddir)/mkcheck
chmod +x $(top_builddir)/mkcheck
$(top_builddir)/mkcheck 1 `pwd` $(top_srcdir) $(prefix) $(top_builddir)/mkcheck 1 `pwd` $(top_srcdir) $(prefix)
# Multilib Makefile bits. # Multilib Makefile bits.
......
dnl aclocal.m4 generated automatically by aclocal 1.4 dnl aclocal.m4 generated automatically by aclocal 1.4
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl Copyright (C) 1994, 1995-8, 1999, 2000 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it, dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved. dnl with or without modifications, as long as this notice is preserved.
......
...@@ -19327,6 +19327,8 @@ if test -n "$CONFIG_FILES"; then ...@@ -19327,6 +19327,8 @@ if test -n "$CONFIG_FILES"; then
ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
grep '^MULTISUBDIR =' Makefile >> src/Makefile grep '^MULTISUBDIR =' Makefile >> src/Makefile
fi fi
chmod +x mkcheck
exit 0 exit 0
EOF EOF
chmod +x $CONFIG_STATUS chmod +x $CONFIG_STATUS
......
...@@ -223,7 +223,9 @@ AC_OUTPUT(mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc+ ...@@ -223,7 +223,9 @@ AC_OUTPUT(mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc+
[if test -n "$CONFIG_FILES"; then [if test -n "$CONFIG_FILES"; then
ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
grep '^MULTISUBDIR =' Makefile >> src/Makefile grep '^MULTISUBDIR =' Makefile >> src/Makefile
fi], fi
chmod +x mkcheck
],
srcdir=${srcdir} srcdir=${srcdir}
host=${host} host=${host}
target=${target} target=${target}
......
...@@ -54,6 +54,7 @@ if [ $WHICH -eq 1 ]; then ...@@ -54,6 +54,7 @@ if [ $WHICH -eq 1 ]; then
fi fi
# INC_PATH == include path to new headers for use on gcc command-line # INC_PATH == include path to new headers for use on gcc command-line
top_srcdir=@top_srcdir@
C_DIR="`basename @C_INCLUDE_DIR@`" C_DIR="`basename @C_INCLUDE_DIR@`"
if [ $WHICH != "1" ]; then if [ $WHICH != "1" ]; then
INC_PATH="@CSHADOW_FLAGS@ -I$BUILD_DIR -I$BUILD_DIR/libio \ INC_PATH="@CSHADOW_FLAGS@ -I$BUILD_DIR -I$BUILD_DIR/libio \
...@@ -65,7 +66,7 @@ elif [ $WHICH -eq 1 ]; then ...@@ -65,7 +66,7 @@ elif [ $WHICH -eq 1 ]; then
fi fi
if [ $WHICH -eq 2 ]; then if [ $WHICH -eq 2 ]; then
echo $INC_PATH -I$SRC_DIR/backward -I$SRC_DIR/ext echo $INC_PATH -I$SRC_DIR/include/backward -I$SRC_DIR/include/ext
exit 0; exit 0;
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment