From 157b1a339a0c6112b512de9e1f45ce40952e14d5 Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Thu, 13 Feb 2020 15:13:50 +0300 Subject: [PATCH] configure: Check nasm - redirect stderr to null device configure prints an error if nasm is not installed on the system: ./configure: line 554: nasm: command not found Notice: ISA-L, compression & crypto auto-disabled due to nasm dependency. These features require NASM version 2.13.03 or newer. Please install or upgrade then re-run this script. Redirect stderr to null device to disable error printing Change-Id: Ifa596fba19ecaf5270614ab22f09f0a66af08475 Signed-off-by: Alexey Marchuk Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/871 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index e2c0448d1..e71803924 100755 --- a/configure +++ b/configure @@ -551,7 +551,7 @@ if [[ "${CONFIG[FC]}" = "y" ]]; then fi if [[ "${CONFIG[ISAL]}" = "y" ]] || [[ "${CONFIG[CRYPTO]}" = "y" ]]; then - ver=$(nasm -v | awk '{print $3}' | sed 's/[^0-9]*//g') + ver=$(nasm -v 2>/dev/null | awk '{print $3}' | sed 's/[^0-9]*//g') if [[ "${ver:0:1}" -le "2" ]] && [[ "${ver:0:3}" -le "213" ]] && [[ "${ver:0:5}" -lt "21303" ]]; then echo "Notice: ISA-L, compression & crypto auto-disabled due to nasm dependency." echo "These features require NASM version 2.13.03 or newer. Please install"