From: Bogdan Date: Sun, 28 May 2023 01:10:11 +0000 (-0700) Subject: configure: exit explicitly if the path to perl contains spaces. X-Git-Tag: v1.16i~52 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f33a3b841b4339093f6a72de030e49e053fc447;p=thirdparty%2Fautomake.git configure: exit explicitly if the path to perl contains spaces. This change ameloriates https://bugs.gnu.org/62896. * configure.ac: exit explicitly if the result of AC_PATH_PROG for perl contains spaces, since shebang lines cannot support such paths. * THANKS (Bogdan): add. --- diff --git a/THANKS b/THANKS index 1f246151d..f6a745bea 100644 --- a/THANKS +++ b/THANKS @@ -52,6 +52,7 @@ Bob Friesenhahn bfriesen@simple.dallas.tx.us Bob Proulx rwp@hprwp.fc.hp.com Bob Rossi bob@brasko.net Bobby Jack bobbykjack@yahoo.co.uk +Bogdan bogdro_rep@gmx.us Boris Kolpackov boris@codesynthesis.com Braden N. McDaniel braden@endoframe.com Brandon Black blblack@gmail.com diff --git a/configure.ac b/configure.ac index d095ccb1a..f78ec5153 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,12 @@ 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. +This would cause build failures later or unusable programs. +Please use a path without spaces and try again.]) fi + # Save details about the selected perl interpreter in config.log. AM_RUN_LOG([$PERL --version]) $PERL -e 'require 5.006;' || {