This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to pre-select languages to be build
- To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
- Subject: Re: PATCH to pre-select languages to be build
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 30 Sep 1998 13:14:00 -0600
- cc: burley at gnu dot org, jbuck at synopsys dot com, pfeifer at dbai dot tuwien dot ac dot at, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <13842.2446.855496.247677@slsvhmt>you write:
> Well, I could implement this in addition, too. But there's a problem
> with this approach: let's suppose Craig wants to build the C and the
> F77 (only! no c++ ...) compilers, hence he wants to disable c++ (note,
> this name is used for $(LANGUAGES)!); thus he adds `--disable-c++' to
> his configure command. I guess you know the result:
>
> >From the toplevel configure file:
>
> sh: enable_c++=no: command not found
>
> and inside the gcc subdirectory:
>
> configure: error: c++: invalid feature name
>
> This is caused by `c++' not being a valid shell variable name. OK, we
> can hack our toplevel configure script replacing '+' with 'x', but we
> would have to do this for autoconf, too, and I believe this might be
> hard to get a fixed autoconf in time... . Another solution might be
> to use different name, i.e. `--disable-cxx', but then we'd have to
> use "c++" for $(LANGUAGES) and "cxx" for the --enable-/--disable-
> stuff :-(
Ugh. I'd almost prefer to replace + with x as needed. The code is really
simpler than your approach.
> My argument concerning new compilers in a new tarball still stands,
> too. The average test user gets a new egcs-x.y.tar.gz file, untars
> it, and calls his usual build script/comand, e.g.
By default we should build all languages. The user must explicitly specify
that they do not want particular languages. I think we've agreed on that.
jeff