This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Misleading configure error
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 18 May 2005 14:31:47 +0100
- Subject: [patch] Misleading configure error
[This time with American spelling]
When gcc is configured with --enable-languages=ada on a system that doesn't
have the necessary prerequisites the following error occurs:
"The following requested languages were not found: ada
The available languages are: c,ada,c++,f95,java,objc,treelang"
Which doesn't make any sense at all.
The patch below rephrases this message so that it makes sense both in this
case and when --enable-languages=wibble is specified
Ok?
Paul
2005-05-18 Paul Brook <paul@codesourcery.com>
* configure.in: Rewrite misleading error message.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/configure.in,v
retrieving revision 1.349
diff -u -p -r1.349 configure.in
--- configure.in 5 May 2005 00:59:21 -0000 1.349
+++ configure.in 18 May 2005 13:13:28 -0000
@@ -1231,8 +1231,8 @@ if test -d ${srcdir}/gcc; then
missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
if test "x$missing_languages" != x; then
AC_MSG_ERROR([
-The following requested languages were not found: ${missing_languages}
-The available languages are: ${potential_languages}])
+The following requested languages could not be built: ${missing_languages}
+Recognized languages are: ${potential_languages}])
fi
if test "x$new_enable_languages" != "x$enable_languages"; then