comparison configure @ 17463:b56f34ba3f2f

proper support for shared libpostproc patch by Nico Sabbi, fixes and consistency cleanups by me
author diego
date Sun, 22 Jan 2006 18:11:35 +0000
parents f70d4718090e
children f28ef6df8b56
comparison
equal deleted inserted replaced
17462:18c4f5105fe6 17463:b56f34ba3f2f
238 --disable-x264 disable H.264 encoder [autodetect] 238 --disable-x264 disable H.264 encoder [autodetect]
239 --disable-divx4linux disable DivX4linux/Divx5linux codec [autodetect] 239 --disable-divx4linux disable DivX4linux/Divx5linux codec [autodetect]
240 --enable-opendivx enable _old_ OpenDivx codec [disable] 240 --enable-opendivx enable _old_ OpenDivx codec [disable]
241 --disable-libavcodec disable libavcodec [autodetect] 241 --disable-libavcodec disable libavcodec [autodetect]
242 --disable-libavformat disable libavformat [autodetect] 242 --disable-libavformat disable libavformat [autodetect]
243 --disable-libpostproc disable libpostproc [autodetect]
243 --disable-libavcodec_so disable shared libavcodec [autodetect] 244 --disable-libavcodec_so disable shared libavcodec [autodetect]
244 --disable-libavformat_so disable shared libavformat [autodetect] 245 --disable-libavformat_so disable shared libavformat [autodetect]
246 --disable-libpostproc_so disable shared libpostproc [autodetect]
245 --enable-libfame enable libfame realtime encoder [autodetect] 247 --enable-libfame enable libfame realtime encoder [autodetect]
246 --disable-internal-tremor do not build internal OggVorbis support [enabled] 248 --disable-internal-tremor do not build internal OggVorbis support [enabled]
247 --enable-tremor-low build with lower accuracy internal tremor [disabled] 249 --enable-tremor-low build with lower accuracy internal tremor [disabled]
248 --enable-external-tremor build with external tremor [disabled] 250 --enable-external-tremor build with external tremor [disabled]
249 --disable-vorbis disable OggVorbis support entirely [autodetect] 251 --disable-vorbis disable OggVorbis support entirely [autodetect]
1466 _amr_wb=auto 1468 _amr_wb=auto
1467 _libavcodecs=`grep 'register_avcodec(&[a-z]' libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'` 1469 _libavcodecs=`grep 'register_avcodec(&[a-z]' libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'`
1468 _libavcodec_so=auto 1470 _libavcodec_so=auto
1469 _libavformat=auto 1471 _libavformat=auto
1470 _libavformat_so=auto 1472 _libavformat_so=auto
1473 _libpostproc=auto
1474 _libpostproc_so=auto
1471 _fame=auto 1475 _fame=auto
1472 _mp1e=no 1476 _mp1e=no
1473 _mencoder=yes 1477 _mencoder=yes
1474 _x11=auto 1478 _x11=auto
1475 _dga=auto # 1 2 no auto 1479 _dga=auto # 1 2 no auto
1816 --disable-codec=*) _libavcodecs=`echo $_libavcodecs | sed "s/\`echo $ac_option | cut -d '=' -f 2\`//g"` ;; 1820 --disable-codec=*) _libavcodecs=`echo $_libavcodecs | sed "s/\`echo $ac_option | cut -d '=' -f 2\`//g"` ;;
1817 --enable-libavformat) _libavformat=yes;; 1821 --enable-libavformat) _libavformat=yes;;
1818 --disable-libavformat) _libavformat=no ;; 1822 --disable-libavformat) _libavformat=no ;;
1819 --enable-libavformat_so) _libavformat_so=yes ;; 1823 --enable-libavformat_so) _libavformat_so=yes ;;
1820 --disable-libavformat_so) _libavformat_so=no ;; 1824 --disable-libavformat_so) _libavformat_so=no ;;
1825 --enable-libpostproc) _libpostproc=yes ;;
1826 --disable-libpostproc) _libpostproc=no ;;
1827 --enable-libpostproc_so) _libpostproc_so=yes ;;
1828 --disable-libpostproc_so) _libpostproc_so=no ;;
1821 --enable-libfame) _fame=yes ;; 1829 --enable-libfame) _fame=yes ;;
1822 --disable-libfame) _fame=no ;; 1830 --disable-libfame) _fame=no ;;
1823 --enable-lirc) _lirc=yes ;; 1831 --enable-lirc) _lirc=yes ;;
1824 --disable-lirc) _lirc=no ;; 1832 --disable-lirc) _lirc=no ;;
1825 --enable-lircc) _lircc=yes ;; 1833 --enable-lircc) _lircc=yes ;;
6045 _libavformat=yes 6053 _libavformat=yes
6046 fi 6054 fi
6047 fi 6055 fi
6048 echores "$_libavformat" 6056 echores "$_libavformat"
6049 6057
6050 _def_haveffpostprocess='no' 6058 echocheck "FFmpeg libpostproc (static)"
6059 if test "$_libpostproc" = auto ; then
6060 _libpostproc=no
6051 if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then 6061 if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then
6052 _def_haveffpostprocess='yes' 6062 _libpostproc='yes'
6053 fi 6063 fi
6064 fi
6065 echores "$_libpostproc"
6066
6054 6067
6055 if test "$_libavcodec" != yes ; then 6068 if test "$_libavcodec" != yes ; then
6056 echocheck "FFmpeg libavcodec (dynamic)" 6069 echocheck "FFmpeg libavcodec (dynamic)"
6057 if test "$_libavcodec_so" = auto ; then 6070 if test "$_libavcodec_so" = auto ; then
6058 _libavcodec_so=no 6071 _libavcodec_so=no
6059 _res_comment="libavcodec.so is broken/obsolete" 6072 _res_comment="libavcodec.so is broken/obsolete"
6060 # FIXME : check for avcodec_find_encoder_by_name() for mencoder 6073 # FIXME : check for avcodec_find_encoder_by_name() for mencoder
6061 cat > $TMPC << EOF 6074 cat > $TMPC << EOF
6062 #define FF_POSTPROCESS 1
6063 #include <ffmpeg/avcodec.h> 6075 #include <ffmpeg/avcodec.h>
6064 int main(void) { 6076 int main(void) {
6065 avcodec_find_encoder_by_name(""); 6077 avcodec_find_encoder_by_name("");
6066 return 0; 6078 return 0;
6067 } 6079 }
6085 cc_check $_ld_lm -lavformat && _libavformat_so=yes 6097 cc_check $_ld_lm -lavformat && _libavformat_so=yes
6086 fi 6098 fi
6087 echores "$_libavformat_so" 6099 echores "$_libavformat_so"
6088 fi 6100 fi
6089 6101
6102 if test "$_libpostproc" != yes ; then
6103 echocheck "FFmpeg libpostproc (dynamic)"
6104 if test "$_libpostproc_so" = auto ; then
6105 _libpostproc_so=no
6106 cat > $TMPC << EOF
6107 #define USE_LIBPOSTPROC 1
6108 #include <inttypes.h>
6109 #include <postproc/postprocess.h>
6110 int main(void) {
6111 pp_get_mode_by_name_and_quality("de", 0);
6112 return 0;}
6113 EOF
6114 if cc_check -lpostproc $_ld_lm ; then
6115 _libpostproc_so=yes
6116 _res_comment="using libpostproc.so, but static libpostproc is recommended"
6117 fi
6118 fi
6119 echores "$_libpostproc_so"
6120 fi
6121
6090 _def_libavcodec='#undef USE_LIBAVCODEC' 6122 _def_libavcodec='#undef USE_LIBAVCODEC'
6091 _def_libavcodec_so='#undef USE_LIBAVCODEC_SO' 6123 _def_libavcodec_so='#undef USE_LIBAVCODEC_SO'
6092 _def_ffpostprocess='#undef FF_POSTPROCESS'
6093 if test "$_libavcodec" = yes ; then 6124 if test "$_libavcodec" = yes ; then
6094 _def_libavcodec='#define USE_LIBAVCODEC 1' 6125 _def_libavcodec='#define USE_LIBAVCODEC 1'
6095 _ld_libavcodec='libavcodec/libavcodec.a' 6126 _ld_libavcodec='libavcodec/libavcodec.a'
6096 _dep_libavcodec='libavcodec/libavcodec.a' 6127 _dep_libavcodec='libavcodec/libavcodec.a'
6097 _def_ffpostprocess='#define FF_POSTPROCESS 1'
6098 _codecmodules="libavcodec $_codecmodules" 6128 _codecmodules="libavcodec $_codecmodules"
6099 if test "$_libavutil" = yes; then 6129 if test "$_libavutil" = yes; then
6100 _ld_libavutil='libavutil/libavutil.a' 6130 _ld_libavutil='libavutil/libavutil.a'
6101 _dep_libavutil='libavutil/libavutil.a' 6131 _dep_libavutil='libavutil/libavutil.a'
6102 fi 6132 fi
6103 elif test "$_libavcodec_so" = yes ; then 6133 elif test "$_libavcodec_so" = yes ; then
6104 _def_libavcodec='#define USE_LIBAVCODEC 1' 6134 _def_libavcodec='#define USE_LIBAVCODEC 1'
6105 _def_libavcodec_so='#define USE_LIBAVCODEC_SO 1' 6135 _def_libavcodec_so='#define USE_LIBAVCODEC_SO 1'
6106 _def_ffpostprocess='#define FF_POSTPROCESS 1'
6107 _ld_libavcodec='-lavcodec' 6136 _ld_libavcodec='-lavcodec'
6108 _codecmodules="libavcodec.so $_codecmodules" 6137 _codecmodules="libavcodec.so $_codecmodules"
6109 else 6138 else
6110 _nocodecmodules="libavcodec $_nocodecmodules" 6139 _nocodecmodules="libavcodec $_nocodecmodules"
6111 fi 6140 fi
6125 _def_libavformat_so='#define USE_LIBAVFORMAT_SO 1' 6154 _def_libavformat_so='#define USE_LIBAVFORMAT_SO 1'
6126 _ld_libavformat='-lavformat' 6155 _ld_libavformat='-lavformat'
6127 if win32 ; then 6156 if win32 ; then
6128 _def_libavformat_win32='#define CONFIG_WIN32 1' 6157 _def_libavformat_win32='#define CONFIG_WIN32 1'
6129 fi 6158 fi
6159 fi
6160 fi
6161
6162 _def_libpostproc='#undef USE_LIBPOSTPROC'
6163 _def_libpostproc_so='#undef USE_LIBPOSTPROC_SO'
6164 if test "$_libpostproc" = yes ; then
6165 _def_libpostproc='#define USE_LIBPOSTPROC 1'
6166 else
6167 if test "$_libpostproc_so" = yes ; then
6168 _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1'
6169 _ld_libpostproc='-lpostproc'
6130 fi 6170 fi
6131 fi 6171 fi
6132 6172
6133 echocheck "amr narrowband" 6173 echocheck "amr narrowband"
6134 if test "$_amr_nb" = auto ; then 6174 if test "$_amr_nb" = auto ; then
7141 7181
7142 SPEEX = $_speex 7182 SPEEX = $_speex
7143 MUSEPACK = $_musepack 7183 MUSEPACK = $_musepack
7144 7184
7145 UNRARLIB = $_unrarlib 7185 UNRARLIB = $_unrarlib
7146 HAVE_FFPOSTPROCESS = $_def_haveffpostprocess
7147 PNG = $_mkf_png 7186 PNG = $_mkf_png
7148 JPEG = $_mkf_jpg 7187 JPEG = $_mkf_jpg
7149 GIF = $_mkf_gif 7188 GIF = $_mkf_gif
7150 7189
7151 EXTRA_LIB = $_ld_extra 7190 EXTRA_LIB = $_ld_extra
7213 W32_DEP = $_dep_win32 7252 W32_DEP = $_dep_win32
7214 W32_LIB = $_ld_win32 7253 W32_LIB = $_ld_win32
7215 DS_DEP = $_dep_dshow 7254 DS_DEP = $_dep_dshow
7216 DS_LIB = $_ld_dshow 7255 DS_LIB = $_ld_dshow
7217 AV_DEP = $_dep_libavutil $_dep_libavcodec $_dep_libavformat 7256 AV_DEP = $_dep_libavutil $_dep_libavcodec $_dep_libavformat
7218 AV_LIB = $_ld_libavformat $_ld_libavcodec $_ld_libavutil 7257 AV_LIB = $_ld_libavutil $_ld_libavcodec $_ld_libavformat $_ld_libpostproc
7219 CONFIG_LIBAVUTIL = $_libavutil 7258 CONFIG_LIBAVUTIL = $_libavutil
7220 CONFIG_LIBAVCODEC = $_libavcodec 7259 CONFIG_LIBAVCODEC = $_libavcodec
7221 CONFIG_LIBAVCODEC_SO = $_libavcodec_so 7260 CONFIG_LIBAVCODEC_SO = $_libavcodec_so
7222 CONFIG_LIBAVFORMAT = $_libavformat 7261 CONFIG_LIBAVFORMAT = $_libavformat
7223 CONFIG_LIBAVFORMAT_SO = $_libavformat_so 7262 CONFIG_LIBAVFORMAT_SO = $_libavformat_so
7263 CONFIG_LIBPOSTPROC = $_libpostproc
7264 CONFIG_LIBPOSTPROC_SO = $_libpostproc_so
7224 ZORAN = $_zr 7265 ZORAN = $_zr
7225 FAME = $_fame 7266 FAME = $_fame
7226 FAME_LIB = $_ld_fame 7267 FAME_LIB = $_ld_fame
7227 MP1E_DEP = $_dep_mp1e 7268 MP1E_DEP = $_dep_mp1e
7228 MP1E_LIB = $_ld_mp1e 7269 MP1E_LIB = $_ld_mp1e
7585 7626
7586 /* Define this to enable MPEG 1/2 image postprocessing (requires a FAST CPU!) */ 7627 /* Define this to enable MPEG 1/2 image postprocessing (requires a FAST CPU!) */
7587 #define MPEG12_POSTPROC 1 7628 #define MPEG12_POSTPROC 1
7588 7629
7589 /* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */ 7630 /* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
7590 $_def_ffpostprocess 7631 $_def_libpostproc
7632 $_def_libpostproc_so
7591 7633
7592 /* Define to include support for OpenDivx postprocessing */ 7634 /* Define to include support for OpenDivx postprocessing */
7593 $_def_odivx_postprocess 7635 $_def_odivx_postprocess
7594 7636
7595 /* Win32 DLL support */ 7637 /* Win32 DLL support */