1 Description: set locale when running find, to ensure a reproducible sort order
2 Author: Marc Fournier <marc@bl.uem.li>
3 diff --git a/configure.ac b/configure.ac
4 index ceb0b30..2d05efa 100644
5 --- a/configure.ac
6 +++ b/configure.ac
7 @@ -2258,7 +2258,7 @@ then
8 if test -d "$with_java_home"
9 then
10 AC_MSG_CHECKING([for jni.h])
11 - TMPVAR=`find -L "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
12 + TMPVAR=`LC_ALL=C find -L "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | sort | head -n 1`
13 if test "x$TMPVAR" != "x"
14 then
15 AC_MSG_RESULT([found in $TMPVAR])
16 @@ -2268,7 +2268,7 @@ then
17 fi
19 AC_MSG_CHECKING([for jni_md.h])
20 - TMPVAR=`find -L "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
21 + TMPVAR=`LC_ALL=C find -L "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | sort | head -n 1`
22 if test "x$TMPVAR" != "x"
23 then
24 AC_MSG_RESULT([found in $TMPVAR])
25 @@ -2278,7 +2278,7 @@ then
26 fi
28 AC_MSG_CHECKING([for libjvm.so])
29 - TMPVAR=`find -L "$with_java_home" -type f \( -name libjvm.so -o -name libjvm.dylib \) -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
30 + TMPVAR=`LC_ALL=C find -L "$with_java_home" -type f \( -name libjvm.so -o -name libjvm.dylib \) -exec 'dirname' '{}' ';' 2>/dev/null | sort | head -n 1`
31 if test "x$TMPVAR" != "x"
32 then
33 AC_MSG_RESULT([found in $TMPVAR])
34 @@ -2290,7 +2290,7 @@ then
35 if test "x$JAVAC" = "x"
36 then
37 AC_MSG_CHECKING([for javac])
38 - TMPVAR=`find -L "$with_java_home" -name javac -type f 2>/dev/null | head -n 1`
39 + TMPVAR=`LC_ALL=C find -L "$with_java_home" -name javac -type f 2>/dev/null | sort | head -n 1`
40 if test "x$TMPVAR" != "x"
41 then
42 JAVAC="$TMPVAR"
43 @@ -2302,7 +2302,7 @@ then
44 if test "x$JAR" = "x"
45 then
46 AC_MSG_CHECKING([for jar])
47 - TMPVAR=`find -L "$with_java_home" -name jar -type f 2>/dev/null | head -n 1`
48 + TMPVAR=`LC_ALL=C find -L "$with_java_home" -name jar -type f 2>/dev/null | sort | head -n 1`
49 if test "x$TMPVAR" != "x"
50 then
51 JAR="$TMPVAR"