diff mbox

[v2] Fix bootstrap with in-tree ISL

Message ID 1432918440-4784-1-git-send-email-rep.dot.nop@gmail.com
State New
Headers show

Commit Message

Bernhard Reutner-Fischer May 29, 2015, 4:54 p.m. UTC
Hi,

config/ChangeLog:

2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

        * isl.m4 (ISL_CHECK_VERSION): AC_SUBST ENABLE_ISL_CHECK and set
	gcc_cv_isl. Tidy whitespace. Lowercase first line of help-text
	like for all the other help texts.

ChangeLog:

2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* configure.ac (build_configdirs, configdirs, target_configdirs):
	Accept autogen.sh along configure. Tidy whitespace around ISL.
        * Makefile.tpl: Set HOST_ISL_CHECK from substituted
        ENABLE_ISL_CHECK.
        (HOST_EXPORTS): Add ENABLE_ISL_CHECK.
        * Makefile.in: Regenerate.
	* configure: Regenerate.

gcc/ChangeLog:

2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

        * configure.ac: Assume a current ISL when using in-tree ISL.
        * configure: Regenerate.

---
This allows for configuring a pristine isl checkout in a combined tree
and fixes the version-checks of isl for in-tree builds.

Bootstrapped on x86_64-unknown-linux-gnu, ok for trunk?

---
 Makefile.in      |  726 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Makefile.tpl     |    9 +
 config/isl.m4    |   51 ++--
 configure        |   35 ++-
 configure.ac     |   15 +-
 gcc/configure    |   10 +-
 gcc/configure.ac |    7 +-
 7 files changed, 795 insertions(+), 58 deletions(-)

Comments

Tobias Grosser May 29, 2015, 6:47 p.m. UTC | #1
On 05/29/2015 06:54 PM, Bernhard Reutner-Fischer wrote:
> Hi,
>
> config/ChangeLog:
>
> 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
>
>          * isl.m4 (ISL_CHECK_VERSION): AC_SUBST ENABLE_ISL_CHECK and set
> 	gcc_cv_isl. Tidy whitespace. Lowercase first line of help-text
> 	like for all the other help texts.
>
> ChangeLog:
>
> 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
>
> 	* configure.ac (build_configdirs, configdirs, target_configdirs):
> 	Accept autogen.sh along configure. Tidy whitespace around ISL.
>          * Makefile.tpl: Set HOST_ISL_CHECK from substituted
>          ENABLE_ISL_CHECK.
>          (HOST_EXPORTS): Add ENABLE_ISL_CHECK.
>          * Makefile.in: Regenerate.
> 	* configure: Regenerate.
>
> gcc/ChangeLog:
>
> 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
>
>          * configure.ac: Assume a current ISL when using in-tree ISL.
>          * configure: Regenerate.
>
> ---
> This allows for configuring a pristine isl checkout in a combined tree
> and fixes the version-checks of isl for in-tree builds.
>
> Bootstrapped on x86_64-unknown-linux-gnu, ok for trunk?

 From the graphite site this is fine from me, but this needs a autoconf 
maintainer approval.

Tobias
DJ Delorie May 29, 2015, 7:49 p.m. UTC | #2
A few minor nits...

Your patch includes many whitespace changes, which makes reviewing
your patch more difficult.  Please limit whitespace changes when
they're unrelated to the patch.

Assuming you've looked at the actual diffs for them, and see nothing
beyond changes related to your patch, it's unneecessary to include the
full patch for regenerated files like Makefile.in and configure.  (if
there *are* unrelated changes, you've done something wrong - likely
used the wrong version of the tools).  You'll still need to check in
these changes, of course, but we don't need to review them separately.

As for the patch itself...

Since none of the projects I see have autogen.sh anyway, I don't see
any impact on them from this patch, although that might change in the
future and I worry that developer's source trees will become cluttered
with "fixed" versions of files.  The GNU projects specify what
versions of auto* tools should be used.  It is not appropriate for a
developer to autogen with the OS's default tools and assume it's OK to
check those files in.  But as I said, this doesn't yet affect any of
the core projects (gcc, binutils+gdb, newlib).

I do worry about autogen.sh failing:

>  	module_srcdir=[+? module_srcdir (get "module_srcdir") (get "module")+]; \
> +	[ ! -f $$s/$$module_srcdir/configure ] && \
> +		[ -f $$s/$$module_srcdir/autogen.sh ] && \
> +			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
>  	[+ IF no-config-site +]rm -f no-such-file || : ; \

