./common/autoconf/platform.m4

Print this page
rev 656 : [mq]: zero-newbuild


 315     fi
 316     AC_SUBST(OPENJDK_TARGET_OS_API_DIR)
 317 
 318     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
 319         A_LP64="LP64:="
 320         # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 
 321         # unpack200.exe
 322         if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 323             ADD_LP64="-D_LP64=1"
 324         fi
 325     fi
 326     AC_SUBST(LP64,$A_LP64)
 327 
 328     if test "x$COMPILE_TYPE" = "xcross"; then
 329       # FIXME: ... or should this include reduced builds..?
 330       DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
 331     else
 332       DEFINE_CROSS_COMPILE_ARCH=""
 333     fi
 334     AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)























 335 ])
 336 
 337 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 338 [
 339     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 340        REQUIRED_OS_NAME=SunOS
 341        REQUIRED_OS_VERSION=5.10
 342     fi
 343     if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 344        REQUIRED_OS_NAME=Linux
 345        REQUIRED_OS_VERSION=2.6
 346     fi
 347     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 348         REQUIRED_OS_NAME=Windows
 349         if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 350             REQUIRED_OS_VERSION=5.2
 351         else
 352             REQUIRED_OS_VERSION=5.1
 353         fi
 354     fi




 315     fi
 316     AC_SUBST(OPENJDK_TARGET_OS_API_DIR)
 317 
 318     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
 319         A_LP64="LP64:="
 320         # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 
 321         # unpack200.exe
 322         if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 323             ADD_LP64="-D_LP64=1"
 324         fi
 325     fi
 326     AC_SUBST(LP64,$A_LP64)
 327 
 328     if test "x$COMPILE_TYPE" = "xcross"; then
 329       # FIXME: ... or should this include reduced builds..?
 330       DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
 331     else
 332       DEFINE_CROSS_COMPILE_ARCH=""
 333     fi
 334     AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
 335 
 336     # Some Zero and Shark settings.
 337     # ZERO_ARCHFLAG tells the compiler which mode to build for
 338     case "${OPENJDK_TARGET_CPU}" in
 339       s390)
 340         ZERO_ARCHFLAG="-m31"
 341         ;;
 342       *)
 343         ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
 344     esac
 345     AC_SUBST(ZERO_ARCHFLAG)
 346 
 347     # ZERO_ARCHDEF is used to enable architecture-specific code
 348     case "${OPENJDK_TARGET_CPU}" in
 349       ppc*)    ZERO_ARCHDEF=PPC   ;;
 350       s390*)   ZERO_ARCHDEF=S390  ;;
 351       sparc*)  ZERO_ARCHDEF=SPARC ;;
 352       x86_64*) ZERO_ARCHDEF=AMD64 ;;
 353       x86)     ZERO_ARCHDEF=IA32  ;;
 354       *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
 355     esac
 356     AC_SUBST(ZERO_ARCHDEF)
 357 
 358 ])
 359 
 360 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 361 [
 362     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 363        REQUIRED_OS_NAME=SunOS
 364        REQUIRED_OS_VERSION=5.10
 365     fi
 366     if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 367        REQUIRED_OS_NAME=Linux
 368        REQUIRED_OS_VERSION=2.6
 369     fi
 370     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 371         REQUIRED_OS_NAME=Windows
 372         if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 373             REQUIRED_OS_VERSION=5.2
 374         else
 375             REQUIRED_OS_VERSION=5.1
 376         fi
 377     fi