Subject: bug#62896: closed (Re: [bug#62896] [Configure] Bug with check for PERL when path has spaces (i.e. Windows))

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 28 May 2023 01:13:02 +0000

Your bug report

#62896: [Configure] Bug with check for PERL when path has spaces (i.e. Windows)

which was filed against the automake package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
62896: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62896
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#62896] [Configure] Bug with check for PERL when path has spaces (i.e. Windows)
From: Karl Berry <[email-masked]>
To: [email-masked]
Cc: [email-masked], [email-masked]
Date: Sat, 27 May 2023 19:12:41 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

I (finally) installed this patch to quit early if the perl path has
spaces. Thanks.

As for MKDIR_P and INSTALL, I guess it is somewhere in the
prerequisite/autoconf stuff. I suppose it would be rare that they would
be found in a path with spaces while perl was not, so I think it's ok to
let that go. --best, karl.

--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,12 @@ AC_PATH_PROG([PERL], [perl])
 if test -z "$PERL"; then
    AC_MSG_ERROR([perl not found])
 fi
+if 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;' || {

Subject: [Configure] Bug with check for PERL when path has spaces (i.e. Windows)
From: Dan Rosser <[email-masked]>
To: [email-masked]
Date: Mon, 17 Apr 2023 13:57:30 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

VER=1.16.4

Building "automake"

checking whether make supports nested variables... no
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for a BSD-compatible install... ./lib/install-sh -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /c/Program Files/Git/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether ln -s works... no, using cp -pR
checking for perl... /c/Program Files/Git/usr/bin/perl
./configure: line 3475: /c/Program: No such file or directory
configure: error: perl 5.6 or better is required; perl 5.8.2 or better
is recommended.  If you have several perl versions
installed, select the one Automake should use using
  ./configure PERL=/path/to/perl