comparison configure @ 5598:efc798ab5822

libdv detection
author arpi
date Sat, 13 Apr 2002 16:51:01 +0000
parents 8cd761968f35
children 3dde5e5eef90
comparison
equal deleted inserted replaced
5597:e9ceb08cc007 5598:efc798ab5822
134 --enable-faad build with FAAD (AAC) support [autodetect] 134 --enable-faad build with FAAD (AAC) support [autodetect]
135 --disable-iconv do not use iconv(3) function [autodetect] 135 --disable-iconv do not use iconv(3) function [autodetect]
136 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] 136 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
137 --disable-mp1e disable libmp1e support 137 --disable-mp1e disable libmp1e support
138 (use this option if it does not compile) [enable] 138 (use this option if it does not compile) [enable]
139 --disable-libdv disable libdv 0.9.5 support [autodetect]
139 --disable-streaming disable network streaming support 140 --disable-streaming disable network streaming support
140 (support for: http/mms/rtp) [enable] 141 (support for: http/mms/rtp) [enable]
141 --disable-vidix disable VIDIX stuff [enable] 142 --disable-vidix disable VIDIX stuff [enable]
142 --disable-new-input disable new input system [enable] 143 --disable-new-input disable new input system [enable]
143 --enable-joystick enable joystick support in new input [disable] 144 --enable-joystick enable joystick support in new input [disable]
826 _language=en 827 _language=en
827 _shm=auto 828 _shm=auto
828 _linux_devfs=no 829 _linux_devfs=no
829 _i18n=no 830 _i18n=no
830 _sighandler=yes 831 _sighandler=yes
832 _libdv=auto
831 833
832 for ac_option do 834 for ac_option do
833 case "$ac_option" in 835 case "$ac_option" in
834 # Skip 1st pass 836 # Skip 1st pass
835 --target=*) ;; 837 --target=*) ;;
882 --disable-iconv) _iconv=no ;; 884 --disable-iconv) _iconv=no ;;
883 --enable-rtc) _rtc=yes ;; 885 --enable-rtc) _rtc=yes ;;
884 --disable-rtc) _rtc=no ;; 886 --disable-rtc) _rtc=no ;;
885 --enable-mp1e) _mp1e=yes ;; 887 --enable-mp1e) _mp1e=yes ;;
886 --disable-mp1e) _mp1e=no ;; 888 --disable-mp1e) _mp1e=no ;;
889 --enable-libdv) _libdv=yes ;;
890 --disable-libdv) _libdv=no ;;
887 --enable-ossaudio) _ossaudio=yes ;; 891 --enable-ossaudio) _ossaudio=yes ;;
888 --disable-ossaudio) _ossaudio=no ;; 892 --disable-ossaudio) _ossaudio=no ;;
889 --enable-mad) _mad=yes ;; 893 --enable-mad) _mad=yes ;;
890 --disable-mad) _mad=no ;; 894 --disable-mad) _mad=no ;;
891 --enable-vorbis) _vorbis=yes ;; 895 --enable-vorbis) _vorbis=yes ;;
2844 _codecmodules="libavcodec.so $_codecmodules" 2848 _codecmodules="libavcodec.so $_codecmodules"
2845 else 2849 else
2846 _nocodecmodules="libavcodec $_nocodecmodules" 2850 _nocodecmodules="libavcodec $_nocodecmodules"
2847 fi 2851 fi
2848 2852
2853 echocheck "libdv-0.9.5 (for mencoder)"
2854 if test "$_libdv" = auto ; then
2855 _libdv=no
2856 cat > $TMPC <<EOF
2857 #include <libdv/dv.h>
2858 int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; }
2859 EOF
2860 cc_check -ldv -lm && _libdv=yes
2861 fi
2862 if test "$_libdv" = yes ; then
2863 _def_libdv='#define HAVE_LIBDV095 1'
2864 _ld_libdv="-ldv"
2865 else
2866 _def_libdv='#undef HAVE_LIBDV095'
2867 fi
2868 echores "$_libdv"
2849 2869
2850 echocheck "zr" 2870 echocheck "zr"
2851 if test "$_zr" = yes ; then 2871 if test "$_zr" = yes ; then
2852 if test "$_libavcodec" = yes ; then 2872 if test "$_libavcodec" = yes ; then
2853 _def_zr='#define HAVE_ZR 1' 2873 _def_zr='#define HAVE_ZR 1'
2980 #include <encore2.h> 3000 #include <encore2.h>
2981 int main(void) { (void) encore(0, 0, 0, 0); return 0; } 3001 int main(void) { (void) encore(0, 0, 0, 0); return 0; }
2982 EOF 3002 EOF
2983 if test "$_xvid" != no && test "$_xvidcore" && cc_check -lm "$_xvidcore" ; then 3003 if test "$_xvid" != no && test "$_xvidcore" && cc_check -lm "$_xvidcore" ; then
2984 _def_encore='#define HAVE_DIVX4ENCORE 1' 3004 _def_encore='#define HAVE_DIVX4ENCORE 1'
2985 _ld_encore="-lm $_xvidcore" 3005 _ld_encore="$_xvidcore"
2986 echores "XviD (with $_xvidcore)" 3006 echores "XviD (with $_xvidcore)"
2987 elif test "$_xvid" != no && cc_check -lm -lxvidcore ; then 3007 elif test "$_xvid" != no && cc_check -lm -lxvidcore ; then
2988 _def_encore='#define HAVE_DIVX4ENCORE 1' 3008 _def_encore='#define HAVE_DIVX4ENCORE 1'
2989 _ld_encore='-lm -lxvidcore' 3009 _ld_encore='-lxvidcore'
2990 echores "XviD (with libxvidcore.so)" 3010 echores "XviD (with libxvidcore.so)"
2991 elif test "$_divx4linux" != no && cc_check -lm -ldivxencore ; then 3011 elif test "$_divx4linux" != no && cc_check -lm -ldivxencore ; then
2992 _def_encore='#define HAVE_DIVX4ENCORE 1' 3012 _def_encore='#define HAVE_DIVX4ENCORE 1'
2993 _ld_encore='-lm -ldivxencore' 3013 _ld_encore='-ldivxencore'
2994 echores "DivX4linux (with libdivxencore.so)" 3014 echores "DivX4linux (with libdivxencore.so)"
2995 else 3015 else
2996 _def_encore='#undef HAVE_DIVX4ENCORE' 3016 _def_encore='#undef HAVE_DIVX4ENCORE'
2997 echores "no" 3017 echores "no"
2998 fi 3018 fi
3397 ARCH_LIB = $_ld_arch $_ld_iconv 3417 ARCH_LIB = $_ld_arch $_ld_iconv
3398 DIVX4LINUX = $_divx4linux 3418 DIVX4LINUX = $_divx4linux
3399 XVID = $_xvid 3419 XVID = $_xvid
3400 DECORE_LIB = $_ld_decore 3420 DECORE_LIB = $_ld_decore
3401 MENCODER = $_mencoder 3421 MENCODER = $_mencoder
3402 ENCORE_LIB = $_ld_encore $_ld_mp3lame 3422 ENCORE_LIB = $_ld_encore $_ld_mp3lame $_ld_libdv
3403 DIRECTFB_LIB = $_ld_directfb 3423 DIRECTFB_LIB = $_ld_directfb
3404 NEW_INPUT_LIB = $_ld_new_input 3424 NEW_INPUT_LIB = $_ld_new_input
3405 3425
3406 # --- Some stuff for autoconfigure ---- 3426 # --- Some stuff for autoconfigure ----
3407 $_target_arch 3427 $_target_arch
3473 /* You have to change DECORE_LIBS in config.mak too! */ 3493 /* You have to change DECORE_LIBS in config.mak too! */
3474 $_def_decore 3494 $_def_decore
3475 3495
3476 /* Define if you are using DivX5Linux Decore library */ 3496 /* Define if you are using DivX5Linux Decore library */
3477 $_def_divx5 3497 $_def_divx5
3498
3499 /* Define to include support for libdv-0.9.5 */
3500 $_def_libdv
3478 3501
3479 /* If build mencoder */ 3502 /* If build mencoder */
3480 $_mencoder_flag 3503 $_mencoder_flag
3481 3504
3482 /* Indicates if XviD/Divx4linux encore is available 3505 /* Indicates if XviD/Divx4linux encore is available