bug-gnulib
[Top][All Lists]
Advanced

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

Detection of utmp/pty for *BSD.


From: Mats Erik Andersson
Subject: Detection of utmp/pty for *BSD.
Date: Thu, 9 Sep 2010 13:28:21 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello,

in working on GNU Inetutils I have been forced to observe
that the autoconfiguration fails for OpenBSD or FreeBSD
in two instances (for which I see a solution), and that
these ought to be mended by Gnulib.

Tests related to utmp and openpty/forkpty, which are activated
by the configure script, fail primarily due to the missing
inclusion of "<sys/types.h>" in the generated test sources
"conftest.c". This header file is not automatically included
in BSD, like it would be in GNU/Linux, thus the failure.


1. m4/readutmp.m4

   This concerns OpenBSD and FreeBSD.

   The test must be reformulated using

     #ifdef HAVE_UTMP_H
     # if 
         [...]
     # endif
     # include <sys/types.h>
     # include <utmp.h>
     #endif


2. m4/pty.m4

   Here only FreeBSD is relevant. Four times the proper
   header file inclusion must read

     #ifdef HAVE_LIBUTIL_H
     # include <sys/types.h>
     # include <libutil.h>
     #endif


Best regards,

Mats Erik Andersson, fil. dr



reply via email to

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