[mythtv-commits] Ticket #5769: configure needs cleaning up for Solaris.
MythTV
mythtv at cvs.mythtv.org
Sun Oct 5 21:32:10 UTC 2008
#5769: configure needs cleaning up for Solaris.
------------------------------------+---------------------------------------
Reporter: edwardoc at blastwave.org | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------
Here is my unified patch.
[edward at opensolaris0805:mythtv]> diff -u configure configure.sol
--- configure Sun Oct 5 22:29:04 2008
+++ configure.sol Sun Oct 5 22:21:08 2008
@@ -1123,6 +1123,7 @@
fi
# machine
+# uname -m prints the "name of the hardware type" and not the hardware
type its self. See OpenGroup SUS standard.
arch=`uname -m`
arch_raw="$arch"
cpu="generic"
@@ -1139,6 +1140,21 @@
processor_flags=`cat /proc/cpuinfo | grep "flags" | head -n 1`
fi
+# Solaris. Workaround some bad Linux assumptions for uname -m
+if [ "`uname -s`" = "SunOS" ]; then
+ if [ "`isainfo -b`" = "64" ]; then
+ arch="x86_64"
+ else
+ arch="x86_32"
+ fi
+ arch_raw="$arch"
+ if test x"$processor" = x"" -o x"$processor" = x"$arch_raw" -o \
+ x"$processor" = x"unknown" ; then
+ processor=`psrinfo -vp | sed 's/^[ \t]*//' | tail -1`
+ fi
+ processor_flags=`isainfo -x | cut -d ":" -f2 | head -n 1`
+fi
+
# Mac OS X equivalent
if test -f /usr/bin/hostinfo ; then
if test x"$processor" = x"" -o x"$processor" = x"$arch_raw" -o \
Thanks,
Edward O'Callaghan.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5769>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list