X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fax_hex_version.m4;fp=m4%2Fax_hex_version.m4;h=0000000000000000000000000000000000000000;hb=4a35931d46dadb5d664389b0fbe1498c5567e15f;hp=48d3a7370258e4988907657adac86bb8c33a25a0;hpb=cbec7a4b9613b8ae3807539fae3a29ed8aff4984;p=awesomized%2Flibmemcached diff --git a/m4/ax_hex_version.m4 b/m4/ax_hex_version.m4 deleted file mode 100644 index 48d3a737..00000000 --- a/m4/ax_hex_version.m4 +++ /dev/null @@ -1,33 +0,0 @@ -# =========================================================================== -# https://github.com/BrianAker/ddm4 -# =========================================================================== -# -# SYNOPSIS -# -# AX_HEX_VERSION(VARIABLE_NAME, VERSION) -# -# DESCRIPTION -# -# Generate version information in HEX and STRING format. -# -# LICENSE -# -# Copyright (c) 2012 Brian Aker -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 3 - -AC_DEFUN([AX_HEX_VERSION], - [AC_PREREQ([2.63])dnl - - string_version_$1=`echo $2 | sed 's|[\-a-z0-9]*$||' | awk -F. '{printf "%d.%d.%d", $[]1, $[]2, $[]3}'` - hex_version_$1=`echo $2 | sed 's|[\-a-z0-9]*$||' | awk -F. '{printf "0x%0.2d%0.3d%0.3d", $[]1, $[]2, $[]3}'` - - AC_SUBST([$1_VERSION_STRING],["$string_version_$1"]) - AC_SUBST([$1_VERSION_HEX],["$hex_version_$1"]) - ]) -