* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 11:08 Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
` (5 more replies)
0 siblings, 6 replies; 74+ messages in thread
From: Nathanael Nerode @ 2002-12-05 11:08 UTC (permalink / raw)
To: klee, gdb-patches; +Cc: binutils, newlib, gcc
>1. Please make sure to coordinate with Nathanael Nerode, who is in the
>middle of extensive autoconf-related work in the GCC repository.
I really would like to see the tree using autoconf 2.5x as soon as
possible; if this can be done before I autoconfiscate the top level
(which is not autoconfiscated yet) it will save me an awful lot of
trouble, since I can then use autoconf 2.5x for that autoconfiscation.
:-/
Your patch as is updates
bfd binutils gas gdb gprof ld mmalloc opcodes rda sim utils
Can you please work up a patch for gcc 3.4 to update
boehm-gc fastjar gcc libf2c libffi libiberty libjava libobjc
libstdc++-v3 zlib
And a patch for Insight
itcl libgui
And one for Dejagnu
dejagnu expect
And for Newlib & Cygwin
libgloss newlib winsup
And one for
sid
and one for
intl
--
However, I think that it's OK to update one directory at a time,
provided we specify clearly what's going on, and get it all done before
the next release of anything.
Accordingly, I suggest getting clean patches for small sets of
directories, making sure they work, getting them reviewed, and then
putting them in; and then starting on the next set. Keep sending update
notices to the various lists regarding which directories use the 'new'
tools and which use the 'old'. If you can make scripts which work
correctly under *both* autoconf 2.5x *and* autoconf 2.13, by all means
do so *first*, and mark those scripts as "compatibile with both", of
course; but I expect that will only happen for the simplest directories.
If this is acceptable to other people in the various groups of course.
I expect this will generate a certain amount of breakage, but then so
did my changes. In both cases, it needs to be done, we just have to
make sure all the breakage gets fixed.
--Nathanael
P.S.
It was mentioned that autoconf2.5 scripts will have trouble with
building because of the top level passing down --target unconditionally.
Unfortunately I think some other aspects of the configure scripts
require --target to be passed down unconditionally. :-/ Otherwise I'd
just change it.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
@ 2002-12-05 11:31 ` Andrew Cagney
2002-12-05 13:31 ` Zack Weinberg
` (4 subsequent siblings)
5 siblings, 0 replies; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 11:31 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: klee, gdb-patches, binutils, newlib, gcc
> I really would like to see the tree using autoconf 2.5x as soon as
> possible; if this can be done before I autoconfiscate the top level
> (which is not autoconfiscated yet) it will save me an awful lot of
> trouble, since I can then use autoconf 2.5x for that autoconfiscation.
> :-/
>
> Your patch as is updates
> bfd binutils gas gdb gprof ld mmalloc opcodes rda sim utils
>
> Can you please work up a patch for gcc 3.4 to update
> boehm-gc fastjar gcc libf2c libffi libiberty libjava libobjc
> libstdc++-v3 zlib
Just a step back here. Some of the directories listed below belong to
the FSF, but some don't. I don't think anyone can be asking Klee to
update non FSF code. That's why I asked Klee to drop RDA from the
original list.
> And a patch for Insight
> itcl libgui
>
> And one for Dejagnu
> dejagnu expect
> And for Newlib & Cygwin
> libgloss newlib winsup
>
> And one for
> sid
>
> and one for
> intl
>
> --
> However, I think that it's OK to update one directory at a time,
> provided we specify clearly what's going on, and get it all done before
> the next release of anything.
I don't think we can guarentee that, but I think we can live with the
consequences :-/
> Accordingly, I suggest getting clean patches for small sets of
> directories, making sure they work, getting them reviewed, and then
> putting them in; and then starting on the next set. Keep sending update
> notices to the various lists regarding which directories use the 'new'
> tools and which use the 'old'. If you can make scripts which work
> correctly under *both* autoconf 2.5x *and* autoconf 2.13, by all means
> do so *first*, and mark those scripts as "compatibile with both", of
> course; but I expect that will only happen for the simplest directories.
>
> If this is acceptable to other people in the various groups of course.
>
> I expect this will generate a certain amount of breakage, but then so
> did my changes. In both cases, it needs to be done, we just have to
> make sure all the breakage gets fixed.
Andrew
> --Nathanael
>
> P.S.
> It was mentioned that autoconf2.5 scripts will have trouble with
> building because of the top level passing down --target unconditionally.
>
> Unfortunately I think some other aspects of the configure scripts
> require --target to be passed down unconditionally. :-/ Otherwise I'd
> just change it.
>
>
>
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
@ 2002-12-05 13:31 ` Zack Weinberg
2002-12-05 14:36 ` Alan Modra
2002-12-05 14:29 ` Christopher Faylor
` (3 subsequent siblings)
5 siblings, 1 reply; 74+ messages in thread
From: Zack Weinberg @ 2002-12-05 13:31 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: klee, gdb-patches, binutils, newlib, gcc
Nathanael Nerode <neroden@twcny.rr.com> writes:
> Accordingly, I suggest getting clean patches for small sets of
> directories, making sure they work, getting them reviewed, and then
> putting them in; and then starting on the next set. Keep sending update
> notices to the various lists regarding which directories use the 'new'
> tools and which use the 'old'. If you can make scripts which work
> correctly under *both* autoconf 2.5x *and* autoconf 2.13, by all means
> do so *first*, and mark those scripts as "compatibile with both", of
> course; but I expect that will only happen for the simplest directories.
I'd like to remind everyone involved that last I checked it was flat
impossible to do what libstdc++-v3/configure.in needs to do, using
autoconf 2.5x. I am not particularly sanguine about the situation
having changed, since it involved the undocumented AC_NO_EXECUTABLES
macro that as far as I know nobody but us has a use for -- and we're
not using it, because it doesn't do what we need it to do. Until that
is resolved, which will involve submitting patches to autoconf,
getting them accepted upstream, and waiting for a release, gcc
*cannot* move to autoconf 2.5x. We are not being stick-in-the-muds
because we want to.
(Please, I beg of you, prove me wrong about this problem.)
I am concerned about the prospect of having the src repository update
to 2.5x while the gcc repository is still stuck with 2.13. Having
different parts of the combined tree need different versions of
autotools is a recipe for disaster.
But I do see a way forward. It goes like this. One directory at a
time, we go through and do whatever it takes to get that directory's
configure.in to work properly with both 2.13 and 2.5x, independent of
what version of autoconf was used to generate configure in other
directories. This may involve submitting patches to the autoconf
maintainers. Whoever volunteers to do this must be willing to
maintain these scripts in that state indefinitely -- I did it for the
gcc subdirectory a year or so ago and I discovered a couple weeks back
that it had mysteriously broken.
Once the entire tree makes it into this state, we have a flag day
where we bump AC_PREREQ and regenerate everything. And only then can
we start using 2.5x specific features in configure scripts.
As for libtool and automake, my suggestion is, as usual, that both
should be eradicated from the face of the Earth; as this proposal is
probably a non-starter, I decline to discuss what to do with them any
further.
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
2002-12-05 13:31 ` Zack Weinberg
@ 2002-12-05 14:29 ` Christopher Faylor
2002-12-06 6:45 ` Maciej W. Rozycki
` (2 subsequent siblings)
5 siblings, 0 replies; 74+ messages in thread
From: Christopher Faylor @ 2002-12-05 14:29 UTC (permalink / raw)
To: gdb-patches, binutils, newlib, gcc
On Thu, Dec 05, 2002 at 02:07:28PM -0500, Nathanael Nerode wrote:
>Can you please work up a patch for gcc 3.4 to update
>boehm-gc fastjar gcc libf2c libffi libiberty libjava libobjc
>libstdc++-v3 zlib
>
>And a patch for Insight
>itcl libgui
>
>And one for Dejagnu
>dejagnu expect
>
>And for Newlib & Cygwin
>libgloss newlib winsup
Remember that any changes to configury in newlib or cygwin *require
approval*. Please don't just check in changes in these directories.
CVS commit permission in gdb or binutils does not imply permission for
cygwin, newlib, or most of the other directories in the 'src'
repository.
cgf
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 13:31 ` Zack Weinberg
@ 2002-12-05 14:36 ` Alan Modra
2002-12-05 14:56 ` Ian Lance Taylor
0 siblings, 1 reply; 74+ messages in thread
From: Alan Modra @ 2002-12-05 14:36 UTC (permalink / raw)
To: Zack Weinberg; +Cc: Nathanael Nerode, klee, gdb-patches, binutils, newlib, gcc
On Thu, Dec 05, 2002 at 01:31:52PM -0800, Zack Weinberg wrote:
> But I do see a way forward. It goes like this. One directory at a
> time, we go through and do whatever it takes to get that directory's
> configure.in to work properly with both 2.13 and 2.5x, independent of
> what version of autoconf was used to generate configure in other
> directories. This may involve submitting patches to the autoconf
> maintainers. Whoever volunteers to do this must be willing to
> maintain these scripts in that state indefinitely -- I did it for the
> gcc subdirectory a year or so ago and I discovered a couple weeks back
> that it had mysteriously broken.
I'm concerned that this proposal may be raising the bar too high.
How long has it been since some poor fool^H^H^H^H^H^H^H^H^Hbrave soul
attempted to modernize binutils configury?
It seems that the major impact of configuring parts of a tree using
different autoconf versions will be on people using
--enable-maintainer-mode, so another solution might be to extend
--enable-maintainer-mode to accept a list of directories. I suspect
most developers will only want --enable-maintainer-mode in the
particular area they work on.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 14:36 ` Alan Modra
@ 2002-12-05 14:56 ` Ian Lance Taylor
2002-12-05 15:22 ` Alan Modra
0 siblings, 1 reply; 74+ messages in thread
From: Ian Lance Taylor @ 2002-12-05 14:56 UTC (permalink / raw)
To: Alan Modra
Cc: Zack Weinberg, Nathanael Nerode, klee, gdb-patches, binutils,
newlib, gcc
Alan Modra <amodra@bigpond.net.au> writes:
> I'm concerned that this proposal may be raising the bar too high.
> How long has it been since some poor fool^H^H^H^H^H^H^H^H^Hbrave soul
> attempted to modernize binutils configury?
It's only been a bit over five years since I reworked binutils
configury to use automake and libtool.
I guess it was about two years before that that Ken Raeburn and I
changed the binutils to use autoconf.
I'm sure I don't know why autoconf 2.5 is not called autoconf 3.
Still, switching to autoconf 2.5 is surely a smaller change than
either of those.
It should be easy enough to extend AC_PREREQ a bit to make sure that
people use the correct version of autoconf for the directory in
question.
Perhaps --enable-maintainer-mode could be extended to specify a PATH
to use to find the tools.
Ian
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 14:56 ` Ian Lance Taylor
@ 2002-12-05 15:22 ` Alan Modra
2002-12-05 15:43 ` Ian Lance Taylor
` (2 more replies)
0 siblings, 3 replies; 74+ messages in thread
From: Alan Modra @ 2002-12-05 15:22 UTC (permalink / raw)
To: zack, neroden, klee, gdb-patches, binutils, newlib, gcc
On Thu, Dec 05, 2002 at 02:55:38PM -0800, Ian Lance Taylor wrote:
> Perhaps --enable-maintainer-mode could be extended to specify a PATH
> to use to find the tools.
It would need to be on a per-directory basis. Something like
--enable-maintainer-mode=\
"gdb:/usr/local/000227/bin,libstdc++-v3:/usr/local/oldauto/bin,*:yes"
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:22 ` Alan Modra
@ 2002-12-05 15:43 ` Ian Lance Taylor
2002-12-05 15:51 ` Andrew Cagney
2002-12-05 15:47 ` Mike Stump
2002-12-08 2:49 ` Klee Dienes
2 siblings, 1 reply; 74+ messages in thread
From: Ian Lance Taylor @ 2002-12-05 15:43 UTC (permalink / raw)
To: Alan Modra; +Cc: zack, neroden, klee, gdb-patches, binutils, newlib, gcc
Alan Modra <amodra@bigpond.net.au> writes:
> On Thu, Dec 05, 2002 at 02:55:38PM -0800, Ian Lance Taylor wrote:
> > Perhaps --enable-maintainer-mode could be extended to specify a PATH
> > to use to find the tools.
>
> It would need to be on a per-directory basis. Something like
>
> --enable-maintainer-mode=\
> "gdb:/usr/local/000227/bin,libstdc++-v3:/usr/local/oldauto/bin,*:yes"
Yes, I suppose that would be required to support a single
--enable-maintainer-mode at the top level.
On the other hand, I personally usually run a basic configure at the
top level, and then run configure again in the subdirectories for
which I want to use --enable-maintainer-mode.
Ian
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:22 ` Alan Modra
2002-12-05 15:43 ` Ian Lance Taylor
@ 2002-12-05 15:47 ` Mike Stump
2002-12-05 16:30 ` Alan Modra
2002-12-08 2:49 ` Klee Dienes
2 siblings, 1 reply; 74+ messages in thread
From: Mike Stump @ 2002-12-05 15:47 UTC (permalink / raw)
To: Alan Modra; +Cc: zack, neroden, klee, gdb-patches, binutils, newlib, gcc
On Thursday, December 5, 2002, at 03:19 PM, Alan Modra wrote:
> On Thu, Dec 05, 2002 at 02:55:38PM -0800, Ian Lance Taylor wrote:
>> Perhaps --enable-maintainer-mode could be extended to specify a PATH
>> to use to find the tools.
>
> It would need to be on a per-directory basis. Something like
>
> --enable-maintainer-mode=\
> "gdb:/usr/local/000227/bin,libstdc++-v3:/usr/local/oldauto/bin,*:yes"
This is beyond gross. :-(
Better to require
autoconf-2.14
autoconf
and then have each directory know which one to use, and require the
advanced user to have these.
OAUTOCONF = autoconf-2.14
AUTOCONF = autoconf
and then use $(AUTOCONF) for new uses, and $(OAUTOCONF) for old uses.
Also, we need a version check on the old autoconf to be sure that it
isn't too new.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:43 ` Ian Lance Taylor
@ 2002-12-05 15:51 ` Andrew Cagney
0 siblings, 0 replies; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 15:51 UTC (permalink / raw)
To: Ian Lance Taylor
Cc: Alan Modra, zack, neroden, klee, gdb-patches, binutils, newlib, gcc
>
> Yes, I suppose that would be required to support a single
> --enable-maintainer-mode at the top level.
>
> On the other hand, I personally usually run a basic configure at the
> top level, and then run configure again in the subdirectories for
> which I want to use --enable-maintainer-mode.
So _thats_ how to avoids maintainer mode on all but one directory...
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:47 ` Mike Stump
@ 2002-12-05 16:30 ` Alan Modra
2002-12-05 16:45 ` Zack Weinberg
0 siblings, 1 reply; 74+ messages in thread
From: Alan Modra @ 2002-12-05 16:30 UTC (permalink / raw)
To: Mike Stump; +Cc: zack, neroden, klee, gdb-patches, binutils, newlib, gcc
On Thu, Dec 05, 2002 at 03:45:52PM -0800, Mike Stump wrote:
> On Thursday, December 5, 2002, at 03:19 PM, Alan Modra wrote:
> >On Thu, Dec 05, 2002 at 02:55:38PM -0800, Ian Lance Taylor wrote:
> >>Perhaps --enable-maintainer-mode could be extended to specify a PATH
> >>to use to find the tools.
> >
> >It would need to be on a per-directory basis. Something like
> >
> >--enable-maintainer-mode=\
> >"gdb:/usr/local/000227/bin,libstdc++-v3:/usr/local/oldauto/bin,*:yes"
>
> This is beyond gross. :-(
Sniff. I'm sure I could make it a lot more gross. :)
> Better to require
>
> autoconf-2.14
> autoconf
>
> and then have each directory know which one to use, and require the
> advanced user to have these.
>
> OAUTOCONF = autoconf-2.14
> AUTOCONF = autoconf
>
> and then use $(AUTOCONF) for new uses, and $(OAUTOCONF) for old uses.
>
> Also, we need a version check on the old autoconf to be sure that it
> isn't too new.
The trouble with this idea is that older autoconf and automake aren't
installed as $tool-$version, and last I checked, current autoconf
doesn't install with a version suffix. Old tools really need to be
installed with a different --prefix. Hmm, I suppose a few symbolic
links would cure that problem. What happens if you need three three
or four different versions of autoconf?
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 16:30 ` Alan Modra
@ 2002-12-05 16:45 ` Zack Weinberg
0 siblings, 0 replies; 74+ messages in thread
From: Zack Weinberg @ 2002-12-05 16:45 UTC (permalink / raw)
To: Mike Stump; +Cc: neroden, klee, gdb-patches, binutils, newlib, gcc
Alan Modra <amodra@bigpond.net.au> writes:
>
> The trouble with this idea is that older autoconf and automake aren't
> installed as $tool-$version, and last I checked, current autoconf
> doesn't install with a version suffix. Old tools really need to be
> installed with a different --prefix. Hmm, I suppose a few symbolic
> links would cure that problem. What happens if you need three three
> or four different versions of autoconf?
Debian has a clever wrapper script (in the autoconf2.13 package) that
causes configure to get regenerated using 2.13 unless there's an
AC_PREREQ(2.5x) line in configure.in, or configure.in is named
configure.ac.
But I think that we really just ought to get the transition done,
assuming that it is in fact possible.
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
` (2 preceding siblings ...)
2002-12-05 14:29 ` Christopher Faylor
@ 2002-12-06 6:45 ` Maciej W. Rozycki
2002-12-08 10:53 ` Klee Dienes
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
5 siblings, 0 replies; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-06 6:45 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: klee, gdb-patches, binutils, newlib, gcc
On Thu, 5 Dec 2002, Nathanael Nerode wrote:
> It was mentioned that autoconf2.5 scripts will have trouble with
> building because of the top level passing down --target unconditionally.
>
> Unfortunately I think some other aspects of the configure scripts
> require --target to be passed down unconditionally. :-/ Otherwise I'd
> just change it.
Well, at least ${tooldir} requires to be set properly (that's typically
${exec_prefix}/${target_alias}) and currently it is done by passing
--target which sets ${target_alias}. However it may be possible to set
${tooldir} based on ${host_alias} or even ${build_alias}, as ${*_alias}
variables are empty if not set by a user. I think the order should be:
if test "x${target_alias}" != x; then
# Cross-tools
tooldir = '${exec_prefix}'/${target_alias}
elif test "x${host_alias}" != x; then
# Native tools for a different host
tooldir = '${exec_prefix}'/${host_alias}
elif test "x${build_alias}" != x; then
# Native tools using an explicit alias
tooldir = '${exec_prefix}'/${build_alias}
else
# Native tools using a default alias
tooldir = '${exec_prefix}'/${build}
fi
And then only pass these of --build, --host, --target to subdirectories
which have their respective ${*_alias} variable set. Obviously
${program_prefix} should either only be set if ${target_alias} is not
empty or use the above outline, too.
I'll check if the approach works for me -- anyone interested is invited
to do that, too.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:22 ` Alan Modra
2002-12-05 15:43 ` Ian Lance Taylor
2002-12-05 15:47 ` Mike Stump
@ 2002-12-08 2:49 ` Klee Dienes
2 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-08 2:49 UTC (permalink / raw)
To: Alan Modra; +Cc: zack, neroden, gdb-patches, binutils, newlib, gcc
On Thursday, December 5, 2002, at 06:19 PM, Alan Modra wrote:
> On Thu, Dec 05, 2002 at 02:55:38PM -0800, Ian Lance Taylor wrote:
>> Perhaps --enable-maintainer-mode could be extended to specify a PATH
>> to use to find the tools.
>
> It would need to be on a per-directory basis. Something like
>
> --enable-maintainer-mode=\
> "gdb:/usr/local/000227/bin,libstdc++-v3:/usr/local/oldauto/bin,*:yes"
What if the rules generated by --enable-maintainer-mode were to pass a
version number to each of the tools when using them to re-generate
files? The version number passed would be the same version number used
to generate the existing version of the generated files. Then the
autotools could either dispatch to the correct version of the tool
based on the version number, or
perhaps generate an error if the version numbers did not match. In
order to upgrade the generated files in a directory to a newer version,
the user would have to explicitly run autoreconf or run he appropriate
autotools directly.
This would make it a lot harder for a maintainer to accidentally use
the wrong version of an autotool when regenerating files in a
directory. It would also make it possible to write a top-level script
that would explicitly re-generate all of the files in a tree with
explicitly specified versions (or at least verify that the versions
being used were correct).
Regardless of how we choose to do it, though, I think it's important
that maintainers be able to update individual subdirectories to newer
versions of the autotools independently of each other (even if the way
we choose to do that is to say "don't run global
--enable-maintainer-mode, and be aware of the versions of the autotools
you are using"). If we don't, the bar for updating versions of
autotools is just too high. Trying to coordinate a simultaneous
upgrade of even a simple change across the combined src+gcc repository
is a huge amount of work --- if that's the only way to do upgrades, it
seems much more likely that the upgrades will tend to not get done.
The thought of even *touching* sid is daunting to me, much less the
thought of trying to claim that I've changed all of its Makefiles and
understand the changes.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
` (3 preceding siblings ...)
2002-12-06 6:45 ` Maciej W. Rozycki
@ 2002-12-08 10:53 ` Klee Dienes
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
5 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-08 10:53 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: gdb-patches, binutils, newlib, gcc
[-- Attachment #1: Type: text/plain, Size: 1807 bytes --]
On Thursday, December 5, 2002, at 02:07 PM, Nathanael Nerode wrote:
>
> Unfortunately I think some other aspects of the configure scripts
> require --target to be passed down unconditionally. :-/ Otherwise I'd
> just change it.
There's a useful thread on the host/target/build business in
http://sources.redhat.com/ml/autoconf/2002-02/msg00059.html (which I
imagine you're already familiar with, but it makes a nice reference).
I did some preliminary experiments with modifying what the top-level
configure passes down, and at least from the binutils/gdb side of
things, it looked promising. I ended up changing the top-level
configure semantics to match that of autoconf:
configure --build=BUILD --host=HOST --target=TARGET UNDEFS
1. You aren't allowed to specify --host, --build, --target, and undefs
at the same time.
2. Build defaults to undefs.
3. If undefs is not specified, then build defaults to the current
host, as determined by config.guess.
4. Host defaults to undefs.
5. If undefs is not specified, then host defaults to build.
6. Target defaults to undefs.
7. If undefs is not specified, then target defaults to host.
passing --host means you cross compile (whatever the relationship
between host and build)
passing --target means you build a cross-tool (whatever the
relationship between host and target).
--host and --target are only passed to sub-configures if they were
explicitly passed to the top-level configure on the command-line.
This fixed the problem with things installing in the wrong places; the
only fallout was that the emulation-selection code in binutils/ needed
to be changed to refer to $target instead of $target_alias. A basic
gcc build appeared to work, but I didn't try anything more complicated
than a stadard cross-compile setup.
[-- Attachment #2: ChangeLog --]
[-- Type: application/octet-stream, Size: 3396 bytes --]
.
2002-12-04 Klee Dienes <kdienes@apple.com>
* .cvsignore: Add autom4te.cache.
* configure: Change the rules for build/host/target processing to
the following:
The inputs are:
configure --build=BUILD --host=HOST --target=TARGET UNDEFS
The rules are:
1. You aren't allowed to specify --host, --build, --target, and
undefs at the same time.
2. Build defaults to undefs.
3. If undefs is not specified, then build defaults to the current
host, as determined by config.guess.
4. Host defaults to undefs.
5. If undefs is not specified, then host defaults to build.
6. Target defaults to undefs.
7. If undefs is not specified, then target defaults to host.
Only pass --host= and --target= to sub-configures when they are
passed by the top-level configure. Treat the build as a
cross-compilation whenever --target is specified, even if it
matches the value of --build and --host.
bfd
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_DISABLE_SHARED and AC_PROG_LIBTOOL
instead of the AM_ versions.
binutils
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX.
(EMULATION): Use $target, not $target_alias.
gas
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Pass explicit value to AC_CONFIG_FILES, not
${GDBINIT}. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and
AC_OUTPUT, not the multi-argument AC_OUTPUT.
gdb
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.in: Update to new ylwrap calling conventions.
* configure.in: Pass description string to AC_DEFINE.
gdb/testsuite
2002-12-04 Klee Dienes <kdienes@apple.com>
* gdb.hp/gdb.objdbg/configure.in: Remove objdbg0* from
AC_CONFIG_SUBDIRS.
gprof
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
ld
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
libiberty
2002-12-04 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Use AC_LIBOBJ instead of setting LIBOBJS directly.
Use _AC_LANG_COMPILER_GNU and $ac_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use AC_PROG_CC_G instead of
_AC_PROG_CC_G.
* configure.in: Use AC_LIBOBJ instead of setting LIBOBJS directly.
opcodes
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
rda
2002-12-04 Klee Dienes <kdienes@apple.com>
* configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
rda/lib
2002-12-04 Klee Dienes <kdienes@apple.com>
* lib/Makefile.am: Remove noinst_LIBRARIES and librda_a_SOURCES
(it's not possible to specify both a libtool version and a
non-libtool version using the same object files).
rda/unix
2002-12-04 Klee Dienes <kdienes@apple.com>
* unix/configure.in: Pass description strings to AC_DEFINE.
rda/win32
2002-12-04 Klee Dienes <kdienes@apple.com>
* win32/configure.in: Pass description strings to AC_DEFINE.
sim/common
2002-12-04 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Pass description strings to AC_DEFINE.
[-- Attachment #3: files.sh --]
[-- Type: application/octet-stream, Size: 1177 bytes --]
echo "Versions:"
dir=`echo $0 | sed -e 's/\/[^\/]*$//'`
echo $dir
libtool --version | grep \. | grep '(' | grep -v Copy 2>&1
autoconf --version | grep \. | grep '(' | grep -v Copy 2>&1
automake --version | grep \. | grep '(' | grep -v Copy 2>&1
gettext --version | grep \. | grep '(' | grep -v Copy 2>&1
# update=`grep '+++' $dir/bfd.txt | sed -e 's/+++ //' -e 's/[ ].*//'`
# echo; echo Resetting:
# echo Removing $update
# rm -f $update
# cvs -z9 -q update $update
find . -name autom4te.cache | xargs rm -rf
echo; echo "Patching:"
patch -p0 < $dir/bfd.txt
cp -p /usr/share/automake-1.7/depcomp .
cp -p /usr/share/automake-1.7/missing .
cp -p /usr/share/automake-1.7/mkinstalldirs .
cp -p /usr/share/automake-1.7/ylwrap .
cp -p /usr/share/libtool/ltmain.sh .
rm -f ltcf-c.sh
rm -f ltcf-cxx.sh
rm -f ltcf-gcj.sh
rm -f ltconfig
rm -f libtool.m4
echo; echo "Configuring:"
dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
dirs=`find $i -type d`
dirs=`for j in $dirs; do if [ -f $j/configure.in ]; then echo $j; fi; done`
for j in $dirs; do
echo "Configuring $j"
autoreconf -f -I`pwd` $j
done
done
[-- Attachment #4: bfd.txt --]
[-- Type: text/plain, Size: 40089 bytes --]
--- .cvsignore 2002-12-04 12:16:15.000000000 -0500
+++ .cvsignore 2002-12-04 23:18:08.000000000 -0500
@@ -6,6 +6,7 @@
*-src
*-stamp-*
*-tagged
+autom4te.cache
blockit
cfg-paper.info
config.status
--- configure Sat Nov 30 23:42:45 2002
+++ configure Sun Dec 8 01:08:59 2002
@@ -47,7 +47,7 @@
Makefile=Makefile
Makefile_in=Makefile.in
arguments=
-build_alias=
+build_alias=NOBUILD
cache_file=config.cache
cache_file_option=
configdirs=
@@ -400,71 +400,99 @@
esac
done
-# process host and target
+# process build, host, and target
# Do some error checking and defaulting for the host and target type.
# The inputs are:
-# configure --host=HOST --target=TARGET UNDEFS
+# configure --build=BUILD --host=HOST --target=TARGET UNDEFS
#
# The rules are:
-# 1. You aren't allowed to specify --host, --target, and undefs at the
-# same time.
-# 2. Host defaults to undefs.
-# 3. If undefs is not specified, then host defaults to the current host,
+# 1. You aren't allowed to specify --host, --build, --target, and undefs
+# at the same time.
+# 2. Build defaults to undefs.
+# 3. If undefs is not specified, then build defaults to the current host,
# as determined by config.guess.
-# 4. Target defaults to undefs.
-# 5. If undefs is not specified, then target defaults to host.
+# 4. Host defaults to undefs.
+# 5. If undefs is not specified, then host defaults to build.
+# 6. Target defaults to undefs.
+# 7. If undefs is not specified, then target defaults to host.
case "${fatal}" in
"")
# Make sure that host, target & undefs aren't all specified at the
# same time.
- case $host_alias---$target_alias---$undefs in
- NOHOST---*---* | *---NOTARGET---* | *---*---NOUNDEFS)
+ case $build_alias---$host_alias---$target_alias---$undefs in
+ NOBUILD---*---*---* | *---NOHOST---*---* | *---*---NOTARGET---* | *---*---*---NOUNDEFS)
;;
- *) echo '***' Can only configure for one host and one target at a time. 1>&2
+ *) echo '***' Can only configure for one build, host and target at a time. 1>&2
fatal=yes
break 2
;;
esac
- # Now, do defaulting for host.
- case $host_alias in
- NOHOST)
+ # Do defaulting for build.
+ case $build_alias in
+ NOBUILD)
case $undefs in
NOUNDEFS)
- # Neither --host option nor undefs were present.
+ # Neither --build option nor undefs were present.
# Call config.guess.
guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
- if host_alias=`${config_shell} ${guesssys}`
+ if build_alias=`${config_shell} ${guesssys}`
then
# If the string we are going to use for
# the target is a prefix of the string
- # we just guessed for the host, then
+ # we just guessed for the build, then
# assume we are running native, and force
- # the same string for both target and host.
+ # the same string for both target and build.
case $target_alias in
NOTARGET) ;;
*)
- if expr $host_alias : $target_alias >/dev/null
+ if expr $build_alias : $target_alias >/dev/null
then
- host_alias=$target_alias
+ echo "The target type ($target_alias) is a prefix of the build type ($build_alias)."
+ echo "Using $target_alias as the new build type."
+ build_alias=$target_alias
fi
;;
esac
- echo "Configuring for a ${host_alias} host."
- arguments="--host=$host_alias $arguments"
+ buildopt="--build=${build_alias}"
+ arguments="$buildopt $arguments"
else
- echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2
+ echo 'Config.guess failed to determine the build type. You need to specify one.' 1>&2
fatal=yes
fi
;;
*)
+ build_alias=$undefs
+ buildopt="--build=${build_alias}"
+ arguments="$buildopt $arguments"
+ ;;
+ esac
+ ;;
+ *)
+ buildopt="--build=${build_alias}"
+ ;;
+ esac
+
+ # Do defaulting for host. If --host option isn't present, default
+ # to undefs. If undefs isn't present, default to host.
+ case $host_alias in
+ NOHOST)
+ case $undefs in
+ NOUNDEFS)
+ host_alias="$build_alias"
+ ;;
+ *)
host_alias=$undefs
- arguments="--host=$host_alias $arguments"
- undefs=NOUNDEFS
+ hostopt="--host=${host_alias}"
+ arguments="$hostopt $arguments"
;;
esac
+ ;;
+ *)
+ hostopt="--host=${host_alias}"
+ ;;
esac
# Do defaulting for target. If --target option isn't present, default
@@ -473,13 +501,18 @@
NOTARGET)
case $undefs in
NOUNDEFS)
- target_alias=$host_alias
+ target_alias="$host_alias"
;;
*)
target_alias=$undefs
- arguments="--target=$target_alias $arguments"
+ targetopt="--target=${target_alias}"
+ arguments="$targetopt $arguments"
;;
esac
+ ;;
+ *)
+ targetopt="--target=${target_alias}"
+ ;;
esac
;;
*) ;;
@@ -622,12 +655,8 @@
*) cache_file_option="--cache-file=${cache_file}" ;;
esac
srcdiroption="--srcdir=${srcdir}"
- case "${build_alias}" in
- "") buildopt= ;;
- *) buildopt="--build=${build_alias}" ;;
- esac
eval exec ${config_shell} ${srcdir}/configure ${verbose} \
- ${buildopt} --host=${host_alias} --target=${target_alias} \
+ ${buildopt} ${hostopt} ${targetopt} \
${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
${srcdiroption} ${diroptions} \
${program_prefixoption} ${program_suffixoption} \
@@ -709,29 +738,16 @@
*) ;;
esac
-case "${build_alias}" in
-"")
- if result=`${config_shell} ${configsub} ${host_alias}` ; then
- build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- build=${build_cpu}-${build_vendor}-${build_os}
- build_alias=${host_alias}
- fi
- ;;
-*)
- if result=`${config_shell} ${configsub} ${build_alias}` ; then
- buildopt="--build=${build_alias}"
- build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- build=${build_cpu}-${build_vendor}-${build_os}
- else
- echo "Unrecognized build system name ${build_alias}." 1>&2
- exit 1
- fi
- ;;
-esac
+if result=`${config_shell} ${configsub} ${build_alias}` ; then
+ true
+else
+ echo "Unrecognized build system name ${build_alias}." 1>&2
+ exit 1
+fi
+build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+build=${build_cpu}-${build_vendor}-${build_os}
if result=`${config_shell} ${configsub} ${host_alias}` ; then
true
@@ -759,6 +775,24 @@
. ${tmpfile}.tgt
+if [ "$build_alias" != "$build" ]; then
+ echo "Configuring for a ${build_alias} (${build}) build."
+else
+ echo "Configuring for a ${build_alias} build."
+fi
+
+if [ "$host_alias" != "$host" ]; then
+ echo "Configuring for a ${host_alias} (${host}) host."
+else
+ echo "Configuring for a ${host_alias} host."
+fi
+
+if [ "$target_alias" != "$target" ]; then
+ echo "Configuring for a ${target_alias} (${target}) target."
+else
+ echo "Configuring for a ${target_alias} target."
+fi
+
# Find the source files, if location was not specified.
case "${srcdir}" in
"")
@@ -785,7 +819,7 @@
# using) don't handle "\$" correctly, so don't use it here.
tooldir='$(exec_prefix)'/${target_alias}
-if [ "${host_alias}" != "${target_alias}" ] ; then
+if [ -n "${target_alias}" ] ; then
if [ "${program_prefixoption}" = "" ] ; then
if [ "${program_suffixoption}" = "" ] ; then
if [ "${program_transform_nameoption}" = "" ] ; then
@@ -1520,7 +1554,7 @@
### The recursion line is here.
if [ ! -z "${recprog}" ] ; then
- if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${tgt_alias} \
+ if eval ${config_shell} ${recprog} ${verbose} ${buildopt} ${hostopt} ${targetopt} \
${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
${srcdiroption} ${diroptions} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${other_options} ${redirect} ; then
true
--- bfd/acinclude.m4 2002-12-04 12:16:19.000000000 -0500
+++ bfd/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -108,16 +108,6 @@
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
])
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- bfd/configure.in 2002-12-04 12:16:20.000000000 -0500
+++ bfd/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -23,16 +23,16 @@
AC_SUBST(bfd_version)
AC_SUBST(bfd_version_string)
-dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl These must be called before AC_PROG_LIBTOOL, because it may want
dnl to call AC_CHECK_PROG.
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :)
dnl Default to a non shared library. This may be overridden by the
dnl configure option --enable-shared.
-AM_DISABLE_SHARED
+AC_DISABLE_SHARED
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
--- binutils/Makefile.am 2002-12-04 12:16:22.000000000 -0500
+++ binutils/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -15,6 +15,8 @@
CC_FOR_BUILD = @CC_FOR_BUILD@
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- binutils/acinclude.m4 2002-12-04 12:16:23.000000000 -0500
+++ binutils/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- binutils/configure.in 2002-12-04 12:16:23.000000000 -0500
+++ binutils/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -62,7 +62,7 @@
AC_PROG_CC
AC_PROG_YACC
-AM_PROG_LEX
+AC_PROG_LEX
ALL_LINGUAS="fr tr ja es sv da"
CY_GNU_GETTEXT
@@ -320,7 +320,7 @@
[Define to 1 if user symbol names have a leading underscore, 0 if not.])
# Emulation
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
+for targ_alias in `echo $target $enable_targets | sed 's/,/ /g'`
do
# Canonicalize the secondary target names.
result=`$ac_config_sub $targ_alias 2>/dev/null`
--- gas/acinclude.m4 2002-12-04 12:16:34.000000000 -0500
+++ gas/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -55,16 +55,6 @@
$1=[$]_gas_uniq_newlist
])dnl
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AC_CHECK_LIBM],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- gas/configure.in 2002-12-04 12:16:35.000000000 -0500
+++ gas/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -70,10 +70,14 @@
# If we are on a DOS filesystem, we must use gdb.ini rather than
# .gdbinit.
-GDBINIT=".gdbinit"
case "${host}" in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
GDBINIT="gdb.ini"
+ AC_CONFIG_FILES(gdb.ini:gdbinit.in)
+ ;;
+ *)
+ GDBINIT=".gdbinit"
+ AC_CONFIG_FILES(.gdbinit:gdbinit.in)
;;
esac
AC_SUBST(GDBINIT)
@@ -993,7 +997,9 @@
dnl the old symlinks don't exist, so that a reconfigure in an existing
dnl directory behaves reasonably.
-AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in,
+AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
+
+AC_CONFIG_COMMANDS([default],
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
@@ -1008,3 +1014,5 @@
cgen_cpu_prefix=${cgen_cpu_prefix}
obj_format=${obj_format}
te_file=${te_file}])
+
+AC_OUTPUT
\ No newline at end of file
--- gdb/Makefile.in 2002-12-04 23:11:12.000000000 -0500
+++ gdb/Makefile.in 2002-12-04 23:18:08.000000000 -0500
@@ -1218,7 +1218,7 @@
.PRECIOUS: c-exp.tab.c
c-exp.tab.o: c-exp.tab.c
c-exp.tab.c: c-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1234,7 +1234,7 @@
.PRECIOUS: objc-exp.tab.c
objc-exp.tab.o: objc-exp.tab.c
objc-exp.tab.c: objc-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1250,7 +1250,7 @@
.PRECIOUS: jv-exp.tab.c
jv-exp.tab.o: jv-exp.tab.c
jv-exp.tab.c: jv-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1266,7 +1266,7 @@
.PRECIOUS: f-exp.tab.c
f-exp.tab.o: f-exp.tab.c
f-exp.tab.c: f-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1282,7 +1282,7 @@
.PRECIOUS: m2-exp.tab.c
m2-exp.tab.o: m2-exp.tab.c
m2-exp.tab.c: m2-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1298,7 +1298,7 @@
.PRECIOUS: ada-exp.tab.c
ada-exp.tab.o: ada-exp.tab.c
ada-exp.tab.c: ada-exp.y
- $(YACC) $(YFLAGS) $(srcdir)/ada-exp.y
+ $(SHELL) $(YLWRAP) $(srcdir)/ada-exp.y y.tab.c ada-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1327,7 +1327,7 @@
.PRECIOUS: p-exp.tab.c
p-exp.tab.o: p-exp.tab.c
p-exp.tab.c: p-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
--- gdb/configure.in 2002-12-04 12:16:47.000000000 -0500
+++ gdb/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -472,7 +472,7 @@
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
AC_MSG_RESULT($ac_cv_c_long_double)
if test $ac_cv_c_long_double = yes; then
- AC_DEFINE(HAVE_LONG_DOUBLE)
+ AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type works])
fi
dnl See if the compiler and runtime support printing long doubles
--- gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 12:17:00.000000000 -0500
+++ gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -11,6 +11,5 @@
AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../../..)
AC_CANONICAL_SYSTEM
-AC_CONFIG_SUBDIRS(objdbg01 objdbg02 objdbg03 objdbg04)
AC_OUTPUT(Makefile)
--- gprof/acinclude.m4 2002-12-04 12:17:02.000000000 -0500
+++ gprof/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,12 +1,3 @@
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- ld/Makefile.am 2002-12-04 12:17:11.000000000 -0500
+++ ld/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,6 +9,8 @@
tooldir = $(exec_prefix)/$(target_alias)
+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- ld/acinclude.m4 2002-12-04 12:17:11.000000000 -0500
+++ ld/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- libiberty/aclocal.m4 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -69,7 +69,7 @@
ac_cv_func_strncmp_works=no)
rm -f core core.* *.core])
if test $ac_cv_func_strncmp_works = no ; then
- LIBOBJS="$LIBOBJS strncmp.o"
+ AC_LIBOBJ(strncmp)
fi
])
@@ -102,9 +102,10 @@
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi
-AC_PROG_CC_GNU
+_AC_COMPILER_OBJEXT
+_AC_LANG_COMPILER_GNU
-if test $ac_cv_prog_gcc = yes; then
+if test $ac_compiler_gnu = yes; then
GCC=yes
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
dnl Check whether -g works, even if CFLAGS is set, in case the package
@@ -113,7 +114,7 @@
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
- AC_PROG_CC_G
+ _AC_PROG_CC_G
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
--- libiberty/configure.in 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -240,7 +240,12 @@
# newlib provide and which ones we will be expected to provide.
if test "x${with_newlib}" = "xyes"; then
- LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
+ AC_LIBOBJ(asprintf)
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vasprintf)
for f in $funcs; do
case "$f" in
@@ -308,8 +313,16 @@
# Handle VxWorks configuration specially, since on VxWorks the
# libraries are actually on the target board, not in the file
# system.
- LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o"
- LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o"
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(getpagesize)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strcasecmp)
+ AC_LIBOBJ(strncasecmp)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vfork)
+ AC_LIBOBJ(waitpid)
+ AC_LIBOBJ(vasprintf)
for f in $funcs; do
case "$f" in
basename | getpagesize | insque | random | strcasecmp)
@@ -356,7 +369,7 @@
if test -n "${with_target_subdir}"
then
funcs="`echo $funcs | sed -e 's/random//'`"
- LIBOBJS="$LIBOBJS random.o"
+ AC_LIBOBJ(random)
vars="`echo $vars | sed -e 's/sys_siglist//'`"
checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
fi
@@ -392,12 +405,12 @@
# We haven't set the list of objects yet. Use the standard autoconf
# tests. This will only work if the compiler works.
- AC_PROG_CC_WORKS
+ AC_PROG_CC
AC_REPLACE_FUNCS($funcs)
libiberty_AC_FUNC_C_ALLOCA
AC_FUNC_VFORK
if test $ac_cv_func_vfork_works = no; then
- LIBOBJS="$LIBOBJS vfork.o"
+ AC_LIBOBJ(vfork)
fi
# We only need _doprnt if we might use it to implement v*printf.
if test $ac_cv_func_vprintf != yes \
--- opcodes/acinclude.m4 2002-12-04 12:17:45.000000000 -0500
+++ opcodes/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,15 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- rda/configure.in 2002-12-04 12:17:46.000000000 -0500
+++ rda/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -7,7 +7,7 @@
dnl automake support
AM_MAINTAINER_MODE
dnl AC_LIBTOOL_WIN32_DLL
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C
--- rda/lib/Makefile.am 2002-12-04 12:17:46.000000000 -0500
+++ rda/lib/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,6 @@
# Create a libtool convenience archive
# ... and a plain library archive for non-libtool clients
noinst_LTLIBRARIES = librda.la
-noinst_LIBRARIES = librda.a
INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
-I$(srcdir)/../../include
@@ -17,4 +16,3 @@
THESOURCES=gdbserv-input.c gdbserv-output.c gdbserv-state.c gdbserv-utils.c gdbsocket.c gdblog.c stdio-log.c gdbserv-log.c gdbloop.c gdbsched.c gdbserv-target.c
librda_la_SOURCES = $(THESOURCES)
-librda_a_SOURCES = $(THESOURCES)
--- rda/unix/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/unix/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,7 @@
dnl automake support
AM_MAINTAINER_MODE
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C
@@ -32,43 +32,43 @@
case "$target" in
mips64*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
i?86*linux* | \
powerpc*linux* | \
arm*linux* | \
mips*linux*)
TARGET_MODULES="linux-target.o thread-db.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*solaris*)
TARGET_MODULES="solaris-target.o dummy-target.o"
- AC_DEFINE(SOLARIS_TARGET)
-# Place-holders -- not necessarily correct...
- AC_DEFINE(GREGSET_T, gregset_t)
- AC_DEFINE(FPREGSET_T, fpregset_t)
+ AC_DEFINE(SOLARIS_TARGET, [], [Define if target is any Solaris])
+ # Place-holders -- not necessarily correct...
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
esac
@@ -77,116 +77,116 @@
case "$target" in
*solaris*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(SPARC32_SOLARIS_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SPARC32_SOLARIS_TARGET, [], [Define is target is Sparc32])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
sh*linux*)
- AC_DEFINE(SH_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SH_LINUX_TARGET, [], [Define if target is SH (3? 4?) Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n64)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N64)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N64, [], [Define if target uses MIPS n64 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N32)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N32, [], [Define if target uses MIPS n32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*o32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips*linux*)
- AC_DEFINE(MIPS_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS_LINUX_TARGET, [], [Define if target is (32-bit) MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
i?86*linux*)
- AC_DEFINE(X86_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(X86_LINUX_TARGET, [], [Define if target is x86 Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
powerpc*linux*)
- AC_DEFINE(PPC_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(PPC_LINUX_TARGET, [], [Define if target is powerpc Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
m68k*linux*)
- AC_DEFINE(M68K_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(M68K_LINUX_TARGET, [], [Define if target is m68k Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
alpha*linux*)
- AC_DEFINE(ALPHA_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ALPHA_LINUX_TARGET, [], [Define if target is alpha Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
arm*linux*)
if test "$arm32" = "yes"; then
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
else
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
fi
;;
esac
--- rda/win32/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/win32/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -24,14 +24,10 @@
case "$target" in
*cygwin*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(WIN32_TARGET)
+ AC_DEFINE(WIN32_TARGET, [], [Define if target is Win32])
;;
esac
-if test -f /usr/include/foo.h; then
- AC_DEFINE(HAVE_AC_DEFINE, 1, [define if have AC_DEFINE])
-fi
-
dnl Outputs
AC_OUTPUT(Makefile)
--- sim/common/aclocal.m4 2002-12-04 12:17:54.000000000 -0500
+++ sim/common/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -904,7 +904,7 @@
dnl If we use NLS figure out what method
if test "$USE_NLS" = "yes"; then
- AC_DEFINE(ENABLE_NLS)
+ AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])
AC_MSG_CHECKING([whether included gettext is requested])
AC_ARG_WITH(included-gettext,
[ --with-included-gettext use the GNU gettext library included here],
@@ -938,7 +938,8 @@
if test "$gt_cv_func_gettext_libc" = "yes" \
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
- AC_DEFINE(HAVE_GETTEXT)
+ AC_DEFINE(HAVE_GETTEXT, 1,
+ [Define as 1 if you have gettext and don't want to use GNU gettext.])
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
if test "$MSGFMT" != "no"; then
@@ -1217,7 +1218,8 @@
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
if test $am_cv_val_LC_MESSAGES = yes; then
- AC_DEFINE(HAVE_LC_MESSAGES)
+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
+ [Define if your locale.h file contains LC_MESSAGES.])
fi
fi])
[-- Attachment #5: build.sh --]
[-- Type: application/octet-stream, Size: 246 bytes --]
#! /bin/sh
set -e
src=$1
$src/configure
dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
rm -f config.cache
(cd $i && $src/$i/configure --enable-maintainer-mode)
done
rm -f config.cache
^ permalink raw reply [flat|nested] 74+ messages in thread
* [RFC] Update to current automake/autoconf/libtool versions (take 2)
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
` (4 preceding siblings ...)
2002-12-08 10:53 ` Klee Dienes
@ 2003-01-12 10:32 ` Klee Dienes
2003-01-12 16:14 ` Nathanael Nerode
2003-01-12 17:14 ` Zack Weinberg
5 siblings, 2 replies; 74+ messages in thread
From: Klee Dienes @ 2003-01-12 10:32 UTC (permalink / raw)
To: gdb-patches, binutils, newlib, gcc, sid
[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]
The following is the current state-of-the art of my autoconf-2.5x
conversion of the gcc/gdb/binutils repositories. It updates the
following directories:
common: libiberty
src: bfd binutils gas gdb gprof ld mmalloc opcodes rda sim utils
gcc: boehm-gc fastjar gcc libf2c libffi libjava libobjc libstdc++-v3
zlib
It does *not* update the following directories:
common: include texinfo config etc contrib
src: blt cgen cpu dejagnu expect intl itcl iwidgets libgloss libgui
newlib readline tcl tk winsup sid"
gcc: libbanshee libchill libio libmudflap libstdc++"
I used the following versions of the various tools:
libtool: 1.4e (top-of-tree, with the attached patch)
autoconf: 2.57 (with the attached patch)
automake: 1.7.2
gettext: 0.11.5
autogen: 5.5
The attached archive contains the following files:
ChangeLog:
setup.sh: Script to convert to autotools-2.5x and build an uberbaum
tree
autoconf.txt: Fixes to autoconf-2.57 required by this patch.
common-diffs.txt Patches to directories shared by 'src' and gcc.
gcc-diffs.txt Patches to the gcc directories.
libtool-diffs.txt Patch to libtool-1.4e required by this patch.
src-diffs.txt Patches to the 'src' directories.
top-diffs.txt Patches to top-level files in both 'src' and gcc.
[-- Attachment #2: ChangeLog --]
[-- Type: application/octet-stream, Size: 10205 bytes --]
.
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Allow AS_FOR_TARGET explicitly, to avoid confusing
automake (which thinks it's a macro).
Use $target, $build, and $host to get canonical tuples, rather
than $target_alias, $build_alias, and $host_alias. Don't pass
--cache= arguments to sub-configures (they'll default to not using
a cache file).
(baseargs): Strip quotes from single-quoted strings in
ac_configure_args.
(libstdcxx_flags): Assume that testsuite_flags will not prepend a
space; always have a single space between arguments, even if
testsuite_flags returns an empty string.
* config.if: Use $target, $build, and $host to get canonical
tuples, rather than $target_alias, $build_alias, and $host_alias.
* Makefile.tpl: Echo the sub-configures before executing them.
Pass LDFLAGS to sub-makes via the environment.
* .cvsignore: Add autom4te.cache.
libiberty
2003-01-07 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Use AC_LIBOBJ instead of setting LIBOBJS directly.
Use _AC_LANG_COMPILER_GNU and $ac_cv_XXX_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use _AC_PROG_CC_G instead of
AC_PROG_CC_G. Wrap LIB_AC_PROG_CC and LIB_AC_PROG_CXX with
AC_LANG_PUSH.
* configure.in: Use AC_LIBOBJ instead of setting LIBOBJS directly.
newlib
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH.
* configure.in: Add description strings to AC_DEFINE_UNQUOTED calls.
bfd
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_DISABLE_SHARED and AC_PROG_LIBTOOL
instead of the AM_ versions.
binutils
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX.
(EMULATION): Use $target, not $target_alias.
gas
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.am: Update to new ylwrap calling conventions.
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Pass explicit value to AC_CONFIG_FILES, not
${GDBINIT}. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and
AC_OUTPUT, not the multi-argument AC_OUTPUT. Use a fixed pathname
in AC_CONFIG_AUX_DIR; modify ac_aux_dir explicitly to contain the
computed pathname.
gdb
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.in: Update to new ylwrap calling conventions.
* configure.in: Pass description string to AC_DEFINE.
gdb/testsuite
2003-01-07 Klee Dienes <kdienes@apple.com>
* gdb.hp/gdb.objdbg/configure.in: Remove objdbg0* from
AC_CONFIG_SUBDIRS.
gprof
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
ld
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
opcodes
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
rda
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
rda/lib
2003-01-07 Klee Dienes <kdienes@apple.com>
* lib/Makefile.am: Remove noinst_LIBRARIES and librda_a_SOURCES
(it's not possible to specify both a libtool version and a
non-libtool version using the same object files).
rda/unix
2003-01-07 Klee Dienes <kdienes@apple.com>
* unix/configure.in: Pass description strings to AC_DEFINE.
Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
rda/win32
2003-01-07 Klee Dienes <kdienes@apple.com>
* win32/configure.in: Pass description strings to AC_DEFINE.
Remove spurious check for "foo.h".
utils
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Call AC_PROG_CC to make sure that LDFLAGS is
propagated properly.
sim/common
2003-01-07 Klee Dienes <kdienes@apple.com>
* Make-common.in: Pass arguments to config.status rather than using
CONFIG_FILES.
* aclocal.m4: Pass description strings to AC_DEFINE. Use
a fixed pathname in AC_CONFIG_AUX_DIR; modify ac_aux_dir
explicitly to contain the computed pathname. Use AC_CONFIG_FILES,
AC_CONFIG_COMMANDS, and AC_OUTPUT, not the multi-argument
AC_OUTPUT.
* configure.in: Use a fixed pathname in AC_CONFIG_AUX_DIR; modify
ac_aux_dir explicitly to contain the computed pathname.
sim/XXX
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Add call to AC_CONFIG_AUX_DIR.
libobjc
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Add call to AC_NO_EXECUTABLES.
* Makefile.in (toplevel_srcdir): Use top_srcdir/toprel, not
toplevel_srcdir.
* acinclude.m4: Export toprel directly, rather than a quoted
reference to top_srcdir. Use srcdir/toprel in AC_CONFIG_AUX_DIR,
not top_srcdir/toprel. Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH. Remove
include of libtool.m4.
libf2c
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Export toprel directly, rather than a quoted
reference to top_srcdir. Use srcdir/toprel in AC_CONFIG_AUX_DIR,
not top_srcdir/toprel. Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH. Remove
include of libtool.m4. Move gcc_version_trigger code into
configure.in.
* Makefile.in: Use top_srcdir/toprel, not toplevel_srcdir.
* libF77/configure.in: Use AC_NO_EXECUTABLES.
* libI77/configure.in: Use AC_NO_EXECUTABLES.
* libU77/configure.in: Use AC_NO_EXECUTABLES.
* libf2c/configure.in: Use AC_NO_EXECUTABLES. Move the subdir
code to the top of configure.in. Move gcc_version_code from
aclocal.m4. Reference srcdir/toprel, not toplevel_srcdir.
boehm-gc
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.am: Define CCAS and CCASFLAGS to pacify automake.
Remove test.o hack. Specify gctest_SOURCES, not gctest_OBJECTS.
Remove duplicate setting for AM_CFLAGS.
* acinclude.m4: Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH.
* configure.in: Move call to AM_PROG_LIBTOOL.
fastjar
2003-01-07 Klee Dienes <kdienes@apple.com>
* Use =, not +=, to set my_makei_flags.
libffi
2003-01-07 Klee Dienes <kdienes@apple.com>
* Makefile.am: Define CCAS and CCASFLAGS to pacify automake.
Specify ffitest_SOURCES, not ffitest_OBJECTS. Remove duplicate
setting for AM_CFLAGS. Add TARGET_OBJ_XXX, corresponding to
TARGET_SRC_XXX. Remove the if @TARGET@ constructs; replace with
libffi_la_{SOURCES,LIBADD,DEPENDENCIES}. Add '-I.' to INCLUDES.
* configure.in: Replace AM_CONFIG_HEADER with AC_CONFIG_HEADER.
Use a fixed pathname in AC_CONFIG_AUX_DIR; modify ac_aux_dir
explicitly to contain the computed pathname. Use AC_CONFIG_FILES,
AC_CONFIG_COMMANDS, and AC_OUTPUT, not the multi-argument
AC_OUTPUT.
* acinclude.m4: Remove include of libtool.m4.
libjava
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove AC_CANONICAL_SYSTEM. Use
_AC_LANG_COMPILER_GNU and $ac_cv_XXX_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use _AC_PROG_CC_G instead of
AC_PROG_CC_G. Wrap LIB_AC_PROG_CC and LIB_AC_PROG_CXX with
AC_LANG_PUSH. Remove include of libtool.m4.
* configure.in: Add GCJ-style dependencies. Call
AC_CONFIG_SUBDIRS for libltdl explicitly, not via $DIRLTDL.
Replace AC_LANG_SAVE with AC_LANG_PUSH. Call AM_PROJ_GCJ.
* Makefile.am: Move ##-style comments out of rules and variable
definitions.
(INCLUDES): Add '-I.'.
(nat_source_files): Rename the gcj natStringBuffer.cc to
natStringBufferg.cc, to prevent a conflict with the one from
java/lang.
libstdc++-v3
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Use a fixed pathname in AC_CONFIG_AUX_DIR; modify
ac_aux_dir explicitly to contain the computed pathname. Remove
"just to satisfy automake" AC_CONFIG_AUX_DIR hack. Use
_AC_LANG_COMPILER_GNU and $ac_cv_XXX_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use _AC_PROG_CC_G instead of
AC_PROG_CC_G. Wrap LIB_AC_PROG_CC and LIB_AC_PROG_CXX with
AC_LANG_PUSH. Remove include of libtool.m4. Move AM_CONDITIONAL
calls to configure.in.
* configure.in: Move AM_CONDITIONAL_CALLS from acinclude.m4.
* libsupc++/Makefile.am (GCC_INCLUDES): Add '-I..'.
zlib
2003-01-07 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH. Remove
include of libtool.m4.
* configure.in: Add call to AC_NO_EXECUTABLES.
gcc
2003-01-07 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Define AM_GNU_GETTEXT_VERSION as empty function.
* configure.in: Call AM_GNU_GETTEXT_VERSION, to pacify automake.
fastjar
2003-01-07 Klee Dienes <kdienes@apple.com>
* configure.in: Use libtool variant of zlib.
* acinclude.m4: Use _AC_LANG_COMPILER_GNU and
$ac_cv_XXX_compiler_gnu instead of AC_PROG_CC_GNU and
$ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file
extension. Use _AC_PROG_CC_G instead of AC_PROG_CC_G. Wrap
LIB_AC_PROG_CC and LIB_AC_PROG_CXX with AC_LANG_PUSH. Remove
include of libtool.m4.
[-- Attachment #3: Type: text/plain, Size: 2 bytes --]
[-- Attachment #4: autoconf-diffs.tar.gz --]
[-- Type: application/x-gzip, Size: 25776 bytes --]
[-- Attachment #5: Type: text/plain, Size: 936 bytes --]
To run, first read through setup.sh, and make sure it won't do anything
you don't want it to do on your system. Then set the values of
src_gcc, src_src, and dst_root, and run setup.sh. The script will
rsync the checked-out gcc and src sources into a new directory, apply
the patches, and run autoreconf on all the appropriate directories.
I've built directory on i386-unknown-linux-gnu native, targetted to
powerpc-unknown-linux-gnu, and natively on i686-pc-cygwin (I got some
errors building winsup on cygwin, but they were the same errors I got
from the unmodified sources). I've *not* run extensive tests on the
resulting builds --- I'm willing to do that, but it seemed a bit early
at this stage.
I did not attempt to make the patches compatible with both
autoconf-2.13 and autoconf-2.5x --- I suspect that would be a
significant challenge, and converting to automake-1.7 and autoconf-2.5x
was difficult enough.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions (take 2)
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
@ 2003-01-12 16:14 ` Nathanael Nerode
2003-01-12 17:14 ` Zack Weinberg
1 sibling, 0 replies; 74+ messages in thread
From: Nathanael Nerode @ 2003-01-12 16:14 UTC (permalink / raw)
To: Klee Dienes; +Cc: gdb-patches, binutils, newlib, gcc, sid
Klee Dienes wrote:
> The following is the current state-of-the art of my autoconf-2.5x
> conversion of the gcc/gdb/binutils repositories. It updates the
> following directories:
>
> common: libiberty
> src: bfd binutils gas gdb gprof ld mmalloc opcodes rda sim utils
> gcc: boehm-gc fastjar gcc libf2c libffi libjava libobjc
> libstdc++-v3 zlib
>
> It does *not* update the following directories:
>
> common: include texinfo config etc contrib
'include' shouldn't have a makefile.
'texinfo' is either imported from outside, or doesn't have a makefile.
'config' doesn't have one.
'contrib' shouldn't have one.
I'm not sure about 'etc', but I think it shouldn't.
> src: blt cgen cpu dejagnu expect intl itcl iwidgets libgloss
> libgui newlib readline tcl tk winsup sid"
I don't know anything about 'blt', but it's not built by the top level,
so shouldn't be an issue.
'cgen' isn't built by the top level currently (although it will be again
sometime in the future) so it's not an issue either.
'dejagnu' is imported from outside, so we shouldn't touch it.
'expect' is imported from outside.
I don't know about 'intl'.
'itcl' is imported from outside. (I think it still is, anyway.)
I don't know about 'iwidgets', but it's not built by the top level, so I
don't think we have to worry about it.
--> 'libgloss' actually needs to be done, I'm afraid.
--> I'm not sure about the status of 'libgui'.
--> 'newlib' actually needs to be done as well.
'readline' is imported from outside.
'tcl' is imported from outside.
'tk' is imported from outside.
--> 'winsup' is Cygwin. It should be done, sometime.
--> 'sid' should be done.
> gcc: libbanshee libchill libio libmudflap libstdc++"
'libbanshee' is branch only; the branch maintainer should do this.
'libchill' is dead.
'libio' is dead.
'libmudflap' is branch only; the branch maintainer should do this.
'libstdc++' is dead.
In other words, excellent work. :-)
I'll try to make a pass at the remaining directories, but I'm not sure
when I'll get to them.
I'd like to see some version of this in sooner rather than later;
incremental fixes are easier from this point than from the current
point, and it would be nice if it went in during gcc 'stage 1' when
major destabilizing changes are allowed.
> autoconf: 2.57 (with the attached patch)
Think you can submit the patch to the autoconf maintainers and get it
into mainline autoconf?
>top-diffs.txt Patches to top-level files in both 'src' and gcc.
Honestly, I've wanted to make the ${x_alias}-->${x} change for the
directory names for a *long* time, but
a) it has to be done synchronously in all subdirectories and
b) it changes developer-visible behavior for cross builds (canonical
name rather than specified name)
If I could get buy-in from gcc, gdb, and binutils for a patch doing just
that, I would put it in right now (and make your diffs for autoconf 2.57
conversion rather shorter). I never submitted it 'cause I figured it
would not be popular.
An alternative, if perhaps sillier, scheme would be to create new
autoconf macros to find the ${build_subdir} and ${target_subdir} values,
and put it in a file included by everyone who cares.
But it's *much* simpler to always use the canonicalized names.
--Nathanael
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions (take 2)
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
2003-01-12 16:14 ` Nathanael Nerode
@ 2003-01-12 17:14 ` Zack Weinberg
2003-01-13 3:32 ` Klee Dienes
1 sibling, 1 reply; 74+ messages in thread
From: Zack Weinberg @ 2003-01-12 17:14 UTC (permalink / raw)
To: Klee Dienes; +Cc: gdb-patches, binutils, newlib, gcc, sid
Klee Dienes <klee@apple.com> writes:
> The following is the current state-of-the art of my autoconf-2.5x
> conversion of the gcc/gdb/binutils repositories.
Two general comments:
1) I notice that you made the existing pseudo-AC_PROG_CC/CXX macros
work again with 2.5x; this is wrong. Get rid of them entirely,
use the canonical AC_PROG_CC/CXX, and if they don't work right,
patch autoconf until they do.
2) Why did you disable the shared config.cache? It speeds up 'make
configure' by an order of magnitude, especially on slow machines.
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions (take 2)
2003-01-12 17:14 ` Zack Weinberg
@ 2003-01-13 3:32 ` Klee Dienes
2003-01-13 7:31 ` Zack Weinberg
0 siblings, 1 reply; 74+ messages in thread
From: Klee Dienes @ 2003-01-13 3:32 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gdb-patches, binutils, newlib, gcc, sid
On Sunday, January 12, 2003, at 12:13 PM, Zack Weinberg wrote:
> 1) I notice that you made the existing pseudo-AC_PROG_CC/CXX macros
> work again with 2.5x; this is wrong. Get rid of them entirely,
> use the canonical AC_PROG_CC/CXX, and if they don't work right,
> patch autoconf until they do.
The original theory was that I was trying to keep the diffs to a
minimum, and that once the switch was flipped on 2.x, we could go back
and make a lot of more interesting cleanups to the configure scripts.
But I think you're right that my changes ended up complicated enough
that I should just replace them with the modern versions; I'll do that.
> 2) Why did you disable the shared config.cache? It speeds up 'make
> configure' by an order of magnitude, especially on slow machines.
I didn't disable the config.cache in the top-level scripts; it's just
that the new default is for autoconf to use a null cache file unless
configured with '-C'. A good portion of my patch is actually present
solely to fix the use of a top-level cache file --- there were a number
of places where whitespace triggered the "value changed between runs"
checks in 2.5x. I did disable the target config.cache, because there
were places where things really were being run with different flags
between runs (for example, the value of libstdcxx_flags varies by
directory), and fixing that seemed beyond the scope of the initial
conversion to 2.5x.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions (take 2)
2003-01-13 3:32 ` Klee Dienes
@ 2003-01-13 7:31 ` Zack Weinberg
0 siblings, 0 replies; 74+ messages in thread
From: Zack Weinberg @ 2003-01-13 7:31 UTC (permalink / raw)
To: Klee Dienes; +Cc: gdb-patches, binutils, newlib, gcc, sid
Klee Dienes <klee@apple.com> writes:
> The original theory was that I was trying to keep the diffs to a
> minimum, and that once the switch was flipped on 2.x, we could go back
> and make a lot of more interesting cleanups to the configure scripts.
That's fair...
> But I think you're right that my changes ended up complicated enough
> that I should just replace them with the modern versions; I'll do
> that.
It may actually make sense to do the replacement as a separate patch,
introducing a shared aclocal.m4 fragment that backports
AC_NO_EXECUTABLES or similar to 2.13. Put that in first, and your
diffs for the 2.5x conversion get quite a bit simpler.
> I didn't disable the config.cache in the top-level scripts; it's
> just that the new default is for autoconf to use a null cache file
> unless configured with '-C'.
I may have misunderstood your patch but I got the definite impression
that you dropped out the only bit that passes down the top-level
--cache-file setting to the sub-configures. Which would mean, even if
the top level was run with -C, the sub-configures would use no cache
file, and wouldn't share caches if they did.
The change of default is wrong, but that's not your fault.
> I did disable the target config.cache, because there were places
> where things really were being run with different flags between runs
> (for example, the value of libstdcxx_flags varies by directory), and
> fixing that seemed beyond the scope of the initial conversion to 2.5x.
Yeah, that's reasonable. We'll want it back eventually though.
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
[not found] <9A4230D6-1D26-11D7-BFCA-00039396EEB8@apple.com>
@ 2003-01-12 13:22 ` Alexandre Oliva
0 siblings, 0 replies; 74+ messages in thread
From: Alexandre Oliva @ 2003-01-12 13:22 UTC (permalink / raw)
To: Klee Dienes; +Cc: Andrew Cagney, binutils, gdb-patches, gcc, newlib
On Dec 31, 2002, Klee Dienes <klee@apple.com> wrote:
>>> * acinclude.m4: Remove include of libtool.m4.
>> Can't let you do that, Dave. This causes us to use whatever
>> libtool.m4 happens to be in aclocal.m4's search path, which is very
>> likely not compatible with ltmain.sh from the top level. That's why
>> we use libtool.m4 from the top level and keep all the libtool files in
>> sync. I wouldn't mind updating to the libtool current CVS tree, which
>> would get us rid of a number of files in the top level, but this takes
>> a lot of testing on many different platforms.
> Given that in theory anyone running aclocal or autoconf should be
> running "official" and well-defined versions of those tools, they
> should also be getting correct values for the contents of libtool.m4.
> If their installed libtool.m4 is incompatible with the shipped
> ltmain.sh, who is to say that their installed acgeneral.m4 won't be
> incompatible with a shipped libtool.m4? I'd argue that libtool.m4 is
> part of the autoconf environment, and that we should just require
> people running aclocal or autoconf to have the correct installations
> of the tools (as in theory we already do).
I disagree, and the libtool manual recommends this practice precisely
to make sure the libtool files remain in sync. I see the revised
patch you just posted still has ChangeLog entries that say they're
removing the include statements. I hope it was just a mistake. If it
was not, please remove those changes and post a new patch, this time
copying gcc-patches@gcc.gnu.org instead of gcc@gcc.gnu.org. Letting
random macros kick in from the user's installation of aclocal is a
mistake in general (or not kicking in at all, in case the
officially-recommended versions of automake and libtool were installed
in different prefixes), since there's no way to make sure they're
compatible with other files that may depend on it. That's why there
is AC_PREREQ, but there's no such thing that affects aclocal's
behavior, so we're better off making sure we use the right version of
these files.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
` (3 preceding siblings ...)
2002-12-05 8:09 ` Daniel Jacobowitz
@ 2002-12-30 16:10 ` Alexandre Oliva
4 siblings, 0 replies; 74+ messages in thread
From: Alexandre Oliva @ 2002-12-30 16:10 UTC (permalink / raw)
To: Klee Dienes; +Cc: Andrew Cagney, binutils, gdb-patches
Sorry I'm a bit late in following up. I don't follow these lists as
closely as GCC, and this should have been copied there, at least for
the parts that affects the top level, since those are shared.
On Dec 5, 2002, Klee Dienes <klee@apple.com> wrote:
> ltmain.sh (GNU libtool) 1.4.3
Can't do that. The copy we use is from a newer code base than the 1.4
branch of libtool. It's taken from a 1.5-to-be (multi-language)
branch from quite a while ago, back when the ltcf-*.sh scripts hadn't
been merged into libtool.m4.
> 2002-12-04 Klee Dienes <kdienes@apple.com>
> * .cvsignore: Add autom4te.cache.
Please don't. autom4te.cache is an aberration. It shouldn't be
created by default, and it shouldn't be left dangling there in the
source tree. I'd much rather have rules that remove it as soon as
configure is rebuilt.
> * acinclude.m4: Remove include of libtool.m4.
Can't let you do that, Dave. This causes us to use whatever
libtool.m4 happens to be in aclocal.m4's search path, which is very
likely not compatible with ltmain.sh from the top level. That's why
we use libtool.m4 from the top level and keep all the libtool files in
sync. I wouldn't mind updating to the libtool current CVS tree, which
would get us rid of a number of files in the top level, but this takes
a lot of testing on many different platforms.
> * configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX.
> * configure: Pass --build=$host_alias to sub-makes if no other
> value is specified.
Huh? configure is generated from configure.in. Besides, it's wrong
in principle. --build is not to be the same as --host, it's the other
way round (even though autoconf 2.13 got it backwards). Gotta find
out why we depend on build being defaulted to host and fixing that
instead.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-09 19:16 ` Alexandre Oliva
@ 2002-12-09 21:52 ` Geoff Keating
0 siblings, 0 replies; 74+ messages in thread
From: Geoff Keating @ 2002-12-09 21:52 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: Nathanael Nerode, gdb-patches, binutils, newlib, gcc
Alexandre Oliva <aoliva@redhat.com> writes:
> I don't get it. Why does being able to link have anything to do with
> being native? Being able to *run* tests has to do with being native,
> but that's not the point, and autoconf already avoids running tests
> when cross-building. But being able to link has to do with whether
> the libraries that the compiler links in by default are present or
> not. That's the purpose of AC_NO_EXECUTABLES: to disable link tests
> while building a library that the compiler driver would attempt to link
> in by default, such as newlib, libstdc++ or libgcj.
Aah, I see. No, that's not the purpose of AC_NO_EXECUTABLES, or at
least it's not what GCC wants out of it. Some platforms can't link
anything at all without special care. For instance, you might need to
know what board you plan to run the executable on and pass an
appropriate flag (or supply an appropriate crt0 by hand). For another
example, vxworks can't and doesn't link anything, the final link takes
place at runtime on the board, "executables" are created using 'ld
-r', and you can refer to any symbols you like in the hope that
they'll be available later.
It's assumed that in a native case, this sort of thing won't happen,
thus the existing behaviour. Maybe instead you could perform a
configure-time test to see if the platform can link anything at all
(and will fail to link with an obviously bogus symbol), and then base
the decision of whether to run link tests on that, instead of the
current approximation, but there'll still be some cases when linking
is not possible, and other cases (the majority) in which link tests
are possible and desirable.
--
- Geoffrey Keating <geoffk@geoffk.org>
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-07 16:03 ` Zack Weinberg
@ 2002-12-09 19:16 ` Alexandre Oliva
2002-12-09 21:52 ` Geoff Keating
0 siblings, 1 reply; 74+ messages in thread
From: Alexandre Oliva @ 2002-12-09 19:16 UTC (permalink / raw)
To: Zack Weinberg; +Cc: Nathanael Nerode, gdb-patches, binutils, newlib, gcc
On Dec 7, 2002, Zack Weinberg <zack@codesourcery.com> wrote:
> Alexandre Oliva <aoliva@redhat.com> writes:
>> On Dec 5, 2002, Zack Weinberg <zack@codesourcery.com> wrote:
>>
>>> AC_NO_EXECUTABLES has two effects: (1) it disables the equivalent of
>>> AC_PROG_CC_WORKS, which is what we need. But, (2) it causes autoconf
>>> to barf if an AC_TRY_LINK test appears anywhere in the script being
>>> generated.
>>
>> Please tell me why (2) doesn't make sense.
>>
>> If AC_PROG_CC_WORKS can't even link a do-nothing program, how would
>> you expect to get any useful results from AC_TRY_LINK?
> Because libstdc++'s AC_TRY_LINK tests are only executed in a situation
> where AC_PROG_CC_WORKS would have succeeded (i.e. a native compilation).
I don't get it. Why does being able to link have anything to do with
being native? Being able to *run* tests has to do with being native,
but that's not the point, and autoconf already avoids running tests
when cross-building. But being able to link has to do with whether
the libraries that the compiler links in by default are present or
not. That's the purpose of AC_NO_EXECUTABLES: to disable link tests
while building a library that the compiler driver would attempt to link
in by default, such as newlib, libstdc++ or libgcj.
That said, I'm not sure it should be used for libstdc++, since there's
no reason to use g++: we should use gcc instead, even if we perform
C++ link tests. Ditto for libjava, I suppose, but I realize it would
be far trickier to get libjava to link C programs :-)
Still, I think AC_NO_EXECUTABLES may affect all linking whatsoever,
not only that of the language in effect at the point it appears, which
does indeed make it useless for anything other that newlib. But, for
newlib, preventing link tests *is* the right thing to do, and I
contend that it's the right thing to do for any language affected by
the AC_NO_EXECUTABLES declaration.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-07 13:06 ` Alexandre Oliva
2002-12-07 16:03 ` Zack Weinberg
@ 2002-12-08 13:11 ` Tom Tromey
1 sibling, 0 replies; 74+ messages in thread
From: Tom Tromey @ 2002-12-08 13:11 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: Nathanael Nerode, gdb-patches, binutils, newlib, gcc
>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>> But, (2) it causes autoconf to barf if an AC_TRY_LINK test appears
>> anywhere in the script being generated.
Alexandre> Please tell me why (2) doesn't make sense.
Alexandre> If AC_PROG_CC_WORKS can't even link a do-nothing program,
Alexandre> how would you expect to get any useful results from
Alexandre> AC_TRY_LINK?
The autoconf code in question completely disables AC_LINK_IFELSE.
However, we know we can successfully do link tests when building
natively. And, at least in libgcj's case, this knowledge is important
because we use it to make libgcj more functional when built native.
FYI I sent a patch to the autoconf list.
Tom
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-07 13:06 ` Alexandre Oliva
@ 2002-12-07 16:03 ` Zack Weinberg
2002-12-09 19:16 ` Alexandre Oliva
2002-12-08 13:11 ` Tom Tromey
1 sibling, 1 reply; 74+ messages in thread
From: Zack Weinberg @ 2002-12-07 16:03 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: Nathanael Nerode, gdb-patches, binutils, newlib, gcc
Alexandre Oliva <aoliva@redhat.com> writes:
> On Dec 5, 2002, Zack Weinberg <zack@codesourcery.com> wrote:
>
>> AC_NO_EXECUTABLES has two effects: (1) it disables the equivalent of
>> AC_PROG_CC_WORKS, which is what we need. But, (2) it causes autoconf
>> to barf if an AC_TRY_LINK test appears anywhere in the script being
>> generated.
>
> Please tell me why (2) doesn't make sense.
>
> If AC_PROG_CC_WORKS can't even link a do-nothing program, how would
> you expect to get any useful results from AC_TRY_LINK?
Because libstdc++'s AC_TRY_LINK tests are only executed in a situation
where AC_PROG_CC_WORKS would have succeeded (i.e. a native compilation).
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:19 ` Zack Weinberg
2002-12-06 10:21 ` Tom Tromey
@ 2002-12-07 13:06 ` Alexandre Oliva
2002-12-07 16:03 ` Zack Weinberg
2002-12-08 13:11 ` Tom Tromey
1 sibling, 2 replies; 74+ messages in thread
From: Alexandre Oliva @ 2002-12-07 13:06 UTC (permalink / raw)
To: Zack Weinberg; +Cc: Nathanael Nerode, gdb-patches, binutils, newlib, gcc
On Dec 5, 2002, Zack Weinberg <zack@codesourcery.com> wrote:
> AC_NO_EXECUTABLES has two effects: (1) it disables the equivalent of
> AC_PROG_CC_WORKS, which is what we need. But, (2) it causes autoconf
> to barf if an AC_TRY_LINK test appears anywhere in the script being
> generated.
Please tell me why (2) doesn't make sense.
If AC_PROG_CC_WORKS can't even link a do-nothing program, how would
you expect to get any useful results from AC_TRY_LINK?
> libstdc++-v3/configure.in has lots of AC_TRY_LINK tests.
If we know AC_PROG_CC_WORKS fails, it is a mistake to use AC_TRY_LINK
tests. Removing the constraint from autoconf will do us no good.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 15:19 ` Zack Weinberg
@ 2002-12-06 10:21 ` Tom Tromey
2002-12-07 13:06 ` Alexandre Oliva
1 sibling, 0 replies; 74+ messages in thread
From: Tom Tromey @ 2002-12-06 10:21 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gdb-patches, binutils, newlib, gcc
>>>>> "Zack" == Zack Weinberg <zack@codesourcery.com> writes:
Zack> Someone on the autoconf team knew about this and tried to help out by
Zack> providing an undocumented macro called AC_NO_EXECUTABLES:
Zack> # FIXME: The GCC team has specific needs which the current Autoconf
Zack> # framework cannot solve elegantly. This macro implements a dirty
Zack> # hack until Autoconf is abble to provide the services its users
Zack> # needs.
Zack> They are only executed in a native compilation, but that's not good
Zack> enough for AC_NO_EXECUTABLES.
Presumably if AC_NO_EXECUTABLES exists solely for the use of gcc, then
it could be changed to do what gcc actually requires.
Tom
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-06 8:06 ` Maciej W. Rozycki
@ 2002-12-06 8:47 ` DJ Delorie
0 siblings, 0 replies; 74+ messages in thread
From: DJ Delorie @ 2002-12-06 8:47 UTC (permalink / raw)
To: macro; +Cc: binutils, gdb-patches
IANAL, but...
> I don't understand -- AFAIK, the GNU GPL doesn't enforce everyone
> making use of files generated by autoconf/automake/gettext/libtool
> to distribute sources of the said tools.
The preferred form for making modifications to configure is to edit
configure.in. Autoconf is not usually a standard part of the
operating system (esp when we require specific versions). Therefore,
it is a script used to control compilation, and must be considered
part of the source.
The only exception is that autoconf itself disclaims this connection,
and explicitly allows you to distribute configure without distributing
autoconf itself. I didn't check the other tools. I guess we're safe
legally.
We still have the problem of needing a specific version of the tools,
though.
> As I understand, only if binutils use modified tools, the relevant
> sources need to be made available.
There's nothing in the GPL that even mentions patches.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-06 7:25 ` DJ Delorie
@ 2002-12-06 8:06 ` Maciej W. Rozycki
2002-12-06 8:47 ` DJ Delorie
0 siblings, 1 reply; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-06 8:06 UTC (permalink / raw)
To: DJ Delorie; +Cc: binutils, gdb-patches
On Fri, 6 Dec 2002, DJ Delorie wrote:
> > Historically this is not a problem.
>
> Legally it is. The first time they delete something we need, our
> distribution becomes instantly illegal.
> And traditionally, the GPL hasn't allowed you to put the
> responsibility of providing sources on someone else.
I don't understand -- AFAIK, the GNU GPL doesn't enforce everyone making
use of files generated by autoconf/automake/gettext/libtool to distribute
sources of the said tools. As I understand, only if binutils use modified
tools, the relevant sources need to be made available. For versions using
such tools, making the patches available is obvious (for practical
reasons, too). Whether the original sources of the tools the patches
apply to need to be made available is unclear to me -- I can't decipher it
from the GNU GPL. It won't hurt certainly.
Anyway referring to ftp.gnu.org as the primary source of original
versions of tools the way I wrote should be fine legally, too.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-06 5:34 ` Maciej W. Rozycki
@ 2002-12-06 7:25 ` DJ Delorie
2002-12-06 8:06 ` Maciej W. Rozycki
0 siblings, 1 reply; 74+ messages in thread
From: DJ Delorie @ 2002-12-06 7:25 UTC (permalink / raw)
To: macro; +Cc: binutils, gdb-patches
> Historically this is not a problem.
Legally it is. The first time they delete something we need, our
distribution becomes instantly illegal.
And traditionally, the GPL hasn't allowed you to put the
responsibility of providing sources on someone else.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 10:59 ` Andrew Cagney
@ 2002-12-06 5:52 ` Maciej W. Rozycki
0 siblings, 0 replies; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-06 5:52 UTC (permalink / raw)
To: Andrew Cagney
Cc: Klee Dienes, Daniel Jacobowitz, DJ Delorie, binutils, gdb-patches
On Thu, 5 Dec 2002, Andrew Cagney wrote:
> > I'd argue that we should:
> >
> > 1) Specify the versions of autoconf/automake/libtool/gettext by reference to official tarballs from ftp.gnu.org. In general, define the version used to be "the most recent officially released version of each tool".
>
> Reality check. If the offical autoconf has a bug, GDB and BINUTILS will
> be forced to use a local version :-/
Well, if that happens, the affected tool should be fixed eventually
(assuming the discoverer of the bug bothered submitting fixes to the
relevant maintainer). Until then, it's much better to make a patch that
fixes the bug available, than to prepare own tarballs (or apart from).
This way one may apply required patches to new versions of the tool. This
simplifies local maintenance of the tool as other patches or newer
versions may be required for other software.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 10:59 ` Doug Evans
2002-12-05 12:11 ` Klee Dienes
@ 2002-12-06 5:34 ` Maciej W. Rozycki
2002-12-06 7:25 ` DJ Delorie
1 sibling, 1 reply; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-06 5:34 UTC (permalink / raw)
To: Doug Evans
Cc: Klee Dienes, Daniel Jacobowitz, DJ Delorie, ac131313, binutils,
gdb-patches
On Thu, 5 Dec 2002, Doug Evans wrote:
> > 1) Specify the versions of autoconf/automake/libtool/gettext by
> > reference to official tarballs from ftp.gnu.org.
>
> This places a requirement on the maintainers of ftp.gnu.org
> to not delete said tarballs until binutils has been updated.
> I dont' think you or they want that kind of coupling.
Historically this is not a problem. The maintainers of ftp.gnu.org are
not that hasty in deleting old stuff (which is the right way). There are
old releases of autoconf back to 2.7, automake back to 1.0, gettext 0.10
and libtool 1.0. The worst that happens is moving stuff from /gnu to
/old-gnu.
> Better to uncouple things and have your own tarballs.
> Then you can upgrade according to your schedule, not theirs.
Of course archiving copies separately is not a problem, either. Then you
can write: "Get copies from ftp.gnu.org, or use versions archived here."
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions
@ 2002-12-06 5:28 Nathanael Nerode
0 siblings, 0 replies; 74+ messages in thread
From: Nathanael Nerode @ 2002-12-06 5:28 UTC (permalink / raw)
To: zack; +Cc: gdb-patches, binutils, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 991 bytes --]
>Going over it all again, I realize that we could probably just
>redefine AC_NO_EXECUTABLES to do what we want. We'd have to
>specialize its definition for every version of autoconf that we cared
>about, and check at every new release that it hadn't broken, but it
>would work. I guess it's not impossible after all.
>
>zw
*twisted half-grin*
For the top level, I'd been unable to avoid writing
complete replacements for AC_PROG_CC and AC_PROG_CXX, and it
was really nasty.
So this is actually better than I'd hoped.
Thanks! Writing a specialized implementation of AC_NO_EXECUTABLES will
make my life easier, probably. :-)
The real reason I want autoconf 2.5x is twofold:
* it handles AC_REQUIRES on AC_CANONICAL_* properly
* it allows the use of m4_include, so I can make a master macro file
(in top level config, for instance) and use it even in directories
without automake.
You might be amused by the most basic parts of my experimental
aclocal.m4 include file.
--Nathanael
[-- Attachment #2: aclocal.m4 --]
[-- Type: text/plain, Size: 2431 bytes --]
# Autoconf M4 include file defining valuable macros for complex Canadian
# cross builds.
####
# _NCN_TOOL_PREFIXES
# Get prefixes for cross-compilers to the host and the target.
# This requires that AC_CANONICAL_SYSTEM be called beforehand.
# Unfortunately, AC_REQUIRE doesn't work properly in this case under
# autoconf 2.13.
AC_DEFUN([_NCN_TOOL_PREFIXES],
[ncn_tool_prefix=
test -n "$host_alias" && ncn_tool_prefix=$host_alias-
ncn_target_tool_prefix=
test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
]) []dnl # _NCN_TOOL_PREFIXES
####
# NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
# Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
# Code is pretty much lifted from autoconf2.53.
AC_DEFUN([NCN_CHECK_TARGET_TOOL],
[AC_REQUIRE([_NCN_TOOL_PREFIXES]) []dnl
if test -n "$ncn_target_tool_prefix"; then
AC_CHECK_PROG([$1], [${ncn_target_tool_prefix}$2],
[${ncn_target_tool_prefix}$2], , [$4])
fi
if test -z "$ac_cv_prog_$1" ; then
ncn_ct_$1=$$1
AC_CHECK_PROG([ncn_ct_$1], [$2], [$2], [$3], [$4])
$1=$ncn_ct_$1
else
$1="$ac_cv_prog_$1"
fi
]) []dnl # NCN_CHECK_TARGET_TOOL
####
# NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
# Like AC_CHECK_TOOL, but requires the prefix if build!=host.
AC_DEFUN([NCN_STRICT_CHECK_TOOL],
[AC_REQUIRE([_NCN_TOOL_PREFIXES]) []dnl
if test -n "$ncn_tool_prefix"; then
AC_CHECK_PROG([$1], [${ncn_tool_prefix}$2],
[${ncn_tool_prefix}$2], , [$4])
fi
if test -z "$ac_cv_prog_$1" ; then
if test $build = $host ; then
ncn_ct_$1=$$1
AC_CHECK_PROG([ncn_ct_$1], [$2], [$2], [$3], [$4])
$1=$ncn_ct_$1
else
$1="$3"
fi
else
$1="$ac_cv_prog_$1"
fi
]) []dnl # NCN_STRICT_CHECK_TOOL
####
# NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
# Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
AC_DEFUN([NCN_STRICT_CHECK_TARGET_TOOL],
[AC_REQUIRE([_NCN_TOOL_PREFIXES]) []dnl
if test -n "$ncn_target_tool_prefix"; then
AC_CHECK_PROG([$1], [${ncn_target_tool_prefix}$2],
[${ncn_target_tool_prefix}$2], , [$4])
fi
if test -z "$ac_cv_prog_$1" ; then
if test $build = $target ; then
ncn_ct_$1=$$1
AC_CHECK_PROG([ncn_ct_$1], [$2], [$2], [$3], [$4])
$1=$ncn_ct_$1
else
$1="$3"
fi
else
$1="$ac_cv_prog_$1"
fi
]) []dnl # NCN_STRICT_CHECK_TARGET_TOOL
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 14:40 Nathanael Nerode
@ 2002-12-05 15:19 ` Zack Weinberg
2002-12-06 10:21 ` Tom Tromey
2002-12-07 13:06 ` Alexandre Oliva
0 siblings, 2 replies; 74+ messages in thread
From: Zack Weinberg @ 2002-12-05 15:19 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: gdb-patches, binutils, newlib, gcc
Nathanael Nerode <neroden@twcny.rr.com> writes:
>>I'd like to remind everyone involved that last I checked it was flat
>>impossible to do what libstdc++-v3/configure.in needs to do, using
>>autoconf 2.5x. I am not particularly sanguine about the situation
>
> Flat impossible?
>
> Wow.
Like I said, I'd be delighted to be proved wrong.
> I'd be interested to hear more about the problem. Why can't it be
> dealt with by using private macros?
It was a couple years ago, but I think I still remember pretty
clearly.
First off, you've probably met this stuff (from libstdc++/aclocal.m4):
# Never versions of autoconf add an underscore to these functions.
# Prevent future problems ...
ifdef([AC_PROG_CC_G],[],[define([AC_PROG_CC_G],defn([_AC_PROG_CC_G]))])
ifdef([AC_PROG_CC_GNU],[],[define([AC_PROG_CC_GNU],defn([_AC_PROG_CC_GNU]))])
ifdef([AC_PROG_CXX_G],[],[define([AC_PROG_CXX_G],defn([_AC_PROG_CXX_G]))])
ifdef([AC_PROG_CXX_GNU],[],[define([AC_PROG_CXX_GNU],defn([_AC_PROG_CXX_GNU]))])
# AC_PROG_CC
# FIXME: We temporarily define our own version of AC_PROG_CC. This is
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
# are probably using a cross compiler, which will not be able to fully
# link an executable. This is addressed in later versions of autoconf.
AC_DEFUN(LIB_AC_PROG_CC,
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
dnl Fool anybody using AC_PROG_CC.
AC_PROVIDE([AC_PROG_CC])
AC_CHECK_PROG(CC, gcc, gcc)
if test -z "$CC"; then
AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi
AC_PROG_CC_GNU
if test $ac_cv_prog_gcc = yes; then
GCC=yes
dnl Check whether -g works, even if CFLAGS is set, in case the package
dnl plays around with CFLAGS (such as to build both debugging and
dnl normal versions of a library), tasteless as that idea is.
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
AC_PROG_CC_G
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-O2"
fi
else
GCC=
test "${CFLAGS+set}" = set || CFLAGS="-g"
fi
])
This is a clone of the 2.13 AC_PROG_CC with some minor modifications:
specifically, the AC_PROG_CC_WORKS call was removed. With autoconf
2.50+, the internal structure of AC_PROG_CC is totally different, and
this definition breaks. (The "newer versions of autoconf" stuff was
someone's attempt to fix it, but it doesn't work.)
Someone on the autoconf team knew about this and tried to help out by
providing an undocumented macro called AC_NO_EXECUTABLES:
# AC_NO_EXECUTABLES
# -----------------
# FIXME: The GCC team has specific needs which the current Autoconf
# framework cannot solve elegantly. This macro implements a dirty
# hack until Autoconf is abble to provide the services its users
# needs.
#
# Several of the support libraries that are often built with GCC can't
# assume the tool-chain is already capable of linking a program: the
# compiler often expects to be able to link with some of such
# libraries.
#
# In several of these libraries, workarounds have been introduced to
# avoid the AC_PROG_CC_WORKS test, that would just abort their
# configuration. The introduction of AC_EXEEXT, enabled either by
# libtool or by CVS autoconf, have just made matters worse.
AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
[m4_divert_push([KILL])
AC_BEFORE([$0], [_AC_COMPILER_EXEEXT_WORKS])
AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
m4_define([_AC_COMPILER_EXEEXT_WORKS],
[cross_compiling=maybe
])
m4_define([_AC_COMPILER_EXEEXT],
[EXEEXT=
])
m4_define([AC_LINK_IFELSE],
[AC_FATAL([All the tests involving linking were disabled by $0])])
m4_divert_pop()dnl
])# AC_NO_EXECUTABLES
(lang.m4 from autoconf 2.56)
AC_NO_EXECUTABLES has two effects: (1) it disables the equivalent of
AC_PROG_CC_WORKS, which is what we need. But, (2) it causes autoconf
to barf if an AC_TRY_LINK test appears anywhere in the script being
generated. libstdc++-v3/configure.in has lots of AC_TRY_LINK tests.
They are only executed in a native compilation, but that's not good
enough for AC_NO_EXECUTABLES.
Going over it all again, I realize that we could probably just
redefine AC_NO_EXECUTABLES to do what we want. We'd have to
specialize its definition for every version of autoconf that we cared
about, and check at every new release that it hadn't broken, but it
would work. I guess it's not impossible after all.
zw
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 14:42 Joern Rennecke
0 siblings, 0 replies; 74+ messages in thread
From: Joern Rennecke @ 2002-12-05 14:42 UTC (permalink / raw)
To: Alan Modra
Cc: Zack Weinberg, Nathanael Nerode, klee, gdb-patches, binutils,
newlib, gcc
> It seems that the major impact of configuring parts of a tree using
> different autoconf versions will be on people using
> --enable-maintainer-mode, so another solution might be to extend
> --enable-maintainer-mode to accept a list of directories. I suspect
> most developers will only want --enable-maintainer-mode in the
> particular area they work on.
Unfortunately, for CPU port maintainers the area they work on is a
cross-section of gcc, newlib, binutils and gdb.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 14:40 Nathanael Nerode
2002-12-05 15:19 ` Zack Weinberg
0 siblings, 1 reply; 74+ messages in thread
From: Nathanael Nerode @ 2002-12-05 14:40 UTC (permalink / raw)
To: zack, gdb-patches, binutils, newlib, gcc
>I'd like to remind everyone involved that last I checked it was flat
>impossible to do what libstdc++-v3/configure.in needs to do, using
>autoconf 2.5x. I am not particularly sanguine about the situation
Flat impossible?
Wow.
And for the top level, all I had to do was define my own entire set of
macros to replace the AC_CHECK_TOOL and AC_PROG_* collection. :-)
I'd be interested to hear more about the problem. Why can't it be dealt
with by using private macros?
--Nathanael
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 12:23 ` Ian Lance Taylor
@ 2002-12-05 14:29 ` Klee Dienes
0 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 14:29 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: binutils, gdb-patches
Sure, but is it really a common situation where we are neither able to
revert to a previous released version of libtool, or get a release of
the upstream tools made with the needed fix in a timely fashion?
[ Here I wake up from my optimistic reverie and proceed to answer my
own rhetorical question: ]
The answer to this, of course, is "yes," and I agree that poor
backwards compatibility from autoconf-2.13 to autoconf-2.50 is the real
source of the problem here. My point is that the current solution
doesn't seem to be addressing the real problem --- we have essentially
created our own forked versions of all of the autotools, with no
visible plans to re-merge to the FSF version, and no intent to maintain
the forked version on our own.
I'm not arguing that it will never be necessary to fork our own version
of autotools in the case of a short-term emergency (well actually, I
might argue that, but I'm not arguing it here). I'm just arguing that
a forked version of binutils with no clear upstream referent is a
particularly bad state of affairs:
-rw-r--r-- 1 77 1002 259210 Feb 27 2000
autoconf-000227.tar.bz2
-rw-r--r-- 1 77 1002 292827 Feb 27 2000
automake-000227.tar.bz2
-rw-r--r-- 1 77 1002 519132 Feb 27 2000
gettext-000227.tar.bz2
-rw-r--r-- 1 77 1002 370603 Feb 27 2000
libtool-000227.tar.bz2
On Thursday, December 5, 2002, at 03:24 PM, Ian Lance Taylor wrote:
> Klee Dienes <klee@apple.com> writes:
>
>> As long as the versions of the tools are specified by a version string
>> referencing an official version in README-maintainer-mode, and not by
>> "whatever version is on sourceware.cygnus.com", I'm happy.
>
> That works until there is a bug which is a problem for the binutils
> but there is not yet a new release.
>
> It's not a theoretical point. That's the reason we started using
> versions stored on sources.redhat.com in the first place.
>
> Ian
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 5:26 ` Hans-Peter Nilsson
@ 2002-12-05 14:07 ` Alan Modra
0 siblings, 0 replies; 74+ messages in thread
From: Alan Modra @ 2002-12-05 14:07 UTC (permalink / raw)
To: Hans-Peter Nilsson; +Cc: Klee Dienes, binutils, gdb-patches
On Thu, Dec 05, 2002 at 08:26:53AM -0500, Hans-Peter Nilsson wrote:
> On Thu, 5 Dec 2002, Klee Dienes wrote:
> > The following patch updates the following directories to use the latest
> > versions of libtool, autoconf, and automake:
>
> Bravo! Great!
Agreed, but it needs a little more work. I ran Klee's script (minus
the rm and cvs update - I want to keep a few local mods!) last night
and my binutils builds went uneventfully. There were a few make
warnings about commands being overridden, but that's a minor problem.
The big problem, as others have noted, is that "make install" doesn't
install properly on a native build. ie. with --build=i686-linux
--host=i686-linux --target=i686-linux I get tools installed as
i686-linux-$tool rather than plain $tool. It seems that
program_prefix is now set by configure whenever --target is
specified, which I suppose is not a bad idea. I'm happy to have the
tools installed as i686-linux-$tool, but I want them installed as
$tool too!
One other nit: Your changelog mentions binutils/configure where
you're in fact patching the toplevel configure. You probably need to
explain why this particular patch was necessary too.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:54 ` Klee Dienes
` (2 preceding siblings ...)
2002-12-05 10:59 ` Andrew Cagney
@ 2002-12-05 13:59 ` Ben Elliston
2002-12-05 13:41 ` Ben Elliston
3 siblings, 1 reply; 74+ messages in thread
From: Ben Elliston @ 2002-12-05 13:59 UTC (permalink / raw)
To: gdb-patches; +Cc: binutils
>>>>> "Klee" == Klee Dienes <klee@apple.com> writes:
Klee> The idea here is that it's relatively straightforward for a
Klee> binutils/gdb maintainer to know what to do when updating a
Klee> configuration file (get the most recent version of the tools
Klee> from the FSF and use them), and that we have a natural
Klee> tendency to stay up-to-date with automake/autoconf changes,
Klee> without having flag-day style upgrades become an issue.
The flag day has less to do with the binutils and GCC development
process and more to do with Autoconf development. Some poor decisions
have been made there recently with respect to backward compatibility.
Ben
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 13:59 ` Ben Elliston
@ 2002-12-05 13:41 ` Ben Elliston
0 siblings, 0 replies; 74+ messages in thread
From: Ben Elliston @ 2002-12-05 13:41 UTC (permalink / raw)
To: gdb-patches; +Cc: binutils
>>>>> "Klee" == Klee Dienes <klee@apple.com> writes:
Klee> The idea here is that it's relatively straightforward for a
Klee> binutils/gdb maintainer to know what to do when updating a
Klee> configuration file (get the most recent version of the tools
Klee> from the FSF and use them), and that we have a natural
Klee> tendency to stay up-to-date with automake/autoconf changes,
Klee> without having flag-day style upgrades become an issue.
The flag day has less to do with the binutils and GCC development
process and more to do with Autoconf development. Some poor decisions
have been made there recently with respect to backward compatibility.
Ben
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 13:08 ` Andrew Cagney
@ 2002-12-05 13:18 ` Klee Dienes
0 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 13:18 UTC (permalink / raw)
To: Andrew Cagney; +Cc: binutils, gdb-patches
On Thursday, December 5, 2002, at 04:08 PM, Andrew Cagney wrote:
>> The 3-argument form works with both autoconf-2.13 and autoconf-2.50+.
>
> So the three argument form fixes can be committed now?
Yes, that should be fine, though I'd have to do a test-configure/build
of it to be 100% sure.
> Right. But can the fixes be committed now (while we potentially
> twiddle our thums waiting for the end of the northern winter :-). I
> get the feeling that the answer is no. Outch!
We could use YLWRAP = $(srcdir)/ylwrap instead of YLWRAP =
$(srcdir)/../ylwrap, and then include the new-style ylwrap in the GDB
directory, if we chose to. I suspect it'd be better just to wait until
we are willing/able to use automake to generate the makefiles for
binutils/ld/gas, but I have no strong opinion either way.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 13:13 ` Andrew Cagney
@ 2002-12-05 13:16 ` Daniel Jacobowitz
0 siblings, 0 replies; 74+ messages in thread
From: Daniel Jacobowitz @ 2002-12-05 13:16 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Klee Dienes, binutils, gdb-patches
On Thu, Dec 05, 2002 at 04:13:14PM -0500, Andrew Cagney wrote:
>
> >>I'm not sure I understand the question, but I'll elaborate on the
> >>situation a bit in hopes that I can answer it anyway.
> >>
> >>Automake-1.4p5 generates Makefile.in's that use the syntax:
> >>
> >>ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
> >>
> >>Automake-1.7 generates Makefile.in's that use the syntax:
> >>
> >>ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
> >>
> >>So if we use automake-1.7 to build Makefile.in binutils/ld/gas, we need
> >>to use the ylwrap from automake-1.7 as well, which uses the new syntax
> >>and therefore requires the change to the GDB Makefile.in. I don't
> >>think it's possible to have a version of the GDB Makefile.in that works
> >>with both versions.
> >
> >
> >But, to clarify even further: if we use the new ylwrap from Automake
> >1.7, regardless of what version of _automake_ we are using, then Klee's
> >patch to gdb/Makefile.in will work.
> >
> >This means that all directories which use both automake and ylwrap must
> >be converted at the same time however.
>
> [australian expletive deleted]
>
> But GDB, which doesn't use automake, can start using the new one
> (locally) now, and get the patches committed?
Probably not. It expects it to be in the toplevel directory. Might be
able to override YLWRAP for now.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 13:03 ` Daniel Jacobowitz
@ 2002-12-05 13:13 ` Andrew Cagney
2002-12-05 13:16 ` Daniel Jacobowitz
0 siblings, 1 reply; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 13:13 UTC (permalink / raw)
To: Daniel Jacobowitz, Klee Dienes; +Cc: binutils, gdb-patches
>> I'm not sure I understand the question, but I'll elaborate on the
>> situation a bit in hopes that I can answer it anyway.
>>
>> Automake-1.4p5 generates Makefile.in's that use the syntax:
>>
>> ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
>>
>> Automake-1.7 generates Makefile.in's that use the syntax:
>>
>> ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
>>
>> So if we use automake-1.7 to build Makefile.in binutils/ld/gas, we need
>> to use the ylwrap from automake-1.7 as well, which uses the new syntax
>> and therefore requires the change to the GDB Makefile.in. I don't
>> think it's possible to have a version of the GDB Makefile.in that works
>> with both versions.
>
>
> But, to clarify even further: if we use the new ylwrap from Automake
> 1.7, regardless of what version of _automake_ we are using, then Klee's
> patch to gdb/Makefile.in will work.
>
> This means that all directories which use both automake and ylwrap must
> be converted at the same time however.
[australian expletive deleted]
But GDB, which doesn't use automake, can start using the new one
(locally) now, and get the patches committed?
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 12:55 ` Klee Dienes
2002-12-05 13:03 ` Daniel Jacobowitz
@ 2002-12-05 13:08 ` Andrew Cagney
2002-12-05 13:18 ` Klee Dienes
1 sibling, 1 reply; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 13:08 UTC (permalink / raw)
To: Klee Dienes; +Cc: binutils, gdb-patches
> The 3-argument form works with both autoconf-2.13 and autoconf-2.50+.
>
So the three argument form fixes can be committed now?
> I'm not sure I understand the question, but I'll elaborate on the situation a bit in hopes that I can answer it anyway.
>
> Automake-1.4p5 generates Makefile.in's that use the syntax:
>
> ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
>
> Automake-1.7 generates Makefile.in's that use the syntax:
>
> ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
>
> So if we use automake-1.7 to build Makefile.in binutils/ld/gas, we need to use the ylwrap from automake-1.7 as well, which uses the new syntax and therefore requires the change to the GDB Makefile.in. I don't think it's possible to have a version of the GDB Makefile.in that works with both versions.
Right. But can the fixes be committed now (while we potentially twiddle
our thums waiting for the end of the northern winter :-). I get the
feeling that the answer is no. Outch!
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 12:55 ` Klee Dienes
@ 2002-12-05 13:03 ` Daniel Jacobowitz
2002-12-05 13:13 ` Andrew Cagney
2002-12-05 13:08 ` Andrew Cagney
1 sibling, 1 reply; 74+ messages in thread
From: Daniel Jacobowitz @ 2002-12-05 13:03 UTC (permalink / raw)
To: Klee Dienes; +Cc: Andrew Cagney, binutils, gdb-patches
On Thu, Dec 05, 2002 at 03:55:37PM -0500, Klee Dienes wrote:
>
> On Thursday, December 5, 2002, at 12:00 PM, Andrew Cagney wrote:
>
> >>On Thursday, December 5, 2002, at 10:43 AM, Andrew Cagney wrote:
> >>>I don't understand this:
> >>>- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp
> >>>-- $(YFLAGS)
> >>>+ $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp --
> >>>"$(YACC)" $(YFLAGS)
> >>>isn't it independant of the switch?
> >>>
> >>It's a result of using the ylwrap from autoconf-1.7, which is needed
> >>since the rules for the binutils/ parsers are automatically generated
> >>by automake.
> >>
> >Does it work now?
>
> I'm not sure I understand the question, but I'll elaborate on the
> situation a bit in hopes that I can answer it anyway.
>
> Automake-1.4p5 generates Makefile.in's that use the syntax:
>
> ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
>
> Automake-1.7 generates Makefile.in's that use the syntax:
>
> ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
>
> So if we use automake-1.7 to build Makefile.in binutils/ld/gas, we need
> to use the ylwrap from automake-1.7 as well, which uses the new syntax
> and therefore requires the change to the GDB Makefile.in. I don't
> think it's possible to have a version of the GDB Makefile.in that works
> with both versions.
But, to clarify even further: if we use the new ylwrap from Automake
1.7, regardless of what version of _automake_ we are using, then Klee's
patch to gdb/Makefile.in will work.
This means that all directories which use both automake and ylwrap must
be converted at the same time however.
> The 3-argument form works with both autoconf-2.13 and autoconf-2.50+.
>
> Is autoconf-2.13 really the current official autoconf? The autoconf
> release announcements don't make that at all clear:
>
> Or do you mean that autoconf-2.13++ is the current official version for
> Binutils/BFD (in which case I withdraw my question)?
Right, that's what Andrew meant, I think.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:01 ` Andrew Cagney
@ 2002-12-05 12:55 ` Klee Dienes
2002-12-05 13:03 ` Daniel Jacobowitz
2002-12-05 13:08 ` Andrew Cagney
0 siblings, 2 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 12:55 UTC (permalink / raw)
To: Andrew Cagney; +Cc: binutils, gdb-patches
On Thursday, December 5, 2002, at 12:00 PM, Andrew Cagney wrote:
>> On Thursday, December 5, 2002, at 10:43 AM, Andrew Cagney wrote:
>>> I don't understand this:
>>> - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp
>>> -- $(YFLAGS)
>>> + $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp --
>>> "$(YACC)" $(YFLAGS)
>>> isn't it independant of the switch?
>>>
>> It's a result of using the ylwrap from autoconf-1.7, which is needed
>> since the rules for the binutils/ parsers are automatically generated
>> by automake.
>>
> Does it work now?
I'm not sure I understand the question, but I'll elaborate on the
situation a bit in hopes that I can answer it anyway.
Automake-1.4p5 generates Makefile.in's that use the syntax:
ylwrap PROGRAM INPUT [OUTPUT DESIRED]... -- [ARGS]...
Automake-1.7 generates Makefile.in's that use the syntax:
ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
So if we use automake-1.7 to build Makefile.in binutils/ld/gas, we need
to use the ylwrap from automake-1.7 as well, which uses the new syntax
and therefore requires the change to the GDB Makefile.in. I don't
think it's possible to have a version of the GDB Makefile.in that works
with both versions.
>>> Same with this?
>>> - AC_DEFINE(HAVE_LONG_DOUBLE)
>>> + AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double'
>>> type works])
>>> (or did the new autoconf change the interface causing a warning if
>>> the three parameters were not present?).
>
>> Not even a warning: it blows out autoheader with an error. The new
>> AC_DEFINE interface deprecates the use of a template file, and
>> instead requires all the information to be provided by the AC_DEFINE
>> commands (it's particularly annoying since the warning about the
>> existence of a template file is about 10 lines long, ALL CAPS, and
>> can't be turned off with --warnings=none).
>
> Ulgh. Same here though, does this work with autoconf 2.13++ (the
> current offical autoconf)?
The 3-argument form works with both autoconf-2.13 and autoconf-2.50+.
Is autoconf-2.13 really the current official autoconf? The autoconf
release announcements don't make that at all clear:
> - Why should I upgrade from 2.13?
>
> This version is no longer maintained. It does not address recent
> architectures, recent compilers etc. We know that upgrading from 2.13
> to 2.5x is not an easy task, especially because the Autoconf 2.13 was
> extremely tolerant of incorrect macro invocations, but waiting longer
> endangers the portability of your package and only delays the
> conversion to newer Autoconf versions. Worse: some maintainers now
> spend a significant amount of time fixing bugs in 2.13 or backporting
> macros from 2.55.
Or do you mean that autoconf-2.13++ is the current official version for
Binutils/BFD (in which case I withdraw my question)?
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 12:11 ` Klee Dienes
@ 2002-12-05 12:23 ` Ian Lance Taylor
2002-12-05 14:29 ` Klee Dienes
0 siblings, 1 reply; 74+ messages in thread
From: Ian Lance Taylor @ 2002-12-05 12:23 UTC (permalink / raw)
To: Klee Dienes
Cc: Doug Evans, Daniel Jacobowitz, Maciej W. Rozycki, DJ Delorie,
ac131313, binutils, gdb-patches
Klee Dienes <klee@apple.com> writes:
> As long as the versions of the tools are specified by a version string
> referencing an official version in README-maintainer-mode, and not by
> "whatever version is on sourceware.cygnus.com", I'm happy.
That works until there is a bug which is a problem for the binutils
but there is not yet a new release.
It's not a theoretical point. That's the reason we started using
versions stored on sources.redhat.com in the first place.
Ian
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 10:59 ` Doug Evans
@ 2002-12-05 12:11 ` Klee Dienes
2002-12-05 12:23 ` Ian Lance Taylor
2002-12-06 5:34 ` Maciej W. Rozycki
1 sibling, 1 reply; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 12:11 UTC (permalink / raw)
To: Doug Evans
Cc: Daniel Jacobowitz, Maciej W. Rozycki, DJ Delorie, ac131313,
binutils, gdb-patches
As long as the versions of the tools are specified by a version string
referencing an official version in README-maintainer-mode, and not by
"whatever version is on sourceware.cygnus.com", I'm happy.
In practice I can't imagine there would be a problem with versions
disappearing from the FSF site before we had upgraded to the current
version (the current autoconf repository has versions of autoconf going
back to 1996). But if that's a concern, we can always replicate
official FSF releases to a local directory and cache them there.
On Thursday, December 5, 2002, at 01:58 PM, Doug Evans wrote:
> Klee Dienes writes:
>> I'd argue that we should:
>>
>> 1) Specify the versions of autoconf/automake/libtool/gettext by
>> reference to official tarballs from ftp.gnu.org.
>
> This places a requirement on the maintainers of ftp.gnu.org
> to not delete said tarballs until binutils has been updated.
> I dont' think you or they want that kind of coupling.
> Better to uncouple things and have your own tarballs.
> Then you can upgrade according to your schedule, not theirs.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:54 ` Klee Dienes
2002-12-05 10:10 ` Maciej W. Rozycki
2002-12-05 10:59 ` Doug Evans
@ 2002-12-05 10:59 ` Andrew Cagney
2002-12-06 5:52 ` Maciej W. Rozycki
2002-12-05 13:59 ` Ben Elliston
3 siblings, 1 reply; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 10:59 UTC (permalink / raw)
To: Klee Dienes
Cc: Daniel Jacobowitz, Maciej W. Rozycki, DJ Delorie, binutils, gdb-patches
> I actually found the files in ftp://sources.redhat.com/pub/binutils to be an impediment to using the correct versions. For a long time I had no idea they even existed, and then once I found out about them, it was even more confusing, since they weren't the versions that were actually used.
As a maintainer you should bring peoples attention to the fact that they
used the wrong autoconf the moment you notice it.
> I'd argue that we should:
>
> 1) Specify the versions of autoconf/automake/libtool/gettext by reference to official tarballs from ftp.gnu.org. In general, define the version used to be "the most recent officially released version of each tool".
Reality check. If the offical autoconf has a bug, GDB and BINUTILS will
be forced to use a local version :-/
> and either
>
> 2a) Consider updates to generated files caused by re-configuring with the most recent released version of the tools as an "obvious fix".
This is already the case. However, it doesn't address the problem of an
erant maintainer.
> or (even better)
>
> 2b) Configure the CVS repository to run autoreconf using the most recent versions whenever a new configure.in/Makefile.in/Makefile.am is committed.
No. That discussion was considered for GDB and indent. Here the
problem is in maintainers being able to follow a procedure. Not a need
for a new tool.
> The idea here is that it's relatively straightforward for a binutils/gdb maintainer to know what to do when updating a configuration file (get the most recent version of the tools from the FSF and use them), and that we have a natural tendency to stay up-to-date with automake/autoconf changes, without having flag-day style upgrades become an issue.
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:54 ` Klee Dienes
2002-12-05 10:10 ` Maciej W. Rozycki
@ 2002-12-05 10:59 ` Doug Evans
2002-12-05 12:11 ` Klee Dienes
2002-12-06 5:34 ` Maciej W. Rozycki
2002-12-05 10:59 ` Andrew Cagney
2002-12-05 13:59 ` Ben Elliston
3 siblings, 2 replies; 74+ messages in thread
From: Doug Evans @ 2002-12-05 10:59 UTC (permalink / raw)
To: Klee Dienes
Cc: Daniel Jacobowitz, Maciej W. Rozycki, DJ Delorie, ac131313,
binutils, gdb-patches
Klee Dienes writes:
> I'd argue that we should:
>
> 1) Specify the versions of autoconf/automake/libtool/gettext by
> reference to official tarballs from ftp.gnu.org.
This places a requirement on the maintainers of ftp.gnu.org
to not delete said tarballs until binutils has been updated.
I dont' think you or they want that kind of coupling.
Better to uncouple things and have your own tarballs.
Then you can upgrade according to your schedule, not theirs.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 10:15 Michael Elizabeth Chastain
@ 2002-12-05 10:37 ` Klee Dienes
0 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 10:37 UTC (permalink / raw)
To: Michael Elizabeth Chastain
Cc: drow, ac131313, binutils, dj, gdb-patches, macro
That sounds fine to me. My main interest here is to make updating to
the most recent
version of the released tools be considered the "standard" thing to do.
On Thursday, December 5, 2002, at 01:15 PM, Michael Elizabeth Chastain
wrote:
> Klee Dienes wrote:
>> 1) Specify the versions of autoconf/automake/libtool/gettext by
>> reference to official tarballs from ftp.gnu.org. In general, define
>> the version used to be "the most recent officially released version of
>> each tool".
>
> I'm not a heavy autotools guy, but I do try to maintain a standardized
> build + test enviroment for gdb testing. I agree with the idea of
> referring to official tarballs from ftp.gnu.org. I strongly think that
> the pointer should say "autoconf 2.56", for example, rather than "the
> most recent officialy released version of autoconf".
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:42 ` DJ Delorie
@ 2002-12-05 10:28 ` Klee Dienes
0 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 10:28 UTC (permalink / raw)
To: DJ Delorie; +Cc: binutils, gdb-patches
My primary interest in all of this is to fully merge the Apple
Binutils/GDB sources into the FSF tree, which requires some changes to
libtool that are only in more recent versions of libtool/autoconf.
My secondary interest is that I seem to spend a lot of time hacking
Binutils/GDB makefiles, and I'd like that process to be as painless as
possible.
I'm in a moderate hurry for the gdb/binutils changes, mainly because
Apple needs to have some form of the changes to enable the FSF sources
to build properly on our platform, and I find the mental load of
maintaining the divergent sources to be a headache, particularly when
preparing patches.
I'm in no particular hurry for the libiberty changes, since it doesn't
use libtool anyway and the current build setup works fine for Apple in
the short-term. I eventually hope to libtool-ize libiberty as well,
but that can certainly wait until an appropriate time in the GCC
release cycle.
On Thursday, December 5, 2002, at 12:42 PM, DJ Delorie wrote:
>
> By the time the issues are worked out for gdb/binutils and the switch
> made there, gcc will hopefully have branched. Plus the gcc head is
> more stable than the branch anyway, which is what I'd prefer be the
> main copy for everyone else.
>
> How much of a hurry are you in, anyway?
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 10:15 Michael Elizabeth Chastain
2002-12-05 10:37 ` Klee Dienes
0 siblings, 1 reply; 74+ messages in thread
From: Michael Elizabeth Chastain @ 2002-12-05 10:15 UTC (permalink / raw)
To: drow, klee; +Cc: ac131313, binutils, dj, gdb-patches, macro
Klee Dienes wrote:
> 1) Specify the versions of autoconf/automake/libtool/gettext by
> reference to official tarballs from ftp.gnu.org. In general, define
> the version used to be "the most recent officially released version of
> each tool".
I'm not a heavy autotools guy, but I do try to maintain a standardized
build + test enviroment for gdb testing. I agree with the idea of
referring to official tarballs from ftp.gnu.org. I strongly think that
the pointer should say "autoconf 2.56", for example, rather than "the
most recent officialy released version of autoconf".
If the pointer said "most recent officially released version of
autoconf", and I followed those instructions, then I would unwittingly
be using a different version of autoconf (2.57) then the version you are
standardizing on (2.56). I would prefer an absolute version number,
and we kick it forward when we are happy with the new release + when
the project is not frozen in that regard.
I'm comfortable with the ftp://sources.redhat.com/pub/binutils mirror if
we really do enforce that the versions in there are the versions that
we use. But I'm more comfortable if src/README-maintainer-mode points
directly to ftp.gnu.org. It seems easier to manage a version list in
README-maintainer-mode rather than ftp://sources.redhat.com/pub/binutils.
Also as a gdb maintainer I can notice changes in README-maintainer-mode
easier than I can notice changes in ftp://sources.redhat.com/pub/binutils.
(BTW the top level src/README-maintainer-mode file still refers to
ftp://sourceware.cygnus.com).
Michael C
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:54 ` Klee Dienes
@ 2002-12-05 10:10 ` Maciej W. Rozycki
2002-12-05 10:59 ` Doug Evans
` (2 subsequent siblings)
3 siblings, 0 replies; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-05 10:10 UTC (permalink / raw)
To: Klee Dienes
Cc: Daniel Jacobowitz, DJ Delorie, ac131313, binutils, gdb-patches
On Thu, 5 Dec 2002, Klee Dienes wrote:
> The idea here is that it's relatively straightforward for a
> binutils/gdb maintainer to know what to do when updating a
> configuration file (get the most recent version of the tools from the
> FSF and use them), and that we have a natural tendency to stay
> up-to-date with automake/autoconf changes, without having flag-day
> style upgrades become an issue.
That would be the most acceptable approach to me. Of the tools involved,
only autoconf changed significantly recently with its transition from 2.13
to 2.50. But versions 2.5x are around long enough now to get more or less
stabilized, so hesitating from going forward and making an upgrade can
only impede development.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:44 ` Daniel Jacobowitz
2002-12-05 9:19 ` Elena Zannoni
@ 2002-12-05 9:54 ` Klee Dienes
2002-12-05 10:10 ` Maciej W. Rozycki
` (3 more replies)
1 sibling, 4 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 9:54 UTC (permalink / raw)
To: Daniel Jacobowitz
Cc: Maciej W. Rozycki, DJ Delorie, ac131313, binutils, gdb-patches
I actually found the files in ftp://sources.redhat.com/pub/binutils to
be an impediment to using the correct versions. For a long time I had
no idea they even existed, and then once I found out about them, it was
even more confusing, since they weren't the versions that were actually
used.
I'd argue that we should:
1) Specify the versions of autoconf/automake/libtool/gettext by
reference to official tarballs from ftp.gnu.org. In general, define
the version used to be "the most recent officially released version of
each tool".
and either
2a) Consider updates to generated files caused by re-configuring with
the most recent released version of the tools as an "obvious fix".
or (even better)
2b) Configure the CVS repository to run autoreconf using the most
recent versions whenever a new configure.in/Makefile.in/Makefile.am is
committed.
The idea here is that it's relatively straightforward for a
binutils/gdb maintainer to know what to do when updating a
configuration file (get the most recent version of the tools from the
FSF and use them), and that we have a natural tendency to stay
up-to-date with automake/autoconf changes, without having flag-day
style upgrades become an issue.
On Thu, Dec 05, 2002 at 05:39:54PM +0100, Maciej W. Rozycki wrote:
> They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> for years.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 9:37 ` Klee Dienes
@ 2002-12-05 9:42 ` DJ Delorie
2002-12-05 10:28 ` Klee Dienes
0 siblings, 1 reply; 74+ messages in thread
From: DJ Delorie @ 2002-12-05 9:42 UTC (permalink / raw)
To: klee; +Cc: binutils, gdb-patches
> As far as I can tell offhand, none of the other patches depend on
> libiberty being updated, so one option is to upgrade the other
> directories, and leave libiberty alone.
That would be fine. If you had a patch that depended on libiberty
being upgraded, I'd probably question it anyway.
> The downside of this is that gcc/binutils folks now need to keep
> multiple versions of the tools around, and I imagine it would play
> hell with --enable-maintainer-mode.
You didn't propose changing gcc, newlib, cygwin, sid, or many other
projects, so this will be an issue regardless.
> In what way is it a bad time to change libiberty?
GCC is getting ready to branch for a release. After the branch, we'll
merge bib and be back to the usual openness.
> Would it be possible to convert the libiberty on the bib-branch, and
> import the binutils/gdb version from there?
By the time the issues are worked out for gdb/binutils and the switch
made there, gcc will hopefully have branched. Plus the gcc head is
more stable than the branch anyway, which is what I'd prefer be the
main copy for everyone else.
How much of a hurry are you in, anyway?
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:28 ` DJ Delorie
@ 2002-12-05 9:37 ` Klee Dienes
2002-12-05 9:42 ` DJ Delorie
0 siblings, 1 reply; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 9:37 UTC (permalink / raw)
To: DJ Delorie; +Cc: binutils, gdb-patches
As far as I can tell offhand, none of the other patches depend on
libiberty being updated, so one option is to upgrade the other
directories, and leave libiberty alone.
The downside of this is that gcc/binutils folks now need to keep
multiple versions of the tools around, and I imagine it would play hell
with --enable-maintainer-mode.
In what way is it a bad time to change libiberty? I'm not arguing with
the statement, just trying to understand the constraints a bit better.
Would it be possible to convert the libiberty on the bib-branch, and
import the binutils/gdb version from there?
On Thursday, December 5, 2002, at 11:28 AM, DJ Delorie wrote:
>
>> There is a problem with libiberty and utils because GCC have their
>> feet stuck in the ice
>
> Plus the libiberty master *is* gcc, so you can't apply the patches to
> just the src side anyway. The libiberty in src is a "mere copy" of
> the one in gcc. You must apply libiberty patches to gcc either at the
> same time or before applying them to src (and now is a bad time to
> change gcc's libiberty).
>
> Utils is not part of gcc.
>
>> (unless src, again splits off from GCC, but I suspect here we don't
>> want to).
>
> Sorry, won't happen for libiberty.
>
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 7:43 ` Andrew Cagney
2002-12-05 8:22 ` Klee Dienes
2002-12-05 8:28 ` DJ Delorie
@ 2002-12-05 9:31 ` H. J. Lu
2 siblings, 0 replies; 74+ messages in thread
From: H. J. Lu @ 2002-12-05 9:31 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Klee Dienes, binutils, gdb-patches
On Thu, Dec 05, 2002 at 10:43:13AM -0500, Andrew Cagney wrote:
> Er, wow! Few technical hurdles to overcome first.
>
> Anyone know what happens if only half the directories get converted?
>
> There is a problem with libiberty and utils because GCC have their feet
> stuck in the ice (unless src, again splits off from GCC, but I suspect
> here we don't want to).
>
That is my major concern. I have toolchain setups of gcc 2.96 + the
current binutils, gcc 3.2 + the current binutils, gcc 3.2-redhat-8 +
the current binutils and gcc 3.3 + the current binutils. Will they
ever work together?
H.J.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:44 ` Daniel Jacobowitz
@ 2002-12-05 9:19 ` Elena Zannoni
2002-12-05 9:54 ` Klee Dienes
1 sibling, 0 replies; 74+ messages in thread
From: Elena Zannoni @ 2002-12-05 9:19 UTC (permalink / raw)
To: Daniel Jacobowitz
Cc: Maciej W. Rozycki, DJ Delorie, klee, ac131313, binutils, gdb-patches
Daniel Jacobowitz writes:
> On Thu, Dec 05, 2002 at 05:39:54PM +0100, Maciej W. Rozycki wrote:
> > On Thu, 5 Dec 2002, Daniel Jacobowitz wrote:
> >
> > > > They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> > > > for years.
> > >
> > > Let me rephrase that in two parts:
> > > - keep them updated with the new ones
> > > - be more enthusiastic about recommending people use them. Most do
> > > not.
> >
> > Too bad special versions are required at all. It's a major PITA to keep
> > specific versions for various packages
>
> It's not that they're special - it's that they're _consistent_ that
> matters.
>
Can a note with a link be added to the 'contribute' gdb page?
I, for instance, keep loosing the reference.
Elena
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 7:44 ` Maciej W. Rozycki
@ 2002-12-05 9:01 ` Klee Dienes
0 siblings, 0 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 9:01 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: binutils, gdb-patches
Ah, indeed it does. I had tested a cross-build, but didn't think to
test 'make install' on the completed build. I'll take a look, thanks.
On Thursday, December 5, 2002, at 10:44 AM, Maciej W. Rozycki wrote:
> Does it work for both native and cross builds? Last time I checked,
> autoconf 2.5x considered all binutils builds are for cross tools
> because
> of the --target option set unconditionally by the top-level configure
> and
> as a result prefixed all tool names with $target_alias upon install.
> The
> patch doesn't seem to deal with it.
>
> Otherwise -- nice work, thanks.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:22 ` Klee Dienes
@ 2002-12-05 9:01 ` Andrew Cagney
2002-12-05 12:55 ` Klee Dienes
0 siblings, 1 reply; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 9:01 UTC (permalink / raw)
To: Klee Dienes; +Cc: binutils, gdb-patches
> On Thursday, December 5, 2002, at 10:43 AM, Andrew Cagney wrote:
>
>> I don't understand this:
>>
>> - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS)
>> + $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)" $(YFLAGS)
>>
>> isn't it independant of the switch?
>
> It's a result of using the ylwrap from autoconf-1.7, which is needed since the rules for the binutils/ parsers are automatically generated by automake.
Does it work now?
>> Same with this?
>>
>> - AC_DEFINE(HAVE_LONG_DOUBLE)
>> + AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type works])
>>
>> (or did the new autoconf change the interface causing a warning if the three parameters were not present?).
> Not even a warning: it blows out autoheader with an error. The new AC_DEFINE interface deprecates the use of a template file, and instead requires all the information to be provided by the AC_DEFINE commands (it's particularly annoying since the warning about the existence of a template file is about 10 lines long, ALL CAPS, and can't be turned off with --warnings=none).
>
Ulgh. Same here though, does this work with autoconf 2.13++ (the
current offical autoconf)?
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:40 ` Maciej W. Rozycki
@ 2002-12-05 8:44 ` Daniel Jacobowitz
2002-12-05 9:19 ` Elena Zannoni
2002-12-05 9:54 ` Klee Dienes
0 siblings, 2 replies; 74+ messages in thread
From: Daniel Jacobowitz @ 2002-12-05 8:44 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: DJ Delorie, klee, ac131313, binutils, gdb-patches
On Thu, Dec 05, 2002 at 05:39:54PM +0100, Maciej W. Rozycki wrote:
> On Thu, 5 Dec 2002, Daniel Jacobowitz wrote:
>
> > > They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> > > for years.
> >
> > Let me rephrase that in two parts:
> > - keep them updated with the new ones
> > - be more enthusiastic about recommending people use them. Most do
> > not.
>
> Too bad special versions are required at all. It's a major PITA to keep
> specific versions for various packages
It's not that they're special - it's that they're _consistent_ that
matters.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:35 ` Daniel Jacobowitz
2002-12-05 8:37 ` DJ Delorie
@ 2002-12-05 8:40 ` Maciej W. Rozycki
2002-12-05 8:44 ` Daniel Jacobowitz
1 sibling, 1 reply; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-05 8:40 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: DJ Delorie, klee, ac131313, binutils, gdb-patches
On Thu, 5 Dec 2002, Daniel Jacobowitz wrote:
> > They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> > for years.
>
> Let me rephrase that in two parts:
> - keep them updated with the new ones
> - be more enthusiastic about recommending people use them. Most do
> not.
Too bad special versions are required at all. It's a major PITA to keep
specific versions for various packages
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:35 ` Daniel Jacobowitz
@ 2002-12-05 8:37 ` DJ Delorie
2002-12-05 8:40 ` Maciej W. Rozycki
1 sibling, 0 replies; 74+ messages in thread
From: DJ Delorie @ 2002-12-05 8:37 UTC (permalink / raw)
To: drow; +Cc: klee, ac131313, binutils, gdb-patches
> > > 2. I'd really, really like it if we had tarballs of the _exact_
> > > version of all four autotools up on sources.redhat.com,
> >
> > They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> > for years.
>
> Let me rephrase that in two parts:
> - keep them updated with the new ones
> - be more enthusiastic about recommending people use them. Most do
> not.
Hey, I didn't say it was perfect ;-)
I suppose we could rig up some auto-autoconf-commit script that just
did the right thing whenever configure.in's are committed.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:29 ` DJ Delorie
@ 2002-12-05 8:35 ` Daniel Jacobowitz
2002-12-05 8:37 ` DJ Delorie
2002-12-05 8:40 ` Maciej W. Rozycki
0 siblings, 2 replies; 74+ messages in thread
From: Daniel Jacobowitz @ 2002-12-05 8:35 UTC (permalink / raw)
To: DJ Delorie; +Cc: klee, ac131313, binutils, gdb-patches
On Thu, Dec 05, 2002 at 11:29:45AM -0500, DJ Delorie wrote:
>
> > 2. I'd really, really like it if we had tarballs of the _exact_
> > version of all four autotools up on sources.redhat.com,
>
> They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
> for years.
Let me rephrase that in two parts:
- keep them updated with the new ones
- be more enthusiastic about recommending people use them. Most do
not.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 8:09 ` Daniel Jacobowitz
@ 2002-12-05 8:29 ` DJ Delorie
2002-12-05 8:35 ` Daniel Jacobowitz
0 siblings, 1 reply; 74+ messages in thread
From: DJ Delorie @ 2002-12-05 8:29 UTC (permalink / raw)
To: drow; +Cc: klee, ac131313, binutils, gdb-patches
> 2. I'd really, really like it if we had tarballs of the _exact_
> version of all four autotools up on sources.redhat.com,
They're in ftp://sources.redhat.com/pub/binutils/ already. Have been
for years.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 7:43 ` Andrew Cagney
2002-12-05 8:22 ` Klee Dienes
@ 2002-12-05 8:28 ` DJ Delorie
2002-12-05 9:37 ` Klee Dienes
2002-12-05 9:31 ` H. J. Lu
2 siblings, 1 reply; 74+ messages in thread
From: DJ Delorie @ 2002-12-05 8:28 UTC (permalink / raw)
To: binutils; +Cc: gdb-patches
> There is a problem with libiberty and utils because GCC have their
> feet stuck in the ice
Plus the libiberty master *is* gcc, so you can't apply the patches to
just the src side anyway. The libiberty in src is a "mere copy" of
the one in gcc. You must apply libiberty patches to gcc either at the
same time or before applying them to src (and now is a bad time to
change gcc's libiberty).
Utils is not part of gcc.
> (unless src, again splits off from GCC, but I suspect here we don't
> want to).
Sorry, won't happen for libiberty.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-05 7:43 ` Andrew Cagney
@ 2002-12-05 8:22 ` Klee Dienes
2002-12-05 9:01 ` Andrew Cagney
2002-12-05 8:28 ` DJ Delorie
2002-12-05 9:31 ` H. J. Lu
2 siblings, 1 reply; 74+ messages in thread
From: Klee Dienes @ 2002-12-05 8:22 UTC (permalink / raw)
To: Andrew Cagney; +Cc: binutils, gdb-patches
On Thursday, December 5, 2002, at 10:43 AM, Andrew Cagney wrote:
> I don't understand this:
>
> - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp --
> $(YFLAGS)
> + $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)"
> $(YFLAGS)
>
> isn't it independant of the switch?
It's a result of using the ylwrap from autoconf-1.7, which is needed
since the rules for the binutils/ parsers are automatically generated
by automake.
> Same with this?
>
> - AC_DEFINE(HAVE_LONG_DOUBLE)
> + AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type
> works])
>
> (or did the new autoconf change the interface causing a warning if the
> three parameters were not present?).
Not even a warning: it blows out autoheader with an error. The new
AC_DEFINE interface deprecates the use of a template file, and instead
requires all the information to be provided by the AC_DEFINE commands
(it's particularly annoying since the warning about the existence of a
template file is about 10 lines long, ALL CAPS, and can't be turned off
with --warnings=none).
I actually made a point of not fixing any warnings during the
conversion that weren't symptoms of real errors. My reasoning is that
once the flag day part of the conversion is done, we can fix the
warnings in individual directories individually, but that for the
initial conversion it was best to keep it as simple as possible.
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
` (2 preceding siblings ...)
2002-12-05 7:44 ` Maciej W. Rozycki
@ 2002-12-05 8:09 ` Daniel Jacobowitz
2002-12-05 8:29 ` DJ Delorie
2002-12-30 16:10 ` Alexandre Oliva
4 siblings, 1 reply; 74+ messages in thread
From: Daniel Jacobowitz @ 2002-12-05 8:09 UTC (permalink / raw)
To: Klee Dienes; +Cc: Andrew Cagney, binutils, gdb-patches
On Thu, Dec 05, 2002 at 01:04:33AM -0500, Klee Dienes wrote:
> The following patch updates the following directories to use the latest
> versions of libtool, autoconf, and automake:
>
> bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils
>
> ltmain.sh (GNU libtool) 1.4.3
> autoconf (GNU Autoconf) 2.56
> automake (GNU automake) 1.7.1
> gettext (GNU gettext) 0.11.5
>
> To apply the patch, I put the following four files in a directory, and
> ran 'files.sh' in the top-level directory of the GDB/Binutils tree,
> then configured and built with 'build.sh' (the script was necessary in
> order to pass --enable-maintainer-mode to only the subdirectories for
> which it was appropriate). I then did a full build to verify that
> maintainer-mode was working, and used the files generated by
> --enable-maintainer-mode as the final versions. I'm not including the
> ChangeLog entries for all of the auto-generated files, as they're not
> overly interesting; I plan to generate them with a perl script based on
> the result of the build. I'm also not including the diffs to the
> generated files, since they were about 6Mb, and not all that
> interesting. I'm happy to provide either if requested.
>
Modulo other people's concerns, I pretty much like it. I've got two of
my own though.
1. Please make sure to coordinate with Nathanael Nerode, who is in the
middle of extensive autoconf-related work in the GCC repository.
2. I'd really, really like it if we had tarballs of the _exact_
version of all four autotools up on sources.redhat.com, and we required
(requested) all maintainers to download and use exactly those versions
when regenerating things. That makes it vaguely possible to hand-check
configure diffs. Red Hat and Debian ship slightly different versions
of autoconf 2.13...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
2002-12-05 5:26 ` Hans-Peter Nilsson
2002-12-05 7:43 ` Andrew Cagney
@ 2002-12-05 7:44 ` Maciej W. Rozycki
2002-12-05 9:01 ` Klee Dienes
2002-12-05 8:09 ` Daniel Jacobowitz
2002-12-30 16:10 ` Alexandre Oliva
4 siblings, 1 reply; 74+ messages in thread
From: Maciej W. Rozycki @ 2002-12-05 7:44 UTC (permalink / raw)
To: Klee Dienes; +Cc: Andrew Cagney, binutils, gdb-patches
On Thu, 5 Dec 2002, Klee Dienes wrote:
> The following patch updates the following directories to use the latest
> versions of libtool, autoconf, and automake:
>
> bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils
>
> ltmain.sh (GNU libtool) 1.4.3
> autoconf (GNU Autoconf) 2.56
> automake (GNU automake) 1.7.1
> gettext (GNU gettext) 0.11.5
Does it work for both native and cross builds? Last time I checked,
autoconf 2.5x considered all binutils builds are for cross tools because
of the --target option set unconditionally by the top-level configure and
as a result prefixed all tool names with $target_alias upon install. The
patch doesn't seem to deal with it.
Otherwise -- nice work, thanks.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
2002-12-05 5:26 ` Hans-Peter Nilsson
@ 2002-12-05 7:43 ` Andrew Cagney
2002-12-05 8:22 ` Klee Dienes
` (2 more replies)
2002-12-05 7:44 ` Maciej W. Rozycki
` (2 subsequent siblings)
4 siblings, 3 replies; 74+ messages in thread
From: Andrew Cagney @ 2002-12-05 7:43 UTC (permalink / raw)
To: Klee Dienes; +Cc: binutils, gdb-patches
Er, wow! Few technical hurdles to overcome first.
Anyone know what happens if only half the directories get converted?
There is a problem with libiberty and utils because GCC have their feet
stuck in the ice (unless src, again splits off from GCC, but I suspect
here we don't want to).
> bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils
bfd, binutils, gas, gprof, ld and opcodes are all BINUTILS.
mmalloc, sim and gdb are all GDB.
I'd drop rda from the list.
I don't understand this:
-
$(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp --
$(YFLAGS)
+
$(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)"
$(YFLAGS)
isn't it independant of the switch?
Same with this?
- AC_DEFINE(HAVE_LONG_DOUBLE)
+ AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type
works])
(or did the new autoconf change the interface causing a warning if the
three parameters were not present?).
Andrew
^ permalink raw reply [flat|nested] 74+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
@ 2002-12-05 5:26 ` Hans-Peter Nilsson
2002-12-05 14:07 ` Alan Modra
2002-12-05 7:43 ` Andrew Cagney
` (3 subsequent siblings)
4 siblings, 1 reply; 74+ messages in thread
From: Hans-Peter Nilsson @ 2002-12-05 5:26 UTC (permalink / raw)
To: Klee Dienes; +Cc: binutils, gdb-patches
On Thu, 5 Dec 2002, Klee Dienes wrote:
> The following patch updates the following directories to use the latest
> versions of libtool, autoconf, and automake:
Bravo! Great! ... Could you please do this for GCC
gcc-3_4-basic-improvements-branch too?
Thanks!
brgds, H-P
^ permalink raw reply [flat|nested] 74+ messages in thread
* [RFC] Update to current automake/autoconf/libtool versions.
2002-11-13 10:32 [RFA/PATCH] Darwin fixes for ltconfig, ltcf-c.sh Klee Dienes
@ 2002-12-04 22:04 ` Klee Dienes
2002-12-05 5:26 ` Hans-Peter Nilsson
` (4 more replies)
0 siblings, 5 replies; 74+ messages in thread
From: Klee Dienes @ 2002-12-04 22:04 UTC (permalink / raw)
To: Andrew Cagney; +Cc: binutils, gdb-patches
[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]
The following patch updates the following directories to use the latest
versions of libtool, autoconf, and automake:
bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils
ltmain.sh (GNU libtool) 1.4.3
autoconf (GNU Autoconf) 2.56
automake (GNU automake) 1.7.1
gettext (GNU gettext) 0.11.5
To apply the patch, I put the following four files in a directory, and
ran 'files.sh' in the top-level directory of the GDB/Binutils tree,
then configured and built with 'build.sh' (the script was necessary in
order to pass --enable-maintainer-mode to only the subdirectories for
which it was appropriate). I then did a full build to verify that
maintainer-mode was working, and used the files generated by
--enable-maintainer-mode as the final versions. I'm not including the
ChangeLog entries for all of the auto-generated files, as they're not
overly interesting; I plan to generate them with a perl script based on
the result of the build. I'm also not including the diffs to the
generated files, since they were about 6Mb, and not all that
interesting. I'm happy to provide either if requested.
[-- Attachment #2: ChangeLog --]
[-- Type: application/octet-stream, Size: 2582 bytes --]
.
2002-12-04 Klee Dienes <kdienes@apple.com>
* .cvsignore: Add autom4te.cache.
bfd
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_DISABLE_SHARED and AC_PROG_LIBTOOL
instead of the AM_ versions.
binutils
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX.
* configure: Pass --build=$host_alias to sub-makes if no other
value is specified.
gas
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Pass explicit value to AC_CONFIG_FILES, not
${GDBINIT}. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and
AC_OUTPUT, not the multi-argument AC_OUTPUT.
gdb
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.in: Update to new ylwrap calling conventions.
* configure.in: Pass description string to AC_DEFINE.
gdb/testsuite
2002-12-04 Klee Dienes <kdienes@apple.com>
* gdb.hp/gdb.objdbg/configure.in: Remove objdbg0* from
AC_CONFIG_SUBDIRS.
gprof
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
ld
2002-12-04 Klee Dienes <kdienes@apple.com>
* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
libiberty
2002-12-04 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Use AC_LIBOBJ instead of setting LIBOBJS directly.
Use _AC_LANG_COMPILER_GNU and $ac_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use AC_PROG_CC_G instead of
_AC_PROG_CC_G.
* configure.in: Use AC_LIBOBJ instead of setting LIBOBJS directly.
opcodes
2002-12-04 Klee Dienes <kdienes@apple.com>
* acinclude.m4: Remove include of libtool.m4.
rda
2002-12-04 Klee Dienes <kdienes@apple.com>
* configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
rda/lib
2002-12-04 Klee Dienes <kdienes@apple.com>
* lib/Makefile.am: Remove noinst_LIBRARIES and librda_a_SOURCES
(it's not possible to specify both a libtool version and a
non-libtool version using the same object files).
rda/unix
2002-12-04 Klee Dienes <kdienes@apple.com>
* unix/configure.in: Pass description strings to AC_DEFINE.
rda/win32
2002-12-04 Klee Dienes <kdienes@apple.com>
* win32/configure.in: Pass description strings to AC_DEFINE.
sim/common
2002-12-04 Klee Dienes <kdienes@apple.com>
* aclocal.m4: Pass description strings to AC_DEFINE.
[-- Attachment #3: bfd.txt --]
[-- Type: text/plain, Size: 32188 bytes --]
--- .cvsignore 2002-12-04 12:16:15.000000000 -0500
+++ .cvsignore 2002-12-04 23:18:08.000000000 -0500
@@ -6,6 +6,7 @@
*-src
*-stamp-*
*-tagged
+autom4te.cache
blockit
cfg-paper.info
config.status
--- bfd/acinclude.m4 2002-12-04 12:16:19.000000000 -0500
+++ bfd/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -108,16 +108,6 @@
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
])
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- bfd/configure.in 2002-12-04 12:16:20.000000000 -0500
+++ bfd/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -23,16 +23,16 @@
AC_SUBST(bfd_version)
AC_SUBST(bfd_version_string)
-dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl These must be called before AC_PROG_LIBTOOL, because it may want
dnl to call AC_CHECK_PROG.
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :)
dnl Default to a non shared library. This may be overridden by the
dnl configure option --enable-shared.
-AM_DISABLE_SHARED
+AC_DISABLE_SHARED
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
--- binutils/Makefile.am 2002-12-04 12:16:22.000000000 -0500
+++ binutils/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -15,6 +15,8 @@
CC_FOR_BUILD = @CC_FOR_BUILD@
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- binutils/acinclude.m4 2002-12-04 12:16:23.000000000 -0500
+++ binutils/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- binutils/configure.in 2002-12-04 12:16:23.000000000 -0500
+++ binutils/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -62,7 +62,7 @@
AC_PROG_CC
AC_PROG_YACC
-AM_PROG_LEX
+AC_PROG_LEX
ALL_LINGUAS="fr tr ja es sv da"
CY_GNU_GETTEXT
--- configure 2002-12-02 23:55:04.000000000 -0500
+++ configure 2002-12-04 23:18:08.000000000 -0500
@@ -1473,6 +1473,10 @@
### The recursion line is here.
if [ ! -z "${recprog}" ] ; then
+ if [ -z "$buildopt" ]
+ then
+ buildopt="--build=$host_alias"
+ fi
if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${tgt_alias} \
${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
${srcdiroption} ${diroptions} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${other_options} ${redirect} ; then
--- gas/acinclude.m4 2002-12-04 12:16:34.000000000 -0500
+++ gas/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -55,16 +55,6 @@
$1=[$]_gas_uniq_newlist
])dnl
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AC_CHECK_LIBM],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- gas/configure.in 2002-12-04 12:16:35.000000000 -0500
+++ gas/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -70,10 +70,14 @@
# If we are on a DOS filesystem, we must use gdb.ini rather than
# .gdbinit.
-GDBINIT=".gdbinit"
case "${host}" in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
GDBINIT="gdb.ini"
+ AC_CONFIG_FILES(gdb.ini:gdbinit.in)
+ ;;
+ *)
+ GDBINIT=".gdbinit"
+ AC_CONFIG_FILES(.gdbinit:gdbinit.in)
;;
esac
AC_SUBST(GDBINIT)
@@ -993,7 +997,9 @@
dnl the old symlinks don't exist, so that a reconfigure in an existing
dnl directory behaves reasonably.
-AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in,
+AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
+
+AC_CONFIG_COMMANDS([default],
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
@@ -1008,3 +1014,5 @@
cgen_cpu_prefix=${cgen_cpu_prefix}
obj_format=${obj_format}
te_file=${te_file}])
+
+AC_OUTPUT
\ No newline at end of file
--- gdb/Makefile.in 2002-12-04 23:11:12.000000000 -0500
+++ gdb/Makefile.in 2002-12-04 23:18:08.000000000 -0500
@@ -1218,7 +1218,7 @@
.PRECIOUS: c-exp.tab.c
c-exp.tab.o: c-exp.tab.c
c-exp.tab.c: c-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1234,7 +1234,7 @@
.PRECIOUS: objc-exp.tab.c
objc-exp.tab.o: objc-exp.tab.c
objc-exp.tab.c: objc-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1250,7 +1250,7 @@
.PRECIOUS: jv-exp.tab.c
jv-exp.tab.o: jv-exp.tab.c
jv-exp.tab.c: jv-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1266,7 +1266,7 @@
.PRECIOUS: f-exp.tab.c
f-exp.tab.o: f-exp.tab.c
f-exp.tab.c: f-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1282,7 +1282,7 @@
.PRECIOUS: m2-exp.tab.c
m2-exp.tab.o: m2-exp.tab.c
m2-exp.tab.c: m2-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1298,7 +1298,7 @@
.PRECIOUS: ada-exp.tab.c
ada-exp.tab.o: ada-exp.tab.c
ada-exp.tab.c: ada-exp.y
- $(YACC) $(YFLAGS) $(srcdir)/ada-exp.y
+ $(SHELL) $(YLWRAP) $(srcdir)/ada-exp.y y.tab.c ada-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1327,7 +1327,7 @@
.PRECIOUS: p-exp.tab.c
p-exp.tab.o: p-exp.tab.c
p-exp.tab.c: p-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
--- gdb/configure.in 2002-12-04 12:16:47.000000000 -0500
+++ gdb/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -472,7 +472,7 @@
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
AC_MSG_RESULT($ac_cv_c_long_double)
if test $ac_cv_c_long_double = yes; then
- AC_DEFINE(HAVE_LONG_DOUBLE)
+ AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type works])
fi
dnl See if the compiler and runtime support printing long doubles
--- gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 12:17:00.000000000 -0500
+++ gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -11,6 +11,5 @@
AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../../..)
AC_CANONICAL_SYSTEM
-AC_CONFIG_SUBDIRS(objdbg01 objdbg02 objdbg03 objdbg04)
AC_OUTPUT(Makefile)
--- gprof/acinclude.m4 2002-12-04 12:17:02.000000000 -0500
+++ gprof/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,12 +1,3 @@
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- ld/Makefile.am 2002-12-04 12:17:11.000000000 -0500
+++ ld/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,6 +9,8 @@
tooldir = $(exec_prefix)/$(target_alias)
+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- ld/acinclude.m4 2002-12-04 12:17:11.000000000 -0500
+++ ld/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- libiberty/aclocal.m4 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -69,7 +69,7 @@
ac_cv_func_strncmp_works=no)
rm -f core core.* *.core])
if test $ac_cv_func_strncmp_works = no ; then
- LIBOBJS="$LIBOBJS strncmp.o"
+ AC_LIBOBJ(strncmp)
fi
])
@@ -102,9 +102,10 @@
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi
-AC_PROG_CC_GNU
+_AC_COMPILER_OBJEXT
+_AC_LANG_COMPILER_GNU
-if test $ac_cv_prog_gcc = yes; then
+if test $ac_compiler_gnu = yes; then
GCC=yes
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
dnl Check whether -g works, even if CFLAGS is set, in case the package
@@ -113,7 +114,7 @@
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
- AC_PROG_CC_G
+ _AC_PROG_CC_G
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
--- libiberty/configure.in 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -240,7 +240,12 @@
# newlib provide and which ones we will be expected to provide.
if test "x${with_newlib}" = "xyes"; then
- LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
+ AC_LIBOBJ(asprintf)
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vasprintf)
for f in $funcs; do
case "$f" in
@@ -308,8 +313,16 @@
# Handle VxWorks configuration specially, since on VxWorks the
# libraries are actually on the target board, not in the file
# system.
- LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o"
- LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o"
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(getpagesize)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strcasecmp)
+ AC_LIBOBJ(strncasecmp)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vfork)
+ AC_LIBOBJ(waitpid)
+ AC_LIBOBJ(vasprintf)
for f in $funcs; do
case "$f" in
basename | getpagesize | insque | random | strcasecmp)
@@ -356,7 +369,7 @@
if test -n "${with_target_subdir}"
then
funcs="`echo $funcs | sed -e 's/random//'`"
- LIBOBJS="$LIBOBJS random.o"
+ AC_LIBOBJ(random)
vars="`echo $vars | sed -e 's/sys_siglist//'`"
checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
fi
@@ -392,12 +405,12 @@
# We haven't set the list of objects yet. Use the standard autoconf
# tests. This will only work if the compiler works.
- AC_PROG_CC_WORKS
+ AC_PROG_CC
AC_REPLACE_FUNCS($funcs)
libiberty_AC_FUNC_C_ALLOCA
AC_FUNC_VFORK
if test $ac_cv_func_vfork_works = no; then
- LIBOBJS="$LIBOBJS vfork.o"
+ AC_LIBOBJ(vfork)
fi
# We only need _doprnt if we might use it to implement v*printf.
if test $ac_cv_func_vprintf != yes \
--- opcodes/acinclude.m4 2002-12-04 12:17:45.000000000 -0500
+++ opcodes/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,15 +1,5 @@
sinclude(../bfd/acinclude.m4)
-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- rda/configure.in 2002-12-04 12:17:46.000000000 -0500
+++ rda/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -7,7 +7,7 @@
dnl automake support
AM_MAINTAINER_MODE
dnl AC_LIBTOOL_WIN32_DLL
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C
--- rda/lib/Makefile.am 2002-12-04 12:17:46.000000000 -0500
+++ rda/lib/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,6 @@
# Create a libtool convenience archive
# ... and a plain library archive for non-libtool clients
noinst_LTLIBRARIES = librda.la
-noinst_LIBRARIES = librda.a
INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
-I$(srcdir)/../../include
@@ -17,4 +16,3 @@
THESOURCES=gdbserv-input.c gdbserv-output.c gdbserv-state.c gdbserv-utils.c gdbsocket.c gdblog.c stdio-log.c gdbserv-log.c gdbloop.c gdbsched.c gdbserv-target.c
librda_la_SOURCES = $(THESOURCES)
-librda_a_SOURCES = $(THESOURCES)
--- rda/unix/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/unix/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,7 @@
dnl automake support
AM_MAINTAINER_MODE
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C
@@ -32,43 +32,43 @@
case "$target" in
mips64*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
i?86*linux* | \
powerpc*linux* | \
arm*linux* | \
mips*linux*)
TARGET_MODULES="linux-target.o thread-db.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*solaris*)
TARGET_MODULES="solaris-target.o dummy-target.o"
- AC_DEFINE(SOLARIS_TARGET)
-# Place-holders -- not necessarily correct...
- AC_DEFINE(GREGSET_T, gregset_t)
- AC_DEFINE(FPREGSET_T, fpregset_t)
+ AC_DEFINE(SOLARIS_TARGET, [], [Define if target is any Solaris])
+ # Place-holders -- not necessarily correct...
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
esac
@@ -77,116 +77,116 @@
case "$target" in
*solaris*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(SPARC32_SOLARIS_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SPARC32_SOLARIS_TARGET, [], [Define is target is Sparc32])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
sh*linux*)
- AC_DEFINE(SH_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SH_LINUX_TARGET, [], [Define if target is SH (3? 4?) Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n64)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N64)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N64, [], [Define if target uses MIPS n64 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N32)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N32, [], [Define if target uses MIPS n32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*o32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips*linux*)
- AC_DEFINE(MIPS_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS_LINUX_TARGET, [], [Define if target is (32-bit) MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
i?86*linux*)
- AC_DEFINE(X86_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(X86_LINUX_TARGET, [], [Define if target is x86 Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
powerpc*linux*)
- AC_DEFINE(PPC_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(PPC_LINUX_TARGET, [], [Define if target is powerpc Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
m68k*linux*)
- AC_DEFINE(M68K_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(M68K_LINUX_TARGET, [], [Define if target is m68k Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
alpha*linux*)
- AC_DEFINE(ALPHA_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ALPHA_LINUX_TARGET, [], [Define if target is alpha Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
arm*linux*)
if test "$arm32" = "yes"; then
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
else
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
fi
;;
esac
--- rda/win32/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/win32/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -24,14 +24,10 @@
case "$target" in
*cygwin*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(WIN32_TARGET)
+ AC_DEFINE(WIN32_TARGET, [], [Define if target is Win32])
;;
esac
-if test -f /usr/include/foo.h; then
- AC_DEFINE(HAVE_AC_DEFINE, 1, [define if have AC_DEFINE])
-fi
-
dnl Outputs
AC_OUTPUT(Makefile)
--- sim/common/aclocal.m4 2002-12-04 12:17:54.000000000 -0500
+++ sim/common/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -904,7 +904,7 @@
dnl If we use NLS figure out what method
if test "$USE_NLS" = "yes"; then
- AC_DEFINE(ENABLE_NLS)
+ AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])
AC_MSG_CHECKING([whether included gettext is requested])
AC_ARG_WITH(included-gettext,
[ --with-included-gettext use the GNU gettext library included here],
@@ -938,7 +938,8 @@
if test "$gt_cv_func_gettext_libc" = "yes" \
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
- AC_DEFINE(HAVE_GETTEXT)
+ AC_DEFINE(HAVE_GETTEXT, 1,
+ [Define as 1 if you have gettext and don't want to use GNU gettext.])
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
if test "$MSGFMT" != "no"; then
@@ -1217,7 +1218,8 @@
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
if test $am_cv_val_LC_MESSAGES = yes; then
- AC_DEFINE(HAVE_LC_MESSAGES)
+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
+ [Define if your locale.h file contains LC_MESSAGES.])
fi
fi])
[-- Attachment #4: files.sh --]
[-- Type: application/octet-stream, Size: 1167 bytes --]
echo "Versions:"
dir=`echo $0 | sed -e 's/\/[^\/]*$//'`
echo $dir
libtool --version | grep \. | grep '(' | grep -v Copy 2>&1
autoconf --version | grep \. | grep '(' | grep -v Copy 2>&1
automake --version | grep \. | grep '(' | grep -v Copy 2>&1
gettext --version | grep \. | grep '(' | grep -v Copy 2>&1
update=`grep '+++' $dir/bfd.txt | sed -e 's/+++ //' -e 's/[ ].*//'`
echo; echo Resetting:
echo Removing $update
rm -f $update
cvs -z9 -q update $update
find . -name autom4te.cache | xargs rm -rf
echo; echo "Patching:"
patch -p0 < $dir/bfd.txt
cp -p /usr/share/automake-1.7/depcomp .
cp -p /usr/share/automake-1.7/missing .
cp -p /usr/share/automake-1.7/mkinstalldirs .
cp -p /usr/share/automake-1.7/ylwrap .
cp -p /usr/share/libtool/ltmain.sh .
rm -f ltcf-c.sh
rm -f ltcf-cxx.sh
rm -f ltcf-gcj.sh
rm -f ltconfig
rm -f libtool.m4
echo; echo "Configuring:"
dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
dirs=`find $i -type d`
dirs=`for j in $dirs; do if [ -f $j/configure.in ]; then echo $j; fi; done`
for j in $dirs; do
echo "Configuring $j"
autoreconf -f -I`pwd` $j
done
done
[-- Attachment #5: build.sh --]
[-- Type: application/octet-stream, Size: 246 bytes --]
#! /bin/sh
set -e
src=$1
$src/configure
dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
rm -f config.cache
(cd $i && $src/$i/configure --enable-maintainer-mode)
done
rm -f config.cache
[-- Attachment #6: Type: text/plain, Size: 1080 bytes --]
On Wednesday, November 13, 2002, at 01:32 PM, Klee Dienes wrote:
> I believe libtool-1.4.3 already has correct Darwin support, although I
> haven't done overly much testing with it.
>
> I submitted a patch to the current GDB/binutils libtool because it was
> unclear when the next libtool merge might be, because I didn't want to
> get in the way of the folks doing the autoconfiscation work, and
> because there was existing precedent (see the ChangeLog entries for
> 2002-01-27 and 2001-11-13, for example).
>
> I'm certainly willing to try to push through an upgrade of the
> GDB/binutils libtool to 1.4.3 if that's what's necessary, though; let
> me know and I'll put together a patch.
>
> On Wednesday, November 13, 2002, at 12:57 PM, Andrew Cagney wrote:
>
>> These files are part of libtool. From src/MAINTAINERS.
>>
>> Andrew
>>
>> ltconfig; ltmain.sh
>> libtool: http://gnu.org
>> Changes need to be done in tandem with the official LIBTOOL
>> sources or submitted to the master file maintainer and brought
>> in via a merge.
^ permalink raw reply [flat|nested] 74+ messages in thread
end of thread, other threads:[~2003-01-13 7:31 UTC | newest]
Thread overview: 74+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 11:08 [RFC] Update to current automake/autoconf/libtool versions Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
2002-12-05 13:31 ` Zack Weinberg
2002-12-05 14:36 ` Alan Modra
2002-12-05 14:56 ` Ian Lance Taylor
2002-12-05 15:22 ` Alan Modra
2002-12-05 15:43 ` Ian Lance Taylor
2002-12-05 15:51 ` Andrew Cagney
2002-12-05 15:47 ` Mike Stump
2002-12-05 16:30 ` Alan Modra
2002-12-05 16:45 ` Zack Weinberg
2002-12-08 2:49 ` Klee Dienes
2002-12-05 14:29 ` Christopher Faylor
2002-12-06 6:45 ` Maciej W. Rozycki
2002-12-08 10:53 ` Klee Dienes
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
2003-01-12 16:14 ` Nathanael Nerode
2003-01-12 17:14 ` Zack Weinberg
2003-01-13 3:32 ` Klee Dienes
2003-01-13 7:31 ` Zack Weinberg
[not found] <9A4230D6-1D26-11D7-BFCA-00039396EEB8@apple.com>
2003-01-12 13:22 ` [RFC] Update to current automake/autoconf/libtool versions Alexandre Oliva
-- strict thread matches above, loose matches on Subject: below --
2002-12-06 5:28 Nathanael Nerode
2002-12-05 14:42 Joern Rennecke
2002-12-05 14:40 Nathanael Nerode
2002-12-05 15:19 ` Zack Weinberg
2002-12-06 10:21 ` Tom Tromey
2002-12-07 13:06 ` Alexandre Oliva
2002-12-07 16:03 ` Zack Weinberg
2002-12-09 19:16 ` Alexandre Oliva
2002-12-09 21:52 ` Geoff Keating
2002-12-08 13:11 ` Tom Tromey
2002-12-05 10:15 Michael Elizabeth Chastain
2002-12-05 10:37 ` Klee Dienes
2002-11-13 10:32 [RFA/PATCH] Darwin fixes for ltconfig, ltcf-c.sh Klee Dienes
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
2002-12-05 5:26 ` Hans-Peter Nilsson
2002-12-05 14:07 ` Alan Modra
2002-12-05 7:43 ` Andrew Cagney
2002-12-05 8:22 ` Klee Dienes
2002-12-05 9:01 ` Andrew Cagney
2002-12-05 12:55 ` Klee Dienes
2002-12-05 13:03 ` Daniel Jacobowitz
2002-12-05 13:13 ` Andrew Cagney
2002-12-05 13:16 ` Daniel Jacobowitz
2002-12-05 13:08 ` Andrew Cagney
2002-12-05 13:18 ` Klee Dienes
2002-12-05 8:28 ` DJ Delorie
2002-12-05 9:37 ` Klee Dienes
2002-12-05 9:42 ` DJ Delorie
2002-12-05 10:28 ` Klee Dienes
2002-12-05 9:31 ` H. J. Lu
2002-12-05 7:44 ` Maciej W. Rozycki
2002-12-05 9:01 ` Klee Dienes
2002-12-05 8:09 ` Daniel Jacobowitz
2002-12-05 8:29 ` DJ Delorie
2002-12-05 8:35 ` Daniel Jacobowitz
2002-12-05 8:37 ` DJ Delorie
2002-12-05 8:40 ` Maciej W. Rozycki
2002-12-05 8:44 ` Daniel Jacobowitz
2002-12-05 9:19 ` Elena Zannoni
2002-12-05 9:54 ` Klee Dienes
2002-12-05 10:10 ` Maciej W. Rozycki
2002-12-05 10:59 ` Doug Evans
2002-12-05 12:11 ` Klee Dienes
2002-12-05 12:23 ` Ian Lance Taylor
2002-12-05 14:29 ` Klee Dienes
2002-12-06 5:34 ` Maciej W. Rozycki
2002-12-06 7:25 ` DJ Delorie
2002-12-06 8:06 ` Maciej W. Rozycki
2002-12-06 8:47 ` DJ Delorie
2002-12-05 10:59 ` Andrew Cagney
2002-12-06 5:52 ` Maciej W. Rozycki
2002-12-05 13:59 ` Ben Elliston
2002-12-05 13:41 ` Ben Elliston
2002-12-30 16:10 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox