From 3fe500aebb31a71f4e9b75bbc63d09def99c3c8b Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Tue, 17 Aug 2021 20:07:33 -0500 Subject: [PATCH] Check more accurately if gradle exists Previously, the configure script would only successfully determine that gradle exists if the user specified an absolute path to the executable. It would fail if the user specified only an executable name or if the default value of "gradle" were used. Now it should succeed in either situation. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 31cd1281..0c1460ef 100644 --- a/configure.ac +++ b/configure.ac @@ -81,7 +81,7 @@ dnl gradle checks. dnl ================================================================ AC_MSG_CHECKING([for gradle]) -if test -e ${GRADLE} ; then +if command -v "$GRADLE" >/dev/null; then AC_MSG_RESULT([${GRADLE}]) AM_CONDITIONAL(HAVE_GRADLE, [test 1 = 1]) else