1
Author: Sergei Golovan <sgolovan@debian.org>
2
Description: GCJ 4.4 passes the test for JDK 1.5 but doesn't implement
3
String#String(int[], int, int) constructor, which breaks jinterface
4
build. This patch adds a check for the definition of this constructor.
5
It helps to build Erlang on architectures without openjdk-6 available.
7
Last-updated: Sat, 13 Feb 2010 10:08:42 +0300
9
--- erlang-14.b.2-dfsg.orig/erts/configure.in
10
+++ erlang-14.b.2-dfsg/erts/configure.in
12
dnl Make sure it's at least JDK 1.5
13
AC_CACHE_CHECK(for JDK version 1.5,
14
ac_cv_prog_javac_ver_1_5,
15
- [ERL_TRY_LINK_JAVA([], [for (String i : args);],
16
+ [ERL_TRY_LINK_JAVA([], [for (String i : args);
17
+ int[] values = {}; String s = new String(values, 0, values.length);],
18
ac_cv_prog_javac_ver_1_5=yes, ac_cv_prog_javac_ver_1_5=no)])
19
if test $ac_cv_prog_javac_ver_1_5 = no; then
21
--- erlang-14.b.2-dfsg.orig/lib/test_server/src/configure.in
22
+++ erlang-14.b.2-dfsg/lib/test_server/src/configure.in
24
dnl Make sure it's at least JDK 1.5
25
AC_CACHE_CHECK(for JDK version 1.5,
26
ac_cv_prog_javac_ver_1_5,
27
- [ERL_TRY_LINK_JAVA([], [for (String i : args);],
28
+ [ERL_TRY_LINK_JAVA([], [for (String i : args);
29
+ int[] values = {}; String s = new String(values, 0, values.length);],
30
ac_cv_prog_javac_ver_1_5=yes, ac_cv_prog_javac_ver_1_5=no)])
31
if test $ac_cv_prog_javac_ver_1_5 = no; then