On Tue, May 09, 2000 at 09:51:19PM +0200, Niels M�ller wrote:
> Jonathan McDowell <[EMAIL PROTECTED]> writes:
> 
> > On Tue, May 09, 2000 at 10:37:24AM +0200, Niels M�ller wrote:
> > > Jonathan McDowell <[EMAIL PROTECTED]> writes:
> > > 
> > > > <utmp.h> needs <sys/types.h>; could be causing problems in the configure
> > > > script?
> > > To me, the configure problem seems unrelated to the tests for utmp
> > > members. If you got HAVE_UT_* defined properly, that part of the
> > > configure script seems to work.
> > 
> > Sorry, I wasn't clear. HAVE_UT_* do not get defined properly, I had to
> > do it by hand. From config.log:
> > 
> > configure:2391: checking if utmp has member ut_host
> > configure:2403: gcc -c -g -O2  -I/home/noodles/projects/lsh-0.9.9 
>-I/home/noodles/projects/lsh-0.9.9/src 
>-I/home/noodles/projects/lsh-0.9.9/src/symmetric/include -DLSH -D_GNU_SOURCE 
>conftest.c 1>&5
> > In file included from configure:2397:
> > /usr/include/utmp.h:54: parse error before `time_t'
> 
> I see. Try replacing the
> 
>   AC_CHECK_MEMBER([#include <utmp.h>], [utmp], [ut_host])
> 
> in configure.in with
> 
>   AC_CHECK_MEMBER(
> [#include <sys/types.h>
> #include <utmp.h>], [utmp], [ut_host])

Yes, this fixes it. I also added #include <sys/types.h> to the checks
for ut_name, ut_user, ut_addr and ut_addr_v6. This makes configure
correctly identify that I have ut_host and ut_name.

> (and please remind me when I get back so I can check in a proper fix).

Consider this a reminder. :)

J.

-- 
She's the one for me. She's all I really need, oh yeah.

Reply via email to