From a6b625c538e23a09334a276d551aba1921b135a1 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 31 Mar 2013 19:18:41 +0000 Subject: [PATCH] * configure.in: kick old clang. [ruby-dev:47204] [Bug #8192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ configure.in | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index e0736b51c0..7318e89807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 1 04:16:41 2013 NARUSE, Yui + + * configure.in: kick old clang. [ruby-dev:47204] [Bug #8192] + Mon Apr 1 01:12:46 2013 Tanaka Akira * include/ruby/ruby.h (FIX2ULONG): Make it consistent with NUM2ULONG. diff --git a/configure.in b/configure.in index 1d3f328ee8..387d82cc04 100644 --- a/configure.in +++ b/configure.in @@ -392,6 +392,13 @@ RUBY_NACL AS_CASE(["$host_os:$build_os"], [darwin*:darwin*], [ AC_CHECK_TOOLS(CC, [gcc-4.2 clang gcc cc]) + # Following Apple deployed clang are broken + # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) + # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) + # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) + if [ $CC = "clang" ] && $CC --version | grep 'clang version [12 ]\.' ; then + AC_MSG_ERROR(clang version 3.0 or later is required)]) + fi ]) if test x"${build}" != x"${host}"; then AC_CHECK_TOOL(CC, gcc)