From 7e8bdad1780567adf32eba1fb2bfc7e2051b4ccf Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Wed, 28 May 2008 23:50:35 +0000 Subject: [PATCH] ICU-6241 check for using native assemble w/ gcc. X-SVN-Rev: 24062 --- icu4c/source/configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/icu4c/source/configure.in b/icu4c/source/configure.in index 9e36abbe6dd..e799dea832c 100644 --- a/icu4c/source/configure.in +++ b/icu4c/source/configure.in @@ -1,6 +1,6 @@ dnl -*-m4-*- dnl configure.in for ICU -dnl Copyright (c) 1999-2007, International Business Machines Corporation and +dnl Copyright (c) 1999-2008, International Business Machines Corporation and dnl others. All Rights Reserved. dnl Stephen F. Booth, heavily modified by Yves and others @@ -425,8 +425,15 @@ i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu) fi ;; i*86-*-solaris*) if test "$GCC" = yes; then - dnl We're using gcc, and the simple -a gcc command line works for genccode - GENCCODE_ASSEMBLY="-a gcc" + dnl When using gcc, look if we're also using GNU as. + dnl When using GNU as, the simple -a gcc command line works for genccode. + asv=`"${CC}" -print-prog-name=as 2>/dev/null` + asv=`"${asv}" --version 2>/dev/null` + case "X${asv}" in + X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; + X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; + esac + unset asv else GENCCODE_ASSEMBLY="-a sun-x86" fi ;;