From d9cbbbe97fa29f4486ef71dbee2146971520c83b Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 20 May 2001 18:20:07 +0000 Subject: [PATCH] * ltconfig.in (lt_cv_sys_max_cmd_len): Improve test to work better in case of non-built-in echo. Set bounds correctly. --- ChangeLog | 3 +++ ltconfig.in | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9548e5eb3..7695b4283 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-05-20 Alexandre Oliva + * ltconfig.in (lt_cv_sys_max_cmd_len): Improve test to work better + in case of non-built-in echo. Set bounds correctly. + * ltcf-cxx.sh (allow_undefined_flag) [aix4* | aix5*]: Fix quote error. diff --git a/ltconfig.in b/ltconfig.in index d97e90655..4fb74e526 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -783,11 +783,15 @@ if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else i=0 - testring="ABCDEF" - while test `$CONFIG_SHELL $0 --fallback-echo "X$testring" >/dev/null 2>&1` == `echo "X$testring" >/dev/null 2>&1` && + testring="ABCD" + # 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$testring" 2>/dev/null` \ + = "XX$testring" && new_result=`expr "X$testring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && - test $i != 32 # 1 MB should be enough + test $i != 18 # 1 MB should be enough do i=`expr $i + 1` testring=$testring$testring -- 2.47.3