1 /* config.h.in. Generated by hand, don't use autoheader. */
6 /* Location of lastlog file */
7 #undef LASTLOG_LOCATION
9 /* If lastlog is a directory */
12 /* Location of random number pool */
15 /* Are we using the Entropy gathering daemon */
18 /* Define if your ssl headers are included with #include <ssl/header.h> */
21 /* Define if your ssl headers are included with #include <openssl/header.h> */
24 /* Define is utmp.h has a ut_host field */
25 #undef HAVE_HOST_IN_UTMP
27 /* Define is libutil has login() function */
28 #undef HAVE_LIBUTIL_LOGIN
30 /* Define if you want external askpass support */
31 #undef USE_EXTERNAL_ASKPASS
33 /* Define if libc defines __progname */
34 #undef HAVE___PROGNAME
36 /* Define if you want Kerberos 4 support */
39 /* Define if you want AFS support */
42 /* Define if you want S/Key support */
45 /* Define if you want TCP Wrappers support */
48 /* Define if your libraries define login() */
51 /* Define if your libraries define daemon() */
54 /* Define if you want to allow MD5 passwords */
55 #undef HAVE_MD5_PASSWORDS
57 /* Define if you have an old version of PAM which takes only one argument */
67 /* Define if you have /dev/ptmx */
70 /* Define if you have /dev/ptc */
71 #undef HAVE_DEV_PTS_AND_PTC
75 /* ******************* Shouldn't need to edit below this line ************** */
77 #include <sys/types.h> /* For u_intXX_t */
78 #include <sys/socket.h> /* For SHUT_XXXX */
81 # include <paths.h> /* For _PATH_XXX */
85 # include <utmp.h> /* For _PATH_XXX */
88 #ifdef HAVE_SYS_TIME_H
89 # include <sys/time.h> /* For timersub */
92 #ifdef HAVE_MAILLOCK_H
99 SHUT_RD = 0, /* No more receptions. */
100 #define SHUT_RD SHUT_RD
101 SHUT_WR, /* No more transmissions. */
102 #define SHUT_WR SHUT_WR
103 SHUT_RDWR /* No more receptions or transmissions. */
104 #define SHUT_RDWR SHUT_RDWR
108 /* If sys/types.h does not supply intXX_t, supply them ourselves */
109 /* (or die trying) */
111 # if (SIZEOF_SHORT_INT == 2)
112 # define int16_t short int
114 # error "16 bit int type not found."
116 # if (SIZEOF_INT == 4)
119 # error "32 bit int type not found."
121 # if (SIZEOF_LONG_INT == 8)
122 # define int64_t long int
124 # if (SIZEOF_LONG_LONG_INT == 8)
125 # define int64_t long long int
127 # error "64 bit int type not found."
132 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
133 #ifndef HAVE_U_INTXX_T
134 # ifdef HAVE_UINTXX_T
135 # define u_int16_t uint16_t
136 # define u_int32_t uint32_t
137 # define u_int64_t uint64_t
139 # if (SIZEOF_SHORT_INT == 2)
140 # define u_int16_t unsigned short int
142 # error "16 bit int type not found."
144 # if (SIZEOF_INT == 4)
145 # define u_int32_t unsigned int
147 # error "32 bit int type not found."
149 # if (SIZEOF_LONG_INT == 8)
150 # define u_int64_t unsigned long int
152 # if (SIZEOF_LONG_LONG_INT == 8)
153 # define u_int64_t unsigned long long int
155 # error "64 bit int type not found."
161 /* If quad_t is not supplied, then supply it now. We can rely on int64_t */
162 /* being defined by the above */
164 # define quad_t int64_t
167 #ifndef _PATH_LASTLOG
168 # ifdef LASTLOG_LOCATION
169 # define _PATH_LASTLOG LASTLOG_LOCATION
175 # define _PATH_UTMP UTMP_FILE
177 # define _PATH_UTMP "/var/adm/utmp"
183 # define _PATH_WTMP WTMP_FILE
185 # define _PATH_WTMP "/var/adm/wtmp"
190 # define _PATH_BSHELL "/bin/sh"
193 #ifndef _PATH_STDPATH
194 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
197 #ifndef _PATH_DEVNULL
198 # define _PATH_DEVNULL "/dev/null"
201 #ifndef _PATH_MAILDIR
203 # define _PATH_MAILDIR MAILDIR
208 # define MAX(a,b) (((a)>(b))?(a):(b))
209 # define MIN(a,b) (((a)<(b))?(a):(b))
213 #define timersub(a, b, result) \
215 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
216 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
217 if ((result)->tv_usec < 0) { \
218 --(result)->tv_sec; \
219 (result)->tv_usec += 1000000; \
226 # define PAM_STRERROR(a,b) pam_strerror((b))
228 # define PAM_STRERROR(a,b) pam_strerror((a),(b))