changeset 3853:f767ae423309

disable mp1e if no dxr3 or no mmx
author arpi
date Fri, 28 Dec 2001 21:07:39 +0000
parents cd642e995366
children c8aaa63aaaf5
files configure
diffstat 1 files changed, 23 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Dec 28 20:52:54 2001 +0000
+++ b/configure	Fri Dec 28 21:07:39 2001 +0000
@@ -649,7 +649,7 @@
 # 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
+_mp1e=auto
 _mencoder=auto
 _x11=auto
 _dga=auto	# 1 2 no auto
@@ -745,6 +745,7 @@
   --disable-iconv)	_iconv=no	;;
   --enable-rtc)	        _rtc=yes	;;
   --disable-rtc)	_rtc=no	        ;;
+  --enable-mp1e)	_mp1e=yes	;;
   --disable-mp1e)	_mp1e=no	;;
   --enable-ossaudio)	_ossaudio=yes	;;
   --disable-ossaudio)	_ossaudio=no	;;
@@ -1834,23 +1835,6 @@
 fi
 echores "$_nas"
 
-# libmp1e's audio encoder is failing under QNX
-if test "$_mmx" = no || qnx ; 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
@@ -1868,9 +1852,30 @@
   _aomodules="dxr3 $_aomodules"
 else
   _def_dxr3='#undef HAVE_DXR3'
+  if test "$_mp1e" = auto ; then
+    # we don't need mp1e
+    _mp1e=no
+  fi
 fi
 echores "$_dxr3"
 
+echocheck "libmp1e"
+if test "$_mmx" = no ; then
+  # mp1e REQUIRES mmx!
+  _mp1e=no
+fi
+if test "$_mp1e" != no ; then
+  _mp1e=yes
+  _def_mp1e='#define USE_MP1E'
+  _ld_mp1e="-Llibmp1e -lmp1e"
+  _dep_mp1e='libmp1e/libmp1e.a'
+else
+  _mp1e=no
+  _def_mp1e='#undef USE_MP1E'
+  _ld_mp1e=""
+  _dep_mp1e=''
+fi
+echores "$_mp1e"
 
 #########
 # AUDIO #