ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/ptytty.m4
(Generate patch)

Comparing libptytty/ptytty.m4 (file contents):
Revision 1.3 by ayin, Sun Jan 22 16:57:03 2006 UTC vs.
Revision 1.6 by root, Wed Jan 25 21:17:46 2006 UTC

74fi 74fi
75]) 75])
76 76
77AC_DEFUN([UTMP_CHECK], 77AC_DEFUN([UTMP_CHECK],
78[ 78[
79support_utmp=yes
80support_wtmp=yes
81support_lastlog=yes
82
83AC_ARG_ENABLE(utmp,
84 [ --enable-utmp enable utmp (utmpx) support],
85 [if test x$enableval = xyes -o x$enableval = xno; then
86 support_utmp=$enableval
87 fi])
88
89AC_ARG_ENABLE(wtmp,
90 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)],
91 [if test x$enableval = xyes -o x$enableval = xno; then
92 support_wtmp=$enableval
93 fi])
94
95AC_ARG_ENABLE(lastlog,
96 [ --enable-lastlog enable lastlog support (requires --enable-utmp)],
97 [if test x$enableval = xyes -o x$enableval = xno; then
98 support_lastlog=$enableval
99 fi])
100
101if test x$support_utmp = xyes; then
102 AC_DEFINE(UTMP_SUPPORT, 1, Define if you want to have utmp/utmpx support)
103fi
104if test x$support_wtmp = xyes; then
105 AC_DEFINE(WTMP_SUPPORT, 1, Define if you want to have wtmp support when utmp/utmpx is enabled)
106fi
107if test x$support_lastlog = xyes; then
108 AC_DEFINE(LASTLOG_SUPPORT, 1, Define if you want to have lastlog support when utmp/utmpx is enabled)
109fi
110
79AC_CHECK_FUNCS( \ 111AC_CHECK_FUNCS( \
80 ttyslot \ 112 ttyslot \
81 updwtmp \ 113 updwtmp \
82 updwtmpx \ 114 updwtmpx \
83) 115)
400}]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl 432}]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl
401 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])]) 433 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])])
402if test x$path_lastlogx != x; then 434if test x$path_lastlogx != x; then
403 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx) 435 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx)
404fi 436fi
437
438if test x$support_utmp != xyes; then
439 echo " utmp support: disabled"
440 echo
441else
442 echo " utmp support: enabled
443 utmp file: $path_utmp
444 utmpx file: $path_utmpx
445 wtmp file: $path_wtmp
446 wtmpx file: $path_wtmpx
447 lastlog file: $path_lastlog
448 lastlogx file: $path_lastlogx"
449fi
405]) 450])
406 451
407AC_DEFUN([SCM_RIGHTS_CHECK], 452AC_DEFUN([SCM_RIGHTS_CHECK],
408[ 453[
409AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds, 454AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds,
410[AC_TRY_LINK([ 455[AC_TRY_LINK([
411#include <cstddef> // broken bsds (is that redundant) need this 456#include <cstddef> // broken bsds (is that redundant?) need this
412#include <sys/types.h> 457#include <sys/types.h>
413#include <sys/socket.h> 458#include <sys/socket.h>
414#include <sys/uio.h> 459#include <sys/uio.h>
415],[ 460],[
416{ 461{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines