Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ AC_CONFIG_MACRO_DIR([m4])

dnl m4_include([m4/ax_check_openssl.m4])
dnl m4_include([m4/ax_check_wolfssl.m4])
m4_include([m4/hexversion.m4])

AM_INIT_AUTOMAKE([1.11 -Wall -Werror -Wno-portability foreign tar-ustar subdir-objects no-define color-tests])
LT_INIT([disable-static pic-only])
Expand Down Expand Up @@ -130,6 +131,7 @@ CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_LDFLAGS])
CREATE_HEX_VERSION

AC_CONFIG_FILES([Makefile
include/wolfprovider/version.h
Expand Down
4 changes: 2 additions & 2 deletions include/wolfprovider/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
extern "C" {
#endif

#define LIBWOLFPROV_VERSION_STRING "1.1.0-RC"
#define LIBWOLFPROV_VERSION_HEX @HEX_VERSION@
#define LIBWOLFPROV_VERSION_STRING "1.0.2"
#define LIBWOLFPROV_VERSION_HEX 0x01000002

#ifdef __cplusplus
}
Expand Down
6 changes: 6 additions & 0 deletions m4/hexversion.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AC_DEFUN([CREATE_HEX_VERSION],[

HEX_VERSION=`echo $VERSION | sed 's|[\-a-z0-9]*$||' | \
awk -F. '{printf "0x%0.2d%0.3d%0.3d", $[]1, $[]2, $[]3}'`
AC_SUBST([HEX_VERSION])
])