]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Since CONFIG_SHELL may
authorPeter O'Gorman <peter@pogma.com>
Wed, 4 Aug 2004 14:12:05 +0000 (14:12 +0000)
committerPeter O'Gorman <peter@pogma.com>
Wed, 4 Aug 2004 14:12:05 +0000 (14:12 +0000)
not actually be set, we should use SHELL here, also make darn sure
that SHELL is set to something. Bug from Willem Jan Palenstijn
<wpalenst@math.leidenuniv.nl>.

ChangeLog
libtool.m4

index 5dbbf3f448a1777812bde88ce72502f43e89e457..8d5cf8653edc40981dd374d127c5cc3ee3f086c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-04  Peter O'Gorman  <peter@pogma.com>
+
+       * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Since CONFIG_SHELL may
+       not actually be set, we should use SHELL here, also make darn sure
+       that SHELL is set to something. Bug from Willem Jan Palenstijn
+       <wpalenst@math.leidenuniv.nl>.
+
 2004-08-03  Jacob Meuser <jakemsr@jakemsr.com>
 
        * ltmain.in: Allow some static libraries to be used in generating a
index a654848900dc895d33e8294703b949bfb8322e8d..71dae456a52ed373df415cc3721fb79ce8c4a5bd 100644 (file)
@@ -695,7 +695,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
     # If test is not a shell built-in, we'll probably end up computing a
     # maximum length that is only half of the actual maximum length, but
     # we can't tell.
-    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
+    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
               = "XX$teststring") >/dev/null 2>&1 &&
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
            lt_cv_sys_max_cmd_len=$new_result &&