mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
(linux) Use avcodec_decode_video when avcodec_decode_video2 is not present. Updated vcmi version number.
This commit is contained in:
@@ -800,7 +800,12 @@ bool CVideoPlayer::nextFrame()
|
|||||||
// Is this a packet from the video stream?
|
// Is this a packet from the video stream?
|
||||||
if (packet.stream_index == stream) {
|
if (packet.stream_index == stream) {
|
||||||
// Decode video frame
|
// Decode video frame
|
||||||
|
#ifdef WITH_AVCODEC_DECODE_VIDEO2
|
||||||
avcodec_decode_video2(codecContext, frame, &frameFinished, &packet);
|
avcodec_decode_video2(codecContext, frame, &frameFinished, &packet);
|
||||||
|
#else
|
||||||
|
avcodec_decode_video(codecContext, frame, &frameFinished,
|
||||||
|
packet.data, packet.size);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Did we get a video frame?
|
// Did we get a video frame?
|
||||||
if (frameFinished) {
|
if (frameFinished) {
|
||||||
|
187
configure
vendored
187
configure
vendored
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.67 for vcmi 0.83.
|
# Generated by GNU Autoconf 2.67 for vcmi 0.84b.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||||
@@ -698,8 +698,8 @@ MAKEFLAGS=
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='vcmi'
|
PACKAGE_NAME='vcmi'
|
||||||
PACKAGE_TARNAME='vcmi'
|
PACKAGE_TARNAME='vcmi'
|
||||||
PACKAGE_VERSION='0.83'
|
PACKAGE_VERSION='0.84b'
|
||||||
PACKAGE_STRING='vcmi 0.83'
|
PACKAGE_STRING='vcmi 0.84b'
|
||||||
PACKAGE_BUGREPORT=''
|
PACKAGE_BUGREPORT=''
|
||||||
PACKAGE_URL=''
|
PACKAGE_URL=''
|
||||||
|
|
||||||
@@ -1444,7 +1444,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures vcmi 0.83 to adapt to many kinds of systems.
|
\`configure' configures vcmi 0.84b to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@@ -1514,7 +1514,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of vcmi 0.83:";;
|
short | recursive ) echo "Configuration of vcmi 0.84b:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@@ -1539,11 +1539,12 @@ Optional Packages:
|
|||||||
--with-pic try to use only PIC/non-PIC objects [default=use
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
||||||
both]
|
both]
|
||||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||||
--with-boost[=DIR] use boost (default is yes) - it is possible to
|
--with-boost[=ARG] use Boost library from a standard location
|
||||||
specify the root directory for boost (optional)
|
(ARG=yes), from the specified location (ARG=<path>),
|
||||||
|
or disable it (ARG=no) [ARG=yes]
|
||||||
--with-boost-libdir=LIB_DIR
|
--with-boost-libdir=LIB_DIR
|
||||||
Force given directory for boost libraries. Note that
|
Force given directory for boost libraries. Note that
|
||||||
this will overwrite library path detection, so use
|
this will override library path detection, so use
|
||||||
this parameter only if default library detection
|
this parameter only if default library detection
|
||||||
fails and you know exactly where your boost
|
fails and you know exactly where your boost
|
||||||
libraries are located.
|
libraries are located.
|
||||||
@@ -1561,8 +1562,8 @@ Optional Packages:
|
|||||||
--with-boost-thread=boost_thread-gcc-mt
|
--with-boost-thread=boost_thread-gcc-mt
|
||||||
--with-boost-iostreams[=special-lib]
|
--with-boost-iostreams[=special-lib]
|
||||||
use the IOStreams library from boost - it is
|
use the IOStreams library from boost - it is
|
||||||
possible to specify a certain library for the
|
possible to specify a certain library for the linker
|
||||||
linker
|
e.g.
|
||||||
--with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
|
--with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
|
||||||
--with-boost-program-options[=special-lib]
|
--with-boost-program-options[=special-lib]
|
||||||
use the program options library from boost - it is
|
use the program options library from boost - it is
|
||||||
@@ -1649,7 +1650,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
cat <<\_ACEOF
|
vcmi configure 0.84b
|
||||||
generated by GNU Autoconf 2.67
|
generated by GNU Autoconf 2.67
|
||||||
|
|
||||||
Copyright (C) 2010 Free Software Foundation, Inc.
|
Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
@@ -2244,7 +2245,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
|
It was created by vcmi $as_me 0.84b, which was
|
||||||
generated by GNU Autoconf 2.67. Invocation command line was
|
generated by GNU Autoconf 2.67. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@@ -3059,7 +3060,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE='vcmi'
|
PACKAGE='vcmi'
|
||||||
PACKAGE='vcmi'
|
VERSION='0.84b'
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
@@ -5213,13 +5214,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
|
|||||||
else
|
else
|
||||||
lt_cv_nm_interface="BSD nm"
|
lt_cv_nm_interface="BSD nm"
|
||||||
echo "int some_variable = 0;" > conftest.$ac_ext
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
||||||
echo "int some_variable = 0;" > conftest.$ac_ext
|
(eval echo "\"\$as_me:5217: $ac_compile\"" >&5)
|
||||||
(eval "$ac_compile" 2>conftest.err)
|
(eval "$ac_compile" 2>conftest.err)
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
cat conftest.err >&5
|
(eval echo "\"\$as_me:5220: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
||||||
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
cat conftest.err >&5
|
(eval echo "\"\$as_me:5223: output\"" >&5)
|
||||||
cat conftest.out >&5
|
cat conftest.out >&5
|
||||||
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
||||||
lt_cv_nm_interface="MS dumpbin"
|
lt_cv_nm_interface="MS dumpbin"
|
||||||
@@ -6425,7 +6426,7 @@ ia64-*-hpux*)
|
|||||||
;;
|
;;
|
||||||
*-*-irix6*)
|
*-*-irix6*)
|
||||||
# Find out which ABI we are using.
|
# Find out which ABI we are using.
|
||||||
# Find out which ABI we are using.
|
echo '#line 6429 "configure"' > conftest.$ac_ext
|
||||||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
||||||
(eval $ac_compile) 2>&5
|
(eval $ac_compile) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
@@ -8421,11 +8422,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
cat conftest.err >&5
|
echo "$as_me:8429: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@@ -8760,11 +8761,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:8764: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
cat conftest.err >&5
|
echo "$as_me:8768: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@@ -8865,11 +8866,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:8869: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
cat out/conftest.err >&5
|
echo "$as_me:8873: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@@ -8920,11 +8921,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:8924: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
cat out/conftest.err >&5
|
echo "$as_me:8928: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@@ -11300,7 +11301,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
#line 11304 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@@ -11396,7 +11397,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
#line 11400 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@@ -13352,11 +13353,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
cat conftest.err >&5
|
echo "$as_me:13360: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@@ -13451,11 +13452,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:13455: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
cat out/conftest.err >&5
|
echo "$as_me:13459: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@@ -13503,11 +13504,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
(eval echo "\"\$as_me:13507: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
cat out/conftest.err >&5
|
echo "$as_me:13511: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@@ -14533,7 +14534,7 @@ fi
|
|||||||
# Check whether --with-boost-libdir was given.
|
# Check whether --with-boost-libdir was given.
|
||||||
if test "${with_boost_libdir+set}" = set; then :
|
if test "${with_boost_libdir+set}" = set; then :
|
||||||
withval=$with_boost_libdir;
|
withval=$with_boost_libdir;
|
||||||
withval=$with_boost_libdir;
|
if test -d "$withval"
|
||||||
then
|
then
|
||||||
ac_boost_lib_path="$withval"
|
ac_boost_lib_path="$withval"
|
||||||
else
|
else
|
||||||
@@ -14560,13 +14561,27 @@ if test "x$want_boost" = "xyes"; then
|
|||||||
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
|
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
|
||||||
succeeded=no
|
succeeded=no
|
||||||
|
|
||||||
|
libsubdirs="lib"
|
||||||
|
ax_arch=`uname -m`
|
||||||
|
if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
|
||||||
|
libsubdirs="lib64 lib lib64"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$ac_boost_path" != ""; then
|
if test "$ac_boost_path" != ""; then
|
||||||
if test "$ac_boost_path" != ""; then
|
|
||||||
BOOST_CPPFLAGS="-I$ac_boost_path/include"
|
BOOST_CPPFLAGS="-I$ac_boost_path/include"
|
||||||
BOOST_CPPFLAGS="-I$ac_boost_path/include"
|
for ac_boost_path_tmp in $libsubdirs; do
|
||||||
|
if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
|
||||||
|
BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
elif test "$cross_compiling" != yes; then
|
||||||
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
|
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
|
||||||
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
|
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
|
||||||
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
|
for libsubdir in $libsubdirs ; do
|
||||||
|
if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
|
||||||
|
done
|
||||||
|
BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
|
||||||
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
|
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
@@ -14585,6 +14600,7 @@ $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
|
|||||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
|
|
||||||
|
|
||||||
ac_ext=cpp
|
ac_ext=cpp
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -14643,6 +14659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if test "$cross_compiling" != yes; then
|
||||||
for ac_boost_path in /usr /usr/local /opt /opt/local ; do
|
for ac_boost_path in /usr /usr/local /opt /opt/local ; do
|
||||||
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
|
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
|
||||||
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
|
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
|
||||||
@@ -14658,13 +14675,19 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
|
|
||||||
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
|
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
|
||||||
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
|
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
|
||||||
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
|
if test "$ac_boost_lib_path" = ""; then
|
||||||
if test "$ac_boost_lib_path" = ""
|
for libsubdir in $libsubdirs ; do
|
||||||
then
|
if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
|
||||||
|
done
|
||||||
|
BOOST_LDFLAGS="-L$best_path/$libsubdir"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$BOOST_ROOT" != "x"; then
|
if test "x$BOOST_ROOT" != "x"; then
|
||||||
if test "x$BOOST_ROOT" != "x"; then
|
for libsubdir in $libsubdirs ; do
|
||||||
|
if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
|
||||||
|
done
|
||||||
|
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
|
||||||
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
|
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
|
||||||
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
|
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
|
||||||
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
|
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
|
||||||
@@ -14673,7 +14696,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
|
||||||
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
|
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
|
||||||
BOOST_CPPFLAGS="-I$BOOST_ROOT"
|
BOOST_CPPFLAGS="-I$BOOST_ROOT"
|
||||||
BOOST_CPPFLAGS="-I$BOOST_ROOT"
|
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -14728,17 +14751,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
|
|
||||||
if test "$succeeded" != "yes" ; then
|
if test "$succeeded" != "yes" ; then
|
||||||
if test "$_version" = "0" ; then
|
if test "$_version" = "0" ; then
|
||||||
if test "$_version" = "0" ; then
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
|
||||||
|
$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
|
||||||
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
|
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
|
||||||
fi
|
fi
|
||||||
|
# execute ACTION-IF-NOT-FOUND (if present):
|
||||||
|
:
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
|
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
|
||||||
|
|
||||||
|
# execute ACTION-IF-FOUND (if present):
|
||||||
|
:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||||
@@ -14829,7 +14857,7 @@ $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
|
|||||||
|
|
||||||
LDFLAGS_SAVE=$LDFLAGS
|
LDFLAGS_SAVE=$LDFLAGS
|
||||||
if test "x$ax_boost_user_system_lib" = "x"; then
|
if test "x$ax_boost_user_system_lib" = "x"; then
|
||||||
if test "x$ax_boost_user_system_lib" = "x"; then
|
for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
||||||
@@ -14974,6 +15002,9 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "x$ax_lib" = "x"; then
|
||||||
|
as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test "x$link_system" = "xno"; then
|
if test "x$link_system" = "xno"; then
|
||||||
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
||||||
@@ -15015,6 +15046,10 @@ fi
|
|||||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
|
|
||||||
|
LIBS_SAVED=$LIBS
|
||||||
|
LIBS="$LIBS $BOOST_SYSTEM_LIB"
|
||||||
|
export LIBS
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
|
||||||
$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
|
$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
|
||||||
if test "${ax_cv_boost_filesystem+set}" = set; then :
|
if test "${ax_cv_boost_filesystem+set}" = set; then :
|
||||||
@@ -15061,7 +15096,7 @@ $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
|
|||||||
|
|
||||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
|
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
|
||||||
if test "x$ax_boost_user_filesystem_lib" = "x"; then
|
if test "x$ax_boost_user_filesystem_lib" = "x"; then
|
||||||
if test "x$ax_boost_user_filesystem_lib" = "x"; then
|
for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
||||||
@@ -15205,6 +15240,9 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "x$ax_lib" = "x"; then
|
||||||
|
as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test "x$link_filesystem" != "xyes"; then
|
if test "x$link_filesystem" != "xyes"; then
|
||||||
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
||||||
@@ -15213,6 +15251,7 @@ fi
|
|||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||||
LDFLAGS="$LDFLAGS_SAVED"
|
LDFLAGS="$LDFLAGS_SAVED"
|
||||||
|
LIBS="$LIBS_SAVED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -15320,7 +15359,7 @@ $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "x$ax_boost_user_thread_lib" = "x"; then
|
if test "x$ax_boost_user_thread_lib" = "x"; then
|
||||||
if test "x$ax_boost_user_thread_lib" = "x"; then
|
for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
||||||
@@ -15368,7 +15407,7 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
if test "x$link_thread" != "xyes"; then
|
if test "x$link_thread" != "xyes"; then
|
||||||
if test "x$link_thread" != "xyes"; then
|
for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
||||||
@@ -15465,6 +15504,9 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "x$ax_lib" = "x"; then
|
||||||
|
as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test "x$link_thread" = "xno"; then
|
if test "x$link_thread" = "xno"; then
|
||||||
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
||||||
@@ -15564,7 +15606,7 @@ $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
|
|||||||
|
|
||||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
|
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
|
||||||
if test "x$ax_boost_user_iostreams_lib" = "x"; then
|
if test "x$ax_boost_user_iostreams_lib" = "x"; then
|
||||||
if test "x$ax_boost_user_iostreams_lib" = "x"; then
|
for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
||||||
@@ -15703,6 +15745,9 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "x$ax_lib" = "x"; then
|
||||||
|
as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test "x$link_iostreams" != "xyes"; then
|
if test "x$link_iostreams" != "xyes"; then
|
||||||
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
|
||||||
@@ -16260,8 +16305,48 @@ else
|
|||||||
as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
|
as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
|
||||||
|
$as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
|
||||||
|
if test "${ac_cv_lib_avcodec_avcodec_decode_video2+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lavcodec $LIBS"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
/* Override any GCC internal prototype to avoid an error.
|
||||||
|
Use char because int might match the return type of a GCC
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
char avcodec_decode_video2 ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return avcodec_decode_video2 ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
||||||
|
ac_cv_lib_avcodec_avcodec_decode_video2=yes
|
||||||
|
else
|
||||||
|
ac_cv_lib_avcodec_avcodec_decode_video2=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
|
||||||
|
$as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
|
||||||
|
if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = x""yes; then :
|
||||||
|
AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
FFMPEG_CXXFLAGS="`pkg-config --cflags libavformat libswscale` $AVCODEC_DECODE_VIDEO2"
|
||||||
FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
|
FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
|
||||||
LIBS=$saved_LIBS
|
LIBS=$saved_LIBS
|
||||||
|
|
||||||
@@ -16998,7 +17083,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
ac_log="
|
This file was extended by vcmi $as_me 0.84b, which was
|
||||||
generated by GNU Autoconf 2.67. Invocation command line was
|
generated by GNU Autoconf 2.67. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@@ -17055,7 +17140,7 @@ _ACEOF
|
|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
ac_cs_version="\\
|
vcmi config.status 0.84b
|
||||||
configured by $0, generated by GNU Autoconf 2.67,
|
configured by $0, generated by GNU Autoconf 2.67,
|
||||||
with options \\"\$ac_cs_config\\"
|
with options \\"\$ac_cs_config\\"
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.60)
|
AC_PREREQ(2.60)
|
||||||
AC_INIT(vcmi, 0.83) # Follow NAME_VER in global.h
|
AC_INIT(vcmi, 0.84b) # Follow NAME_VER in global.h
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_MACRO_DIR([aclocal/m4])
|
AC_CONFIG_MACRO_DIR([aclocal/m4])
|
||||||
|
|
||||||
@@ -63,8 +63,9 @@ LIBS=$saved_LIBS
|
|||||||
saved_LIBS=$LIBS
|
saved_LIBS=$LIBS
|
||||||
AC_CHECK_LIB(avformat,av_open_input_file,,AC_MSG_ERROR([FFMpeg avformat library not found. Please install it.]))
|
AC_CHECK_LIB(avformat,av_open_input_file,,AC_MSG_ERROR([FFMpeg avformat library not found. Please install it.]))
|
||||||
AC_CHECK_LIB(swscale,sws_getContext,,AC_MSG_ERROR([FFMpeg swscale library not found. Please install it.]))
|
AC_CHECK_LIB(swscale,sws_getContext,,AC_MSG_ERROR([FFMpeg swscale library not found. Please install it.]))
|
||||||
|
AC_CHECK_LIB(avcodec,avcodec_decode_video2,AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2",)
|
||||||
|
|
||||||
FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
|
FFMPEG_CXXFLAGS="`pkg-config --cflags libavformat libswscale` $AVCODEC_DECODE_VIDEO2"
|
||||||
FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
|
FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
|
||||||
LIBS=$saved_LIBS
|
LIBS=$saved_LIBS
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user