From 6976b5e8a8f18e4247614c8d7c5a4586a84cc307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 26 Oct 2017 11:00:24 +0200 Subject: [PATCH] [autobuild] generate version id with m4 instead of awk --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 75e8a33b..33ba1276 100644 --- a/configure.ac +++ b/configure.ac @@ -65,7 +65,6 @@ AC_PROG_CC_STDC AX_PROG_CC_FOR_BUILD AC_PROG_LD AC_PROG_INSTALL -AC_PROG_AWK AC_PROG_CPP AC_PROG_MAKE_SET @@ -1252,7 +1251,7 @@ if test "$extrawarnings" = true || test "$extrawarnings" = error; then fi dnl build version-id -LIGHTTPD_VERSION_ID=`echo "$PACKAGE_VERSION" | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'` +LIGHTTPD_VERSION_ID=m4_format([0x%x%02x%02x], m4_unquote(m4_split(AC_PACKAGE_VERSION, [\.]))) AC_DEFINE_UNQUOTED([LIGHTTPD_VERSION_ID], [$LIGHTTPD_VERSION_ID], [lighttpd-version-id]) AC_CONFIG_FILES([\