summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-10 14:41:44 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-10 14:41:44 +0000
commit35e0c399d1c6fce3138892e888deccf0ba56aab1 (patch)
treeea655bd7bf392e1d7f3c1295d2e3ec11c25f28c8 /configure
parenta1bb772c1818ff53454167c11a58bde78b992af1 (diff)
downloadmpv-35e0c399d1c6fce3138892e888deccf0ba56aab1.tar.bz2
mpv-35e0c399d1c6fce3138892e888deccf0ba56aab1.tar.xz
MP1E configure patch by D. Holm.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3433 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index fdfe0e2743..ba6c4366aa 100755
--- a/configure
+++ b/configure
@@ -126,6 +126,7 @@ Optional features:
--enable-vorbis build with OggVorbis support [autodetect]
--disable-iconv do not use iconv(3) function [autodetect]
--disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
+ --disable-mp1e disable libmp1e support (only if it won't compile) [enable]
Video:
--enable-gl build with OpenGL render support [autodetect]
@@ -640,6 +641,7 @@ _prefix="/usr/local"
# If autodetection is available then the third state is: auto
_libavcodec=auto
_libavcodecso=no # changed default to no as it causes problems - atmos
+_mp1e=yes
_mencoder=auto
_x11=auto
_dga=auto # 1 2 no auto
@@ -735,6 +737,7 @@ for ac_option do
--disable-iconv) _iconv=no ;;
--enable-rtc) _rtc=yes ;;
--disable-rtc) _rtc=no ;;
+ --disable-mp1e) _mp1e=no ;;
--enable-ossaudio) _ossaudio=yes ;;
--disable-ossaudio) _ossaudio=no ;;
--enable-mad) _mad=yes ;;
@@ -1810,6 +1813,22 @@ else
fi
echores "$_nas"
+if test "$_mmx" = no ; then
+ _mp1e=no
+fi
+if test "$_mp1e" = yes ; then
+ _def_mp1e='#define USE_MP1E'
+ _ld_mp1e="-Llibmp1e -lmp1e"
+ _dep_mp1e='libmp1e/libmp1e.a'
+else
+ echocheck "libmp1e"
+ _mp1e=no
+ _def_mp1e='#undef USE_MP1E'
+ _ld_mp1e=""
+ _dep_mp1e=''
+ echores "$_mp1e"
+fi
+
echocheck "DXR3/H+"
if test "$_dxr3" = auto ; then
cat > $TMPC << EOF
@@ -2650,6 +2669,8 @@ DS_DEP = $_dep_dshow
DS_LIB = $_ld_dshow
AV_DEP = $_dep_libavcodec
AV_LIB = $_ld_libavcodec
+MP1E_DEP = $_dep_mp1e
+MP1E_LIB = $_ld_mp1e
ARCH_LIB = $_ld_arch $_ld_iconv
DIVX4LINUX = $_divx4linux
DECORE_LIB = $_ld_decore
@@ -2715,6 +2736,9 @@ $_def_encore
Note: REQUIRED for mencoder */
$_def_mp3lame
+/* Define libmp1e */
+$_def_mp1e
+
/* Define this to enable avg. byte/sec-based AVI sync method by default:
(use -bps or -nobps commandline option for run-time method selection)
-bps gives better sync for vbr mp3 audio, it is now default */