8 |
|
|
9 |
AC_PREREQ([2.50]) |
AC_PREREQ([2.50]) |
10 |
|
|
11 |
AC_INIT([Xvid], [1.3.0], [xvid-devel@xvid.org]) |
AC_INIT([Xvid], [1.4.0], [xvid-devel@xvid.org]) |
12 |
AC_CONFIG_SRCDIR(configure.in) |
AC_CONFIG_SRCDIR(configure.in) |
13 |
|
|
14 |
dnl Do not forget to increase that when needed. |
dnl Do not forget to increase that when needed. |
15 |
API_MAJOR="4" |
API_MAJOR="4" |
16 |
API_MINOR="3" |
API_MINOR="4" |
17 |
|
|
18 |
dnl NASM/YASM version requirement |
dnl NASM/YASM version requirement |
19 |
minimum_yasm_minor_version=8 |
minimum_yasm_major_version=1 |
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" |
355 |
dnl Checking yasm version |
dnl Checking yasm version |
356 |
dnl |
dnl |
357 |
AC_MSG_CHECKING([for yasm version]) |
AC_MSG_CHECKING([for yasm version]) |
358 |
yasm_minor=`$yasm_prog --version | cut -d '.' -f 2 | cut -d ' ' -f 1` |
yasm_major=`$yasm_prog --version | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 2` |
359 |
if test -z $yasm_minor ; then |
if test -z $yasm_major ; then |
360 |
yasm_minor=-1 |
yasm_major=-1 |
361 |
fi |
fi |
362 |
AC_MSG_RESULT([$yasm_minor]) |
AC_MSG_RESULT([$yasm_major]) |
363 |
|
|
364 |
dnl Actually, yasm >= 0.7.99.2161 should be ok |
dnl Actually, yasm >= 0.7.99.2161 should be ok |
365 |
dnl But I'm too lazy to check also the patch version... |
dnl But I'm too lazy to check also the patch version... |
366 |
if test "$yasm_minor" -lt "$minimum_yasm_minor_version" ; then |
if test "$yasm_major" -lt "$minimum_yasm_major_version" ; then |
367 |
AC_MSG_WARN([yasm version is too old]) |
AC_MSG_WARN([yasm version is too old]) |
368 |
else |
else |
369 |
found_nasm_comp_prog="yes" |
found_nasm_comp_prog="yes" |
591 |
AC_CHECK_LIB( |
AC_CHECK_LIB( |
592 |
pthread, |
pthread, |
593 |
pthread_create, |
pthread_create, |
|
AC_CHECK_LIB( |
|
|
pthread, |
|
|
pthread_join, |
|
594 |
SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" |
SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" |
595 |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread", |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread", |
596 |
AC_MSG_WARN(Pthread not supported. No SMP support)), |
AC_MSG_WARN(Pthread not supported. No SMP support)), |
|
AC_MSG_WARN(Pthread not supported. No SMP support)), |
|
597 |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
598 |
|
|
599 |
dnl ========================================================================== |
dnl ========================================================================== |