[PATCH] Makerules: fix reference to aclocal.m4 in subdirs
Andreas Schwab
schwab@suse.de
Wed Nov 18 16:07:51 GMT 2026
---
Makerules | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makerules b/Makerules
index 242821f503..7eadd95e05 100644
--- a/Makerules
+++ b/Makerules
@@ -1384,14 +1384,14 @@ endif
ifneq ($(AUTOCONF),no)
define autoconf-it
@-rm -f $@.new
-$(AUTOCONF) $(ACFLAGS) $< > $@.new
+$(AUTOCONF) $(patsubst %/,-I%,$(..)) $(ACFLAGS) $< > $@.new
chmod a-w$(patsubst %,$(comma)a+x,$(filter .,$(@D))) $@.new
mv -f $@.new $@
endef
-configure: configure.ac aclocal.m4; $(autoconf-it)
-%/configure: %/configure.ac aclocal.m4; $(autoconf-it)
-%/preconfigure: %/preconfigure.ac aclocal.m4; $(autoconf-it)
+configure: configure.ac $(..)aclocal.m4; $(autoconf-it)
+%/configure: %/configure.ac $(..)aclocal.m4; $(autoconf-it)
+%/preconfigure: %/preconfigure.ac $(..)aclocal.m4; $(autoconf-it)
# Use "touch aclocal.m4" to force execution of this rule. Set
# AUTOCONF=autoconf to activate it.
--
2.56.1
--
Andreas Schwab, SUSE Labs, schwab@suse.de
More information about the Libc-alpha
mailing list