From: Peter O'Gorman Date: Wed, 4 Aug 2004 14:10:59 +0000 (+0000) Subject: * m4/libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Since CONFIG_SHELL may X-Git-Tag: release-1-9b~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e188938213126c2538d0e75144d7885b4e1bfe;p=thirdparty%2Flibtool.git * m4/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 . --- diff --git a/ChangeLog b/ChangeLog index 344c88282..07ddab787 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-08-04 Peter O'Gorman + + * m4/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 + . + 2004-08-03 Jacob Meuser * ltmain.in: Allow some static libraries to be used in generating a diff --git a/m4/libtool.m4 b/m4/libtool.m4 index f0be3e05c..bee3b7e3a 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1135,10 +1135,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # 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$teststring" 2>/dev/null` \ + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring") >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do