509 AC_SUBST(OPENJDK_MODULE_TARGET_PLATFORM)
510 ])
511
512 #%%% Build and target systems %%%
513 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
514 [
515 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
516 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the
517 # product you're building. The target of this build is called "host". Since this is confusing to most people, we
518 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
519 # to use the configure naming style.
520 AC_CANONICAL_BUILD
521 AC_CANONICAL_HOST
522 AC_CANONICAL_TARGET
523
524 PLATFORM_EXTRACT_TARGET_AND_BUILD
525 PLATFORM_SETUP_TARGET_CPU_BITS
526 PLATFORM_SET_MODULE_TARGET_OS_VALUES
527 PLATFORM_SET_RELEASE_FILE_OS_VALUES
528 PLATFORM_SETUP_LEGACY_VARS
529 ])
530
531 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
532 [
533 ###############################################################################
534
535 # Note that this is the build platform OS version!
536
537 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
538 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
539 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
540 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
541 AC_SUBST(OS_VERSION_MAJOR)
542 AC_SUBST(OS_VERSION_MINOR)
543 AC_SUBST(OS_VERSION_MICRO)
544 ])
545
546 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_TARGET_BITS],
547 [
548 ###############################################################################
|
509 AC_SUBST(OPENJDK_MODULE_TARGET_PLATFORM)
510 ])
511
512 #%%% Build and target systems %%%
513 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
514 [
515 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
516 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the
517 # product you're building. The target of this build is called "host". Since this is confusing to most people, we
518 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
519 # to use the configure naming style.
520 AC_CANONICAL_BUILD
521 AC_CANONICAL_HOST
522 AC_CANONICAL_TARGET
523
524 PLATFORM_EXTRACT_TARGET_AND_BUILD
525 PLATFORM_SETUP_TARGET_CPU_BITS
526 PLATFORM_SET_MODULE_TARGET_OS_VALUES
527 PLATFORM_SET_RELEASE_FILE_OS_VALUES
528 PLATFORM_SETUP_LEGACY_VARS
529
530 # Deprecated in JDK 15
531 UTIL_DEPRECATED_ARG_ENABLE(deprecated-ports)
532 ])
533
534 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
535 [
536 ###############################################################################
537
538 # Note that this is the build platform OS version!
539
540 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
541 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
542 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
543 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
544 AC_SUBST(OS_VERSION_MAJOR)
545 AC_SUBST(OS_VERSION_MINOR)
546 AC_SUBST(OS_VERSION_MICRO)
547 ])
548
549 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_TARGET_BITS],
550 [
551 ###############################################################################
|