# HG changeset patch # User John W. Eaton # Date 1539196279 14400 # Node ID 2ee6a02e6f2876f521acacef6f1a035928caa882 # Parent 376a01935f6604007fc54b7f3e578a7e1ab545ba check for ccache; don't attempt to use ccache if it is missing (bug #54746) diff -r 376a01935f66 -r 2ee6a02e6f28 configure.ac --- a/configure.ac Mon Oct 08 09:13:55 2018 -0400 +++ b/configure.ac Wed Oct 10 14:31:19 2018 -0400 @@ -81,6 +81,13 @@ yes) USE_CCACHE=yes ;; *) AC_MSG_ERROR([bad value "$enableval" for --with-ccache]) ;; esac], [USE_CCACHE=no]) +if test "$USE_CCACHE" = yes; then + AC_CHECK_PROG(CCACHE, ccache, ccache) + if test -z "$CCACHE"; then + AC_MSG_WARN([ccache program not found; not using ccache for build]) + USE_CCACHE=no + fi +fi AC_SUBST(USE_CCACHE) AC_ARG_WITH([msys2],