Mercurial > mplayer.hg
comparison configure @ 23101:253a6da2be20
Add general variables for either static or shared FFmpeg libraries.
author | diego |
---|---|
date | Thu, 26 Apr 2007 11:22:22 +0000 |
parents | 23fb118dc55a |
children | cad9ebe1516c |
comparison
equal
deleted
inserted
replaced
23100:23fb118dc55a | 23101:253a6da2be20 |
---|---|
6150 | 6150 |
6151 | 6151 |
6152 echocheck "FFmpeg libavutil (static)" | 6152 echocheck "FFmpeg libavutil (static)" |
6153 if test "$_libavutil_a" = auto ; then | 6153 if test "$_libavutil_a" = auto ; then |
6154 if test -d libavutil ; then | 6154 if test -d libavutil ; then |
6155 _libavutil=yes | |
6155 _libavutil_a=yes | 6156 _libavutil_a=yes |
6156 else | 6157 else |
6157 die "MPlayer will not compile without libavutil in the source tree." | 6158 die "MPlayer will not compile without libavutil in the source tree." |
6158 fi | 6159 fi |
6159 fi | 6160 fi |
6181 else | 6182 else |
6182 _libavutil_required="yes" | 6183 _libavutil_required="yes" |
6183 fi | 6184 fi |
6184 _res_comment="libavutil availability does not fit libavcodec version" | 6185 _res_comment="libavutil availability does not fit libavcodec version" |
6185 if test "$_libavutil_required" = "$_libavutil_a"; then | 6186 if test "$_libavutil_required" = "$_libavutil_a"; then |
6187 _libavcodec="yes" | |
6186 _libavcodec_a="yes" | 6188 _libavcodec_a="yes" |
6187 _res_comment="" | 6189 _res_comment="" |
6188 fi | 6190 fi |
6189 fi | 6191 fi |
6190 fi | 6192 fi |
6194 echocheck "FFmpeg libavformat (static)" | 6196 echocheck "FFmpeg libavformat (static)" |
6195 if test "$_libavformat_a" = auto ; then | 6197 if test "$_libavformat_a" = auto ; then |
6196 # Note: static linking is preferred to dynamic linking | 6198 # Note: static linking is preferred to dynamic linking |
6197 _libavformat_a=no | 6199 _libavformat_a=no |
6198 if test -d libavformat && test -f libavformat/utils.c ; then | 6200 if test -d libavformat && test -f libavformat/utils.c ; then |
6201 _libavformat=yes | |
6199 _libavformat_a=yes | 6202 _libavformat_a=yes |
6200 fi | 6203 fi |
6201 fi | 6204 fi |
6202 echores "$_libavformat_a" | 6205 echores "$_libavformat_a" |
6203 | 6206 |
6204 echocheck "FFmpeg libpostproc (static)" | 6207 echocheck "FFmpeg libpostproc (static)" |
6205 if test "$_libpostproc_a" = auto ; then | 6208 if test "$_libpostproc_a" = auto ; then |
6206 _libpostproc_a=no | 6209 _libpostproc_a=no |
6207 if test -d libpostproc && test -f libpostproc/postprocess.h ; then | 6210 if test -d libpostproc && test -f libpostproc/postprocess.h ; then |
6211 _libpostproc='yes' | |
6208 _libpostproc_a='yes' | 6212 _libpostproc_a='yes' |
6209 fi | 6213 fi |
6210 fi | 6214 fi |
6211 echores "$_libpostproc_a" | 6215 echores "$_libpostproc_a" |
6212 | 6216 |
6221 EOF | 6225 EOF |
6222 if $_pkg_config --exists libavutil ; then | 6226 if $_pkg_config --exists libavutil ; then |
6223 _inc_libavutil=`$_pkg_config --cflags libavutil` | 6227 _inc_libavutil=`$_pkg_config --cflags libavutil` |
6224 _ld_tmp=`$_pkg_config --libs libavutil` | 6228 _ld_tmp=`$_pkg_config --libs libavutil` |
6225 cc_check $_inc_libavutil $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ | 6229 cc_check $_inc_libavutil $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ |
6226 && _libavutil_so=yes | 6230 && _libavutil=yes && _libavutil_so=yes |
6227 elif cc_check -lavutil $_ld_lm ; then | 6231 elif cc_check -lavutil $_ld_lm ; then |
6228 _ld_extra="$_ld_extra -lavutil" | 6232 _ld_extra="$_ld_extra -lavutil" |
6233 _libavutil=yes | |
6229 _libavutil_so=yes | 6234 _libavutil_so=yes |
6230 _res_comment="using libavutil.so, but static libavutil is recommended" | 6235 _res_comment="using libavutil.so, but static libavutil is recommended" |
6231 fi | 6236 fi |
6232 fi | 6237 fi |
6233 # neither static nor shared libavutil is available, but it is mandatory ... | 6238 # neither static nor shared libavutil is available, but it is mandatory ... |
6252 EOF | 6257 EOF |
6253 if $_pkg_config --exists libavcodec ; then | 6258 if $_pkg_config --exists libavcodec ; then |
6254 _inc_libavcodec=`$_pkg_config --cflags libavcodec` | 6259 _inc_libavcodec=`$_pkg_config --cflags libavcodec` |
6255 _ld_tmp=`$_pkg_config --libs libavcodec` | 6260 _ld_tmp=`$_pkg_config --libs libavcodec` |
6256 cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ | 6261 cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ |
6257 && _libavcodec_so=yes | 6262 && _libavcodec=yes && _libavcodec_so=yes |
6258 elif cc_check -lavcodec $_ld_lm ; then | 6263 elif cc_check -lavcodec $_ld_lm ; then |
6259 _ld_extra="$_ld_extra -lavcodec" | 6264 _ld_extra="$_ld_extra -lavcodec" |
6265 _libavcodec=yes | |
6260 _libavcodec_so=yes | 6266 _libavcodec_so=yes |
6261 _res_comment="using libavcodec.so, but static libavcodec is recommended" | 6267 _res_comment="using libavcodec.so, but static libavcodec is recommended" |
6262 fi | 6268 fi |
6263 fi | 6269 fi |
6264 echores "$_libavcodec_so" | 6270 echores "$_libavcodec_so" |
6275 EOF | 6281 EOF |
6276 if $_pkg_config --exists libavformat ; then | 6282 if $_pkg_config --exists libavformat ; then |
6277 _inc_libavformat=`$_pkg_config --cflags libavformat` | 6283 _inc_libavformat=`$_pkg_config --cflags libavformat` |
6278 _ld_tmp=`$_pkg_config --libs libavformat` | 6284 _ld_tmp=`$_pkg_config --libs libavformat` |
6279 cc_check $_inc_libavformat $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ | 6285 cc_check $_inc_libavformat $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ |
6280 && _libavformat_so=yes | 6286 && _libavformat=yes && _libavformat_so=yes |
6281 elif cc_check $_ld_lm -lavformat ; then | 6287 elif cc_check $_ld_lm -lavformat ; then |
6282 _ld_extra="$_ld_extra -lavformat" | 6288 _ld_extra="$_ld_extra -lavformat" |
6289 _libavformat=yes | |
6283 _libavformat_so=yes | 6290 _libavformat_so=yes |
6284 _res_comment="using libavformat.so, but static libavformat is recommended" | 6291 _res_comment="using libavformat.so, but static libavformat is recommended" |
6285 fi | 6292 fi |
6286 fi | 6293 fi |
6287 echores "$_libavformat_so" | 6294 echores "$_libavformat_so" |
6299 pp_get_mode_by_name_and_quality("de", 0); | 6306 pp_get_mode_by_name_and_quality("de", 0); |
6300 return 0;} | 6307 return 0;} |
6301 EOF | 6308 EOF |
6302 if cc_check -lpostproc $_ld_lm ; then | 6309 if cc_check -lpostproc $_ld_lm ; then |
6303 _ld_extra="$_ld_extra -lpostproc" | 6310 _ld_extra="$_ld_extra -lpostproc" |
6311 _libpostproc=yes | |
6304 _libpostproc_so=yes | 6312 _libpostproc_so=yes |
6305 _res_comment="using libpostproc.so, but static libpostproc is recommended" | 6313 _res_comment="using libpostproc.so, but static libpostproc is recommended" |
6306 fi | 6314 fi |
6307 fi | 6315 fi |
6308 echores "$_libpostproc_so" | 6316 echores "$_libpostproc_so" |
7720 DVDNAV = $_dvdnav | 7728 DVDNAV = $_dvdnav |
7721 WIN32DLL = $_win32dll | 7729 WIN32DLL = $_win32dll |
7722 QTX_CODECS = $_qtx | 7730 QTX_CODECS = $_qtx |
7723 REAL_CODECS = $_real | 7731 REAL_CODECS = $_real |
7724 XANIM_CODECS = $_xanim | 7732 XANIM_CODECS = $_xanim |
7725 LIBAVUTIL = $_libavutil_a | 7733 LIBAVUTIL = $_libavutil |
7734 LIBAVUTIL_A = $_libavutil_a | |
7726 LIBAVUTIL_SO = $_libavutil_so | 7735 LIBAVUTIL_SO = $_libavutil_so |
7727 LIBAVCODEC = $_libavcodec_a | 7736 LIBAVCODEC = $_libavcodec |
7737 LIBAVCODEC_A = $_libavcodec_a | |
7728 LIBAVCODEC_SO = $_libavcodec_so | 7738 LIBAVCODEC_SO = $_libavcodec_so |
7729 LIBAVFORMAT = $_libavformat_a | 7739 LIBAVFORMAT = $_libavformat |
7740 LIBAVFORMAT_A = $_libavformat_a | |
7730 LIBAVFORMAT_SO = $_libavformat_so | 7741 LIBAVFORMAT_SO = $_libavformat_so |
7731 LIBPOSTPROC = $_libpostproc_a | 7742 LIBPOSTPROC = $_libpostproc |
7743 LIBPOSTPROC_A = $_libpostproc_a | |
7732 LIBPOSTPROC_SO = $_libpostproc_so | 7744 LIBPOSTPROC_SO = $_libpostproc_so |
7733 ZORAN = $_zr | 7745 ZORAN = $_zr |
7734 LIBLZO = $_liblzo | 7746 LIBLZO = $_liblzo |
7735 LIBDV = $_libdv | 7747 LIBDV = $_libdv |
7736 XVID4 = $_xvid | 7748 XVID4 = $_xvid |