configure: update how CPU arch is determined

The -i option for uname is not portable, -m is a better choice.
Fixes #648

Signed-off-by: gila <jeffry.molanus@gmail.com>
Change-Id: I2287e652e8d3243df2bf101c1cfbdc6aedf643f1
Reviewed-on: https://review.gerrithub.io/c/443315
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
gila 2019-02-05 00:14:42 +01:00 committed by Jim Harris
parent 5632ec9190
commit 8629d8da66

2
configure vendored
View File

@ -294,7 +294,7 @@ for i in "$@"; do
done
# Detect architecture and force no isal if non x86 archtecture
arch=$(uname -i)
arch=$(uname -m)
if [[ $arch != x86_64* ]]; then
echo "Notice: ISAL auto-disabled due to CPU incompatiblity."
CONFIG[ISAL]=n