]>
Commit | Line | Data |
---|---|---|
5881cd60 | 1 | /* config.h.in. Generated by hand, don't use autoheader. */ |
2 | ||
d4f11b59 | 3 | /* SSL directory. */ |
4 | #undef ssldir | |
5 | ||
a7effaac | 6 | /* Define if you want to disable lastlog support */ |
7 | #undef DISABLE_LASTLOG | |
8 | ||
f601d847 | 9 | /* Location of lastlog file */ |
10 | #undef LASTLOG_LOCATION | |
11 | ||
2b942fe0 | 12 | /* If lastlog is a directory */ |
13 | #undef LASTLOG_IS_DIR | |
14 | ||
f601d847 | 15 | /* Location of random number pool */ |
4cca272e | 16 | #undef RANDOM_POOL |
17 | ||
18 | /* Are we using the Entropy gathering daemon */ | |
19 | #undef HAVE_EGD | |
20 | ||
5881cd60 | 21 | /* Define if your ssl headers are included with #include <ssl/header.h> */ |
22 | #undef HAVE_SSL | |
23 | ||
24 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | |
25 | #undef HAVE_OPENSSL | |
4cca272e | 26 | |
27 | /* Define is utmp.h has a ut_host field */ | |
28 | #undef HAVE_HOST_IN_UTMP | |
29 | ||
8946db53 | 30 | /* Define is utmpx.h has a ut_host field */ |
31 | #undef HAVE_HOST_IN_UTMPX | |
32 | ||
f498ed15 | 33 | /* Define is utmpx.h has a syslen field */ |
34 | #undef HAVE_SYSLEN_IN_UTMPX | |
35 | ||
92f90c57 | 36 | /* Define if you want to use utmpx */ |
37 | #undef USE_UTMPX | |
38 | ||
4cca272e | 39 | /* Define is libutil has login() function */ |
40 | #undef HAVE_LIBUTIL_LOGIN | |
6a17f9c2 | 41 | |
f601d847 | 42 | /* Define if you want external askpass support */ |
dad9a31e | 43 | #undef USE_EXTERNAL_ASKPASS |
045672f9 | 44 | |
f601d847 | 45 | /* Define if libc defines __progname */ |
46 | #undef HAVE___PROGNAME | |
47 | ||
91b8065d | 48 | /* Define if you want Kerberos 4 support */ |
49 | #undef KRB4 | |
50 | ||
51 | /* Define if you want AFS support */ | |
52 | #undef AFS | |
53 | ||
54 | /* Define if you want S/Key support */ | |
55 | #undef SKEY | |
56 | ||
57 | /* Define if you want TCP Wrappers support */ | |
58 | #undef LIBWRAP | |
59 | ||
beb43d31 | 60 | /* Define if your libraries define login() */ |
61 | #undef HAVE_LOGIN | |
62 | ||
63 | /* Define if your libraries define daemon() */ | |
64 | #undef HAVE_DAEMON | |
65 | ||
a7effaac | 66 | /* Define if xauth is found in your path */ |
67 | #undef XAUTH_PATH | |
68 | ||
f498ed15 | 69 | /* Define if rsh is found in your path */ |
70 | #undef RSH_PATH | |
71 | ||
caf3bc51 | 72 | /* Define if you want to allow MD5 passwords */ |
73 | #undef HAVE_MD5_PASSWORDS | |
74 | ||
a7effaac | 75 | /* Define if you want to disable shadow passwords */ |
76 | #undef DISABLE_SHADOW | |
77 | ||
78 | /* Define if you want have trusted HPUX */ | |
79 | #undef HAVE_HPUX_TRUSTED_SYSTEM_PW | |
80 | ||
96ad4350 | 81 | /* Define if you have an old version of PAM which takes only one argument */ |
82 | /* to pam_strerror */ | |
83 | #undef HAVE_OLD_PAM | |
84 | ||
f498ed15 | 85 | /* Set this to your mail directory if you don't have maillock.h */ |
86 | #undef MAIL_DIRECTORY | |
87 | ||
2b942fe0 | 88 | /* Data types */ |
89 | #undef HAVE_QUAD_T | |
90 | #undef HAVE_INTXX_T | |
91 | #undef HAVE_U_INTXX_T | |
92 | #undef HAVE_UINTXX_T | |
93 | ||
a408af76 | 94 | /* Define if you have /dev/ptmx */ |
95 | #undef HAVE_DEV_PTMX | |
96 | ||
97 | /* Define if you have /dev/ptc */ | |
98 | #undef HAVE_DEV_PTS_AND_PTC | |
99 | ||
a7effaac | 100 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ |
101 | #undef IPADDR_IN_DISPLAY | |
847e8865 | 102 | |
dcf3fbb2 | 103 | @BOTTOM@ |
104 | ||
045672f9 | 105 | /* ******************* Shouldn't need to edit below this line ************** */ |
6a17f9c2 | 106 | |
8b241e50 | 107 | #include <sys/types.h> /* For u_intXX_t */ |
108 | #include <sys/socket.h> /* For SHUT_XXXX */ | |
2b942fe0 | 109 | |
110 | #ifdef HAVE_PATHS_H | |
111 | # include <paths.h> /* For _PATH_XXX */ | |
112 | #endif | |
793edc37 | 113 | |
8b241e50 | 114 | #ifdef HAVE_UTMP_H |
115 | # include <utmp.h> /* For _PATH_XXX */ | |
116 | #endif | |
117 | ||
92f90c57 | 118 | #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) |
8946db53 | 119 | # include <utmpx.h> /* For _PATH_XXX */ |
120 | #endif | |
121 | ||
b09a984b | 122 | #ifdef HAVE_SYS_TIME_H |
123 | # include <sys/time.h> /* For timersub */ | |
124 | #endif | |
125 | ||
8b241e50 | 126 | #ifdef HAVE_MAILLOCK_H |
127 | #include <maillock.h> | |
128 | #endif | |
129 | ||
6a17f9c2 | 130 | #ifndef SHUT_RDWR |
131 | enum | |
132 | { | |
8946db53 | 133 | SHUT_RD = 0, /* No more receptions. */ |
134 | SHUT_WR, /* No more transmissions. */ | |
135 | SHUT_RDWR /* No more receptions or transmissions. */ | |
6a17f9c2 | 136 | }; |
8946db53 | 137 | # define SHUT_RD SHUT_RD |
138 | # define SHUT_WR SHUT_WR | |
139 | # define SHUT_RDWR SHUT_RDWR | |
6a17f9c2 | 140 | #endif |
92da7197 | 141 | |
2b942fe0 | 142 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ |
143 | /* (or die trying) */ | |
144 | #ifndef HAVE_INTXX_T | |
145 | # if (SIZEOF_SHORT_INT == 2) | |
146 | # define int16_t short int | |
147 | # else | |
148 | # error "16 bit int type not found." | |
149 | # endif | |
150 | # if (SIZEOF_INT == 4) | |
151 | # define int32_t int | |
152 | # else | |
153 | # error "32 bit int type not found." | |
154 | # endif | |
155 | # if (SIZEOF_LONG_INT == 8) | |
156 | # define int64_t long int | |
157 | # else | |
158 | # if (SIZEOF_LONG_LONG_INT == 8) | |
159 | # define int64_t long long int | |
160 | # else | |
161 | # error "64 bit int type not found." | |
162 | # endif | |
163 | # endif | |
92da7197 | 164 | #endif |
165 | ||
2b942fe0 | 166 | /* If sys/types.h does not supply u_intXX_t, supply them ourselves */ |
167 | #ifndef HAVE_U_INTXX_T | |
168 | # ifdef HAVE_UINTXX_T | |
169 | # define u_int16_t uint16_t | |
170 | # define u_int32_t uint32_t | |
171 | # define u_int64_t uint64_t | |
172 | # else | |
173 | # if (SIZEOF_SHORT_INT == 2) | |
174 | # define u_int16_t unsigned short int | |
175 | # else | |
176 | # error "16 bit int type not found." | |
177 | # endif | |
178 | # if (SIZEOF_INT == 4) | |
179 | # define u_int32_t unsigned int | |
180 | # else | |
181 | # error "32 bit int type not found." | |
182 | # endif | |
183 | # if (SIZEOF_LONG_INT == 8) | |
184 | # define u_int64_t unsigned long int | |
185 | # else | |
186 | # if (SIZEOF_LONG_LONG_INT == 8) | |
187 | # define u_int64_t unsigned long long int | |
188 | # else | |
189 | # error "64 bit int type not found." | |
190 | # endif | |
191 | # endif | |
192 | # endif | |
92da7197 | 193 | #endif |
f601d847 | 194 | |
2b942fe0 | 195 | /* If quad_t is not supplied, then supply it now. We can rely on int64_t */ |
196 | /* being defined by the above */ | |
197 | #ifndef HAVE_QUAD_T | |
198 | # define quad_t int64_t | |
793edc37 | 199 | #endif |
200 | ||
8946db53 | 201 | /* If _PATH_LASTLOG is not defined by system headers, set it to the */ |
202 | /* lastlog file detected by autoconf */ | |
f601d847 | 203 | #ifndef _PATH_LASTLOG |
204 | # ifdef LASTLOG_LOCATION | |
205 | # define _PATH_LASTLOG LASTLOG_LOCATION | |
206 | # endif | |
207 | #endif | |
208 | ||
209 | #ifndef _PATH_UTMP | |
f498ed15 | 210 | # ifdef UTMP_FILE |
211 | # define _PATH_UTMP UTMP_FILE | |
cf8dd513 | 212 | # else |
f498ed15 | 213 | # define _PATH_UTMP "/var/adm/utmp" |
f601d847 | 214 | # endif |
215 | #endif | |
216 | ||
217 | #ifndef _PATH_WTMP | |
f498ed15 | 218 | # ifdef WTMP_FILE |
219 | # define _PATH_WTMP WTMP_FILE | |
cf8dd513 | 220 | # else |
f498ed15 | 221 | # define _PATH_WTMP "/var/adm/wtmp" |
f601d847 | 222 | # endif |
223 | #endif | |
224 | ||
225 | #ifndef _PATH_BSHELL | |
226 | # define _PATH_BSHELL "/bin/sh" | |
227 | #endif | |
228 | ||
229 | #ifndef _PATH_STDPATH | |
230 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:" | |
231 | #endif | |
232 | ||
8b241e50 | 233 | #ifndef _PATH_DEVNULL |
234 | # define _PATH_DEVNULL "/dev/null" | |
235 | #endif | |
236 | ||
f498ed15 | 237 | #ifndef MAILDIR |
238 | # define MAILDIR MAIL_DIRECTORY | |
f601d847 | 239 | #endif |
793edc37 | 240 | |
f498ed15 | 241 | #if !defined(_PATH_MAILDIR) && defined(MAILDIR) |
242 | # define _PATH_MAILDIR MAILDIR | |
243 | #endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */ | |
244 | ||
793edc37 | 245 | #ifndef MAX |
246 | # define MAX(a,b) (((a)>(b))?(a):(b)) | |
247 | # define MIN(a,b) (((a)<(b))?(a):(b)) | |
248 | #endif | |
b09a984b | 249 | |
250 | #ifndef timersub | |
251 | #define timersub(a, b, result) \ | |
252 | do { \ | |
253 | (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ | |
254 | (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ | |
255 | if ((result)->tv_usec < 0) { \ | |
256 | --(result)->tv_sec; \ | |
257 | (result)->tv_usec += 1000000; \ | |
258 | } \ | |
259 | } while (0) | |
b09a984b | 260 | #endif |
96ad4350 | 261 | |
8946db53 | 262 | /* In older versions of libpam, pam_strerror takes a single argument */ |
96ad4350 | 263 | #ifdef HAVE_OLD_PAM |
264 | # define PAM_STRERROR(a,b) pam_strerror((b)) | |
265 | #else | |
266 | # define PAM_STRERROR(a,b) pam_strerror((a),(b)) | |
267 | #endif | |
dad3b556 | 268 | |
269 | #ifndef __P | |
270 | # define __P(x) x | |
271 | #endif | |
8946db53 | 272 | |
4cf062cd | 273 | #if !defined(__GNUC__) || (__GNUC__ < 2) |
906a2515 | 274 | # define __attribute__(x) |
4cf062cd | 275 | #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ |
a7effaac | 276 | |
277 | #if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) | |
278 | # define seteuid(a) setreuid(-1,a) | |
279 | #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ | |
f498ed15 | 280 | |
281 | #ifndef HAVE_INNETGR | |
282 | # define innetgr(a,b,c,d) (0) | |
283 | #endif /* HAVE_INNETGR */ | |
284 | ||
285 | #ifndef _PATH_RSH | |
286 | # ifdef RSH_PATH | |
287 | # define _PATH_RSH RSH_PATH | |
288 | # endif /* RSH_PATH */ | |
289 | #endif /* _PATH_RSH */ |