mirror of
https://github.com/xdp-project/BNG-router.git
synced 2024-05-06 15:54:53 +00:00
configure: avoid bashisms
The variable substitution used to parse the clang version was a bashism, so it broke on Debian/Ubuntu. So let's just use sed instead. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
5
configure
vendored
5
configure
vendored
@ -28,8 +28,9 @@ check_toolchain()
|
||||
done
|
||||
|
||||
clang_version=$($CLANG --version | sed -n '/clang version/ s/^.*clang version // p')
|
||||
if [ "${clang_version//.*/}" -lt "11" ]; then
|
||||
echo "ERROR: Need clang version >= 11, found $clang_version"
|
||||
clang_major_version=$(echo "$clang_version" | sed 's/\..*$//')
|
||||
if [ "$clang_major_version" -lt "11" ]; then
|
||||
echo "ERROR: Need clang version >= 11, found $clang_major_version ($clang_version)"
|
||||
exit 1
|
||||
fi
|
||||
echo "clang: $clang_version"
|
||||
|
Reference in New Issue
Block a user