aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-05 11:56:51 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-01-05 11:56:51 +0200
commit4f7c28158308563dcad912d87a0031d095d4690a (patch)
treef8badf11119135268fb58b77e86667b12d0f090c /configure.ac
parentd8221ce9bdd2d7ae6162bed0e1c85e9f7a3ff8f2 (diff)
downloadpies-4f7c28158308563dcad912d87a0031d095d4690a.tar.gz
pies-4f7c28158308563dcad912d87a0031d095d4690a.tar.bz2
Write utmp/wtmp records in sysvinit mode.
* configure.ac: Check for utmp.h, utmpx.h * src/utmp.c: New file. * src/Makefile.am: Add utmp.c * src/pies.h (sysvinit_acct): New proto. * src/progman.c (prog_start, progman_cleanup): Call sysvinit_acct. * src/sysvinit.c (inittrans): Call sysvinit_acct. Set proctitle.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0c1d2b9..5a42270 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,25 +32,37 @@ AC_PROG_RANLIB
32AC_PROG_YACC 32AC_PROG_YACC
33AC_PROG_LEX 33AC_PROG_LEX
34 34
35# Checks for libraries. 35# Checks for libraries.
36 36
37# Checks for header files. 37# Checks for header files.
38AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h]) 38AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h utmp.h utmpx.h])
39 39
40# Checks for typedefs, structures, and compiler characteristics. 40# Checks for typedefs, structures, and compiler characteristics.
41AC_TYPE_UID_T 41AC_TYPE_UID_T
42AC_TYPE_MODE_T 42AC_TYPE_MODE_T
43AC_TYPE_PID_T 43AC_TYPE_PID_T
44AC_TYPE_SIZE_T 44AC_TYPE_SIZE_T
45AC_TYPE_SIGNAL 45AC_TYPE_SIGNAL
46 46
47IU_CHECK_MEMBERS([struct msghdr.msg_control, struct msghdr.msg_accrights], , , 47IU_CHECK_MEMBERS([struct msghdr.msg_control, struct msghdr.msg_accrights], , ,
48 [#include <sys/types.h> 48 [#include <sys/types.h>
49 #include <sys/socket.h>]) 49 #include <sys/socket.h>])
50 50
51IU_CHECK_MEMBERS([struct utmp.ut_tv, struct utmp.ut_name,
52 struct utmp.ut_user, struct utmp.ut_time,
53 struct utmp.ut_host], , ,
54 [#include <utmp.h>])
55
56if test "$ac_cv_header_utmpx_h" = yes; then
57 IU_CHECK_MEMBERS([struct utmpx.ut_tv, struct utmpx.ut_name,
58 struct utmpx.ut_user, struct utmpx.ut_time,
59 struct utmpx.ut_host], , ,
60 [#include <utmpx.h>])
61fi
62
51# Checks for library functions. 63# Checks for library functions.
52AC_FUNC_CHOWN 64AC_FUNC_CHOWN
53AC_FUNC_FORK 65AC_FUNC_FORK
54AC_CHECK_FUNCS([alarm dup2 gethostbyname memmove memset select setenv socket strchr strcspn strtol strtoul sysconf getdtablesize vsyslog]) 66AC_CHECK_FUNCS([alarm dup2 gethostbyname memmove memset select setenv socket strchr strcspn strtol strtoul sysconf getdtablesize vsyslog])
55 67
56# Gnulib 68# Gnulib

Return to:

Send suggestions and report system problems to the System administrator.