This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1 of 4 v2] configure: check host system


 configure |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1309274702 -7200
# Node ID 355696b27bc33908a25bade22d917ce6fa99da5d
# Parent  aa833630f29c780332bc43b87e03a49b37bd700a
configure: check host system

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -435,6 +435,25 @@
 has_or_abort prog=readelf var=readelf
 has_or_abort prog=patch var=patch
 
+# Host system checks
+
+printf "Checking for host system... "
+host="$( uname -s )"
+printf "%s\n" "${host}"
+case "${host}" in
+    Linux)  ;;
+    Cygwin) ;;
+    Darwin)
+        printf " * Runing under Darwin is not fully supported\n"
+        printf " * Although not strictly required, using MacPorts is highly recommended\n"
+        printf " * Even though, you may encounter some weird behavior\n"
+        ;;
+    *)
+        printf " * Runing under %s is not fully tested\n" "${host}"
+        printf " * You may encounter some weird behavior\n"
+        ;;
+esac
+
 ncurses_hdrs="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"
 ncurses_libs="$( for l in ncursesw ncurses curses; do   \
                      for x in so a dylib; do            \

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]