Skip to content

Commit

Permalink
Remove cbindgen
Browse files Browse the repository at this point in the history
When build suricata in Docker, alamalinux does not
have cbindgen package.
  • Loading branch information
vincentmli committed Sep 21, 2023
1 parent 0f8f69b commit a5b0388
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2619,36 +2619,6 @@ fi
fi
fi

AC_PATH_PROG(CBINDGEN, cbindgen, "no")
if test "x$CBINDGEN" != "xno"; then
cbindgen_version=$(cbindgen --version | cut -d' ' -f2-)
min_cbindgen_version="0.10.0"
AS_VERSION_COMPARE([$cbindgen_version], [$min_cbindgen_version],
[cbindgen_ok="no"],
[cbindgen_ok="yes"],
[cbindgen_ok="yes"])
if test "x$cbindgen_ok" != "xyes"; then
echo " Warning: cbindgen must be at least version $min_cbindgen_version,"
echo " found $cbindgen_version."
echo " To update: cargo install --force cbindgen"
CBINDGEN="no"
else
have_rust_headers="no"
fi
fi

AC_SUBST([CBINDGEN], [$CBINDGEN])

# Require cbindgen if generated headers are not bundled.
if test "x$have_rust_headers" != "xyes"; then
if test "x$CBINDGEN" = "xno"; then
echo " Warning: cbindgen too old or not found, it is required to "
echo " generate header files."
echo " To install: cargo install --force cbindgen"
AC_MSG_ERROR([cbindgen required])
fi
fi

AM_CONDITIONAL([HAVE_RUST_HEADERS], [test "x$have_rust_headers" = "xyes"])
AM_CONDITIONAL([HAVE_CBINDGEN], [test "x$CBINDGEN" != "xno"])
AM_CONDITIONAL([HAVE_CARGO_VENDOR], [test "x$have_cargo_vendor" != "xno"])
Expand Down

0 comments on commit a5b0388

Please sign in to comment.