ICU-6270 Update configure script for proper 64 bit detection on Sun Studio.
X-SVN-Rev: 23876
This commit is contained in:
parent
672be8cef5
commit
4cc15e959f
20
icu4c/source/configure
vendored
20
icu4c/source/configure
vendored
@ -3063,11 +3063,21 @@ fi
|
|||||||
case "${host}" in
|
case "${host}" in
|
||||||
sparc*-*-solaris*)
|
sparc*-*-solaris*)
|
||||||
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
|
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
|
||||||
SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
|
SOL64=`$CXX -m64 2>&1 && $CC -m64 2>&1 | grep -v usage:`
|
||||||
if test -z "$SOL64" && test -n "$SPARCV9"; then
|
if test -n "$SOL64"; then
|
||||||
CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
|
SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
|
||||||
CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
|
if test -z "$SOL64" && test -n "$SPARCV9"; then
|
||||||
LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
|
CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
|
||||||
|
CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
|
||||||
|
LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
|
||||||
|
ENABLE_64BIT_LIBS=yes
|
||||||
|
else
|
||||||
|
ENABLE_64BIT_LIBS=no
|
||||||
|
fi
|
||||||
|
elif test -z "$SOL64" && test -n "$SPARCV9"; then
|
||||||
|
CFLAGS="${CFLAGS} -xtarget=ultra -xarch=sparc -m64"
|
||||||
|
CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=sparc -m64"
|
||||||
|
LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=sparc -m64"
|
||||||
ENABLE_64BIT_LIBS=yes
|
ENABLE_64BIT_LIBS=yes
|
||||||
else
|
else
|
||||||
ENABLE_64BIT_LIBS=no
|
ENABLE_64BIT_LIBS=no
|
||||||
|
Loading…
Reference in New Issue
Block a user