Skip to contentSkip to conversation

configure: Detect predefined compiler symbols for ARM and HPPA

PATCH In review Brad 1 participant 3 messages Sep 26, 2011 – Oct 2, 2011

lore
Share & tools
lore

Brad

author
#0 lore raw

PATCH 1/1 configure: Detect predefined compiler symbols for ARM and HPPA

configure: Detect predefined compiler symbols for ARM and HPPA

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 c7948b6..3bc6904 100755
@@ -284,6 +284,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
@@ -304,7 +310,7 @@ case "$cpu" in
   armv*l)
     cpu="armv4l"
   ;;
-  parisc|parisc64)
+  hppa|parisc|parisc64)
     cpu="hppa"
   ;;
   mips*)
Signature · 7 lines
1.7.6


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

configure: Detect predefined compiler symbols for ARM and HPPA

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 c7948b6..3bc6904 100755
@@ -284,6 +284,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
@@ -304,7 +310,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.
author
#2 lore raw
Quoted 9 lines · Brad
Quoted 6 lines · Brad

configure: Detect predefined compiler symbols for ARM and HPPA

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

ping.

nm. looking now I see it was commited yesterday.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.