comparison configure @ 23107:18b824724eea

Merge static and shared libpostproc checks.
author diego
date Thu, 26 Apr 2007 12:25:27 +0000
parents f47defd03fa8
children 7c60ea3e4902
comparison
equal deleted inserted replaced
23106:f47defd03fa8 23107:18b824724eea
6263 fi 6263 fi
6264 _libavformat=no 6264 _libavformat=no
6265 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes 6265 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes
6266 echores "$_libavformat" 6266 echores "$_libavformat"
6267 6267
6268 echocheck "FFmpeg libpostproc (static)" 6268 echocheck "FFmpeg libpostproc"
6269 if test "$_libpostproc_a" = auto ; then 6269 if test "$_libpostproc_a" = auto ; then
6270 _libpostproc_a=no 6270 _libpostproc_a=no
6271 if test -d libpostproc && test -f libpostproc/postprocess.h ; then 6271 if test -d libpostproc && test -f libpostproc/postprocess.h ; then
6272 _libpostproc='yes'
6273 _libpostproc_a='yes' 6272 _libpostproc_a='yes'
6274 fi 6273 _res_comment="static"
6275 fi 6274 fi
6276 echores "$_libpostproc_a" 6275 elif test "$_libpostproc_so" = auto ; then
6277
6278
6279 if test "$_libpostproc_a" != yes ; then
6280 echocheck "FFmpeg libpostproc (dynamic)"
6281 if test "$_libpostproc_so" = auto ; then
6282 _libpostproc_so=no 6276 _libpostproc_so=no
6283 cat > $TMPC << EOF 6277 cat > $TMPC << EOF
6284 #define USE_LIBPOSTPROC 1 6278 #define USE_LIBPOSTPROC 1
6285 #include <inttypes.h> 6279 #include <inttypes.h>
6286 #include <postproc/postprocess.h> 6280 #include <postproc/postprocess.h>
6288 pp_get_mode_by_name_and_quality("de", 0); 6282 pp_get_mode_by_name_and_quality("de", 0);
6289 return 0;} 6283 return 0;}
6290 EOF 6284 EOF
6291 if cc_check -lpostproc $_ld_lm ; then 6285 if cc_check -lpostproc $_ld_lm ; then
6292 _ld_extra="$_ld_extra -lpostproc" 6286 _ld_extra="$_ld_extra -lpostproc"
6293 _libpostproc=yes
6294 _libpostproc_so=yes 6287 _libpostproc_so=yes
6295 _res_comment="using libpostproc.so, but static libpostproc is recommended" 6288 _res_comment="using libpostproc.so, but static libpostproc is recommended"
6296 fi 6289 fi
6297 fi 6290 fi
6298 echores "$_libpostproc_so" 6291 _libpostproc=no
6299 fi #if test "$_libpostproc" != yes ; then 6292 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes
6293 echores "$_libpostproc"
6300 6294
6301 _def_libavutil='#undef USE_LIBAVUTIL' 6295 _def_libavutil='#undef USE_LIBAVUTIL'
6302 _def_libavutil_so='#undef USE_LIBAVUTIL_SO' 6296 _def_libavutil_so='#undef USE_LIBAVUTIL_SO'
6303 if test "$_libavutil_a" = yes ; then 6297 if test "$_libavutil_a" = yes ; then
6304 _def_libavutil='#define USE_LIBAVUTIL 1' 6298 _def_libavutil='#define USE_LIBAVUTIL 1'