From 6c53384cf01cda8861017c50609231802d412827 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 3 May 2018 15:58:44 -0400 Subject: [PATCH] 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 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index edd4e859..4796f4e1 100644 --- a/configure.ac +++ b/configure.ac @@ -311,10 +311,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]) -- 2.34.1