This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A libstdc++ patch
- To: egcs at cygnus dot com
- Subject: A libstdc++ patch
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 12 Jan 1998 08:59:07 -0800 (PST)
I am using the same libstdc++ in libg++. The enclosed patch allows
"make check" to finish when the gcc directory doesn't exist.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Fri Jan 9 17:48:32 1999 H.J. Lu (hjl@gnu.org)
* configure.in (configdirs): Include testsuite only if
${srcdir}/../gcc exists.
* tests/configure.in (check): Set to ${CHECK} if
${srcdir}/../../gcc doesn't exists.
Index: configure.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libstdc++/configure.in,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 configure.in
--- configure.in 1997/11/06 16:57:23 1.1.1.3
+++ configure.in 1998/01/10 02:56:17
@@ -2,7 +2,11 @@
# necessary for a configure script to process the program in
# this directory. For more information, look at ../configure.
-configdirs="tests testsuite"
+if [ -d ${srcdir}/../gcc ] ; then
+ configdirs="tests testsuite"
+else
+ configdirs="tests"
+fi
srctrigger=sinst.cc
srcname="ANSI C++ library"
package_makefile_frag=Make.pack
Index: tests/configure.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libstdc++/tests/configure.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 configure.in
--- configure.in 1997/08/26 00:21:29 1.1.1.1
+++ configure.in 1998/01/10 03:02:46
@@ -43,8 +43,13 @@
echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile
CHECK="${CHECK} check-${TEST}"
done
-echo "
+if [ -d ${srcdir}/../../gcc ] ; then
+ echo "
check:
check-old: ${CHECK}" >>Makefile
+else
+ echo "
+check: ${CHECK}" >>Makefile
+fi