--- R-2.6.2/src/scripts/javareconf~ 2008-09-15 13:13:29.000000000 -0400 +++ R-2.6.2/src/scripts/javareconf 2008-09-15 13:13:29.000000000 -0400 @@ -127,16 +127,16 @@ fi javac_works='not present' if test -n "$JAVAC"; then javac_works='not functional' - rm -rf /tmp/A.java /tmp/A.class - echo "public class A { }" > /tmp/A.java - if test -e /tmp/A.java; then - if "${JAVAC}" /tmp/A.java >/dev/null; then - if test -e /tmp/A.class; then + tmpdir=`mktemp -d /tmp/java.XXXXXX` + echo "public class A { }" > ${tmpdir}/A.java + if test -e ${tmpdir}/A.java; then + if "${JAVAC}" ${tmpdir}/A.java >/dev/null; then + if test -e ${tmpdir}/A.class; then javac_works=yes fi fi fi - rm -rf /tmp/A.java /tmp/A.class + rm -rf ${tmpdir} fi if test "${javac_works}" = yes; then echo "Java compiler : ${JAVAC}"