]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: require jansson for rust build
authorJason Ish <ish@unx.ca>
Fri, 14 Jul 2017 15:09:33 +0000 (09:09 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 19 Jul 2017 07:38:33 +0000 (09:38 +0200)
configure.ac

index 4e82c57565f5750245ad797ae969db911f7c10ad..773ec1000c83cefeecfff7e22e85c5e3d5b331f1 100644 (file)
     if test "x$enable_rust" != "xyes"; then
       enable_rust="no"
     else
+      # Rust require jansson (json support).
+      if test "x$enable_jansson" = "xno"; then
+        echo ""
+        echo "   ERROR! Rust support requires jansson."
+        echo ""
+        exit 1
+      fi
+
       AC_PATH_PROG(HAVE_CARGO, cargo, "no")
       AC_PATH_PROG(HAVE_RUSTC, rustc, "no")