< prev index next >

common/autoconf/platform.m4

Print this page
@  rev 1284 : 8067330: ZERO_ARCHDEF incorrectly defined for PPC/PPC64 architectures
|


 348   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
 349     A_LP64="LP64:="
 350     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
 351     # unpack200.exe
 352     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 353       ADD_LP64="-D_LP64=1"
 354     fi
 355   fi
 356   AC_SUBST(LP64,$A_LP64)
 357 
 358   if test "x$COMPILE_TYPE" = "xcross"; then
 359     # FIXME: ... or should this include reduced builds..?
 360     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
 361   else
 362     DEFINE_CROSS_COMPILE_ARCH=""
 363   fi
 364   AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
 365 
 366   # ZERO_ARCHDEF is used to enable architecture-specific code
 367   case "${OPENJDK_TARGET_CPU}" in
 368     ppc*)    ZERO_ARCHDEF=PPC   ;;

 369     s390*)   ZERO_ARCHDEF=S390  ;;
 370     sparc*)  ZERO_ARCHDEF=SPARC ;;
 371     x86_64*) ZERO_ARCHDEF=AMD64 ;;
 372     x86)     ZERO_ARCHDEF=IA32  ;;
 373     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
 374   esac
 375   AC_SUBST(ZERO_ARCHDEF)
 376 ])
 377 
 378 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 379 [
 380   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 381     REQUIRED_OS_NAME=SunOS
 382     REQUIRED_OS_VERSION=5.10
 383   fi
 384   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 385     REQUIRED_OS_NAME=Linux
 386     REQUIRED_OS_VERSION=2.6
 387   fi
 388   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then




 348   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
 349     A_LP64="LP64:="
 350     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
 351     # unpack200.exe
 352     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 353       ADD_LP64="-D_LP64=1"
 354     fi
 355   fi
 356   AC_SUBST(LP64,$A_LP64)
 357 
 358   if test "x$COMPILE_TYPE" = "xcross"; then
 359     # FIXME: ... or should this include reduced builds..?
 360     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
 361   else
 362     DEFINE_CROSS_COMPILE_ARCH=""
 363   fi
 364   AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
 365 
 366   # ZERO_ARCHDEF is used to enable architecture-specific code
 367   case "${OPENJDK_TARGET_CPU}" in
 368     ppc)     ZERO_ARCHDEF=PPC32 ;;
 369     ppc64)   ZERO_ARCHDEF=PPC64 ;;
 370     s390*)   ZERO_ARCHDEF=S390  ;;
 371     sparc*)  ZERO_ARCHDEF=SPARC ;;
 372     x86_64*) ZERO_ARCHDEF=AMD64 ;;
 373     x86)     ZERO_ARCHDEF=IA32  ;;
 374     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
 375   esac
 376   AC_SUBST(ZERO_ARCHDEF)
 377 ])
 378 
 379 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 380 [
 381   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 382     REQUIRED_OS_NAME=SunOS
 383     REQUIRED_OS_VERSION=5.10
 384   fi
 385   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 386     REQUIRED_OS_NAME=Linux
 387     REQUIRED_OS_VERSION=2.6
 388   fi
 389   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then


< prev index next >