scripts/crosstool-NG.sh.in
changeset 1444 8f6a793dc5b5
parent 1426 cb3b1f427968
child 1445 9f7946c892da
     1.1 --- a/scripts/crosstool-NG.sh.in	Fri Jun 26 19:09:22 2009 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Sun Aug 02 23:43:15 2009 +0200
     1.3 @@ -63,8 +63,13 @@
     1.4  # What's our shell?
     1.5  # Will be plain /bin/sh on most systems, except if we have /bin/ash and we
     1.6  # _explictly_ required using it
     1.7 -CT_SHELL="/bin/sh"
     1.8 -[ "${CT_CONFIG_SHELL_ASH}" = "y" -a -x "/bin/ash" ] && CT_SHELL="/bin/ash"
     1.9 +case "${CT_CONFIG_SHELL}" in
    1.10 +    sh)     CT_SHELL="/bin/sh";;
    1.11 +    ash)    CT_SHELL="/bin/ash";;
    1.12 +esac
    1.13 +
    1.14 +# Check the user is using an existing SHELL to be used by ./configure and Makefiles
    1.15 +CT_TestOrAbort "The CONFIG_SHELL '${CT_CONFIG_SHELL}' (${CT_SHELL}) is not valid" -f "${CT_SHELL}" -a -x "${CT_SHELL}"
    1.16  
    1.17  # Create the bin-overide early
    1.18  # Contains symlinks to the tools found by ./configure
    1.19 @@ -452,7 +457,8 @@
    1.20  
    1.21      # Set the shell to be used by ./configure scripts and by Makefiles (those
    1.22      # that support it!).
    1.23 -    export CONFIG_SHELL="${CT_SHELL}"
    1.24 +    export CONFIG_SHELL="${CT_SHELL}"   # for ./configure
    1.25 +    export SHELL="${CT_SHELL}"          # for Makefiles
    1.26  
    1.27      # And help make go faster
    1.28      PARALLELMFLAGS=