Patchwork configure: Detect predefined compiler symbols for ARM and HPPA

login
register
mail settings
Submitter Brad
Date Sept. 26, 2011, 6:57 p.m.
Message ID <20110926185750.GB30627@rox.home.comstyle.com>
Download mbox | patch
Permalink /patch/116467/
State New
Headers show

Comments

Brad - Sept. 26, 2011, 6:57 p.m.
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.

Signed-off-by: Brad Smith <brad@comstyle.com>

---
 configure |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
Brad - Oct. 2, 2011, 9:28 p.m.
On 26/09/11 2:57 PM, Brad wrote:
> 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.
>
> Signed-off-by: Brad Smith<brad@comstyle.com>

ping.

> ---
>   configure |    8 +++++++-
>   1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index c7948b6..3bc6904 100755
> --- a/configure
> +++ b/configure
> @@ -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*)
Brad - Oct. 2, 2011, 9:31 p.m.
On 02/10/11 5:28 PM, Brad wrote:
> On 26/09/11 2:57 PM, Brad wrote:
>> 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.
>>
>> Signed-off-by: Brad Smith<brad@comstyle.com>
>
> ping.

nm. looking now I see it was commited yesterday.

Patch

diff --git a/configure b/configure
index c7948b6..3bc6904 100755
--- a/configure
+++ b/configure
@@ -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*)