configure improvements
[m6w6/ext-psi] / m4 / syslog.m4
1 PSI_CHECK_SYSLOG() {
2 AC_CHECK_HEADERS(syslog.h)
3
4 PSI_CONST(LOG_PID, int)
5 PSI_CONST(LOG_CONS, int)
6 PSI_CONST(LOG_NDELAY, int)
7 PSI_CONST(LOG_ODELAY, int)
8 PSI_CONST(LOG_NOWAIT, int)
9 PSI_CONST(LOG_KERN, int)
10 PSI_CONST(LOG_USER, int)
11 PSI_CONST(LOG_MAIL, int)
12 PSI_CONST(LOG_NEWS, int)
13 PSI_CONST(LOG_UUCP, int)
14 PSI_CONST(LOG_DAEMON, int)
15 PSI_CONST(LOG_AUTH, int)
16 PSI_CONST(LOG_CRON, int)
17 PSI_CONST(LOG_LPR, int)
18 PSI_CONST(LOG_LOCAL0, int)
19 PSI_CONST(LOG_LOCAL1, int)
20 PSI_CONST(LOG_LOCAL2, int)
21 PSI_CONST(LOG_LOCAL3, int)
22 PSI_CONST(LOG_LOCAL4, int)
23 PSI_CONST(LOG_LOCAL5, int)
24 PSI_CONST(LOG_LOCAL6, int)
25 PSI_CONST(LOG_LOCAL7, int)
26 PSI_CONST(LOG_EMERG, int)
27 PSI_CONST(LOG_ALERT, int)
28 PSI_CONST(LOG_CRIT, int)
29 PSI_CONST(LOG_ERR, int)
30 PSI_CONST(LOG_WARNING, int)
31 PSI_CONST(LOG_NOTICE, int)
32 PSI_CONST(LOG_INFO, int)
33 PSI_CONST(LOG_DEBUG, int)
34
35 PSI_MACRO(int LOG_MASK, [(int pri)])
36 PSI_MACRO(int LOG_UPTO, [(int pri)])
37
38 PSI_DECL(void closelog, [(void)])
39 PSI_DECL(void openlog, [(char *ident, int option, int facility)])
40 PSI_DECL(void syslog, [(int priority, char *format)], vararg)
41 PSI_DECL(int setlogmask, [(int mask)])
42 }