configure: Convince autotools to work with MSVC's archiver lib.exe

This commit is contained in:
Tim Ruffing 2022-03-14 17:15:13 +01:00
parent bd81f4140a
commit 2be6ba0fed
1 changed files with 7 additions and 2 deletions

View File

@ -32,14 +32,19 @@ AM_INIT_AUTOMAKE([1.11.2 foreign subdir-objects])
# Make the compilation flags quiet unless V=1 is used.
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
PKG_PROG_PKG_CONFIG
AC_PROG_CC
AM_PROG_AS
AM_PROG_AR
# Clear some cache variables as a workaround for a bug that appears due to a bad
# interaction between AM_PROG_AR and LT_INIT when combining MSVC's archiver lib.exe.
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54421
AS_UNSET(ac_cv_prog_AR)
AS_UNSET(ac_cv_prog_ac_ct_AR)
LT_INIT([win32-dll])
PKG_PROG_PKG_CONFIG
build_windows=no
case $host_os in