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