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)" |
2304df62 |
18 | sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!' |
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 | * |
1aef975c |
28 | * \$Id: Config_h.U,v 3.0.1.3 1995/01/30 14:25:39 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 | |
ecfc5424 |
45 | /* ARCHLIB: |
46 | * This variable, if defined, holds the name of the directory in |
47 | * which the user wants to put architecture-dependent public |
48 | * library files for $package. It is most often a local directory |
49 | * such as /usr/local/lib. Programs using this variable must be |
50 | * prepared to deal with filename expansion. If ARCHLIB is the |
51 | * same as PRIVLIB, it is not defined, since presumably the |
52 | * program already searches PRIVLIB. |
53 | */ |
54 | #$d_archlib ARCHLIB "$archlib" /**/ |
55 | |
2304df62 |
56 | /* BIN: |
57 | * This symbol holds the path of the bin directory where the package will |
58 | * be installed. Program must be prepared to deal with ~name substitution. |
a687059c |
59 | */ |
2304df62 |
60 | #define BIN "$bin" /**/ |
a687059c |
61 | |
2304df62 |
62 | /* BYTEORDER: |
63 | * This symbol hold the hexadecimal constant defined in byteorder, |
64 | * i.e. 0x1234 or 0x4321, etc... |
a687059c |
65 | */ |
2304df62 |
66 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
a687059c |
67 | |
ecfc5424 |
68 | /* CAT2: |
69 | * This macro catenates 2 tokens together. |
70 | */ |
71 | /* STRINGIFY: |
72 | * This macro surrounds its token with double quotes. |
73 | */ |
74 | #if $cpp_stuff == 1 |
75 | #define CAT2(a,b)a/**/b |
76 | #define CAT3(a,b,c)a/**/b/**/c |
77 | #define CAT4(a,b,c,d)a/**/b/**/c/**/d |
78 | #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e |
79 | #define STRINGIFY(a)"a" |
80 | /* If you can get stringification with catify, tell me how! */ |
81 | #endif |
82 | #if $cpp_stuff == 42 |
83 | #define CAT2(a,b)a ## b |
84 | #define CAT3(a,b,c)a ## b ## c |
85 | #define CAT4(a,b,c,d)a ## b ## c ## d |
86 | #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e |
87 | #define StGiFy(a)# a |
88 | #define STRINGIFY(a)StGiFy(a) |
89 | #define SCAT2(a,b)StGiFy(a) StGiFy(b) |
90 | #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c) |
91 | #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) |
92 | #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e) |
93 | #endif |
94 | #ifndef CAT2 |
95 | #include "Bletch: How does this C preprocessor catenate tokens?" |
96 | #endif |
97 | |
2304df62 |
98 | /* CPPSTDIN: |
36ce8bec |
99 | * This symbol contains the first part of the string which will invoke |
100 | * the C preprocessor on the standard input and produce to standard |
2304df62 |
101 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
102 | * call a wrapper. See CPPRUN. |
36ce8bec |
103 | */ |
2304df62 |
104 | /* CPPMINUS: |
36ce8bec |
105 | * This symbol contains the second part of the string which will invoke |
106 | * the C preprocessor on the standard input and produce to standard |
378cc40b |
107 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
36ce8bec |
108 | * to specify standard input, otherwise the value is "". |
109 | */ |
378cc40b |
110 | #define CPPSTDIN "$cppstdin" |
36ce8bec |
111 | #define CPPMINUS "$cppminus" |
112 | |
a0d0e21e |
113 | /* HAS_ALARM: |
114 | * This symbol, if defined, indicates that the alarm routine is |
115 | * available. |
116 | */ |
117 | #$d_alarm HAS_ALARM /**/ |
118 | |
ecfc5424 |
119 | /* HASATTRIBUTE: |
120 | * This symbol indicates the C compiler can check for function attributes, |
121 | * such as printf formats. This is normally only supported by GNU cc. |
122 | */ |
123 | #$d_attribut HASATTRIBUTE /**/ |
124 | #ifndef HASATTRIBUTE |
125 | #define __attribute__(_arg_) |
126 | #endif |
127 | |
2304df62 |
128 | /* HAS_BCMP: |
129 | * This symbol is defined if the bcmp() routine is available to |
130 | * compare blocks of memory. |
a687059c |
131 | */ |
2304df62 |
132 | #$d_bcmp HAS_BCMP /**/ |
a687059c |
133 | |
2304df62 |
134 | /* HAS_BCOPY: |
135 | * This symbol is defined if the bcopy() routine is available to |
136 | * copy blocks of memory. |
c51b80d1 |
137 | */ |
2304df62 |
138 | #$d_bcopy HAS_BCOPY /**/ |
c51b80d1 |
139 | |
2304df62 |
140 | /* HAS_BZERO: |
141 | * This symbol is defined if the bzero() routine is available to |
142 | * set a memory block to 0. |
0d3e774c |
143 | */ |
2304df62 |
144 | #$d_bzero HAS_BZERO /**/ |
0d3e774c |
145 | |
a0d0e21e |
146 | /* CASTI32: |
147 | * This symbol is defined if the C compiler can cast negative |
148 | * or large floating point numbers to 32-bit ints. |
149 | */ |
150 | #$d_casti32 CASTI32 /**/ |
151 | |
2304df62 |
152 | /* CASTNEGFLOAT: |
153 | * This symbol is defined if the C compiler can cast negative |
154 | * numbers to unsigned longs, ints and shorts. |
b1248f16 |
155 | */ |
2304df62 |
156 | /* CASTFLAGS: |
7e1cf235 |
157 | * This symbol contains flags that say what difficulties the compiler |
158 | * has casting odd floating values to unsigned long: |
2304df62 |
159 | * 0 = ok |
7e1cf235 |
160 | * 1 = couldn't cast < 0 |
161 | * 2 = couldn't cast >= 0x80000000 |
162 | */ |
2304df62 |
163 | #$d_castneg CASTNEGFLOAT /**/ |
164 | #define CASTFLAGS $castflags /**/ |
ed6116ce |
165 | |
a0d0e21e |
166 | /* HAS_CHOWN: |
167 | * This symbol, if defined, indicates that the chown routine is |
168 | * available. |
169 | */ |
170 | #$d_chown HAS_CHOWN /**/ |
171 | |
172 | /* HAS_CHROOT: |
173 | * This symbol, if defined, indicates that the chroot routine is |
174 | * available. |
175 | */ |
176 | #$d_chroot HAS_CHROOT /**/ |
177 | |
2304df62 |
178 | /* HAS_CHSIZE: |
87250799 |
179 | * This symbol, if defined, indicates that the chsize routine is available |
180 | * to truncate files. You might need a -lx to get this routine. |
181 | */ |
fe14fcc3 |
182 | #$d_chsize HAS_CHSIZE /**/ |
87250799 |
183 | |
ecfc5424 |
184 | /* VOID_CLOSEDIR: |
185 | * This symbol, if defined, indicates that the closedir() routine |
186 | * does not return a value. |
187 | */ |
188 | #$d_void_closedir VOID_CLOSEDIR /**/ |
189 | |
2304df62 |
190 | /* HASCONST: |
191 | * This symbol, if defined, indicates that this C compiler knows about |
192 | * the const type. There is no need to actually test for that symbol |
193 | * within your programs. The mere use of the "const" keyword will |
194 | * trigger the necessary tests. |
195 | */ |
196 | #$d_const HASCONST /**/ |
197 | #ifndef HASCONST |
198 | #define const |
199 | #endif |
200 | |
201 | /* HAS_CRYPT: |
2e1b3b7e |
202 | * This symbol, if defined, indicates that the crypt routine is available |
203 | * to encrypt passwords and the like. |
204 | */ |
2304df62 |
205 | #$d_crypt HAS_CRYPT /**/ |
2e1b3b7e |
206 | |
a0d0e21e |
207 | /* HAS_CUSERID: |
208 | * This symbol, if defined, indicates that the cuserid routine is |
209 | * available to get character login names. |
13281fa4 |
210 | */ |
a0d0e21e |
211 | #$d_cuserid HAS_CUSERID /**/ |
212 | |
213 | /* HAS_DBL_DIG: |
214 | * This symbol, if defined, indicates that this system's <float.h> |
215 | * or <limits.h> defines the symbol DBL_DIG, which is the number |
216 | * of significant digits in a double precision number. If this |
217 | * symbol is not defined, a guess of 15 is usually pretty good. |
218 | */ |
219 | #$d_dbl_dig HAS_DBL_DIG /* */ |
220 | |
221 | /* HAS_DIFFTIME: |
222 | * This symbol, if defined, indicates that the difftime routine is |
223 | * available. |
224 | */ |
225 | #$d_difftime HAS_DIFFTIME /**/ |
13281fa4 |
226 | |
ecfc5424 |
227 | /* HAS_DLERROR: |
228 | * This symbol, if defined, indicates that the dlerror routine is |
229 | * available to return a string describing the last error that |
230 | * occurred from a call to dlopen(), dlclose() or dlsym(). |
231 | */ |
232 | #$d_dlerror HAS_DLERROR /**/ |
233 | |
234 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
235 | * This symbol, if defined, indicates that the bug that prevents |
236 | * setuid scripts from being secure is not present in this kernel. |
237 | */ |
238 | /* DOSUID: |
239 | * This symbol, if defined, indicates that the C program should |
240 | * check the script that it is executing for setuid/setgid bits, and |
241 | * attempt to emulate setuid/setgid on systems that have disabled |
242 | * setuid #! scripts because the kernel can't do it securely. |
243 | * It is up to the package designer to make sure that this emulation |
244 | * is done securely. Among other things, it should do an fstat on |
245 | * the script it just opened to make sure it really is a setuid/setgid |
246 | * script, it should make sure the arguments passed correspond exactly |
247 | * to the argument on the #! line, and it should not trust any |
248 | * subprocesses to which it must pass the filename rather than the |
249 | * file descriptor of the script to be executed. |
250 | */ |
251 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ |
252 | #$d_dosuid DOSUID /**/ |
253 | |
254 | /* HAS_DREM: |
255 | * This symbol, if defined, indicates that the drem routine is |
256 | * available. This routine is roughly the same as fmod, i.e. it |
257 | * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod |
258 | * uses n=trunc(x/y). |
259 | */ |
260 | #$d_drem HAS_DREM /**/ |
261 | |
2304df62 |
262 | /* HAS_DUP2: |
263 | * This symbol, if defined, indicates that the dup2 routine is |
264 | * available to duplicate file descriptors. |
a687059c |
265 | */ |
2304df62 |
266 | #$d_dup2 HAS_DUP2 /**/ |
a687059c |
267 | |
2304df62 |
268 | /* HAS_FCHMOD: |
378cc40b |
269 | * This symbol, if defined, indicates that the fchmod routine is available |
270 | * to change mode of opened files. If unavailable, use chmod(). |
271 | */ |
2304df62 |
272 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b |
273 | |
2304df62 |
274 | /* HAS_FCHOWN: |
378cc40b |
275 | * This symbol, if defined, indicates that the fchown routine is available |
276 | * to change ownership of opened files. If unavailable, use chown(). |
277 | */ |
2304df62 |
278 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b |
279 | |
2304df62 |
280 | /* HAS_FCNTL: |
fe14fcc3 |
281 | * This symbol, if defined, indicates to the C program that |
282 | * the fcntl() function exists. |
a687059c |
283 | */ |
2304df62 |
284 | #$d_fcntl HAS_FCNTL /**/ |
a687059c |
285 | |
a0d0e21e |
286 | /* HAS_FGETPOS: |
287 | * This symbol, if defined, indicates that the fgetpos routine is |
288 | * available to get the file position indicator, similar to ftell(). |
289 | */ |
290 | #$d_fgetpos HAS_FGETPOS /**/ |
291 | |
2304df62 |
292 | /* FLEXFILENAMES: |
7e1cf235 |
293 | * This symbol, if defined, indicates that the system supports filenames |
294 | * longer than 14 characters. |
295 | */ |
296 | #$d_flexfnam FLEXFILENAMES /**/ |
297 | |
2304df62 |
298 | /* HAS_FLOCK: |
299 | * This symbol, if defined, indicates that the flock routine is |
a687059c |
300 | * available to do file locking. |
301 | */ |
2304df62 |
302 | #$d_flock HAS_FLOCK /**/ |
a687059c |
303 | |
ecfc5424 |
304 | /* HAS_FMOD: |
305 | * This symbol, if defined, indicates that the fmod routine is |
306 | * available to compute the remainder r=x-n*y where n=trunc(x/y). |
307 | */ |
308 | #$d_fmod HAS_FMOD /**/ |
309 | |
a0d0e21e |
310 | /* HAS_FORK: |
311 | * This symbol, if defined, indicates that the fork routine is |
312 | * available. |
313 | */ |
314 | #$d_fork HAS_FORK /**/ |
315 | |
316 | /* HAS_FSETPOS: |
317 | * This symbol, if defined, indicates that the fsetpos routine is |
318 | * available to set the file position indicator, similar to fseek(). |
319 | */ |
320 | #$d_fsetpos HAS_FSETPOS /**/ |
321 | |
ecfc5424 |
322 | /* Gconvert: |
323 | * This preprocessor macro is defined to convert a floating point |
324 | * number to a string without a trailing decimal point. This |
325 | * emulates the behavior of sprintf("%g"), but is sometimes much more |
326 | * efficient. If gconvert() is not available, but gcvt() drops the |
327 | * trailing decimal point, then gcvt() is used. If all else fails, |
328 | * a macro using sprintf("%g") is used. Arguments for the Gconvert |
329 | * macro are: value, number of digits, whether trailing zeros should |
330 | * be retained, and the output buffer. |
331 | */ |
332 | #define Gconvert(x,n,t,b) $d_Gconvert |
333 | |
2304df62 |
334 | /* HAS_GETGROUPS: |
378cc40b |
335 | * This symbol, if defined, indicates that the getgroups() routine is |
336 | * available to get the list of process groups. If unavailable, multiple |
337 | * groups are probably not supported. |
338 | */ |
2304df62 |
339 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b |
340 | |
2304df62 |
341 | /* HAS_GETHOSTENT: |
342 | * This symbol, if defined, indicates that the gethostent routine is |
a687059c |
343 | * available to lookup host names in some data base or other. |
344 | */ |
2304df62 |
345 | #$d_gethent HAS_GETHOSTENT /**/ |
346 | |
347 | /* HAS_UNAME: |
348 | * This symbol, if defined, indicates that the C program may use the |
349 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME |
350 | * and PHOSTNAME. |
351 | */ |
352 | #$d_uname HAS_UNAME /**/ |
a687059c |
353 | |
a0d0e21e |
354 | /* HAS_GETLOGIN: |
355 | * This symbol, if defined, indicates that the getlogin routine is |
356 | * available to get the login name. |
357 | */ |
358 | #$d_getlogin HAS_GETLOGIN /**/ |
359 | |
2304df62 |
360 | /* HAS_GETPGRP: |
361 | * This symbol, if defined, indicates that the getpgrp routine is |
a687059c |
362 | * available to get the current process group. |
363 | */ |
2304df62 |
364 | #$d_getpgrp HAS_GETPGRP /**/ |
a687059c |
365 | |
2304df62 |
366 | /* HAS_GETPGRP2: |
d8f2e4cc |
367 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
368 | * routine is available to get the current process group. |
369 | */ |
2304df62 |
370 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
d8f2e4cc |
371 | |
a0d0e21e |
372 | /* HAS_GETPPID: |
373 | * This symbol, if defined, indicates that the getppid routine is |
374 | * available to get the parent process ID. |
375 | */ |
376 | #$d_getppid HAS_GETPPID /**/ |
377 | |
2304df62 |
378 | /* HAS_GETPRIORITY: |
379 | * This symbol, if defined, indicates that the getpriority routine is |
a687059c |
380 | * available to get a process's priority. |
381 | */ |
2304df62 |
382 | #$d_getprior HAS_GETPRIORITY /**/ |
a687059c |
383 | |
a0d0e21e |
384 | /* HAS_HTONL: |
385 | * This symbol, if defined, indicates that the htonl() routine (and |
386 | * friends htons() ntohl() ntohs()) are available to do network |
387 | * order byte swapping. |
388 | */ |
389 | /* HAS_HTONS: |
390 | * This symbol, if defined, indicates that the htons() routine (and |
391 | * friends htonl() ntohl() ntohs()) are available to do network |
392 | * order byte swapping. |
393 | */ |
394 | /* HAS_NTOHL: |
395 | * This symbol, if defined, indicates that the ntohl() routine (and |
396 | * friends htonl() htons() ntohs()) are available to do network |
397 | * order byte swapping. |
398 | */ |
399 | /* HAS_NTOHS: |
400 | * This symbol, if defined, indicates that the ntohs() routine (and |
401 | * friends htonl() htons() ntohl()) are available to do network |
402 | * order byte swapping. |
403 | */ |
404 | #$d_htonl HAS_HTONL /**/ |
405 | #$d_htonl HAS_HTONS /**/ |
406 | #$d_htonl HAS_NTOHL /**/ |
407 | #$d_htonl HAS_NTOHS /**/ |
408 | |
ecfc5424 |
409 | /* HAS_ISASCII: |
410 | * This manifest constant lets the C program know that isascii |
411 | * is available. |
412 | */ |
413 | #$d_isascii HAS_ISASCII /**/ |
414 | |
2304df62 |
415 | /* HAS_KILLPG: |
378cc40b |
416 | * This symbol, if defined, indicates that the killpg routine is available |
417 | * to kill process groups. If unavailable, you probably should use kill |
418 | * with a negative process number. |
419 | */ |
2304df62 |
420 | #$d_killpg HAS_KILLPG /**/ |
378cc40b |
421 | |
2304df62 |
422 | /* HAS_LINK: |
423 | * This symbol, if defined, indicates that the link routine is |
424 | * available to create hard links. |
0d3e774c |
425 | */ |
2304df62 |
426 | #$d_link HAS_LINK /**/ |
0d3e774c |
427 | |
ecfc5424 |
428 | /* USE_LINUX_STDIO: |
429 | * This symbol is defined if this system has a FILE structure declaring |
430 | * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h. |
431 | */ |
432 | #$d_linuxstd USE_LINUX_STDIO /**/ |
433 | |
434 | /* HAS_LOCALECONV: |
435 | * This symbol, if defined, indicates that the localeconv routine is |
436 | * available for numeric and monetary formatting conventions. |
437 | */ |
438 | #$d_locconv HAS_LOCALECONV /**/ |
439 | |
a0d0e21e |
440 | /* HAS_LOCKF: |
441 | * This symbol, if defined, indicates that the lockf routine is |
442 | * available to do file locking. |
443 | */ |
444 | #$d_lockf HAS_LOCKF /**/ |
445 | |
2304df62 |
446 | /* HAS_LSTAT: |
447 | * This symbol, if defined, indicates that the lstat routine is |
448 | * available to do file stats on symbolic links. |
a687059c |
449 | */ |
2304df62 |
450 | #$d_lstat HAS_LSTAT /**/ |
a687059c |
451 | |
a0d0e21e |
452 | /* HAS_MBLEN: |
453 | * This symbol, if defined, indicates that the mblen routine is available |
454 | * to find the number of bytes in a multibye character. |
455 | */ |
456 | #$d_mblen HAS_MBLEN /**/ |
457 | |
458 | /* HAS_MBSTOWCS: |
459 | * This symbol, if defined, indicates that the mbstowcs routine is |
460 | * available to covert a multibyte string into a wide character string. |
461 | */ |
462 | #$d_mbstowcs HAS_MBSTOWCS /**/ |
463 | |
464 | /* HAS_MBTOWC: |
465 | * This symbol, if defined, indicates that the mbtowc routine is available |
466 | * to covert a multibyte to a wide character. |
467 | */ |
468 | #$d_mbtowc HAS_MBTOWC /**/ |
469 | |
2304df62 |
470 | /* HAS_MEMCMP: |
471 | * This symbol, if defined, indicates that the memcmp routine is available |
472 | * to compare blocks of memory. |
378cc40b |
473 | */ |
2304df62 |
474 | #$d_memcmp HAS_MEMCMP /**/ |
475 | |
476 | /* HAS_MEMCPY: |
9f971974 |
477 | * This symbol, if defined, indicates that the memcpy routine is available |
2304df62 |
478 | * to copy blocks of memory. |
9f971974 |
479 | */ |
2304df62 |
480 | #$d_memcpy HAS_MEMCPY /**/ |
9f971974 |
481 | |
2304df62 |
482 | /* HAS_MEMMOVE: |
9f971974 |
483 | * This symbol, if defined, indicates that the memmove routine is available |
2304df62 |
484 | * to copy potentially overlapping blocks of memory. This should be used |
485 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your |
486 | * own version. |
9f971974 |
487 | */ |
2304df62 |
488 | #$d_memmove HAS_MEMMOVE /**/ |
9f971974 |
489 | |
2304df62 |
490 | /* HAS_MEMSET: |
9f971974 |
491 | * This symbol, if defined, indicates that the memset routine is available |
2304df62 |
492 | * to set blocks of memory. |
9f971974 |
493 | */ |
2304df62 |
494 | #$d_memset HAS_MEMSET /**/ |
378cc40b |
495 | |
2304df62 |
496 | /* HAS_MKDIR: |
a687059c |
497 | * This symbol, if defined, indicates that the mkdir routine is available |
498 | * to create directories. Otherwise you should fork off a new process to |
499 | * exec /bin/mkdir. |
500 | */ |
2304df62 |
501 | #$d_mkdir HAS_MKDIR /**/ |
fe14fcc3 |
502 | |
ecfc5424 |
503 | /* HAS_MKFIFO: |
504 | * This symbol, if defined, indicates that the mkfifo routine is |
505 | * available to create FIFOs. Otherwise, mknod should be able to |
506 | * do it for you. However, if mkfifo is there, mknod might require |
507 | * super-user privileges which mkfifo will not. |
508 | */ |
509 | #$d_mkfifo HAS_MKFIFO /**/ |
510 | |
a0d0e21e |
511 | /* HAS_MKTIME: |
512 | * This symbol, if defined, indicates that the mktime routine is |
513 | * available. |
514 | */ |
515 | #$d_mktime HAS_MKTIME /**/ |
516 | |
2304df62 |
517 | /* HAS_MSG: |
fe14fcc3 |
518 | * This symbol, if defined, indicates that the entire msg*(2) library is |
2304df62 |
519 | * supported (IPC mechanism based on message queues). |
fe14fcc3 |
520 | */ |
2304df62 |
521 | #$d_msg HAS_MSG /**/ |
fe14fcc3 |
522 | |
a0d0e21e |
523 | /* HAS_NICE: |
524 | * This symbol, if defined, indicates that the nice routine is |
525 | * available. |
fe14fcc3 |
526 | */ |
a0d0e21e |
527 | #$d_nice HAS_NICE /**/ |
a687059c |
528 | |
a0d0e21e |
529 | /* HAS_OPEN3: |
530 | * This manifest constant lets the C program know that the three |
531 | * argument form of open(2) is available. |
fe14fcc3 |
532 | */ |
a0d0e21e |
533 | #$d_open3 HAS_OPEN3 /**/ |
fe14fcc3 |
534 | |
ecfc5424 |
535 | /* HAS_PATHCONF: |
536 | * This symbol, if defined, indicates that pathconf() is available |
537 | * to determine file-system related limits and options associated |
538 | * with a given filename. |
539 | */ |
540 | /* HAS_FPATHCONF: |
541 | * This symbol, if defined, indicates that pathconf() is available |
542 | * to determine file-system related limits and options associated |
543 | * with a given open file descriptor. |
544 | */ |
545 | #$d_pathconf HAS_PATHCONF /**/ |
546 | #$d_fpathconf HAS_FPATHCONF /**/ |
547 | |
a0d0e21e |
548 | /* HAS_PAUSE: |
549 | * This symbol, if defined, indicates that the pause routine is |
550 | * available to suspend a process until a signal is received. |
a687059c |
551 | */ |
a0d0e21e |
552 | #$d_pause HAS_PAUSE /**/ |
a687059c |
553 | |
a0d0e21e |
554 | /* HAS_PIPE: |
555 | * This symbol, if defined, indicates that the pipe routine is |
556 | * available to create an inter-process channel. |
fe14fcc3 |
557 | */ |
a0d0e21e |
558 | #$d_pipe HAS_PIPE /**/ |
559 | |
560 | /* HAS_READDIR: |
561 | * This symbol, if defined, indicates that the readdir routine is |
562 | * available to read directory entries. You may have to include |
563 | * <dirent.h>. See I_DIRENT. |
564 | */ |
565 | #$d_readdir HAS_READDIR /**/ |
566 | |
567 | /* HAS_SEEKDIR: |
568 | * This symbol, if defined, indicates that the seekdir routine is |
569 | * available. You may have to include <dirent.h>. See I_DIRENT. |
570 | */ |
571 | #$d_seekdir HAS_SEEKDIR /**/ |
572 | |
573 | /* HAS_TELLDIR: |
574 | * This symbol, if defined, indicates that the telldir routine is |
575 | * available. You may have to include <dirent.h>. See I_DIRENT. |
576 | */ |
577 | #$d_telldir HAS_TELLDIR /**/ |
578 | |
579 | /* HAS_REWINDDIR: |
580 | * This symbol, if defined, indicates that the rewinddir routine is |
581 | * available. You may have to include <dirent.h>. See I_DIRENT. |
582 | */ |
583 | #$d_rewinddir HAS_REWINDDIR /**/ |
584 | |
585 | /* HAS_READLINK: |
586 | * This symbol, if defined, indicates that the readlink routine is |
587 | * available to read the value of a symbolic link. |
588 | */ |
589 | #$d_readlink HAS_READLINK /**/ |
fe14fcc3 |
590 | |
2304df62 |
591 | /* HAS_RENAME: |
378cc40b |
592 | * This symbol, if defined, indicates that the rename routine is available |
593 | * to rename files. Otherwise you should do the unlink(), link(), unlink() |
594 | * trick. |
595 | */ |
2304df62 |
596 | #$d_rename HAS_RENAME /**/ |
378cc40b |
597 | |
2304df62 |
598 | /* HAS_RMDIR: |
599 | * This symbol, if defined, indicates that the rmdir routine is |
600 | * available to remove directories. Otherwise you should fork off a |
601 | * new process to exec /bin/rmdir. |
9f971974 |
602 | */ |
2304df62 |
603 | #$d_rmdir HAS_RMDIR /**/ |
9f971974 |
604 | |
ecfc5424 |
605 | /* HAS_SAFE_BCOPY: |
606 | * This symbol, if defined, indicates that the bcopy routine is available |
607 | * to copy potentially overlapping memory blocks. Otherwise you should |
608 | * probably use memmove() or memcpy(). If neither is defined, roll your |
609 | * own version. |
610 | */ |
611 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
612 | |
613 | /* HAS_SAFE_MEMCPY: |
614 | * This symbol, if defined, indicates that the memcpy routine is available |
615 | * to copy potentially overlapping memory blocks. Otherwise you should |
616 | * probably use memmove() or memcpy(). If neither is defined, roll your |
617 | * own version. |
618 | */ |
619 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
620 | |
2304df62 |
621 | /* HAS_SELECT: |
622 | * This symbol, if defined, indicates that the select routine is |
623 | * available to select active file descriptors. If the timeout field |
624 | * is used, <sys/time.h> may need to be included. |
fe14fcc3 |
625 | */ |
2304df62 |
626 | #$d_select HAS_SELECT /**/ |
a687059c |
627 | |
2304df62 |
628 | /* HAS_SEM: |
fe14fcc3 |
629 | * This symbol, if defined, indicates that the entire sem*(2) library is |
630 | * supported. |
631 | */ |
2304df62 |
632 | #$d_sem HAS_SEM /**/ |
fe14fcc3 |
633 | |
2304df62 |
634 | /* HAS_SETEGID: |
378cc40b |
635 | * This symbol, if defined, indicates that the setegid routine is available |
636 | * to change the effective gid of the current program. |
637 | */ |
2304df62 |
638 | #$d_setegid HAS_SETEGID /**/ |
378cc40b |
639 | |
2304df62 |
640 | /* HAS_SETEUID: |
378cc40b |
641 | * This symbol, if defined, indicates that the seteuid routine is available |
642 | * to change the effective uid of the current program. |
643 | */ |
2304df62 |
644 | #$d_seteuid HAS_SETEUID /**/ |
645 | |
a0d0e21e |
646 | /* HAS_SETLINEBUF: |
647 | * This symbol, if defined, indicates that the setlinebuf routine is |
648 | * available to change stderr or stdout from block-buffered or unbuffered |
649 | * to a line-buffered mode. |
650 | */ |
651 | #$d_setlinebuf HAS_SETLINEBUF /**/ |
652 | |
653 | /* HAS_SETLOCALE: |
654 | * This symbol, if defined, indicates that the setlocale routine is |
655 | * available to handle locale-specific ctype implementations. |
656 | */ |
657 | #$d_setlocale HAS_SETLOCALE /**/ |
658 | |
2304df62 |
659 | /* HAS_SETPGID: |
660 | * This symbol, if defined, indicates that the setpgid routine is |
661 | * available to set process group ID. |
662 | */ |
663 | #$d_setpgid HAS_SETPGID /**/ |
378cc40b |
664 | |
ecfc5424 |
665 | /* HAS_SETPGRP: |
666 | * This symbol, if defined, indicates that the setpgrp routine is |
667 | * available to set the current process group. |
668 | */ |
669 | /* USE_BSDPGRP: |
670 | * This symbol, if defined, indicates that the BSD notion of process |
671 | * group is to be used. For instance, you have to say setpgrp(pid, pgrp) |
672 | * instead of the USG setpgrp(). |
673 | */ |
674 | #$d_setpgrp HAS_SETPGRP /**/ |
675 | #$d_bsdpgrp USE_BSDPGRP /**/ |
676 | |
2304df62 |
677 | /* HAS_SETPGRP2: |
d8f2e4cc |
678 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
679 | * routine is available to set the current process group. |
680 | */ |
2304df62 |
681 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
d8f2e4cc |
682 | |
2304df62 |
683 | /* HAS_SETPRIORITY: |
684 | * This symbol, if defined, indicates that the setpriority routine is |
a687059c |
685 | * available to set a process's priority. |
686 | */ |
2304df62 |
687 | #$d_setprior HAS_SETPRIORITY /**/ |
a687059c |
688 | |
2304df62 |
689 | /* HAS_SETREGID: |
a687059c |
690 | * This symbol, if defined, indicates that the setregid routine is |
2304df62 |
691 | * available to change the real and effective gid of the current |
692 | * process. |
a687059c |
693 | */ |
2304df62 |
694 | /* HAS_SETRESGID: |
a687059c |
695 | * This symbol, if defined, indicates that the setresgid routine is |
696 | * available to change the real, effective and saved gid of the current |
2304df62 |
697 | * process. |
a687059c |
698 | */ |
2304df62 |
699 | #$d_setregid HAS_SETREGID /**/ |
700 | #$d_setresgid HAS_SETRESGID /**/ |
a687059c |
701 | |
2304df62 |
702 | /* HAS_SETREUID: |
a687059c |
703 | * This symbol, if defined, indicates that the setreuid routine is |
2304df62 |
704 | * available to change the real and effective uid of the current |
705 | * process. |
a687059c |
706 | */ |
2304df62 |
707 | /* HAS_SETRESUID: |
a687059c |
708 | * This symbol, if defined, indicates that the setresuid routine is |
709 | * available to change the real, effective and saved uid of the current |
2304df62 |
710 | * process. |
a687059c |
711 | */ |
2304df62 |
712 | #$d_setreuid HAS_SETREUID /**/ |
713 | #$d_setresuid HAS_SETRESUID /**/ |
a687059c |
714 | |
2304df62 |
715 | /* HAS_SETRGID: |
378cc40b |
716 | * This symbol, if defined, indicates that the setrgid routine is available |
717 | * to change the real gid of the current program. |
718 | */ |
2304df62 |
719 | #$d_setrgid HAS_SETRGID /**/ |
378cc40b |
720 | |
2304df62 |
721 | /* HAS_SETRUID: |
378cc40b |
722 | * This symbol, if defined, indicates that the setruid routine is available |
723 | * to change the real uid of the current program. |
724 | */ |
2304df62 |
725 | #$d_setruid HAS_SETRUID /**/ |
726 | |
727 | /* HAS_SETSID: |
728 | * This symbol, if defined, indicates that the setsid routine is |
729 | * available to set the process group ID. |
730 | */ |
731 | #$d_setsid HAS_SETSID /**/ |
fe14fcc3 |
732 | |
2304df62 |
733 | /* HAS_SHM: |
fe14fcc3 |
734 | * This symbol, if defined, indicates that the entire shm*(2) library is |
735 | * supported. |
736 | */ |
2304df62 |
737 | #$d_shm HAS_SHM /**/ |
fe14fcc3 |
738 | |
a0d0e21e |
739 | /* Shmat_t: |
740 | * This symbol holds the return type of the shmat() system call. |
741 | * Usually set to 'void *' or 'char *'. |
fe14fcc3 |
742 | */ |
a0d0e21e |
743 | /* HAS_SHMAT_PROTOTYPE: |
744 | * This symbol, if defined, indicates that the sys/shm.h includes |
745 | * a prototype for shmat(). Otherwise, it is up to the program to |
746 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, |
747 | * but not always right so it should be emitted by the program only |
748 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. |
fe14fcc3 |
749 | */ |
a0d0e21e |
750 | #define Shmat_t $shmattype /**/ |
751 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ |
fe14fcc3 |
752 | |
2304df62 |
753 | /* HAS_SOCKET: |
a687059c |
754 | * This symbol, if defined, indicates that the BSD socket interface is |
755 | * supported. |
756 | */ |
2304df62 |
757 | /* HAS_SOCKETPAIR: |
758 | * This symbol, if defined, indicates that the BSD socketpair() call is |
a687059c |
759 | * supported. |
760 | */ |
2304df62 |
761 | #$d_socket HAS_SOCKET /**/ |
762 | #$d_sockpair HAS_SOCKETPAIR /**/ |
a687059c |
763 | |
2304df62 |
764 | /* USE_STAT_BLOCKS: |
c51b80d1 |
765 | * This symbol is defined if this system has a stat structure declaring |
766 | * st_blksize and st_blocks. |
767 | */ |
2304df62 |
768 | #$d_statblks USE_STAT_BLOCKS /**/ |
c51b80d1 |
769 | |
2304df62 |
770 | /* USE_STD_STDIO: |
36ce8bec |
771 | * This symbol is defined if this system has a FILE structure declaring |
772 | * _ptr and _cnt in stdio.h. |
773 | */ |
2304df62 |
774 | #$d_stdstdio USE_STD_STDIO /**/ |
36ce8bec |
775 | |
a0d0e21e |
776 | /* HAS_STRCHR: |
777 | * This symbol is defined to indicate that the strchr()/strrchr() |
778 | * functions are available for string searching. If not, try the |
779 | * index()/rindex() pair. |
780 | */ |
781 | /* HAS_INDEX: |
782 | * This symbol is defined to indicate that the index()/rindex() |
783 | * functions are available for string searching. |
784 | */ |
785 | #$d_strchr HAS_STRCHR /**/ |
786 | #$d_index HAS_INDEX /**/ |
787 | |
788 | /* HAS_STRCOLL: |
789 | * This symbol, if defined, indicates that the strcoll routine is |
790 | * available to compare strings using collating information. |
791 | */ |
792 | #$d_strcoll HAS_STRCOLL /**/ |
793 | |
2304df62 |
794 | /* USE_STRUCT_COPY: |
8d063cd8 |
795 | * This symbol, if defined, indicates that this C compiler knows how |
796 | * to copy structures. If undefined, you'll need to use a block copy |
797 | * routine of some sort instead. |
798 | */ |
2304df62 |
799 | #$d_strctcpy USE_STRUCT_COPY /**/ |
8d063cd8 |
800 | |
a0d0e21e |
801 | /* HAS_STRERROR: |
802 | * This symbol, if defined, indicates that the strerror routine is |
803 | * available to translate error numbers to strings. See the writeup |
804 | * of Strerror() in this file before you try to define your own. |
805 | */ |
806 | /* HAS_SYS_ERRLIST: |
807 | * This symbol, if defined, indicates that the sys_errlist array is |
808 | * available to translate error numbers to strings. The extern int |
809 | * sys_nerr gives the size of that table. |
810 | */ |
811 | /* Strerror: |
812 | * This preprocessor symbol is defined as a macro if strerror() is |
813 | * not available to translate error numbers to strings but sys_errlist[] |
814 | * array is there. |
815 | */ |
816 | #$d_strerror HAS_STRERROR /**/ |
817 | #$d_syserrlst HAS_SYS_ERRLIST /**/ |
818 | #define Strerror(e) $d_strerrm |
819 | |
820 | /* HAS_STRXFRM: |
821 | * This symbol, if defined, indicates that the strxfrm() routine is |
822 | * available to transform strings. |
823 | */ |
824 | #$d_strxfrm HAS_STRXFRM /**/ |
825 | |
2304df62 |
826 | /* HAS_SYMLINK: |
2e1b3b7e |
827 | * This symbol, if defined, indicates that the symlink routine is available |
828 | * to create symbolic links. |
829 | */ |
2304df62 |
830 | #$d_symlink HAS_SYMLINK /**/ |
2e1b3b7e |
831 | |
2304df62 |
832 | /* HAS_SYSCALL: |
833 | * This symbol, if defined, indicates that the syscall routine is |
834 | * available to call arbitrary system calls. If undefined, that's tough. |
a687059c |
835 | */ |
2304df62 |
836 | #$d_syscall HAS_SYSCALL /**/ |
e5d73d77 |
837 | |
ecfc5424 |
838 | /* HAS_SYSCONF: |
839 | * This symbol, if defined, indicates that sysconf() is available |
840 | * to determine system related limits and options. |
841 | */ |
842 | #$d_sysconf HAS_SYSCONF /**/ |
843 | |
2304df62 |
844 | /* HAS_SYSTEM: |
845 | * This symbol, if defined, indicates that the system routine is |
846 | * available to issue a shell command. |
9f971974 |
847 | */ |
2304df62 |
848 | #$d_system HAS_SYSTEM /**/ |
9f971974 |
849 | |
a0d0e21e |
850 | /* HAS_TCGETPGRP: |
851 | * This symbol, if defined, indicates that the tcgetpgrp routine is |
852 | * available to get foreground process group ID. |
85e6fe83 |
853 | */ |
a0d0e21e |
854 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
855 | |
856 | /* HAS_TCSETPGRP: |
857 | * This symbol, if defined, indicates that the tcsetpgrp routine is |
858 | * available to set foreground process group ID. |
859 | */ |
860 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ |
85e6fe83 |
861 | |
ecfc5424 |
862 | /* Time_t: |
863 | * This symbol holds the type returned by time(). It can be long, |
864 | * or time_t on BSD sites (in which case <sys/types.h> should be |
865 | * included). |
866 | */ |
867 | #define Time_t $timetype /* Time type */ |
868 | |
2304df62 |
869 | /* HAS_TIMES: |
870 | * This symbol, if defined, indicates that the times() routine exists. |
871 | * Note that this became obsolete on some systems (SUNOS), which now |
872 | * use getrusage(). It may be necessary to include <sys/times.h>. |
873 | */ |
874 | #$d_times HAS_TIMES /**/ |
875 | |
876 | /* HAS_TRUNCATE: |
87250799 |
877 | * This symbol, if defined, indicates that the truncate routine is |
878 | * available to truncate files. |
879 | */ |
2304df62 |
880 | #$d_truncate HAS_TRUNCATE /**/ |
87250799 |
881 | |
a0d0e21e |
882 | /* HAS_TZNAME: |
883 | * This symbol, if defined, indicates that the tzname[] array is |
884 | * available to access timezone names. |
885 | */ |
886 | #$d_tzname HAS_TZNAME /**/ |
887 | |
888 | /* HAS_UMASK: |
889 | * This symbol, if defined, indicates that the umask routine is |
890 | * available to set and get the value of the file creation mask. |
891 | */ |
892 | #$d_umask HAS_UMASK /**/ |
893 | |
894 | /* HAS_VFORK: |
895 | * This symbol, if defined, indicates that vfork() exists. |
2304df62 |
896 | */ |
a0d0e21e |
897 | #$d_vfork HAS_VFORK /**/ |
2304df62 |
898 | |
ecfc5424 |
899 | /* Signal_t: |
900 | * This symbol's value is either "void" or "int", corresponding to the |
901 | * appropriate return type of a signal handler. Thus, you can declare |
902 | * a signal handler using "Signal_t (*handler)()", and define the |
903 | * handler using "Signal_t handler(sig)". |
904 | */ |
ecfc5424 |
905 | #define Signal_t $signal_t /* Signal handler's return type */ |
36ce8bec |
906 | |
2304df62 |
907 | /* HASVOLATILE: |
afd9f252 |
908 | * This symbol, if defined, indicates that this C compiler knows about |
909 | * the volatile declaration. |
910 | */ |
911 | #$d_volatile HASVOLATILE /**/ |
2304df62 |
912 | #ifndef HASVOLATILE |
913 | #define volatile |
914 | #endif |
afd9f252 |
915 | |
2304df62 |
916 | /* HAS_VPRINTF: |
a687059c |
917 | * This symbol, if defined, indicates that the vprintf routine is available |
918 | * to printf with a pointer to an argument list. If unavailable, you |
919 | * may need to write your own, probably in terms of _doprnt(). |
920 | */ |
2304df62 |
921 | /* USE_CHAR_VSPRINTF: |
a687059c |
922 | * This symbol is defined if this system has vsprintf() returning type |
923 | * (char*). The trend seems to be to declare it as "int vsprintf()". It |
924 | * is up to the package author to declare vsprintf correctly based on the |
925 | * symbol. |
926 | */ |
2304df62 |
927 | #$d_vprintf HAS_VPRINTF /**/ |
928 | #$d_charvspr USE_CHAR_VSPRINTF /**/ |
a687059c |
929 | |
2304df62 |
930 | /* HAS_WAIT4: |
bf38876a |
931 | * This symbol, if defined, indicates that wait4() exists. |
932 | */ |
2304df62 |
933 | #$d_wait4 HAS_WAIT4 /**/ |
bf38876a |
934 | |
2304df62 |
935 | /* HAS_WAITPID: |
936 | * This symbol, if defined, indicates that the waitpid routine is |
937 | * available to wait for child process. |
39c3038c |
938 | */ |
2304df62 |
939 | #$d_waitpid HAS_WAITPID /**/ |
39c3038c |
940 | |
a0d0e21e |
941 | /* HAS_WCSTOMBS: |
942 | * This symbol, if defined, indicates that the wcstombs routine is |
943 | * available to convert wide character strings to multibyte strings. |
944 | */ |
945 | #$d_wcstombs HAS_WCSTOMBS /**/ |
946 | |
947 | /* HAS_WCTOMB: |
948 | * This symbol, if defined, indicates that the wctomb routine is available |
949 | * to covert a wide character to a multibyte. |
950 | */ |
951 | #$d_wctomb HAS_WCTOMB /**/ |
952 | |
953 | /* Fpos_t: |
954 | * This symbol holds the type used to declare file positions in libc. |
955 | * It can be fpos_t, long, uint, etc... It may be necessary to include |
956 | * <sys/types.h> to get any typedef'ed information. |
957 | */ |
958 | #define Fpos_t $fpostype /* File position type */ |
959 | |
960 | /* Gid_t: |
961 | * This symbol holds the return type of getgid() and the type of |
962 | * argument to setrgid() and related functions. Typically, |
963 | * it is the type of group ids in the kernel. It can be int, ushort, |
964 | * uid_t, etc... It may be necessary to include <sys/types.h> to get |
965 | * any typedef'ed information. |
378cc40b |
966 | */ |
a0d0e21e |
967 | #define Gid_t $gidtype /* Type for getgid(), etc... */ |
378cc40b |
968 | |
ecfc5424 |
969 | /* Groups_t: |
970 | * This symbol holds the type used for the second argument to |
971 | * getgroups(). Usually, this is the same of gidtype, but |
972 | * sometimes it isn't. It can be int, ushort, uid_t, etc... |
973 | * It may be necessary to include <sys/types.h> to get any |
974 | * typedef'ed information. This is only required if you have |
975 | * getgroups(). |
976 | */ |
977 | #ifdef HAS_GETGROUPS |
978 | #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */ |
979 | #endif |
980 | |
2304df62 |
981 | /* I_DIRENT: |
982 | * This symbol, if defined, indicates to the C program that it should |
983 | * include <dirent.h>. Using this symbol also triggers the definition |
984 | * of the Direntry_t define which ends up being 'struct dirent' or |
985 | * 'struct direct' depending on the availability of <dirent.h>. |
1c3d792e |
986 | */ |
2304df62 |
987 | /* DIRNAMLEN: |
988 | * This symbol, if defined, indicates to the C program that the length |
989 | * of directory entry names is provided by a d_namlen field. Otherwise |
990 | * you need to do strlen() on the d_name field. |
991 | */ |
a0d0e21e |
992 | /* Direntry_t: |
993 | * This symbol is set to 'struct direct' or 'struct dirent' depending on |
994 | * whether dirent is available or not. You should use this pseudo type to |
995 | * portably declare your directory entries. |
996 | */ |
2304df62 |
997 | #$i_dirent I_DIRENT /**/ |
998 | #$d_dirnamlen DIRNAMLEN /**/ |
a0d0e21e |
999 | #define Direntry_t $direntrytype |
1000 | |
1001 | /* I_DLFCN: |
1002 | * This symbol, if defined, indicates that <dlfcn.h> exists and should |
1003 | * be included. |
1004 | */ |
1005 | #$i_dlfcn I_DLFCN /**/ |
1c3d792e |
1006 | |
2304df62 |
1007 | /* I_FCNTL: |
fe14fcc3 |
1008 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c |
1009 | */ |
2304df62 |
1010 | #$i_fcntl I_FCNTL /**/ |
a687059c |
1011 | |
a0d0e21e |
1012 | /* I_FLOAT: |
1013 | * This symbol, if defined, indicates to the C program that it should |
1014 | * include <float.h> to get definition of symbols like DBL_MAX or |
1015 | * DBL_MIN, i.e. machine dependent floating point values. |
a687059c |
1016 | */ |
a0d0e21e |
1017 | #$i_float I_FLOAT /**/ |
a687059c |
1018 | |
2304df62 |
1019 | /* I_GRP: |
a687059c |
1020 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1021 | * include <grp.h>. |
a687059c |
1022 | */ |
2304df62 |
1023 | #$i_grp I_GRP /**/ |
a687059c |
1024 | |
a0d0e21e |
1025 | /* I_LIMITS: |
1026 | * This symbol, if defined, indicates to the C program that it should |
1027 | * include <limits.h> to get definition of symbols like WORD_BIT or |
1028 | * LONG_MAX, i.e. machine dependant limitations. |
1029 | */ |
1030 | #$i_limits I_LIMITS /**/ |
1031 | |
1032 | /* I_MATH: |
1033 | * This symbol, if defined, indicates to the C program that it should |
1034 | * include <math.h>. |
1035 | */ |
1036 | #$i_math I_MATH /**/ |
1037 | |
1038 | /* I_MEMORY: |
1039 | * This symbol, if defined, indicates to the C program that it should |
1040 | * include <memory.h>. |
1041 | */ |
1042 | #$i_memory I_MEMORY /**/ |
1043 | |
ecfc5424 |
1044 | /* I_NET_ERRNO: |
1045 | * This symbol, if defined, indicates that <net/errno.h> exists and |
1046 | * should be included. |
2304df62 |
1047 | */ |
ecfc5424 |
1048 | #$i_neterrno I_NET_ERRNO /**/ |
2304df62 |
1049 | |
1050 | /* I_NETINET_IN: |
03a14243 |
1051 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1052 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
03a14243 |
1053 | */ |
2304df62 |
1054 | #$i_niin I_NETINET_IN /**/ |
03a14243 |
1055 | |
a0d0e21e |
1056 | /* I_PWD: |
1057 | * This symbol, if defined, indicates to the C program that it should |
1058 | * include <pwd.h>. |
a687059c |
1059 | */ |
a0d0e21e |
1060 | /* PWQUOTA: |
1061 | * This symbol, if defined, indicates to the C program that struct passwd |
1062 | * contains pw_quota. |
1063 | */ |
1064 | /* PWAGE: |
1065 | * This symbol, if defined, indicates to the C program that struct passwd |
1066 | * contains pw_age. |
1067 | */ |
1068 | /* PWCHANGE: |
1069 | * This symbol, if defined, indicates to the C program that struct passwd |
1070 | * contains pw_change. |
1071 | */ |
1072 | /* PWCLASS: |
1073 | * This symbol, if defined, indicates to the C program that struct passwd |
1074 | * contains pw_class. |
1075 | */ |
1076 | /* PWEXPIRE: |
1077 | * This symbol, if defined, indicates to the C program that struct passwd |
1078 | * contains pw_expire. |
1079 | */ |
1080 | /* PWCOMMENT: |
1081 | * This symbol, if defined, indicates to the C program that struct passwd |
1082 | * contains pw_comment. |
1083 | */ |
1084 | #$i_pwd I_PWD /**/ |
1085 | #$d_pwquota PWQUOTA /**/ |
1086 | #$d_pwage PWAGE /**/ |
1087 | #$d_pwchange PWCHANGE /**/ |
1088 | #$d_pwclass PWCLASS /**/ |
1089 | #$d_pwexpire PWEXPIRE /**/ |
1090 | #$d_pwcomment PWCOMMENT /**/ |
a687059c |
1091 | |
2304df62 |
1092 | /* I_STDDEF: |
1093 | * This symbol, if defined, indicates that <stddef.h> exists and should |
a687059c |
1094 | * be included. |
1095 | */ |
2304df62 |
1096 | #$i_stddef I_STDDEF /**/ |
a687059c |
1097 | |
a0d0e21e |
1098 | /* I_STDLIB: |
1099 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
1100 | * be included. |
1101 | */ |
1102 | #$i_stdlib I_STDLIB /**/ |
1103 | |
1104 | /* I_STRING: |
85e6fe83 |
1105 | * This symbol, if defined, indicates to the C program that it should |
1106 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
1107 | */ |
1108 | #$i_string I_STRING /**/ |
1109 | |
2304df62 |
1110 | /* I_SYS_DIR: |
1111 | * This symbol, if defined, indicates to the C program that it should |
1112 | * include <sys/dir.h>. |
d8f2e4cc |
1113 | */ |
2304df62 |
1114 | #$i_sysdir I_SYS_DIR /**/ |
1115 | |
1116 | /* I_SYS_FILE: |
1117 | * This symbol, if defined, indicates to the C program that it should |
1118 | * include <sys/file.h> to get definition of R_OK and friends. |
d8f2e4cc |
1119 | */ |
2304df62 |
1120 | #$i_sysfile I_SYS_FILE /**/ |
1121 | |
1122 | /* I_SYS_IOCTL: |
1123 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should |
1124 | * be included. Otherwise, include <sgtty.h> or <termio.h>. |
d8f2e4cc |
1125 | */ |
2304df62 |
1126 | #$i_sysioctl I_SYS_IOCTL /**/ |
1127 | |
1128 | /* I_SYS_NDIR: |
1129 | * This symbol, if defined, indicates to the C program that it should |
1130 | * include <sys/ndir.h>. |
1131 | */ |
1132 | #$i_sysndir I_SYS_NDIR /**/ |
1133 | |
a0d0e21e |
1134 | /* I_SYS_PARAM: |
1135 | * This symbol, if defined, indicates to the C program that it should |
1136 | * include <sys/param.h>. |
1137 | */ |
1138 | #$i_sysparam I_SYS_PARAM /**/ |
1139 | |
2304df62 |
1140 | /* I_SYS_SELECT: |
1141 | * This symbol, if defined, indicates to the C program that it should |
1142 | * include <sys/select.h> in order to get definition of struct timeval. |
1143 | */ |
1144 | #$i_sysselct I_SYS_SELECT /**/ |
1145 | |
a0d0e21e |
1146 | /* I_SYS_TIMES: |
1147 | * This symbol, if defined, indicates to the C program that it should |
1148 | * include <sys/times.h>. |
1149 | */ |
1150 | #$i_systimes I_SYS_TIMES /**/ |
1151 | |
1152 | /* I_TERMIO: |
1153 | * This symbol, if defined, indicates that the program should include |
1154 | * <termio.h> rather than <sgtty.h>. There are also differences in |
1155 | * the ioctl() calls that depend on the value of this symbol. |
1156 | */ |
1157 | /* I_TERMIOS: |
1158 | * This symbol, if defined, indicates that the program should include |
1159 | * the POSIX termios.h rather than sgtty.h or termio.h. |
1160 | * There are also differences in the ioctl() calls that depend on the |
1161 | * value of this symbol. |
1162 | */ |
1163 | /* I_SGTTY: |
1164 | * This symbol, if defined, indicates that the program should include |
1165 | * <sgtty.h> rather than <termio.h>. There are also differences in |
1166 | * the ioctl() calls that depend on the value of this symbol. |
1167 | */ |
1168 | #$i_termio I_TERMIO /**/ |
1169 | #$i_termios I_TERMIOS /**/ |
1170 | #$i_sgtty I_SGTTY /**/ |
1171 | |
2304df62 |
1172 | /* I_TIME: |
1173 | * This symbol, if defined, indicates to the C program that it should |
1174 | * include <time.h>. |
1175 | */ |
1176 | /* I_SYS_TIME: |
1177 | * This symbol, if defined, indicates to the C program that it should |
1178 | * include <sys/time.h>. |
fe14fcc3 |
1179 | */ |
85e6fe83 |
1180 | /* I_SYS_TIME_KERNEL: |
1181 | * This symbol, if defined, indicates to the C program that it should |
1182 | * include <sys/time.h> with KERNEL defined. |
1183 | */ |
2304df62 |
1184 | #$i_time I_TIME /**/ |
1185 | #$i_systime I_SYS_TIME /**/ |
85e6fe83 |
1186 | #$i_systimek I_SYS_TIME_KERNEL /**/ |
1187 | |
1188 | /* I_UNISTD: |
1189 | * This symbol, if defined, indicates to the C program that it should |
1190 | * include <unistd.h>. |
1191 | */ |
1192 | #$i_unistd I_UNISTD /**/ |
d8f2e4cc |
1193 | |
2304df62 |
1194 | /* I_UTIME: |
d8f2e4cc |
1195 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1196 | * include <utime.h>. |
d8f2e4cc |
1197 | */ |
2304df62 |
1198 | #$i_utime I_UTIME /**/ |
d8f2e4cc |
1199 | |
a0d0e21e |
1200 | /* I_STDARG: |
1201 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
1202 | * be included. |
1203 | */ |
2304df62 |
1204 | /* I_VARARGS: |
a687059c |
1205 | * This symbol, if defined, indicates to the C program that it should |
2304df62 |
1206 | * include <varargs.h>. |
a687059c |
1207 | */ |
a0d0e21e |
1208 | #$i_stdarg I_STDARG /**/ |
1209 | #$i_varargs I_VARARGS /**/ |
1210 | |
1211 | /* I_VFORK: |
1212 | * This symbol, if defined, indicates to the C program that it should |
1213 | * include vfork.h. |
1214 | */ |
1215 | #$i_vfork I_VFORK /**/ |
a687059c |
1216 | |
2304df62 |
1217 | /* INTSIZE: |
a687059c |
1218 | * This symbol contains the size of an int, so that the C preprocessor |
1219 | * can make decisions based on it. |
1220 | */ |
1221 | #define INTSIZE $intsize /**/ |
1222 | |
85e6fe83 |
1223 | /* Off_t: |
1224 | * This symbol holds the type used to declare offsets in the kernel. |
1225 | * It can be int, long, off_t, etc... It may be necessary to include |
1226 | * <sys/types.h> to get any typedef'ed information. |
1227 | */ |
1228 | #define Off_t $lseektype /* <offset> type */ |
1229 | |
ecfc5424 |
1230 | /* Mode_t: |
1231 | * This symbol holds the type used to declare file modes |
1232 | * for systems calls. It is usually mode_t, but may be |
1233 | * int or unsigned short. It may be necessary to include <sys/types.h> |
1234 | * to get any typedef'ed information. |
1235 | */ |
1236 | #define Mode_t $modetype /* file mode parameter for system calls */ |
1237 | |
2304df62 |
1238 | /* PRIVLIB: |
1239 | * This symbol contains the name of the private library for this package. |
1240 | * The library is private in the sense that it needn't be in anyone's |
1241 | * execution path, but it should be accessible by the world. The program |
1242 | * should be prepared to do ~ expansion. |
fe14fcc3 |
1243 | */ |
2304df62 |
1244 | #define PRIVLIB "$privlib" /**/ |
1245 | |
a0d0e21e |
1246 | /* CAN_PROTOTYPE: |
1247 | * If defined, this macro indicates that the C compiler can handle |
1248 | * function prototypes. |
85e6fe83 |
1249 | */ |
a0d0e21e |
1250 | /* _: |
1251 | * This macro is used to declare function parameters for folks who want |
1252 | * to make declarations with prototypes using a different style than |
1253 | * the above macros. Use double parentheses. For example: |
1254 | * |
1255 | * int main _((int argc, char *argv[])); |
1256 | */ |
1257 | #$prototype CAN_PROTOTYPE /**/ |
1258 | #ifdef CAN_PROTOTYPE |
1259 | #define _(args) args |
1260 | #else |
1261 | #define _(args) () |
1262 | #endif |
85e6fe83 |
1263 | |
2304df62 |
1264 | /* RANDBITS: |
1265 | * This symbol contains the number of bits of random number the rand() |
1266 | * function produces. Usual values are 15, 16, and 31. |
fe14fcc3 |
1267 | */ |
2304df62 |
1268 | #define RANDBITS $randbits /**/ |
1269 | |
1270 | /* SCRIPTDIR: |
1271 | * This symbol holds the name of the directory in which the user wants |
1272 | * to put publicly executable scripts for the package in question. It |
1273 | * is often a directory that is mounted across diverse architectures. |
1274 | * Programs must be prepared to deal with ~name expansion. |
fe14fcc3 |
1275 | */ |
2304df62 |
1276 | #define SCRIPTDIR "$scriptdir" /**/ |
1277 | |
a0d0e21e |
1278 | /* Select_fd_set_t: |
1279 | * This symbol holds the type used for the 2nd, 3rd, and 4th |
1280 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET |
1281 | * is defined, and 'int *' otherwise. This is only useful if you |
1282 | * have select(), of course. |
1283 | */ |
1284 | #define Select_fd_set_t $selecttype /**/ |
1285 | |
1286 | /* SIG_NAME: |
1287 | * This symbol contains a list of signal names in order. This is intended |
1288 | * to be used as a static array initialization, like this: |
1289 | * char *sig_name[] = { SIG_NAME }; |
1290 | * The signals in the list are separated with commas, and each signal |
1291 | * is surrounded by double quotes. There is no leading SIG in the signal |
1292 | * name, i.e. SIGQUIT is known as "QUIT". |
1293 | */ |
1294 | #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/ |
1295 | |
1296 | /* Size_t: |
1297 | * This symbol holds the type used to declare length parameters |
1298 | * for string functions. It is usually size_t, but may be |
1299 | * unsigned long, int, etc. It may be necessary to include |
1300 | * <sys/types.h> to get any typedef'ed information. |
1301 | */ |
1302 | #define Size_t $sizetype /* length paramater for string functions */ |
1303 | |
ecfc5424 |
1304 | /* SSize_t: |
1305 | * This symbol holds the type used by functions that return |
1306 | * a count of bytes or an error condition. It must be a signed type. |
1307 | * It is usually ssize_t, but may be long or int, etc. |
1308 | * It may be necessary to include <sys/types.h> or <unistd.h> |
1309 | * to get any typedef'ed information. |
1310 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). |
1311 | */ |
1312 | #define SSize_t $ssizetype /* signed count of bytes */ |
1313 | |
2304df62 |
1314 | /* STDCHAR: |
1315 | * This symbol is defined to be the type of char used in stdio.h. |
1316 | * It has the values "unsigned char" or "char". |
fe14fcc3 |
1317 | */ |
2304df62 |
1318 | #define STDCHAR $stdchar /**/ |
1319 | |
1320 | /* Uid_t: |
1321 | * This symbol holds the type used to declare user ids in the kernel. |
1322 | * It can be int, ushort, uid_t, etc... It may be necessary to include |
1323 | * <sys/types.h> to get any typedef'ed information. |
fe14fcc3 |
1324 | */ |
2304df62 |
1325 | #define Uid_t $uidtype /* UID type */ |
fe14fcc3 |
1326 | |
a0d0e21e |
1327 | /* VOIDFLAGS: |
1328 | * This symbol indicates how much support of the void type is given by this |
1329 | * compiler. What various bits mean: |
1330 | * |
1331 | * 1 = supports declaration of void |
1332 | * 2 = supports arrays of pointers to functions returning void |
1333 | * 4 = supports comparisons between pointers to void functions and |
1334 | * addresses of void functions |
1335 | * 8 = suports declaration of generic void pointers |
1336 | * |
1337 | * The package designer should define VOIDUSED to indicate the requirements |
1338 | * of the package. This can be done either by #defining VOIDUSED before |
1339 | * including config.h, or by defining defvoidused in Myinit.U. If the |
1340 | * latter approach is taken, only those flags will be tested. If the |
1341 | * level of void support necessary is not present, defines void to int. |
1342 | */ |
1343 | #ifndef VOIDUSED |
1344 | #define VOIDUSED $defvoidused |
1345 | #endif |
1346 | #define VOIDFLAGS $voidflags |
1347 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED |
1348 | #define void int /* is void to be avoided? */ |
1349 | #define M_VOID /* Xenix strikes again */ |
1350 | #endif |
1351 | |
85e6fe83 |
1352 | /* EUNICE: |
1353 | * This symbol, if defined, indicates that the program is being compiled |
1354 | * under the EUNICE package under VMS. The program will need to handle |
1355 | * things like files that don't go away the first time you unlink them, |
1356 | * due to version numbering. It will also need to compensate for lack |
1357 | * of a respectable link() command. |
1358 | */ |
1359 | /* VMS: |
1360 | * This symbol, if defined, indicates that the program is running under |
1361 | * VMS. It is currently only set in conjunction with the EUNICE symbol. |
1362 | */ |
1363 | #$d_eunice EUNICE /**/ |
1364 | #$d_eunice VMS /**/ |
1365 | |
a0d0e21e |
1366 | /* LOC_SED: |
1367 | * This symbol holds the complete pathname to the sed program. |
85e6fe83 |
1368 | */ |
1aef975c |
1369 | #define LOC_SED "$full_sed" /**/ |
1370 | |
1371 | /* CSH: |
1372 | * This symbol, if defined, indicates that the C-shell exists. |
1373 | * If defined, contains the full pathname of csh. |
1374 | */ |
1375 | #$d_csh CSH "$full_csh" /**/ |
85e6fe83 |
1376 | |
a0d0e21e |
1377 | /* DLSYM_NEEDS_UNDERSCORE: |
1378 | * This symbol, if defined, indicates that we need to prepend an |
1379 | * underscore to the symbol name before calling dlsym(). This only |
1380 | * makes sense if you *have* dlsym, which we will presume is the |
1381 | * case if you're using dl_dlopen.xs. |
85e6fe83 |
1382 | */ |
a0d0e21e |
1383 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */ |
1384 | |
2304df62 |
1385 | /* USE_DYNAMIC_LOADING: |
1386 | * This symbol, if defined, indicates that dynamic loading of |
1387 | * some sort is available. |
a687059c |
1388 | */ |
2304df62 |
1389 | #$usedl USE_DYNAMIC_LOADING /**/ |
a687059c |
1390 | |
ecfc5424 |
1391 | /* DB_Prefix_t: |
1392 | * This symbol contains the type of the prefix structure element |
1393 | * in the <db.h> header file. In older versions of DB, it was |
1394 | * int, while in newer ones it is u_int32_t. |
a687059c |
1395 | */ |
ecfc5424 |
1396 | /* DB_Hash_t: |
1397 | * This symbol contains the type of the prefix structure element |
1398 | * in the <db.h> header file. In older versions of DB, it was |
1399 | * int, while in newer ones it is size_t. |
1400 | */ |
75f92628 |
1401 | #define DB_Hash_t $db_hashtype /**/ |
1402 | #define DB_Prefix_t $db_prefixtype /**/ |
a687059c |
1403 | |
ecfc5424 |
1404 | /* I_NDBM: |
1405 | * This symbol, if defined, indicates that ndbm.h exists and should |
1406 | * be included. |
85e6fe83 |
1407 | */ |
ecfc5424 |
1408 | #$i_ndbm I_NDBM /**/ |
85e6fe83 |
1409 | |
1aef975c |
1410 | /* I_SYS_STAT: |
1411 | * This symbol, if defined, indicates to the C program that it should |
1412 | * include <sys/stat.h>. |
1413 | */ |
1414 | #$i_sysstat I_SYS_STAT /**/ |
1415 | |
2304df62 |
1416 | /* Malloc_t: |
1417 | * This symbol is the type of pointer returned by malloc and realloc. |
36ce8bec |
1418 | */ |
2304df62 |
1419 | #define Malloc_t $malloctype /**/ |
36ce8bec |
1420 | |
85e6fe83 |
1421 | /* MYMALLOC: |
1422 | * This symbol, if defined, indicates that we're using our own malloc. |
1423 | */ |
1424 | #$d_mymalloc MYMALLOC /**/ |
1425 | |
fe14fcc3 |
1426 | #endif |
8d063cd8 |
1427 | !GROK!THIS! |