Without this, Automake fails to build static libraries with the
Microsoft compiler tools.
Update DX_AUTOMAKE_COMPAT to wrap ar-lib just like is currently
done with compile, so that it is run with the configured shell
instead of hardcoded /bin/sh.
*.lo
*.o
.deps
.dirstamp
/aclocal.m4
*.lo
*.o
.deps
.dirstamp
/aclocal.m4
/atconfig
/atlocal
/autom4te.cache
/atconfig
/atlocal
/autom4te.cache
-dnl Copyright © 2015, 2019-2023 Nick Bowler
+dnl Copyright © 2015, 2019-2024 Nick Bowler
dnl
dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
dnl This is free software: you are free to do what the fuck you want to.
dnl
dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
dnl This is free software: you are free to do what the fuck you want to.
AC_USE_SYSTEM_EXTENSIONS
AC_C_INLINE
AC_USE_SYSTEM_EXTENSIONS
AC_C_INLINE
AC_SUBST([STUB_INCLUDES], [@&t@])
AC_SUBST([STUB_INCLUDES], [@&t@])
-dnl Copyright © 2012, 2021, 2023 Nick Bowler
+dnl Copyright © 2012, 2021, 2023-2024 Nick Bowler
dnl
dnl Definitions to help maintain compatibility with multiple Automake versions.
dnl
dnl
dnl Definitions to help maintain compatibility with multiple Automake versions.
dnl
AC_DEFUN_ONCE([DX_AUTOMAKE_COMPAT],
[AC_REQUIRE([DX_INIT])dnl
AC_REQUIRE([_DX_AUTOMAKE_COMPAT_PATCH_CC])dnl
AC_DEFUN_ONCE([DX_AUTOMAKE_COMPAT],
[AC_REQUIRE([DX_INIT])dnl
AC_REQUIRE([_DX_AUTOMAKE_COMPAT_PATCH_CC])dnl
+AC_REQUIRE([_DX_AUTOMAKE_COMPAT_PATCH_AR])dnl
AC_CONFIG_COMMANDS_PRE([# Patch install-sh references to include $SHELL
AS_CASE([$MKDIR_P], ["$ac_install_sh"*], [MKDIR_P="$SHELL $MKDIR_P"])
AS_CASE([$INSTALL], ["$ac_install_sh"*], [INSTALL="$SHELL $INSTALL"])
AC_CONFIG_COMMANDS_PRE([# Patch install-sh references to include $SHELL
AS_CASE([$MKDIR_P], ["$ac_install_sh"*], [MKDIR_P="$SHELL $MKDIR_P"])
AS_CASE([$INSTALL], ["$ac_install_sh"*], [INSTALL="$SHELL $INSTALL"])
DX_PATCH_MACRO([_AM_PROG_CC_C_O],
["[$]am_aux_dir/compile],
["$SHELL $am_aux_dir/compile])])
DX_PATCH_MACRO([_AM_PROG_CC_C_O],
["[$]am_aux_dir/compile],
["$SHELL $am_aux_dir/compile])])
+
+AC_DEFUN_ONCE([_DX_AUTOMAKE_COMPAT_PATCH_AR],
+[AC_BEFORE([$0], [AM_PROG_AR])dnl
+DX_PATCH_MACRO([AM_PROG_AR],
+ ["[$]am_aux_dir/ar-lib],
+ ["$SHELL $am_aux_dir/ar-lib])])