2001-05-20 Alexandre Oliva <aoliva@redhat.com>
+ * 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.
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