Received: from eggs.gnu.org ([208.118.235.92]:59136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGA2D-0003af-Ei for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGA25-00033Z-Ff for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:37 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:32823 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGA25-00031s-A3 for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:29 -0400 From: Peter Maydell Date: Thu, 14 Mar 2013 15:25:19 +0000 Message-Id: <1363274720-22535-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1363274720-22535-1-git-send-email-peter.maydell@linaro.org> References: <1363274720-22535-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/3] configure: Move upper() up so it's available earlier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , patches@linaro.org 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 --- 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