[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] libtool.m4: handle "undefined" from `getconf`
From: |
Peter O'Gorman |
Subject: |
Re: [PATCH] libtool.m4: handle "undefined" from `getconf` |
Date: |
Wed, 18 Apr 2012 23:17:03 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Thanks, pushed.
Peter
On 04/18/2012 11:00 PM, Mike Frysinger wrote:
> If a getconf value doesn't have a limit, getconf will display
> "undefined". The libtool code though gets confused by this, so
> handle that specifically.
>
> Signed-off-by: Mike Frysinger <address@hidden>
>
> * m4/libtool.m4: Check for "undefined" from `getconf`.
> ---
> m4/libtool.m4 | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/m4/libtool.m4 b/m4/libtool.m4
> index 75bfdb4..a8ecbc3 100644
> --- a/m4/libtool.m4
> +++ b/m4/libtool.m4
> @@ -1692,7 +1692,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
> ;;
> *)
> lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
> - if test -n "$lt_cv_sys_max_cmd_len"; then
> + if test -n "$lt_cv_sys_max_cmd_len" && \
> + test undefined != "$lt_cv_sys_max_cmd_len"; then
> lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
> lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
> else