1 /*
2  * Copyright (C) 1999-2002 Mark Hessling <M.Hessling@qut.edu.au>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 
19 /*
20  * For platforms that don't use autoconf, put these here...
21  */
22 
23 #if defined(DOS) && defined(__EMX__)
24 # define HAVE_ASSERT_H        1
25 # define HAVE_GETOPT_H        1
26 # define HAVE_CTYPE_H         1
27 # define HAVE_IO_H            1
28 # define HAVE_LIMITS_H        1
29 # define HAVE_MALLOC_H        1
30 # define HAVE_SETJMP_H        1
31 # define HAVE_SIGNAL_H        1
32 # define HAVE_STDARG_H        1
33 # define HAVE_STDLIB_H        1
34 # define HAVE_SYS_STAT_H      1
35 # define HAVE_SYS_TYPES_H     1
36 # define HAVE_STRING_H        1
37 # define HAVE_UNISTD_H        1
38 # define HAVE__FULLPATH       1
39 # define HAVE_GETOPT          1
40 # define HAVE_PUTENV          1
41 # define HAVE_GETTIMEOFDAY    1
42 # define HAVE_FTRUNCATE       1
43 # define HAVE_MEMCPY          1
44 # define HAVE_MEMMOVE         1
45 # define HAVE_STRERROR        1
46 # define HAVE_VSPRINTF        1
47 # define TIME_WITH_SYS_TIME   1
48 # define HAVE_FCNTL_H         1
49 #endif
50 
51 #if (defined(OS2) || defined(__OS2__)) && defined(__EMX__)
52 # define HAVE_ASSERT_H        1
53 # define HAVE_GETOPT_H        1
54 # define HAVE_CTYPE_H         1
55 # define HAVE_FTRUNCATE       1
56 # define HAVE_GETOPT          1
57 # define HAVE_GETTIMEOFDAY    1
58 # define HAVE_IO_H            1
59 # define HAVE_LIMITS_H        1
60 # define HAVE_MALLOC_H        1
61 # define HAVE_MEMCPY          1
62 # define HAVE_MEMMOVE         1
63 # define HAVE_PUTENV          1
64 # define HAVE_SETJMP_H        1
65 # define HAVE_SIGNAL_H        1
66 # define HAVE_STDARG_H        1
67 # define HAVE_STDLIB_H        1
68 # define HAVE_STRERROR        1
69 # define HAVE_STRING_H        1
70 # define HAVE_SYS_STAT_H      1
71 # define HAVE_SYS_TYPES_H     1
72 # define HAVE_TIME_H          1
73 # define HAVE_UNISTD_H        1
74 # define HAVE_VSPRINTF        1
75 # define HAVE__FULLPATH       1
76 # define TIME_WITH_SYS_TIME   1
77 # define HAVE_FCNTL_H         1
78 #endif
79 
80 #if (defined(OS2) || defined(__OS2__)) && defined(__IBMC__)
81 # define HAVE_ASSERT_H        1
82 # define HAVE_CTYPE_H         1
83 # define HAVE_FTRUNCATE       1
84 # define HAVE_GETTIMEOFDAY    1
85 # define HAVE_IO_H            1
86 # define HAVE_MEMCPY          1
87 # define HAVE_MEMMOVE         1
88 # define HAVE_PUTENV          1
89 # define HAVE_MEMORY_H        1
90 # define HAVE_STRING_H        1
91 # define HAVE_SETJMP_H        1
92 # define HAVE_ERRNO_H         1
93 # define HAVE_STDARG_H        1
94 # define HAVE_STDLIB_H        1
95 # define HAVE_STRERROR        1
96 # define HAVE_SYS_STAT_H      1
97 # define HAVE_VSPRINTF        1
98 # define HAVE__FULLPATH       1
99 # define TIME_WITH_SYS_TIME   1
100 #endif
101 
102 #if (defined(OS2) || defined(__OS2__)) && defined(__WATCOMC__)
103 # define HAVE_ASSERT_H        1
104 # define HAVE_CTYPE_H         1
105 # define HAVE_ERRNO_H         1
106 # define HAVE_IO_H            1
107 # define HAVE_MALLOC_H        1
108 # define HAVE_MEMCPY          1
109 # define HAVE_MEMMOVE         1
110 # define HAVE_PUTENV          1
111 # define HAVE_SETJMP_H        1
112 # define HAVE_STDARG_H        1
113 # define HAVE_STRERROR        1
114 # define HAVE_STRING_H        1
115 # define HAVE_PROCESS_H       1
116 # define HAVE_SYS_STAT_H      1
117 # define HAVE_UNISTD_H        1
118 # define HAVE_VSPRINTF        1
119 # define HAVE__FULLPATH       1
120 # define HAVE_FCNTL_H         1
121 #endif
122 
123 #if defined(WIN32) && defined(__WATCOMC__)
124 # define HAVE_ASSERT_H        1
125 # define HAVE_CTYPE_H         1
126 # define HAVE_FTIME           1
127 # define HAVE_IO_H            1
128 # define HAVE_MALLOC_H        1
129 # define HAVE_MEMCPY          1
130 # define HAVE_MEMMOVE         1
131 # define HAVE_SETENV          1
132 # define HAVE_SETJMP_H        1
133 # define HAVE_STDARG_H        1
134 # define HAVE_STRERROR        1
135 # define HAVE_SYS_STAT_H      1
136 # define HAVE_UNISTD_H        1
137 # define HAVE_VSPRINTF        1
138 # define HAVE__FULLPATH       1
139 # define HAVE__SPLITPATH2     1
140 /* # define HAVE_FTRUNCATE      1*/
141 # define HAVE_FCNTL_H         1
142 #endif
143 
144 #if defined(WIN32) && defined(_MSC_VER)
145 # define HAVE_ASSERT_H        1
146 # define HAVE_CTYPE_H         1
147 # define HAVE_ERRNO_H         1
148 # define HAVE_FTIME           1
149 # define HAVE_FTRUNCATE       1
150 # define HAVE_IO_H            1
151 # define HAVE_LIMITS_H        1
152 # define HAVE_MALLOC_H        1
153 # define HAVE_MEMCPY          1
154 # define HAVE_MEMMOVE         1
155 # define HAVE_SETJMP_H        1
156 # define HAVE_SIGNAL_H        1
157 # define HAVE_STDARG_H        1
158 # define HAVE_STDLIB_H        1
159 # define HAVE_STRERROR        1
160 # define HAVE_STRING_H        1
161 # define HAVE_SYS_STAT_H      1
162 # define HAVE_VFPRINTF        1
163 # define HAVE__FULLPATH       1
164 # define HAVE__SPLITPATH      1
165 # define HAVE_FCNTL_H         1
166 #endif
167 
168 #if defined(WIN32) && defined(__CYGWIN32__)
169 # define HAVE_ASSERT_H        1
170 # define HAVE_CTYPE_H         1
171 # define HAVE_FTRUNCATE       1
172 # define HAVE_GETTIMEOFDAY    1
173 # define HAVE_GRP_H           1
174 # define HAVE_IO_H            1
175 # define HAVE_LIMITS_H        1
176 # define HAVE_MALLOC_H        1
177 # define HAVE_MEMCPY          1
178 # define HAVE_MEMMOVE         1
179 # define HAVE_PROCESS_H       1
180 # define HAVE_PUTENV          1
181 # define HAVE_PWD_H           1
182 # define HAVE_SETJMP_H        1
183 # define HAVE_SIGNAL_H        1
184 # define HAVE_STDLIB_H        1
185 # define HAVE_STRERROR        1
186 # define HAVE_STRING_H        1
187 # define HAVE_SYS_STAT_H      1
188 # define HAVE_SYS_TYPES_H     1
189 # define HAVE_UNISTD_H        1
190 # define HAVE_VFPRINTF        1
191 # define TIME_WITH_SYS_TIME   1
192 /* # define HAVE_FULLPATH        1 */
193 #endif
194 
195 #if defined(WIN32) && defined(__MINGW32__)
196 # define HAVE_ASSERT_H        1
197 # define HAVE_CTYPE_H         1
198 # define HAVE_IO_H            1
199 # define HAVE_LIMITS_H        1
200 # define HAVE_MALLOC_H        1
201 # define HAVE_MEMCPY          1
202 # define HAVE_MEMMOVE         1
203 # define HAVE_PROCESS_H       1
204 # define HAVE_PUTENV          1
205 # define HAVE_SETJMP_H        1
206 # define HAVE_SIGNAL_H        1
207 # define HAVE_STDLIB_H        1
208 # define HAVE_STRERROR        1
209 # define HAVE_STRING_H        1
210 # define HAVE_SYS_STAT_H      1
211 # define HAVE_SYS_TYPES_H     1
212 # define HAVE_UNISTD_H        1
213 # define HAVE_VFPRINTF        1
214 # define TIME_WITH_SYS_TIME   1
215 /* # define HAVE_FTRUNCATE       1 */
216 /* # define HAVE_FULLPATH        1 */
217 /* # define HAVE_GETTIMEOFDAY    1 */
218 # define HAVE_FCNTL_H         1
219 #endif
220 
221 #if defined(WIN32) && defined(__LCC__)
222 # define HAVE_ASSERT_H        1
223 # define HAVE_CTYPE_H         1
224 # define HAVE_IO_H            1
225 # define HAVE_LIMITS_H        1
226 # define HAVE_MALLOC_H        1
227 # define HAVE_PROCESS_H       1
228 # define HAVE_SETJMP_H        1
229 # define HAVE_SIGNAL_H        1
230 # define HAVE_STDLIB_H        1
231 # define HAVE_STRING_H        1
232 # define HAVE_SYS_STAT_H      1
233 # define HAVE_SYS_TYPES_H     1
234 /* # define HAVE_UNISTD_H        1 */
235 # define HAVE_MEMCPY          1
236 # define HAVE_MEMMOVE         1
237 # define HAVE_PUTENV          1
238 # define HAVE_STRERROR        1
239 # define HAVE_VFPRINTF        1
240 # define TIME_WITH_SYS_TIME   1
241 /* # define HAVE_FTRUNCATE       1 */
242 /* # define HAVE_FULLPATH        1 */
243 /* # define HAVE_GETTIMEOFDAY    1 */
244 # define HAVE_FCNTL_H         1
245 #endif
246 
247 #if (defined(DOS) || defined(MSDOS)) && defined(DJGPP)
248 # define HAVE_ASSERT_H        1
249 # define HAVE_CTYPE_H         1
250 # define HAVE_FTRUNCATE       1
251 # define HAVE_GETOPT          1
252 # define HAVE_GETTIMEOFDAY    1
253 # define HAVE_IO_H            1
254 # define HAVE_LIMITS_H        1
255 # define HAVE_MALLOC_H        1
256 # define HAVE_MEMCPY          1
257 # define HAVE_MEMMOVE         1
258 # define HAVE_PUTENV          1
259 # define HAVE_RANDOM          1
260 # define HAVE_SETJMP_H        1
261 # define HAVE_STDARG_H        1
262 # define HAVE_STRERROR        1
263 # define HAVE_STRING_H        1
264 # define HAVE_SYS_STAT_H      1
265 # define HAVE_SYS_TYPES_H     1
266 # define HAVE_TRUENAME        1
267 # define HAVE_UNISTD_H        1
268 # define HAVE_USLEEP          1
269 # define HAVE_VFPRINTF        1
270 # define TIME_WITH_SYS_TIME   1
271 # ifndef _MAX_PATH
272 #  define _MAX_PATH           PATH_MAX
273 # endif
274 # define HAVE_FCNTL_H         1
275 #endif
276 
277 #if defined(_AMIGA)
278 # define HAVE_ASSERT_H        1
279 # define HAVE_MEMCPY          1
280 # define HAVE_MEMMOVE         1
281 # define HAVE_PUTENV          1
282 # define HAVE_SETJMP_H        1
283 # define HAVE_STRERROR        1
284 # define HAVE_SYS_STAT_H      1
285 # define HAVE_UNISTD_H        1
286 # define HAVE_VFPRINTF        1
287 # define UNIX                 1
288 # define HAVE_FCNTL_H         1
289 #endif
290