configure.ac: make finding java deterministic
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 1 Nov 2016 10:54:26 +0000 (11:54 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 1 Nov 2016 10:54:26 +0000 (11:54 +0100)
The sort order of the `find` command proves to be dependent on external
factors, which makes `./configure` pick different java versions on
different systems, making the whole build non-reproducible (see
https://reproducible-builds.org/ for more details).

Adding a call to `sort`, with the locale forced, fixes this issue.

Fixes: #1523


No differences found