📄 configure
字号:
#! /bin/sh## Original version (C) 2000 Pontscho/fresh!mindworkz# pontscho@makacs.poliod.hu## History / Contributors: check the cvs log !## Cleanups all over the place (c) 2001 pl### Guidelines:# If the option is named 'opt':# _opt : should have a value in yes/no/auto# _def_opt : '#define ... 1' or '#undef ...' that is: some C code# _ld_opt : ' -L/path/dir -lopt ' that is: some GCC option# _inc_opt : ' -I/path/dir/include '## In this file, a tab is 8 chars and indentation shift is 2 characters## GOTCHAS:# - config files are currently:# config.h config.mak libvo/config.mak libao2/config.mak Gui/config.mak############################################################################### Prefer these macros to full length text !# These macros only return an error code - NO display is donecc_check() { echo >> "$TMPLOG" cat "$TMPC" >> "$TMPLOG" echo >> "$TMPLOG" echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG" rm -f "$TMPO" ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 TMP="$?" echo >> "$TMPLOG" echo "ldd $TMPO" >> "$TMPLOG" ( $_ldd "$TMPO" ) >> "$TMPLOG" 2>&1 echo >> "$TMPLOG" return "$TMP"}# Display error message, flushes tempfile, exitdie () { echo echo "Error: $@" >&2 echo >&2 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" echo "Check \"$TMPLOG\" if you do not understand why it failed." exit 1}# OS test booleans functionsissystem() { test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`"}linux() { issystem "Linux" ; return "$?" ; }sunos() { issystem "SunOS" ; return "$?" ; }hpux() { issystem "HP-UX" ; return "$?" ; }irix() { issystem "IRIX" ; return "$?" ; }cygwin() { issystem "CYGWIN" ; return "$?" ; }freebsd() { issystem "FreeBSD" ; return "$?" ; }netbsd() { issystem "NetBSD" ; return "$?" ; }bsdos() { issystem "BSD/OS" ; return "$?" ; }openbsd() { issystem "OpenBSD" ; return "$?" ; }bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; }qnx() { issystem "QNX" ; return "$?" ; }darwin() { issystem "Darwin" ; return "$?" ; }gnu() { issystem "GNU" ; return "$?" ; }mingw32() { issystem "MINGW32" ; return "$?" ; }morphos() { issystem "MorphOS" ; return "$?" ; }win32() { cygwin || mingw32 ; return "$?" ; }beos() { issystem "BEOS" ; return "$?" ; }# arch test boolean functions# x86/x86pc is used by QNXx86() { case "$host_arch" in i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) return 0 ;; *) return 1 ;; esac}ppc() { case "$host_arch" in ppc) return 0;; *) return 1;; esac}alpha() { case "$host_arch" in alpha) return 0;; *) return 1;; esac}# not boolean test: implement the posix shell "!" operator for a# non-posix /bin/sh.# usage: not {command}# returns exit status "success" when the execution of "command"# fails.not() { eval "$@" test $? -ne 0}# Use this before starting a checkechocheck() { echo "============ Checking for $@ ============" >> "$TMPLOG" echo ${_echo_n} "Checking for $@ ... ${_echo_c}"}# Use this to echo the results of a checkechores() { echo "Result is: $@" >> "$TMPLOG" echo "##########################################" >> "$TMPLOG" echo "" >> "$TMPLOG" echo "$@"}############################################################################## Check how echo works in this /bin/shcase `echo -n` in -n) _echo_n= _echo_c='\c' ;; # SysV echo *) _echo_n='-n ' _echo_c= ;; # BSD echoesacLANGUAGES=`echo help/help_mp-??.h help/help_mp-??_??.h | sed "s:help/help_mp-\(..\).h:\1:g" | sed "s:help/help_mp-\(.....\).h:\1:g"`for parm in "$@" ; do if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then cat << EOFUsage: $0 [OPTIONS]...Configuration: -h, --help display this help and exitInstallation directories: --prefix=DIR use this prefix for installing mplayer [/usr/local] --bindir=DIR use this prefix for installing mplayer binary [PREFIX/bin] --datadir=DIR use this prefix for installing machine independent data files (fonts, skins) [PREFIX/share/mplayer] --mandir=DIR use this prefix for installing manpages [PREFIX/man] --confdir=DIR use this prefix for installing configuration files [PREFIX/etc/mplayer] --libdir=DIR use this prefix for object code libraries [PREFIX/lib]Optional features: --disable-mencoder disable mencoder (a/v encoder) compilation [enable] --enable-gui enable gmplayer compilation (GTK 1.2 GUI) [disable] --enable-largefiles enable support for files > 2 GBytes [disable] --enable-linux-devfs set default devices to devfs ones [disable] --enable-termcap use termcap database for key codes [autodetect] --enable-termios use termios database for key codes [autodetect] --disable-iconv do not use iconv(3) function [autodetect] --disable-setlocale disable setlocale using in mplayer [autodetect] --disable-langinfo do not use langinfo [autodetect] --enable-lirc enable LIRC (remote control) support [autodetect] --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect] --enable-joystick enable joystick support [disable] --disable-vm disable support X video mode extensions [autodetect] --disable-xf86keysym disable support for 'multimedia' keys [autodetect] --disable-tv disable TV Interface (tv/dvb grabbers) [enable] --disable-tv-v4l disable Video4Linux TV Interface support [autodetect] --disable-tv-v4l2 disable Video4Linux2 TV Interface support [autodetect] --disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect] --disable-edl disable EDL (edit decision list) support [enable] --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] --disable-network disable network support (for: http/mms/rtp) [enable] --enable-winsock2 enable winsock2 usage [autodetect] --enable-smb enable Samba (SMB) input support [autodetect] --enable-live enable LIVE.COM Streaming Media support [autodetect] --disable-dvdread Disable libdvdread support [autodetect] --disable-mpdvdkit Disable mpdvdkit/mpdvdkit2 support [autodetect] --disable-cdparanoia Disable cdparanoia support [autodetect] --disable-freetype Disable freetype2 font rendering support [autodetect] --disable-fontconfig Disable fontconfig font lookup support [autodetect] --disable-unrarlib Disable Unique RAR File Library [enabled] --enable-menu Enable OSD menu support (NOT DVD MENU) [disabled] --disable-sortsub Disable subtitles sorting [enabled] --enable-fribidi Enable using the FriBiDi libs [disabled] --disable-enca Disable using ENCA charset oracle library [autodetect] --disable-macosx Disable Mac OS X specific features [autodetect] --enable-macosx-finder-support Enable Mac OS X Finder invocation parameter parsing [disabled] --enable-macosx-bundle Enable Mac OS X bundle file locations [autodetect] --disable-inet6 Disable IPv6 support [autodetect] --disable-gethostbyname2 gethostbyname() function is not provided by the C library [autodetect] --disable-ftp Disable ftp support [enabled] --disable-vstream Disable tivo vstream client support [autodetect]Codecs: --enable-gif enable gif support [autodetect] --enable-png enable png input/output support [autodetect] --enable-jpeg enable jpeg input/output support [autodetect] --enable-liblzo enable external liblzo support [autodetect] --disable-win32 disable Win32 DLL support [autodetect] --disable-dshow disable Win32/DirectShow support [autodetect] --disable-qtx disable Quicktime codecs [autodetect] --disable-xanim disable XAnim DLL support [autodetect] --disable-real disable RealPlayer DLL support [autodetect] --disable-xvid disable XviD codec [autodetect] --disable-x264 disable H.264 encoder [autodetect] --disable-divx4linux disable DivX4linux/Divx5linux codec [autodetect] --enable-opendivx enable _old_ OpenDivx codec [disable] --disable-libavcodec disable libavcodec [autodetect] --disable-libavformat disable libavformat [autodetect] --enable-libfame enable libfame realtime encoder [autodetect] --disable-internal-tremor do not build internal OggVorbis support [enabled] --enable-tremor-low build with lower accuracy internal tremor [disabled] --enable-external-tremor build with external tremor [disabled] --disable-vorbis disable OggVorbis support entirely [autodetect] --enable-theora build with OggTheora support [autodetect] --disable-internal-matroska disable internal Matroska support [enabled] --enable-external-faad build with external FAAD2 (AAC) support [autodetect] --disable-internal-faad disable internal FAAD2 (AAC) support [autodetect] --disable-ladspa disable LADSPA plugin support [autodetect] --disable-libdv disable libdv 0.9.5 en/decoding support [autodetect] --disable-mad disable libmad (MPEG audio) support [autodetect] --disable-toolame disable Toolame (MPEG layer 2 audio) support in mencoder [autodetect] --enable-xmms build with XMMS inputplugin support [disabled] --disable-mp3lib disable builtin mp3lib [enabled] --disable-liba52 disable builtin liba52 [enabled] --enable-libdts enable libdts support [autodetect] --disable-libmpeg2 disable builtin libmpeg2 [enabled] --disable-amr_nb disable amr narrowband, floating point [autodetect] --disable-amr_nb-fixed disable amr narrowband, fixed point [autodetect] --disable-amr_wb disable amr wideband, floating point [autodetect] Video output: --disable-vidix disable VIDIX [enable on x86 *nix] --enable-gl build with OpenGL render support [autodetect] --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] --enable-vesa build with VESA support [autodetect] --enable-svga build with SVGAlib support [autodetect] --enable-sdl build with SDL render support [autodetect] --enable-aa build with AAlib render support [autodetect] --enable-caca build with CACA render support [autodetect] --enable-ggi build with GGI render support [autodetect] --enable-directx build with DirectX support [autodetect] --enable-dxr2 build with DXR2 render support [autodetect] --enable-dxr3 build with DXR3/H+ render support [autodetect] --enable-dvb build with support for output via DVB-Card [autodetect] --enable-dvbhead build with DVB support (HEAD version) [autodetect] --enable-mga build with mga_vid (for Matrox G200/G4x0/G550) support (check for /dev/mga_vid) [autodetect] --enable-xmga build with mga_vid X Window support (check for X & /dev/mga_vid) [autodetect] --enable-xv build with Xv render support for X 4.x [autodetect] --enable-xvmc build with XvMC acceleration for X 4.x [disable] --enable-vm build with XF86VidMode support for X11 [autodetect] --enable-xinerama build with Xinerama support for X11 [autodetect] --enable-x11 build with X11 render support [autodetect] --enable-fbdev build with FBDev render support [autodetect] --enable-mlib build with MLIB support (Solaris only) [autodetect] --enable-3dfx build with obsolete /dev/3dfx support [disable] --enable-tdfxfb build with tdfxfb (Voodoo 3/banshee) support [disable] --enable-directfb build with DirectFB support [autodetect] --enable-zr build with ZR360[56]7/ZR36060 support [autodetect] --enable-bl build with Blinkenlights support [disable] --enable-tdfxvid build with tdfx_vid support [disable] --disable-tga disable targa output support [enable] --disable-pnm disable pnm output support [enable] --disable-md5sum disable md5sum output support [enable] Audio output: --disable-alsa disable ALSA sound support [autodetect] --disable-ossaudio disable OSS sound support [autodetect] --disable-arts disable aRts sound support [autodetect] --disable-esd disable esd sound support [autodetect] --disable-polyp disable Polypaudio sound support [autodetect] --disable-jack disable JACK sound support [autodetect] --disable-nas disable NAS sound support [autodetect] --disable-sgiaudio disable SGI sound support [autodetect] --disable-sunaudio disable Sun sound support [autodetect] --disable-win32waveout disable Windows waveout sound support [autodetect] --disable-select disable using select() on audio device [enable]Miscellaneous options: --enable-runtime-cpudetection Enable runtime CPU detection [disable] --cc=COMPILER use this C compiler to build MPlayer [gcc] --host-cc=COMPILER use this C compiler to build apps needed for the build process [gcc] --as=ASSEMBLER use this assembler to build MPlayer [as] --target=PLATFORM target platform (i386-linux, arm-linux, etc) --enable-static build a statically linked binary. Set further linking options with --enable-static="-lslang -lncurses" --charset convert the help messages to this charset --language=list a white space or comma separated list of languages for translated man pages, the first language is the primary and therefore used for translated messages and GUI (also the environment variable \$LINGUAS is honored) [en] (Available: $LANGUAGES all) --enable-shared-pp install & use shared postprocessing lib --with-install=PATH use a custom install program (useful if your OS uses a GNU-incompatible install utility by default and you want to use GNU version) --install-path=PATH the path to a custom install program this option is obsolete and will be removed soon, use --with-install instead.Advanced options: --enable-mmx build with MMX support [autodetect] --enable-mmx2 build with MMX2 support (PIII, Athlon) [autodetect] --enable-3dnow build with 3DNow! support [autodetect] --enable-3dnowex build with extended 3DNow! support [autodetect] --enable-sse build with SSE support [autodetect] --enable-sse2 build with SSE2 support [autodetect] --enable-shm build with shm support [autodetect] --enable-altivec build with Altivec support (PowerPC) [autodetect] --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable] --enable-big-endian Force byte order to big-endian [autodetect] --enable-debug[=1-3] compile debugging information into mplayer [disable] --enable-profile compile profiling information into mplayer [disable] --disable-sighandler disable sighandler for crashes [enable] --enable-crash-debug enable automatic gdb attach on crash [disable] --enable-i18n _experimental_ gnu gettext() support [autodetect] --enable-dynamic-plugins Enable support for dynamic a/v plugins [disable]Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!" --disable-gcc-checking disable gcc version checking [enable]Use these options if autodetection fails (Options marked with (*) acceptmultiple paths separated by ':'): --with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR (*) --with-extralibdir=DIR extra library files (png, mad, sdl, ...) in DIR (*) --with-x11incdir=DIR X headers in DIR (*) --with-x11libdir=DIR X library files in DIR (*) --with-dxr2incdir=DIR DXR2 headers in DIR (*) --with-dvbincdir=DIR DVB headers in DIR (*) --with-madlibdir=DIR libmad (libmad shared library) in DIR (*) --with-mlibdir=DIR libmlib (MLIB support) in DIR (Solaris only) --with-codecsdir=DIR Binary codec files in DIR --with-win32libdir=DIR W*ndows DLL files in DIR --with-xanimlibdir=DIR XAnim DLL files in DIR --with-reallibdir=DIR RealPlayer DLL files in DIR --with-xvidlibdir=DIR libxvidcore (XviD) in DIR (*) --with-xvidincdir=DIR XviD header in DIR (*) --with-x264libdir=DIR libx264 in DIR --with-x264incdir=DIR x264 header in DIR --with-dtslibdir=DIR libdts library in DIR (*) --with-dtsincdir=DIR libdts header in DIR (*) --with-livelibdir=DIR LIVE.COM Streaming Media libraries in DIR --with-toolamedir=DIR path to Toolame library and include file --with-xmmsplugindir=DIR XMMS plugins in DIR --with-xmmslibdir=DIR libxmms.so.1 in DIR --with-bio2jack=DIR libbio2jack.a in DIR --with-cdparanoiaincdir=DIR cdparanoia headers in DIR (*) --with-cdparanoialibdir=DIR cdparanoia libraries (libcdda_*) in DIR (*) --with-xvmclib=NAME name of adapter-specific library (e.g. XvMCNVIDIA) --with-termcaplib=NAME name of library with termcap functionality name should be given without leading "lib" checks for "termcap" and "tinfo" --with-freetype-config=PATH path to freetype-config (e.g. /opt/bin/freetype-config) --with-fribidi-config=PATH path to fribidi-config (e.g. /opt/bin/fribidi-config) --with-glib-config=PATH path to glib*-config (e.g. /opt/bin/glib-config) --with-gtk-config=PATH path to gtk*-config (e.g. /opt/bin/gtk-config) --with-sdl-config=PATH path to sdl*-config (e.g. /opt/bin/sdl-config)EOF exit 0 fidone # for parm in ...# 1st pass checking for vital options_install=install_ranlib=ranlib_cc=cctest "$CC" && _cc="$CC"_as=auto_runtime_cpudetection=nofor ac_option do case "$ac_option" in --target=*) _target=`echo $ac_option | cut -d '=' -f 2` ;; --cc=*) _cc=`echo $ac_option | cut -d '=' -f 2` ;; --host-cc=*) _host_cc=`echo $ac_option | cut -d '=' -f 2` ;; --as=*) _as=`echo $ac_option | cut -d '=' -f 2` ;; --enable-gcc-checking) _skip_cc_check=no ;; --disable-gcc-checking) _skip_cc_check=yes ;; --enable-static) _ld_static='-static' ;; --disable-static) _ld_static='' ;; --enable-static=*) _ld_static="-static `echo $ac_option | cut -d '=' -f 2`" ;; --with-extraincdir=*) _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; --with-extralibdir=*) _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --enable-runtime-cpudetection) _runtime_cpudetection=yes ;; --disable-runtime-cpudetection) _runtime_cpudetection=no ;; --install-path=*) _install=`echo $ac_option | cut -d '=' -f 2 | sed 's/\/$//'`"/install" ;; --with-install=*) _install=`echo $ac_option | cut -d '=' -f 2 `
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -