From 51ed8cadb50cbde2a98a40ac0587929950e0aa4c Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Tue, 17 Aug 2021 20:16:46 -0500 Subject: [PATCH] Set HAVE_GRADLE in a more autoconfy way It is perhaps more autoconfy to have AM_CONDITIONAL evaluate a variable rather than call it with what are essentially constants representing either true or false. It might be even more autoconfy to use AC_CHECK_PROG here instead; I don't know if there's a good reason why that wasn't already done here. --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1267f6f8..c881ed6a 100644 --- a/configure.ac +++ b/configure.ac @@ -83,12 +83,11 @@ dnl ================================================================ AC_MSG_CHECKING([for gradle]) if command -v "$GRADLE" >/dev/null; then AC_MSG_RESULT([$GRADLE]) - AM_CONDITIONAL(HAVE_GRADLE, [test 1 = 1]) else GRADLE= AC_MSG_RESULT([no]) - AM_CONDITIONAL(HAVE_GRADLE, [test 1 = 0]) fi +AM_CONDITIONAL(HAVE_GRADLE, [test x"$GRADLE" != x]) AC_SUBST(GRADLE)