More for https://bugs.gnu.org/62896.
* configure.ac: quote "$PERL" and check directly with grep.
AC_PATH_PROG([PERL], [perl])
if test -z "$PERL"; then
AC_MSG_ERROR([perl not found])
-elif test x"`echo $PERL | grep ' '`" != "x"; then
- AC_MSG_ERROR([The path to your Perl contains spaces.
+elif echo "$PERL" | grep '[ ]' >/dev/null; then
+ AC_MSG_ERROR([The path to your Perl contains spaces or tabs.
This would cause build failures later or unusable programs.
Please use a path without spaces and try again.])
fi