There is no logic in here to abort the build process if, for some
reason, autogen.sh returns a nonzero exit code.  This is likely to
happen if, for example, the source tree is read-only, but could also
happen if there's a mismatch between autotools and the config files.
Note that properly signalling the error up through the subshell is
tricky, so don't assume you've got it right until you prove it through
testing ;-)
diff mbox

Patch

diff --git a/Makefile.in b/Makefile.in
index 24f51a4..700834e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -222,6 +222,7 @@  HOST_EXPORTS = \
 	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 	ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
 	ISLINC="$(HOST_ISLINC)"; export ISLINC; \
+	ENABLE_ISL_CHECK="$(HOST_ISL_CHECK)"; export ENABLE_ISL_CHECK; \
 	LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
 	LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
 @if gcc-bootstrap
@@ -314,6 +315,8 @@  HOST_GMPINC = @gmpinc@
 # Where to find ISL
 HOST_ISLLIBS = @isllibs@
 HOST_ISLINC = @islinc@
+# in-tree ISL has ENABLE_ISL_CHECK set to "no"
+HOST_ISL_CHECK = @ENABLE_ISL_CHECK@
 
 # Where to find libelf
 HOST_LIBELFLIBS = @libelflibs@
@@ -2767,6 +2770,9 @@  configure-build-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -2824,6 +2830,9 @@  configure-build-bison:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bison; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -2881,6 +2890,9 @@  configure-build-flex:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=flex; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -2938,6 +2950,9 @@  configure-build-m4:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=m4; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -2995,6 +3010,9 @@  configure-build-texinfo:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=texinfo; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -3052,6 +3070,9 @@  configure-build-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -3109,6 +3130,9 @@  configure-build-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -3170,6 +3194,9 @@  configure-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -3204,6 +3231,9 @@  configure-stage1-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -3237,6 +3267,9 @@  configure-stage2-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -3270,6 +3303,9 @@  configure-stage3-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -3303,6 +3339,9 @@  configure-stage4-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -3336,6 +3375,9 @@  configure-stageprofile-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -3369,6 +3411,9 @@  configure-stagefeedback-bfd:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bfd; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4044,6 +4089,9 @@  configure-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -4078,6 +4126,9 @@  configure-stage1-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4111,6 +4162,9 @@  configure-stage2-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4144,6 +4198,9 @@  configure-stage3-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4177,6 +4234,9 @@  configure-stage4-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4210,6 +4270,9 @@  configure-stageprofile-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4243,6 +4306,9 @@  configure-stagefeedback-opcodes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=opcodes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4918,6 +4984,9 @@  configure-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -4952,6 +5021,9 @@  configure-stage1-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -4985,6 +5057,9 @@  configure-stage2-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -5018,6 +5093,9 @@  configure-stage3-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -5051,6 +5129,9 @@  configure-stage4-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -5084,6 +5165,9 @@  configure-stageprofile-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -5117,6 +5201,9 @@  configure-stagefeedback-binutils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=binutils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -5793,6 +5880,9 @@  configure-bison:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=bison; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -6237,6 +6327,9 @@  configure-cgen:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=cgen; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -6678,6 +6771,9 @@  configure-dejagnu:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=dejagnu; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -7119,6 +7215,9 @@  configure-etc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=etc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -7560,6 +7659,9 @@  configure-fastjar:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fastjar; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -8003,6 +8105,9 @@  configure-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -8037,6 +8142,9 @@  configure-stage1-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8070,6 +8178,9 @@  configure-stage2-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8103,6 +8214,9 @@  configure-stage3-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8136,6 +8250,9 @@  configure-stage4-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8169,6 +8286,9 @@  configure-stageprofile-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8202,6 +8322,9 @@  configure-stagefeedback-fixincludes:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=fixincludes; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -8863,6 +8986,9 @@  configure-flex:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=flex; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -9306,6 +9432,9 @@  configure-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -9340,6 +9469,9 @@  configure-stage1-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -9373,6 +9505,9 @@  configure-stage2-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -9406,6 +9541,9 @@  configure-stage3-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -9439,6 +9577,9 @@  configure-stage4-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -9472,6 +9613,9 @@  configure-stageprofile-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -9505,6 +9649,9 @@  configure-stagefeedback-gas:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gas; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10180,6 +10327,9 @@  configure-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -10214,6 +10364,9 @@  configure-stage1-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10247,6 +10400,9 @@  configure-stage2-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10280,6 +10436,9 @@  configure-stage3-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10313,6 +10472,9 @@  configure-stage4-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10346,6 +10508,9 @@  configure-stageprofile-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -10379,6 +10544,9 @@  configure-stagefeedback-gcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -11054,6 +11222,9 @@  configure-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -11088,6 +11259,9 @@  configure-stage1-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11122,6 +11296,9 @@  configure-stage2-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11156,6 +11333,9 @@  configure-stage3-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11190,6 +11370,9 @@  configure-stage4-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11224,6 +11407,9 @@  configure-stageprofile-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11258,6 +11444,9 @@  configure-stagefeedback-gmp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gmp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
@@ -11922,6 +12111,9 @@  configure-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -11956,6 +12148,9 @@  configure-stage1-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -11990,6 +12185,9 @@  configure-stage2-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12024,6 +12222,9 @@  configure-stage3-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12058,6 +12259,9 @@  configure-stage4-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12092,6 +12296,9 @@  configure-stageprofile-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12126,6 +12333,9 @@  configure-stagefeedback-mpfr:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpfr; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12790,6 +13000,9 @@  configure-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -12824,6 +13037,9 @@  configure-stage1-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12858,6 +13074,9 @@  configure-stage2-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12892,6 +13111,9 @@  configure-stage3-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12926,6 +13148,9 @@  configure-stage4-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12960,6 +13185,9 @@  configure-stageprofile-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -12994,6 +13222,9 @@  configure-stagefeedback-mpc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=mpc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13658,6 +13889,9 @@  configure-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -13692,6 +13926,9 @@  configure-stage1-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13726,6 +13963,9 @@  configure-stage2-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13760,6 +14000,9 @@  configure-stage3-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13794,6 +14037,9 @@  configure-stage4-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13828,6 +14074,9 @@  configure-stageprofile-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -13862,6 +14111,9 @@  configure-stagefeedback-isl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=isl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14526,6 +14778,9 @@  configure-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -14560,6 +14815,9 @@  configure-stage1-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14594,6 +14852,9 @@  configure-stage2-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14628,6 +14889,9 @@  configure-stage3-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14662,6 +14926,9 @@  configure-stage4-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14696,6 +14963,9 @@  configure-stageprofile-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -14730,6 +15000,9 @@  configure-stagefeedback-libelf:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libelf; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15394,6 +15667,9 @@  configure-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -15428,6 +15704,9 @@  configure-stage1-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15461,6 +15740,9 @@  configure-stage2-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15494,6 +15776,9 @@  configure-stage3-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15527,6 +15812,9 @@  configure-stage4-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15560,6 +15848,9 @@  configure-stageprofile-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -15593,6 +15884,9 @@  configure-stagefeedback-gold:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gold; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16269,6 +16563,9 @@  configure-gprof:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gprof; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -16709,6 +17006,9 @@  configure-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -16743,6 +17043,9 @@  configure-stage1-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16776,6 +17079,9 @@  configure-stage2-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16809,6 +17115,9 @@  configure-stage3-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16842,6 +17151,9 @@  configure-stage4-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16875,6 +17187,9 @@  configure-stageprofile-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -16908,6 +17223,9 @@  configure-stagefeedback-intl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=intl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -17584,6 +17902,9 @@  configure-tcl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=tcl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -18010,6 +18331,9 @@  configure-itcl:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=itcl; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -18450,6 +18774,9 @@  configure-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -18484,6 +18811,9 @@  configure-stage1-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -18517,6 +18847,9 @@  configure-stage2-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -18550,6 +18883,9 @@  configure-stage3-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -18583,6 +18919,9 @@  configure-stage4-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -18616,6 +18955,9 @@  configure-stageprofile-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -18649,6 +18991,9 @@  configure-stagefeedback-ld:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=ld; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19324,6 +19669,9 @@  configure-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -19358,6 +19706,9 @@  configure-stage1-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19391,6 +19742,9 @@  configure-stage2-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19424,6 +19778,9 @@  configure-stage3-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19457,6 +19814,9 @@  configure-stage4-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19490,6 +19850,9 @@  configure-stageprofile-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -19523,6 +19886,9 @@  configure-stagefeedback-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20198,6 +20564,9 @@  configure-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -20232,6 +20601,9 @@  configure-stage1-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20265,6 +20637,9 @@  configure-stage2-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20298,6 +20673,9 @@  configure-stage3-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20331,6 +20709,9 @@  configure-stage4-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20364,6 +20745,9 @@  configure-stageprofile-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -20397,6 +20781,9 @@  configure-stagefeedback-libcpp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcpp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21072,6 +21459,9 @@  configure-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -21106,6 +21496,9 @@  configure-stage1-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21139,6 +21532,9 @@  configure-stage2-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21172,6 +21568,9 @@  configure-stage3-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21205,6 +21604,9 @@  configure-stage4-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21238,6 +21640,9 @@  configure-stageprofile-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21271,6 +21676,9 @@  configure-stagefeedback-libdecnumber:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libdecnumber; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -21947,6 +22355,9 @@  configure-libgui:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgui; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -22387,6 +22798,9 @@  configure-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -22421,6 +22835,9 @@  configure-stage1-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -22455,6 +22872,9 @@  configure-stage2-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -22489,6 +22909,9 @@  configure-stage3-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -22523,6 +22946,9 @@  configure-stage4-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -22557,6 +22983,9 @@  configure-stageprofile-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -22591,6 +23020,9 @@  configure-stagefeedback-libiberty:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23267,6 +23699,9 @@  configure-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -23301,6 +23736,9 @@  configure-stage1-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23335,6 +23773,9 @@  configure-stage2-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23369,6 +23810,9 @@  configure-stage3-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23403,6 +23847,9 @@  configure-stage4-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23437,6 +23884,9 @@  configure-stageprofile-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -23471,6 +23921,9 @@  configure-stagefeedback-libiberty-linker-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiberty; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -24148,6 +24601,9 @@  configure-libiconv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libiconv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -24526,6 +24982,9 @@  configure-m4:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=m4; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -24967,6 +25426,9 @@  configure-readline:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=readline; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -25408,6 +25870,9 @@  configure-sid:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=sid; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -25849,6 +26314,9 @@  configure-sim:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=sim; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -26290,6 +26758,9 @@  configure-texinfo:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=texinfo; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -26718,6 +27189,9 @@  configure-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -26752,6 +27226,9 @@  configure-stage1-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -26785,6 +27262,9 @@  configure-stage2-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -26818,6 +27298,9 @@  configure-stage3-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -26851,6 +27334,9 @@  configure-stage4-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -26884,6 +27370,9 @@  configure-stageprofile-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -26917,6 +27406,9 @@  configure-stagefeedback-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -27575,6 +28067,9 @@  configure-gdb:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gdb; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -28016,6 +28511,9 @@  configure-expect:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=expect; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -28457,6 +28955,9 @@  configure-guile:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=guile; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -28898,6 +29399,9 @@  configure-tk:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=tk; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -29339,6 +29843,9 @@  configure-libtermcap:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libtermcap; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -29714,6 +30221,9 @@  configure-utils:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=utils; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -30149,6 +30659,9 @@  configure-gnattools:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gnattools; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -30589,6 +31102,9 @@  configure-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -30623,6 +31139,9 @@  configure-stage1-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -30657,6 +31176,9 @@  configure-stage2-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -30691,6 +31213,9 @@  configure-stage3-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -30725,6 +31250,9 @@  configure-stage4-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -30759,6 +31287,9 @@  configure-stageprofile-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -30793,6 +31324,9 @@  configure-stagefeedback-lto-plugin:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=lto-plugin; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -31470,6 +32004,9 @@  configure-libcc1:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcc1; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -31911,6 +32448,9 @@  configure-gotools:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=gotools; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) \
 	  $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
