mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-04 00:31:15 +00:00
configure: Fix building of rust for release
Set rustver correctly for both release version string (for example 3.1.7) and git one (3.1.7.1-982f). corosyncrustver must be escaped by '[]' because sed is using these two characters and m4 would remove them. Signed-off-by: Jan Friesse <jfriesse@redhat.com> Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
This commit is contained in:
parent
982ff8d818
commit
2fcda76b96
@ -46,7 +46,7 @@ AC_ARG_ENABLE([rust-bindings],
|
||||
[AS_HELP_STRING([--enable-rust-bindings],[rust bindings support])],,
|
||||
[ enable_rust_bindings="no" ])
|
||||
AM_CONDITIONAL([BUILD_RUST_BINDINGS], [test x$enable_rust_bindings = xyes])
|
||||
corosyncrustver="`echo ${VERSION} | sed 's/\(.*\)\./\1-/'`"
|
||||
corosyncrustver=["`echo ${VERSION} | sed 's/\.\([^-\.]*-\)/-\1/'`"]
|
||||
AC_SUBST([corosyncrustver])
|
||||
|
||||
dnl Fix default variables - "prefix" variable if not specified
|
||||
|
Loading…
Reference in New Issue
Block a user