Mercurial > mplayer.hg
comparison configure @ 988:c6f88600d409
Enable to avoid checking version of gcc. New tests of as
author | nickols_k |
---|---|
date | Mon, 04 Jun 2001 09:38:18 +0000 |
parents | 9ad2313db4bf |
children | 21475b2da242 |
comparison
equal
deleted
inserted
replaced
987:9ad2313db4bf | 988:c6f88600d409 |
---|---|
109 | 109 |
110 --enable-termcap use termcap database for key codes | 110 --enable-termcap use termcap database for key codes |
111 --enable-xmmp use XMMP audio drivers | 111 --enable-xmmp use XMMP audio drivers |
112 --enable-lirc enable LIRC (remote control) support | 112 --enable-lirc enable LIRC (remote control) support |
113 | 113 |
114 --disable-gcc-checking disable gcc version checking | |
115 | |
114 --disable-select disable audio select() support ( for example required this | 116 --disable-select disable audio select() support ( for example required this |
115 option ALSA or Vortex2 driver ) | 117 option ALSA or Vortex2 driver ) |
116 | 118 |
117 --disable-dshow disable DirectShow support (if you don't have | 119 --disable-dshow disable DirectShow support (if you don't have |
118 C++ compiler&libs, or you've found dshow codecs | 120 C++ compiler&libs, or you've found dshow codecs |
177 do | 179 do |
178 case "$ac_option" in | 180 case "$ac_option" in |
179 --cc=*) | 181 --cc=*) |
180 _cc=`echo $ac_option | cut -d '=' -f 2` | 182 _cc=`echo $ac_option | cut -d '=' -f 2` |
181 ;; | 183 ;; |
184 --disable-gcc-checking=*) | |
185 _skip_cc_check=yes | |
186 ;; | |
182 --with-x11libdir=*) | 187 --with-x11libdir=*) |
183 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | 188 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
184 ;; | 189 ;; |
185 --enable-x11) | 190 --enable-x11) |
186 _x11=yes | 191 _x11=yes |
190 ;; | 195 ;; |
191 esac | 196 esac |
192 done | 197 done |
193 | 198 |
194 # Checking CC version... | 199 # Checking CC version... |
200 if ! test -z "$_skip_cc_check"; then | |
195 echo "checking version of $CC""... $_cc" | 201 echo "checking version of $CC""... $_cc" |
196 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` | 202 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
197 case $cc_version in | 203 case $cc_version in |
198 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; | 204 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; |
199 2.95.[2-9]|3.[0-9]) | 205 2.95.[2-9]|3.[0-9]) |
202 esac | 208 esac |
203 echo "$cc_version" | 209 echo "$cc_version" |
204 if ! test -z "$cc_verc_fail"; then | 210 if ! test -z "$cc_verc_fail"; then |
205 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" | 211 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" |
206 exit | 212 exit |
213 fi | |
214 fi | |
215 if test -z "$_skip_cc_check"; then | |
216 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" | |
207 fi | 217 fi |
208 # --- | 218 # --- |
209 | 219 |
210 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | 220 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` |
211 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` | 221 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` |
746 ;; | 756 ;; |
747 esac | 757 esac |
748 done | 758 done |
749 | 759 |
750 # Checking as compatibility... | 760 # Checking as compatibility... |
761 cat > astest.S <<EOF | |
762 filds -2(%ebp) | |
763 EOF | |
764 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
751 if [ $_mmx = 'yes' ]; then | 765 if [ $_mmx = 'yes' ]; then |
752 cat > astest.S <<EOF | 766 cat > astest.S <<EOF |
753 emms | 767 emms |
754 EOF | 768 EOF |
755 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 769 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
756 fi | 770 fi |
757 if [ $_3dnow = 'yes' ]; then | 771 if [ $_3dnow = 'yes' ]; then |
758 cat >> astest.S <<EOF | 772 cat >> astest.S <<EOF |
759 femms | 773 femms |
774 EOF | |
775 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
776 fi | |
777 if [ $_3dnowex = 'yes' ]; then | |
778 cat >> astest.S <<EOF | |
779 pswapd %mm0, %mm0 | |
760 EOF | 780 EOF |
761 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | 781 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
762 fi | 782 fi |
763 if [ $_mmx2 = 'yes' ]; then | 783 if [ $_mmx2 = 'yes' ]; then |
764 cat >> astest.S <<EOF | 784 cat >> astest.S <<EOF |