@@ -32371,6 +32911,9 @@  configure-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -32418,6 +32961,9 @@  configure-stage1-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -32463,6 +33009,9 @@  configure-stage2-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -32508,6 +33057,9 @@  configure-stage3-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -32553,6 +33105,9 @@  configure-stage4-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -32598,6 +33153,9 @@  configure-stageprofile-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -32643,6 +33201,9 @@  configure-stagefeedback-target-libstdc++-v3:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libstdc++-v3; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33347,6 +33908,9 @@  configure-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -33394,6 +33958,9 @@  configure-stage1-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33439,6 +34006,9 @@  configure-stage2-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33484,6 +34054,9 @@  configure-stage3-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33529,6 +34102,9 @@  configure-stage4-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33574,6 +34150,9 @@  configure-stageprofile-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -33619,6 +34198,9 @@  configure-stagefeedback-target-libsanitizer:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libsanitizer; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34323,6 +34905,9 @@  configure-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -34370,6 +34955,9 @@  configure-stage1-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34415,6 +35003,9 @@  configure-stage2-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34460,6 +35051,9 @@  configure-stage3-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34505,6 +35099,9 @@  configure-stage4-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34550,6 +35147,9 @@  configure-stageprofile-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -34595,6 +35195,9 @@  configure-stagefeedback-target-libmpx:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libmpx; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35299,6 +35902,9 @@  configure-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -35346,6 +35952,9 @@  configure-stage1-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35391,6 +36000,9 @@  configure-stage2-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35436,6 +36048,9 @@  configure-stage3-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35481,6 +36096,9 @@  configure-stage4-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35526,6 +36144,9 @@  configure-stageprofile-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -35571,6 +36192,9 @@  configure-stagefeedback-target-libvtv:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libvtv; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -36276,6 +36900,9 @@  configure-target-libcilkrts:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libcilkrts; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -36734,6 +37361,9 @@  configure-target-liboffloadmic:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=liboffloadmic; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -37192,6 +37822,9 @@  configure-target-libssp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libssp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -37650,6 +38283,9 @@  configure-target-newlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=newlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -38107,6 +38743,9 @@  configure-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -38154,6 +38793,9 @@  configure-stage1-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -38199,6 +38841,9 @@  configure-stage2-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -38244,6 +38889,9 @@  configure-stage3-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -38289,6 +38937,9 @@  configure-stage4-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -38334,6 +38985,9 @@  configure-stageprofile-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -38379,6 +39033,9 @@  configure-stagefeedback-target-libgcc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgcc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -39079,6 +39736,9 @@  configure-target-libbacktrace:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libbacktrace; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -39537,6 +40197,9 @@  configure-target-libquadmath:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libquadmath; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -39995,6 +40658,9 @@  configure-target-libgfortran:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgfortran; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -40453,6 +41119,9 @@  configure-target-libobjc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libobjc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -40911,6 +41580,9 @@  configure-target-libgo:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgo; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -41369,6 +42041,9 @@  configure-target-libtermcap:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libtermcap; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -41762,6 +42437,9 @@  configure-target-winsup:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=winsup; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -42220,6 +42898,9 @@  configure-target-libgloss:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgloss; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -42673,6 +43354,9 @@  configure-target-libffi:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libffi; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -43121,6 +43805,9 @@  configure-target-libjava:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libjava; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -43579,6 +44266,9 @@  configure-target-zlib:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=zlib; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -44037,6 +44727,9 @@  configure-target-boehm-gc:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=boehm-gc; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -44495,6 +45188,9 @@  configure-target-rda:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=rda; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -44953,6 +45649,9 @@  configure-target-libada:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libada; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -45410,6 +46109,9 @@  configure-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -45457,6 +46159,9 @@  configure-stage1-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -45502,6 +46207,9 @@  configure-stage2-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -45547,6 +46255,9 @@  configure-stage3-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -45592,6 +46303,9 @@  configure-stage4-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -45637,6 +46351,9 @@  configure-stageprofile-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -45682,6 +46399,9 @@  configure-stagefeedback-target-libgomp:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libgomp; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
@@ -46387,6 +47107,9 @@  configure-target-libitm:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libitm; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -46845,6 +47568,9 @@  configure-target-libatomic:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=libatomic; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file $(SHELL) \
 	  $$s/$$module_srcdir/configure \
