Move the definition of the upper() utility function up to
the top of the script, so that it's available to any code that
wants to use it.

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
 configure |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index c674d39..d9dfde0 100755
--- a/configure
+++ b/configure
@@ -27,6 +27,10 @@ printf " '%s'" "$0" "$@" >> config.log
 echo >> config.log
 echo "#" >> config.log
 
+upper() {
+    echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
+}
+
 error_exit() {
     echo
     echo "ERROR: $1"
@@ -4055,10 +4059,6 @@ fi
 
 symlink "$source_path/Makefile.target" "$target_dir/Makefile"
 
-upper() {
-    echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
-}
-
 case "$cpu" in
   i386|x86_64|ppc)
     # The TCG interpreter currently does not support ld/st optimization.
-- 
1.7.9.5


Reply via email to