Skip to contentSkip to conversation

Use predefined compiler symbols to try and detect ARM or HPPA systems.

PATCH Applied Brad 2 participants 3 messages May 26, 2011 – Jun 16, 2011

lore
Share & tools
lore

Brad

author
#0 lore raw

PATCH 3/3 Use predefined compiler symbols to try and detect ARM or HPPA systems.

Use predefined compiler symbols to try and detect ARM or HPPA systems to be able to detect some ARM / HPPA based architectures such as with OpenBSD/(armish / zaurus) or OpenBSD/hppa.

---
 configure |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
configure +7 -1
index a318d37..97b28f8 100755
@@ -280,6 +280,12 @@ elif check_define __s390__ ; then
   else
     cpu="s390"
   fi
+elif check_define __ARMEB__ ; then
+  cpu="armv4b"
+elif check_define __ARMEL__ ; then
+  cpu="armv4l"
+elif check_define __hppa__ ; then
+  cpu="hppa"
 else
   cpu=`uname -m`
 fi
@@ -300,7 +306,7 @@ case "$cpu" in
   armv*l)
     cpu="armv4l"
   ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
     cpu="hppa"
   ;;
   mips*)
Signature · 6 lines
1.7.5

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
author
#1 lore raw
Quoted 5 lines · Brad

Use predefined compiler symbols to try and detect ARM or HPPA systems to be able to detect some ARM / HPPA based architectures such as with OpenBSD/(armish / zaurus) or OpenBSD/hppa.

ping.

Quoted 30 lines
---
  configure |    8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)
configure +7 -1
index a318d37..97b28f8 100755
@@ -280,6 +280,12 @@ elif check_define __s390__ ; then
    else
      cpu="s390"
    fi
+elif check_define __ARMEB__ ; then
+  cpu="armv4b"
+elif check_define __ARMEL__ ; then
+  cpu="armv4l"
+elif check_define __hppa__ ; then
+  cpu="hppa"
  else
    cpu=`uname -m`
  fi
@@ -300,7 +306,7 @@ case "$cpu" in
    armv*l)
      cpu="armv4l"
    ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
      cpu="hppa"
    ;;
    mips*)
Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#2 lore raw
In reply to Brad

Am 26.05.2011 um 05:06 schrieb Brad:

Quoted 1 line

Use predefined compiler symbols to try and detect ARM or HPPA systems

Subject could be sth. like: "configure: Detect predefined compiler symbols for ARM and HPPA" No need to duplicate the first half of the sentence. Otherwise looks okay, untested.

Andreas

Quoted 44 lines

to be able to detect some ARM / HPPA based architectures such as with OpenBSD/(armish / zaurus) or OpenBSD/hppa.

---
configure | 8 +++++++-

1 files changed, 7 insertions(+), 1 deletions(-)
configure +6 -0
index a318d37..97b28f8 100755
@@ -280,6 +280,12 @@ elif check_define __s390__ ; then
  else
    cpu="s390"
  fi
+elif check_define __ARMEB__ ; then
+  cpu="armv4b"
+elif check_define __ARMEL__ ; then
+  cpu="armv4l"
+elif check_define __hppa__ ; then
+  cpu="hppa"

else
cpu=uname -m
fi

configure +1 -1
@@ -300,7 +306,7 @@ case "$cpu" in
  armv*l)
    cpu="armv4l"
  ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
    cpu="hppa"
  ;;
  mips*)
Signature · 6 lines
1.7.5

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.