From: Mingli Yu Date: Tue, 13 Apr 2021 08:19:11 +0000 (+0800) Subject: build: make sure autoheader run before automake X-Git-Tag: v2.5.0~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e01c0bfe5e041418d84460901a1a5b11b89d596f;p=thirdparty%2Flibtool.git build: make sure autoheader run before automake When use automake to generate Makefile.in from Makefile.am, there comes below race: | configure.ac:45: error: required file 'config-h.in' not found It is because the file config-h.in in updating process by autoheader, so make automake run after autoheader to avoid the above race. * Makefile.am: Have $(lt_Makefile_in) depend on $(lt_config_h_in). Signed-off-by: Mingli Yu --- diff --git a/Makefile.am b/Makefile.am index 2a4f13ad2..904f3d73f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -333,7 +333,7 @@ EXTRA_DIST += $(lt_aclocal_m4) \ $(lt_obsolete_m4) \ $(stamp_mk) -$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) +$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) $(lt_config_h_in) $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOMAKE) Makefile # Don't let unused scripts leak into the libltdl Makefile