]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid infinite autogen loop
authorEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 15:10:20 +0000 (09:10 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 15:47:38 +0000 (09:47 -0600)
commitc5f162200c32a078fd68507f26a15f84f7d65e9e
tree0e8e5cada19165e11d558072f64c9d186e3d0ed0
parent9e9ea3ead9825bd1dc2c17cea4abc8c4165591d0
build: avoid infinite autogen loop

Several people have reported that if the .gnulib submodule is dirty,
then 'make' will go into an infinite loop attempting to rerun bootstrap,
because that never cleans up the dirty submodule.  By default, we
should halt and make the user investigate, but if the user doesn't
know why or care that the submodule is dirty, I also added the ability
to 'make CLEAN_SUBMODULE=1' to get things going again.

Also, while testing this, I noticed that when a submodule update was
needed, 'make' would first run autoreconf, then bootstrap (which
reruns autoreconf); adding a strategic dependency allows for less work.

* .gnulib: Update to latest, for maint.mk improvements.
* cfg.mk (_autogen): Also hook maint.mk, to run before autoreconf.
* autogen.sh (bootstrap): Refuse to run if gnulib is dirty, unless
user requests discarding gnulib changes.
.gnulib
autogen.sh
cfg.mk