This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH[cvs-20000815]: Fix test for libstdc++ version number
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH[cvs-20000815]: Fix test for libstdc++ version number
- From: Manfred Hollstein <manfredh at redhat dot com>
- Date: Wed, 16 Aug 2000 12:40:15 +0200 (MEST)
- Reply-To: Manfred Hollstein <manfred dot h at gmx dot net>
Hi there,
gcc's test for which version of libstdc++ will be used is broken.
Suppose you want to disable the new v3 by passing
`--disable-libstdcxx-v3' on the command line; each configure script
generated by autoconf translates this into
`--enable-libstdcxx-v3=no'. The current test in gcc's configure script
however assumes that "if $enable_libstdcxx_v3 is set, we're gonna use
it", which is wrong. The attached patch fixes this.
OK to install?
Cheers.
l8er
manfred
2000-08-16 Manfred Hollstein <manfredh@redhat.com>
* configure.in (libstdcxx-v3): Fix test.
* configure: Regenerate.
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-20000815.orig/gcc/configure.in egcs-20000815/gcc/configure.in
--- egcs-20000815.orig/gcc/configure.in Tue Aug 15 16:40:54 2000
+++ egcs-20000815/gcc/configure.in Wed Aug 16 12:21:19 2000
@@ -4790,7 +4790,7 @@ AC_MSG_CHECKING([for libstdc++ to instal
AC_ARG_ENABLE(libstdcxx-v3,
[ --enable-libstdcxx-v3
enable libstdc++-v3 for building and installation],
- [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
+ [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
if test x$enable_libstdcxx_v3 = xyes; then
AC_MSG_RESULT(v3)