1 #
2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
703 -e ' /^21\.0\./b bad' \
704 -e '}' \
705 -e ':good' \
706 -e 's/.*/VALID_VERSION/p' \
707 -e 'q' \
708 -e ':bad' \
709 -e 's/.*/BAD_VERSION/p' \
710 -e 'q'` ]
711 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then
712 OBJCOPY=
713 AC_MSG_WARN([Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated.])
714 AC_MSG_NOTICE([objcopy reports version $OBJCOPY_VERSION])
715 AC_MSG_NOTICE([Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version])
716 AC_MSG_NOTICE([Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version])
717 AC_MSG_NOTICE([Note: Solaris 11 Update 1 contains the correct version])
718 fi
719 fi
720 fi
721 fi
722
723 BASIC_CHECK_TOOLS(OBJDUMP, [gobjdump objdump])
724 if test "x$OBJDUMP" != x; then
725 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE
726 # bails if argument is missing.
727 BASIC_FIXUP_EXECUTABLE(OBJDUMP)
728 fi
729 ])
730
731 # Setup the build tools (i.e, the compiler and linker used to build programs
732 # that should be run on the build platform, not the target platform, as a build
733 # helper). Since the non-cross-compile case uses the normal, target compilers
734 # for this, we can only do this after these have been setup.
735 AC_DEFUN_ONCE([TOOLCHAIN_SETUP_BUILD_COMPILERS],
736 [
737 if test "x$COMPILE_TYPE" = "xcross"; then
738 # Now we need to find a C/C++ compiler that can build executables for the
739 # build platform. We can't use the AC_PROG_CC macro, since it can only be
740 # used once. Also, we need to do this without adding a tools dir to the
741 # path, otherwise we might pick up cross-compilers which don't use standard
742 # naming.
743
744 OLDPATH="$PATH"
745
746 AC_ARG_WITH(build-devkit, [AS_HELP_STRING([--with-build-devkit],
747 [Devkit to use for the build platform toolchain])])
748 if test "x$with_build_devkit" = "xyes"; then
|
1 #
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
703 -e ' /^21\.0\./b bad' \
704 -e '}' \
705 -e ':good' \
706 -e 's/.*/VALID_VERSION/p' \
707 -e 'q' \
708 -e ':bad' \
709 -e 's/.*/BAD_VERSION/p' \
710 -e 'q'` ]
711 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then
712 OBJCOPY=
713 AC_MSG_WARN([Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated.])
714 AC_MSG_NOTICE([objcopy reports version $OBJCOPY_VERSION])
715 AC_MSG_NOTICE([Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version])
716 AC_MSG_NOTICE([Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version])
717 AC_MSG_NOTICE([Note: Solaris 11 Update 1 contains the correct version])
718 fi
719 fi
720 fi
721 fi
722
723 case $TOOLCHAIN_TYPE in
724 gcc|clang|solstudio)
725 BASIC_CHECK_TOOLS(OBJDUMP, [gobjdump objdump])
726 BASIC_FIXUP_EXECUTABLE(OBJDUMP)
727 ;;
728 esac
729 case $TOOLCHAIN_TYPE in
730 gcc|clang)
731 BASIC_CHECK_TOOLS(CXXFILT, [c++filt])
732 BASIC_FIXUP_EXECUTABLE(CXXFILT)
733 ;;
734 esac
735 ])
736
737 # Setup the build tools (i.e, the compiler and linker used to build programs
738 # that should be run on the build platform, not the target platform, as a build
739 # helper). Since the non-cross-compile case uses the normal, target compilers
740 # for this, we can only do this after these have been setup.
741 AC_DEFUN_ONCE([TOOLCHAIN_SETUP_BUILD_COMPILERS],
742 [
743 if test "x$COMPILE_TYPE" = "xcross"; then
744 # Now we need to find a C/C++ compiler that can build executables for the
745 # build platform. We can't use the AC_PROG_CC macro, since it can only be
746 # used once. Also, we need to do this without adding a tools dir to the
747 # path, otherwise we might pick up cross-compilers which don't use standard
748 # naming.
749
750 OLDPATH="$PATH"
751
752 AC_ARG_WITH(build-devkit, [AS_HELP_STRING([--with-build-devkit],
753 [Devkit to use for the build platform toolchain])])
754 if test "x$with_build_devkit" = "xyes"; then
|