diff options
author | Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> | 2016-08-11 15:13:46 +0200 |
---|---|---|
committer | avu <alexey.v.ushakov@gmail.com> | 2016-08-11 17:13:46 +0400 |
commit | 431d58c7859ba13865391084a14a5a1f7d41dfcd (patch) | |
tree | 33ae85222b05cc1d199858791b0c8a4cf86f7fcb | |
parent | ba7eff8d0ccc695e5957ef278f52c9ddbea6f771 (diff) | |
download | jdk8u-431d58c7859ba13865391084a14a5a1f7d41dfcd.tar.gz |
Fixing build with latest OSX and Xcode 7. (#1)jb8u112-b305jb8u112-b304jb8u112-b303jb8u112-b301jb8u112-b300
-rw-r--r-- | common/autoconf/generated-configure.sh | 22 | ||||
-rw-r--r-- | common/autoconf/toolchain.m4 | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index d3d0ccde4..f68315b 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -3672,7 +3672,7 @@ fi # -# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -3880,7 +3880,7 @@ fi #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1449096260 +DATE_WHEN_GENERATED=1466789102 ############################################################################### # @@ -19333,7 +19333,7 @@ fi # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) - if test ! "${XC_VERSION_PARTS[0]}" = "4"; then + if test ! ${XC_VERSION_PARTS[0]} -ge 4 ; then as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 fi @@ -20357,13 +20357,13 @@ $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\ else COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` # Check that this is likely to be GCC. - $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null + $COMPILER --version 2>&1 | $GREP -E "Apple LLVM version|Free Software Foundation" > /dev/null if test $? -ne 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 -$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required compiler." >&5 +$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required compiler." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} - as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 + as_fn_error $? "clang or GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 fi # First line typically looks something like: @@ -21958,13 +21958,13 @@ $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\ else COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` # Check that this is likely to be GCC. - $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null + $COMPILER --version 2>&1 | $GREP -E "Apple LLVM version|Free Software Foundation" > /dev/null if test $? -ne 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 -$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required compiler." >&5 +$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required compiler." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} - as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 + as_fn_error $? "clang or GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 fi # First line typically looks something like: diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4 index 44ceadf..16d5f17 100644 --- a/common/autoconf/toolchain.m4 +++ b/common/autoconf/toolchain.m4 @@ -72,11 +72,11 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION], else COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` # Check that this is likely to be GCC. - $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null + $COMPILER --version 2>&1 | $GREP -E "Apple LLVM version|Free Software Foundation" > /dev/null if test $? -ne 0; then - AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler.]) + AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required compiler.]) AC_MSG_NOTICE([The result from running with --version was: "$COMPILER_VERSION_TEST"]) - AC_MSG_ERROR([GCC compiler is required. Try setting --with-tools-dir.]) + AC_MSG_ERROR([clang or GCC compiler is required. Try setting --with-tools-dir.]) fi # First line typically looks something like: @@ -290,7 +290,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_PATHS], # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) - if test ! "${XC_VERSION_PARTS[[0]]}" = "4"; then + if test ! ${XC_VERSION_PARTS[[0]]} -ge 4 ; then AC_MSG_ERROR([Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select.]) fi |