]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
configure: exit explicitly if the path to perl contains spaces.
authorBogdan <bogdro_rep@gmx.us>
Sun, 28 May 2023 01:10:11 +0000 (18:10 -0700)
committerKarl Berry <karl@freefriends.org>
Sun, 28 May 2023 01:10:11 +0000 (18:10 -0700)
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.

THANKS
configure.ac

diff --git a/THANKS b/THANKS
index 1f246151da317622dbcf249eb78b63ee21a898ce..f6a745bea69a1755d293e9c04fb9ba5cf1a97cef 100644 (file)
--- 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
index d095ccb1a62f1e8614f34b37dfddbc0252902be8..f78ec5153454655303be44d58cb1b1ab4d6628c6 100644 (file)
@@ -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;' || {