Let configure fail if Perl is not in $PATH

This commit is contained in:
Rene Kita
2021-09-14 19:10:39 +02:00
parent 0d3416e0c2
commit a0c8de3f3f
2 changed files with 14 additions and 20 deletions

View File

@@ -25,7 +25,8 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PATH_PROGS(PERL, perl, /usr/local/bin/perl)
AC_CHECK_PROG(PERL,[perl],[$(command -v perl)],[no])
test "$PERL" == "no" && AC_MSG_ERROR([Required program 'perl' not found.])
AC_PATH_PROGS(NKF, nkf, /usr/local/bin/nkf)
AC_PATH_PROGS(MAN, man, /usr/bin/man)
AC_PATH_XTRA