gitlab#205 - configure.ac: Check the minimum version of rustc (1.20)

GNOME/librsvg#205
parent e2263b64
......@@ -78,6 +78,22 @@ AS_IF(test x$RUSTC = xno,
AC_MSG_ERROR([rustc is required. Please install the Rust toolchain from https://www.rust-lang.org/])
)
dnl Minimum version of rustc that we support
MINIMUM_RUST_MAJOR=1
MINIMUM_RUST_MINOR=20
rust_version=`rustc --version`
version=`echo "$rust_version" | sed -e 's/^rustc //g'`
major=`echo "$version" | cut -d. -f1`
minor=`echo "$version" | cut -d. -f2`
MINIMUM_RUST_MAJOR=1
MINIMUM_RUST_MINOR=20
AS_IF(test "$major" -lt "$MINIMUM_RUST_MAJOR" -o "$minor" -lt "$MINIMUM_RUST_MINOR",
AC_MSG_ERROR([librsvg needs at rustc version at least $MINIMUM_RUST_MAJOR.$MINIMUM_RUST_MINOR])
)
dnl ===========================================================================
#AC_CANONICAL_HOST
......@@ -357,7 +373,8 @@ echo "
librsvg-$VERSION
prefix: ${prefix}
compiler: ${CC}
C compiler: ${CC}
rustc: ${rust_version}
Debugging information for Rust: ${debug_release}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment