1 From: Mingli Yu <mingli.yu@windriver.com>
2 Subject: [PATCH 09/12] Makefile.am: make sure autoheader run before autoconf
4 autoheader will update ../libtool-2.4.6/libltdl/config-h.in which
5 autoconf needs, so there comes a race sometimes as below:
6 | configure.ac:45: error: required file 'config-h.in' not found
7 | touch '../libtool-2.4.6/libltdl/config-h.in'
9 So make sure autoheader run before autoconf to avoid this race.
11 Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00015.html]
16 diff --git a/Makefile.am b/Makefile.am
17 index 6b546092..84795d87 100644
20 @@ -370,7 +370,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps)
21 $(lt_aclocal_m4): $(lt_aclocal_m4_deps)
22 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4
24 -$(lt_configure): $(lt_configure_deps)
25 +$(lt_configure): $(lt_configure_deps) $(lt_config_h_in)
26 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF)
28 $(lt_config_h_in): $(lt_configure_deps)