Mercurial > mplayer.hg
comparison configure @ 10410:c2fc1c310699
Necessary changes for the upcoming libebml/libmatroska 0.5.0. Implemented support for RealAudio and RealVideo inside Matroska.
author | mosu |
---|---|
date | Fri, 11 Jul 2003 20:24:20 +0000 |
parents | eb1f8a10ce62 |
children | 8d7ca7c06ca6 |
comparison
equal
deleted
inserted
replaced
10409:4c9ca4819bed | 10410:c2fc1c310699 |
---|---|
4167 _nocodecmodules="libtheora $_nocodecmodules" | 4167 _nocodecmodules="libtheora $_nocodecmodules" |
4168 fi | 4168 fi |
4169 echores "$_theora" | 4169 echores "$_theora" |
4170 | 4170 |
4171 | 4171 |
4172 echocheck "Matroska support" | 4172 echocheck "Matroska support (0.5.0 or later)" |
4173 if test "$_matroska" != no ; then | 4173 if test "$_matroska" != no ; then |
4174 _matroska=no | 4174 _matroska=no |
4175 _TMPC=$TMPC | |
4176 TMPC=${TMPC}pp | |
4175 cat > $TMPC << EOF | 4177 cat > $TMPC << EOF |
4176 #include <EbmlConfig.h> | 4178 #include <ebml/EbmlVersion.h> |
4179 #include <matroska/KaxVersion.h> | |
4180 | |
4181 #if LIBEBML_VERSION < 000500 | |
4182 #error libebml is too old | |
4183 #endif | |
4184 | |
4185 #if LIBMATROSKA_VERSION < 000500 | |
4186 #error libmatroska is too old | |
4187 #endif | |
4188 | |
4177 int main(void) { return 0; } | 4189 int main(void) { return 0; } |
4178 EOF | 4190 EOF |
4179 cc_check -lmatroska -lebml && _matroska=yes | 4191 cc_check -lmatroska -lebml -lstdc++ && _matroska=yes |
4180 if test "$_matroska" = no ; then | 4192 if test "$_matroska" = no ; then |
4181 _saved_inc_extra=$_inc_extra | 4193 _saved_inc_extra=$_inc_extra |
4182 _inc_extra="$_inc_extra -I/usr/include/ebml -I/usr/include/matroska" | 4194 _inc_extra="$_inc_extra -I/usr/local/include" |
4183 cc_check -lmatroska -lebml && _matroska=yes | 4195 cc_check -lmatroska -lebml -lstdc++ && _matroska=yes |
4184 if test "$_matroska" = no ; then | 4196 if test "$_matroska" = no ; then |
4185 _inc_extra="$_saved_inc_extra -I/usr/local/include/ebml -I/usr/local/include/matroska" | 4197 _inc_extra=$_saved_inc_extra |
4186 cc_check -lmatroska -lebml && _matroska=yes | |
4187 if test "$_matroska" = no ; then | |
4188 _inc_extra=$_saved_inc_extra | |
4189 fi | |
4190 fi | 4198 fi |
4191 fi | 4199 fi |
4200 TMPC=$_TMPC | |
4192 fi | 4201 fi |
4193 if test "$_matroska" = yes ; then | 4202 if test "$_matroska" = yes ; then |
4194 _def_matroska='#define HAVE_MATROSKA 1' | 4203 _def_matroska='#define HAVE_MATROSKA 1' |
4195 _inputmodules="matroska $_inputmodules" | 4204 _inputmodules="matroska $_inputmodules" |
4196 _ld_matroska="-lmatroska -lebml -lstdc++" | 4205 _ld_matroska="-lmatroska -lebml -lstdc++" |
4197 case $cc_version in | |
4198 2.*) _def_matroska_gcc2="#define LIBEBML_GCC2" ;; | |
4199 *) _def_matroska_gcc2="/*#define LIBEBML_GCC2*/" ;; | |
4200 esac | |
4201 else | 4206 else |
4202 _def_matroska='#undef HAVE_MATROSKA' | 4207 _def_matroska='#undef HAVE_MATROSKA' |
4203 _noinputmodules="matroska $_noinputmodules" | 4208 _noinputmodules="matroska $_noinputmodules" |
4204 fi | 4209 fi |
4205 echores "$_matroska" | 4210 echores "$_matroska" |
5868 /* enable OggTheora support */ | 5873 /* enable OggTheora support */ |
5869 $_def_theora | 5874 $_def_theora |
5870 | 5875 |
5871 /* enable Matroska support */ | 5876 /* enable Matroska support */ |
5872 $_def_matroska | 5877 $_def_matroska |
5873 $_def_matroska_gcc2 | |
5874 | 5878 |
5875 /* enable FAAD (AAC) support */ | 5879 /* enable FAAD (AAC) support */ |
5876 $_def_faad | 5880 $_def_faad |
5877 $_def_faad_version | 5881 $_def_faad_version |
5878 | 5882 |