summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 00:21:51 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 00:21:51 +0000
commit590886a8f411a65d0be0b9d87b7e1bb26f8c1485 (patch)
tree3ec98d80966669d8343def7f1a74f37d153b0d23 /configure
parent9a21d4480011e25c1c0ca44f3369c992f0a6b7bd (diff)
downloadmpv-590886a8f411a65d0be0b9d87b7e1bb26f8c1485.tar.bz2
mpv-590886a8f411a65d0be0b9d87b7e1bb26f8c1485.tar.xz
(on atmos's suggestions I found good :)
default is autodetection (if lame and divxencore libs found then compile it) use --enable-mencoder or --disable-mencoder to alter this behavior Makefile modified accordingly (uninstall and other ifeq...) removed XMM_* since XMMP no longer there git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3080 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure43
1 files changed, 30 insertions, 13 deletions
diff --git a/configure b/configure
index 8f338941fd..99d27bd17b 100755
--- a/configure
+++ b/configure
@@ -108,6 +108,7 @@ Installation directories:
data [/usr/local/share/mplayer]
Optional features:
+ --disable-mencoder disable mencoder [autodetect]
--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 [autodetect]
@@ -629,6 +630,7 @@ _prefix="/usr/local"
_libavcodec=auto
_libavcodecso=auto
+_mencoder=auto
_x11=auto
_dga=auto
_dga2=auto
@@ -691,6 +693,8 @@ for ac_option do
# Real 2nd pass
+ --enable-mencoder) _mencoder=yes ;;
+ --disable-mencoder) _mencoder=no ;;
--enable-x11) _x11=yes ;;
--disable-x11) _x11=no ;;
--enable-dga) _dga=yes ;;
@@ -2148,26 +2152,38 @@ EOF
fi
echores "$_divx4linux_decore"
test "$_divx4linux_decore" = yes && _divx4linux=yes
- echocheck "Divx4linux encore (for mencoder)"
- cat > $TMPC <<EOF
-#include <encore2.h>
-int main(void) { (void) encore(0, 0, 0, 0); return 0; }
-EOF
- _divx4linux_encore=no
- cc_check -ldivxencore -lm && _divx4linux_encore=yes
- echores "$_divx4linux_encore"
fi
_def_decore='#undef NEW_DECORE'
_ld_decore='-Lopendivx -ldecore'
-_def_encore='#undef NEW_ENCORE'
if test "$_divx4linux_decore" = yes ; then
_def_decore='#define NEW_DECORE 1'
_ld_decore='-ldivxdecore opendivx/postprocess.o'
- if test "$_divx4linux_encore" = yes ; then
- _def_encore='#define NEW_ENCORE 1'
- _ld_encore='-ldivxencore'
+fi
+
+
+echocheck "lame and encore (for mencoder)"
+#mencoder requires those libs
+if test "$_mencoder" != no ; then
+ cat > $TMPC <<EOF
+#include <encore2.h>
+#include <lame/lame.h>
+int main(void) { (void) lame_init(); (void) encore(0, 0, 0, 0); return 0; }
+EOF
+ _mencoder=no
+ if cc_check -lmp3lame -ldivxencore -lm ; then
+ _mencoder=yes
+ _ld_encore='-lmp3lame -ldivxencore -lm'
+ elif cc_check -lmp3lame $_ld_vorbis -ldivxencore -lm ; then
+ _mencoder=yes
+ _ld_encore="-lmp3lame -ldivxencore -lm $_ld_vorbis"
fi
fi
+if test "$_mencoder" = yes ; then
+ _def_encore='#define NEW_ENCORE 1'
+else
+ _def_encore='#undef NEW_ENCORE'
+fi
+echores "$_mencoder"
echocheck "lirc"
@@ -2411,7 +2427,8 @@ SGI_AUDIO_LIB = $_ld_sgiaudio
ARCH_LIBS = $_ld_static $_ld_arch $_ld_iconv
DIVX4LINUX = $_ld_static $_divx4linux
DECORE_LIBS = $_ld_static $_ld_decore
-ENCORE_LIBS = $_ld_static $_ld_encore
+MENCODER = $_mencoder
+ENCORE_LIBS = $_ld_static $_ld_encore
HAVE_MLIB = $_mlib
MLIB_INC = $_inc_mlib
MLIB_LIB = $_ld_static $_ld_mlib