From: Mathieu Desnoyers Date: Thu, 3 May 2018 19:58:44 +0000 (-0400) Subject: Fix: AM_CONDITIONAL should be outside AS_IF block X-Git-Tag: v2.10.2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=979c384814c9fad78c1e297a129da86dda2e4573;p=lttng-ust.git Fix: AM_CONDITIONAL should be outside AS_IF block Fixes: configure: error: conditional "HAVE_JAVAH" was never defined. Usually this means the macro was only invoked conditionally Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 8be1ceb0..37549fe0 100644 --- a/configure.ac +++ b/configure.ac @@ -343,10 +343,10 @@ AS_IF([test "x$jni_interface" = "xyes" || test "x$java_agent_jul" = "xyes" || te CPPFLAGS="$CPPFLAGS $JNI_CPPFLAGS" AX_PROG_JAVAH CPPFLAGS="$saved_CPPFLAGS" - - AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) ]) +AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) + AS_IF([test "x$java_agent_log4j" = "xyes"], [ AX_CHECK_CLASSPATH AX_CHECK_CLASS([org.apache.log4j.Logger])