summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authornickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-04 08:07:57 +0000
committernickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-04 08:07:57 +0000
commitf1493adf5d59e353aceecdde16295d6a84fadd85 (patch)
tree69859ac833a5fef4daa18d147301ceb8b79ccb67 /configure
parent7a5009d9eda392c724b5b165f1c3b16e2dc27aa8 (diff)
downloadmpv-f1493adf5d59e353aceecdde16295d6a84fadd85.tar.bz2
mpv-f1493adf5d59e353aceecdde16295d6a84fadd85.tar.xz
Hard checking versions of gcc and as
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@988 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure55
1 files changed, 52 insertions, 3 deletions
diff --git a/configure b/configure
index bd73810113..49c76df7a2 100755
--- a/configure
+++ b/configure
@@ -6,6 +6,9 @@
#
# Changes in reversed order:
#
+# 2001/06/04 by Nick Kurshev
+# - added hard checking of gcc and soft of assembler
+#
# 2001/05/40 by LGB
# - added --prefix support
#
@@ -188,6 +191,20 @@ do
esac
done
+# Checking CC version...
+echo "checking version of $CC""... $_cc"
+cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
+case $cc_version in
+ '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;;
+ 2.95.[2-9]|3.[0-9])
+ cc_version="$cc_version, ok";;
+ *) cc_version="$cc_version, bad"; cc_verc_fail=yes;;
+esac
+echo "$cc_version"
+if ! test -z "$cc_verc_fail"; then
+echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version"
+exit
+fi
# ---
pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
@@ -730,6 +747,41 @@ do
esac
done
+# Checking as compatibility...
+if [ $_mmx = 'yes' ]; then
+cat > astest.S <<EOF
+emms
+EOF
+as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
+fi
+if [ $_3dnow = 'yes' ]; then
+cat >> astest.S <<EOF
+femms
+EOF
+as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
+fi
+if [ $_mmx2 = 'yes' ]; then
+cat >> astest.S <<EOF
+movntq %mm0, (%eax)
+EOF
+as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
+fi
+if [ $_sse = 'yes' ]; then
+cat >> astest.S <<EOF
+xorps %xmm0, %xmm0
+EOF
+as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
+rm -f astest.S astest.o
+fi
+if test -z "$as_verc_fail"; then
+echo "checking assembler...o'k"
+fi
+if ! test -z "$as_verc_fail"; then
+echo "Please upgrade binutils..."
+exit
+fi
+
+
if [ $_x11 = 'yes' ]; then
if [ $_mga = 'yes' ]; then
_xmga=yes
@@ -739,10 +791,7 @@ fi
# to screen.
echo -n "Kernel: "
uname -a
-echo "Using C compiler: $_cc"
echo "Install prefix: $_prefix"
-$_cc -v
-as --version | head -n 1
echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
echo "Checking for cpu type ... $pname"
echo "Optimizing to ... $proc"