libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH-1.5] BSD sysctl command line length


From: Brad
Subject: Re: [PATCH-1.5] BSD sysctl command line length
Date: Mon, 2 Aug 2004 10:12:21 -0400
User-agent: Mutt/1.5.6i

Yes yes, please do so. :)

// Brad

On Mon, Aug 02, 2004 at 10:44:49PM +0900, Peter O'Gorman wrote:
> Peter O'Gorman wrote:
> 
> >Hi,
> >I'd like to move this back to branch-1-5.
> >
> >Okay to commit?
> 
> Forgot to attach the patch. Doh!
> 
> Peter
> -- 
> Peter O'Gorman - http://www.pogma.com

> Index: ChangeLog
> from  Todd Vierling  <address@hidden>,
>       Peter O'Gorman  <address@hidden>
> 
>       * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use sysctl to get the
>       max cmd length on BSD* and darwin. Make sure that there is a safety
>       factor too.
> 
> Index: libtool.m4
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
> retrieving revision 1.314.2.44
> diff -u -3 -p -u -r1.314.2.44 libtool.m4
> --- libtool.m4 2 Aug 2004 04:03:26 -0000 1.314.2.44
> +++ libtool.m4 2 Aug 2004 13:35:29 -0000
> @@ -678,6 +678,19 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
>      lt_cv_sys_max_cmd_len=8192;
>      ;;
>  
> +  netbsd* | freebsd* | openbsd* | darwin* )
> +    # This has been around since 386BSD, at least.  Likely further.
> +    if test -x /sbin/sysctl; then
> +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
> +    elif test -x /usr/sbin/sysctl; then
> +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
> +    else
> +      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
> +    fi
> +    # And add a safety zone
> +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
> +    ;;
> +
>   *)
>      # 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

> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/libtool-patches





reply via email to

[Prev in Thread] Current Thread [Next in Thread]