[MPlayer-cvslog] r34921 - trunk/configure
reimar
subversion at mplayerhq.hu
Fri May 18 20:30:35 CEST 2012
Author: reimar
Date: Fri May 18 20:30:35 2012
New Revision: 34921
Log:
More robust detection of SPARC CPUs.
Should also make it possible to cross-compile e.g.
a 32-bit SPARC build on SPARC64 by using -m32.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Fri May 18 19:26:05 2012 (r34920)
+++ trunk/configure Fri May 18 20:30:35 2012 (r34921)
@@ -270,6 +270,13 @@ ppc() {
esac
}
+sparc() {
+ case "$host_arch" in
+ sparc*) return 0;;
+ *) return 1;;
+ esac
+}
+
alpha() {
case "$host_arch" in
alpha*) return 0;;
@@ -1510,8 +1517,7 @@ if test -z "$_target" ; then
ia64) host_arch=ia64 ;;
macppc|ppc*|Power*) host_arch=ppc ;;
alpha) host_arch=alpha ;;
- sparc) host_arch=sparc ;;
- sparc64) host_arch=sparc64 ;;
+ sun4*|sparc*) host_arch=sparc ;;
parisc*|hppa*|9000*) host_arch=hppa ;;
arm*|zaurus|cats) host_arch=arm ;;
sh3|sh4|sh4a) host_arch=sh ;;
@@ -1720,6 +1726,9 @@ fi
if ppc ; then
cc_check && host_arch=ppc64 || host_arch=ppc
fi
+if sparc ; then
+ cc_check && host_arch=sparc64 || host_arch=sparc
+fi
fi
echo "Detected operating system: $system_name"
More information about the MPlayer-cvslog
mailing list