diff --git a/Makefile.tpl b/Makefile.tpl
index 660e1e4..5185e98 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -225,6 +225,7 @@  HOST_EXPORTS = \
 	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 	ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
 	ISLINC="$(HOST_ISLINC)"; export ISLINC; \
+	ENABLE_ISL_CHECK="$(HOST_ISL_CHECK)"; export ENABLE_ISL_CHECK; \
 	LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
 	LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
 @if gcc-bootstrap
@@ -317,6 +318,8 @@  HOST_GMPINC = @gmpinc@
 # Where to find ISL
 HOST_ISLLIBS = @isllibs@
 HOST_ISLINC = @islinc@
+# in-tree ISL has ENABLE_ISL_CHECK set to "no"
+HOST_ISL_CHECK = @ENABLE_ISL_CHECK@
 
 # Where to find libelf
 HOST_LIBELFLIBS = @libelflibs@
@@ -1029,6 +1032,9 @@  configure-[+prefix+][+module+]: [+ IF bootstrap +][+ ELSE +]
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=[+? module_srcdir (get "module_srcdir") (get "module")+]; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	[+ IF no-config-site +]rm -f no-such-file || : ; \
 	CONFIG_SITE=no-such-file [+ ENDIF +]$(SHELL) \
 	  $$s/$$module_srcdir/configure \
