automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: Simplify recent $PERL check


From: Paul Eggert
Subject: [automake-commit] branch master updated: Simplify recent $PERL check
Date: Sun, 03 Dec 2023 00:52:25 -0500

This is an automated email from the git hooks/post-receive script.

eggert pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=668e8a20e3561063ee7478e91c9f81bb40cfed7a

The following commit(s) were added to refs/heads/master by this push:
     new 668e8a20e Simplify recent $PERL check
668e8a20e is described below

commit 668e8a20e3561063ee7478e91c9f81bb40cfed7a
Author: Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Sat Dec 2 21:50:45 2023 -0800

    Simplify recent $PERL check
    
    * configure.ac: Don’t spin off subprocesses to check $PERL.
---
 configure.ac | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 946fecb67..5cda80a18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,13 +68,16 @@ AUTOMAKE="\"`pwd`/pre-inst-env\" automake-$APIVERSION"
 AC_PROG_LN_S
 
 AC_PATH_PROG([PERL], [perl])
-if test -z "$PERL"; then
+case $PERL in
+ '')
    AC_MSG_ERROR([perl not found])
-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
+  ;;
+esac
 
 # Save details about the selected perl interpreter in config.log.
 AM_RUN_LOG([$PERL --version])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]