changeset 249:6b2441c776dd

*: merge
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:18:59 -0500
parents cf47a8f687c0 (diff) f475e168fac8 (current diff)
children c130f47f6f48
files Makefile.am configure.ac
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Tue Jan 23 10:16:25 2024 -0500
+++ b/Makefile.am	Wed Jan 24 20:18:59 2024 -0500
@@ -94,9 +94,8 @@
 ldflags_win = -mwindows
 
 if BUILD_WINDRES
-# Untested...
 
-wrcflags_version = -DWRC_VERSION=0,`echo $(PACKAGE_VERSION) | sed 's/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1,\2,\3/'`
+wrcflags_version = -DWRC_VERSION=0,`echo $(PACKAGE_VERSION) | @SED@ 's/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1,\2,\3/'`
 
 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) $(CPPFLAGS)
 .rc.$(OBJEXT):
--- a/configure.ac	Tue Jan 23 10:16:25 2024 -0500
+++ b/configure.ac	Wed Jan 24 20:18:59 2024 -0500
@@ -45,6 +45,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*)