Skip to contentSkip to conversation

Fix: java class check when uudecode is not present

PATCH Mathieu Desnoyers 1 participant 1 message Jun 30, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw

merged into stable-2.6 and master, thanks!

Mathieu

Quoted 29 lines · ----- On Jun 30, 2015, at 4:59 PM, Michael Jeanson [email protected] wrote:

On systems where 'uudecode' is present, the java class check will run a precompiled class file in the local directory. If the CLASSPATH variable doesn't contain "." the test will fail regardless of the presence of the tested for class on the classpath.

This fix makes the behavior of the test consistant whether 'uudecode' is present or not.

---
config/ax_check_class.m4 | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
config/ax_check_class.m4 +1 -1
index 098aa77..42b51d7 100644
@@ -118,7 +118,7 @@ EOF
                        ac_cv_prog_uudecode_base64=no
                fi
        rm -f Test.uue
-        if AC_TRY_COMMAND($JAVA $JAVAFLAGS Test $1) >/dev/null 2>&1; then
+        if AC_TRY_COMMAND($JAVA -classpath ".:$CLASSPATH" $JAVAFLAGS Test $1)
Quoted 1 line

/dev/null 2>&1; then

                eval "ac_cv_class_$ac_var_name=yes"
        else
                eval "ac_cv_class_$ac_var_name=no"

--
1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com