📄 configure
字号:
--disable-sortsub) _sortsub=no ;; --charset=*) _charset=`echo $ac_option | cut -d '=' -f 2` ;; --language=*) _language=`echo $ac_option | cut -d '=' -f 2` ;;# dvdnav disabled, it does not work# --with-libdvdnav=*)# _dvdnavdir=`echo $ac_option | cut -d '=' -f 2`# _dvdnav=yes# ;; --with-codecsdir=*) _win32libdir=`echo $ac_option | cut -d '=' -f 2` _xanimlibdir=`echo $ac_option | cut -d '=' -f 2` _reallibdir=`echo $ac_option | cut -d '=' -f 2` ;; --with-win32libdir=*) _win32libdir=`echo $ac_option | cut -d '=' -f 2` _win32=yes ;; --with-xanimlibdir=*) _xanimlibdir=`echo $ac_option | cut -d '=' -f 2` _xanim=yes ;; --with-reallibdir=*) _reallibdir=`echo $ac_option | cut -d '=' -f 2` _real=yes ;; --with-livelibdir=*) _livelibdir=`echo $ac_option | cut -d '=' -f 2` ;; --with-toolamedir=*) _toolamedir=`echo $ac_option | cut -d '=' -f 2` ;; --with-mlibdir=*) _mlibdir=`echo $ac_option | cut -d '=' -f 2` _mlib=yes ;; --with-xmmslibdir=*) _xmmslibdir=`echo $ac_option | cut -d '=' -f 2` ;; --with-xmmsplugindir=*) _xmmsplugindir=`echo $ac_option | cut -d '=' -f 2` ;; --with-bio2jack=*) _bio2jackdir=`echo $ac_option | cut -d '=' -f 2` ;; --enable-profile) _profile='-p' ;; --disable-profile) _profile= ;; --enable-debug) _debug='-g' ;; --enable-debug=*) _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` ;; --disable-debug) _debug= ;; --enable-crash-debug) _crash_debug=yes ;; --disable-crash-debug) _crash_debug=no ;; --enable-sighandler) _sighandler=yes ;; --disable-sighandler) _sighandler=no ;; --enable-sse) _sse=yes ;; --disable-sse) _sse=no ;; --enable-sse2) _sse2=yes ;; --disable-sse2) _sse2=no ;; --enable-mmx2) _mmx2=yes ;; --disable-mmx2) _mmx2=no ;; --enable-3dnow) _3dnow=yes ;; --disable-3dnow) _3dnow=no _3dnowex=no ;; --enable-3dnowex) _3dnow=yes _3dnowex=yes ;; --disable-3dnowex) _3dnowex=no ;; --enable-altivec) _altivec=yes ;; --disable-altivec) _altivec=no ;; --enable-mmx) _mmx=yes ;; --disable-mmx) # 3Dnow! and MMX2 require MMX _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;; --enable-win32) _win32=yes ;; --disable-win32) _win32=no _dshow=no ;; --enable-dshow) _win32=yes _dshow=yes ;; --disable-dshow) _dshow=no ;; --with-x11incdir=*) _inc_x11=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-x11libdir=*) _ld_x11=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-dxr2incdir=*) _inc_dxr2=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-xvmclib=*) _xvmclib=`echo $ac_option | cut -d '=' -f 2` ;; --with-dvbincdir=*) _inc_dvb=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-xvidlibdir=*) _ld_xvid=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-xvidincdir=*) _inc_xvid=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-dtslibdir=*) _ld_libdts=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-dtsincdir=*) _inc_libdts=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-x264libdir=*) _ld_x264=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-x264incdir=*) _inc_x264=-I`echo $ac_option | cut -d '=' -f 2 |sed 's,:, -I,g'` ;; --with-sdl-config=*) _sdlconfig=`echo $ac_option | cut -d '=' -f 2` ;; --with-freetype-config=*) _freetypeconfig=`echo $ac_option | cut -d '=' -f 2` ;; --with-fribidi-config=*) _fribidiconfig=`echo $ac_option | cut -d '=' -f 2` ;; --with-gtk-config=*) _gtkconfig=`echo $ac_option | cut -d '=' -f 2` ;; --with-glib-config=*) _glibconfig=`echo $ac_option | cut -d '=' -f 2` ;;# dvdnav disabled, it does not work# --with-dvdnav-config=*)# _dvdnavconfig=`echo $ac_option | cut -d '=' -f 2`# ;; --with-madlibdir=*) _ld_mad=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-cdparanoiaincdir=*) _inc_cdparanoia=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-cdparanoialibdir=*) _ld_cdparanoia=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-termcaplib=*) _ld_termcap=-l`echo $ac_option | cut -d '=' -f 2` _termcap=yes ;; --prefix=*) _prefix=`echo $ac_option | cut -d '=' -f 2` ;; --bindir=*) _bindir=`echo $ac_option | cut -d '=' -f 2` ;; --datadir=*) _datadir=`echo $ac_option | cut -d '=' -f 2` ;; --mandir=*) _mandir=`echo $ac_option | cut -d '=' -f 2` ;; --confdir=*) _confdir=`echo $ac_option | cut -d '=' -f 2` ;; --libdir=*) _libdir=`echo $ac_option | cut -d '=' -f 2` ;; *) echo "Unknown parameter: $ac_option" exit 1 ;; esacdone# Atmos: moved this here, to be correct, if --prefix is specifiedtest -z "$_bindir" && _bindir="$_prefix/bin"test -z "$_datadir" && _datadir="$_prefix/share/mplayer"test -z "$_mandir" && _mandir="$_prefix/man"test -z "$_confdir" && _confdir="$_prefix/etc/mplayer"test -z "$_libdir" && _libdir="$_prefix/lib"test -z "$_mlibdir" && _mlibdir="$MLIBHOME"if x86 ; then # Checking assembler (_as) compatibility... # Added workaround for older as that reads from stdin by default - atmos as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` echocheck "assembler ($_as $as_version)" _pref_as_version='2.9.1' echo 'nop' > $TMPS if test "$_mmx" = yes ; then echo 'emms' >> $TMPS fi if test "$_3dnow" = yes ; then _pref_as_version='2.10.1' echo 'femms' >> $TMPS fi if test "$_3dnowex" = yes ; then _pref_as_version='2.10.1' echo 'pswapd %mm0, %mm0' >> $TMPS fi if test "$_mmx2" = yes ; then _pref_as_version='2.10.1' echo 'movntq %mm0, (%eax)' >> $TMPS fi if test "$_sse" = yes ; then _pref_as_version='2.10.1' echo 'xorps %xmm0, %xmm0' >> $TMPS fi #if test "$_sse2" = yes ; then # _pref_as_version='2.11' # echo 'xorpd %xmm0, %xmm0' >> $TMPS #fi $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes if test "$as_verc_fail" != yes ; then echores "ok" else echores "failed" echo "Upgrade binutils to ${_pref_as_version} ..." die "obsolete binutils version" fifiif ppc ; then # check if altivec is supported by the compiler, and how to enable it _altivec_gcc_flags='' if test "$_altivec" = yes -o "$_runtime_cpudetection" = yes ; then echocheck "GCC altivec support" p='' cat > $TMPC << EOFint main() { return 0;}EOF FSF_flags='-maltivec -mabi=altivec' Darwin_flags='-faltivec' # check for Darwin-style flags first, since # gcc-3.3 (August Update from Apple) on MacOS 10.2.8 # accepts but ignores FSF-style flags... if test -z "$p"; then cc_check $Darwin_flags && p='Darwin' fi if test -z "$p"; then cc_check $FSF_flags && p='FSF' fi case $p in FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;; Darwin) _altivec_gcc_flags="$Darwin_flags" _altivec=yes ;; *) _altivec=no ;; esac if test -z "$p"; then p=none else p="$p-style ($_altivec_gcc_flags)" fi echores "$p" fi # check if <altivec.h> should be included _def_altivec_h='#undef HAVE_ALTIVEC_H' if test "$_altivec" = yes ; then echocheck "altivec.h" cat > $TMPC << EOF#include <altivec.h>int main(void) { return 0; }EOF _have_altivec_h=no cc_check $_altivec_gcc_flags && _have_altivec_h=yes if test "$_have_altivec_h" = yes ; then _def_altivec_h='#define HAVE_ALTIVEC_H 1' fi echores "$_have_altivec_h" fi # disable runtime cpudetection if # - we cannot generate altivec code # - altivec is disabled by the user if test "$_runtime_cpudetection" = yes -a "$_altivec" = no ; then _runtime_cpudetection=no fi # show that we are optimizing for altivec (if enabled and supported) if test "$_runtime_cpudetection" = no -a "$_altivec" = yes ; then _optimizing="$_optimizing altivec" fi # if altivec is enabled, make sure the correct flags turn up in CFLAGS if test "$_altivec" = yes ; then _mcpu="$_mcpu $_altivec_gcc_flags" fi # setup _def_altivec correctly if test "$_altivec" = yes ; then _def_altivec='#define HAVE_ALTIVEC 1' else _def_altivec='#undef HAVE_ALTIVEC' fifi_def_mmx='#undef HAVE_MMX'test "$_mmx" = yes && _def_mmx='#define HAVE_MMX 1'_def_mmx2='#undef HAVE_MMX2'test "$_mmx2" = yes && _def_mmx2='#define HAVE_MMX2 1'_def_3dnow='#undef HAVE_3DNOW'test "$_3dnow" = yes && _def_3dnow='#define HAVE_3DNOW 1'_def_3dnowex='#undef HAVE_3DNOWEX'test "$_3dnowex" = yes && _def_3dnowex='#define HAVE_3DNOWEX 1'_def_sse='#undef HAVE_SSE'test "$_sse" = yes && _def_sse='#define HAVE_SSE 1'_def_sse2='#undef HAVE_SSE2'test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1'# Checking kernel version...if x86 && linux ; then _k_verc_problem=no kernel_version=`uname -r 2>&1` echocheck "$system_name kernel version" case "$kernel_version" in '') kernel_version="?.??"; _k_verc_fail=yes;; [0-1].[0-9].[0-9]*|2.[0-3].[0-9]*) _k_verc_problem=yes;; esac if test "$_k_verc_problem" = yes && test "$_sse" = yes ; then _k_verc_fail=yes fi if test "$_k_verc_fail" ; then echores "$kernel_version, fail" echo "WARNING! If you want to run MPlayer on this system, get prepared for problems!" echo "2.2.x has limited SSE support. Upgrade the kernel or use --disable-sse if you" echo "experience crashes. MPlayer tries to autodetect if your kernel correctly" echo "supports SSE, but you have been warned! If you are using a kernel older than" echo "2.2.x you must upgrade it to get SSE support!"# die "Your kernel is too old for this CPU." # works fine on some 2.2.x so don't die (later check will test) else echores "$kernel_version, ok" fifiif test "$_vidix" = auto ; then _vidix=no # should check for x86 systems supporting VIDIX (does QNX have VIDIX?) x86 && _vidix=yes ppc && linux && _vidix=yes alpha && linux && _vidix=yes qnx && _vidix=no sunos && _vidix=no beos && _vidix=nofiechocheck "mplayer binary name"if win32 ; then _prg="mplayer.exe" _prg_mencoder="mencoder.exe"else _prg="mplayer" _prg_mencoder="mencoder"fiechores $_prg# On QNX we must link to libph - Gabucinoif qnx ; then _ld_arch="$_ld_arch -lph"fi# checking for a working awk, I'm using mawk first, because it's fastest - atmos_awk=if test "$_vidix" = yes ; then_awk_verc_fail=yesechocheck "awk"for _awk in mawk gawk nawk awk; do if ( $_awk 'BEGIN{testme();}function testme(){print"";}' ) >> "$TMPLOG" 2>&1; then _awk_verc_fail=no break fidonetest "$_awk_verc_fail" = yes && _awk=noechores "$_awk"if test "$_awk_verc_fail" = yes; thenecho "VIDIX needs awk, but no working implementation was found!"echo "Try the GNU version, which can be downloaded from:"echo "ftp://ftp.gnu.org
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -