summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-17 11:26:26 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-17 11:26:26 +0000
commit2bcae4d2db461d57ef05c3cffaa89947be604111 (patch)
treebb314e5f2f666e118add64bd20302bcb1a6d9827 /configure
parent75a2603ed41af5901e17230f5d46de478c271258 (diff)
downloadmpv-2bcae4d2db461d57ef05c3cffaa89947be604111.tar.bz2
mpv-2bcae4d2db461d57ef05c3cffaa89947be604111.tar.xz
last part of changes since around configure 230 applied
(lirc in autodetect, VO2 support) blocks sorted for ao/vo (video/video+audio/audio) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2948 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure175
1 files changed, 103 insertions, 72 deletions
diff --git a/configure b/configure
index f66d12bc70..4558ad1aa2 100755
--- a/configure
+++ b/configure
@@ -18,9 +18,9 @@
# GOTCHAS:
# - config files are currently:
# config2.h config2.mak libvo/config2.mak libao2/config2.mak
-# Gui/config2.mak
+# Gui/config2.mak libvo2/config2.mak
# - removed xmmp/esd
-# - removec dvbincdir/madincdir/cssincdir: add them to extraincdir
+# - removed dvbincdir/madincdir/cssincdir: add them to extraincdir
#
#############################################################################
@@ -95,7 +95,7 @@ Installation directories:
Optional features:
--enable-largefiles enable support for files >2^32 bytes long [disable]
--enable-termcap use termcap database for key codes [autodetect]
- --enable-lirc enable LIRC (remote control) support [disable]
+ --enable-lirc enable LIRC (remote control) support [autodetect]
--enable-gui enable GUI [disable]
--enable-tv enable TV Interface (tv/dvb grabbers) [disable]
--disable-win32 disable Win32 DLL support [autodetect]
@@ -646,21 +646,21 @@ _mlib=auto
_sgiaudio=auto
_sunaudio=auto
_alsa=auto
-
_fastmemcpy=yes
_win32=auto
- _dshow=auto
+_dshow=auto
_def_select='#define HAVE_AUDIO_SELECT'
-
_tv=no
_streaming=no
_divx4linux=auto
-_lirc=no
+_lirc=auto
_gui=no
_termcap=auto
_3dfx=no
_tdfxfb=no
+_vo2=no
+
_x=1
_y=1
_language=en
@@ -738,8 +738,6 @@ for ac_option do
--disable-tv) _tv=no ;;
--enable-fastmemcpy) _fastmemcpy=yes ;;
--disable-fastmemcpy) _fastmemcpy=no ;;
- --enable-tv) _tv=yes ;;
- --disable-tv) _tv=no ;;
--enable-streaming) _streaming=yes ;;
--disable-streaming) _streaming=no ;;
--enable-divx4linux) _divx4linux=yes ;;
@@ -757,6 +755,9 @@ for ac_option do
--enable-mtrr) _mtrr=yes ;;
--disable-mtrr) _mtrr=no ;;
+ --enable-vo2) _vo2=yes ;;
+ --disable-vo2) _vo2=no ;;
+
--enable-select) _def_select='#define HAVE_AUDIO_SELECT' ;;
--disable-select) _def_select='#undef HAVE_AUDIO_SELECT' ;;
@@ -851,6 +852,7 @@ for ac_option do
_datadir=`echo $ac_option | cut -d '=' -f 2`
;;
+
*)
echo "Unknown parameter: $ac_option"
;;
@@ -1200,6 +1202,10 @@ fi
_ld_x11="-L$_x11libdir -lX11 -lXext"
+#########
+# VIDEO #
+#########
+
echocheck "X11"
if test "$_x11" = auto ; then
cat > $TMPC <<EOF
@@ -1366,46 +1372,6 @@ fi
echores "$_dga2"
-echocheck "SDL"
-if test -z "$_sdlconfig" ; then
- if ( sdl-config --version ) >/dev/null 2>&1 ; then
- _sdlconfig="sdl-config"
- elif ( sdl11-config --version ) >/dev/null 2>&1 ; then
- _sdlconfig="sdl11-config"
- else
- _sdlconfig=false
- fi
-fi
-if test "$_sdl" = auto || test "$_sdl" = yes ; then
- _sdl=no
- if "$_sdlconfig" --version >/dev/null 2>&1 ; then
- if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then
- _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'`
- if test "$_sdlversion" -gt 116 ; then
- if test "$_sdlversion" -lt 121 ; then
- _def_sdlbuggy='#define BUGGY_SDL'
- else
- _def_sdlbuggy='#undef BUGGY_SDL'
- fi
- _sdl=yes
- else
- _sdl=outdated
- fi
- fi
- fi
-fi
-if test "$_sdl" = yes ; then
- _def_sdl='#define HAVE_SDL 1'
- _ld_sdl=`$_sdlconfig --libs`
- _inc_sdl=`$_sdlconfig --cflags`
- _vosrc="$_vosrc vo_sdl.c"
- _aosrc="$_aosrc ao_sdl.c"
-else
- _def_sdl='#undef HAVE_SDL'
-fi
-echores "$_sdl (with $_sdlconfig)"
-
-
echocheck "OpenGL"
if test "$_gl" = auto ; then
cat > $TMPC << EOF
@@ -1557,6 +1523,73 @@ fi
echores "$_dvb"
+echocheck "PNG support"
+if test "$_png" = auto ; then
+ _png=no
+ if irix ; then
+ # Don't check for -lpng on irix since it has its own libpng
+ # incompatible with the GNU libpng
+ echores "disabled on irix (not GNU libpng)"
+ else
+ cc_check -lpng -lz -lm && _png=yes
+ echores yes
+ fi
+else
+ echores "$_png"
+fi
+if test "$_png" = yes ; then
+ _def_png='#define HAVE_PNG 1'
+ _ld_png='-lpng -lz'
+ _vosrc="$_vosrc vo_png.c"
+else
+ _def_png='#undef HAVE_PNG'
+fi
+
+
+#################
+# VIDEO + AUDIO #
+#################
+
+
+echocheck "SDL"
+if test -z "$_sdlconfig" ; then
+ if ( sdl-config --version ) >/dev/null 2>&1 ; then
+ _sdlconfig="sdl-config"
+ elif ( sdl11-config --version ) >/dev/null 2>&1 ; then
+ _sdlconfig="sdl11-config"
+ else
+ _sdlconfig=false
+ fi
+fi
+if test "$_sdl" = auto || test "$_sdl" = yes ; then
+ _sdl=no
+ if "$_sdlconfig" --version >/dev/null 2>&1 ; then
+ if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then
+ _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'`
+ if test "$_sdlversion" -gt 116 ; then
+ if test "$_sdlversion" -lt 121 ; then
+ _def_sdlbuggy='#define BUGGY_SDL'
+ else
+ _def_sdlbuggy='#undef BUGGY_SDL'
+ fi
+ _sdl=yes
+ else
+ _sdl=outdated
+ fi
+ fi
+ fi
+fi
+if test "$_sdl" = yes ; then
+ _def_sdl='#define HAVE_SDL 1'
+ _ld_sdl=`$_sdlconfig --libs`
+ _inc_sdl=`$_sdlconfig --cflags`
+ _vosrc="$_vosrc vo_sdl.c"
+ _aosrc="$_aosrc ao_sdl.c"
+else
+ _def_sdl='#undef HAVE_SDL'
+fi
+echores "$_sdl (with $_sdlconfig)"
+
echocheck "DXR3/H+"
if test "$_dxr3" = auto ; then
cat > $TMPC << EOF
@@ -1577,6 +1610,11 @@ fi
echores "$_dxr3"
+#########
+# AUDIO #
+#########
+
+
echocheck "OSS Audio"
if test "$_ossaudio" = auto ; then
cat > $TMPC << EOF
@@ -1750,29 +1788,6 @@ fi
echores "$_zlib"
-echocheck "PNG support"
-if test "$_png" = auto ; then
- _png=no
- if irix ; then
- # Don't check for -lpng on irix since it has its own libpng
- # incompatible with the GNU libpng
- echores "disabled on irix (not GNU libpng)"
- else
- cc_check -lpng -lz -lm && _png=yes
- echores yes
- fi
-else
- echores "$_png"
-fi
-if test "$_png" = yes ; then
- _def_png='#define HAVE_PNG 1'
- _ld_png='-lpng -lz'
- _vosrc="$_vosrc vo_png.c"
-else
- _def_png='#undef HAVE_PNG'
-fi
-
-
echocheck "mad support"
if test "$_mad" = auto ; then
_mad=no
@@ -2045,6 +2060,10 @@ fi
echocheck "lirc"
+if test "$_lirc" = auto ; then
+ _lirc=no
+ test -c /dev/lirc && _lirc=yes
+fi
if test "$_lirc" = yes ; then
_def_lirc='#define HAVE_LIRC 1'
_ld_lirc='-llirc_client'
@@ -2255,6 +2274,8 @@ WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\"
STREAMING = $_streaming
+VO2 = $_vo2
+
X11_INC = $_inc_x11
X11DIR = $_ld_x11
X_LIBS = $_ld_x11 $_ld_extra $_ld_gl $_ld_ggi $_ld_dxr3 $_ld_sdl $_ld_dga $_ld_xv $_ld_vm $_ld_svga $_ld_png $_ld_sock $_ld_aa $_ld_vorbis $_ld_xinerama $_ld_mad $_ld_z
@@ -2556,6 +2577,16 @@ EOF
#############################################################################
+echo "Creating libvo2/config2.mak"
+_vo2obj=`echo $_vo2src | sed -e 's/\.c/\.o/g'`
+cat > libvo2/config2.mak << EOF
+include ../config.mak
+OPTIONAL_SRCS = $_vo2src
+OPTIONAL_OBJS = $_vo2obj
+EOF
+
+#############################################################################
+
echo "Creating libao2/config2.mak"
_aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'`
cat > libao2/config2.mak << EOF