On Wed, Sep 20, 2006 at 11:19:57PM +0900, Horms wrote:
> On Wed, Sep 20, 2006 at 09:25:13AM -0400, Vivek Goyal wrote:
> > On Wed, Sep 20, 2006 at 12:33:30PM +0900, Horms wrote:
> > > I think that autogen.sh is a fiamilar to many develipers
> > > as a way way to bootstrap source trees. So this might make
> > > bootstraping the kexec-tools tree easier for some.
> > >     
> > 
> > Hi Simon,
> > 
> > Won't existing following Makefile targets take caer of building
> > configure and then running ./configure.
> > 
> > Makefile.conf: Makefile.conf.in configure
> >         /bin/sh ./configure
> > 
> > configure: configure.ac
> >         autoconf
> >         $(RM) -rf autom4te.cache
> > 
> > 
> > If yes, then we don't have to introduce autogen.sh at all and every
> > thing can be controlled by make.
> 
> I'm not convinced that those targets work right now,
> mainly because Makefile expects Makefile.conf to exist.
> But you are right that this kind of approch is more appealing
> than intorducing autogen.sh. I'll see about fixing it up.

I took a look at this a little further.

But updating the "CPPFLAGS and LDFLAGS cross-compile fixes" patch
which I sent yeterday to make sure that CPPFLAGS, LDFLAGS and CFLAGS
are never updated the configure target can be made to work for
the simple case.

There is the problem of how to pass arguments to the invocation
of configure, this can be parsed from config.log if its still
hanging around, though it might be possible to inject
it into Makefile.conf somehow.

Lastly, there is the problem that if you run make maintainer-clean,
then Makefile.conf disapears, and this causes the top level Makefile 
to be broken beyond hope - I have no idea if it is possible to fix that.

So in all, it looks like this target can be made to work as a means
of updating configure if configure.ac is modified. It can even
be used to create configure, so long as Makefile.conf exists and
is sensible. But I don't think it can be used for bootstrapping.

I think autogen.sh is valuable, but as all it really
does is run autoconf I don't think it is essential.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to