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)
commit55ef2778ade050e2924eeb027c98feea103f1585
tree88c9a29f9a628e7603255159dc4e3ad116033bda
parent055898ea05802d622208597a974a432687057884
configure.ac: make finding java deterministic

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
configure.ac