Mercurial > mplayer.hg
comparison configure @ 18210:880d7105d452
Add support for shared libavutil.
author | diego |
---|---|
date | Sat, 22 Apr 2006 21:54:01 +0000 |
parents | a08a78145d9b |
children | 8ea3b8660dd7 |
comparison
equal
deleted
inserted
replaced
18209:8692be1df74b | 18210:880d7105d452 |
---|---|
240 --enable-opendivx enable _old_ OpenDivx codec [disable] | 240 --enable-opendivx enable _old_ OpenDivx codec [disable] |
241 --disable-libavutil disable libavutil [autodetect] | 241 --disable-libavutil disable libavutil [autodetect] |
242 --disable-libavcodec disable libavcodec [autodetect] | 242 --disable-libavcodec disable libavcodec [autodetect] |
243 --disable-libavformat disable libavformat [autodetect] | 243 --disable-libavformat disable libavformat [autodetect] |
244 --disable-libpostproc disable libpostproc [autodetect] | 244 --disable-libpostproc disable libpostproc [autodetect] |
245 --disable-libavutil_so disable shared libavutil [autodetect] | |
245 --disable-libavcodec_so disable shared libavcodec [autodetect] | 246 --disable-libavcodec_so disable shared libavcodec [autodetect] |
246 --disable-libavformat_so disable shared libavformat [autodetect] | 247 --disable-libavformat_so disable shared libavformat [autodetect] |
247 --disable-libpostproc_so disable shared libpostproc [autodetect] | 248 --disable-libpostproc_so disable shared libpostproc [autodetect] |
248 --enable-libfame enable libfame realtime encoder [autodetect] | 249 --enable-libfame enable libfame realtime encoder [autodetect] |
249 --disable-internal-tremor do not build internal OggVorbis support [enabled] | 250 --disable-internal-tremor do not build internal OggVorbis support [enabled] |
1463 | 1464 |
1464 # GOTCHA: the variables below defines the default behavior for autodetection | 1465 # GOTCHA: the variables below defines the default behavior for autodetection |
1465 # and have - unless stated otherwise - at least 2 states : yes no | 1466 # and have - unless stated otherwise - at least 2 states : yes no |
1466 # If autodetection is available then the third state is: auto | 1467 # If autodetection is available then the third state is: auto |
1467 _libavutil=auto | 1468 _libavutil=auto |
1469 _libavutil_so=auto | |
1468 _libavcodec=auto | 1470 _libavcodec=auto |
1469 _amr_nb=auto | 1471 _amr_nb=auto |
1470 _amr_nb_fixed=auto | 1472 _amr_nb_fixed=auto |
1471 _amr_wb=auto | 1473 _amr_wb=auto |
1472 _libavcodecs=`grep 'register_avcodec(&[a-z]' libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'` | 1474 _libavcodecs=`grep 'register_avcodec(&[a-z]' libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'` |
1812 --disable-divx4linux) _divx4linux=no ;; | 1814 --disable-divx4linux) _divx4linux=no ;; |
1813 --enable-opendivx) _opendivx=yes ;; | 1815 --enable-opendivx) _opendivx=yes ;; |
1814 --disable-opendivx) _opendivx=no ;; | 1816 --disable-opendivx) _opendivx=no ;; |
1815 --enable-libavutil) _libavutil=yes ;; | 1817 --enable-libavutil) _libavutil=yes ;; |
1816 --disable-libavutil) _libavutil=no ;; | 1818 --disable-libavutil) _libavutil=no ;; |
1819 --enable-libavutil_so) _libavutil_so=yes ;; | |
1820 --disable-libavutil_so) _libavutil_so=no ;; | |
1817 --enable-libavcodec) _libavcodec=yes ;; | 1821 --enable-libavcodec) _libavcodec=yes ;; |
1818 --disable-libavcodec) _libavcodec=no ;; | 1822 --disable-libavcodec) _libavcodec=no ;; |
1819 --enable-libavcodec_so) _libavcodec_so=yes ;; | 1823 --enable-libavcodec_so) _libavcodec_so=yes ;; |
1820 --disable-libavcodec_so) _libavcodec_so=no ;; | 1824 --disable-libavcodec_so) _libavcodec_so=no ;; |
1821 --enable-amr_nb) _amr_nb=yes ;; | 1825 --enable-amr_nb) _amr_nb=yes ;; |
6042 fi | 6046 fi |
6043 fi | 6047 fi |
6044 echores "$_libpostproc" | 6048 echores "$_libpostproc" |
6045 | 6049 |
6046 | 6050 |
6051 if test "$_libavutil" != yes ; then | |
6052 echocheck "FFmpeg libavutil (dynamic)" | |
6053 if test "$_libavutil_so" = auto ; then | |
6054 _libavutil_so=no | |
6055 cat > $TMPC << EOF | |
6056 #include <ffmpeg/common.h> | |
6057 int main(void) { ff_gcd(1,1); return 0; } | |
6058 EOF | |
6059 if pkg-config --exists libavutil ; then | |
6060 _inc_libavutil=`pkg-config --cflags libavutil` | |
6061 _ld_libavutil=`pkg-config --libs libavutil` | |
6062 cc_check $_inc_libavutil $_ld_libavutil && _libavutil_so=yes | |
6063 elif cc_check -lavutil $_ld_lm ; then | |
6064 _libavutil_so=yes | |
6065 fi | |
6066 if test "$_libavutil_so" == yes ; then | |
6067 _res_comment="using libavutil.so, but static libavutil is recommended" | |
6068 fi | |
6069 fi | |
6070 echores "$_libavutil_so" | |
6071 fi | |
6072 | |
6047 if test "$_libavcodec" != yes ; then | 6073 if test "$_libavcodec" != yes ; then |
6048 echocheck "FFmpeg libavcodec (dynamic)" | 6074 echocheck "FFmpeg libavcodec (dynamic)" |
6049 if test "$_libavcodec_so" = auto ; then | 6075 if test "$_libavcodec_so" = auto ; then |
6050 _libavcodec_so=no | 6076 _libavcodec_so=no |
6051 _res_comment="libavcodec.so is broken/obsolete" | 6077 _res_comment="libavcodec.so is broken/obsolete" |
7306 DS_DEP = $_dep_dshow | 7332 DS_DEP = $_dep_dshow |
7307 DS_LIB = $_ld_dshow | 7333 DS_LIB = $_ld_dshow |
7308 AV_DEP = $_dep_libavcodec $_dep_libavformat $_dep_libavutil $_dep_libpostproc | 7334 AV_DEP = $_dep_libavcodec $_dep_libavformat $_dep_libavutil $_dep_libpostproc |
7309 AV_LIB = $_ld_libavcodec $_ld_libavformat $_ld_libavutil $_ld_libpostproc | 7335 AV_LIB = $_ld_libavcodec $_ld_libavformat $_ld_libavutil $_ld_libpostproc |
7310 CONFIG_LIBAVUTIL = $_libavutil | 7336 CONFIG_LIBAVUTIL = $_libavutil |
7337 CONFIG_LIBAVUTIL_SO = $_libavutil_so | |
7311 CONFIG_LIBAVCODEC = $_libavcodec | 7338 CONFIG_LIBAVCODEC = $_libavcodec |
7312 CONFIG_LIBAVCODEC_SO = $_libavcodec_so | 7339 CONFIG_LIBAVCODEC_SO = $_libavcodec_so |
7313 CONFIG_LIBAVFORMAT = $_libavformat | 7340 CONFIG_LIBAVFORMAT = $_libavformat |
7314 CONFIG_LIBAVFORMAT_SO = $_libavformat_so | 7341 CONFIG_LIBAVFORMAT_SO = $_libavformat_so |
7315 CONFIG_LIBPOSTPROC = $_libpostproc | 7342 CONFIG_LIBPOSTPROC = $_libpostproc |