comparison configure @ 3893:38ddef4a863b

divx4encore detection fixed (D Richard Felker III) + ffmpeg.so detection disabled if static=yes
author arpi
date Sun, 30 Dec 2001 13:19:53 +0000
parents 25c134901aa2
children 7df4a1460e3a
comparison
equal deleted inserted replaced
3892:097f2bef902b 3893:38ddef4a863b
2343 fi 2343 fi
2344 else 2344 else
2345 echores "$_libavcodec" 2345 echores "$_libavcodec"
2346 fi 2346 fi
2347 2347
2348 if test "$_libavcodec" != yes ; then
2348 echocheck "FFmpeg libavcodec (dynamic)" 2349 echocheck "FFmpeg libavcodec (dynamic)"
2349 if test "$_libavcodec" != yes && test "$_libavcodecso" = auto ; then 2350 if test "$_libavcodecso" = auto ; then
2350 _libavcodecso=no 2351 _libavcodecso=no
2352 # FIXME : check for avcodec_find_encoder_by_name() for mencoder
2351 cat > $TMPC << EOF 2353 cat > $TMPC << EOF
2352 #define FF_POSTPROCESS 1 2354 #define FF_POSTPROCESS 1
2353 #include <libffmpeg/avcodec.h> 2355 #include <libffmpeg/avcodec.h>
2354 int quant_store[MBR+1][MBC+1]; 2356 int quant_store[MBR+1][MBC+1];
2355 int main(void) { return 0; } 2357 int main(void) { return 0; }
2359 echores "yes: using libffmpeg.so" 2361 echores "yes: using libffmpeg.so"
2360 else 2362 else
2361 echores "no: libffmpeg.so is broken/obsolete" 2363 echores "no: libffmpeg.so is broken/obsolete"
2362 fi 2364 fi
2363 else 2365 else
2364 echores "no" 2366 echores "$_libavcodecso"
2365 fi 2367 fi
2368 fi
2369
2366 _def_libavcodec='#undef USE_LIBAVCODEC' 2370 _def_libavcodec='#undef USE_LIBAVCODEC'
2367 _def_libavcodecso='#undef USE_LIBAVCODEC_SO' 2371 _def_libavcodecso='#undef USE_LIBAVCODEC_SO'
2368 _def_ffpostprocess='#undef FF_POSTPROCESS' 2372 _def_ffpostprocess='#undef FF_POSTPROCESS'
2369 if test "$_libavcodec" = yes ; then 2373 if test "$_libavcodec" = yes ; then
2370 _def_libavcodec='#define USE_LIBAVCODEC 1' 2374 _def_libavcodec='#define USE_LIBAVCODEC 1'
2376 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' 2380 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1'
2377 _ld_libavcodec='-lffmpeg' 2381 _ld_libavcodec='-lffmpeg'
2378 _def_ffpostprocess='#define FF_POSTPROCESS 1' 2382 _def_ffpostprocess='#define FF_POSTPROCESS 1'
2379 _codecmodules="libavcodec.so $_codecmodules" 2383 _codecmodules="libavcodec.so $_codecmodules"
2380 fi 2384 fi
2381 # FIXME : check for avcodec_find_encoder_by_name() for mencoder
2382 2385
2383 2386
2384 # FIXME : variables don't have a "standard" name so check this one day 2387 # FIXME : variables don't have a "standard" name so check this one day
2385 if test "$_divx4linux" = auto ; then 2388 if test "$_divx4linux" = auto ; then
2386 _divx4linux=no 2389 _divx4linux=no
2406 _ld_decore='-Lopendivx -ldecore' 2409 _ld_decore='-Lopendivx -ldecore'
2407 _def_decore='#undef NEW_DECORE' 2410 _def_decore='#undef NEW_DECORE'
2408 _codecmodules="opendivx $_codecmodules" 2411 _codecmodules="opendivx $_codecmodules"
2409 fi 2412 fi
2410 2413
2411 # mencoder requires those libs: libmp3lame and divx4linux encore 2414 # mencoder requires (optional) those libs: libmp3lame and divx4linux encore
2412 if test "$_mencoder" != no ; then 2415 if test "$_mencoder" != no ; then
2413 _mencoder=no
2414 2416
2415 echocheck "libmp3lame (required for mencoder)" 2417 echocheck "libmp3lame (required for mencoder)"
2416 _mp3lame=no 2418 _mp3lame=no
2417 cat > $TMPC <<EOF 2419 cat > $TMPC <<EOF
2418 #include <lame/lame.h> 2420 #include <lame/lame.h>
2434 #include <encore2.h> 2436 #include <encore2.h>
2435 int main(void) { (void) encore(0, 0, 0, 0); return 0; } 2437 int main(void) { (void) encore(0, 0, 0, 0); return 0; }
2436 EOF 2438 EOF
2437 if cc_check -ldivxencore -lm ; then 2439 if cc_check -ldivxencore -lm ; then
2438 _divx4linux_encore=yes 2440 _divx4linux_encore=yes
2439 _def_encore='#define NEW_ENCORE 1' 2441 _def_encore='#define HAVE_DIVX4ENCORE 1'
2440 _ld_encore='-ldivxencore' 2442 _ld_encore='-ldivxencore'
2441 else 2443 else
2442 _def_encore='#undef NEW_ENCORE' 2444 _def_encore='#undef HAVE_DIVX4ENCORE'
2443 fi 2445 fi
2444 echores "$_divx4linux_encore" 2446 echores "$_divx4linux_encore"
2445 2447
2446 test "$_mp3lame" = yes && test "$_divx4linux_encore" = yes && _mencoder=yes
2447 fi 2448 fi
2448 2449
2449 2450
2450 echocheck "lirc" 2451 echocheck "lirc"
2451 if test "$_lirc" = auto ; then 2452 if test "$_lirc" = auto ; then