Commit | Line | Data |
8d063cd8 |
1 | case $CONFIG in |
2 | '') |
2304df62 |
3 | if test -f config.sh; then TOP=.; |
4 | elif test -f ../config.sh; then TOP=..; |
5 | elif test -f ../../config.sh; then TOP=../..; |
6 | elif test -f ../../../config.sh; then TOP=../../..; |
7 | elif test -f ../../../../config.sh; then TOP=../../../..; |
8 | else |
9 | echo "Can't find config.sh."; exit 1 |
10 | fi |
11 | . $TOP/config.sh |
12 | ;; |
13 | esac |
14 | case "$0" in |
15 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
8d063cd8 |
16 | esac |
17 | echo "Extracting config.h (with variable substitutions)" |
a26b0745 |
18 | sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' |
2304df62 |
19 | /* |
20 | * This file was produced by running the config_h.SH script, which |
8d063cd8 |
21 | * gets its values from config.sh, which is generally produced by |
22 | * running Configure. |
23 | * |
24 | * Feel free to modify any of this as the need arises. Note, however, |
1aef975c |
25 | * that running config_h.SH again will wipe out any changes you've made. |
26 | * For a more permanent change edit config.sh and rerun config_h.SH. |
2304df62 |
27 | * |
760ac839 |
28 | * \$Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $ |
8d063cd8 |
29 | */ |
30 | |
2304df62 |
31 | /* Configuration time: $cf_time |
32 | * Configured by: $cf_by |
33 | * Target system: $myuname |
34 | */ |
8d063cd8 |
35 | |
2304df62 |
36 | #ifndef _config_h_ |
37 | #define _config_h_ |
38 | |
a0d0e21e |
39 | /* MEM_ALIGNBYTES: |
40 | * This symbol contains the number of bytes required to align a |
41 | * double. Usual values are 2, 4 and 8. |
42 | */ |
43 | #define MEM_ALIGNBYTES $alignbytes /**/ |
44 | |
774d564b |
45 | /* ARCHNAME: |
46 | * This symbol holds a string representing the architecture name. |
47 | * It may be used to construct an architecture-dependant pathname |
48 | * where library files may be held under a private library, for |
49 | * instance. |
50 | */ |
51 | #define ARCHNAME "$archname" /**/ |
52 | |
2304df62 |
53 | /* BIN: |
54 | * This symbol holds the path of the bin directory where the package will |
55 | * be installed. Program must be prepared to deal with ~name substitution. |
a687059c |
56 | */ |
2ae324a7 |
57 | /* BIN_EXP: |
58 | * This symbol is the filename expanded version of the BIN symbol, for |
59 | * programs that do not want to deal with that at run-time. |
60 | */ |
2304df62 |
61 | #define BIN "$bin" /**/ |
2ae324a7 |
62 | #define BIN_EXP "$binexp" /**/ |
a687059c |
63 | |
ecfc5424 |
64 | /* CAT2: |
65 | * This macro catenates 2 tokens together. |
66 | */ |
a26b0745 |
67 | /* STRINGIFY: |
68 | * This macro surrounds its token with double quotes. |
69 | */ |
ecfc5424 |
70 | #if $cpp_stuff == 1 |
71 | #define CAT2(a,b)a/**/b |
72 | #define CAT3(a,b,c)a/**/b/**/c |
73 | #define CAT4(a,b,c,d)a/**/b/**/c/**/d |
74 | #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e |
75 | #define STRINGIFY(a)"a" |
76 | /* If you can get stringification with catify, tell me how! */ |
77 | #endif |
78 | #if $cpp_stuff == 42 |
79 | #define CAT2(a,b)a ## b |
80 | #define CAT3(a,b,c)a ## b ## c |
81 | #define CAT4(a,b,c,d)a ## b ## c ## d |
82 | #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e |
83 | #define StGiFy(a)# a |
84 | #define STRINGIFY(a)StGiFy(a) |
85 | #define SCAT2(a,b)StGiFy(a) StGiFy(b) |
86 | #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c) |
87 | #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) |
88 | #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e) |
89 | #endif |
90 | #ifndef CAT2 |
91 | #include "Bletch: How does this C preprocessor catenate tokens?" |
92 | #endif |
93 | |
2304df62 |
94 | /* CPPSTDIN: |
36ce8bec |
95 | * This symbol contains the first part of the string which will invoke |
96 | * the C preprocessor on the standard input and produce to standard |
2304df62 |
97 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
98 | * call a wrapper. See CPPRUN. |
36ce8bec |
99 | */ |
2304df62 |
100 | /* CPPMINUS: |
36ce8bec |
101 | * This symbol contains the second part of the string which will invoke |
102 | * the C preprocessor on the standard input and produce to standard |
378cc40b |
103 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
36ce8bec |
104 | * to specify standard input, otherwise the value is "". |
105 | */ |
378cc40b |
106 | #define CPPSTDIN "$cppstdin" |
36ce8bec |
107 | #define CPPMINUS "$cppminus" |
108 | |
a0d0e21e |
109 | /* HAS_ALARM: |
110 | * This symbol, if defined, indicates that the alarm routine is |
111 | * available. |
112 | */ |
113 | #$d_alarm HAS_ALARM /**/ |
114 | |
ecfc5424 |
115 | /* HASATTRIBUTE: |
116 | * This symbol indicates the C compiler can check for function attributes, |
117 | * such as printf formats. This is normally only supported by GNU cc. |
118 | */ |
119 | #$d_attribut HASATTRIBUTE /**/ |
120 | #ifndef HASATTRIBUTE |
121 | #define __attribute__(_arg_) |
122 | #endif |
123 | |
2304df62 |
124 | /* HAS_BCMP: |
125 | * This symbol is defined if the bcmp() routine is available to |
126 | * compare blocks of memory. |
a687059c |
127 | */ |
2304df62 |
128 | #$d_bcmp HAS_BCMP /**/ |
a687059c |
129 | |
2304df62 |
130 | /* HAS_BCOPY: |
131 | * This symbol is defined if the bcopy() routine is available to |
132 | * copy blocks of memory. |
c51b80d1 |
133 | */ |
2304df62 |
134 | #$d_bcopy HAS_BCOPY /**/ |
c51b80d1 |
135 | |
2304df62 |
136 | /* HAS_BZERO: |
137 | * This symbol is defined if the bzero() routine is available to |
138 | * set a memory block to 0. |
0d3e774c |
139 | */ |
2304df62 |
140 | #$d_bzero HAS_BZERO /**/ |
0d3e774c |
141 | |
a0d0e21e |
142 | /* CASTI32: |
143 | * This symbol is defined if the C compiler can cast negative |
144 | * or large floating point numbers to 32-bit ints. |
145 | */ |
146 | #$d_casti32 CASTI32 /**/ |
147 | |
2304df62 |
148 | /* CASTNEGFLOAT: |
149 | * This symbol is defined if the C compiler can cast negative |
150 | * numbers to unsigned longs, ints and shorts. |
b1248f16 |
151 | */ |
2304df62 |
152 | /* CASTFLAGS: |
7e1cf235 |
153 | * This symbol contains flags that say what difficulties the compiler |
154 | * has casting odd floating values to unsigned long: |
2304df62 |
155 | * 0 = ok |
7e1cf235 |
156 | * 1 = couldn't cast < 0 |
157 | * 2 = couldn't cast >= 0x80000000 |
232e078e |
158 | * 4 = couldn't cast in argument expression list |
7e1cf235 |
159 | */ |
2304df62 |
160 | #$d_castneg CASTNEGFLOAT /**/ |
161 | #define CASTFLAGS $castflags /**/ |
ed6116ce |
162 | |
a0d0e21e |
163 | /* HAS_CHOWN: |
164 | * This symbol, if defined, indicates that the chown routine is |
165 | * available. |
166 | */ |
167 | #$d_chown HAS_CHOWN /**/ |
168 | |
169 | /* HAS_CHROOT: |
170 | * This symbol, if defined, indicates that the chroot routine is |
171 | * available. |
172 | */ |
173 | #$d_chroot HAS_CHROOT /**/ |
174 | |
2304df62 |
175 | /* HAS_CHSIZE: |
87250799 |
176 | * This symbol, if defined, indicates that the chsize routine is available |
177 | * to truncate files. You might need a -lx to get this routine. |
178 | */ |
fe14fcc3 |
179 | #$d_chsize HAS_CHSIZE /**/ |
87250799 |
180 | |
ecfc5424 |
181 | /* VOID_CLOSEDIR: |
182 | * This symbol, if defined, indicates that the closedir() routine |
183 | * does not return a value. |
184 | */ |
185 | #$d_void_closedir VOID_CLOSEDIR /**/ |
186 | |
2304df62 |
187 | /* HASCONST: |
188 | * This symbol, if defined, indicates that this C compiler knows about |
189 | * the const type. There is no need to actually test for that symbol |
190 | * within your programs. The mere use of the "const" keyword will |
191 | * trigger the necessary tests. |
192 | */ |
193 | #$d_const HASCONST /**/ |
194 | #ifndef HASCONST |
195 | #define const |
196 | #endif |
197 | |
198 | /* HAS_CRYPT: |
2e1b3b7e |
199 | * This symbol, if defined, indicates that the crypt routine is available |
200 | * to encrypt passwords and the like. |
201 | */ |
2304df62 |
202 | #$d_crypt HAS_CRYPT /**/ |
2e1b3b7e |
203 | |
a0d0e21e |
204 | /* HAS_CUSERID: |
205 | * This symbol, if defined, indicates that the cuserid routine is |
206 | * available to get character login names. |
13281fa4 |
207 | */ |
a0d0e21e |
208 | #$d_cuserid HAS_CUSERID /**/ |
209 | |
210 | /* HAS_DBL_DIG: |
211 | * This symbol, if defined, indicates that this system's <float.h> |
212 | * or <limits.h> defines the symbol DBL_DIG, which is the number |
213 | * of significant digits in a double precision number. If this |
214 | * symbol is not defined, a guess of 15 is usually pretty good. |
215 | */ |
216 | #$d_dbl_dig HAS_DBL_DIG /* */ |
217 | |
218 | /* HAS_DIFFTIME: |
219 | * This symbol, if defined, indicates that the difftime routine is |
220 | * available. |
221 | */ |
222 | #$d_difftime HAS_DIFFTIME /**/ |
13281fa4 |
223 | |
ecfc5424 |
224 | /* HAS_DLERROR: |
225 | * This symbol, if defined, indicates that the dlerror routine is |
226 | * available to return a string describing the last error that |
227 | * occurred from a call to dlopen(), dlclose() or dlsym(). |
228 | */ |
229 | #$d_dlerror HAS_DLERROR /**/ |
230 | |
2304df62 |
231 | /* HAS_DUP2: |
232 | * This symbol, if defined, indicates that the dup2 routine is |
233 | * available to duplicate file descriptors. |
a687059c |
234 | */ |
2304df62 |
235 | #$d_dup2 HAS_DUP2 /**/ |
a687059c |
236 | |
2304df62 |
237 | /* HAS_FCHMOD: |
378cc40b |
238 | * This symbol, if defined, indicates that the fchmod routine is available |
239 | * to change mode of opened files. If unavailable, use chmod(). |
240 | */ |
2304df62 |
241 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b |
242 | |
2304df62 |
243 | /* HAS_FCHOWN: |
378cc40b |
244 | * This symbol, if defined, indicates that the fchown routine is available |
245 | * to change ownership of opened files. If unavailable, use chown(). |
246 | */ |
2304df62 |
247 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b |
248 | |
2304df62 |
249 | /* HAS_FCNTL: |
fe14fcc3 |
250 | * This symbol, if defined, indicates to the C program that |
251 | * the fcntl() function exists. |
a687059c |
252 | */ |
2304df62 |
253 | #$d_fcntl HAS_FCNTL /**/ |
a687059c |
254 | |
a0d0e21e |
255 | /* HAS_FGETPOS: |
256 | * This symbol, if defined, indicates that the fgetpos routine is |
257 | * available to get the file position indicator, similar to ftell(). |
258 | */ |
259 | #$d_fgetpos HAS_FGETPOS /**/ |
260 | |
2304df62 |
261 | /* FLEXFILENAMES: |
7e1cf235 |
262 | * This symbol, if defined, indicates that the system supports filenames |
263 | * longer than 14 characters. |
264 | */ |
265 | #$d_flexfnam FLEXFILENAMES /**/ |
266 | |
2304df62 |
267 | /* HAS_FLOCK: |
268 | * This symbol, if defined, indicates that the flock routine is |
a687059c |
269 | * available to do file locking. |
270 | */ |
2304df62 |
271 | #$d_flock HAS_FLOCK /**/ |
a687059c |
272 | |
a0d0e21e |
273 | /* HAS_FORK: |
274 | * This symbol, if defined, indicates that the fork routine is |
275 | * available. |
276 | */ |
277 | #$d_fork HAS_FORK /**/ |
278 | |
279 | /* HAS_FSETPOS: |
280 | * This symbol, if defined, indicates that the fsetpos routine is |
281 | * available to set the file position indicator, similar to fseek(). |
282 | */ |
283 | #$d_fsetpos HAS_FSETPOS /**/ |
284 | |
5f05dabc |
285 | /* HAS_GETTIMEOFDAY: |
286 | * This symbol, if defined, indicates that the gettimeofday() system |
287 | * call is available for a sub-second accuracy clock. Usually, the file |
288 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). |
289 | * The type "Timeval" should be used to refer to "struct timeval". |
290 | */ |
291 | #$d_gettimeod HAS_GETTIMEOFDAY /**/ |
292 | #ifdef HAS_GETTIMEOFDAY |
293 | #define Timeval struct timeval /* Structure used by gettimeofday() */ |
294 | #endif |
295 | |
2304df62 |
296 | /* HAS_GETGROUPS: |
378cc40b |
297 | * This symbol, if defined, indicates that the getgroups() routine is |
298 | * available to get the list of process groups. If unavailable, multiple |
299 | * groups are probably not supported. |
300 | */ |
5cd24f17 |
301 | /* HAS_SETGROUPS: |
302 | * This symbol, if defined, indicates that the setgroups() routine is |
303 | * available to set the list of process groups. If unavailable, multiple |
304 | * groups are probably not supported. |
305 | */ |
2304df62 |
306 | #$d_getgrps HAS_GETGROUPS /**/ |
5cd24f17 |
307 | #$d_setgrps HAS_SETGROUPS /**/ |
378cc40b |
308 | |
2304df62 |
309 | /* HAS_GETHOSTENT: |
310 | * This symbol, if defined, indicates that the gethostent routine is |
a687059c |
311 | * available to lookup host names in some data base or other. |
312 | */ |
2304df62 |
313 | #$d_gethent HAS_GETHOSTENT /**/ |
314 | |
315 | /* HAS_UNAME: |
316 | * This symbol, if defined, indicates that the C program may use the |
317 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME |
318 | * and PHOSTNAME. |
319 | */ |
320 | #$d_uname HAS_UNAME /**/ |
a687059c |
321 | |
a0d0e21e |
322 | /* HAS_GETLOGIN: |
323 | * This symbol, if defined, indicates that the getlogin routine is |
324 | * available to get the login name. |
325 | */ |
326 | #$d_getlogin HAS_GETLOGIN /**/ |
327 | |
2304df62 |
328 | /* HAS_GETPGRP2: |
d8f2e4cc |
329 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
330 | * routine is available to get the current process group. |
331 | */ |
2304df62 |
332 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
d8f2e4cc |
333 | |
a0d0e21e |
334 | /* HAS_GETPPID: |
335 | * This symbol, if defined, indicates that the getppid routine is |
336 | * available to get the parent process ID. |
337 | */ |
338 | #$d_getppid HAS_GETPPID /**/ |
339 | |
2304df62 |
340 | /* HAS_GETPRIORITY: |
341 | * This symbol, if defined, indicates that the getpriority routine is |
a687059c |
342 | * available to get a process's priority. |
343 | */ |
2304df62 |
344 | #$d_getprior HAS_GETPRIORITY /**/ |
a687059c |
345 | |
a0d0e21e |
346 | /* HAS_HTONL: |
347 | * This symbol, if defined, indicates that the htonl() routine (and |
348 | * friends htons() ntohl() ntohs()) are available to do network |
349 | * order byte swapping. |
350 | */ |
351 | /* HAS_HTONS: |
352 | * This symbol, if defined, indicates that the htons() routine (and |
353 | * friends htonl() ntohl() ntohs()) are available to do network |
354 | * order byte swapping. |
355 | */ |
356 | /* HAS_NTOHL: |
357 | * This symbol, if defined, indicates that the ntohl() routine (and |
358 | * friends htonl() htons() ntohs()) are available to do network |
359 | * order byte swapping. |
360 | */ |
361 | /* HAS_NTOHS: |
362 | * This symbol, if defined, indicates that the ntohs() routine (and |
363 | * friends htonl() htons() ntohl()) are available to do network |
364 | * order byte swapping. |
365 | */ |
366 | #$d_htonl HAS_HTONL /**/ |
367 | #$d_htonl HAS_HTONS /**/ |
368 | #$d_htonl HAS_NTOHL /**/ |
369 | #$d_htonl HAS_NTOHS /**/ |
370 | |
ecfc5424 |
371 | /* HAS_ISASCII: |
372 | * This manifest constant lets the C program know that isascii |
373 | * is available. |
374 | */ |
375 | #$d_isascii HAS_ISASCII /**/ |
376 | |
2304df62 |
377 | /* HAS_KILLPG: |
378cc40b |
378 | * This symbol, if defined, indicates that the killpg routine is available |
379 | * to kill process groups. If unavailable, you probably should use kill |
380 | * with a negative process number. |
381 | */ |
2304df62 |
382 | #$d_killpg HAS_KILLPG /**/ |
378cc40b |
383 | |
2304df62 |
384 | /* HAS_LINK: |
385 | * This symbol, if defined, indicates that the link routine is |
386 | * available to create hard links. |
0d3e774c |
387 | */ |
2304df62 |
388 | #$d_link HAS_LINK /**/ |
0d3e774c |
389 | |
ecfc5424 |
390 | /* HAS_LOCALECONV: |
391 | * This symbol, if defined, indicates that the localeconv routine is |
392 | * available for numeric and monetary formatting conventions. |
393 | */ |
394 | #$d_locconv HAS_LOCALECONV /**/ |
395 | |
a0d0e21e |
396 | /* HAS_LOCKF: |
397 | * This symbol, if defined, indicates that the lockf routine is |
398 | * available to do file locking. |
399 | */ |
400 | #$d_lockf HAS_LOCKF /**/ |
401 | |
2304df62 |
402 | /* HAS_LSTAT: |
403 | * This symbol, if defined, indicates that the lstat routine is |
404 | * available to do file stats on symbolic links. |
a687059c |
405 | */ |
2304df62 |
406 | #$d_lstat HAS_LSTAT /**/ |
a687059c |
407 | |
a0d0e21e |
408 | /* HAS_MBLEN: |
409 | * This symbol, if defined, indicates that the mblen routine is available |
410 | * to find the number of bytes in a multibye character. |
411 | */ |
412 | #$d_mblen HAS_MBLEN /**/ |
413 | |
414 | /* HAS_MBSTOWCS: |
415 | * This symbol, if defined, indicates that the mbstowcs routine is |
416 | * available to covert a multibyte string into a wide character string. |
417 | */ |
418 | #$d_mbstowcs HAS_MBSTOWCS /**/ |
419 | |
420 | /* HAS_MBTOWC: |
421 | * This symbol, if defined, indicates that the mbtowc routine is available |
422 | * to covert a multibyte to a wide character. |
423 | */ |
424 | #$d_mbtowc HAS_MBTOWC /**/ |
425 | |
2304df62 |
426 | /* HAS_MEMCMP: |
427 | * This symbol, if defined, indicates that the memcmp routine is available |
428 | * to compare blocks of memory. |
378cc40b |
429 | */ |
2304df62 |
430 | #$d_memcmp HAS_MEMCMP /**/ |
431 | |
432 | /* HAS_MEMCPY: |
9f971974 |
433 | * This symbol, if defined, indicates that the memcpy routine is available |
2304df62 |
434 | * to copy blocks of memory. |
9f971974 |
435 | */ |
2304df62 |
436 | #$d_memcpy HAS_MEMCPY /**/ |
9f971974 |
437 | |
2304df62 |
438 | /* HAS_MEMMOVE: |
9f971974 |
439 | * This symbol, if defined, indicates that the memmove routine is available |
2304df62 |
440 | * to copy potentially overlapping blocks of memory. This should be used |
441 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your |
442 | * own version. |
9f971974 |
443 | */ |
2304df62 |
444 | #$d_memmove HAS_MEMMOVE /**/ |
9f971974 |
445 | |
2304df62 |
446 | /* HAS_MEMSET: |
9f971974 |
447 | * This symbol, if defined, indicates that the memset routine is available |
2304df62 |
448 | * to set blocks of memory. |
9f971974 |
449 | */ |
2304df62 |
450 | #$d_memset HAS_MEMSET /**/ |
378cc40b |
451 | |
2304df62 |
452 | /* HAS_MKDIR: |
a687059c |
453 | * This symbol, if defined, indicates that the mkdir routine is available |
454 | * to create directories. Otherwise you should fork off a new process to |
455 | * exec /bin/mkdir. |
456 | */ |
2304df62 |
457 | #$d_mkdir HAS_MKDIR /**/ |
fe14fcc3 |
458 | |
ecfc5424 |
459 | /* HAS_MKFIFO: |
460 | * This symbol, if defined, indicates that the mkfifo routine is |
461 | * available to create FIFOs. Otherwise, mknod should be able to |
462 | * do it for you. However, if mkfifo is there, mknod might require |
463 | * super-user privileges which mkfifo will not. |
464 | */ |
465 | #$d_mkfifo HAS_MKFIFO /**/ |
466 | |
a0d0e21e |
467 | /* HAS_MKTIME: |
468 | * This symbol, if defined, indicates that the mktime routine is |
469 | * available. |
470 | */ |
471 | #$d_mktime HAS_MKTIME /**/ |
472 | |
2304df62 |
473 | /* HAS_MSG: |
fe14fcc3 |
474 | * This symbol, if defined, indicates that the entire msg*(2) library is |
2304df62 |
475 | * supported (IPC mechanism based on message queues). |
fe14fcc3 |
476 | */ |
2304df62 |
477 | #$d_msg HAS_MSG /**/ |
fe14fcc3 |
478 | |
a0d0e21e |
479 | /* HAS_NICE: |
480 | * This symbol, if defined, indicates that the nice routine is |
481 | * available. |
fe14fcc3 |
482 | */ |
a0d0e21e |
483 | #$d_nice HAS_NICE /**/ |
a687059c |
484 | |
a0d0e21e |
485 | /* HAS_OPEN3: |
486 | * This manifest constant lets the C program know that the three |
487 | * argument form of open(2) is available. |
fe14fcc3 |
488 | */ |
a0d0e21e |
489 | #$d_open3 HAS_OPEN3 /**/ |
fe14fcc3 |
490 | |
ecfc5424 |
491 | /* HAS_PATHCONF: |
492 | * This symbol, if defined, indicates that pathconf() is available |
493 | * to determine file-system related limits and options associated |
494 | * with a given filename. |
495 | */ |
496 | /* HAS_FPATHCONF: |
497 | * This symbol, if defined, indicates that pathconf() is available |
498 | * to determine file-system related limits and options associated |
499 | * with a given open file descriptor. |
500 | */ |
501 | #$d_pathconf HAS_PATHCONF /**/ |
502 | #$d_fpathconf HAS_FPATHCONF /**/ |
503 | |
a0d0e21e |
504 | /* HAS_PAUSE: |
505 | * This symbol, if defined, indicates that the pause routine is |
506 | * available to suspend a process until a signal is received. |
a687059c |
507 | */ |
a0d0e21e |
508 | #$d_pause HAS_PAUSE /**/ |
a687059c |
509 | |
a0d0e21e |
510 | /* HAS_PIPE: |
511 | * This symbol, if defined, indicates that the pipe routine is |
512 | * available to create an inter-process channel. |
fe14fcc3 |
513 | */ |
a0d0e21e |
514 | #$d_pipe HAS_PIPE /**/ |
515 | |
8e07c86e |
516 | /* HAS_POLL: |
517 | * This symbol, if defined, indicates that the poll routine is |
518 | * available to poll active file descriptors. |
519 | */ |
520 | #$d_poll HAS_POLL /**/ |
521 | |
a0d0e21e |
522 | /* HAS_READDIR: |
523 | * This symbol, if defined, indicates that the readdir routine is |
524 | * available to read directory entries. You may have to include |
525 | * <dirent.h>. See I_DIRENT. |
526 | */ |
527 | #$d_readdir HAS_READDIR /**/ |
528 | |
529 | /* HAS_SEEKDIR: |
530 | * This symbol, if defined, indicates that the seekdir routine is |
531 | * available. You may have to include <dirent.h>. See I_DIRENT. |
532 | */ |
533 | #$d_seekdir HAS_SEEKDIR /**/ |
534 | |
535 | /* HAS_TELLDIR: |
536 | * This symbol, if defined, indicates that the telldir routine is |
537 | * available. You may have to include <dirent.h>. See I_DIRENT. |
538 | */ |
539 | #$d_telldir HAS_TELLDIR /**/ |
540 | |
541 | /* HAS_REWINDDIR: |
542 | * This symbol, if defined, indicates that the rewinddir routine is |
543 | * available. You may have to include <dirent.h>. See I_DIRENT. |
544 | */ |
545 | #$d_rewinddir HAS_REWINDDIR /**/ |
546 | |
547 | /* HAS_READLINK: |
548 | * This symbol, if defined, indicates that the readlink routine is |
549 | * available to read the value of a symbolic link. |
550 | */ |
551 | #$d_readlink HAS_READLINK /**/ |
fe14fcc3 |
552 | |
2304df62 |
553 | /* HAS_RENAME: |
378cc40b |
554 | * This symbol, if defined, indicates that the rename routine is available |
555 | * to rename files. Otherwise you should do the unlink(), link(), unlink() |
556 | * trick. |
557 | */ |
2304df62 |
558 | #$d_rename HAS_RENAME /**/ |
378cc40b |
559 | |
2304df62 |
560 | /* HAS_RMDIR: |
561 | * This symbol, if defined, indicates that the rmdir routine is |
562 | * available to remove directories. Otherwise you should fork off a |
563 | * new process to exec /bin/rmdir. |
9f971974 |
564 | */ |
2304df62 |
565 | #$d_rmdir HAS_RMDIR /**/ |
9f971974 |
566 | |
ecfc5424 |
567 | /* HAS_SAFE_BCOPY: |
568 | * This symbol, if defined, indicates that the bcopy routine is available |
569 | * to copy potentially overlapping memory blocks. Otherwise you should |
570 | * probably use memmove() or memcpy(). If neither is defined, roll your |
571 | * own version. |
572 | */ |
573 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
574 | |
575 | /* HAS_SAFE_MEMCPY: |
576 | * This symbol, if defined, indicates that the memcpy routine is available |
577 | * to copy potentially overlapping memory blocks. Otherwise you should |
578 | * probably use memmove() or memcpy(). If neither is defined, roll your |
579 | * own version. |
580 | */ |
581 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
582 | |
36477c24 |
583 | /* HAS_SANE_MEMCMP: |
5f05dabc |
584 | * This symbol, if defined, indicates that the memcmp routine is available |
585 | * and can be used to compare relative magnitudes of chars with their high |
586 | * bits set. If it is not defined, roll your own version. |
36477c24 |
587 | */ |
588 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ |
589 | |
2304df62 |
590 | /* HAS_SELECT: |
591 | * This symbol, if defined, indicates that the select routine is |
592 | * available to select active file descriptors. If the timeout field |
593 | * is used, <sys/time.h> may need to be included. |
fe14fcc3 |
594 | */ |
2304df62 |
595 | #$d_select HAS_SELECT /**/ |
a687059c |
596 | |
2304df62 |
597 | /* HAS_SEM: |
fe14fcc3 |
598 | * This symbol, if defined, indicates that the entire sem*(2) library is |
599 | * supported. |
600 | */ |
2304df62 |
601 | #$d_sem HAS_SEM /**/ |
fe14fcc3 |
602 | |
2304df62 |
603 | /* HAS_SETEGID: |
378cc40b |
604 | * This symbol, if defined, indicates that the setegid routine is available |
605 | * to change the effective gid of the current program. |
606 | */ |
2304df62 |
607 | #$d_setegid HAS_SETEGID /**/ |
378cc40b |
608 | |
2304df62 |
609 | /* HAS_SETEUID: |
378cc40b |
610 | * This symbol, if defined, indicates that the seteuid routine is available |
611 | * to change the effective uid of the current program. |
612 | */ |
2304df62 |
613 | #$d_seteuid HAS_SETEUID /**/ |
614 | |
a0d0e21e |
615 | /* HAS_SETLINEBUF: |
616 | * This symbol, if defined, indicates that the setlinebuf routine is |
617 | * available to change stderr or stdout from block-buffered or unbuffered |
618 | * to a line-buffered mode. |
619 | */ |
620 | #$d_setlinebuf HAS_SETLINEBUF /**/ |
621 | |
622 | /* HAS_SETLOCALE: |
623 | * This symbol, if defined, indicates that the setlocale routine is |
624 | * available to handle locale-specific ctype implementations. |
625 | */ |
626 | #$d_setlocale HAS_SETLOCALE /**/ |
627 | |
2304df62 |
628 | /* HAS_SETPGRP2: |
d8f2e4cc |
629 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
630 | * routine is available to set the current process group. |
631 | */ |
2304df62 |
632 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
d8f2e4cc |
633 | |
2304df62 |
634 | /* HAS_SETPRIORITY: |
635 | * This symbol, if defined, indicates that the setpriority routine is |
a687059c |
636 | * available to set a process's priority. |
637 | */ |
2304df62 |
638 | #$d_setprior HAS_SETPRIORITY /**/ |
a687059c |
639 | |
2304df62 |
640 | /* HAS_SETREGID: |
a687059c |
641 | * This symbol, if defined, indicates that the setregid routine is |
2304df62 |
642 | * available to change the real and effective gid of the current |
643 | * process. |
a687059c |
644 | */ |
2304df62 |
645 | /* HAS_SETRESGID: |
a687059c |
646 | * This symbol, if defined, indicates that the setresgid routine is |
647 | * available to change the real, effective and saved gid of the current |
2304df62 |
648 | * process. |
a687059c |
649 | */ |
2304df62 |
650 | #$d_setregid HAS_SETREGID /**/ |
651 | #$d_setresgid HAS_SETRESGID /**/ |
a687059c |
652 | |
2304df62 |
653 | /* HAS_SETREUID: |
a687059c |
654 | * This symbol, if defined, indicates that the setreuid routine is |
2304df62 |
655 | * available to change the real and effective uid of the current |
656 | * process. |
a687059c |
657 | */ |
2304df62 |
658 | /* HAS_SETRESUID: |
a687059c |
659 | * This symbol, if defined, indicates that the setresuid routine is |
660 | * available to change the real, effective and saved uid of the current |
2304df62 |
661 | * process. |
a687059c |
662 | */ |
2304df62 |
663 | #$d_setreuid HAS_SETREUID /**/ |
664 | #$d_setresuid HAS_SETRESUID /**/ |
a687059c |
665 | |
2304df62 |
666 | /* HAS_SETRGID: |
378cc40b |
667 | * This symbol, if defined, indicates that the setrgid routine is available |
668 | * to change the real gid of the current program. |
669 | */ |
2304df62 |
670 | #$d_setrgid HAS_SETRGID /**/ |
378cc40b |
671 | |
2304df62 |
672 | /* HAS_SETRUID: |
378cc40b |
673 | * This symbol, if defined, indicates that the setruid routine is available |
674 | * to change the real uid of the current program. |
675 | */ |
2304df62 |
676 | #$d_setruid HAS_SETRUID /**/ |
677 | |
678 | /* HAS_SETSID: |
679 | * This symbol, if defined, indicates that the setsid routine is |
680 | * available to set the process group ID. |
681 | */ |
682 | #$d_setsid HAS_SETSID /**/ |
fe14fcc3 |
683 | |
2304df62 |
684 | /* HAS_SHM: |
fe14fcc3 |
685 | * This symbol, if defined, indicates that the entire shm*(2) library is |
686 | * supported. |
687 | */ |
2304df62 |
688 | #$d_shm HAS_SHM /**/ |
fe14fcc3 |
689 | |
a0d0e21e |
690 | /* Shmat_t: |
691 | * This symbol holds the return type of the shmat() system call. |
692 | * Usually set to 'void *' or 'char *'. |
fe14fcc3 |
693 | */ |
a0d0e21e |
694 | /* HAS_SHMAT_PROTOTYPE: |
695 | * This symbol, if defined, indicates that the sys/shm.h includes |
696 | * a prototype for shmat(). Otherwise, it is up to the program to |
697 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, |
698 | * but not always right so it should be emitted by the program only |
699 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. |
fe14fcc3 |
700 | */ |
a0d0e21e |
701 | #define Shmat_t $shmattype /**/ |
702 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ |
fe14fcc3 |
703 | |
568ef1f6 |
704 | /* HAS_SIGACTION: |
705 | * This symbol, if defined, indicates that Vr4's sigaction() routine |
706 | * is available. |
707 | */ |
708 | #$d_sigaction HAS_SIGACTION /**/ |
709 | |
2304df62 |
710 | /* HAS_SOCKET: |
a687059c |
711 | * This symbol, if defined, indicates that the BSD socket interface is |
712 | * supported. |
713 | */ |
2304df62 |
714 | /* HAS_SOCKETPAIR: |
715 | * This symbol, if defined, indicates that the BSD socketpair() call is |
a687059c |
716 | * supported. |
717 | */ |
2304df62 |
718 | #$d_socket HAS_SOCKET /**/ |
719 | #$d_sockpair HAS_SOCKETPAIR /**/ |
a687059c |
720 | |
2304df62 |
721 | /* USE_STAT_BLOCKS: |
c51b80d1 |
722 | * This symbol is defined if this system has a stat structure declaring |
723 | * st_blksize and st_blocks. |
724 | */ |
2304df62 |
725 | #$d_statblks USE_STAT_BLOCKS /**/ |
c51b80d1 |
726 | |
16d20bd9 |
727 | /* USE_STDIO_PTR: |
728 | * This symbol is defined if the _ptr and _cnt fields (or similar) |
729 | * of the stdio FILE structure can be used to access the stdio buffer |
730 | * for a file handle. If this is defined, then the FILE_ptr(fp) |
731 | * and FILE_cnt(fp) macros will also be defined and should be used |
732 | * to access these fields. |
733 | */ |
16d20bd9 |
734 | /* FILE_ptr: |
735 | * This macro is used to access the _ptr field (or equivalent) of the |
736 | * FILE structure pointed to by its argument. This macro will always be |
737 | * defined if USE_STDIO_PTR is defined. |
738 | */ |
c2960299 |
739 | /* STDIO_PTR_LVALUE: |
740 | * This symbol is defined if the FILE_ptr macro can be used as an |
741 | * lvalue. |
742 | */ |
16d20bd9 |
743 | /* FILE_cnt: |
744 | * This macro is used to access the _cnt field (or equivalent) of the |
745 | * FILE structure pointed to by its argument. This macro will always be |
746 | * defined if USE_STDIO_PTR is defined. |
747 | */ |
c2960299 |
748 | /* STDIO_CNT_LVALUE: |
749 | * This symbol is defined if the FILE_cnt macro can be used as an |
750 | * lvalue. |
751 | */ |
e876cf0b |
752 | #$d_stdstdio USE_STDIO_PTR /**/ |
16d20bd9 |
753 | #ifdef USE_STDIO_PTR |
754 | #define FILE_ptr(fp) $stdio_ptr |
4aa0a1f7 |
755 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ |
16d20bd9 |
756 | #define FILE_cnt(fp) $stdio_cnt |
4aa0a1f7 |
757 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ |
16d20bd9 |
758 | #endif |
759 | |
e876cf0b |
760 | /* USE_STDIO_BASE: |
761 | * This symbol is defined if the _base field (or similar) of the |
762 | * stdio FILE structure can be used to access the stdio buffer for |
763 | * a file handle. If this is defined, then the FILE_base(fp) macro |
764 | * will also be defined and should be used to access this field. |
765 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used |
766 | * to determine the number of bytes in the buffer. USE_STDIO_BASE |
767 | * will never be defined unless USE_STDIO_PTR is. |
768 | */ |
16d20bd9 |
769 | /* FILE_base: |
770 | * This macro is used to access the _base field (or equivalent) of the |
771 | * FILE structure pointed to by its argument. This macro will always be |
772 | * defined if USE_STDIO_BASE is defined. |
773 | */ |
774 | /* FILE_bufsiz: |
775 | * This macro is used to determine the number of bytes in the I/O |
776 | * buffer pointed to by _base field (or equivalent) of the FILE |
777 | * structure pointed to its argument. This macro will always be defined |
778 | * if USE_STDIO_BASE is defined. |
36ce8bec |
779 | */ |
e876cf0b |
780 | #$d_stdiobase USE_STDIO_BASE /**/ |
16d20bd9 |
781 | #ifdef USE_STDIO_BASE |
782 | #define FILE_base(fp) $stdio_base |
783 | #define FILE_bufsiz(fp) $stdio_bufsiz |
784 | #endif |
36ce8bec |
785 | |
a0d0e21e |
786 | /* HAS_STRCHR: |
787 | * This symbol is defined to indicate that the strchr()/strrchr() |
788 | * functions are available for string searching. If not, try the |
789 | * index()/rindex() pair. |
790 | */ |
791 | /* HAS_INDEX: |
792 | * This symbol is defined to indicate that the index()/rindex() |
793 | * functions are available for string searching. |
794 | */ |
795 | #$d_strchr HAS_STRCHR /**/ |
796 | #$d_index HAS_INDEX /**/ |
797 | |
798 | /* HAS_STRCOLL: |
799 | * This symbol, if defined, indicates that the strcoll routine is |
800 | * available to compare strings using collating information. |
801 | */ |
802 | #$d_strcoll HAS_STRCOLL /**/ |
803 | |
2304df62 |
804 | /* USE_STRUCT_COPY: |
8d063cd8 |
805 | * This symbol, if defined, indicates that this C compiler knows how |
806 | * to copy structures. If undefined, you'll need to use a block copy |
807 | * routine of some sort instead. |
808 | */ |
2304df62 |
809 | #$d_strctcpy USE_STRUCT_COPY /**/ |
8d063cd8 |
810 | |
a0d0e21e |
811 | /* HAS_STRERROR: |
812 | * This symbol, if defined, indicates that the strerror routine is |
813 | * available to translate error numbers to strings. See the writeup |
814 | * of Strerror() in this file before you try to define your own. |
815 | */ |
816 | /* HAS_SYS_ERRLIST: |
817 | * This symbol, if defined, indicates that the sys_errlist array is |
818 | * available to translate error numbers to strings. The extern int |
819 | * sys_nerr gives the size of that table. |
820 | */ |
821 | /* Strerror: |
822 | * This preprocessor symbol is defined as a macro if strerror() is |
823 | * not available to translate error numbers to strings but sys_errlist[] |
824 | * array is there. |
825 | */ |
826 | #$d_strerror HAS_STRERROR /**/ |
827 | #$d_syserrlst HAS_SYS_ERRLIST /**/ |
828 | #define Strerror(e) $d_strerrm |
829 | |
a89d8a78 |
830 | /* HAS_STRTOD: |
831 | * This symbol, if defined, indicates that the strtod routine is |
5f05dabc |
832 | * available to provide better numeric string conversion than atof(). |
a89d8a78 |
833 | */ |
834 | #$d_strtod HAS_STRTOD /**/ |
835 | |
836 | /* HAS_STRTOL: |
5f05dabc |
837 | * This symbol, if defined, indicates that the strtol routine is available |
838 | * to provide better numeric string conversion than atoi() and friends. |
a89d8a78 |
839 | */ |
840 | #$d_strtol HAS_STRTOL /**/ |
841 | |
842 | /* HAS_STRTOUL: |
843 | * This symbol, if defined, indicates that the strtoul routine is |
5f05dabc |
844 | * available to provide conversion of strings to unsigned long. |
a89d8a78 |
845 | */ |
846 | #$d_strtoul HAS_STRTOUL /**/ |
847 | |
a0d0e21e |
848 | /* HAS_STRXFRM: |
849 | * This symbol, if defined, indicates that the strxfrm() routine is |
850 | * available to transform strings. |
851 | */ |
852 | #$d_strxfrm HAS_STRXFRM /**/ |
853 | |
2304df62 |
854 | /* HAS_SYMLINK: |
2e1b3b7e |
855 | * This symbol, if defined, indicates that the symlink routine is available |
856 | * to create symbolic links. |
857 | */ |
2304df62 |
858 | #$d_symlink HAS_SYMLINK /**/ |
2e1b3b7e |
859 | |
2304df62 |
860 | /* HAS_SYSCALL: |
861 | * This symbol, if defined, indicates that the syscall routine is |
862 | * available to call arbitrary system calls. If undefined, that's tough. |
a687059c |
863 | */ |
2304df62 |
864 | #$d_syscall HAS_SYSCALL /**/ |
e5d73d77 |
865 | |
ecfc5424 |
866 | /* HAS_SYSCONF: |
867 | * This symbol, if defined, indicates that sysconf() is available |
868 | * to determine system related limits and options. |
869 | */ |
870 | #$d_sysconf HAS_SYSCONF /**/ |
871 | |
2304df62 |
872 | /* HAS_SYSTEM: |
873 | * This symbol, if defined, indicates that the system routine is |
874 | * available to issue a shell command. |
9f971974 |
875 | */ |
2304df62 |
876 | #$d_system HAS_SYSTEM /**/ |
9f971974 |
877 | |
a0d0e21e |
878 | /* HAS_TCGETPGRP: |
879 | * This symbol, if defined, indicates that the tcgetpgrp routine is |
880 | * available to get foreground process group ID. |
85e6fe83 |
881 | */ |
a0d0e21e |
882 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
883 | |
884 | /* HAS_TCSETPGRP: |
885 | * This symbol, if defined, indicates that the tcsetpgrp routine is |
886 | * available to set foreground process group ID. |
887 | */ |
888 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ |
85e6fe83 |
889 | |
ecfc5424 |
890 | /* Time_t: |
891 | * This symbol holds the type returned by time(). It can be long, |
892 | * or time_t on BSD sites (in which case <sys/types.h> should be |
893 | * included). |
894 | */ |
895 | #define Time_t $timetype /* Time type */ |
896 | |
2304df62 |
897 | /* HAS_TIMES: |
898 | * This symbol, if defined, indicates that the times() routine exists. |
899 | * Note that this became obsolete on some systems (SUNOS), which now |
900 | * use getrusage(). It may be necessary to include <sys/times.h>. |
901 | */ |
902 | #$d_times HAS_TIMES /**/ |
903 | |
904 | /* HAS_TRUNCATE: |
87250799 |
905 | * This symbol, if defined, indicates that the truncate routine is |
906 | * available to truncate files. |
907 | */ |
2304df62 |
908 | #$d_truncate HAS_TRUNCATE /**/ |
87250799 |
909 | |
a0d0e21e |
910 | /* HAS_TZNAME: |
911 | * This symbol, if defined, indicates that the tzname[] array is |
912 | * available to access timezone names. |
913 | */ |
914 | #$d_tzname HAS_TZNAME /**/ |
915 | |
916 | /* HAS_UMASK: |
917 | * This symbol, if defined, indicates that the umask routine is |
918 | * available to set and get the value of the file creation mask. |
919 | */ |
920 | #$d_umask HAS_UMASK /**/ |
921 | |
922 | /* HAS_VFORK: |
923 | * This symbol, if defined, indicates that vfork() exists. |
2304df62 |
924 | */ |
a0d0e21e |
925 | #$d_vfork HAS_VFORK /**/ |
2304df62 |
926 | |
ecfc5424 |
927 | /* Signal_t: |
928 | * This symbol's value is either "void" or "int", corresponding to the |
929 | * appropriate return type of a signal handler. Thus, you can declare |
930 | * a signal handler using "Signal_t (*handler)()", and define the |
931 | * handler using "Signal_t handler(sig)". |
932 | */ |
ecfc5424 |
933 | #define Signal_t $signal_t /* Signal handler's return type */ |
36ce8bec |
934 | |
2304df62 |
935 | /* HASVOLATILE: |
afd9f252 |
936 | * This symbol, if defined, indicates that this C compiler knows about |
937 | * the volatile declaration. |
938 | */ |
939 | #$d_volatile HASVOLATILE /**/ |
2304df62 |
940 | #ifndef HASVOLATILE |
941 | #define volatile |
942 | #endif |
afd9f252 |
943 | |
2304df62 |
944 | /* HAS_VPRINTF: |
a687059c |
945 | * This symbol, if defined, indicates that the vprintf routine is available |
946 | * to printf with a pointer to an argument list. If unavailable, you |
947 | * may need to write your own, probably in terms of _doprnt(). |
948 | */ |
2304df62 |
949 | /* USE_CHAR_VSPRINTF: |
a687059c |
950 | * This symbol is defined if this system has vsprintf() returning type |
951 | * (char*). The trend seems to be to declare it as "int vsprintf()". It |
952 | * is up to the package author to declare vsprintf correctly based on the |
953 | * symbol. |
954 | */ |
2304df62 |
955 | #$d_vprintf HAS_VPRINTF /**/ |
956 | #$d_charvspr USE_CHAR_VSPRINTF /**/ |
a687059c |
957 | |
2304df62 |
958 | /* HAS_WAIT4: |
bf38876a |
959 | * This symbol, if defined, indicates that wait4() exists. |
960 | */ |
2304df62 |
961 | #$d_wait4 HAS_WAIT4 /**/ |
bf38876a |
962 | |
2304df62 |
963 | /* HAS_WAITPID: |
964 | * This symbol, if defined, indicates that the waitpid routine is |
965 | * available to wait for child process. |
39c3038c |
966 | */ |
2304df62 |
967 | #$d_waitpid HAS_WAITPID /**/ |
39c3038c |
968 | |
a0d0e21e |
969 | /* HAS_WCSTOMBS: |
970 | * This symbol, if defined, indicates that the wcstombs routine is |
971 | * available to convert wide character strings to multibyte strings. |
972 | */ |
973 | #$d_wcstombs HAS_WCSTOMBS /**/ |
974 | |
975 | /* HAS_WCTOMB: |
976 | * This symbol, if defined, indicates that the wctomb routine is available |
977 | * to covert a wide character to a multibyte. |
978 | */ |
979 | #$d_wctomb HAS_WCTOMB /**/ |
980 | |
981 | /* Fpos_t: |
982 | * This symbol holds the type used to declare file positions in libc. |
983 | * It can be fpos_t, long, uint, etc... It may be necessary to include |
984 | * <sys/types.h> to get any typedef'ed information. |
985 | */ |
986 | #define Fpos_t $fpostype /* File position type */ |
987 | |
988 | /* Gid_t: |
989 | * This symbol holds the return type of getgid() and the type of |
990 | * argument to setrgid() and related functions. Typically, |
991 | * it is the type of group ids in the kernel. It can be int, ushort, |
992 | * uid_t, etc... It may be necessary to include <sys/types.h> to get |
993 | * any typedef'ed information. |
378cc40b |
994 | */ |
a0d0e21e |
995 | #define Gid_t $gidtype /* Type for getgid(), etc... */ |
378cc40b |
996 | |
ecfc5424 |
997 | /* Groups_t: |
998 | * This symbol holds the type used for the second argument to |
5cd24f17 |
999 | * [gs]etgroups(). Usually, this is the same of gidtype, but |
ecfc5424 |
1000 | * sometimes it isn't. It can be int, ushort, uid_t, etc... |
1001 | * It may be necessary to include <sys/types.h> to get any |
1002 | * typedef'ed information. This is only required if you have |
5cd24f17 |
1003 | * getgroups() or setgroups(). |
ecfc5424 |
1004 | */ |
5cd24f17 |
1005 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) |
1006 | #define Groups_t $groupstype /* Type for 2nd arg to [gs]etgroups() */ |
ecfc5424 |
1007 | #endif |
1008 | |
232e078e |
1009 | /* DB_Prefix_t: |
1010 | * This symbol contains the type of the prefix structure element |
1011 | * in the <db.h> header file. In older versions of DB, it was |
1012 | * int, while in newer ones it is u_int32_t. |
1013 | */ |
1014 | /* DB_Hash_t: |
1015 | * This symbol contains the type of the prefix structure element |
1016 | * in the <db.h> header file. In older versions of DB, it was |
1017 | * int, while in newer ones it is size_t. |
1018 | */ |
1019 | #define DB_Hash_t $db_hashtype /**/ |
1020 | #define DB_Prefix_t $db_prefixtype /**/ |
1021 | |
2304df62 |
1022 | /* I_DIRENT: |
1023 | * This symbol, if defined, indicates to the C program that it should |
1024 | * include <dirent.h>. Using this symbol also triggers the definition |
1025 | * of the Direntry_t define which ends up being 'struct dirent' or |
1026 | * 'struct direct' depending on the availability of <dirent.h>. |
1c3d792e |
1027 | */ |
2304df62 |
1028 | /* DIRNAMLEN: |
1029 | * This symbol, if defined, indicates to the C program that the length |
1030 | * of directory entry names is provided by a d_namlen field. Otherwise |
1031 | * you need to do strlen() on the d_name field. |
1032 | */ |
a0d0e21e |
1033 | /* Direntry_t: |
1034 | * This symbol is set to 'struct direct' or 'struct dirent' depending on |
1035 | * whether dirent is available or not. You should use this pseudo type to |
1036 | * portably declare your directory entries. |
1037 | */ |
2304df62 |
1038 | #$i_dirent I_DIRENT /**/ |
1039 | #$d_dirnamlen DIRNAMLEN /**/ |
a0d0e21e |
1040 | #define Direntry_t $direntrytype |
1041 | |
1042 | /* I_DLFCN: |
1043 | * This symbol, if defined, indicates that <dlfcn.h> exists and should |
1044 | * be included. |
1045 | */ |
1046 | #$i_dlfcn I_DLFCN /**/ |
1c3d792e |
1047 | |
2304df62 |
1048 | /* I_FCNTL: |
fe14fcc3 |
1049 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c |
1050 | */ |
2304df62 |
1051 | #$i_fcntl I_FCNTL /**/ |
a687059c |
1052 | |
a0d0e21e |
1053 | /* I_FLOAT: |
1054 | * This symbol, if defined, indicates to the C program that it should |
1055 | * include <float.h> to get definition of symbols like DBL_MAX or |
1056 | * DBL_MIN, i.e. machine dependent floating point values. |
a687059c |
1057 | */ |
a0d0e21e |
1058 | #$i_float I_FLOAT /**/ |
a687059c |
1059 | |
2304df62 |
1060 | /* I_GRP: |
a687059c |
1061 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1062 | * include <grp.h>. |
a687059c |
1063 | */ |
2304df62 |
1064 | #$i_grp I_GRP /**/ |
a687059c |
1065 | |
a0d0e21e |
1066 | /* I_LIMITS: |
1067 | * This symbol, if defined, indicates to the C program that it should |
1068 | * include <limits.h> to get definition of symbols like WORD_BIT or |
1069 | * LONG_MAX, i.e. machine dependant limitations. |
1070 | */ |
1071 | #$i_limits I_LIMITS /**/ |
1072 | |
1073 | /* I_MATH: |
1074 | * This symbol, if defined, indicates to the C program that it should |
1075 | * include <math.h>. |
1076 | */ |
1077 | #$i_math I_MATH /**/ |
1078 | |
1079 | /* I_MEMORY: |
1080 | * This symbol, if defined, indicates to the C program that it should |
1081 | * include <memory.h>. |
1082 | */ |
1083 | #$i_memory I_MEMORY /**/ |
1084 | |
232e078e |
1085 | /* I_NDBM: |
16d20bd9 |
1086 | * This symbol, if defined, indicates that <ndbm.h> exists and should |
232e078e |
1087 | * be included. |
1088 | */ |
1089 | #$i_ndbm I_NDBM /**/ |
1090 | |
ecfc5424 |
1091 | /* I_NET_ERRNO: |
1092 | * This symbol, if defined, indicates that <net/errno.h> exists and |
1093 | * should be included. |
2304df62 |
1094 | */ |
ecfc5424 |
1095 | #$i_neterrno I_NET_ERRNO /**/ |
2304df62 |
1096 | |
1097 | /* I_NETINET_IN: |
03a14243 |
1098 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1099 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
03a14243 |
1100 | */ |
2304df62 |
1101 | #$i_niin I_NETINET_IN /**/ |
03a14243 |
1102 | |
a0d0e21e |
1103 | /* I_PWD: |
1104 | * This symbol, if defined, indicates to the C program that it should |
1105 | * include <pwd.h>. |
a687059c |
1106 | */ |
a0d0e21e |
1107 | /* PWQUOTA: |
1108 | * This symbol, if defined, indicates to the C program that struct passwd |
1109 | * contains pw_quota. |
1110 | */ |
1111 | /* PWAGE: |
1112 | * This symbol, if defined, indicates to the C program that struct passwd |
1113 | * contains pw_age. |
1114 | */ |
1115 | /* PWCHANGE: |
1116 | * This symbol, if defined, indicates to the C program that struct passwd |
1117 | * contains pw_change. |
1118 | */ |
1119 | /* PWCLASS: |
1120 | * This symbol, if defined, indicates to the C program that struct passwd |
1121 | * contains pw_class. |
1122 | */ |
1123 | /* PWEXPIRE: |
1124 | * This symbol, if defined, indicates to the C program that struct passwd |
1125 | * contains pw_expire. |
1126 | */ |
1127 | /* PWCOMMENT: |
1128 | * This symbol, if defined, indicates to the C program that struct passwd |
1129 | * contains pw_comment. |
1130 | */ |
1131 | #$i_pwd I_PWD /**/ |
1132 | #$d_pwquota PWQUOTA /**/ |
1133 | #$d_pwage PWAGE /**/ |
1134 | #$d_pwchange PWCHANGE /**/ |
1135 | #$d_pwclass PWCLASS /**/ |
1136 | #$d_pwexpire PWEXPIRE /**/ |
1137 | #$d_pwcomment PWCOMMENT /**/ |
a687059c |
1138 | |
2304df62 |
1139 | /* I_STDDEF: |
1140 | * This symbol, if defined, indicates that <stddef.h> exists and should |
a687059c |
1141 | * be included. |
1142 | */ |
2304df62 |
1143 | #$i_stddef I_STDDEF /**/ |
a687059c |
1144 | |
a0d0e21e |
1145 | /* I_STDLIB: |
1146 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
1147 | * be included. |
1148 | */ |
1149 | #$i_stdlib I_STDLIB /**/ |
1150 | |
1151 | /* I_STRING: |
85e6fe83 |
1152 | * This symbol, if defined, indicates to the C program that it should |
1153 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
1154 | */ |
1155 | #$i_string I_STRING /**/ |
1156 | |
2304df62 |
1157 | /* I_SYS_DIR: |
1158 | * This symbol, if defined, indicates to the C program that it should |
1159 | * include <sys/dir.h>. |
d8f2e4cc |
1160 | */ |
2304df62 |
1161 | #$i_sysdir I_SYS_DIR /**/ |
1162 | |
1163 | /* I_SYS_FILE: |
1164 | * This symbol, if defined, indicates to the C program that it should |
1165 | * include <sys/file.h> to get definition of R_OK and friends. |
d8f2e4cc |
1166 | */ |
2304df62 |
1167 | #$i_sysfile I_SYS_FILE /**/ |
1168 | |
1169 | /* I_SYS_IOCTL: |
1170 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should |
1171 | * be included. Otherwise, include <sgtty.h> or <termio.h>. |
d8f2e4cc |
1172 | */ |
2304df62 |
1173 | #$i_sysioctl I_SYS_IOCTL /**/ |
1174 | |
1175 | /* I_SYS_NDIR: |
1176 | * This symbol, if defined, indicates to the C program that it should |
1177 | * include <sys/ndir.h>. |
1178 | */ |
1179 | #$i_sysndir I_SYS_NDIR /**/ |
1180 | |
a0d0e21e |
1181 | /* I_SYS_PARAM: |
1182 | * This symbol, if defined, indicates to the C program that it should |
1183 | * include <sys/param.h>. |
1184 | */ |
1185 | #$i_sysparam I_SYS_PARAM /**/ |
1186 | |
e876cf0b |
1187 | /* I_SYS_RESOURCE: |
1188 | * This symbol, if defined, indicates to the C program that it should |
1189 | * include <sys/resource.h>. |
1190 | */ |
1191 | #$i_sysresrc I_SYS_RESOURCE /**/ |
1192 | |
2304df62 |
1193 | /* I_SYS_SELECT: |
1194 | * This symbol, if defined, indicates to the C program that it should |
1195 | * include <sys/select.h> in order to get definition of struct timeval. |
1196 | */ |
1197 | #$i_sysselct I_SYS_SELECT /**/ |
1198 | |
a0d0e21e |
1199 | /* I_SYS_TIMES: |
1200 | * This symbol, if defined, indicates to the C program that it should |
1201 | * include <sys/times.h>. |
1202 | */ |
1203 | #$i_systimes I_SYS_TIMES /**/ |
1204 | |
fed7345c |
1205 | /* I_SYS_TYPES: |
1206 | * This symbol, if defined, indicates to the C program that it should |
1207 | * include <sys/types.h>. |
1208 | */ |
1209 | #$i_systypes I_SYS_TYPES /**/ |
1210 | |
25f94b33 |
1211 | /* I_SYS_UN: |
1212 | * This symbol, if defined, indicates to the C program that it should |
1213 | * include <sys/un.h> to get UNIX domain socket definitions. |
1214 | */ |
1215 | #$i_sysun I_SYS_UN /**/ |
1216 | |
e876cf0b |
1217 | /* I_SYS_WAIT: |
1218 | * This symbol, if defined, indicates to the C program that it should |
1219 | * include <sys/wait.h>. |
1220 | */ |
1221 | #$i_syswait I_SYS_WAIT /**/ |
1222 | |
a0d0e21e |
1223 | /* I_TERMIO: |
1224 | * This symbol, if defined, indicates that the program should include |
1225 | * <termio.h> rather than <sgtty.h>. There are also differences in |
1226 | * the ioctl() calls that depend on the value of this symbol. |
1227 | */ |
1228 | /* I_TERMIOS: |
1229 | * This symbol, if defined, indicates that the program should include |
1230 | * the POSIX termios.h rather than sgtty.h or termio.h. |
1231 | * There are also differences in the ioctl() calls that depend on the |
1232 | * value of this symbol. |
1233 | */ |
1234 | /* I_SGTTY: |
1235 | * This symbol, if defined, indicates that the program should include |
1236 | * <sgtty.h> rather than <termio.h>. There are also differences in |
1237 | * the ioctl() calls that depend on the value of this symbol. |
1238 | */ |
1239 | #$i_termio I_TERMIO /**/ |
1240 | #$i_termios I_TERMIOS /**/ |
1241 | #$i_sgtty I_SGTTY /**/ |
1242 | |
2304df62 |
1243 | /* I_TIME: |
1244 | * This symbol, if defined, indicates to the C program that it should |
1245 | * include <time.h>. |
1246 | */ |
1247 | /* I_SYS_TIME: |
1248 | * This symbol, if defined, indicates to the C program that it should |
1249 | * include <sys/time.h>. |
fe14fcc3 |
1250 | */ |
85e6fe83 |
1251 | /* I_SYS_TIME_KERNEL: |
1252 | * This symbol, if defined, indicates to the C program that it should |
1253 | * include <sys/time.h> with KERNEL defined. |
1254 | */ |
2304df62 |
1255 | #$i_time I_TIME /**/ |
1256 | #$i_systime I_SYS_TIME /**/ |
85e6fe83 |
1257 | #$i_systimek I_SYS_TIME_KERNEL /**/ |
1258 | |
1259 | /* I_UNISTD: |
1260 | * This symbol, if defined, indicates to the C program that it should |
1261 | * include <unistd.h>. |
1262 | */ |
1263 | #$i_unistd I_UNISTD /**/ |
d8f2e4cc |
1264 | |
2304df62 |
1265 | /* I_UTIME: |
d8f2e4cc |
1266 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1267 | * include <utime.h>. |
d8f2e4cc |
1268 | */ |
2304df62 |
1269 | #$i_utime I_UTIME /**/ |
d8f2e4cc |
1270 | |
e876cf0b |
1271 | /* I_STDARG: |
1272 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
1273 | * be included. |
1274 | */ |
1275 | /* I_VARARGS: |
1276 | * This symbol, if defined, indicates to the C program that it should |
1277 | * include <varargs.h>. |
1278 | */ |
1279 | #$i_stdarg I_STDARG /**/ |
1280 | #$i_varargs I_VARARGS /**/ |
1281 | |
a0d0e21e |
1282 | /* I_VFORK: |
1283 | * This symbol, if defined, indicates to the C program that it should |
1284 | * include vfork.h. |
1285 | */ |
1286 | #$i_vfork I_VFORK /**/ |
a687059c |
1287 | |
e876cf0b |
1288 | /* INTSIZE: |
24fef2a7 |
1289 | * This symbol contains the value of sizeof(int) so that the C |
1290 | * preprocessor can make decisions based on it. |
1291 | */ |
1292 | /* LONGSIZE: |
1293 | * This symbol contains the value of sizeof(long) so that the C |
1294 | * preprocessor can make decisions based on it. |
1295 | */ |
1296 | /* SHORTSIZE: |
1297 | * This symbol contains the value of sizeof(short) so that the C |
1298 | * preprocessor can make decisions based on it. |
e876cf0b |
1299 | */ |
1300 | #define INTSIZE $intsize /**/ |
24fef2a7 |
1301 | #define LONGSIZE $longsize /**/ |
1302 | #define SHORTSIZE $shortsize /**/ |
e876cf0b |
1303 | |
85e6fe83 |
1304 | /* Off_t: |
1305 | * This symbol holds the type used to declare offsets in the kernel. |
1306 | * It can be int, long, off_t, etc... It may be necessary to include |
1307 | * <sys/types.h> to get any typedef'ed information. |
1308 | */ |
1309 | #define Off_t $lseektype /* <offset> type */ |
1310 | |
ecfc5424 |
1311 | /* Mode_t: |
1312 | * This symbol holds the type used to declare file modes |
1313 | * for systems calls. It is usually mode_t, but may be |
1314 | * int or unsigned short. It may be necessary to include <sys/types.h> |
1315 | * to get any typedef'ed information. |
1316 | */ |
1317 | #define Mode_t $modetype /* file mode parameter for system calls */ |
1318 | |
774d564b |
1319 | /* VAL_O_NONBLOCK: |
1320 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on |
1321 | * non-blocking I/O for the file descriptor. Note that there is no way |
1322 | * back, i.e. you cannot turn it blocking again this way. If you wish to |
1323 | * alternatively switch between blocking and non-blocking, use the |
1324 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. |
1325 | */ |
1326 | /* VAL_EAGAIN: |
1327 | * This symbol holds the errno error code set by read() when no data was |
1328 | * present on the non-blocking file descriptor. |
1329 | */ |
1330 | /* RD_NODATA: |
1331 | * This symbol holds the return code from read() when no data is present |
1332 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is |
1333 | * not defined, then you can't distinguish between no data and EOF by |
1334 | * issuing a read(). You'll have to find another way to tell for sure! |
1335 | */ |
1336 | /* EOF_NONBLOCK: |
1337 | * This symbol, if defined, indicates to the C program that a read() on |
1338 | * a non-blocking file descriptor will return 0 on EOF, and not the value |
1339 | * held in RD_NODATA (-1 usually, in that case!). |
1340 | */ |
1341 | #define VAL_O_NONBLOCK $o_nonblock |
1342 | #define VAL_EAGAIN $eagain |
1343 | #define RD_NODATA $rd_nodata |
1344 | #$d_eofnblk EOF_NONBLOCK |
1345 | |
a0d0e21e |
1346 | /* CAN_PROTOTYPE: |
1347 | * If defined, this macro indicates that the C compiler can handle |
1348 | * function prototypes. |
85e6fe83 |
1349 | */ |
a0d0e21e |
1350 | /* _: |
1351 | * This macro is used to declare function parameters for folks who want |
1352 | * to make declarations with prototypes using a different style than |
1353 | * the above macros. Use double parentheses. For example: |
1354 | * |
1355 | * int main _((int argc, char *argv[])); |
1356 | */ |
1357 | #$prototype CAN_PROTOTYPE /**/ |
1358 | #ifdef CAN_PROTOTYPE |
1359 | #define _(args) args |
1360 | #else |
1361 | #define _(args) () |
1362 | #endif |
85e6fe83 |
1363 | |
2304df62 |
1364 | /* RANDBITS: |
1365 | * This symbol contains the number of bits of random number the rand() |
1366 | * function produces. Usual values are 15, 16, and 31. |
fe14fcc3 |
1367 | */ |
2304df62 |
1368 | #define RANDBITS $randbits /**/ |
1369 | |
a0d0e21e |
1370 | /* Select_fd_set_t: |
1371 | * This symbol holds the type used for the 2nd, 3rd, and 4th |
1372 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET |
1373 | * is defined, and 'int *' otherwise. This is only useful if you |
1374 | * have select(), of course. |
1375 | */ |
1376 | #define Select_fd_set_t $selecttype /**/ |
1377 | |
a0d0e21e |
1378 | /* Size_t: |
1379 | * This symbol holds the type used to declare length parameters |
1380 | * for string functions. It is usually size_t, but may be |
1381 | * unsigned long, int, etc. It may be necessary to include |
1382 | * <sys/types.h> to get any typedef'ed information. |
1383 | */ |
1384 | #define Size_t $sizetype /* length paramater for string functions */ |
1385 | |
774d564b |
1386 | /* SSize_t: |
1387 | * This symbol holds the type used by functions that return |
1388 | * a count of bytes or an error condition. It must be a signed type. |
1389 | * It is usually ssize_t, but may be long or int, etc. |
1390 | * It may be necessary to include <sys/types.h> or <unistd.h> |
1391 | * to get any typedef'ed information. |
1392 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). |
1393 | */ |
1394 | #define SSize_t $ssizetype /* signed count of bytes */ |
1395 | |
2304df62 |
1396 | /* STDCHAR: |
1397 | * This symbol is defined to be the type of char used in stdio.h. |
1398 | * It has the values "unsigned char" or "char". |
fe14fcc3 |
1399 | */ |
2304df62 |
1400 | #define STDCHAR $stdchar /**/ |
1401 | |
1402 | /* Uid_t: |
1403 | * This symbol holds the type used to declare user ids in the kernel. |
1404 | * It can be int, ushort, uid_t, etc... It may be necessary to include |
1405 | * <sys/types.h> to get any typedef'ed information. |
fe14fcc3 |
1406 | */ |
2304df62 |
1407 | #define Uid_t $uidtype /* UID type */ |
fe14fcc3 |
1408 | |
a0d0e21e |
1409 | /* LOC_SED: |
1410 | * This symbol holds the complete pathname to the sed program. |
85e6fe83 |
1411 | */ |
1aef975c |
1412 | #define LOC_SED "$full_sed" /**/ |
1413 | |
760ac839 |
1414 | /* OSNAME: |
1415 | * This symbol contains the name of the operating system, as determined |
1416 | * by Configure. You shouldn't rely on it too much; the specific |
1417 | * feature tests from Configure are generally more reliable. |
1418 | */ |
1419 | #define OSNAME "$osname" /**/ |
1420 | |
e876cf0b |
1421 | /* ARCHLIB: |
1422 | * This variable, if defined, holds the name of the directory in |
1423 | * which the user wants to put architecture-dependent public |
1424 | * library files for $package. It is most often a local directory |
1425 | * such as /usr/local/lib. Programs using this variable must be |
1426 | * prepared to deal with filename expansion. If ARCHLIB is the |
1427 | * same as PRIVLIB, it is not defined, since presumably the |
1428 | * program already searches PRIVLIB. |
1429 | */ |
4633a7c4 |
1430 | /* ARCHLIB_EXP: |
1431 | * This symbol contains the ~name expanded version of ARCHLIB, to be used |
1432 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1433 | */ |
e876cf0b |
1434 | #$d_archlib ARCHLIB "$archlib" /**/ |
4633a7c4 |
1435 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ |
1436 | |
5f05dabc |
1437 | /* BINCOMPAT3: |
1438 | * This symbol, if defined, indicates that Perl 5.004 should be |
1439 | * binary-compatible with Perl 5.003. |
1440 | */ |
1441 | #$d_bincompat3 BINCOMPAT3 /**/ |
1442 | |
8e07c86e |
1443 | /* BYTEORDER: |
e876cf0b |
1444 | * This symbol holds the hexadecimal constant defined in byteorder, |
8e07c86e |
1445 | * i.e. 0x1234 or 0x4321, etc... |
e876cf0b |
1446 | * On NeXT 4 (and greater), you can build "Fat" Multiple Architecture |
1447 | * Binaries (MAB) on either big endian or little endian machines. |
1448 | * The endian-ness is available at compile-time. This only matters |
1449 | * for perl, where the config.h can be generated and installed on |
1450 | * one system, and used by a different architecture to build an |
1451 | * extension. Older versions of NeXT that might not have |
1452 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, |
1453 | * so the default case (for NeXT) is big endian to catch them. |
1454 | * This might matter for NeXT 3.0. |
8e07c86e |
1455 | */ |
40750cc0 |
1456 | #ifndef NeXT |
8e07c86e |
1457 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
760ac839 |
1458 | #else /* NeXT */ |
1459 | #ifdef __LITTLE_ENDIAN__ |
40750cc0 |
1460 | #define BYTEORDER 0x1234 |
760ac839 |
1461 | #else /* __BIG_ENDIAN__ */ |
1462 | #define BYTEORDER 0x4321 |
40750cc0 |
1463 | #endif /* ENDIAN CHECK */ |
760ac839 |
1464 | #endif /* NeXT */ |
8e07c86e |
1465 | |
1aef975c |
1466 | /* CSH: |
1467 | * This symbol, if defined, indicates that the C-shell exists. |
1468 | * If defined, contains the full pathname of csh. |
1469 | */ |
1470 | #$d_csh CSH "$full_csh" /**/ |
85e6fe83 |
1471 | |
a0d0e21e |
1472 | /* DLSYM_NEEDS_UNDERSCORE: |
1473 | * This symbol, if defined, indicates that we need to prepend an |
1474 | * underscore to the symbol name before calling dlsym(). This only |
1475 | * makes sense if you *have* dlsym, which we will presume is the |
1476 | * case if you're using dl_dlopen.xs. |
85e6fe83 |
1477 | */ |
c1b76f5d |
1478 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ |
a0d0e21e |
1479 | |
bccf77a5 |
1480 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
1481 | * This symbol, if defined, indicates that the bug that prevents |
1482 | * setuid scripts from being secure is not present in this kernel. |
1483 | */ |
1484 | /* DOSUID: |
1485 | * This symbol, if defined, indicates that the C program should |
1486 | * check the script that it is executing for setuid/setgid bits, and |
1487 | * attempt to emulate setuid/setgid on systems that have disabled |
1488 | * setuid #! scripts because the kernel can't do it securely. |
1489 | * It is up to the package designer to make sure that this emulation |
1490 | * is done securely. Among other things, it should do an fstat on |
1491 | * the script it just opened to make sure it really is a setuid/setgid |
1492 | * script, it should make sure the arguments passed correspond exactly |
1493 | * to the argument on the #! line, and it should not trust any |
1494 | * subprocesses to which it must pass the filename rather than the |
1495 | * file descriptor of the script to be executed. |
1496 | */ |
1497 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ |
1498 | #$d_dosuid DOSUID /**/ |
1499 | |
8e07c86e |
1500 | /* Gconvert: |
1501 | * This preprocessor macro is defined to convert a floating point |
1502 | * number to a string without a trailing decimal point. This |
1503 | * emulates the behavior of sprintf("%g"), but is sometimes much more |
1504 | * efficient. If gconvert() is not available, but gcvt() drops the |
1505 | * trailing decimal point, then gcvt() is used. If all else fails, |
1506 | * a macro using sprintf("%g") is used. Arguments for the Gconvert |
1507 | * macro are: value, number of digits, whether trailing zeros should |
1508 | * be retained, and the output buffer. |
1509 | * Possible values are: |
1510 | * d_Gconvert='gconvert((x),(n),(t),(b))' |
1511 | * d_Gconvert='gcvt((x),(n),(b))' |
1512 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' |
1513 | * The last two assume trailing zeros should not be kept. |
1514 | */ |
1515 | #define Gconvert(x,n,t,b) $d_Gconvert |
1516 | |
c1b76f5d |
1517 | /* HAS_GETPGID: |
1518 | * This symbol, if defined, indicates to the C program that |
1519 | * the getpgid(pid) function is available to get the |
1520 | * process group id. |
1521 | */ |
1522 | #$d_getpgid HAS_GETPGID /**/ |
1523 | |
1524 | /* HAS_GETPGRP: |
1525 | * This symbol, if defined, indicates that the getpgrp routine is |
1526 | * available to get the current process group. |
1527 | */ |
1528 | /* USE_BSD_GETPGRP: |
1529 | * This symbol, if defined, indicates that getpgrp needs one |
1530 | * arguments whereas USG one needs none. |
1531 | */ |
1532 | #$d_getpgrp HAS_GETPGRP /**/ |
1533 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ |
1534 | |
774d564b |
1535 | /* HAS_INET_ATON: |
1536 | * This symbol, if defined, indicates to the C program that the |
1537 | * inet_aton() function is available to parse IP address "dotted-quad" |
1538 | * strings. |
1539 | */ |
1540 | #$d_inetaton HAS_INET_ATON /**/ |
1541 | |
c1b76f5d |
1542 | /* HAS_SETPGID: |
1543 | * This symbol, if defined, indicates to the C program that |
1544 | * the setpgid(pid, gpid) function is available to set the |
1545 | * process group id. |
1546 | */ |
1547 | #$d_setpgid HAS_SETPGID /**/ |
1548 | |
1549 | /* HAS_SETPGRP: |
1550 | * This symbol, if defined, indicates that the setpgrp routine is |
1551 | * available to set the current process group. |
1552 | */ |
1553 | /* USE_BSD_SETPGRP: |
1554 | * This symbol, if defined, indicates that setpgrp needs two |
1555 | * arguments whereas USG one needs none. See also HAS_SETPGID |
1556 | * for a POSIX interface. |
1557 | */ |
1558 | /* USE_BSDPGRP: |
1559 | * This symbol, if defined, indicates that the BSD notion of process |
1560 | * group is to be used. For instance, you have to say setpgrp(pid, pgrp) |
1561 | * instead of the USG setpgrp(). This should be obsolete since |
1562 | * there are systems which have BSD-ish setpgrp but USG-ish getpgrp. |
1563 | */ |
1564 | #$d_setpgrp HAS_SETPGRP /**/ |
1565 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ |
1566 | #$d_bsdpgrp USE_BSDPGRP /**/ |
1567 | |
760ac839 |
1568 | /* USE_SFIO: |
1569 | * This symbol, if defined, indicates that sfio should |
1570 | * be used. |
1571 | */ |
1572 | #$d_sfio USE_SFIO /**/ |
1573 | |
a5f75d66 |
1574 | /* Sigjmp_buf: |
760ac839 |
1575 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. |
a5f75d66 |
1576 | */ |
1577 | /* Sigsetjmp: |
760ac839 |
1578 | * This macro is used in the same way as sigsetjmp(), but will invoke |
1579 | * traditional setjmp() if sigsetjmp isn't available. |
1580 | * See HAS_SIGSETJMP. |
a5f75d66 |
1581 | */ |
1582 | /* Siglongjmp: |
760ac839 |
1583 | * This macro is used in the same way as siglongjmp(), but will invoke |
1584 | * traditional longjmp() if siglongjmp isn't available. |
1585 | * See HAS_SIGSETJMP. |
a5f75d66 |
1586 | */ |
1587 | #$d_sigsetjmp HAS_SIGSETJMP /**/ |
1588 | #ifdef HAS_SIGSETJMP |
1589 | #define Sigjmp_buf sigjmp_buf |
760ac839 |
1590 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) |
1591 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) |
a5f75d66 |
1592 | #else |
1593 | #define Sigjmp_buf jmp_buf |
760ac839 |
1594 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) |
1595 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) |
a5f75d66 |
1596 | #endif |
1597 | |
2304df62 |
1598 | /* USE_DYNAMIC_LOADING: |
1599 | * This symbol, if defined, indicates that dynamic loading of |
1600 | * some sort is available. |
a687059c |
1601 | */ |
2304df62 |
1602 | #$usedl USE_DYNAMIC_LOADING /**/ |
a687059c |
1603 | |
8e07c86e |
1604 | /* I_DBM: |
1605 | * This symbol, if defined, indicates that <dbm.h> exists and should |
1606 | * be included. |
1607 | */ |
1608 | /* I_RPCSVC_DBM: |
1609 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and |
1610 | * should be included. |
1611 | */ |
1612 | #$i_dbm I_DBM /**/ |
1613 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ |
1614 | |
4633a7c4 |
1615 | /* I_LOCALE: |
1616 | * This symbol, if defined, indicates to the C program that it should |
1617 | * include <locale.h>. |
1618 | */ |
1619 | #$i_locale I_LOCALE /**/ |
1620 | |
760ac839 |
1621 | /* I_SFIO: |
1622 | * This symbol, if defined, indicates to the C program that it should |
1623 | * include <sfio.h>. |
1624 | */ |
1625 | #$i_sfio I_SFIO /**/ |
1626 | |
1aef975c |
1627 | /* I_SYS_STAT: |
1628 | * This symbol, if defined, indicates to the C program that it should |
1629 | * include <sys/stat.h>. |
1630 | */ |
1631 | #$i_sysstat I_SYS_STAT /**/ |
1632 | |
e876cf0b |
1633 | /* I_VALUES: |
bccf77a5 |
1634 | * This symbol, if defined, indicates to the C program that it should |
e876cf0b |
1635 | * include <values.h> to get definition of symbols like MINFLOAT or |
1636 | * MAXLONG, i.e. machine dependant limitations. Probably, you |
1637 | * should use <limits.h> instead, if it is available. |
bccf77a5 |
1638 | */ |
e876cf0b |
1639 | #$i_values I_VALUES /**/ |
8e07c86e |
1640 | |
94b6baf5 |
1641 | /* Free_t: |
1642 | * This variable contains the return type of free(). It is usually |
1643 | * void, but occasionally int. |
1644 | */ |
2304df62 |
1645 | /* Malloc_t: |
1646 | * This symbol is the type of pointer returned by malloc and realloc. |
36ce8bec |
1647 | */ |
2304df62 |
1648 | #define Malloc_t $malloctype /**/ |
94b6baf5 |
1649 | #define Free_t $freetype /**/ |
36ce8bec |
1650 | |
85e6fe83 |
1651 | /* MYMALLOC: |
1652 | * This symbol, if defined, indicates that we're using our own malloc. |
1653 | */ |
1654 | #$d_mymalloc MYMALLOC /**/ |
1655 | |
e876cf0b |
1656 | /* OLDARCHLIB: |
1657 | * This variable, if defined, holds the name of the directory in |
1658 | * which the user has perl5.000 or perl5.001 architecture-dependent |
1659 | * public library files for $package. For the most part, these |
1660 | * files will work with 5.002 (and later), but that is not |
1661 | * guaranteed. |
1662 | */ |
4633a7c4 |
1663 | /* OLDARCHLIB_EXP: |
1664 | * This symbol contains the ~name expanded version of OLDARCHLIB, to be |
1665 | * used in programs that are not prepared to deal with ~ expansion at |
1666 | * run-time. |
1667 | */ |
e876cf0b |
1668 | #$d_oldarchlib OLDARCHLIB "$oldarchlib" /**/ |
4633a7c4 |
1669 | #$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp" /**/ |
1670 | |
e876cf0b |
1671 | /* PRIVLIB: |
1672 | * This symbol contains the name of the private library for this package. |
1673 | * The library is private in the sense that it needn't be in anyone's |
1674 | * execution path, but it should be accessible by the world. The program |
1675 | * should be prepared to do ~ expansion. |
1676 | */ |
4633a7c4 |
1677 | /* PRIVLIB_EXP: |
1678 | * This symbol contains the ~name expanded version of PRIVLIB, to be used |
1679 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1680 | */ |
e876cf0b |
1681 | #define PRIVLIB "$privlib" /**/ |
4633a7c4 |
1682 | #define PRIVLIB_EXP "$privlibexp" /**/ |
1683 | |
e876cf0b |
1684 | /* SH_PATH: |
1685 | * This symbol contains the full pathname to the shell used on this |
1686 | * on this system to execute Bourne shell scripts. Usually, this will be |
1687 | * /bin/sh, though it's possible that some systems will have /bin/ksh, |
6c509264 |
1688 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as |
1689 | * D:/bin/sh.exe. |
e876cf0b |
1690 | */ |
1691 | #define SH_PATH "$sh" /**/ |
1692 | |
8e07c86e |
1693 | /* SIG_NAME: |
4633a7c4 |
1694 | * This symbol contains a list of signal names in order of |
1695 | * signal number. This is intended |
8e07c86e |
1696 | * to be used as a static array initialization, like this: |
1697 | * char *sig_name[] = { SIG_NAME }; |
1698 | * The signals in the list are separated with commas, and each signal |
1699 | * is surrounded by double quotes. There is no leading SIG in the signal |
4633a7c4 |
1700 | * name, i.e. SIGQUIT is known as "QUIT". |
1701 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, |
1702 | * etc., where nn is the actual signal number (e.g. NUM37). |
8e07c86e |
1703 | * The signal number for sig_name[i] is stored in sig_num[i]. |
1704 | * The last element is 0 to terminate the list with a NULL. This |
1705 | * corresponds to the 0 at the end of the sig_num list. |
8e07c86e |
1706 | */ |
8e07c86e |
1707 | /* SIG_NUM: |
4633a7c4 |
1708 | * This symbol contains a list of signal numbers, in the same order as the |
8e07c86e |
1709 | * SIG_NAME list. It is suitable for static array initialization, as in: |
1710 | * int sig_num[] = { SIG_NUM }; |
1711 | * The signals in the list are separated with commas, and the indices |
1712 | * within that list and the SIG_NAME list match, so it's easy to compute |
1713 | * the signal name from a number or vice versa at the price of a small |
4633a7c4 |
1714 | * dynamic linear lookup. |
1715 | * Duplicates are allowed, but are moved to the end of the list. |
1716 | * The signal number corresponding to sig_name[i] is sig_number[i]. |
1717 | * if (i < NSIG) then sig_number[i] == i. |
1718 | * The last element is 0, corresponding to the 0 at the end of |
1719 | * the sig_name list. |
8e07c86e |
1720 | */ |
4633a7c4 |
1721 | #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/ |
8e07c86e |
1722 | #define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'` /**/ |
1723 | |
e876cf0b |
1724 | /* SITEARCH: |
1725 | * This symbol contains the name of the private library for this package. |
1726 | * The library is private in the sense that it needn't be in anyone's |
1727 | * execution path, but it should be accessible by the world. The program |
1728 | * should be prepared to do ~ expansion. |
1729 | * The standard distribution will put nothing in this directory. |
1730 | * Individual sites may place their own extensions and modules in |
1731 | * this directory. |
1732 | */ |
4633a7c4 |
1733 | /* SITEARCH_EXP: |
1734 | * This symbol contains the ~name expanded version of SITEARCH, to be used |
16d20bd9 |
1735 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1736 | */ |
e876cf0b |
1737 | #define SITEARCH "$sitearch" /**/ |
4633a7c4 |
1738 | #define SITEARCH_EXP "$sitearchexp" /**/ |
16d20bd9 |
1739 | |
e876cf0b |
1740 | /* SITELIB: |
1741 | * This symbol contains the name of the private library for this package. |
1742 | * The library is private in the sense that it needn't be in anyone's |
1743 | * execution path, but it should be accessible by the world. The program |
1744 | * should be prepared to do ~ expansion. |
1745 | * The standard distribution will put nothing in this directory. |
1746 | * Individual sites may place their own extensions and modules in |
1747 | * this directory. |
1748 | */ |
25f94b33 |
1749 | /* SITELIB_EXP: |
1750 | * This symbol contains the ~name expanded version of SITELIB, to be used |
1751 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1752 | */ |
e876cf0b |
1753 | #define SITELIB "$sitelib" /**/ |
25f94b33 |
1754 | #define SITELIB_EXP "$sitelibexp" /**/ |
1755 | |
568ef1f6 |
1756 | /* STARTPERL: |
1757 | * This variable contains the string to put in front of a perl |
1758 | * script to make sure (one hopes) that it runs with perl and not |
1759 | * some shell. |
1760 | */ |
1761 | #define STARTPERL "$startperl" /**/ |
1762 | |
e876cf0b |
1763 | /* USE_PERLIO: |
1764 | * This symbol, if defined, indicates that the PerlIO abstraction should |
1765 | * be used throughout. If not defined, stdio should be |
1766 | * used in a fully backward compatible manner. |
1767 | */ |
1768 | #$useperlio USE_PERLIO /**/ |
1769 | |
8e07c86e |
1770 | /* VOIDFLAGS: |
1771 | * This symbol indicates how much support of the void type is given by this |
1772 | * compiler. What various bits mean: |
1773 | * |
1774 | * 1 = supports declaration of void |
1775 | * 2 = supports arrays of pointers to functions returning void |
1776 | * 4 = supports comparisons between pointers to void functions and |
1777 | * addresses of void functions |
1778 | * 8 = suports declaration of generic void pointers |
1779 | * |
1780 | * The package designer should define VOIDUSED to indicate the requirements |
1781 | * of the package. This can be done either by #defining VOIDUSED before |
1782 | * including config.h, or by defining defvoidused in Myinit.U. If the |
1783 | * latter approach is taken, only those flags will be tested. If the |
1784 | * level of void support necessary is not present, defines void to int. |
1785 | */ |
1786 | #ifndef VOIDUSED |
1787 | #define VOIDUSED $defvoidused |
1788 | #endif |
1789 | #define VOIDFLAGS $voidflags |
1790 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED |
1791 | #define void int /* is void to be avoided? */ |
1792 | #define M_VOID /* Xenix strikes again */ |
1793 | #endif |
1794 | |
fe14fcc3 |
1795 | #endif |
8d063cd8 |
1796 | !GROK!THIS! |