@@ -1083,6 +1089,9 @@  configure-stage[+id+]-[+prefix+][+module+]:
 		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 	esac; \
 	module_srcdir=[+? module_srcdir (get "module_srcdir") (get "module")+]; \
+	[ ! -f $$s/$$module_srcdir/configure ] && \
+		[ -f $$s/$$module_srcdir/autogen.sh ] && \
+			(cd $$s/$$module_srcdir/ && $(SHELL) ./autogen.sh); \
 	$(SHELL) $$s/$$module_srcdir/configure \
 	  --srcdir=$${topdir}/$$module_srcdir \
 	  [+args+] --build=${build_alias} --host=[+host_alias+] \
diff --git a/config/isl.m4 b/config/isl.m4
index 459fac1..f2c9474 100644
--- a/config/isl.m4
+++ b/config/isl.m4
@@ -21,24 +21,22 @@ 
 # -------------------------
 # Provide configure switches for ISL support.
 # Initialize isllibs/islinc according to the user input.
-AC_DEFUN([ISL_INIT_FLAGS],
-[
+AC_DEFUN([ISL_INIT_FLAGS], [
   AC_ARG_WITH([isl-include],
     [AS_HELP_STRING(
       [--with-isl-include=PATH],
-      [Specify directory for installed ISL include files])])
+      [specify directory for installed ISL include files])])dnl
   AC_ARG_WITH([isl-lib],
     [AS_HELP_STRING(
       [--with-isl-lib=PATH],
-      [Specify the directory for the installed ISL library])])
-
-  AC_ARG_ENABLE(isl-version-check,
+      [specify the directory for the installed ISL library])])
+  AC_ARG_ENABLE([isl-version-check],
     [AS_HELP_STRING(
       [--disable-isl-version-check],
       [disable check for ISL version])],
-    ENABLE_ISL_CHECK=$enableval,
-    ENABLE_ISL_CHECK=yes)
-  
+    [ENABLE_ISL_CHECK=$enableval],
+    [ENABLE_ISL_CHECK=yes])dnl
+dnl
   # Initialize isllibs and islinc.
   case $with_isl in
     no)
