summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-19 12:04:19 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-19 12:04:19 +0000
commitf9116e2e37b9e762aeedcc28cabb6f7ab753d3e7 (patch)
tree369cc6aa0cbb79b18d590f47c01c70f88663aa75 /configure
parent82c91e7585cadee07fc59e4d33f47334228ae463 (diff)
downloadmpv-f9116e2e37b9e762aeedcc28cabb6f7ab753d3e7.tar.bz2
mpv-f9116e2e37b9e762aeedcc28cabb6f7ab753d3e7.tar.xz
better support for --target: new boolean function x86()
added 3dfx & tdfx to --help git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2998 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure33
1 files changed, 19 insertions, 14 deletions
diff --git a/configure b/configure
index 944e50b502..5e5366d7ed 100755
--- a/configure
+++ b/configure
@@ -61,6 +61,14 @@ openbsd() { test "$system_name" = "OpenBSD" ; return "$?" ; }
bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; }
qnx() { test "$system_name" = "QNX" ; return "$?" ; }
+# arch test boolean functions
+x86() {
+ case "$host_arch" in
+ i[3-9]86|x86*) return 0 ;;
+ *) return 1 ;;
+ esac
+}
+
# Use this before starting a check
echocheck() {
echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -131,6 +139,8 @@ Video:
--enable-x11 build with X11 render support [autodetect]
--enable-fbdev build with FBDev render support [disable]
--enable-mlib build with MLIB support (Solaris only) [disable]
+ --enable-3dfx build with 3dfx support [disable]
+ --enable-tdfxfb build with tdfxfb support [disable]
Audio:
--disable-ossaudio disable OSS sound support [autodetect]
@@ -147,8 +157,6 @@ Miscellaneous options:
(Available: $LANGUAGES)
--disable-select disable audio select() support (for example, required
for ALSA or Vortex2 driver) [enable]
- --size-x=SIZE default screen width
- --size-y=SIZE default screen height
Advanced options:
--enable-mmx build with mmx support [autodetect]
@@ -371,8 +379,7 @@ if test "$_as" = auto ; then
fi
# Try to find the available options for the current CPU
-if test "$host_arch" = i386 || test "$host_arch" = i486 ||
- test "$host_arch" = i586 || test "$host_arch" = i686; then
+if x86 ; then
if test -r /proc/cpuinfo ; then
# linux with /proc mounted, extract cpu information from it
_cpuinfo="cat /proc/cpuinfo"
@@ -427,7 +434,7 @@ fi
case "$host_arch" in
- i386|i486|i586|i686)
+ i[3-9]86|x86*)
_def_arch="#define ARCH_X86 1"
_target_arch="TARGET_ARCH_X86 = yes"
_def_words_endian="#undef WORDS_BIGENDIAN"
@@ -583,7 +590,7 @@ $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
echores "$_binutils"
-if test "$host_arch" = i386 ; then
+if x86 ; then
extcheck() {
if test "$1" = yes ; then
echocheck "kernel support of $2"
@@ -852,7 +859,7 @@ test -z "$_datadir" && _datadir=$_prefix"/share/mplayer"
-if test "$host_arch" = i386 ; then
+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'`
@@ -907,7 +914,7 @@ test "$_sse" = yes && _def_sse='#define HAVE_SSE 1'
# Checking kernel version...
-if test "$host_arch" = i386 && linux ; then
+if x86 && linux ; then
_k_verc_problem=no
kernel_version=`uname -r 2>&1`
echocheck "$system_name kernel version"
@@ -1842,8 +1849,7 @@ echores "$_vorbis"
echocheck "Win32 DLL support"
if test "$_win32" = auto ; then
_win32=no
- if test "$host_arch" = i386 || test "$host_arch" = i486 ||
- test "$host_arch" = i586 || test "$host_arch" = i686; then
+ if x86 ; then
if test -z "$_win32libdir" ; then
for I in /usr/local/lib/win32 /usr/lib/win32 ; do
if test -d "$I" ; then
@@ -1917,8 +1923,7 @@ echocheck "XAnim DLL"
if test "$_xanim" = auto ; then
_xanim=no
if test "$_dl" = yes ; then
- if test "$host_arch" = i386 || test "$host_arch" = i486 ||
- test "$host_arch" = i586 || test "$host_arch" = i686; then
+ if x86 ; then
if test -z "$_xanimlibdir" ; then
for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods ; do
if test -d "$I" ; then
@@ -2219,7 +2224,7 @@ fi
if test "$_profile" || test "$_debug" ; then
CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
elif test -z "$CFLAGS" ; then
- if [ "$host_arch" != "mips" ]; then
+ if test "$host_arch" != "mips" ; then
CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
else
CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
@@ -2659,7 +2664,7 @@ Use --enable-sdl to force usage of libSDL.
EOF
fi
-if test "$host_arch" = "i386" ; then
+if x86 ; then
if test "$_win32" = no ; then
if test "$_win32libdir" ; then
cat <<EOF