< prev index next >

make/autoconf/platform.m4

Print this page

639   AC_SUBST(OPENJDK_MODULE_TARGET_PLATFORM)
640 ])
641 
642 #%%% Build and target systems %%%
643 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
644 [
645   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
646   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
647   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
648   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
649   # to use the configure naming style.
650   AC_CANONICAL_BUILD
651   AC_CANONICAL_HOST
652   AC_CANONICAL_TARGET
653 
654   PLATFORM_EXTRACT_TARGET_AND_BUILD
655   PLATFORM_SETUP_TARGET_CPU_BITS
656   PLATFORM_SET_MODULE_TARGET_OS_VALUES
657   PLATFORM_SET_RELEASE_FILE_OS_VALUES
658   PLATFORM_SETUP_LEGACY_VARS
















659 ])
660 
661 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
662 [
663   ###############################################################################
664 
665   # Note that this is the build platform OS version!
666 
667   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
668   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
669   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
670   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
671   AC_SUBST(OS_VERSION_MAJOR)
672   AC_SUBST(OS_VERSION_MINOR)
673   AC_SUBST(OS_VERSION_MICRO)
674 ])
675 
676 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_TARGET_BITS],
677 [
678   ###############################################################################

639   AC_SUBST(OPENJDK_MODULE_TARGET_PLATFORM)
640 ])
641 
642 #%%% Build and target systems %%%
643 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
644 [
645   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
646   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
647   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
648   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
649   # to use the configure naming style.
650   AC_CANONICAL_BUILD
651   AC_CANONICAL_HOST
652   AC_CANONICAL_TARGET
653 
654   PLATFORM_EXTRACT_TARGET_AND_BUILD
655   PLATFORM_SETUP_TARGET_CPU_BITS
656   PLATFORM_SET_MODULE_TARGET_OS_VALUES
657   PLATFORM_SET_RELEASE_FILE_OS_VALUES
658   PLATFORM_SETUP_LEGACY_VARS
659   PLATFORM_CHECK_DEPRECATION
660 ])
661 
662 AC_DEFUN_ONCE([PLATFORM_CHECK_DEPRECATION],
663 [
664   AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
665        [Suppress the error when configuring for a deprecated port @<:@no@:>@])])
666   AC_REQUIRE([PLATFORM_EXTRACT_TARGET_AND_BUILD])
667   if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
668     if test "x$enable_deprecated_ports" = "xyes"; then
669       AC_MSG_WARN([The Windows x86-32 port is deprecated and may be removed in a future release.])
670     else
671       AC_MSG_ERROR(m4_normalize([The Windows x86-32 port is deprecated and may be removed in a future release.
672         Use --enable-deprecated-ports=yes to suppress this error.]))
673     fi
674   fi
675 ])
676 
677 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
678 [
679   ###############################################################################
680 
681   # Note that this is the build platform OS version!
682 
683   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
684   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
685   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
686   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
687   AC_SUBST(OS_VERSION_MAJOR)
688   AC_SUBST(OS_VERSION_MINOR)
689   AC_SUBST(OS_VERSION_MICRO)
690 ])
691 
692 AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_TARGET_BITS],
693 [
694   ###############################################################################
< prev index next >