aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby/remove-broken-autoconf-section.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/ruby/remove-broken-autoconf-section.patch')
-rw-r--r--main/ruby/remove-broken-autoconf-section.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/ruby/remove-broken-autoconf-section.patch b/main/ruby/remove-broken-autoconf-section.patch
new file mode 100644
index 0000000000..595a04dd2e
--- /dev/null
+++ b/main/ruby/remove-broken-autoconf-section.patch
@@ -0,0 +1,30 @@
+Description: with autoconf-2.71, this section results a broken configure script.
+
+diff --git a/configure.ac b/configure.ac
+index af170ef..86e26ca 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -170,23 +170,6 @@ dnl orig_cxxflags="$cxxflags"
+ dnl cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}'
+ dnl ])
+
+-AS_CASE(["$host_os:$build_os"],
+-[darwin*:darwin*], [
+- AC_CHECK_TOOLS(CC, [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)
+- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [
+- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
+- @%:@error premature clang
+- @%:@endif
+-SRC
+- AC_MSG_ERROR([clang version 3.0 or later is required])
+- ])],
+-[openbsd*:openbsd*], [
+- AC_CHECK_TOOLS(CC, [cc])
+-])
+ AS_IF([test x"${build}" != x"${host}"], [
+ AC_CHECK_TOOL(CC, gcc)
+ ])