From c12a24ef337889ed1f980cce2baf78ac6bd0ee93 Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 18 Jun 2023 17:38:35 +0300 Subject: Duplicate most of the XML functions in Rust, use Cargo --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e9588fa..251a94f 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,10 @@ AC_ARG_WITH([rust], AS_IF([test "x$with_rust" == "xyes"], [AC_PATH_PROG([RUSTC], [rustc], [notfound]) - AS_IF([test "x$RUSTC" == "xnotfound"], [AC_MSG_ERROR([rustc is required])])]) + AS_IF([test "x$RUSTC" == "xnotfound"], [AC_MSG_ERROR([rustc is required])]) + AC_PATH_PROG([CARGO], [cargo], [notfound]) + AS_IF([test "x$CARGO" == "xnotfound"], [AC_MSG_ERROR([cargo is required])]) + AC_DEFINE([USE_RUST], [1], [Use Rust sources over C ones])]) AM_CONDITIONAL([USE_RUST], [test "x$with_rust" == "xyes"]) LT_INIT -- cgit v1.2.3