mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-5781 Add Solaris x86_64 configuration
X-SVN-Rev: 21950
This commit is contained in:
parent
01a7275228
commit
02840a5978
2 changed files with 39 additions and 5 deletions
25
icu4c/source/aclocal.m4
vendored
25
icu4c/source/aclocal.m4
vendored
|
@ -14,14 +14,14 @@ AC_DEFUN(ICU_CHECK_MH_FRAG, [
|
|||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
if test "$GCC" = yes; then
|
||||
icu_cv_host_frag=mh-solaris-gcc
|
||||
icu_cv_host_frag=mh-solaris-gcc
|
||||
else
|
||||
icu_cv_host_frag=mh-solaris
|
||||
fi ;;
|
||||
alpha*-*-linux-gnu)
|
||||
if test "$GCC" = yes; then
|
||||
icu_cv_host_frag=mh-alpha-linux-gcc
|
||||
else
|
||||
else
|
||||
icu_cv_host_frag=mh-alpha-linux-cc
|
||||
fi ;;
|
||||
powerpc*-*-linux*)
|
||||
|
@ -97,7 +97,7 @@ esac])
|
|||
dnl AC_SEARCH_LIBS_FIRST(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND
|
||||
dnl [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
|
||||
dnl Search for a library defining FUNC, then see if it's not already available.
|
||||
|
||||
|
||||
AC_DEFUN(AC_SEARCH_LIBS_FIRST,
|
||||
[AC_PREREQ([2.13])
|
||||
AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],
|
||||
|
@ -132,7 +132,7 @@ AC_DEFUN(AC_CHECK_64BIT_LIBS,
|
|||
AC_MSG_CHECKING([for 64-bit executable support])
|
||||
if test "$ENABLE_64BIT_LIBS" != no; then
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
sparc*-*-solaris*)
|
||||
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
|
||||
if test "$GCC" = yes; then
|
||||
# We could add a check for -m64 depending on the gcc version.
|
||||
|
@ -149,6 +149,23 @@ AC_DEFUN(AC_CHECK_64BIT_LIBS,
|
|||
fi
|
||||
fi
|
||||
;;
|
||||
i386-*-solaris*)
|
||||
AMD64=`isainfo -n 2>&1 | grep amd64`
|
||||
if test "$GCC" = yes; then
|
||||
# We could add a check for -m64 depending on the gcc version.
|
||||
ENABLE_64BIT_LIBS=no
|
||||
else
|
||||
SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
|
||||
if test -z "$SOL64" && test -n "$AMD64"; then
|
||||
CFLAGS="${CFLAGS} -xtarget=generic64"
|
||||
CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
|
||||
LDFLAGS="${LDFLAGS} -xtarget=generic64"
|
||||
ENABLE_64BIT_LIBS=yes
|
||||
else
|
||||
ENABLE_64BIT_LIBS=no
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
ia64-*-linux*)
|
||||
if test "$GCC" = yes; then
|
||||
# gcc compiler support
|
||||
|
|
19
icu4c/source/configure
vendored
19
icu4c/source/configure
vendored
|
@ -3004,7 +3004,7 @@ fi;
|
|||
echo $ECHO_N "checking for 64-bit executable support... $ECHO_C" >&6
|
||||
if test "$ENABLE_64BIT_LIBS" != no; then
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
sparc*-*-solaris*)
|
||||
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
|
||||
if test "$GCC" = yes; then
|
||||
# We could add a check for -m64 depending on the gcc version.
|
||||
|
@ -3021,6 +3021,23 @@ echo $ECHO_N "checking for 64-bit executable support... $ECHO_C" >&6
|
|||
fi
|
||||
fi
|
||||
;;
|
||||
i386-*-solaris*)
|
||||
AMD64=`isainfo -n 2>&1 | grep amd64`
|
||||
if test "$GCC" = yes; then
|
||||
# We could add a check for -m64 depending on the gcc version.
|
||||
ENABLE_64BIT_LIBS=no
|
||||
else
|
||||
SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
|
||||
if test -z "$SOL64" && test -n "$AMD64"; then
|
||||
CFLAGS="${CFLAGS} -xtarget=generic64"
|
||||
CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
|
||||
LDFLAGS="${LDFLAGS} -xtarget=generic64"
|
||||
ENABLE_64BIT_LIBS=yes
|
||||
else
|
||||
ENABLE_64BIT_LIBS=no
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
ia64-*-linux*)
|
||||
if test "$GCC" = yes; then
|
||||
# gcc compiler support
|
||||
|
|
Loading…
Add table
Reference in a new issue