Module: xenomai-2.4
Branch: master
Commit: d9f252a586b4f1b958fb48bae1ec999710016751
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=d9f252a586b4f1b958fb48bae1ec999710016751

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri May 29 16:06:55 2009 +0200

Fix host selection

---

 configure    |   10 ++++++++--
 configure.in |   10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index cc932bf..48079c2 100755
--- a/configure
+++ b/configure
@@ -12297,7 +12297,13 @@ fi
 { echo "$as_me:$LINENO: checking for target architecture" >&5
 echo $ECHO_N "checking for target architecture... $ECHO_C" >&6; }
 
-case "$host_alias" in
+if test x$host_alias = x; then
+  build_for=$host
+else
+  build_for=$host_alias
+fi
+
+case "$build_for" in
  i*86*-*)
        XENO_TARGET_ARCH=x86
         XENO_LINUX_ARCH=i386
@@ -12336,7 +12342,7 @@ case "$host_alias" in
         ;;
  *) echo ""
    echo "*******************************************"
-   echo "Still unsupported target: $host_alias -- Sorry."
+   echo "Still unsupported target: $build_for -- Sorry."
    echo "*******************************************"
    echo ""
    exit 1;;
diff --git a/configure.in b/configure.in
index 2e0d124..c16a1ef 100644
--- a/configure.in
+++ b/configure.in
@@ -59,7 +59,13 @@ AM_PROG_LEX
 
 AC_MSG_CHECKING([for target architecture])
 
-case "$host_alias" in
+if test x$host_alias = x; then
+  build_for=$host
+else
+  build_for=$host_alias
+fi
+
+case "$build_for" in
  i*86*-*)
        XENO_TARGET_ARCH=x86
         XENO_LINUX_ARCH=i386
@@ -98,7 +104,7 @@ case "$host_alias" in
         ;;
  *) echo ""
    echo "*******************************************"
-   echo "Still unsupported target: $host_alias -- Sorry."
+   echo "Still unsupported target: $build_for -- Sorry."
    echo "*******************************************"
    echo ""
    exit 1;;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to