@@ -52,7 +50,7 @@  AC_DEFUN([ISL_INIT_FLAGS],
       islinc="-I$with_isl/include"
       ;;
   esac
-  if test "x${with_isl_include}" != x ; then
+  if test "x${with_isl_include}" != x; then
     islinc="-I$with_isl_include"
   fi
   if test "x${with_isl_lib}" != x; then
@@ -61,43 +59,42 @@  AC_DEFUN([ISL_INIT_FLAGS],
   dnl If no --with-isl flag was specified and there is in-tree ISL
   dnl source, set up flags to use that and skip any version tests
   dnl as we cannot run them before building ISL.
+
   if test "x${islinc}" = x && test "x${isllibs}" = x \
      && test -d ${srcdir}/isl; then
     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
     ENABLE_ISL_CHECK=no
     AC_MSG_WARN([using in-tree ISL, disabling version check])
+    # Prevent ending up in noconfigdirs
+    gcc_cv_isl="in-tree"
   fi
-
+  AC_SUBST([ENABLE_ISL_CHECK])
   isllibs="${isllibs} -lisl"
-]
-)
+])
 
 # ISL_REQUESTED (ACTION-IF-REQUESTED, ACTION-IF-NOT)
 # ----------------------------------------------------
 # Provide actions for failed ISL detection.
-AC_DEFUN([ISL_REQUESTED],
-[
+AC_DEFUN([ISL_REQUESTED], [
   AC_REQUIRE([ISL_INIT_FLAGS])
 
   if test "x${with_isl}" = xno; then
     $2
   elif test "x${with_isl}" != x \
     || test "x${with_isl_include}" != x \
-    || test "x${with_isl_lib}" != x ; then
+    || test "x${with_isl_lib}" != x; then
     $1
   else
     $2
   fi
-]
-)
+])
 
 # ISL_CHECK_VERSION ISL_CHECK_VERSION ()
 # ----------------------------------------------------------------
 # Test that ISL contains functionality added to the minimum expected version.
