guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 02/04: build: Avoid use of Bash's $(...) construct in 'c


From: Ludovic Courtès
Subject: [Guile-commits] 02/04: build: Avoid use of Bash's $(...) construct in 'configure'.
Date: Wed, 12 Oct 2016 08:39:57 +0000 (UTC)

civodul pushed a commit to branch stable-2.0
in repository guile.

commit 52cf9b2a2c090107ede51ce25580cfc48d825c6a
Author: Ludovic Courtès <address@hidden>
Date:   Wed Oct 12 10:29:32 2016 +0200

    build: Avoid use of Bash's $(...) construct in 'configure'.
    
    This is a followup to be8be776df4dd77112b5d9b88610cc9b67a68645.
    
    * acinclude.m4 (GUILE_CHECK_GUILE_FOR_BUILD): Use backquotes instead of
    $(...).
---
 acinclude.m4 |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 0643fe1..4b83fb5 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,7 +1,7 @@
 dnl -*- Autoconf -*-
 
 dnl Copyright (C) 1997, 1999, 2000, 2001, 2002, 2004, 2006,
-dnl   2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+dnl   2007, 2008, 2009, 2010, 2011, 2016 Free Software Foundation, Inc.
 dnl
 dnl This file is part of GUILE
 dnl
@@ -565,7 +565,9 @@ AC_DEFUN([GUILE_CHECK_GUILE_FOR_BUILD], [
         AC_MSG_ERROR([a native Guile $PACKAGE_VERSION is required to 
cross-build Guile])
       fi
     else
-      GUILE_FOR_BUILD=$(which "$GUILE_FOR_BUILD" || echo "$GUILE_FOR_BUILD")
+      dnl Capture the absolute file name of 'GUILE_FOR_BUILD' so that
+      dnl 'meta/guile' doesn't invoke itself when GUILE_FOR_BUILD=guile.
+      GUILE_FOR_BUILD="`which "$GUILE_FOR_BUILD" || echo "$GUILE_FOR_BUILD"`"
     fi
     AC_MSG_CHECKING([guile for build])
     AC_MSG_RESULT([$GUILE_FOR_BUILD])



reply via email to

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