# HG changeset patch # User Paper # Date 1706145335 18000 # Node ID 1ae4d8b28a5c03b1a3f29f76169da080ae684bc6 # Parent 4d461ef7d4247f29e1fbfbe348295ec22873360b autotools/windres: use AC_PROG_SED for sed sed is actually surprisingly unportable. on mingw this shouldn't be a problem, but alas, we should use it anyway diff -r 4d461ef7d424 -r 1ae4d8b28a5c Makefile.am --- a/Makefile.am Fri Jan 19 00:24:02 2024 -0500 +++ b/Makefile.am Wed Jan 24 20:15:35 2024 -0500 @@ -69,7 +69,7 @@ if BUILD_WINDRES # Untested... -wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | sed 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'` +wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | @SED@ 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'` WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) .rc.$(OBJEXT): diff -r 4d461ef7d424 -r 1ae4d8b28a5c configure.ac --- a/configure.ac Fri Jan 19 00:24:02 2024 -0500 +++ b/configure.ac Wed Jan 24 20:15:35 2024 -0500 @@ -42,6 +42,8 @@ build_windows=yes AC_CHECK_TOOL([WINDRES], [windres]) AC_SUBST(WINDRES) + AC_PROG_SED # We need sed for version numbers in windres + AC_SUBST(SED) AC_DEFINE(WIN32) ;; darwin*)