This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building with --enable-languages problematic


On Tue, Oct 09, 2001 at 08:06:38PM +0200, Daniel Egger wrote:
> Am Die, 2001-10-09 um 21.30 schrieb 1002655807:
> 
> > Try --enable-languages="c,c++";
> 
> Will do, thanks. Though I remember that the config.status failed
> sometimes even without my intervention with exactly the same problem, so
> maybe a fix would be wise nevertheless.

Something like the completely untested patch, appended?


> > I think that's how it's documented to work.
> 
> DOH, indeed. Though mentioning that in install.texi is a bit late
> for someone bootstrapping the first compiler...

*cough* online web docs *cough*  :-)



Index: configure.in
===================================================================
RCS file: /home/pme/Repositories/GCC/gcc/configure.in,v
retrieving revision 1.110
diff -u -3 -p -r1.110 configure.in
--- configure.in	27 Sep 2001 18:01:15 -0000	1.110
+++ configure.in	9 Oct 2001 20:25:12 -0000
@@ -1037,6 +1037,15 @@ else
 	if test x"${enable_languages}" = x; then
 		echo configure.in: --enable-languages needs at least one argument 1>&2
 		exit 1
+	else
+		case "${enable_languages}" in
+		  # embedded tab -- do not untabify
+		  "*[ 	]*") echo configure.in: --enable-languages arguments are not whitespace-separated 1>&2
+		             exit 1
+			     ;;
+		  *)
+			     ;;
+		esac
 	fi
 fi
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]