Mercurial > mplayer.hg
diff configure @ 734:bab1d9b1056a
K7 3dnow-dsp detection
author | nickols_k |
---|---|
date | Wed, 09 May 2001 07:54:56 +0000 |
parents | e14114170e01 |
children | cd1f0d4de0b8 |
line wrap: on
line diff
--- a/configure Wed May 09 05:52:59 2001 +0000 +++ b/configure Wed May 09 07:54:56 2001 +0000 @@ -81,6 +81,7 @@ --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 3dnow-dsp! support (K7) [autodetect] --enable-sse build with sse support [autodetect] --enable-gl build with OpenGL render support [autodetect] --enable-dga build with DGA support [autodetect] @@ -196,6 +197,7 @@ _mmx=no _mmx2=no _3dnow=no +_3dnowex=no _mtrr=no _sse=no @@ -238,6 +240,11 @@ _3dnow=yes _mpg123=yes ;; + 3dnowext) + _3dnow=yes + _3dnowex=yes + _mpg123=yes + ;; mmx) _mmx=yes ;; @@ -531,6 +538,10 @@ --enable-3dnow) _3dnow=yes ;; + --enable-3dnowex) + _3dnow=yes + _3dnowex=yes + ;; --enable-mmx) _mmx=yes ;; @@ -605,6 +616,10 @@ ;; --disable-3dnow) _3dnow=no + _3dnowex=no + ;; + --disable-3dnowex) + _3dnowex=no ;; --disable-mmx) _mmx=no @@ -703,6 +718,7 @@ echo "Checking for mmx support ... $_mmx" echo "Checking for mmx2 support ... $_mmx2" echo "Checking for 3dnow support ... $_3dnow" +echo "Checking for 3dnowex support ... $_3dnowex" echo "Checking for sse support ... $_sse" echo "Checking for mtrr support ... $_mtrr" echo "Screen size ... ${_x}x${_y}" @@ -870,6 +886,12 @@ _3dnowm='#undef HAVE_3DNOW' fi +if [ $_3dnowex = yes ]; then + _3dnowexm='#define HAVE_3DNOWEX' +else + _3dnowexm='#undef HAVE_3DNOWEX' +fi + if [ $_sse = yes ]; then _ssem='#define HAVE_SSE' else @@ -1081,6 +1103,7 @@ /* Extension defines */ $_mlib // available only on solaris $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) +$_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.) $_mmx // only define if you have MMX $_mmx2 // only define if you have MMX2 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) @@ -1154,6 +1177,10 @@ echo "Creating mp3lib/config.mak" +if [ $_3dnowex = yes ]; then + _3dnowobjectsrcs='dct36_k7.s dct64_k7.s decode_k7.s dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' + _3dnowobjectobjs='dct36_k7.o dct64_k7.o decode_k7.o dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' +else if [ $_3dnow = yes ]; then _3dnowobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' _3dnowobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' @@ -1161,6 +1188,7 @@ _3dnowobjectsrcs= _3dnowobjectobjs= fi +fi cat > mp3lib/config.mak << EOF