< prev index next >

common/autoconf/platform.m4

Print this page




 416     HOTSPOT_$1_CPU_DEFINE=PPC64
 417   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 418     HOTSPOT_$1_CPU_DEFINE=PPC64
 419 
 420   # The cpu defines below are for zero, we don't support them directly.
 421   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 422     HOTSPOT_$1_CPU_DEFINE=SPARC
 423   elif test "x$OPENJDK_$1_CPU" = xppc; then
 424     HOTSPOT_$1_CPU_DEFINE=PPC32
 425   elif test "x$OPENJDK_$1_CPU" = xs390; then
 426     HOTSPOT_$1_CPU_DEFINE=S390
 427   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 428     HOTSPOT_$1_CPU_DEFINE=S390
 429   elif test "x$OPENJDK_$1_CPU" != x; then
 430     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 431   fi
 432   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 433 
 434 ])
 435 
 436 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 437 [
 438   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 439     REQUIRED_OS_NAME=SunOS
 440     REQUIRED_OS_VERSION=5.10
 441   fi
 442   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 443     REQUIRED_OS_NAME=Linux
 444     REQUIRED_OS_VERSION=2.6
 445   fi
 446   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 447     REQUIRED_OS_NAME=Windows
 448     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 449       REQUIRED_OS_VERSION=5.2
 450     else
 451       REQUIRED_OS_VERSION=5.1
 452     fi
 453   fi
 454   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
 455     REQUIRED_OS_NAME="Mac OS X"
 456     REQUIRED_OS_VERSION=11.2
 457   fi
 458   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
 459     REQUIRED_OS_NAME=AIX
 460     REQUIRED_OS_VERSION=7.1


 461   fi
 462   REQUIRED_OS_ARCH=${OPENJDK_TARGET_CPU}
 463 
 464   AC_SUBST(REQUIRED_OS_NAME)
 465   AC_SUBST(REQUIRED_OS_ARCH)
 466   AC_SUBST(REQUIRED_OS_VERSION)
 467 ])
 468 
 469 #%%% Build and target systems %%%
 470 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
 471 [
 472   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
 473   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
 474   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
 475   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
 476   # to use the configure naming style.
 477   AC_CANONICAL_BUILD
 478   AC_CANONICAL_HOST
 479   AC_CANONICAL_TARGET
 480 
 481   PLATFORM_EXTRACT_TARGET_AND_BUILD
 482   PLATFORM_SETUP_TARGET_CPU_BITS
 483   PLATFORM_SET_RELEASE_FILE_OS_VALUES
 484   PLATFORM_SETUP_LEGACY_VARS
 485 ])
 486 
 487 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
 488 [
 489   ###############################################################################
 490 
 491   # Note that this is the build platform OS version!
 492 
 493   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
 494   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
 495   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
 496   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
 497   AC_SUBST(OS_VERSION_MAJOR)
 498   AC_SUBST(OS_VERSION_MINOR)
 499   AC_SUBST(OS_VERSION_MICRO)
 500 ])
 501 
 502 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
 503 # Add -mX to various FLAGS variables.




 416     HOTSPOT_$1_CPU_DEFINE=PPC64
 417   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 418     HOTSPOT_$1_CPU_DEFINE=PPC64
 419 
 420   # The cpu defines below are for zero, we don't support them directly.
 421   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 422     HOTSPOT_$1_CPU_DEFINE=SPARC
 423   elif test "x$OPENJDK_$1_CPU" = xppc; then
 424     HOTSPOT_$1_CPU_DEFINE=PPC32
 425   elif test "x$OPENJDK_$1_CPU" = xs390; then
 426     HOTSPOT_$1_CPU_DEFINE=S390
 427   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 428     HOTSPOT_$1_CPU_DEFINE=S390
 429   elif test "x$OPENJDK_$1_CPU" != x; then
 430     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 431   fi
 432   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 433 
 434 ])
 435 
 436 AC_DEFUN([PLATFORM_SET_MODULE_TARGET_OS_VALUES],
 437 [
 438   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
 439     OPENJDK_MODULE_TARGET_OS_NAME="macos"










 440   else
 441     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"





 442   fi
 443 
 444   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
 445     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
 446   else
 447     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
 448   fi

 449 
 450   AC_SUBST(OPENJDK_MODULE_TARGET_OS_NAME)
 451   AC_SUBST(OPENJDK_MODULE_TARGET_OS_ARCH)

 452 ])
 453 
 454 #%%% Build and target systems %%%
 455 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
 456 [
 457   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
 458   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
 459   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
 460   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
 461   # to use the configure naming style.
 462   AC_CANONICAL_BUILD
 463   AC_CANONICAL_HOST
 464   AC_CANONICAL_TARGET
 465 
 466   PLATFORM_EXTRACT_TARGET_AND_BUILD
 467   PLATFORM_SETUP_TARGET_CPU_BITS
 468   PLATFORM_SET_MODULE_TARGET_OS_VALUES
 469   PLATFORM_SETUP_LEGACY_VARS
 470 ])
 471 
 472 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
 473 [
 474   ###############################################################################
 475 
 476   # Note that this is the build platform OS version!
 477 
 478   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
 479   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
 480   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
 481   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
 482   AC_SUBST(OS_VERSION_MAJOR)
 483   AC_SUBST(OS_VERSION_MINOR)
 484   AC_SUBST(OS_VERSION_MICRO)
 485 ])
 486 
 487 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
 488 # Add -mX to various FLAGS variables.


< prev index next >