From 9b1fc13d40034ebe2658c820a2c22b63c8492f31 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 3 Jul 2020 17:26:50 -0400 Subject: [PATCH] Require `find` to be installed --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 7aa257f..b9677a8 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,17 @@ AM_SILENT_RULES AC_PROG_MKDIR_P +# The Fedora Docker image doesn't come with the 'findutils' package. +# 'find' is required for 'make distcheck', which the user might not +# run. We could log a warning instead of erroring out, but: +# * a warning is unlikely to be seen, +# * 'make distcheck' doesn't yield a non-0 exit code if 'find' is +# not available, +# * 'find' is a core utility that should always be available, and +# * we might use 'find' for other purposes in the future. +AC_PATH_PROG([FIND], [find]) +AS_IF([test -z "${FIND}"], [AC_MSG_ERROR(['find' utility not found])]) + AX_WITH_PROG([PERL], perl) AX_PROG_PERL_VERSION([5.10.1], [], [AC_MSG_ERROR([Perl 5.10.1 or newer not found])])