bug-cfengine
[Top][All Lists]
Advanced

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

Re: problems with getloadavg configuration


From: Mark Burgess
Subject: Re: problems with getloadavg configuration
Date: Fri, 16 May 2003 13:32:38 +0200 (MEST)

On 16 May, Dave Love wrote:
> I've just noticed 2.0.7 and tried to build it on a system without
> `getloadavg'.  That fails because it looks for a getloadavg.c and
> can't find it.  See the autoconf doc:
> 
>  - Macro: AC_FUNC_GETLOADAVG
>      Check how to get the system load averages.  To perform its tests
>      properly, this macro needs the file `getloadavg.c'; therefore, be
>      sure to set the `AC_LIBOBJ' replacement directory properly (see
>      *Note Generic Functions::, `AC_CONFIG_LIBOBJ_DIR').
> 
> I suggest adding 
> 
> AC_CONFIG_LIBOBJ_DIR(pub)
> 
> before the use of AC_FUNC_GETLOADAVG [why is it in `Checks for
> programs.'?] and putting the getloadavg.c from the Emacs distribution
> into pub.  Then in cfenvd.c you can remove the conditional on
> HAVE_GETLOADAVG.  (Emacs uses getloadavg unconditionally after maybe
> linking its own version, so it is portable.)
> 

The loadavg test is a little odd because it refers to loadavg.c but does
not provide one. I have not found a solution to this problem for all
platforms. Since this is mainly for research purposes at present it
can just be ignored.
M

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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