From 931824e42f643b85d43b1e2ce9c1c6aca0e0cfa9 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Wed, 10 Sep 2003 13:45:57 +0000
Subject: [PATCH] fix platform autodetection on Windows.

git-svn-id: http://root.cern.ch/svn/root/trunk@7248 27541ba8-7e3a-0410-8455-c3a389f83636
---
 configure | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure b/configure
index 23d43b7a9af..33049da3971 100755
--- a/configure
+++ b/configure
@@ -343,7 +343,7 @@ guess_architecture () {
     # If a user really want a specifific compiler, s/he better use the
     # first argument to do so.
     arch=`uname -s | tr '[A-Z]' '[a-z]'`
-    chip=`uname -m`
+    chip=`uname -m | tr '[A-Z]' '[a-z]'`
     rele=`uname -r`
     case "$arch:$chip:$rele" in
         aix*)                  arch=aix5            ;;
@@ -360,15 +360,14 @@ guess_architecture () {
         linux:ppc*:*)          arch=linuxppcegcs    ;;
         linux:i*86:*)          arch=linux           ;;
         lynx:*:*)              arch=lynxos          ;;
-        darwin:Power*:*)       arch=macosx          ;;
-        darwin:powerpc:*)      arch=macosx          ;;
+        darwin:power*:*)       arch=macosx          ;;
         irix*:sgi*:*)          arch=sgicc           ;;
         sunos:sun*:6*)         arch=solarisCC5      ;;
         sunos:sun*:5*)         arch=solarisCC5      ;;
         sunos:sun*:4*)         arch=solaris         ;;
-        windows_*:*86:*)       arch=win32gdk        ;;
-        windows_*:pentium:*)   arch=win32gdk        ;;
-        windows_*:ia64)        arch=win32gdk        ;;
+        cygwin_*:*86:*)        arch=win32gdk        ;;
+        cygwin_*:pentium:*)    arch=win32gdk        ;;
+        cygwin_*:ia64)         arch=win32gdk        ;;
         *)
             echo "Attempts at guessing your architecture failed."
             echo "Please specify the architecture as the first argument."
-- 
GitLab