build: Fix autoconf build for mingw target

Change-Id: Ie5ae17556f8cc95af8e59c8bd81a958c94455cd1
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2019-10-28 15:53:14 -07:00
parent e6848434ae
commit 2f9eef537c

View File

@ -150,10 +150,7 @@ if test x"$is_x86" = x"yes"; then
fi
fi
if test x"$arch" = x"mingw"; then
AS=yasm
as_feature_level=$yasm_feature_level
elif test $nasm_feature_level -ge $yasm_feature_level ; then
if test $nasm_feature_level -ge $yasm_feature_level ; then
AS=nasm
as_feature_level=$nasm_feature_level
else
@ -219,8 +216,12 @@ if test x"$is_x86" = x"yes"; then
esac
# Fix for nasm missing windows features
if test x"$arch" = x"mingw" -a x"$AS" != x"yasm"; then
if test x"$arch" = x"mingw"; then
AS=yasm
as_feature_level=$yasm_feature_level
if test $as_feature_level -lt 2 ; then
AC_MSG_ERROR([Mingw build requires Yasm 1.2.0 or later.])
fi
fi
AC_DEFINE_UNQUOTED(AS_FEATURE_LEVEL, [$as_feature_level], [Assembler feature level.])