Skip to content

Commit f433c4e

Browse files
committed
check for presense of the patch utility
1 parent 4cdd703 commit f433c4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ then
220220
AC_MSG_ERROR([Exiting, as the archiver 'ar' can not be found.])
221221
fi
222222

223+
AC_CHECK_PROG(found_patch, patch, yes, no)
224+
if test x$found_patch != xyes
225+
then
226+
AC_MSG_NOTICE([Sorry, the 'patch' command must be in the path to build AC_PACKAGE_NAME])
227+
AC_MSG_NOTICE([See e.g. https://www.gnu.org/software/patch/])
228+
AC_MSG_ERROR([Exiting, as the utility 'patch' can not be found.])
229+
fi
230+
223231
AC_CHECK_PROG(found_m4, m4, yes, no)
224232
if test x$found_m4 != xyes
225233
then

0 commit comments

Comments
 (0)