mirror of
https://github.com/intel/isa-l.git
synced 2025-07-05 18:01:42 +02:00
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:
parent
e6848434ae
commit
2f9eef537c
11
configure.ac
11
configure.ac
@ -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.])
|
||||
|
Loading…
x
Reference in New Issue
Block a user