diff --git a/make/rules-autoconf.mk b/make/rules-autoconf.mk index cbfa3bc4..6567f055 100644 --- a/make/rules-autoconf.mk +++ b/make/rules-autoconf.mk @@ -7,9 +7,13 @@ define create-rules-autoconf $(call create-rules-common,$(1),$(2),$(3)) ifeq ($(CONTAINER),1) -$$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/configure.ac - @echo ":: configuring $(3)bit $(1)..." >&2 +$$(OBJ)/.$(1)-pre-configure: $$($(2)_SRC)/configure.ac + @echo ":: autoreconfing $(1)..." >&2 cd "$$($(2)_SRC)" && autoreconf -fiv + touch $$@ + +$$(OBJ)/.$(1)-configure$(3): $$(OBJ)/.$(1)-pre-configure + @echo ":: configuring $(3)bit $(1)..." >&2 rm -rf "$$($(2)_OBJ$(3))/config.cache" cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \