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
65 /* ******************* Shouldn't need to edit below this line ************** */
67 # include <sys/types.h> /* For u_intXX_t */
68 # include <sys/socket.h> /* For SHUT_XXXX */
71 # include <paths.h> /* For _PATH_XXX */
74 #ifdef HAVE_SYS_TIME_H
75 # include <sys/time.h> /* For timersub */
81 SHUT_RD = 0, /* No more receptions. */
82 #define SHUT_RD SHUT_RD
83 SHUT_WR, /* No more transmissions. */
84 #define SHUT_WR SHUT_WR
85 SHUT_RDWR /* No more receptions or transmissions. */
86 #define SHUT_RDWR SHUT_RDWR
90 /* If sys/types.h does not supply intXX_t, supply them ourselves */
93 # if (SIZEOF_SHORT_INT == 2)
94 # define int16_t short int
96 # error "16 bit int type not found."
98 # if (SIZEOF_INT == 4)
101 # error "32 bit int type not found."
103 # if (SIZEOF_LONG_INT == 8)
104 # define int64_t long int
106 # if (SIZEOF_LONG_LONG_INT == 8)
107 # define int64_t long long int
109 # error "64 bit int type not found."
114 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
115 #ifndef HAVE_U_INTXX_T
116 # ifdef HAVE_UINTXX_T
117 # define u_int16_t uint16_t
118 # define u_int32_t uint32_t
119 # define u_int64_t uint64_t
121 # if (SIZEOF_SHORT_INT == 2)
122 # define u_int16_t unsigned short int
124 # error "16 bit int type not found."
126 # if (SIZEOF_INT == 4)
127 # define u_int32_t unsigned int
129 # error "32 bit int type not found."
131 # if (SIZEOF_LONG_INT == 8)
132 # define u_int64_t unsigned long int
134 # if (SIZEOF_LONG_LONG_INT == 8)
135 # define u_int64_t unsigned long long int
137 # error "64 bit int type not found."
143 /* If quad_t is not supplied, then supply it now. We can rely on int64_t */
144 /* being defined by the above */
146 # define quad_t int64_t
149 #ifndef _PATH_LASTLOG
150 # ifdef LASTLOG_LOCATION
151 # define _PATH_LASTLOG LASTLOG_LOCATION
157 # define _PATH_UTMP UTMP_FILE
163 # define _PATH_WTMP WTMP_FILE
168 # define _PATH_BSHELL "/bin/sh"
171 #ifndef _PATH_STDPATH
172 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
175 #ifndef _PATH_MAILDIR
177 # define _PATH_MAILDIR MAILDIR
182 # define MAX(a,b) (((a)>(b))?(a):(b))
183 # define MIN(a,b) (((a)<(b))?(a):(b))
187 #define timersub(a, b, result) \
189 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
190 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
191 if ((result)->tv_usec < 0) { \
192 --(result)->tv_sec; \
193 (result)->tv_usec += 1000000; \