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])
(and please remind me when I get back so I can check in a proper fix).
Regards,
/Niels