Skip to content

Commit c820f09

Browse files
committed
tools: gnulib: install .m4 file with gl_ prefix
It was found that there is currently a conflict for the cond.m4 that is also shipped by automake, making the gnulib one having priority causing problem with finding AM_CONDITIONAL macro. To handle this, install gnulib .m4 file with a gl_ prefix to the filename. This make sure gnulib .m4 file won't have name conflict with automake .m4 default files permitting correct autoreconf run of any affected package by this. Signed-off-by: Christian Marangi <[email protected]>
1 parent 5205c0c commit c820f09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/gnulib/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ include $(INCLUDE_DIR)/host-build.mk
1313
define Host/Configure
1414
endef
1515

16+
# On installing the .m4 files, we add a gl_ prefix to prevent any conflict with
17+
# automake. It was found that there is currently a conflict for the cond.m4 that
18+
# is also shipped by automake, making the gnulib one having priority causing
19+
# problem with finding AM_CONDITIONAL macro.
1620
define Host/Install
1721
$(call Host/Uninstall)
1822
$(INSTALL_DIR) $(1)/share/aclocal
19-
$(INSTALL_DATA) $(HOST_BUILD_DIR)/m4/*.m4 $(1)/share/aclocal/
23+
$(foreach m4,$(notdir $(wildcard $(HOST_BUILD_DIR)/m4/*.m4)),
24+
$(INSTALL_DATA) $(HOST_BUILD_DIR)/m4/$(m4) $(1)/share/aclocal/gl_$(m4))
2025
$(CP) $(HOST_BUILD_DIR)/ $(1)/share/gnulib/
2126
ln -sf ../share/gnulib/gnulib-tool $(STAGING_DIR_HOST)/bin/gnulib-tool
2227
endef

0 commit comments

Comments
 (0)