-AC_DEFUN([ISL_CHECK_VERSION],
-[
-  if test "${ENABLE_ISL_CHECK}" = yes ; then
+AC_DEFUN([ISL_CHECK_VERSION], [
+  if test "${ENABLE_ISL_CHECK}" = yes; then
     _isl_saved_CFLAGS=$CFLAGS
     _isl_saved_LDFLAGS=$LDFLAGS
     _isl_saved_LIBS=$LIBS
@@ -116,25 +113,23 @@  AC_DEFUN([ISL_CHECK_VERSION],
     LDFLAGS=$_isl_saved_LDFLAGS
     LIBS=$_isl_saved_LIBS
   fi
-]
-)
+])
 
 # ISL_IF_FAILED (ACTION-IF-FAILED)
 # ----------------------------------
 # Executes ACTION-IF-FAILED, if GRAPHITE was requested and
 # the checks failed.
-AC_DEFUN([ISL_IF_FAILED],
-[
+AC_DEFUN([ISL_IF_FAILED], [
   ISL_REQUESTED([graphite_requested=yes], [graphite_requested=no])
-  
-  if test "${gcc_cv_isl}" = no ; then
+
+  if test "${gcc_cv_isl}" = no; then
     isllibs=
     islinc=
   fi
 
   if test "${graphite_requested}" = yes \
     && test "x${isllibs}" = x \
-    && test "x${islinc}" = x ; then
+    && test "x${islinc}" = x; then
     $1
   fi
 ]
diff --git a/configure b/configure
index 167b506..f6e6aed 100755
--- a/configure
+++ b/configure
@@ -649,6 +649,7 @@  extra_linker_plugin_flags
 extra_linker_plugin_configure_flags
 islinc
 isllibs
+ENABLE_ISL_CHECK
 poststage1_ldflags
 poststage1_libs
 stage1_ldflags
@@ -1549,8 +1550,8 @@  Optional Packages:
                           package. Equivalent to
                           --with-isl-include=PATH/include plus
                           --with-isl-lib=PATH/lib
-  --with-isl-include=PATH Specify directory for installed ISL include files
-  --with-isl-lib=PATH     Specify the directory for the installed ISL library
+  --with-isl-include=PATH specify directory for installed ISL include files
+  --with-isl-lib=PATH     specify the directory for the installed ISL library
   --with-build-sysroot=SYSROOT
                           use sysroot as the system root during the build
   --with-debug-prefix-map='A=B C=D ...'
@@ -5927,11 +5928,9 @@  if test "${with_isl+set}" = set; then :
   withval=$with_isl;
 fi
 
-
 # Treat --without-isl as a request to disable
 # GRAPHITE support and skip all following checks.
 if test "x$with_isl" != "xno"; then
-  # Check for ISL
 
 
 # Check whether --with-isl-include was given.
@@ -5939,21 +5938,17 @@  if test "${with_isl_include+set}" = set; then :
   withval=$with_isl_include;
 fi
 
-
 # Check whether --with-isl-lib was given.
 if test "${with_isl_lib+set}" = set; then :
   withval=$with_isl_lib;
 fi
 
-
   # Check whether --enable-isl-version-check was given.
 if test "${enable_isl_version_check+set}" = set; then :
   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
 else
   ENABLE_ISL_CHECK=yes
 fi
-
-
   # Initialize isllibs and islinc.
   case $with_isl in
     no)
@@ -5967,26 +5962,28 @@  fi
       islinc="-I$with_isl/include"
       ;;
   esac
-  if test "x${with_isl_include}" != x ; then
+  if test "x${with_isl_include}" != x; then
     islinc="-I$with_isl_include"
   fi
   if test "x${with_isl_lib}" != x; then
     isllibs="-L$with_isl_lib"
   fi
-        if test "x${islinc}" = x && test "x${isllibs}" = x \
+
+  if test "x${islinc}" = x && test "x${isllibs}" = x \
      && test -d ${srcdir}/isl; then
     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
     ENABLE_ISL_CHECK=no
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
+    # Prevent ending up in noconfigdirs
+    gcc_cv_isl="in-tree"
   fi
 
   isllibs="${isllibs} -lisl"
 
 
-
-  if test "${ENABLE_ISL_CHECK}" = yes ; then
+  if test "${ENABLE_ISL_CHECK}" = yes; then
     _isl_saved_CFLAGS=$CFLAGS
     _isl_saved_LDFLAGS=$LDFLAGS
     _isl_saved_LIBS=$LIBS
@@ -6027,27 +6024,25 @@  $as_echo "$gcc_cv_isl" >&6; }
 
 
 
-
   if test "x${with_isl}" = xno; then
     graphite_requested=no
   elif test "x${with_isl}" != x \
     || test "x${with_isl_include}" != x \
-    || test "x${with_isl_lib}" != x ; then
+    || test "x${with_isl_lib}" != x; then
     graphite_requested=yes
   else
     graphite_requested=no
   fi
 
 
-
-  if test "${gcc_cv_isl}" = no ; then
+  if test "${gcc_cv_isl}" = no; then
     isllibs=
     islinc=
   fi
 
   if test "${graphite_requested}" = yes \
     && test "x${isllibs}" = x \
-    && test "x${islinc}" = x ; then
+    && test "x${islinc}" = x; then
 
     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
   fi
@@ -6535,7 +6530,7 @@  build_configdirs_all="$build_configdirs"
 build_configdirs=
 for i in ${build_configdirs_all} ; do
   j=`echo $i | sed -e s/build-//g`
-  if test -f ${srcdir}/$j/configure ; then
+  if test -f ${srcdir}/$j/configure || test -f ${srcdir}/$j/autogen.sh; then
     build_configdirs="${build_configdirs} $i"
   fi
 done
@@ -6543,7 +6538,7 @@  done
 configdirs_all="$configdirs"
 configdirs=
 for i in ${configdirs_all} ; do
-  if test -f ${srcdir}/$i/configure ; then
+  if test -f ${srcdir}/$i/configure || test -f ${srcdir}/$i/autogen.sh; then
     configdirs="${configdirs} $i"
   fi
 done
@@ -6552,7 +6547,7 @@  target_configdirs_all="$target_configdirs"
 target_configdirs=
 for i in ${target_configdirs_all} ; do
   j=`echo $i | sed -e s/target-//g`
-  if test -f ${srcdir}/$j/configure ; then
+  if test -f ${srcdir}/$j/configure || test -f ${srcdir}/$j/autogen.sh; then
     target_configdirs="${target_configdirs} $i"
   fi
 done
diff --git a/configure.ac b/configure.ac
index 2509305..8c338cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1764,16 +1764,15 @@  AC_ARG_WITH(isl,
    [--with-isl=PATH],
    [Specify prefix directory for the installed ISL package.
     Equivalent to --with-isl-include=PATH/include
-    plus --with-isl-lib=PATH/lib])])
+    plus --with-isl-lib=PATH/lib])])dnl
 
 # Treat --without-isl as a request to disable
 # GRAPHITE support and skip all following checks.
 if test "x$with_isl" != "xno"; then
