--- Begin Message ---
Subject: |
[Configure] Bug with check for PERL when path has spaces (i.e. Windows) |
Date: |
Mon, 17 Apr 2023 13:57:30 +1000 |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#62896] [Configure] Bug with check for PERL when path has spaces (i.e. Windows) |
Date: |
Sat, 27 May 2023 19:12:41 -0600 |
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;' || {
--- End Message ---