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 2 of 2] Add config shell override option


# HG changeset patch
# User Bart vdr. Meulen <bartvdrmeulen@gmail.com>
# Date 1249224337 -7200
# Node ID 40e69fbd288ec6cd9bfaaee1228212c1a8169e3c
# Parent  f04c7879f3c2d38cc4aa317532c24395fc0e760a
Add config shell override option

Add config option to override the shell used in configuration
script making it possible to build on an Ubuntu host without
overriding the default shell (dash)

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>

---

diff -r f04c7879f3c2 -r 40e69fbd288e config/global/build-behave.in
--- a/config/global/build-behave.in	Sun Aug 02 16:45:33 2009 +0200
+++ b/config/global/build-behave.in	Sun Aug 02 16:45:37 2009 +0200
@@ -56,4 +56,13 @@
       
       Saying 'y' here should be safe enough, but some components may not
       accept using a shell other than bash (this is most probably true for
-      old versions). If you have trouble, say 'n' here and see if it fixes it.
+
+config CONFIG_SHELL_OVERRIDE
+    string
+    prompt "Use alternative as CONFIG_SHELL"
+    help
+      Enter the path for the shell to be used by ./configure scripts,
+      instead of the default /bin/sh
+      This can be usefull on Ubuntu hosts where the default is dash
+      which does not work with some configuration scripts
+
diff -r f04c7879f3c2 -r 40e69fbd288e scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in	Sun Aug 02 16:45:33 2009 +0200
+++ b/scripts/crosstool-NG.sh.in	Sun Aug 02 16:45:37 2009 +0200
@@ -62,10 +62,10 @@
 
 # What's our shell?
 # Will be plain /bin/sh on most systems, except if we have /bin/ash and we
-# _explictly_ required using it
+# _explictly_ required using it or shell is overriden
 CT_SHELL="/bin/sh"
 [ "${CT_CONFIG_SHELL_ASH}" = "y" -a -x "/bin/ash" ] && CT_SHELL="/bin/ash"
-
+[ "${CT_CONFIG_SHELL_OVERRIDE}" != "" -a "${CT_CONFIG_SHELL_OVERRIDE}" ] && CT_SHELL="${CT_CONFIG_SHELL_OVERRIDE}" 
 # Create the bin-overide early
 # Contains symlinks to the tools found by ./configure
 # Note: CT_DoLog and CT_DoExecLog do not use any of those tool, so



--
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]