summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 14:23:49 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 14:23:49 +0300
commit70e0372a51ec0d040e996d56101b731a4b72d11d (patch)
tree91b2f65db46d8846696ba83a3d61d526ab9380b5 /configure
parente14d43f764c5043e5907852e09d61db912ee49f2 (diff)
parentc051bef87c5a7337b2aca3d4b77fc392a8392780 (diff)
downloadmpv-70e0372a51ec0d040e996d56101b731a4b72d11d.tar.bz2
mpv-70e0372a51ec0d040e996d56101b731a4b72d11d.tar.xz
Merge svn changes up to r26510
r26469 and r26470 (which revert files to inferior versions "because it's policy") are ignored.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 19 insertions, 11 deletions
diff --git a/configure b/configure
index a1ec5b4a98..cb8b4b2f9e 100755
--- a/configure
+++ b/configure
@@ -451,6 +451,7 @@ multiple paths separated by ':'):
--with-gtk-config=PATH path to gtk*-config
--with-sdl-config=PATH path to sdl*-config
--with-dvdnav-config=PATH path to dvdnav-config
+ --with-dvdread-config=PATH path to dvdread-config
This configure script is NOT autoconf-based, even though its output is similar.
It will try to autodetect all configuration options. If you --enable an option
@@ -576,6 +577,7 @@ _ladspa=auto
_xmms=no
_dvdnav=auto
_dvdnavconfig=dvdnav-config
+_dvdreadconfig=dvdread-config
_dvdread=auto
_dvdread_internal=auto
_libdvdcss_internal=auto
@@ -741,6 +743,9 @@ for ac_option do
--with-dvdnav-config=*)
_dvdnavconfig=`echo $ac_option | cut -d '=' -f 2`
;;
+ --with-dvdread-config=*)
+ _dvdreadconfig=`echo $ac_option | cut -d '=' -f 2`
+ ;;
--extra-libs=*)
_extra_libs=`echo $ac_option | cut -d '=' -f 2`
@@ -5435,6 +5440,18 @@ EOF
cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
-ldvdread $_ld_dl && _dvdread=yes && _res_comment="external"
fi
+ if test "$_dvdread" = no ; then
+ _dvdreadconfig="dvdread-config"
+ _dvdreadcflags=`$_dvdreadconfig --cflags`
+ _dvdreadlibs=`$_dvdreadconfig --libs`
+ if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
+ $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then
+ _dvdread=yes
+ _inc_extra="$_inc_extra $_dvdreadcflags"
+ _ld_extra="$_ld_extra $_dvdreadlibs"
+ _res_comment="external"
+ fi
+ fi
fi
if test "$_dvdread_internal" = yes; then
@@ -5905,6 +5922,7 @@ if test "$_tremor_internal" = yes ; then
_codecmodules="tremor(internal) $_codecmodules"
_res_comment="internal Tremor"
if test "$_tremor_low" = yes ; then
+ CFLAGS="$CFLAGS -D_LOW_ACCURACY_"
_res_comment="internal low accuracy Tremor"
fi
elif test "$_tremor_external" = yes ; then
@@ -7817,17 +7835,7 @@ VIDIX_UNICHROME=$_vidix_drv_unichrome
$_target_arch
$_target_arch_x86
TARGET_CPU=$iproc
-HAVE_MMX = $_mmx
-HAVE_MMX2 = $_mmxext
-HAVE_3DNOW = $_3dnow
-HAVE_3DNOWEX = $_3dnowext
-HAVE_SSE = $_sse
-HAVE_CMOV = $_cmov
-HAVE_ALTIVEC = $_altivec
-HAVE_ARMV5TE = $_armv5te
-HAVE_ARMV6 = $_armv6
-HAVE_IWMMXT = $_iwmmxt
-HAVE_VIS = $_vis
+`echo $_cpuexts | tr '[a-z] ' '[A-Z]\n' | sed 's/^/HAVE_/;s/$/=yes/'`
# --- GUI stuff ---
GUI_GTK = $_gui_gtk