-  # Check for ISL
   dnl Provide configure switches and initialize islinc & isllibs
   dnl with user input.
   ISL_INIT_FLAGS
-  dnl The versions of ISL that work for Graphite
+  dnl The versions of ISL that work for Graphite unless using in-tree isl
   ISL_CHECK_VERSION()
   dnl Only execute fail-action, if ISL has been requested.
   ISL_IF_FAILED([
@@ -2231,8 +2230,8 @@  done
 build_configdirs_all="$build_configdirs"
 build_configdirs=
 for i in ${build_configdirs_all} ; do
-  j=`echo $i | sed -e s/build-//g` 
-  if test -f ${srcdir}/$j/configure ; then
+  j=`echo $i | sed -e s/build-//g`
+  if test -f ${srcdir}/$j/configure || test -f ${srcdir}/$j/autogen.sh; then
     build_configdirs="${build_configdirs} $i"
   fi
 done
@@ -2240,7 +2239,7 @@  done
 configdirs_all="$configdirs"
 configdirs=
 for i in ${configdirs_all} ; do
-  if test -f ${srcdir}/$i/configure ; then
+  if test -f ${srcdir}/$i/configure || test -f ${srcdir}/$i/autogen.sh; then
     configdirs="${configdirs} $i"
   fi
 done
@@ -2248,8 +2247,8 @@  done
 target_configdirs_all="$target_configdirs"
 target_configdirs=
 for i in ${target_configdirs_all} ; do
-  j=`echo $i | sed -e s/target-//g` 
-  if test -f ${srcdir}/$j/configure ; then
+  j=`echo $i | sed -e s/target-//g`
+  if test -f ${srcdir}/$j/configure || test -f ${srcdir}/$j/autogen.sh; then
     target_configdirs="${target_configdirs} $i"
   fi
 done
diff --git a/gcc/configure b/gcc/configure
index f70f2d3..4db98c8 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -28386,7 +28386,15 @@  fi
 
 # Check whether isl_schedule_constraints_compute_schedule is available;
 # it's new in ISL-0.13.
-if test "x${ISLLIBS}" != "x" ; then
+if test x"$ENABLE_ISL_CHECK" = x"no"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
+$as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed yes" >&5
+$as_echo "assumed yes" >&6; }
+
+$as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
+
+elif test "x${ISLLIBS}" != "x" ; then
   saved_CXXFLAGS="$CXXFLAGS"
   CXXFLAGS="$CXXFLAGS $ISLINC"
   saved_LIBS="$LIBS"
diff --git a/gcc/configure.ac b/gcc/configure.ac
index b27433e..a28be71 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -5711,7 +5711,12 @@  fi
 
 # Check whether isl_schedule_constraints_compute_schedule is available;
 # it's new in ISL-0.13.
-if test "x${ISLLIBS}" != "x" ; then
+if test x"$ENABLE_ISL_CHECK" = x"no"; then
+  AC_MSG_CHECKING([Checking for isl_schedule_constraints_compute_schedule])
+  AC_MSG_RESULT([assumed yes])
+  AC_DEFINE(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE, 1,
+            [Define if isl_schedule_constraints_compute_schedule exists.])
+elif test "x${ISLLIBS}" != "x" ; then
   saved_CXXFLAGS="$CXXFLAGS"
   CXXFLAGS="$CXXFLAGS $ISLINC"
   saved_LIBS="$LIBS"