summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2017-10-26 11:00:24 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:48:12 -0400
commit6976b5e8a8f18e4247614c8d7c5a4586a84cc307 (patch)
treeb13ee7e9778cd534136bced539100f5ca44cbeb0
parenta45f3bac58a6435ccc80192398d65926fc06c127 (diff)
downloadlighttpd-git-6976b5e8a8f18e4247614c8d7c5a4586a84cc307.tar.gz
[autobuild] generate version id with m4 instead of awk
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 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([\