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

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

Fix host selection

---

 configure    |   11 +++++++++--
 configure.in |   11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 4a80298..27f078e 100755
--- a/configure
+++ b/configure
@@ -12303,7 +12303,14 @@ fi
 echo $ECHO_N "checking for target architecture... $ECHO_C" >&6; }
 
 CONFIG_XENO_FASTSYNCH=
-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
@@ -12343,7 +12350,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 c333489..262aa6e 100644
--- a/configure.in
+++ b/configure.in
@@ -60,7 +60,14 @@ AM_PROG_LEX
 AC_MSG_CHECKING([for target architecture])
 
 CONFIG_XENO_FASTSYNCH=
-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
@@ -100,7 +107,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