15 |
API_MAJOR="4" |
API_MAJOR="4" |
16 |
API_MINOR="2" |
API_MINOR="2" |
17 |
|
|
18 |
dnl NASM version requirement |
dnl NASM/YASM version requirement |
19 |
|
minimum_yasm_minor_version=8 |
20 |
minimum_nasm_minor_version=0 |
minimum_nasm_minor_version=0 |
21 |
minimum_nasm_major_version=2 |
minimum_nasm_major_version=2 |
22 |
nasm_prog="nasm" |
nasm_prog="nasm" |
23 |
|
yasm_prog="yasm" |
24 |
|
|
25 |
dnl Default CFLAGS -- Big impact on overall speed |
dnl Default CFLAGS -- Big impact on overall speed |
26 |
our_cflags_defaults="-Wall" |
our_cflags_defaults="-Wall" |
347 |
found_nasm_comp_prog="no" |
found_nasm_comp_prog="no" |
348 |
chosen_asm_prog="" |
chosen_asm_prog="" |
349 |
|
|
350 |
|
dnl Check for yasm first |
351 |
|
AC_CHECK_PROG([ac_yasm], [$yasm_prog], [yes], [no], , [yes]) |
352 |
|
if test "$ac_yasm" = "yes" ; then |
353 |
|
dnl |
354 |
|
dnl Checking yasm version |
355 |
|
dnl |
356 |
|
AC_MSG_CHECKING([for yasm version]) |
357 |
|
yasm_minor=`$yasm_prog --version | cut -d '.' -f 2 | cut -d ' ' -f 1` |
358 |
|
if test -z $yasm_minor ; then |
359 |
|
yasm_minor=-1 |
360 |
|
fi |
361 |
|
AC_MSG_RESULT([$yasm_minor]) |
362 |
|
|
363 |
|
dnl Actually, yasm >= 0.7.99.2161 should be ok |
364 |
|
dnl But I'm too lazy to check also the patch version... |
365 |
|
if test "$yasm_minor" -lt "$minimum_yasm_minor_version" ; then |
366 |
|
AC_MSG_WARN([yasm version is too old]) |
367 |
|
else |
368 |
|
found_nasm_comp_prog="yes" |
369 |
|
chosen_asm_prog="$yasm_prog" |
370 |
|
fi |
371 |
|
fi |
372 |
|
|
373 |
dnl Check for nasm (not buggy version) |
dnl Check for nasm (not buggy version) |
374 |
if test "$found_nasm_comp_prog" = "no" ; then |
if test "$found_nasm_comp_prog" = "no" ; then |
375 |
AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes]) |
AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes]) |