[PATCH:xcb/util] Update autogen.sh to one that does builddir != srcdir

Gaetan Nadon memsize at videotron.ca
Tue Oct 20 14:01:11 PDT 2009


This option is in use in 259 out of 261 X.Org, mesa and xcb modules. I
do not know the history behind this option, but there is no sign of
deprecation in the Autoconf docs. 

It overrides the default value provided by AM_MAINTAINER_MODE  in
configure.ac which disables MAINTAINERCLEAN list. This allows git builds
to clean files in this list but does not allow (by default) the tarball
builder to do the same. If a tarball builder runs 'make
maintainer-clean', he may or may not be able to rebuild the tarball.

Removing the option alone will disable the maintainer-clean target for
both git builds and tarballs. Removing both the option and the
AM_MAINTAINER_MODE will allow maintainer-clean for both git builds and
tarballs. 

maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
        -rm -rf $(top_srcdir)/autom4te.cache
        -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic






On Tue, 2009-10-20 at 12:29 -0700, Jeremy Huddleston wrote:

> Shouldn't we be nuking all the "--enable-maintainer-mode" in  
> autogen.sh now... or do we still want to support the older  
> toolchains?  I thought I saw a commit fly by a few days ago nuking  
> that from a module.
> 
> On Oct 20, 2009, at 10:17, Jon TURNEY wrote:
> 
> > ---
> > autogen.sh |   11 ++++++++++-
> > 1 files changed, 10 insertions(+), 1 deletions(-)
> >
> > diff --git a/autogen.sh b/autogen.sh
> > index d68a142..904cd67 100755
> > --- a/autogen.sh
> > +++ b/autogen.sh
> > @@ -1,3 +1,12 @@
> > #! /bin/sh
> > +
> > +srcdir=`dirname $0`
> > +test -z "$srcdir" && srcdir=.
> > +
> > +ORIGDIR=`pwd`
> > +cd $srcdir
> > +
> > autoreconf -v --install || exit 1
> > -./configure "$@"
> > +cd $ORIGDIR || exit $?
> > +
> > +$srcdir/configure --enable-maintainer-mode "$@"
> > -- 
> > 1.6.3.3
> >
> > _______________________________________________
> > xorg-devel mailing list
> > xorg-devel at lists.x.org
> > http://lists.x.org/mailman/listinfo/xorg-devel
> 
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-devel/attachments/20091020/63d0b154/attachment.htm 


More information about the xorg-devel mailing list