From: Karl Berry Date: Sat, 2 Dec 2023 22:53:12 +0000 (-0800) Subject: configure: better check for the perl patch containing whitespace. X-Git-Tag: v1.16i~8 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2b1058326803a72497f73ae8c39b7883b32f857;p=thirdparty%2Fautomake.git configure: better check for the perl patch containing whitespace. More for https://bugs.gnu.org/62896. * configure.ac: quote "$PERL" and check directly with grep. --- diff --git a/configure.ac b/configure.ac index 23a9f97f5..946fecb67 100644 --- a/configure.ac +++ b/configure.ac @@ -70,8 +70,8 @@ AC_PROG_LN_S 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