From 804e401762090f361fb6beb9ca588b7a17d0430f Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 30 Jun 2015 16:59:54 -0400 Subject: [PATCH] Fix: java class check when uudecode is not present 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. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- config/ax_check_class.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ax_check_class.m4 b/config/ax_check_class.m4 index 098aa772..42b51d72 100644 --- a/config/ax_check_class.m4 +++ b/config/ax_check_class.m4 @@ -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) >/dev/null 2>&1; then eval "ac_cv_class_$ac_var_name=yes" else eval "ac_cv_class_$ac_var_name=no" -- 2.34.1