1 From dfbbbd359e43e0a55fbea06f2647279ad8761cb9 Mon Sep 17 00:00:00 2001
2 From: Mingli Yu <mingli.yu@windriver.com>
3 Date: Wed, 24 Mar 2021 03:04:13 +0000
4 Subject: [PATCH] Makefile.am: make sure autoheader run before autoconf
6 autoheader will update ../libtool-2.4.6/libltdl/config-h.in which
7 autoconf needs, so there comes a race sometimes as below:
8 | configure.ac:45: error: required file 'config-h.in' not found
9 | touch '../libtool-2.4.6/libltdl/config-h.in'
11 So make sure autoheader run before autoconf to avoid this race.
13 Upstream-Status: Submitted [libtool-patches@gnu.org maillist]
15 Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/Makefile.am b/Makefile.am
21 index 4142c90..fe1a9fc 100644
24 @@ -365,7 +365,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps)
25 $(lt_aclocal_m4): $(lt_aclocal_m4_deps)
26 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4
28 -$(lt_configure): $(lt_configure_deps)
29 +$(lt_configure): $(lt_configure_deps) $(lt_config_h_in)
30 $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF)
32 $(lt_config_h_in): $(lt_configure_deps)