1 | /*
|
---|
2 | * User definable configuration options
|
---|
3 | */
|
---|
4 |
|
---|
5 | /* Undefine if you don't want talk emulation */
|
---|
6 | #undef EMULATE_TALK
|
---|
7 |
|
---|
8 | /* Define if you want the connection to be probed */
|
---|
9 | /* XXX Not working yet, so ignore this for now */
|
---|
10 | #undef PROBE_CONN
|
---|
11 |
|
---|
12 | /* Define to 1 if you want KEEPALIVE timers */
|
---|
13 | #define DO_KEEPALIVE 0
|
---|
14 |
|
---|
15 | /* Define to MAX interfaces you expect to use at once */
|
---|
16 | /* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */
|
---|
17 | /* MAX_PPP_INTERFACES determines max. number of PPP interfaces */
|
---|
18 | #define MAX_INTERFACES 1
|
---|
19 | #define MAX_PPP_INTERFACES 1
|
---|
20 |
|
---|
21 | /* Define if you want slirp's socket in /tmp */
|
---|
22 | /* XXXXXX Do this in ./configure */
|
---|
23 | #undef USE_TMPSOCKET
|
---|
24 |
|
---|
25 | /* Define if you want slirp to use cfsetXspeed() on the terminal */
|
---|
26 | #undef DO_CFSETSPEED
|
---|
27 |
|
---|
28 | /* Define this if you want slirp to write to the tty as fast as it can */
|
---|
29 | /* This should only be set if you are using load-balancing, slirp does a */
|
---|
30 | /* pretty good job on single modems already, and seting this will make */
|
---|
31 | /* interactive sessions less responsive */
|
---|
32 | /* XXXXX Talk about having fast modem as unit 0 */
|
---|
33 | #undef FULL_BOLT
|
---|
34 |
|
---|
35 | /*
|
---|
36 | * Define if you want slirp to use less CPU
|
---|
37 | * You will notice a small lag in interactive sessions, but it's not that bad
|
---|
38 | * Things like Netscape/ftp/etc. are completely unaffected
|
---|
39 | * This is mainly for sysadmins who have many slirp users
|
---|
40 | */
|
---|
41 | #undef USE_LOWCPU
|
---|
42 |
|
---|
43 | /*********************************************************/
|
---|
44 | /*
|
---|
45 | * Autoconf defined configuration options
|
---|
46 | * You shouldn't need to touch any of these
|
---|
47 | */
|
---|
48 |
|
---|
49 | #ifdef _MSC_VER
|
---|
50 | #undef HAVE_UNISTD_H
|
---|
51 | #else
|
---|
52 | /* Define if you have unistd.h */
|
---|
53 | #define HAVE_UNISTD_H
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | /* Define if you have stdlib.h */
|
---|
57 | #define HAVE_STDLIB_H
|
---|
58 |
|
---|
59 | /* Define if you have sys/ioctl.h */
|
---|
60 | #undef HAVE_SYS_IOCTL_H
|
---|
61 | #ifndef RT_OS_WINDOWS
|
---|
62 | # define HAVE_SYS_IOCTL_H
|
---|
63 | #endif
|
---|
64 |
|
---|
65 | /* Define if you have sys/filio.h */
|
---|
66 | #undef HAVE_SYS_FILIO_H
|
---|
67 | #ifdef __APPLE__
|
---|
68 | #define HAVE_SYS_FILIO_H
|
---|
69 | #endif
|
---|
70 |
|
---|
71 | /* Define according to how time.h should be included */
|
---|
72 | #define TIME_WITH_SYS_TIME 0
|
---|
73 | #undef HAVE_SYS_TIME_H
|
---|
74 |
|
---|
75 | /* Define if you have sys/bitypes.h */
|
---|
76 | #undef HAVE_SYS_BITYPES_H
|
---|
77 |
|
---|
78 | /* Define if the machine is big endian */
|
---|
79 | /*#undef WORDS_BIGENDIAN */
|
---|
80 |
|
---|
81 | /* Define if you have readv */
|
---|
82 | #undef HAVE_READV
|
---|
83 |
|
---|
84 | /* Define if iovec needs to be declared */
|
---|
85 | #undef DECLARE_IOVEC
|
---|
86 | #ifdef RT_OS_WINDOWS
|
---|
87 | # define DECLARE_IOVEC
|
---|
88 | #endif
|
---|
89 |
|
---|
90 | /* Define if you have a POSIX.1 sys/wait.h */
|
---|
91 | #undef HAVE_SYS_WAIT_H
|
---|
92 |
|
---|
93 | /* Define if you have sys/select.h */
|
---|
94 | #undef HAVE_SYS_SELECT_H
|
---|
95 | #ifndef RT_OS_WINDOWS
|
---|
96 | # define HAVE_SYS_SELECT_H
|
---|
97 | #endif
|
---|
98 |
|
---|
99 | /* Define if you have strings.h */
|
---|
100 | #define HAVE_STRING_H
|
---|
101 |
|
---|
102 | /* Define if you have arpa/inet.h */
|
---|
103 | #undef HAVE_ARPA_INET_H
|
---|
104 | #ifndef RT_OS_WINDOWS
|
---|
105 | # define HAVE_ARPA_INET_H
|
---|
106 | #endif
|
---|
107 |
|
---|
108 | /* Define if you have sys/signal.h */
|
---|
109 | #undef HAVE_SYS_SIGNAL_H
|
---|
110 |
|
---|
111 | /* Define if you have sys/stropts.h */
|
---|
112 | #undef HAVE_SYS_STROPTS_H
|
---|
113 |
|
---|
114 | /* Define to whatever your compiler thinks inline should be */
|
---|
115 | #if defined(_MSC_VER) && !defined(__cplusplus)
|
---|
116 | # define inline _inline
|
---|
117 | #else
|
---|
118 | # define inline inline
|
---|
119 | #endif
|
---|
120 |
|
---|
121 | /* Define to whatever your compiler thinks const should be */
|
---|
122 | #define const const
|
---|
123 |
|
---|
124 | /* Define if you don't have u_int32_t etc. typedef'd */
|
---|
125 | #undef NEED_TYPEDEFS
|
---|
126 | #ifdef __sun__
|
---|
127 | #define NEED_TYPEDEFS
|
---|
128 | #endif
|
---|
129 |
|
---|
130 | /* Define to sizeof(char) */
|
---|
131 | #define SIZEOF_CHAR 1
|
---|
132 |
|
---|
133 | /* Define to sizeof(short) */
|
---|
134 | #define SIZEOF_SHORT 2
|
---|
135 |
|
---|
136 | /* Define to sizeof(int) */
|
---|
137 | #define SIZEOF_INT 4
|
---|
138 |
|
---|
139 | /* Define to sizeof(char *) */
|
---|
140 | #define HOST_LONG_BITS ARCH_BITS
|
---|
141 | #define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
|
---|
142 |
|
---|
143 | /* Define if you have random() */
|
---|
144 | #undef HAVE_RANDOM
|
---|
145 |
|
---|
146 | /* Define if you have srandom() */
|
---|
147 | #undef HAVE_SRANDOM
|
---|
148 |
|
---|
149 | /* Define if you have inet_aton */
|
---|
150 | #undef HAVE_INET_ATON
|
---|
151 | #ifndef RT_OS_WINDOWS
|
---|
152 | # define HAVE_INET_ATON
|
---|
153 | #endif
|
---|
154 |
|
---|
155 | /* Define if you have setenv */
|
---|
156 | #undef HAVE_SETENV
|
---|
157 |
|
---|
158 | /* Define if you have index() */
|
---|
159 | #undef HAVE_INDEX
|
---|
160 |
|
---|
161 | /* Define if you have bcmp() */
|
---|
162 | #undef HAVE_BCMP
|
---|
163 |
|
---|
164 | /* Define if you have drand48 */
|
---|
165 | #undef HAVE_DRAND48
|
---|
166 |
|
---|
167 | /* Define if you have memmove */
|
---|
168 | #define HAVE_MEMMOVE
|
---|
169 |
|
---|
170 | /* Define if you have gethostid */
|
---|
171 | #undef HAVE_GETHOSTID
|
---|
172 | #ifdef RT_OS_OS2
|
---|
173 | # define HAVE_GETHOSTID
|
---|
174 | #endif
|
---|
175 |
|
---|
176 | /* Define if you DON'T have unix-domain sockets */
|
---|
177 | #undef NO_UNIX_SOCKETS
|
---|
178 | #ifdef RT_OS_WINDOWS
|
---|
179 | # define NO_UNIX_SOCKETS
|
---|
180 | #endif
|
---|
181 |
|
---|
182 | /* Define if gettimeofday only takes one argument */
|
---|
183 | #undef GETTIMEOFDAY_ONE_ARG
|
---|
184 |
|
---|
185 | /* Define if you have revoke() */
|
---|
186 | #undef HAVE_REVOKE
|
---|
187 |
|
---|
188 | /* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
|
---|
189 | #undef HAVE_GRANTPT
|
---|
190 |
|
---|
191 | /* Define if you have fchmod */
|
---|
192 | #undef HAVE_FCHMOD
|
---|
193 |
|
---|
194 | /* Define if you have <sys/type32.h> */
|
---|
195 | #undef HAVE_SYS_TYPES32_H
|
---|