Allow configure to detect if EC implementation is present

Omair Majid omajid at
Thu Mar 14 19:50:08 UTC 2013

On 03/14/2013 03:14 PM, Vincent Ryan wrote:
> The DISABLE_INTREE_EC flag is designed to control whether the Elliptic Curve support in the
> JDK source tree is skipped during a build. It is used to avoid the duplication of EC libraries on
> platforms where an EC library is already present.
> In the old build it was a build option. In the new build it appears to be controlled by the presence
> of a directory. That is incorrect as the directory is always present. The behaviour differs from the old build.

FWIW, the current new-build and the current old-build both allow you to
specify 'make DISABLE_INTREE_EC=yes' and do the right thing.

However, currently there is no way to say this using configure. The
patch I posted makes configure automatically set DISABLE_INTREE_EC=yes
if the directory is not found. The directory is always present in
OpenJDK8. However, some Linux distributions prefer to build with ECC
disabled due to legal reasons [1], and will remove the directory when
they create the OpenJDK8 source tarball. Where they had to delete the
directory _and_ set DISABLE_INTREE_EC before, with this patch they just
have to delete the directory.

If you would like me to add a configure option to control this as well,
then I will be happy to add that too. May I do that as a separate patch?



PGP Key: 66484681 (
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681

More information about the build-dev mailing list