]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
build: make sure autoheader run before automake
authorMingli Yu <mingli.yu@windriver.com>
Tue, 13 Apr 2021 08:19:11 +0000 (16:19 +0800)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 06:24:15 +0000 (01:24 -0500)
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 <mingli.yu@windriver.com>
Makefile.am

index 2a4f13ad2bca9ba01c9c044180f161afc91f1ddb..904f3d73fc89ec0726655e6a302350c2bdc3539f 100644 (file)
@@ -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