Commit | Line | Data |
fd47df60 |
1 | case "$CONFIG_SH" in |
2 | '') CONFIG_SH=config.sh ;; |
3 | esac |
4 | case "$CONFIG_H" in |
5 | '') CONFIG_H=config.h ;; |
6 | esac |
495c5fdc |
7 | case $CONFIG in |
8 | '') |
fd47df60 |
9 | if test -f $CONFIG_SH; then TOP=.; |
10 | elif test -f ../$CONFIG_SH; then TOP=..; |
11 | elif test -f ../../$CONFIG_SH; then TOP=../..; |
12 | elif test -f ../../../$CONFIG_SH; then TOP=../../..; |
13 | elif test -f ../../../../$CONFIG_SH; then TOP=../../../..; |
495c5fdc |
14 | else |
fd47df60 |
15 | echo "Can't find $CONFIG_SH."; exit 1 |
495c5fdc |
16 | fi |
fd47df60 |
17 | . $TOP/$CONFIG_SH |
495c5fdc |
18 | ;; |
19 | esac |
20 | case "$0" in |
21 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
22 | esac |
fd47df60 |
23 | echo "Extracting $CONFIG_H (with variable substitutions)" |
24 | sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' |
495c5fdc |
25 | /* |
26 | * This file was produced by running the config_h.SH script, which |
fd47df60 |
27 | * gets its values from $CONFIG_SH, which is generally produced by |
495c5fdc |
28 | * running Configure. |
29 | * |
30 | * Feel free to modify any of this as the need arises. Note, however, |
31 | * that running config_h.SH again will wipe out any changes you've made. |
fd47df60 |
32 | * For a more permanent change edit $CONFIG_SH and rerun config_h.SH. |
495c5fdc |
33 | * |
34 | * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ |
35 | */ |
36 | |
37 | /* |
38 | * Package name : $package |
39 | * Source directory : $src |
40 | * Configuration time: $cf_time |
41 | * Configured by : $cf_by |
42 | * Target system : $myuname |
43 | */ |
44 | |
45 | #ifndef _config_h_ |
46 | #define _config_h_ |
47 | |
48 | /* LOC_SED: |
49 | * This symbol holds the complete pathname to the sed program. |
50 | */ |
51 | #define LOC_SED "$full_sed" /**/ |
52 | |
495c5fdc |
53 | /* HAS_ALARM: |
54 | * This symbol, if defined, indicates that the alarm routine is |
55 | * available. |
56 | */ |
57 | #$d_alarm HAS_ALARM /**/ |
58 | |
59 | /* HASATTRIBUTE: |
60 | * This symbol indicates the C compiler can check for function attributes, |
61 | * such as printf formats. This is normally only supported by GNU cc. |
62 | */ |
63 | #$d_attribut HASATTRIBUTE /**/ |
64 | #ifndef HASATTRIBUTE |
65 | #define __attribute__(_arg_) |
66 | #endif |
67 | |
68 | /* HAS_BCMP: |
69 | * This symbol is defined if the bcmp() routine is available to |
70 | * compare blocks of memory. |
71 | */ |
72 | #$d_bcmp HAS_BCMP /**/ |
73 | |
74 | /* HAS_BCOPY: |
75 | * This symbol is defined if the bcopy() routine is available to |
76 | * copy blocks of memory. |
77 | */ |
78 | #$d_bcopy HAS_BCOPY /**/ |
79 | |
80 | /* HAS_BZERO: |
81 | * This symbol is defined if the bzero() routine is available to |
82 | * set a memory block to 0. |
83 | */ |
84 | #$d_bzero HAS_BZERO /**/ |
85 | |
86 | /* HAS_CHOWN: |
87 | * This symbol, if defined, indicates that the chown routine is |
88 | * available. |
89 | */ |
90 | #$d_chown HAS_CHOWN /**/ |
91 | |
92 | /* HAS_CHROOT: |
93 | * This symbol, if defined, indicates that the chroot routine is |
94 | * available. |
95 | */ |
96 | #$d_chroot HAS_CHROOT /**/ |
97 | |
98 | /* HAS_CHSIZE: |
99 | * This symbol, if defined, indicates that the chsize routine is available |
100 | * to truncate files. You might need a -lx to get this routine. |
101 | */ |
102 | #$d_chsize HAS_CHSIZE /**/ |
103 | |
104 | /* HASCONST: |
105 | * This symbol, if defined, indicates that this C compiler knows about |
106 | * the const type. There is no need to actually test for that symbol |
107 | * within your programs. The mere use of the "const" keyword will |
108 | * trigger the necessary tests. |
109 | */ |
110 | #$d_const HASCONST /**/ |
111 | #ifndef HASCONST |
112 | #define const |
113 | #endif |
114 | |
115 | /* HAS_CRYPT: |
116 | * This symbol, if defined, indicates that the crypt routine is available |
117 | * to encrypt passwords and the like. |
118 | */ |
119 | #$d_crypt HAS_CRYPT /**/ |
120 | |
121 | /* HAS_CUSERID: |
122 | * This symbol, if defined, indicates that the cuserid routine is |
123 | * available to get character login names. |
124 | */ |
125 | #$d_cuserid HAS_CUSERID /**/ |
126 | |
127 | /* HAS_DBL_DIG: |
128 | * This symbol, if defined, indicates that this system's <float.h> |
129 | * or <limits.h> defines the symbol DBL_DIG, which is the number |
130 | * of significant digits in a double precision number. If this |
131 | * symbol is not defined, a guess of 15 is usually pretty good. |
132 | */ |
133 | #$d_dbl_dig HAS_DBL_DIG /* */ |
134 | |
135 | /* HAS_DIFFTIME: |
136 | * This symbol, if defined, indicates that the difftime routine is |
137 | * available. |
138 | */ |
139 | #$d_difftime HAS_DIFFTIME /**/ |
140 | |
141 | /* HAS_DLERROR: |
142 | * This symbol, if defined, indicates that the dlerror routine is |
143 | * available to return a string describing the last error that |
144 | * occurred from a call to dlopen(), dlclose() or dlsym(). |
145 | */ |
146 | #$d_dlerror HAS_DLERROR /**/ |
147 | |
148 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
149 | * This symbol, if defined, indicates that the bug that prevents |
150 | * setuid scripts from being secure is not present in this kernel. |
151 | */ |
152 | /* DOSUID: |
153 | * This symbol, if defined, indicates that the C program should |
154 | * check the script that it is executing for setuid/setgid bits, and |
155 | * attempt to emulate setuid/setgid on systems that have disabled |
156 | * setuid #! scripts because the kernel can't do it securely. |
157 | * It is up to the package designer to make sure that this emulation |
158 | * is done securely. Among other things, it should do an fstat on |
159 | * the script it just opened to make sure it really is a setuid/setgid |
160 | * script, it should make sure the arguments passed correspond exactly |
161 | * to the argument on the #! line, and it should not trust any |
162 | * subprocesses to which it must pass the filename rather than the |
163 | * file descriptor of the script to be executed. |
164 | */ |
165 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ |
166 | #$d_dosuid DOSUID /**/ |
167 | |
168 | /* HAS_DUP2: |
169 | * This symbol, if defined, indicates that the dup2 routine is |
170 | * available to duplicate file descriptors. |
171 | */ |
172 | #$d_dup2 HAS_DUP2 /**/ |
173 | |
174 | /* HAS_FCHMOD: |
175 | * This symbol, if defined, indicates that the fchmod routine is available |
176 | * to change mode of opened files. If unavailable, use chmod(). |
177 | */ |
178 | #$d_fchmod HAS_FCHMOD /**/ |
179 | |
180 | /* HAS_FCHOWN: |
181 | * This symbol, if defined, indicates that the fchown routine is available |
182 | * to change ownership of opened files. If unavailable, use chown(). |
183 | */ |
184 | #$d_fchown HAS_FCHOWN /**/ |
185 | |
186 | /* HAS_FCNTL: |
187 | * This symbol, if defined, indicates to the C program that |
188 | * the fcntl() function exists. |
189 | */ |
190 | #$d_fcntl HAS_FCNTL /**/ |
191 | |
192 | /* HAS_FGETPOS: |
193 | * This symbol, if defined, indicates that the fgetpos routine is |
194 | * available to get the file position indicator, similar to ftell(). |
195 | */ |
196 | #$d_fgetpos HAS_FGETPOS /**/ |
197 | |
495c5fdc |
198 | /* HAS_FLOCK: |
199 | * This symbol, if defined, indicates that the flock routine is |
200 | * available to do file locking. |
201 | */ |
202 | #$d_flock HAS_FLOCK /**/ |
203 | |
204 | /* HAS_FORK: |
205 | * This symbol, if defined, indicates that the fork routine is |
206 | * available. |
207 | */ |
208 | #$d_fork HAS_FORK /**/ |
209 | |
210 | /* HAS_FSETPOS: |
211 | * This symbol, if defined, indicates that the fsetpos routine is |
212 | * available to set the file position indicator, similar to fseek(). |
213 | */ |
214 | #$d_fsetpos HAS_FSETPOS /**/ |
215 | |
216 | /* HAS_GETTIMEOFDAY: |
217 | * This symbol, if defined, indicates that the gettimeofday() system |
218 | * call is available for a sub-second accuracy clock. Usually, the file |
219 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). |
220 | * The type "Timeval" should be used to refer to "struct timeval". |
221 | */ |
222 | #$d_gettimeod HAS_GETTIMEOFDAY /**/ |
223 | #ifdef HAS_GETTIMEOFDAY |
224 | #define Timeval struct timeval /* Structure used by gettimeofday() */ |
225 | #endif |
226 | |
227 | /* HAS_GETGROUPS: |
228 | * This symbol, if defined, indicates that the getgroups() routine is |
229 | * available to get the list of process groups. If unavailable, multiple |
230 | * groups are probably not supported. |
231 | */ |
232 | #$d_getgrps HAS_GETGROUPS /**/ |
233 | |
495c5fdc |
234 | /* HAS_GETLOGIN: |
235 | * This symbol, if defined, indicates that the getlogin routine is |
236 | * available to get the login name. |
237 | */ |
238 | #$d_getlogin HAS_GETLOGIN /**/ |
239 | |
240 | /* HAS_GETPGID: |
241 | * This symbol, if defined, indicates to the C program that |
242 | * the getpgid(pid) function is available to get the |
243 | * process group id. |
244 | */ |
245 | #$d_getpgid HAS_GETPGID /**/ |
246 | |
495c5fdc |
247 | /* HAS_GETPGRP2: |
248 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
249 | * routine is available to get the current process group. |
250 | */ |
251 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
252 | |
253 | /* HAS_GETPPID: |
254 | * This symbol, if defined, indicates that the getppid routine is |
255 | * available to get the parent process ID. |
256 | */ |
257 | #$d_getppid HAS_GETPPID /**/ |
258 | |
259 | /* HAS_GETPRIORITY: |
260 | * This symbol, if defined, indicates that the getpriority routine is |
261 | * available to get a process's priority. |
262 | */ |
263 | #$d_getprior HAS_GETPRIORITY /**/ |
264 | |
495c5fdc |
265 | /* HAS_INET_ATON: |
266 | * This symbol, if defined, indicates to the C program that the |
267 | * inet_aton() function is available to parse IP address "dotted-quad" |
268 | * strings. |
269 | */ |
270 | #$d_inetaton HAS_INET_ATON /**/ |
271 | |
272 | /* HAS_KILLPG: |
273 | * This symbol, if defined, indicates that the killpg routine is available |
274 | * to kill process groups. If unavailable, you probably should use kill |
275 | * with a negative process number. |
276 | */ |
277 | #$d_killpg HAS_KILLPG /**/ |
278 | |
279 | /* HAS_LINK: |
280 | * This symbol, if defined, indicates that the link routine is |
281 | * available to create hard links. |
282 | */ |
283 | #$d_link HAS_LINK /**/ |
284 | |
285 | /* HAS_LOCALECONV: |
286 | * This symbol, if defined, indicates that the localeconv routine is |
287 | * available for numeric and monetary formatting conventions. |
288 | */ |
289 | #$d_locconv HAS_LOCALECONV /**/ |
290 | |
291 | /* HAS_LOCKF: |
292 | * This symbol, if defined, indicates that the lockf routine is |
293 | * available to do file locking. |
294 | */ |
295 | #$d_lockf HAS_LOCKF /**/ |
296 | |
297 | /* HAS_LSTAT: |
298 | * This symbol, if defined, indicates that the lstat routine is |
299 | * available to do file stats on symbolic links. |
300 | */ |
301 | #$d_lstat HAS_LSTAT /**/ |
302 | |
303 | /* HAS_MBLEN: |
304 | * This symbol, if defined, indicates that the mblen routine is available |
305 | * to find the number of bytes in a multibye character. |
306 | */ |
307 | #$d_mblen HAS_MBLEN /**/ |
308 | |
309 | /* HAS_MBSTOWCS: |
310 | * This symbol, if defined, indicates that the mbstowcs routine is |
311 | * available to covert a multibyte string into a wide character string. |
312 | */ |
313 | #$d_mbstowcs HAS_MBSTOWCS /**/ |
314 | |
315 | /* HAS_MBTOWC: |
316 | * This symbol, if defined, indicates that the mbtowc routine is available |
317 | * to covert a multibyte to a wide character. |
318 | */ |
319 | #$d_mbtowc HAS_MBTOWC /**/ |
320 | |
321 | /* HAS_MEMCMP: |
322 | * This symbol, if defined, indicates that the memcmp routine is available |
323 | * to compare blocks of memory. |
324 | */ |
325 | #$d_memcmp HAS_MEMCMP /**/ |
326 | |
327 | /* HAS_MEMCPY: |
328 | * This symbol, if defined, indicates that the memcpy routine is available |
329 | * to copy blocks of memory. |
330 | */ |
331 | #$d_memcpy HAS_MEMCPY /**/ |
332 | |
333 | /* HAS_MEMMOVE: |
334 | * This symbol, if defined, indicates that the memmove routine is available |
335 | * to copy potentially overlapping blocks of memory. This should be used |
336 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your |
337 | * own version. |
338 | */ |
339 | #$d_memmove HAS_MEMMOVE /**/ |
340 | |
341 | /* HAS_MEMSET: |
342 | * This symbol, if defined, indicates that the memset routine is available |
343 | * to set blocks of memory. |
344 | */ |
345 | #$d_memset HAS_MEMSET /**/ |
346 | |
347 | /* HAS_MKDIR: |
348 | * This symbol, if defined, indicates that the mkdir routine is available |
349 | * to create directories. Otherwise you should fork off a new process to |
350 | * exec /bin/mkdir. |
351 | */ |
352 | #$d_mkdir HAS_MKDIR /**/ |
353 | |
354 | /* HAS_MKFIFO: |
355 | * This symbol, if defined, indicates that the mkfifo routine is |
356 | * available to create FIFOs. Otherwise, mknod should be able to |
357 | * do it for you. However, if mkfifo is there, mknod might require |
358 | * super-user privileges which mkfifo will not. |
359 | */ |
360 | #$d_mkfifo HAS_MKFIFO /**/ |
361 | |
362 | /* HAS_MKTIME: |
363 | * This symbol, if defined, indicates that the mktime routine is |
364 | * available. |
365 | */ |
366 | #$d_mktime HAS_MKTIME /**/ |
367 | |
10cc9d2a |
368 | /* HAS_MSYNC: |
369 | * This symbol, if defined, indicates that the msync system call is |
370 | * available to synchronize a mapped file. |
371 | */ |
372 | #$d_msync HAS_MSYNC /**/ |
373 | |
374 | /* HAS_MUNMAP: |
375 | * This symbol, if defined, indicates that the munmap system call is |
376 | * available to unmap a region, usually mapped by mmap(). |
377 | */ |
378 | #$d_munmap HAS_MUNMAP /**/ |
379 | |
495c5fdc |
380 | /* HAS_NICE: |
381 | * This symbol, if defined, indicates that the nice routine is |
382 | * available. |
383 | */ |
384 | #$d_nice HAS_NICE /**/ |
385 | |
386 | /* HAS_PATHCONF: |
387 | * This symbol, if defined, indicates that pathconf() is available |
388 | * to determine file-system related limits and options associated |
389 | * with a given filename. |
390 | */ |
391 | /* HAS_FPATHCONF: |
392 | * This symbol, if defined, indicates that pathconf() is available |
393 | * to determine file-system related limits and options associated |
394 | * with a given open file descriptor. |
395 | */ |
396 | #$d_pathconf HAS_PATHCONF /**/ |
397 | #$d_fpathconf HAS_FPATHCONF /**/ |
398 | |
399 | /* HAS_PAUSE: |
400 | * This symbol, if defined, indicates that the pause routine is |
401 | * available to suspend a process until a signal is received. |
402 | */ |
403 | #$d_pause HAS_PAUSE /**/ |
404 | |
405 | /* HAS_PIPE: |
406 | * This symbol, if defined, indicates that the pipe routine is |
407 | * available to create an inter-process channel. |
408 | */ |
409 | #$d_pipe HAS_PIPE /**/ |
410 | |
411 | /* HAS_POLL: |
412 | * This symbol, if defined, indicates that the poll routine is |
413 | * available to poll active file descriptors. You may safely |
414 | * include <poll.h> when this symbol is defined. |
415 | */ |
416 | #$d_poll HAS_POLL /**/ |
417 | |
418 | /* HAS_READDIR: |
419 | * This symbol, if defined, indicates that the readdir routine is |
420 | * available to read directory entries. You may have to include |
421 | * <dirent.h>. See I_DIRENT. |
422 | */ |
423 | #$d_readdir HAS_READDIR /**/ |
424 | |
425 | /* HAS_SEEKDIR: |
426 | * This symbol, if defined, indicates that the seekdir routine is |
427 | * available. You may have to include <dirent.h>. See I_DIRENT. |
428 | */ |
429 | #$d_seekdir HAS_SEEKDIR /**/ |
430 | |
431 | /* HAS_TELLDIR: |
432 | * This symbol, if defined, indicates that the telldir routine is |
433 | * available. You may have to include <dirent.h>. See I_DIRENT. |
434 | */ |
435 | #$d_telldir HAS_TELLDIR /**/ |
436 | |
437 | /* HAS_REWINDDIR: |
438 | * This symbol, if defined, indicates that the rewinddir routine is |
439 | * available. You may have to include <dirent.h>. See I_DIRENT. |
440 | */ |
441 | #$d_rewinddir HAS_REWINDDIR /**/ |
442 | |
443 | /* HAS_READLINK: |
444 | * This symbol, if defined, indicates that the readlink routine is |
445 | * available to read the value of a symbolic link. |
446 | */ |
447 | #$d_readlink HAS_READLINK /**/ |
448 | |
449 | /* HAS_RENAME: |
450 | * This symbol, if defined, indicates that the rename routine is available |
451 | * to rename files. Otherwise you should do the unlink(), link(), unlink() |
452 | * trick. |
453 | */ |
454 | #$d_rename HAS_RENAME /**/ |
455 | |
456 | /* HAS_RMDIR: |
457 | * This symbol, if defined, indicates that the rmdir routine is |
458 | * available to remove directories. Otherwise you should fork off a |
459 | * new process to exec /bin/rmdir. |
460 | */ |
461 | #$d_rmdir HAS_RMDIR /**/ |
462 | |
463 | /* HAS_SELECT: |
464 | * This symbol, if defined, indicates that the select routine is |
465 | * available to select active file descriptors. If the timeout field |
466 | * is used, <sys/time.h> may need to be included. |
467 | */ |
468 | #$d_select HAS_SELECT /**/ |
469 | |
495c5fdc |
470 | /* HAS_SETEGID: |
471 | * This symbol, if defined, indicates that the setegid routine is available |
472 | * to change the effective gid of the current program. |
473 | */ |
474 | #$d_setegid HAS_SETEGID /**/ |
475 | |
476 | /* HAS_SETEUID: |
477 | * This symbol, if defined, indicates that the seteuid routine is available |
478 | * to change the effective uid of the current program. |
479 | */ |
480 | #$d_seteuid HAS_SETEUID /**/ |
481 | |
482 | /* HAS_SETLINEBUF: |
483 | * This symbol, if defined, indicates that the setlinebuf routine is |
484 | * available to change stderr or stdout from block-buffered or unbuffered |
485 | * to a line-buffered mode. |
486 | */ |
487 | #$d_setlinebuf HAS_SETLINEBUF /**/ |
488 | |
489 | /* HAS_SETLOCALE: |
490 | * This symbol, if defined, indicates that the setlocale routine is |
491 | * available to handle locale-specific ctype implementations. |
492 | */ |
493 | #$d_setlocale HAS_SETLOCALE /**/ |
494 | |
495 | /* HAS_SETPGID: |
496 | * This symbol, if defined, indicates that the setpgid(pid, gpid) |
497 | * routine is available to set process group ID. |
498 | */ |
499 | #$d_setpgid HAS_SETPGID /**/ |
500 | |
495c5fdc |
501 | /* HAS_SETPGRP2: |
502 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
503 | * routine is available to set the current process group. |
504 | */ |
505 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
506 | |
507 | /* HAS_SETPRIORITY: |
508 | * This symbol, if defined, indicates that the setpriority routine is |
509 | * available to set a process's priority. |
510 | */ |
511 | #$d_setprior HAS_SETPRIORITY /**/ |
512 | |
513 | /* HAS_SETREGID: |
514 | * This symbol, if defined, indicates that the setregid routine is |
515 | * available to change the real and effective gid of the current |
516 | * process. |
517 | */ |
518 | /* HAS_SETRESGID: |
519 | * This symbol, if defined, indicates that the setresgid routine is |
520 | * available to change the real, effective and saved gid of the current |
521 | * process. |
522 | */ |
523 | #$d_setregid HAS_SETREGID /**/ |
524 | #$d_setresgid HAS_SETRESGID /**/ |
525 | |
526 | /* HAS_SETREUID: |
527 | * This symbol, if defined, indicates that the setreuid routine is |
528 | * available to change the real and effective uid of the current |
529 | * process. |
530 | */ |
531 | /* HAS_SETRESUID: |
532 | * This symbol, if defined, indicates that the setresuid routine is |
533 | * available to change the real, effective and saved uid of the current |
534 | * process. |
535 | */ |
536 | #$d_setreuid HAS_SETREUID /**/ |
537 | #$d_setresuid HAS_SETRESUID /**/ |
538 | |
539 | /* HAS_SETRGID: |
540 | * This symbol, if defined, indicates that the setrgid routine is available |
541 | * to change the real gid of the current program. |
542 | */ |
543 | #$d_setrgid HAS_SETRGID /**/ |
544 | |
545 | /* HAS_SETRUID: |
546 | * This symbol, if defined, indicates that the setruid routine is available |
547 | * to change the real uid of the current program. |
548 | */ |
549 | #$d_setruid HAS_SETRUID /**/ |
550 | |
551 | /* HAS_SETSID: |
552 | * This symbol, if defined, indicates that the setsid routine is |
553 | * available to set the process group ID. |
554 | */ |
555 | #$d_setsid HAS_SETSID /**/ |
556 | |
495c5fdc |
557 | /* Shmat_t: |
558 | * This symbol holds the return type of the shmat() system call. |
559 | * Usually set to 'void *' or 'char *'. |
560 | */ |
561 | /* HAS_SHMAT_PROTOTYPE: |
562 | * This symbol, if defined, indicates that the sys/shm.h includes |
563 | * a prototype for shmat(). Otherwise, it is up to the program to |
c287c78d |
564 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, |
495c5fdc |
565 | * but not always right so it should be emitted by the program only |
566 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. |
567 | */ |
568 | #define Shmat_t $shmattype /**/ |
569 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ |
570 | |
495c5fdc |
571 | /* HAS_STRCHR: |
572 | * This symbol is defined to indicate that the strchr()/strrchr() |
573 | * functions are available for string searching. If not, try the |
574 | * index()/rindex() pair. |
575 | */ |
576 | /* HAS_INDEX: |
577 | * This symbol is defined to indicate that the index()/rindex() |
578 | * functions are available for string searching. |
579 | */ |
580 | #$d_strchr HAS_STRCHR /**/ |
581 | #$d_index HAS_INDEX /**/ |
582 | |
583 | /* HAS_STRCOLL: |
584 | * This symbol, if defined, indicates that the strcoll routine is |
585 | * available to compare strings using collating information. |
586 | */ |
587 | #$d_strcoll HAS_STRCOLL /**/ |
588 | |
589 | /* USE_STRUCT_COPY: |
590 | * This symbol, if defined, indicates that this C compiler knows how |
591 | * to copy structures. If undefined, you'll need to use a block copy |
592 | * routine of some sort instead. |
593 | */ |
594 | #$d_strctcpy USE_STRUCT_COPY /**/ |
595 | |
495c5fdc |
596 | /* HAS_STRTOD: |
597 | * This symbol, if defined, indicates that the strtod routine is |
598 | * available to provide better numeric string conversion than atof(). |
599 | */ |
600 | #$d_strtod HAS_STRTOD /**/ |
601 | |
602 | /* HAS_STRTOL: |
603 | * This symbol, if defined, indicates that the strtol routine is available |
604 | * to provide better numeric string conversion than atoi() and friends. |
605 | */ |
606 | #$d_strtol HAS_STRTOL /**/ |
607 | |
608 | /* HAS_STRTOUL: |
609 | * This symbol, if defined, indicates that the strtoul routine is |
610 | * available to provide conversion of strings to unsigned long. |
611 | */ |
612 | #$d_strtoul HAS_STRTOUL /**/ |
613 | |
614 | /* HAS_STRXFRM: |
615 | * This symbol, if defined, indicates that the strxfrm() routine is |
616 | * available to transform strings. |
617 | */ |
618 | #$d_strxfrm HAS_STRXFRM /**/ |
619 | |
620 | /* HAS_SYMLINK: |
621 | * This symbol, if defined, indicates that the symlink routine is available |
622 | * to create symbolic links. |
623 | */ |
624 | #$d_symlink HAS_SYMLINK /**/ |
625 | |
626 | /* HAS_SYSCALL: |
627 | * This symbol, if defined, indicates that the syscall routine is |
628 | * available to call arbitrary system calls. If undefined, that's tough. |
629 | */ |
630 | #$d_syscall HAS_SYSCALL /**/ |
631 | |
632 | /* HAS_SYSCONF: |
633 | * This symbol, if defined, indicates that sysconf() is available |
634 | * to determine system related limits and options. |
635 | */ |
636 | #$d_sysconf HAS_SYSCONF /**/ |
637 | |
638 | /* HAS_SYSTEM: |
639 | * This symbol, if defined, indicates that the system routine is |
640 | * available to issue a shell command. |
641 | */ |
642 | #$d_system HAS_SYSTEM /**/ |
643 | |
644 | /* HAS_TCGETPGRP: |
645 | * This symbol, if defined, indicates that the tcgetpgrp routine is |
646 | * available to get foreground process group ID. |
647 | */ |
648 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
649 | |
650 | /* HAS_TCSETPGRP: |
651 | * This symbol, if defined, indicates that the tcsetpgrp routine is |
652 | * available to set foreground process group ID. |
653 | */ |
654 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ |
655 | |
656 | /* HAS_TRUNCATE: |
657 | * This symbol, if defined, indicates that the truncate routine is |
658 | * available to truncate files. |
659 | */ |
660 | #$d_truncate HAS_TRUNCATE /**/ |
661 | |
662 | /* HAS_TZNAME: |
663 | * This symbol, if defined, indicates that the tzname[] array is |
664 | * available to access timezone names. |
665 | */ |
666 | #$d_tzname HAS_TZNAME /**/ |
667 | |
668 | /* HAS_UMASK: |
669 | * This symbol, if defined, indicates that the umask routine is |
670 | * available to set and get the value of the file creation mask. |
671 | */ |
672 | #$d_umask HAS_UMASK /**/ |
673 | |
495c5fdc |
674 | /* HASVOLATILE: |
675 | * This symbol, if defined, indicates that this C compiler knows about |
676 | * the volatile declaration. |
677 | */ |
678 | #$d_volatile HASVOLATILE /**/ |
679 | #ifndef HASVOLATILE |
680 | #define volatile |
681 | #endif |
682 | |
683 | /* HAS_WAIT4: |
684 | * This symbol, if defined, indicates that wait4() exists. |
685 | */ |
686 | #$d_wait4 HAS_WAIT4 /**/ |
687 | |
688 | /* HAS_WAITPID: |
689 | * This symbol, if defined, indicates that the waitpid routine is |
690 | * available to wait for child process. |
691 | */ |
692 | #$d_waitpid HAS_WAITPID /**/ |
693 | |
694 | /* HAS_WCSTOMBS: |
695 | * This symbol, if defined, indicates that the wcstombs routine is |
696 | * available to convert wide character strings to multibyte strings. |
697 | */ |
698 | #$d_wcstombs HAS_WCSTOMBS /**/ |
699 | |
700 | /* HAS_WCTOMB: |
701 | * This symbol, if defined, indicates that the wctomb routine is available |
702 | * to covert a wide character to a multibyte. |
703 | */ |
704 | #$d_wctomb HAS_WCTOMB /**/ |
705 | |
495c5fdc |
706 | /* I_ARPA_INET: |
c287c78d |
707 | * This symbol, if defined, indicates to the C program that it should |
708 | * include <arpa/inet.h> to get inet_addr and friends declarations. |
495c5fdc |
709 | */ |
c287c78d |
710 | #$i_arpainet I_ARPA_INET /**/ |
495c5fdc |
711 | |
712 | /* I_DBM: |
713 | * This symbol, if defined, indicates that <dbm.h> exists and should |
714 | * be included. |
715 | */ |
716 | /* I_RPCSVC_DBM: |
717 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and |
718 | * should be included. |
719 | */ |
720 | #$i_dbm I_DBM /**/ |
721 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ |
722 | |
723 | /* I_DIRENT: |
724 | * This symbol, if defined, indicates to the C program that it should |
725 | * include <dirent.h>. Using this symbol also triggers the definition |
726 | * of the Direntry_t define which ends up being 'struct dirent' or |
727 | * 'struct direct' depending on the availability of <dirent.h>. |
728 | */ |
729 | /* DIRNAMLEN: |
730 | * This symbol, if defined, indicates to the C program that the length |
731 | * of directory entry names is provided by a d_namlen field. Otherwise |
732 | * you need to do strlen() on the d_name field. |
733 | */ |
734 | /* Direntry_t: |
735 | * This symbol is set to 'struct direct' or 'struct dirent' depending on |
736 | * whether dirent is available or not. You should use this pseudo type to |
737 | * portably declare your directory entries. |
738 | */ |
739 | #$i_dirent I_DIRENT /**/ |
740 | #$d_dirnamlen DIRNAMLEN /**/ |
741 | #define Direntry_t $direntrytype |
742 | |
743 | /* I_DLFCN: |
744 | * This symbol, if defined, indicates that <dlfcn.h> exists and should |
745 | * be included. |
746 | */ |
747 | #$i_dlfcn I_DLFCN /**/ |
748 | |
749 | /* I_FCNTL: |
750 | * This manifest constant tells the C program to include <fcntl.h>. |
751 | */ |
752 | #$i_fcntl I_FCNTL /**/ |
753 | |
754 | /* I_FLOAT: |
755 | * This symbol, if defined, indicates to the C program that it should |
756 | * include <float.h> to get definition of symbols like DBL_MAX or |
757 | * DBL_MIN, i.e. machine dependent floating point values. |
758 | */ |
759 | #$i_float I_FLOAT /**/ |
760 | |
495c5fdc |
761 | /* I_LIMITS: |
762 | * This symbol, if defined, indicates to the C program that it should |
763 | * include <limits.h> to get definition of symbols like WORD_BIT or |
764 | * LONG_MAX, i.e. machine dependant limitations. |
765 | */ |
766 | #$i_limits I_LIMITS /**/ |
767 | |
768 | /* I_LOCALE: |
769 | * This symbol, if defined, indicates to the C program that it should |
770 | * include <locale.h>. |
771 | */ |
772 | #$i_locale I_LOCALE /**/ |
773 | |
774 | /* I_MATH: |
775 | * This symbol, if defined, indicates to the C program that it should |
776 | * include <math.h>. |
777 | */ |
778 | #$i_math I_MATH /**/ |
779 | |
780 | /* I_MEMORY: |
781 | * This symbol, if defined, indicates to the C program that it should |
782 | * include <memory.h>. |
783 | */ |
784 | #$i_memory I_MEMORY /**/ |
785 | |
786 | /* I_NDBM: |
787 | * This symbol, if defined, indicates that <ndbm.h> exists and should |
788 | * be included. |
789 | */ |
790 | #$i_ndbm I_NDBM /**/ |
791 | |
792 | /* I_NET_ERRNO: |
793 | * This symbol, if defined, indicates that <net/errno.h> exists and |
794 | * should be included. |
795 | */ |
796 | #$i_neterrno I_NET_ERRNO /**/ |
797 | |
798 | /* I_NETINET_IN: |
799 | * This symbol, if defined, indicates to the C program that it should |
800 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
801 | */ |
802 | #$i_niin I_NETINET_IN /**/ |
803 | |
804 | /* I_SFIO: |
805 | * This symbol, if defined, indicates to the C program that it should |
806 | * include <sfio.h>. |
807 | */ |
808 | #$i_sfio I_SFIO /**/ |
809 | |
810 | /* I_STDDEF: |
811 | * This symbol, if defined, indicates that <stddef.h> exists and should |
812 | * be included. |
813 | */ |
814 | #$i_stddef I_STDDEF /**/ |
815 | |
816 | /* I_STDLIB: |
817 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
818 | * be included. |
819 | */ |
820 | #$i_stdlib I_STDLIB /**/ |
821 | |
822 | /* I_STRING: |
823 | * This symbol, if defined, indicates to the C program that it should |
824 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
825 | */ |
826 | #$i_string I_STRING /**/ |
827 | |
828 | /* I_SYS_DIR: |
829 | * This symbol, if defined, indicates to the C program that it should |
830 | * include <sys/dir.h>. |
831 | */ |
832 | #$i_sysdir I_SYS_DIR /**/ |
833 | |
834 | /* I_SYS_FILE: |
835 | * This symbol, if defined, indicates to the C program that it should |
836 | * include <sys/file.h> to get definition of R_OK and friends. |
837 | */ |
838 | #$i_sysfile I_SYS_FILE /**/ |
839 | |
840 | /* I_SYS_IOCTL: |
841 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should |
842 | * be included. Otherwise, include <sgtty.h> or <termio.h>. |
843 | */ |
844 | #$i_sysioctl I_SYS_IOCTL /**/ |
845 | |
846 | /* I_SYS_NDIR: |
847 | * This symbol, if defined, indicates to the C program that it should |
848 | * include <sys/ndir.h>. |
849 | */ |
850 | #$i_sysndir I_SYS_NDIR /**/ |
851 | |
852 | /* I_SYS_PARAM: |
853 | * This symbol, if defined, indicates to the C program that it should |
854 | * include <sys/param.h>. |
855 | */ |
856 | #$i_sysparam I_SYS_PARAM /**/ |
857 | |
858 | /* I_SYS_RESOURCE: |
859 | * This symbol, if defined, indicates to the C program that it should |
860 | * include <sys/resource.h>. |
861 | */ |
862 | #$i_sysresrc I_SYS_RESOURCE /**/ |
863 | |
864 | /* I_SYS_SELECT: |
865 | * This symbol, if defined, indicates to the C program that it should |
866 | * include <sys/select.h> in order to get definition of struct timeval. |
867 | */ |
868 | #$i_sysselct I_SYS_SELECT /**/ |
869 | |
870 | /* I_SYS_STAT: |
871 | * This symbol, if defined, indicates to the C program that it should |
872 | * include <sys/stat.h>. |
873 | */ |
874 | #$i_sysstat I_SYS_STAT /**/ |
875 | |
876 | /* I_SYS_TIMES: |
877 | * This symbol, if defined, indicates to the C program that it should |
878 | * include <sys/times.h>. |
879 | */ |
880 | #$i_systimes I_SYS_TIMES /**/ |
881 | |
882 | /* I_SYS_TYPES: |
883 | * This symbol, if defined, indicates to the C program that it should |
884 | * include <sys/types.h>. |
885 | */ |
886 | #$i_systypes I_SYS_TYPES /**/ |
887 | |
888 | /* I_SYS_UN: |
889 | * This symbol, if defined, indicates to the C program that it should |
890 | * include <sys/un.h> to get UNIX domain socket definitions. |
891 | */ |
892 | #$i_sysun I_SYS_UN /**/ |
893 | |
894 | /* I_SYS_WAIT: |
895 | * This symbol, if defined, indicates to the C program that it should |
896 | * include <sys/wait.h>. |
897 | */ |
898 | #$i_syswait I_SYS_WAIT /**/ |
899 | |
900 | /* I_TERMIO: |
901 | * This symbol, if defined, indicates that the program should include |
902 | * <termio.h> rather than <sgtty.h>. There are also differences in |
903 | * the ioctl() calls that depend on the value of this symbol. |
904 | */ |
905 | /* I_TERMIOS: |
906 | * This symbol, if defined, indicates that the program should include |
907 | * the POSIX termios.h rather than sgtty.h or termio.h. |
908 | * There are also differences in the ioctl() calls that depend on the |
909 | * value of this symbol. |
910 | */ |
911 | /* I_SGTTY: |
912 | * This symbol, if defined, indicates that the program should include |
913 | * <sgtty.h> rather than <termio.h>. There are also differences in |
914 | * the ioctl() calls that depend on the value of this symbol. |
915 | */ |
916 | #$i_termio I_TERMIO /**/ |
917 | #$i_termios I_TERMIOS /**/ |
918 | #$i_sgtty I_SGTTY /**/ |
919 | |
920 | /* I_UNISTD: |
921 | * This symbol, if defined, indicates to the C program that it should |
922 | * include <unistd.h>. |
923 | */ |
924 | #$i_unistd I_UNISTD /**/ |
925 | |
926 | /* I_UTIME: |
927 | * This symbol, if defined, indicates to the C program that it should |
928 | * include <utime.h>. |
929 | */ |
930 | #$i_utime I_UTIME /**/ |
931 | |
932 | /* I_VALUES: |
933 | * This symbol, if defined, indicates to the C program that it should |
934 | * include <values.h> to get definition of symbols like MINFLOAT or |
935 | * MAXLONG, i.e. machine dependant limitations. Probably, you |
936 | * should use <limits.h> instead, if it is available. |
937 | */ |
938 | #$i_values I_VALUES /**/ |
939 | |
940 | /* I_STDARG: |
941 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
942 | * be included. |
943 | */ |
944 | /* I_VARARGS: |
945 | * This symbol, if defined, indicates to the C program that it should |
946 | * include <varargs.h>. |
947 | */ |
948 | #$i_stdarg I_STDARG /**/ |
949 | #$i_varargs I_VARARGS /**/ |
950 | |
951 | /* I_VFORK: |
952 | * This symbol, if defined, indicates to the C program that it should |
953 | * include vfork.h. |
954 | */ |
955 | #$i_vfork I_VFORK /**/ |
956 | |
957 | /* CAN_PROTOTYPE: |
958 | * If defined, this macro indicates that the C compiler can handle |
959 | * function prototypes. |
960 | */ |
961 | /* _: |
962 | * This macro is used to declare function parameters for folks who want |
963 | * to make declarations with prototypes using a different style than |
964 | * the above macros. Use double parentheses. For example: |
965 | * |
966 | * int main _((int argc, char *argv[])); |
967 | */ |
968 | #$prototype CAN_PROTOTYPE /**/ |
969 | #ifdef CAN_PROTOTYPE |
970 | #define _(args) args |
971 | #else |
972 | #define _(args) () |
973 | #endif |
974 | |
975 | /* SH_PATH: |
976 | * This symbol contains the full pathname to the shell used on this |
977 | * on this system to execute Bourne shell scripts. Usually, this will be |
978 | * /bin/sh, though it's possible that some systems will have /bin/ksh, |
979 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as |
980 | * D:/bin/sh.exe. |
981 | */ |
982 | #define SH_PATH "$sh" /**/ |
983 | |
984 | /* STDCHAR: |
985 | * This symbol is defined to be the type of char used in stdio.h. |
986 | * It has the values "unsigned char" or "char". |
987 | */ |
988 | #define STDCHAR $stdchar /**/ |
989 | |
10cc9d2a |
990 | /* CROSSCOMPILE: |
991 | * This symbol, if defined, signifies that we our |
992 | * build process is a cross-compilation. |
993 | */ |
994 | #$crosscompile CROSSCOMPILE /**/ |
995 | |
996 | /* INTSIZE: |
997 | * This symbol contains the value of sizeof(int) so that the C |
998 | * preprocessor can make decisions based on it. |
999 | */ |
1000 | /* LONGSIZE: |
1001 | * This symbol contains the value of sizeof(long) so that the C |
1002 | * preprocessor can make decisions based on it. |
1003 | */ |
1004 | /* SHORTSIZE: |
1005 | * This symbol contains the value of sizeof(short) so that the C |
1006 | * preprocessor can make decisions based on it. |
1007 | */ |
1008 | #define INTSIZE $intsize /**/ |
1009 | #define LONGSIZE $longsize /**/ |
1010 | #define SHORTSIZE $shortsize /**/ |
1011 | |
1012 | /* MULTIARCH: |
1013 | * This symbol, if defined, signifies that the build |
1014 | * process will produce some binary files that are going to be |
1015 | * used in a cross-platform environment. This is the case for |
1016 | * example with the NeXT "fat" binaries that contain executables |
1017 | * for several CPUs. |
1018 | */ |
1019 | #$multiarch MULTIARCH /**/ |
1020 | |
c287c78d |
1021 | /* HAS_QUAD: |
1022 | * This symbol, if defined, tells that there's a 64-bit integer type, |
1023 | * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one |
1024 | * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T. |
1025 | */ |
1026 | #$d_quad HAS_QUAD /**/ |
1027 | #ifdef HAS_QUAD |
1028 | # define Quad_t $quadtype /**/ |
1029 | # define Uquad_t $uquadtype /**/ |
1030 | # define QUADKIND $quadkind /**/ |
1031 | # define QUAD_IS_INT 1 |
1032 | # define QUAD_IS_LONG 2 |
1033 | # define QUAD_IS_LONG_LONG 3 |
1034 | # define QUAD_IS_INT64_T 4 |
1035 | #endif |
1036 | |
1037 | /* HAS_ACCESSX: |
1038 | * This symbol, if defined, indicates that the accessx routine is |
1039 | * available to do extended access checks. |
1040 | */ |
1041 | #$d_accessx HAS_ACCESSX /**/ |
1042 | |
1043 | /* HAS_EACCESS: |
1044 | * This symbol, if defined, indicates that the eaccess routine is |
1045 | * available to do extended access checks. |
1046 | */ |
1047 | #$d_eaccess HAS_EACCESS /**/ |
1048 | |
1049 | /* I_SYS_ACCESS: |
1050 | * This symbol, if defined, indicates to the C program that it should |
1051 | * include <sys/access.h>. |
1052 | */ |
1053 | #$i_sysaccess I_SYS_ACCESS /**/ |
1054 | |
1055 | /* I_SYS_SECURITY: |
1056 | * This symbol, if defined, indicates to the C program that it should |
1057 | * include <sys/security.h>. |
1058 | */ |
1059 | #$i_syssecrt I_SYS_SECURITY /**/ |
1060 | |
10cc9d2a |
1061 | /* OSNAME: |
1062 | * This symbol contains the name of the operating system, as determined |
1063 | * by Configure. You shouldn't rely on it too much; the specific |
1064 | * feature tests from Configure are generally more reliable. |
1761cee5 |
1065 | */ |
10cc9d2a |
1066 | #define OSNAME "$osname" /**/ |
c287c78d |
1067 | |
495c5fdc |
1068 | /* MEM_ALIGNBYTES: |
c287c78d |
1069 | * This symbol contains the number of bytes required to align a |
10cc9d2a |
1070 | * double, or a long double when applicable. Usual values are 2, |
1071 | * 4 and 8. The default is eight, for safety. |
c287c78d |
1072 | */ |
1073 | #if defined(CROSSCOMPILE) || defined(MULTIARCH) |
1074 | # define MEM_ALIGNBYTES 8 |
1075 | #else |
1076 | #define MEM_ALIGNBYTES $alignbytes |
1077 | #endif |
1078 | |
10cc9d2a |
1079 | /* ARCHLIB: |
1080 | * This variable, if defined, holds the name of the directory in |
1081 | * which the user wants to put architecture-dependent public |
1082 | * library files for $package. It is most often a local directory |
1083 | * such as /usr/local/lib. Programs using this variable must be |
1084 | * prepared to deal with filename expansion. If ARCHLIB is the |
1085 | * same as PRIVLIB, it is not defined, since presumably the |
1086 | * program already searches PRIVLIB. |
1087 | */ |
1088 | /* ARCHLIB_EXP: |
1089 | * This symbol contains the ~name expanded version of ARCHLIB, to be used |
1090 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1091 | */ |
1092 | #$d_archlib ARCHLIB "$archlib" /**/ |
1093 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ |
1094 | |
1095 | /* ARCHNAME: |
1096 | * This symbol holds a string representing the architecture name. |
1097 | * It may be used to construct an architecture-dependant pathname |
1098 | * where library files may be held under a private library, for |
1099 | * instance. |
1100 | */ |
1101 | #define ARCHNAME "$archname" /**/ |
1102 | |
1103 | /* HAS_ATOLF: |
1104 | * This symbol, if defined, indicates that the atolf routine is |
1105 | * available to convert strings into long doubles. |
1106 | */ |
1107 | #$d_atolf HAS_ATOLF /**/ |
1108 | |
1109 | /* HAS_ATOLL: |
1110 | * This symbol, if defined, indicates that the atoll routine is |
1111 | * available to convert strings into long longs. |
1112 | */ |
1113 | #$d_atoll HAS_ATOLL /**/ |
1114 | |
1115 | /* BIN: |
1116 | * This symbol holds the path of the bin directory where the package will |
1117 | * be installed. Program must be prepared to deal with ~name substitution. |
1118 | */ |
1119 | /* BIN_EXP: |
1120 | * This symbol is the filename expanded version of the BIN symbol, for |
1121 | * programs that do not want to deal with that at run-time. |
1122 | */ |
1123 | #define BIN "$bin" /**/ |
1124 | #define BIN_EXP "$binexp" /**/ |
1125 | |
1126 | /* PERL_BINCOMPAT_5005: |
f78bfc9c |
1127 | * This symbol, if defined, indicates that this version of Perl should be |
10cc9d2a |
1128 | * binary-compatible with Perl 5.005. This is impossible for builds |
1129 | * that use features like threads and multiplicity it is always $undef |
1130 | * for those versions. |
1131 | */ |
1132 | #$d_bincompat5005 PERL_BINCOMPAT_5005 /**/ |
1133 | |
495c5fdc |
1134 | /* BYTEORDER: |
1135 | * This symbol holds the hexadecimal constant defined in byteorder, |
1136 | * i.e. 0x1234 or 0x4321, etc... |
c287c78d |
1137 | * If the compiler supports cross-compiling or multiple-architecture |
1138 | * binaries (eg. on NeXT systems), use compiler-defined macros to |
1139 | * determine the byte order. |
495c5fdc |
1140 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture |
1141 | * Binaries (MAB) on either big endian or little endian machines. |
1142 | * The endian-ness is available at compile-time. This only matters |
1143 | * for perl, where the config.h can be generated and installed on |
1144 | * one system, and used by a different architecture to build an |
1145 | * extension. Older versions of NeXT that might not have |
1146 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, |
1147 | * so the default case (for NeXT) is big endian to catch them. |
1148 | * This might matter for NeXT 3.0. |
1149 | */ |
c287c78d |
1150 | #if defined(CROSSCOMPILE) || defined(MULTIARCH) |
1151 | # ifdef __LITTLE_ENDIAN__ |
1152 | # if LONGSIZE == 4 |
1153 | # define BYTEORDER 0x1234 |
1154 | # else |
1155 | # if LONGSIZE == 8 |
1156 | # define BYTEORDER 0x12345678 |
1157 | # endif |
1158 | # endif |
1159 | # else |
1160 | # ifdef __BIG_ENDIAN__ |
1161 | # if LONGSIZE == 4 |
1162 | # define BYTEORDER 0x4321 |
1163 | # else |
1164 | # if LONGSIZE == 8 |
1165 | # define BYTEORDER 0x87654321 |
1166 | # endif |
1167 | # endif |
1168 | # endif |
1169 | # endif |
1170 | # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__)) |
1171 | # define BYTEORDER 0x4321 |
1172 | # endif |
1173 | #else |
495c5fdc |
1174 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
495c5fdc |
1175 | #endif /* NeXT */ |
1176 | |
10cc9d2a |
1177 | /* CAT2: |
1178 | * This macro catenates 2 tokens together. |
1179 | */ |
1180 | /* STRINGIFY: |
1181 | * This macro surrounds its token with double quotes. |
1182 | */ |
1183 | #if $cpp_stuff == 1 |
fd47df60 |
1184 | #define CAT2(a,b) a/**/b |
1185 | #define STRINGIFY(a) "a" |
10cc9d2a |
1186 | /* If you can get stringification with catify, tell me how! */ |
1187 | #endif |
1188 | #if $cpp_stuff == 42 |
fd47df60 |
1189 | #define PeRl_CaTiFy(a, b) a ## b |
1190 | #define PeRl_StGiFy(a) #a |
526fdc24 |
1191 | /* the additional level of indirection enables these macros to be |
1192 | * used as arguments to other macros. See K&R 2nd ed., page 231. */ |
fd47df60 |
1193 | #define CAT2(a,b) PeRl_CaTiFy(a,b) |
1194 | #define StGiFy(a) PeRl_StGiFy(a) |
1195 | #define STRINGIFY(a) PeRl_StGiFy(a) |
10cc9d2a |
1196 | #endif |
1197 | #if $cpp_stuff != 1 && $cpp_stuff != 42 |
a3540c92 |
1198 | # include "Bletch: How does this C preprocessor catenate tokens?" |
10cc9d2a |
1199 | #endif |
1200 | |
1201 | /* CPPSTDIN: |
1202 | * This symbol contains the first part of the string which will invoke |
1203 | * the C preprocessor on the standard input and produce to standard |
1204 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
1205 | * call a wrapper. See CPPRUN. |
1206 | */ |
1207 | /* CPPMINUS: |
1208 | * This symbol contains the second part of the string which will invoke |
1209 | * the C preprocessor on the standard input and produce to standard |
1210 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
1211 | * to specify standard input, otherwise the value is "". |
1212 | */ |
1213 | /* CPPRUN: |
1214 | * This symbol contains the string which will invoke a C preprocessor on |
1215 | * the standard input and produce to standard output. It needs to end |
1216 | * with CPPLAST, after all other preprocessor flags have been specified. |
1217 | * The main difference with CPPSTDIN is that this program will never be a |
1218 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is |
1219 | * available directly to the user. Note that it may well be different from |
1220 | * the preprocessor used to compile the C program. |
1221 | */ |
1222 | /* CPPLAST: |
1223 | * This symbol is intended to be used along with CPPRUN in the same manner |
1224 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". |
1225 | */ |
1226 | #define CPPSTDIN "$cppstdin" |
1227 | #define CPPMINUS "$cppminus" |
1228 | #define CPPRUN "$cpprun" |
1229 | #define CPPLAST "$cpplast" |
1230 | |
1231 | /* HAS_ACCESS: |
1232 | * This manifest constant lets the C program know that the access() |
1233 | * system call is available to check for accessibility using real UID/GID. |
1234 | * (always present on UNIX.) |
1235 | */ |
1236 | #$d_access HAS_ACCESS /**/ |
1237 | |
c287c78d |
1238 | /* CASTI32: |
1239 | * This symbol is defined if the C compiler can cast negative |
1240 | * or large floating point numbers to 32-bit ints. |
495c5fdc |
1241 | */ |
c287c78d |
1242 | #$d_casti32 CASTI32 /**/ |
495c5fdc |
1243 | |
c287c78d |
1244 | /* CASTNEGFLOAT: |
1245 | * This symbol is defined if the C compiler can cast negative |
1246 | * numbers to unsigned longs, ints and shorts. |
495c5fdc |
1247 | */ |
c287c78d |
1248 | /* CASTFLAGS: |
1249 | * This symbol contains flags that say what difficulties the compiler |
1250 | * has casting odd floating values to unsigned long: |
1251 | * 0 = ok |
1252 | * 1 = couldn't cast < 0 |
1253 | * 2 = couldn't cast >= 0x80000000 |
1254 | * 4 = couldn't cast in argument expression list |
495c5fdc |
1255 | */ |
c287c78d |
1256 | #$d_castneg CASTNEGFLOAT /**/ |
1257 | #define CASTFLAGS $castflags /**/ |
495c5fdc |
1258 | |
c287c78d |
1259 | /* VOID_CLOSEDIR: |
1260 | * This symbol, if defined, indicates that the closedir() routine |
1261 | * does not return a value. |
495c5fdc |
1262 | */ |
c287c78d |
1263 | #$d_void_closedir VOID_CLOSEDIR /**/ |
495c5fdc |
1264 | |
10cc9d2a |
1265 | /* HAS_CSH: |
1266 | * This symbol, if defined, indicates that the C-shell exists. |
495c5fdc |
1267 | */ |
10cc9d2a |
1268 | /* CSH: |
1269 | * This symbol, if defined, contains the full pathname of csh. |
c287c78d |
1270 | */ |
10cc9d2a |
1271 | #$d_csh HAS_CSH /**/ |
1272 | #ifdef HAS_CSH |
1273 | #define CSH "$full_csh" /**/ |
1274 | #endif |
c287c78d |
1275 | |
10cc9d2a |
1276 | /* DLSYM_NEEDS_UNDERSCORE: |
1277 | * This symbol, if defined, indicates that we need to prepend an |
1278 | * underscore to the symbol name before calling dlsym(). This only |
1279 | * makes sense if you *have* dlsym, which we will presume is the |
1280 | * case if you're using dl_dlopen.xs. |
c287c78d |
1281 | */ |
10cc9d2a |
1282 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ |
c287c78d |
1283 | |
10cc9d2a |
1284 | /* HAS_DRAND48_PROTO: |
1285 | * This symbol, if defined, indicates that the system provides |
1286 | * a prototype for the drand48() function. Otherwise, it is up |
1287 | * to the program to supply one. A good guess is |
1288 | * extern double drand48 _((void)); |
495c5fdc |
1289 | */ |
10cc9d2a |
1290 | #$d_drand48proto HAS_DRAND48_PROTO /**/ |
495c5fdc |
1291 | |
10cc9d2a |
1292 | /* HAS_ENDGRENT: |
1293 | * This symbol, if defined, indicates that the getgrent routine is |
1294 | * available for finalizing sequential access of the group database. |
495c5fdc |
1295 | */ |
10cc9d2a |
1296 | #$d_endgrent HAS_ENDGRENT /**/ |
495c5fdc |
1297 | |
10cc9d2a |
1298 | /* HAS_ENDHOSTENT: |
1299 | * This symbol, if defined, indicates that the endhostent() routine is |
1300 | * available to close whatever was being used for host queries. |
495c5fdc |
1301 | */ |
10cc9d2a |
1302 | #$d_endhent HAS_ENDHOSTENT /**/ |
495c5fdc |
1303 | |
10cc9d2a |
1304 | /* HAS_ENDNETENT: |
1305 | * This symbol, if defined, indicates that the endnetent() routine is |
1306 | * available to close whatever was being used for network queries. |
495c5fdc |
1307 | */ |
10cc9d2a |
1308 | #$d_endnent HAS_ENDNETENT /**/ |
495c5fdc |
1309 | |
10cc9d2a |
1310 | /* HAS_ENDPROTOENT: |
1311 | * This symbol, if defined, indicates that the endprotoent() routine is |
1312 | * available to close whatever was being used for protocol queries. |
c287c78d |
1313 | */ |
10cc9d2a |
1314 | #$d_endpent HAS_ENDPROTOENT /**/ |
c287c78d |
1315 | |
10cc9d2a |
1316 | /* HAS_ENDPWENT: |
1317 | * This symbol, if defined, indicates that the getgrent routine is |
1318 | * available for finalizing sequential access of the passwd database. |
c287c78d |
1319 | */ |
10cc9d2a |
1320 | #$d_endpwent HAS_ENDPWENT /**/ |
c287c78d |
1321 | |
10cc9d2a |
1322 | /* HAS_ENDSERVENT: |
1323 | * This symbol, if defined, indicates that the endservent() routine is |
1324 | * available to close whatever was being used for service queries. |
c287c78d |
1325 | */ |
10cc9d2a |
1326 | #$d_endsent HAS_ENDSERVENT /**/ |
c287c78d |
1327 | |
10cc9d2a |
1328 | /* HAS_FD_SET: |
1329 | * This symbol, when defined, indicates presence of the fd_set typedef |
1330 | * in <sys/types.h> |
495c5fdc |
1331 | */ |
10cc9d2a |
1332 | #$d_fd_set HAS_FD_SET /**/ |
1333 | |
a3540c92 |
1334 | /* FLEXFILENAMES: |
1335 | * This symbol, if defined, indicates that the system supports filenames |
1336 | * longer than 14 characters. |
1337 | */ |
1338 | #$d_flexfnam FLEXFILENAMES /**/ |
1339 | |
10cc9d2a |
1340 | /* HAS_FPOS64_T: |
1341 | * This symbol will be defined if the C compiler supports fpos64_t. |
495c5fdc |
1342 | */ |
10cc9d2a |
1343 | #$d_fpos64_t HAS_FPOS64_T /**/ |
1344 | |
a3540c92 |
1345 | /* HAS_FREXPL: |
1346 | * This symbol, if defined, indicates that the frexpl routine is |
1347 | * available to break a long double floating-point number into |
1348 | * a normalized fraction and an integral power of 2. |
1349 | */ |
1350 | #$d_frexpl HAS_FREXPL /**/ |
1351 | |
10cc9d2a |
1352 | /* HAS_STRUCT_FS_DATA: |
1353 | * This symbol, if defined, indicates that the struct fs_data |
1354 | * to do statfs() is supported. |
495c5fdc |
1355 | */ |
10cc9d2a |
1356 | #$d_fs_data_s HAS_STRUCT_FS_DATA /**/ |
495c5fdc |
1357 | |
10cc9d2a |
1358 | /* HAS_FSEEKO: |
1359 | * This symbol, if defined, indicates that the fseeko routine is |
1360 | * available to fseek beyond 32 bits (useful for ILP32 hosts). |
c287c78d |
1361 | */ |
10cc9d2a |
1362 | #$d_fseeko HAS_FSEEKO /**/ |
1363 | |
1364 | /* HAS_FSTATFS: |
1365 | * This symbol, if defined, indicates that the fstatfs routine is |
1366 | * available to stat filesystems by file descriptors. |
c287c78d |
1367 | */ |
10cc9d2a |
1368 | #$d_fstatfs HAS_FSTATFS /**/ |
1369 | |
1370 | /* HAS_FTELLO: |
1371 | * This symbol, if defined, indicates that the ftello routine is |
1372 | * available to ftell beyond 32 bits (useful for ILP32 hosts). |
c287c78d |
1373 | */ |
10cc9d2a |
1374 | #$d_ftello HAS_FTELLO /**/ |
c287c78d |
1375 | |
10cc9d2a |
1376 | /* Gconvert: |
1377 | * This preprocessor macro is defined to convert a floating point |
1378 | * number to a string without a trailing decimal point. This |
1379 | * emulates the behavior of sprintf("%g"), but is sometimes much more |
1380 | * efficient. If gconvert() is not available, but gcvt() drops the |
1381 | * trailing decimal point, then gcvt() is used. If all else fails, |
1382 | * a macro using sprintf("%g") is used. Arguments for the Gconvert |
1383 | * macro are: value, number of digits, whether trailing zeros should |
1384 | * be retained, and the output buffer. |
1385 | * Possible values are: |
1386 | * d_Gconvert='gconvert((x),(n),(t),(b))' |
1387 | * d_Gconvert='gcvt((x),(n),(b))' |
1388 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' |
1389 | * The last two assume trailing zeros should not be kept. |
c287c78d |
1390 | */ |
10cc9d2a |
1391 | #define Gconvert(x,n,t,b) $d_Gconvert |
1392 | |
1393 | /* HAS_GETCWD: |
1394 | * This symbol, if defined, indicates that the getcwd routine is |
1395 | * available to get the current working directory. |
c287c78d |
1396 | */ |
10cc9d2a |
1397 | #$d_getcwd HAS_GETCWD /**/ |
c287c78d |
1398 | |
3813c136 |
1399 | /* HAS_GETESPWNAM: |
1400 | * This symbol, if defined, indicates that the getespwnam system call is |
1401 | * available to retrieve enchanced (shadow) password entries by name. |
1402 | */ |
1403 | #$d_getespwnam HAS_GETESPWNAM /**/ |
1404 | |
a3540c92 |
1405 | /* HAS_GETFSSTAT: |
1406 | * This symbol, if defined, indicates that the getfsstat routine is |
1407 | * available to stat filesystems in bulk. |
1408 | */ |
1409 | #$d_getfsstat HAS_GETFSSTAT /**/ |
1410 | |
10cc9d2a |
1411 | /* HAS_GETGRENT: |
1412 | * This symbol, if defined, indicates that the getgrent routine is |
1413 | * available for sequential access of the group database. |
495c5fdc |
1414 | */ |
10cc9d2a |
1415 | #$d_getgrent HAS_GETGRENT /**/ |
495c5fdc |
1416 | |
10cc9d2a |
1417 | /* HAS_GETHOSTBYADDR: |
1418 | * This symbol, if defined, indicates that the gethostbyaddr() routine is |
1419 | * available to look up hosts by their IP addresses. |
495c5fdc |
1420 | */ |
10cc9d2a |
1421 | #$d_gethbyaddr HAS_GETHOSTBYADDR /**/ |
1422 | |
1423 | /* HAS_GETHOSTBYNAME: |
1424 | * This symbol, if defined, indicates that the gethostbyname() routine is |
1425 | * available to look up host names in some data base or other. |
495c5fdc |
1426 | */ |
10cc9d2a |
1427 | #$d_gethbyname HAS_GETHOSTBYNAME /**/ |
1428 | |
1429 | /* HAS_GETHOSTENT: |
1430 | * This symbol, if defined, indicates that the gethostent() routine is |
1431 | * available to look up host names in some data base or another. |
c287c78d |
1432 | */ |
10cc9d2a |
1433 | #$d_gethent HAS_GETHOSTENT /**/ |
c287c78d |
1434 | |
10cc9d2a |
1435 | /* HAS_GETHOSTNAME: |
1436 | * This symbol, if defined, indicates that the C program may use the |
1437 | * gethostname() routine to derive the host name. See also HAS_UNAME |
1438 | * and PHOSTNAME. |
495c5fdc |
1439 | */ |
10cc9d2a |
1440 | /* HAS_UNAME: |
1441 | * This symbol, if defined, indicates that the C program may use the |
1442 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME |
1443 | * and PHOSTNAME. |
495c5fdc |
1444 | */ |
10cc9d2a |
1445 | /* PHOSTNAME: |
1446 | * This symbol, if defined, indicates the command to feed to the |
1447 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME |
1448 | * and HAS_UNAME. Note that the command uses a fully qualified path, |
1449 | * so that it is safe even if used by a process with super-user |
1450 | * privileges. |
495c5fdc |
1451 | */ |
10cc9d2a |
1452 | /* HAS_PHOSTNAME: |
1453 | * This symbol, if defined, indicates that the C program may use the |
1454 | * contents of PHOSTNAME as a command to feed to the popen() routine |
1455 | * to derive the host name. |
c287c78d |
1456 | */ |
10cc9d2a |
1457 | #$d_gethname HAS_GETHOSTNAME /**/ |
1458 | #$d_uname HAS_UNAME /**/ |
1459 | #$d_phostname HAS_PHOSTNAME /**/ |
1460 | #ifdef HAS_PHOSTNAME |
1461 | #define PHOSTNAME "$aphostname" /* How to get the host name */ |
1462 | #endif |
c287c78d |
1463 | |
10cc9d2a |
1464 | /* HAS_GETHOST_PROTOS: |
1465 | * This symbol, if defined, indicates that <netdb.h> includes |
1466 | * prototypes for gethostent(), gethostbyname(), and |
1467 | * gethostbyaddr(). Otherwise, it is up to the program to guess |
1468 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
c287c78d |
1469 | */ |
10cc9d2a |
1470 | #$d_gethostprotos HAS_GETHOST_PROTOS /**/ |
c287c78d |
1471 | |
10cc9d2a |
1472 | /* HAS_GETMNT: |
1473 | * This symbol, if defined, indicates that the getmnt routine is |
1474 | * available to get filesystem mount info by filename. |
c287c78d |
1475 | */ |
10cc9d2a |
1476 | #$d_getmnt HAS_GETMNT /**/ |
c287c78d |
1477 | |
10cc9d2a |
1478 | /* HAS_GETMNTENT: |
1479 | * This symbol, if defined, indicates that the getmntent routine is |
1480 | * available to iterate through mounted file systems to get their info. |
495c5fdc |
1481 | */ |
10cc9d2a |
1482 | #$d_getmntent HAS_GETMNTENT /**/ |
495c5fdc |
1483 | |
10cc9d2a |
1484 | /* HAS_GETNETBYADDR: |
1485 | * This symbol, if defined, indicates that the getnetbyaddr() routine is |
1486 | * available to look up networks by their IP addresses. |
c287c78d |
1487 | */ |
10cc9d2a |
1488 | #$d_getnbyaddr HAS_GETNETBYADDR /**/ |
c287c78d |
1489 | |
10cc9d2a |
1490 | /* HAS_GETNETBYNAME: |
1491 | * This symbol, if defined, indicates that the getnetbyname() routine is |
1492 | * available to look up networks by their names. |
c287c78d |
1493 | */ |
10cc9d2a |
1494 | #$d_getnbyname HAS_GETNETBYNAME /**/ |
c287c78d |
1495 | |
10cc9d2a |
1496 | /* HAS_GETNETENT: |
1497 | * This symbol, if defined, indicates that the getnetent() routine is |
1498 | * available to look up network names in some data base or another. |
c287c78d |
1499 | */ |
10cc9d2a |
1500 | #$d_getnent HAS_GETNETENT /**/ |
c287c78d |
1501 | |
10cc9d2a |
1502 | /* HAS_GETNET_PROTOS: |
1503 | * This symbol, if defined, indicates that <netdb.h> includes |
1504 | * prototypes for getnetent(), getnetbyname(), and |
1505 | * getnetbyaddr(). Otherwise, it is up to the program to guess |
1506 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
c287c78d |
1507 | */ |
10cc9d2a |
1508 | #$d_getnetprotos HAS_GETNET_PROTOS /**/ |
c287c78d |
1509 | |
10cc9d2a |
1510 | /* HAS_GETPROTOENT: |
1511 | * This symbol, if defined, indicates that the getprotoent() routine is |
1512 | * available to look up protocols in some data base or another. |
495c5fdc |
1513 | */ |
10cc9d2a |
1514 | #$d_getpent HAS_GETPROTOENT /**/ |
495c5fdc |
1515 | |
10cc9d2a |
1516 | /* HAS_GETPROTOBYNAME: |
1517 | * This symbol, if defined, indicates that the getprotobyname() |
1518 | * routine is available to look up protocols by their name. |
495c5fdc |
1519 | */ |
10cc9d2a |
1520 | /* HAS_GETPROTOBYNUMBER: |
1521 | * This symbol, if defined, indicates that the getprotobynumber() |
1522 | * routine is available to look up protocols by their number. |
495c5fdc |
1523 | */ |
10cc9d2a |
1524 | #$d_getpbyname HAS_GETPROTOBYNAME /**/ |
1525 | #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ |
495c5fdc |
1526 | |
10cc9d2a |
1527 | /* HAS_GETPROTO_PROTOS: |
1528 | * This symbol, if defined, indicates that <netdb.h> includes |
1529 | * prototypes for getprotoent(), getprotobyname(), and |
1530 | * getprotobyaddr(). Otherwise, it is up to the program to guess |
1531 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
c287c78d |
1532 | */ |
10cc9d2a |
1533 | #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/ |
1534 | |
3813c136 |
1535 | /* HAS_GETPRPWNAM: |
1536 | * This symbol, if defined, indicates that the getprpwnam system call is |
1537 | * available to retrieve protected (shadow) password entries by name. |
1538 | */ |
1539 | #$d_getprpwnam HAS_GETPRPWNAM /**/ |
1540 | |
10cc9d2a |
1541 | /* HAS_GETPWENT: |
1542 | * This symbol, if defined, indicates that the getpwent routine is |
1543 | * available for sequential access of the passwd database. |
1544 | * If this is not available, the older getpw() function may be available. |
c287c78d |
1545 | */ |
10cc9d2a |
1546 | #$d_getpwent HAS_GETPWENT /**/ |
c287c78d |
1547 | |
10cc9d2a |
1548 | /* HAS_GETSERVENT: |
1549 | * This symbol, if defined, indicates that the getservent() routine is |
1550 | * available to look up network services in some data base or another. |
c287c78d |
1551 | */ |
10cc9d2a |
1552 | #$d_getsent HAS_GETSERVENT /**/ |
c287c78d |
1553 | |
10cc9d2a |
1554 | /* HAS_GETSERV_PROTOS: |
1555 | * This symbol, if defined, indicates that <netdb.h> includes |
1556 | * prototypes for getservent(), getservbyname(), and |
1557 | * getservbyaddr(). Otherwise, it is up to the program to guess |
1558 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
c287c78d |
1559 | */ |
10cc9d2a |
1560 | #$d_getservprotos HAS_GETSERV_PROTOS /**/ |
c287c78d |
1561 | |
10cc9d2a |
1562 | /* HAS_GETSPNAM: |
1563 | * This symbol, if defined, indicates that the getspnam system call is |
1564 | * available to retrieve SysV shadow password entries by name. |
c287c78d |
1565 | */ |
10cc9d2a |
1566 | #$d_getspnam HAS_GETSPNAM /**/ |
c287c78d |
1567 | |
10cc9d2a |
1568 | /* HAS_GETSERVBYNAME: |
1569 | * This symbol, if defined, indicates that the getservbyname() |
1570 | * routine is available to look up services by their name. |
c287c78d |
1571 | */ |
10cc9d2a |
1572 | /* HAS_GETSERVBYPORT: |
1573 | * This symbol, if defined, indicates that the getservbyport() |
1574 | * routine is available to look up services by their port. |
c287c78d |
1575 | */ |
10cc9d2a |
1576 | #$d_getsbyname HAS_GETSERVBYNAME /**/ |
1577 | #$d_getsbyport HAS_GETSERVBYPORT /**/ |
1578 | |
1579 | /* HAS_GNULIBC: |
1580 | * This symbol, if defined, indicates to the C program that |
1581 | * the GNU C library is being used. |
c287c78d |
1582 | */ |
10cc9d2a |
1583 | #$d_gnulibc HAS_GNULIBC /**/ |
1584 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) |
1585 | # define _GNU_SOURCE |
1586 | #endif |
1587 | /* HAS_HASMNTOPT: |
1588 | * This symbol, if defined, indicates that the hasmntopt routine is |
1589 | * available to query the mount options of file systems. |
c287c78d |
1590 | */ |
10cc9d2a |
1591 | #$d_hasmntopt HAS_HASMNTOPT /**/ |
c287c78d |
1592 | |
10cc9d2a |
1593 | /* HAS_HTONL: |
1594 | * This symbol, if defined, indicates that the htonl() routine (and |
1595 | * friends htons() ntohl() ntohs()) are available to do network |
1596 | * order byte swapping. |
c287c78d |
1597 | */ |
10cc9d2a |
1598 | /* HAS_HTONS: |
1599 | * This symbol, if defined, indicates that the htons() routine (and |
1600 | * friends htonl() ntohl() ntohs()) are available to do network |
1601 | * order byte swapping. |
1761cee5 |
1602 | */ |
1603 | /* HAS_NTOHL: |
1604 | * This symbol, if defined, indicates that the ntohl() routine (and |
1605 | * friends htonl() htons() ntohs()) are available to do network |
1606 | * order byte swapping. |
1607 | */ |
1608 | /* HAS_NTOHS: |
1609 | * This symbol, if defined, indicates that the ntohs() routine (and |
1610 | * friends htonl() htons() ntohl()) are available to do network |
1611 | * order byte swapping. |
1612 | */ |
1613 | #$d_htonl HAS_HTONL /**/ |
1614 | #$d_htonl HAS_HTONS /**/ |
1615 | #$d_htonl HAS_NTOHL /**/ |
1616 | #$d_htonl HAS_NTOHS /**/ |
1617 | |
10cc9d2a |
1618 | /* HAS_ICONV: |
1619 | * This symbol, if defined, indicates that the iconv routine is |
1620 | * available to do character set conversions. |
1621 | */ |
1622 | #$d_iconv HAS_ICONV /**/ |
1623 | |
1624 | /* HAS_INT64_T: |
1625 | * This symbol will defined if the C compiler supports int64_t. |
1626 | * Usually the <inttypes.h> needs to be included, but sometimes |
1627 | * <sys/types.h> is enough. |
1628 | */ |
1629 | #$d_int64_t HAS_INT64_T /**/ |
1630 | |
1631 | /* HAS_ISASCII: |
1632 | * This manifest constant lets the C program know that isascii |
1633 | * is available. |
1634 | */ |
1635 | #$d_isascii HAS_ISASCII /**/ |
1636 | |
a3540c92 |
1637 | /* HAS_ISNAN: |
1638 | * This symbol, if defined, indicates that the isnan routine is |
1639 | * available to check whether a double is a NaN. |
1640 | */ |
1641 | #$d_isnan HAS_ISNAN /**/ |
1642 | |
1643 | /* HAS_ISNANL: |
1644 | * This symbol, if defined, indicates that the isnanl routine is |
1645 | * available to check whether a long double is a NaN. |
1646 | */ |
1647 | #$d_isnanl HAS_ISNANL /**/ |
1648 | |
10cc9d2a |
1649 | /* HAS_LCHOWN: |
1650 | * This symbol, if defined, indicates that the lchown routine is |
1651 | * available to operate on a symbolic link (instead of following the |
1652 | * link). |
1653 | */ |
1654 | #$d_lchown HAS_LCHOWN /**/ |
1655 | |
1656 | /* HAS_LDBL_DIG: |
1657 | * This symbol, if defined, indicates that this system's <float.h> |
1658 | * or <limits.h> defines the symbol LDBL_DIG, which is the number |
1659 | * of significant digits in a long double precision number. Unlike |
1660 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. |
1661 | */ |
1662 | #$d_ldbl_dig HAS_LDBL_DIG /* */ |
1663 | |
1761cee5 |
1664 | /* HAS_LONG_DOUBLE: |
1665 | * This symbol will be defined if the C compiler supports long |
1666 | * doubles. |
1667 | */ |
1668 | /* LONG_DOUBLESIZE: |
1669 | * This symbol contains the size of a long double, so that the |
1670 | * C preprocessor can make decisions based on it. It is only |
1671 | * defined if the system supports long doubles. |
1672 | */ |
1673 | #$d_longdbl HAS_LONG_DOUBLE /**/ |
1674 | #ifdef HAS_LONG_DOUBLE |
1675 | #define LONG_DOUBLESIZE $longdblsize /**/ |
1676 | #endif |
1677 | |
1678 | /* HAS_LONG_LONG: |
1679 | * This symbol will be defined if the C compiler supports long long. |
1680 | */ |
1681 | /* LONGLONGSIZE: |
1682 | * This symbol contains the size of a long long, so that the |
1683 | * C preprocessor can make decisions based on it. It is only |
1684 | * defined if the system supports long long. |
1685 | */ |
1686 | #$d_longlong HAS_LONG_LONG /**/ |
1687 | #ifdef HAS_LONG_LONG |
1688 | #define LONGLONGSIZE $longlongsize /**/ |
1689 | #endif |
1690 | |
a3540c92 |
1691 | /* HAS_LSEEK_PROTO: |
1692 | * This symbol, if defined, indicates that the system provides |
1693 | * a prototype for the lseek() function. Otherwise, it is up |
1694 | * to the program to supply one. A good guess is |
1695 | * extern off_t lseek(int, off_t, int); |
1696 | */ |
1697 | #$d_lseekproto HAS_LSEEK_PROTO /**/ |
1698 | |
792d8dab |
1699 | /* HAS_MADVISE: |
1700 | * This symbol, if defined, indicates that the madvise system call is |
1701 | * available to map a file into memory. |
1702 | */ |
1703 | #$d_madvise HAS_MADVISE /**/ |
1704 | |
1761cee5 |
1705 | /* HAS_MEMCHR: |
1706 | * This symbol, if defined, indicates that the memchr routine is available |
1707 | * to locate characters within a C string. |
1708 | */ |
1709 | #$d_memchr HAS_MEMCHR /**/ |
1710 | |
10cc9d2a |
1711 | /* HAS_MKDTEMP: |
1712 | * This symbol, if defined, indicates that the mkdtemp routine is |
1713 | * available to exclusively create a uniquely named temporary directory. |
1761cee5 |
1714 | */ |
10cc9d2a |
1715 | #$d_mkdtemp HAS_MKDTEMP /**/ |
1761cee5 |
1716 | |
10cc9d2a |
1717 | /* HAS_MKSTEMP: |
1718 | * This symbol, if defined, indicates that the mkstemp routine is |
1719 | * available to exclusively create and open a uniquely named |
1720 | * temporary file. |
1761cee5 |
1721 | */ |
10cc9d2a |
1722 | #$d_mkstemp HAS_MKSTEMP /**/ |
1761cee5 |
1723 | |
10cc9d2a |
1724 | /* HAS_MKSTEMPS: |
1725 | * This symbol, if defined, indicates that the mkstemps routine is |
1726 | * available to excluslvely create and open a uniquely named |
1727 | * (with a suffix) temporary file. |
1761cee5 |
1728 | */ |
10cc9d2a |
1729 | #$d_mkstemps HAS_MKSTEMPS /**/ |
1761cee5 |
1730 | |
10cc9d2a |
1731 | /* HAS_MMAP: |
1732 | * This symbol, if defined, indicates that the mmap system call is |
1733 | * available to map a file into memory. |
1761cee5 |
1734 | */ |
10cc9d2a |
1735 | /* Mmap_t: |
1736 | * This symbol holds the return type of the mmap() system call |
1737 | * (and simultaneously the type of the first argument). |
1738 | * Usually set to 'void *' or 'cadd_t'. |
1761cee5 |
1739 | */ |
10cc9d2a |
1740 | #$d_mmap HAS_MMAP /**/ |
1741 | #define Mmap_t $mmaptype /**/ |
1761cee5 |
1742 | |
3813c136 |
1743 | /* HAS_MODFL: |
1744 | * This symbol, if defined, indicates that the modfl routine is |
1745 | * available to split a long double x into a fractional part f and |
1746 | * an integer part i such that |f| < 1.0 and (f + i) = x. |
1747 | */ |
1748 | #$d_modfl HAS_MODFL /**/ |
1749 | |
10cc9d2a |
1750 | /* HAS_MPROTECT: |
1751 | * This symbol, if defined, indicates that the mprotect system call is |
1752 | * available to modify the access protection of a memory mapped file. |
1761cee5 |
1753 | */ |
10cc9d2a |
1754 | #$d_mprotect HAS_MPROTECT /**/ |
1761cee5 |
1755 | |
10cc9d2a |
1756 | /* HAS_MSG: |
1757 | * This symbol, if defined, indicates that the entire msg*(2) library is |
1758 | * supported (IPC mechanism based on message queues). |
1761cee5 |
1759 | */ |
10cc9d2a |
1760 | #$d_msg HAS_MSG /**/ |
1761cee5 |
1761 | |
10cc9d2a |
1762 | /* HAS_OFF64_T: |
1763 | * This symbol will be defined if the C compiler supports off64_t. |
1761cee5 |
1764 | */ |
10cc9d2a |
1765 | #$d_off64_t HAS_OFF64_T /**/ |
1761cee5 |
1766 | |
10cc9d2a |
1767 | /* HAS_OPEN3: |
1768 | * This manifest constant lets the C program know that the three |
1769 | * argument form of open(2) is available. |
1761cee5 |
1770 | */ |
10cc9d2a |
1771 | #$d_open3 HAS_OPEN3 /**/ |
1761cee5 |
1772 | |
10cc9d2a |
1773 | /* OLD_PTHREAD_CREATE_JOINABLE: |
1774 | * This symbol, if defined, indicates how to create pthread |
1775 | * in joinable (aka undetached) state. NOTE: not defined |
1776 | * if pthread.h already has defined PTHREAD_CREATE_JOINABLE |
1777 | * (the new version of the constant). |
1778 | * If defined, known values are PTHREAD_CREATE_UNDETACHED |
1779 | * and __UNDETACHED. |
1761cee5 |
1780 | */ |
10cc9d2a |
1781 | #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/ |
1782 | |
1783 | /* HAS_PTHREAD_YIELD: |
1784 | * This symbol, if defined, indicates that the pthread_yield |
1785 | * routine is available to yield the execution of the current |
1786 | * thread. sched_yield is preferable to pthread_yield. |
1787 | */ |
1788 | /* SCHED_YIELD: |
1789 | * This symbol defines the way to yield the execution of |
1790 | * the current thread. Known ways are sched_yield, |
1791 | * pthread_yield, and pthread_yield with NULL. |
1792 | */ |
1793 | /* HAS_SCHED_YIELD: |
1794 | * This symbol, if defined, indicates that the sched_yield |
1795 | * routine is available to yield the execution of the current |
1796 | * thread. sched_yield is preferable to pthread_yield. |
1797 | */ |
1798 | #$d_pthread_yield HAS_PTHREAD_YIELD /**/ |
1799 | #define SCHED_YIELD $sched_yield /**/ |
1800 | #$d_sched_yield HAS_SCHED_YIELD /**/ |
1801 | |
1802 | /* HAS_SAFE_BCOPY: |
1803 | * This symbol, if defined, indicates that the bcopy routine is available |
1804 | * to copy potentially overlapping memory blocks. Otherwise you should |
1805 | * probably use memmove() or memcpy(). If neither is defined, roll your |
1806 | * own version. |
1807 | */ |
1808 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
1809 | |
1810 | /* HAS_SAFE_MEMCPY: |
1811 | * This symbol, if defined, indicates that the memcpy routine is available |
1812 | * to copy potentially overlapping memory blocks. Otherwise you should |
1813 | * probably use memmove() or memcpy(). If neither is defined, roll your |
1814 | * own version. |
1815 | */ |
1816 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
1817 | |
1818 | /* HAS_SANE_MEMCMP: |
1819 | * This symbol, if defined, indicates that the memcmp routine is available |
1820 | * and can be used to compare relative magnitudes of chars with their high |
1821 | * bits set. If it is not defined, roll your own version. |
1822 | */ |
1823 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ |
1824 | |
1825 | /* HAS_SEM: |
1826 | * This symbol, if defined, indicates that the entire sem*(2) library is |
1827 | * supported. |
1828 | */ |
1829 | #$d_sem HAS_SEM /**/ |
1830 | |
1831 | /* HAS_SETGRENT: |
1832 | * This symbol, if defined, indicates that the setgrent routine is |
1833 | * available for initializing sequential access of the group database. |
1834 | */ |
1835 | #$d_setgrent HAS_SETGRENT /**/ |
1836 | |
1837 | /* HAS_SETGROUPS: |
1838 | * This symbol, if defined, indicates that the setgroups() routine is |
1839 | * available to set the list of process groups. If unavailable, multiple |
1840 | * groups are probably not supported. |
1841 | */ |
1842 | #$d_setgrps HAS_SETGROUPS /**/ |
1843 | |
1844 | /* HAS_SETHOSTENT: |
1845 | * This symbol, if defined, indicates that the sethostent() routine is |
1846 | * available. |
1847 | */ |
1848 | #$d_sethent HAS_SETHOSTENT /**/ |
1849 | |
1850 | /* HAS_SETNETENT: |
1851 | * This symbol, if defined, indicates that the setnetent() routine is |
1852 | * available. |
1853 | */ |
1854 | #$d_setnent HAS_SETNETENT /**/ |
1855 | |
1856 | /* HAS_SETPROTOENT: |
1857 | * This symbol, if defined, indicates that the setprotoent() routine is |
1858 | * available. |
1859 | */ |
1860 | #$d_setpent HAS_SETPROTOENT /**/ |
1861 | |
fd47df60 |
1862 | /* HAS_SETPROCTITLE: |
1863 | * This symbol, if defined, indicates that the setproctitle routine is |
1864 | * available to set process title. |
1865 | */ |
1866 | #$d_setproctitle HAS_SETPROCTITLE /**/ |
1867 | |
10cc9d2a |
1868 | /* HAS_SETPWENT: |
1869 | * This symbol, if defined, indicates that the setpwent routine is |
1870 | * available for initializing sequential access of the passwd database. |
1871 | */ |
1872 | #$d_setpwent HAS_SETPWENT /**/ |
1873 | |
1874 | /* HAS_SETSERVENT: |
1875 | * This symbol, if defined, indicates that the setservent() routine is |
1876 | * available. |
1877 | */ |
1878 | #$d_setsent HAS_SETSERVENT /**/ |
1879 | |
10cc9d2a |
1880 | /* HAS_SETVBUF: |
1881 | * This symbol, if defined, indicates that the setvbuf routine is |
1882 | * available to change buffering on an open stdio stream. |
1883 | * to a line-buffered mode. |
1884 | */ |
1885 | #$d_setvbuf HAS_SETVBUF /**/ |
1886 | |
1887 | /* USE_SFIO: |
1888 | * This symbol, if defined, indicates that sfio should |
1889 | * be used. |
1890 | */ |
1891 | #$d_sfio USE_SFIO /**/ |
1761cee5 |
1892 | |
1893 | /* HAS_SHM: |
1894 | * This symbol, if defined, indicates that the entire shm*(2) library is |
1895 | * supported. |
1896 | */ |
1897 | #$d_shm HAS_SHM /**/ |
1898 | |
10cc9d2a |
1899 | /* HAS_SIGACTION: |
1900 | * This symbol, if defined, indicates that Vr4's sigaction() routine |
1901 | * is available. |
1902 | */ |
1903 | #$d_sigaction HAS_SIGACTION /**/ |
1904 | |
1905 | /* HAS_SIGSETJMP: |
1906 | * This variable indicates to the C program that the sigsetjmp() |
1907 | * routine is available to save the calling process's registers |
1908 | * and stack environment for later use by siglongjmp(), and |
1909 | * to optionally save the process's signal mask. See |
1910 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp. |
1911 | */ |
1912 | /* Sigjmp_buf: |
1913 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. |
1914 | */ |
1915 | /* Sigsetjmp: |
1916 | * This macro is used in the same way as sigsetjmp(), but will invoke |
1917 | * traditional setjmp() if sigsetjmp isn't available. |
1918 | * See HAS_SIGSETJMP. |
1919 | */ |
1920 | /* Siglongjmp: |
1921 | * This macro is used in the same way as siglongjmp(), but will invoke |
1922 | * traditional longjmp() if siglongjmp isn't available. |
1923 | * See HAS_SIGSETJMP. |
1924 | */ |
1925 | #$d_sigsetjmp HAS_SIGSETJMP /**/ |
1926 | #ifdef HAS_SIGSETJMP |
1927 | #define Sigjmp_buf sigjmp_buf |
1928 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) |
1929 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) |
1930 | #else |
1931 | #define Sigjmp_buf jmp_buf |
1932 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) |
1933 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) |
1934 | #endif |
1935 | |
1761cee5 |
1936 | /* HAS_SOCKET: |
1937 | * This symbol, if defined, indicates that the BSD socket interface is |
1938 | * supported. |
1939 | */ |
1940 | /* HAS_SOCKETPAIR: |
1941 | * This symbol, if defined, indicates that the BSD socketpair() call is |
1942 | * supported. |
1943 | */ |
1944 | /* HAS_MSG_CTRUNC: |
1945 | * This symbol, if defined, indicates that the MSG_CTRUNC is supported. |
1946 | * Checking just with #ifdef might not be enough because this symbol |
1947 | * has been known to be an enum. |
1948 | */ |
1949 | /* HAS_MSG_DONTROUTE: |
1950 | * This symbol, if defined, indicates that the MSG_DONTROUTE is supported. |
1951 | * Checking just with #ifdef might not be enough because this symbol |
1952 | * has been known to be an enum. |
1953 | */ |
1954 | /* HAS_MSG_OOB: |
1955 | * This symbol, if defined, indicates that the MSG_OOB is supported. |
1956 | * Checking just with #ifdef might not be enough because this symbol |
c287c78d |
1957 | * has been known to be an enum. |
1958 | */ |
1959 | /* HAS_MSG_PEEK: |
1960 | * This symbol, if defined, indicates that the MSG_PEEK is supported. |
1961 | * Checking just with #ifdef might not be enough because this symbol |
1962 | * has been known to be an enum. |
1963 | */ |
1964 | /* HAS_MSG_PROXY: |
1965 | * This symbol, if defined, indicates that the MSG_PROXY is supported. |
1966 | * Checking just with #ifdef might not be enough because this symbol |
1967 | * has been known to be an enum. |
1968 | */ |
1969 | /* HAS_SCM_RIGHTS: |
1970 | * This symbol, if defined, indicates that the SCM_RIGHTS is supported. |
1971 | * Checking just with #ifdef might not be enough because this symbol |
1972 | * has been known to be an enum. |
1973 | */ |
1974 | #$d_socket HAS_SOCKET /**/ |
1975 | #$d_sockpair HAS_SOCKETPAIR /**/ |
1976 | #$d_msg_ctrunc HAS_MSG_CTRUNC /**/ |
1977 | #$d_msg_dontroute HAS_MSG_DONTROUTE /**/ |
1978 | #$d_msg_oob HAS_MSG_OOB /**/ |
1979 | #$d_msg_peek HAS_MSG_PEEK /**/ |
1980 | #$d_msg_proxy HAS_MSG_PROXY /**/ |
1981 | #$d_scm_rights HAS_SCM_RIGHTS /**/ |
1982 | |
1b9c9cf5 |
1983 | /* HAS_SOCKS5_INIT: |
1984 | * This symbol, if defined, indicates that the socks5_init routine is |
1985 | * available to initialize SOCKS 5. |
1986 | */ |
1987 | #$d_socks5_init HAS_SOCKS5_INIT /**/ |
1988 | |
10cc9d2a |
1989 | /* HAS_SQRTL: |
1990 | * This symbol, if defined, indicates that the sqrtl routine is |
1991 | * available to do long double square roots. |
1992 | */ |
1993 | #$d_sqrtl HAS_SQRTL /**/ |
1994 | |
c287c78d |
1995 | /* USE_STAT_BLOCKS: |
1996 | * This symbol is defined if this system has a stat structure declaring |
1997 | * st_blksize and st_blocks. |
1998 | */ |
1999 | #ifndef USE_STAT_BLOCKS |
2000 | #$d_statblks USE_STAT_BLOCKS /**/ |
2001 | #endif |
2002 | |
10cc9d2a |
2003 | /* HAS_STRUCT_STATFS_F_FLAGS: |
2004 | * This symbol, if defined, indicates that the struct statfs |
2005 | * does have the f_flags member containing the mount flags of |
2006 | * the filesystem containing the file. |
2007 | * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), |
2008 | * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not |
2009 | * have statfs() and struct statfs, they have ustat() and getmnt() |
2010 | * with struct ustat and struct fs_data. |
2011 | */ |
2012 | #$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/ |
2013 | |
2014 | /* HAS_STRUCT_STATFS: |
2015 | * This symbol, if defined, indicates that the struct statfs |
2016 | * to do statfs() is supported. |
2017 | */ |
2018 | #$d_statfs_s HAS_STRUCT_STATFS /**/ |
2019 | |
2020 | /* HAS_FSTATVFS: |
2021 | * This symbol, if defined, indicates that the fstatvfs routine is |
2022 | * available to stat filesystems by file descriptors. |
2023 | */ |
2024 | #$d_fstatvfs HAS_FSTATVFS /**/ |
2025 | |
2026 | /* USE_STDIO_PTR: |
2027 | * This symbol is defined if the _ptr and _cnt fields (or similar) |
2028 | * of the stdio FILE structure can be used to access the stdio buffer |
2029 | * for a file handle. If this is defined, then the FILE_ptr(fp) |
2030 | * and FILE_cnt(fp) macros will also be defined and should be used |
2031 | * to access these fields. |
2032 | */ |
2033 | /* FILE_ptr: |
2034 | * This macro is used to access the _ptr field (or equivalent) of the |
2035 | * FILE structure pointed to by its argument. This macro will always be |
2036 | * defined if USE_STDIO_PTR is defined. |
2037 | */ |
2038 | /* STDIO_PTR_LVALUE: |
2039 | * This symbol is defined if the FILE_ptr macro can be used as an |
2040 | * lvalue. |
2041 | */ |
2042 | /* FILE_cnt: |
2043 | * This macro is used to access the _cnt field (or equivalent) of the |
2044 | * FILE structure pointed to by its argument. This macro will always be |
2045 | * defined if USE_STDIO_PTR is defined. |
2046 | */ |
2047 | /* STDIO_CNT_LVALUE: |
2048 | * This symbol is defined if the FILE_cnt macro can be used as an |
2049 | * lvalue. |
2050 | */ |
2051 | #$d_stdstdio USE_STDIO_PTR /**/ |
2052 | #ifdef USE_STDIO_PTR |
2053 | #define FILE_ptr(fp) $stdio_ptr |
2054 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ |
2055 | #define FILE_cnt(fp) $stdio_cnt |
2056 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ |
2057 | #endif |
2058 | |
2059 | /* USE_STDIO_BASE: |
2060 | * This symbol is defined if the _base field (or similar) of the |
2061 | * stdio FILE structure can be used to access the stdio buffer for |
2062 | * a file handle. If this is defined, then the FILE_base(fp) macro |
2063 | * will also be defined and should be used to access this field. |
2064 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used |
2065 | * to determine the number of bytes in the buffer. USE_STDIO_BASE |
2066 | * will never be defined unless USE_STDIO_PTR is. |
2067 | */ |
2068 | /* FILE_base: |
2069 | * This macro is used to access the _base field (or equivalent) of the |
2070 | * FILE structure pointed to by its argument. This macro will always be |
2071 | * defined if USE_STDIO_BASE is defined. |
2072 | */ |
2073 | /* FILE_bufsiz: |
2074 | * This macro is used to determine the number of bytes in the I/O |
2075 | * buffer pointed to by _base field (or equivalent) of the FILE |
2076 | * structure pointed to its argument. This macro will always be defined |
2077 | * if USE_STDIO_BASE is defined. |
2078 | */ |
2079 | #$d_stdiobase USE_STDIO_BASE /**/ |
2080 | #ifdef USE_STDIO_BASE |
2081 | #define FILE_base(fp) $stdio_base |
2082 | #define FILE_bufsiz(fp) $stdio_bufsiz |
2083 | #endif |
2084 | |
1761cee5 |
2085 | /* HAS_STRERROR: |
2086 | * This symbol, if defined, indicates that the strerror routine is |
2087 | * available to translate error numbers to strings. See the writeup |
2088 | * of Strerror() in this file before you try to define your own. |
c287c78d |
2089 | */ |
1761cee5 |
2090 | /* HAS_SYS_ERRLIST: |
2091 | * This symbol, if defined, indicates that the sys_errlist array is |
2092 | * available to translate error numbers to strings. The extern int |
2093 | * sys_nerr gives the size of that table. |
c287c78d |
2094 | */ |
1761cee5 |
2095 | /* Strerror: |
2096 | * This preprocessor symbol is defined as a macro if strerror() is |
2097 | * not available to translate error numbers to strings but sys_errlist[] |
2098 | * array is there. |
c287c78d |
2099 | */ |
1761cee5 |
2100 | #$d_strerror HAS_STRERROR /**/ |
2101 | #$d_syserrlst HAS_SYS_ERRLIST /**/ |
2102 | #define Strerror(e) $d_strerrm |
c287c78d |
2103 | |
10cc9d2a |
2104 | /* HAS_STRTOLD: |
2105 | * This symbol, if defined, indicates that the strtold routine is |
2106 | * available to convert strings to long doubles. |
c287c78d |
2107 | */ |
10cc9d2a |
2108 | #$d_strtold HAS_STRTOLD /**/ |
2109 | |
2110 | /* HAS_STRTOLL: |
2111 | * This symbol, if defined, indicates that the strtoll routine is |
2112 | * available to convert strings to long longs. |
c287c78d |
2113 | */ |
10cc9d2a |
2114 | #$d_strtoll HAS_STRTOLL /**/ |
1761cee5 |
2115 | |
10cc9d2a |
2116 | /* HAS_STRTOULL: |
2117 | * This symbol, if defined, indicates that the strtoull routine is |
2118 | * available to convert strings to unsigned long longs. |
2119 | */ |
2120 | #$d_strtoull HAS_STRTOULL /**/ |
2121 | |
2122 | /* HAS_STRTOUQ: |
2123 | * This symbol, if defined, indicates that the strtouq routine is |
2124 | * available to convert strings to unsigned long longs (quads). |
2125 | */ |
2126 | #$d_strtouq HAS_STRTOUQ /**/ |
2127 | |
2128 | /* HAS_TELLDIR_PROTO: |
2129 | * This symbol, if defined, indicates that the system provides |
2130 | * a prototype for the telldir() function. Otherwise, it is up |
2131 | * to the program to supply one. A good guess is |
2132 | * extern long telldir _((DIR*)); |
2133 | */ |
2134 | #$d_telldirproto HAS_TELLDIR_PROTO /**/ |
2135 | |
2136 | /* Time_t: |
2137 | * This symbol holds the type returned by time(). It can be long, |
2138 | * or time_t on BSD sites (in which case <sys/types.h> should be |
2139 | * included). |
2140 | */ |
2141 | #define Time_t $timetype /* Time type */ |
2142 | |
2143 | /* HAS_TIMES: |
2144 | * This symbol, if defined, indicates that the times() routine exists. |
2145 | * Note that this became obsolete on some systems (SUNOS), which now |
2146 | * use getrusage(). It may be necessary to include <sys/times.h>. |
2147 | */ |
2148 | #$d_times HAS_TIMES /**/ |
2149 | |
2150 | /* HAS_UNION_SEMUN: |
2151 | * This symbol, if defined, indicates that the union semun is |
2152 | * defined by including <sys/sem.h>. If not, the user code |
2153 | * probably needs to define it as: |
2154 | * union semun { |
2155 | * int val; |
2156 | * struct semid_ds *buf; |
2157 | * unsigned short *array; |
2158 | * } |
2159 | */ |
2160 | /* USE_SEMCTL_SEMUN: |
2161 | * This symbol, if defined, indicates that union semun is |
2162 | * used for semctl IPC_STAT. |
2163 | */ |
2164 | /* USE_SEMCTL_SEMID_DS: |
2165 | * This symbol, if defined, indicates that struct semid_ds * is |
2166 | * used for semctl IPC_STAT. |
2167 | */ |
2168 | #$d_union_semun HAS_UNION_SEMUN /**/ |
2169 | #$d_semctl_semun USE_SEMCTL_SEMUN /**/ |
2170 | #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ |
2171 | |
2172 | /* HAS_USTAT: |
2173 | * This symbol, if defined, indicates that the ustat system call is |
2174 | * available to query file system statistics by dev_t. |
2175 | */ |
2176 | #$d_ustat HAS_USTAT /**/ |
2177 | |
2178 | /* HAS_VFORK: |
1761cee5 |
2179 | * This symbol, if defined, indicates that vfork() exists. |
c287c78d |
2180 | */ |
1761cee5 |
2181 | #$d_vfork HAS_VFORK /**/ |
2182 | |
2183 | /* Signal_t: |
2184 | * This symbol's value is either "void" or "int", corresponding to the |
2185 | * appropriate return type of a signal handler. Thus, you can declare |
2186 | * a signal handler using "Signal_t (*handler)()", and define the |
2187 | * handler using "Signal_t handler(sig)". |
2188 | */ |
2189 | #define Signal_t $signal_t /* Signal handler's return type */ |
2190 | |
10cc9d2a |
2191 | /* HAS_VPRINTF: |
2192 | * This symbol, if defined, indicates that the vprintf routine is available |
2193 | * to printf with a pointer to an argument list. If unavailable, you |
2194 | * may need to write your own, probably in terms of _doprnt(). |
2195 | */ |
2196 | /* USE_CHAR_VSPRINTF: |
2197 | * This symbol is defined if this system has vsprintf() returning type |
2198 | * (char*). The trend seems to be to declare it as "int vsprintf()". It |
2199 | * is up to the package author to declare vsprintf correctly based on the |
2200 | * symbol. |
2201 | */ |
2202 | #$d_vprintf HAS_VPRINTF /**/ |
2203 | #$d_charvspr USE_CHAR_VSPRINTF /**/ |
2204 | |
2205 | /* USE_DYNAMIC_LOADING: |
2206 | * This symbol, if defined, indicates that dynamic loading of |
2207 | * some sort is available. |
2208 | */ |
2209 | #$usedl USE_DYNAMIC_LOADING /**/ |
2210 | |
2211 | /* DOUBLESIZE: |
2212 | * This symbol contains the size of a double, so that the C preprocessor |
2213 | * can make decisions based on it. |
2214 | */ |
2215 | #define DOUBLESIZE $doublesize /**/ |
2216 | |
2217 | /* EBCDIC: |
2218 | * This symbol, if defined, indicates that this system uses |
2219 | * EBCDIC encoding. |
2220 | */ |
2221 | #$ebcdic EBCDIC /**/ |
2222 | |
2223 | /* FFLUSH_NULL: |
2224 | * This symbol, if defined, tells that fflush(NULL) does flush |
2225 | * all pending stdio output. |
2226 | */ |
2227 | /* FFLUSH_ALL: |
2228 | * This symbol, if defined, tells that to flush |
2229 | * all pending stdio output one must loop through all |
2230 | * the stdio file handles stored in an array and fflush them. |
2231 | * Note that if fflushNULL is defined, fflushall will not |
2232 | * even be probed for and will be left undefined. |
2233 | */ |
2234 | #$fflushNULL FFLUSH_NULL /**/ |
2235 | #$fflushall FFLUSH_ALL /**/ |
2236 | |
2237 | /* Fpos_t: |
2238 | * This symbol holds the type used to declare file positions in libc. |
2239 | * It can be fpos_t, long, uint, etc... It may be necessary to include |
2240 | * <sys/types.h> to get any typedef'ed information. |
2241 | */ |
2242 | #define Fpos_t $fpostype /* File position type */ |
2243 | |
2244 | /* Gid_t_f: |
2245 | * This symbol defines the format string used for printing a Gid_t. |
2246 | */ |
2247 | #define Gid_t_f $gidformat /**/ |
2248 | |
23dcd6c8 |
2249 | /* Gid_t_sign: |
2250 | * This symbol holds the signedess of a Gid_t. |
2251 | * 1 for unsigned, -1 for signed. |
2252 | */ |
2253 | #define Gid_t_sign $gidsign /* GID sign */ |
2254 | |
10cc9d2a |
2255 | /* Gid_t_size: |
2256 | * This symbol holds the size of a Gid_t in bytes. |
2257 | */ |
2258 | #define Gid_t_size $gidsize /* GID size */ |
2259 | |
2260 | /* Gid_t: |
2261 | * This symbol holds the return type of getgid() and the type of |
2262 | * argument to setrgid() and related functions. Typically, |
2263 | * it is the type of group ids in the kernel. It can be int, ushort, |
23dcd6c8 |
2264 | * gid_t, etc... It may be necessary to include <sys/types.h> to get |
10cc9d2a |
2265 | * any typedef'ed information. |
2266 | */ |
2267 | #define Gid_t $gidtype /* Type for getgid(), etc... */ |
2268 | |
1761cee5 |
2269 | /* Groups_t: |
2270 | * This symbol holds the type used for the second argument to |
23dcd6c8 |
2271 | * getgroups() and setgroups(). Usually, this is the same as |
1761cee5 |
2272 | * gidtype (gid_t) , but sometimes it isn't. |
23dcd6c8 |
2273 | * It can be int, ushort, gid_t, etc... |
1761cee5 |
2274 | * It may be necessary to include <sys/types.h> to get any |
2275 | * typedef'ed information. This is only required if you have |
23dcd6c8 |
2276 | * getgroups() or setgroups().. |
1761cee5 |
2277 | */ |
2278 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) |
2279 | #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ |
c287c78d |
2280 | #endif |
2281 | |
10cc9d2a |
2282 | /* DB_Prefix_t: |
2283 | * This symbol contains the type of the prefix structure element |
2284 | * in the <db.h> header file. In older versions of DB, it was |
2285 | * int, while in newer ones it is u_int32_t. |
2286 | */ |
2287 | /* DB_Hash_t: |
2288 | * This symbol contains the type of the prefix structure element |
2289 | * in the <db.h> header file. In older versions of DB, it was |
2290 | * int, while in newer ones it is size_t. |
2291 | */ |
2292 | #define DB_Hash_t $db_hashtype /**/ |
2293 | #define DB_Prefix_t $db_prefixtype /**/ |
2294 | |
1761cee5 |
2295 | /* I_GRP: |
2296 | * This symbol, if defined, indicates to the C program that it should |
2297 | * include <grp.h>. |
c287c78d |
2298 | */ |
1761cee5 |
2299 | /* GRPASSWD: |
2300 | * This symbol, if defined, indicates to the C program that struct group |
2301 | * in <grp.h> contains gr_passwd. |
2302 | */ |
2303 | #$i_grp I_GRP /**/ |
2304 | #$d_grpasswd GRPASSWD /**/ |
2305 | |
10cc9d2a |
2306 | /* I_ICONV: |
2307 | * This symbol, if defined, indicates that <iconv.h> exists and |
2308 | * should be included. |
2309 | */ |
2310 | #$i_iconv I_ICONV /**/ |
2311 | |
a3540c92 |
2312 | /* I_IEEEFP: |
2313 | * This symbol, if defined, indicates that <ieeefp.h> exists and |
2314 | * should be included. |
2315 | */ |
2316 | #$i_ieeefp I_IEEEFP /**/ |
2317 | |
10cc9d2a |
2318 | /* I_INTTYPES: |
2319 | * This symbol, if defined, indicates to the C program that it should |
2320 | * include <inttypes.h>. |
2321 | */ |
2322 | #$i_inttypes I_INTTYPES /**/ |
2323 | |
1b9c9cf5 |
2324 | /* I_LIBUTIL: |
2325 | * This symbol, if defined, indicates that <libutil.h> exists and |
2326 | * should be included. |
2327 | */ |
2328 | #$i_libutil I_LIBUTIL /**/ |
2329 | |
10cc9d2a |
2330 | /* I_MACH_CTHREADS: |
2331 | * This symbol, if defined, indicates to the C program that it should |
2332 | * include <mach/cthreads.h>. |
2333 | */ |
2334 | #$i_machcthr I_MACH_CTHREADS /**/ |
2335 | |
2336 | /* I_MNTENT: |
2337 | * This symbol, if defined, indicates that <mntent.h> exists and |
2338 | * should be included. |
2339 | */ |
2340 | #$i_mntent I_MNTENT /**/ |
2341 | |
1761cee5 |
2342 | /* I_NETDB: |
2343 | * This symbol, if defined, indicates that <netdb.h> exists and |
2344 | * should be included. |
2345 | */ |
2346 | #$i_netdb I_NETDB /**/ |
2347 | |
10cc9d2a |
2348 | /* I_NETINET_TCP: |
2349 | * This symbol, if defined, indicates to the C program that it should |
2350 | * include <netinet/tcp.h>. |
2351 | */ |
2352 | #$i_netinettcp I_NETINET_TCP /**/ |
2353 | |
2354 | /* I_POLL: |
2355 | * This symbol, if defined, indicates that <poll.h> exists and |
2356 | * should be included. |
2357 | */ |
2358 | #$i_poll I_POLL /**/ |
2359 | |
3813c136 |
2360 | /* I_PROT: |
2361 | * This symbol, if defined, indicates that <prot.h> exists and |
2362 | * should be included. |
2363 | */ |
2364 | #$i_prot I_PROT /**/ |
2365 | |
10cc9d2a |
2366 | /* I_PTHREAD: |
2367 | * This symbol, if defined, indicates to the C program that it should |
2368 | * include <pthread.h>. |
2369 | */ |
2370 | #$i_pthread I_PTHREAD /**/ |
2371 | |
1761cee5 |
2372 | /* I_PWD: |
2373 | * This symbol, if defined, indicates to the C program that it should |
2374 | * include <pwd.h>. |
2375 | */ |
2376 | /* PWQUOTA: |
2377 | * This symbol, if defined, indicates to the C program that struct passwd |
2378 | * contains pw_quota. |
2379 | */ |
2380 | /* PWAGE: |
2381 | * This symbol, if defined, indicates to the C program that struct passwd |
2382 | * contains pw_age. |
2383 | */ |
2384 | /* PWCHANGE: |
2385 | * This symbol, if defined, indicates to the C program that struct passwd |
2386 | * contains pw_change. |
2387 | */ |
2388 | /* PWCLASS: |
2389 | * This symbol, if defined, indicates to the C program that struct passwd |
2390 | * contains pw_class. |
2391 | */ |
2392 | /* PWEXPIRE: |
2393 | * This symbol, if defined, indicates to the C program that struct passwd |
2394 | * contains pw_expire. |
2395 | */ |
2396 | /* PWCOMMENT: |
2397 | * This symbol, if defined, indicates to the C program that struct passwd |
2398 | * contains pw_comment. |
2399 | */ |
2400 | /* PWGECOS: |
2401 | * This symbol, if defined, indicates to the C program that struct passwd |
2402 | * contains pw_gecos. |
2403 | */ |
2404 | /* PWPASSWD: |
2405 | * This symbol, if defined, indicates to the C program that struct passwd |
2406 | * contains pw_passwd. |
2407 | */ |
2408 | #$i_pwd I_PWD /**/ |
2409 | #$d_pwquota PWQUOTA /**/ |
2410 | #$d_pwage PWAGE /**/ |
2411 | #$d_pwchange PWCHANGE /**/ |
2412 | #$d_pwclass PWCLASS /**/ |
2413 | #$d_pwexpire PWEXPIRE /**/ |
2414 | #$d_pwcomment PWCOMMENT /**/ |
2415 | #$d_pwgecos PWGECOS /**/ |
2416 | #$d_pwpasswd PWPASSWD /**/ |
2417 | |
10cc9d2a |
2418 | /* I_SHADOW: |
2419 | * This symbol, if defined, indicates that <shadow.h> exists and |
1761cee5 |
2420 | * should be included. |
2421 | */ |
10cc9d2a |
2422 | #$i_shadow I_SHADOW /**/ |
1761cee5 |
2423 | |
10cc9d2a |
2424 | /* I_SOCKS: |
2425 | * This symbol, if defined, indicates that <socks.h> exists and |
2426 | * should be included. |
1761cee5 |
2427 | */ |
10cc9d2a |
2428 | #$i_socks I_SOCKS /**/ |
1761cee5 |
2429 | |
792d8dab |
2430 | /* I_SUNMATH: |
2431 | * This symbol, if defined, indicates that <sunmath.h> exists and |
2432 | * should be included. |
2433 | */ |
2434 | #$i_sunmath I_SUNMATH /**/ |
2435 | |
10cc9d2a |
2436 | /* I_SYSLOG: |
2437 | * This symbol, if defined, indicates that <syslog.h> exists and |
2438 | * should be included. |
1761cee5 |
2439 | */ |
10cc9d2a |
2440 | #$i_syslog I_SYSLOG /**/ |
1761cee5 |
2441 | |
10cc9d2a |
2442 | /* I_SYSMODE: |
2443 | * This symbol, if defined, indicates that <sys/mode.h> exists and |
2444 | * should be included. |
1761cee5 |
2445 | */ |
10cc9d2a |
2446 | #$i_sysmode I_SYSMODE /**/ |
2447 | |
2448 | /* I_SYS_MOUNT: |
2449 | * This symbol, if defined, indicates that <sys/mount.h> exists and |
2450 | * should be included. |
1761cee5 |
2451 | */ |
10cc9d2a |
2452 | #$i_sysmount I_SYS_MOUNT /**/ |
1761cee5 |
2453 | |
10cc9d2a |
2454 | /* I_SYS_STATFS: |
2455 | * This symbol, if defined, indicates that <sys/statfs.h> exists. |
1761cee5 |
2456 | */ |
10cc9d2a |
2457 | #$i_sysstatfs I_SYS_STATFS /**/ |
1761cee5 |
2458 | |
10cc9d2a |
2459 | /* I_SYS_STATVFS: |
2460 | * This symbol, if defined, indicates that <sys/statvfs.h> exists and |
2461 | * should be included. |
1761cee5 |
2462 | */ |
10cc9d2a |
2463 | #$i_sysstatvfs I_SYS_STATVFS /**/ |
1761cee5 |
2464 | |
10cc9d2a |
2465 | /* I_SYSUIO: |
2466 | * This symbol, if defined, indicates that <sys/uio.h> exists and |
2467 | * should be included. |
1761cee5 |
2468 | */ |
10cc9d2a |
2469 | #$i_sysuio I_SYSUIO /**/ |
1761cee5 |
2470 | |
10cc9d2a |
2471 | /* I_SYSUTSNAME: |
2472 | * This symbol, if defined, indicates that <sys/utsname.h> exists and |
2473 | * should be included. |
1761cee5 |
2474 | */ |
10cc9d2a |
2475 | #$i_sysutsname I_SYSUTSNAME /**/ |
1761cee5 |
2476 | |
10cc9d2a |
2477 | /* I_SYS_VFS: |
2478 | * This symbol, if defined, indicates that <sys/vfs.h> exists and |
2479 | * should be included. |
1761cee5 |
2480 | */ |
10cc9d2a |
2481 | #$i_sysvfs I_SYS_VFS /**/ |
1761cee5 |
2482 | |
10cc9d2a |
2483 | /* I_TIME: |
2484 | * This symbol, if defined, indicates to the C program that it should |
2485 | * include <time.h>. |
1761cee5 |
2486 | */ |
10cc9d2a |
2487 | /* I_SYS_TIME: |
2488 | * This symbol, if defined, indicates to the C program that it should |
2489 | * include <sys/time.h>. |
1761cee5 |
2490 | */ |
10cc9d2a |
2491 | /* I_SYS_TIME_KERNEL: |
2492 | * This symbol, if defined, indicates to the C program that it should |
2493 | * include <sys/time.h> with KERNEL defined. |
1761cee5 |
2494 | */ |
10cc9d2a |
2495 | #$i_time I_TIME /**/ |
2496 | #$i_systime I_SYS_TIME /**/ |
2497 | #$i_systimek I_SYS_TIME_KERNEL /**/ |
1761cee5 |
2498 | |
10cc9d2a |
2499 | /* I_USTAT: |
2500 | * This symbol, if defined, indicates that <ustat.h> exists and |
2501 | * should be included. |
1761cee5 |
2502 | */ |
10cc9d2a |
2503 | #$i_ustat I_USTAT /**/ |
1761cee5 |
2504 | |
10cc9d2a |
2505 | /* PERL_INC_VERSION_LIST: |
2506 | * This variable specifies the list of subdirectories in over |
2507 | * which perl.c:incpush() and lib/lib.pm will automatically |
2508 | * search when adding directories to @INC, in a format suitable |
2509 | * for a C initialization string. See the inc_version_list entry |
2510 | * in Porting/Glossary for more details. |
1761cee5 |
2511 | */ |
10cc9d2a |
2512 | #define PERL_INC_VERSION_LIST $inc_version_list_init /**/ |
1761cee5 |
2513 | |
10cc9d2a |
2514 | /* INSTALL_USR_BIN_PERL: |
2515 | * This symbol, if defined, indicates that Perl is to be installed |
2516 | * also as /usr/bin/perl. |
1761cee5 |
2517 | */ |
10cc9d2a |
2518 | #$installusrbinperl INSTALL_USR_BIN_PERL /**/ |
1761cee5 |
2519 | |
10cc9d2a |
2520 | /* PERL_PRIfldbl: |
2521 | * This symbol, if defined, contains the string used by stdio to |
2522 | * format long doubles (format 'f') for output. |
1761cee5 |
2523 | */ |
10cc9d2a |
2524 | /* PERL_PRIgldbl: |
2525 | * This symbol, if defined, contains the string used by stdio to |
2526 | * format long doubles (format 'g') for output. |
1761cee5 |
2527 | */ |
6b356c8e |
2528 | /* PERL_PRIeldbl: |
2529 | * This symbol, if defined, contains the string used by stdio to |
2530 | * format long doubles (format 'e') for output. |
2531 | */ |
2532 | /* PERL_SCNfldbl: |
2533 | * This symbol, if defined, contains the string used by stdio to |
2534 | * format long doubles (format 'f') for input. |
2535 | */ |
10cc9d2a |
2536 | #$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/ |
2537 | #$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/ |
6b356c8e |
2538 | #$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/ |
2539 | #$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/ |
1761cee5 |
2540 | |
10cc9d2a |
2541 | /* Off_t: |
2542 | * This symbol holds the type used to declare offsets in the kernel. |
2543 | * It can be int, long, off_t, etc... It may be necessary to include |
2544 | * <sys/types.h> to get any typedef'ed information. |
c287c78d |
2545 | */ |
10cc9d2a |
2546 | /* LSEEKSIZE: |
2547 | * This symbol holds the number of bytes used by the Off_t. |
c287c78d |
2548 | */ |
10cc9d2a |
2549 | /* Off_t_size: |
2550 | * This symbol holds the number of bytes used by the Off_t. |
c287c78d |
2551 | */ |
10cc9d2a |
2552 | #define Off_t $lseektype /* <offset> type */ |
2553 | #define LSEEKSIZE $lseeksize /* <offset> size */ |
2554 | #define Off_t_size $lseeksize /* <offset> size */ |
1761cee5 |
2555 | |
10cc9d2a |
2556 | /* Free_t: |
2557 | * This variable contains the return type of free(). It is usually |
2558 | * void, but occasionally int. |
c287c78d |
2559 | */ |
10cc9d2a |
2560 | /* Malloc_t: |
2561 | * This symbol is the type of pointer returned by malloc and realloc. |
c287c78d |
2562 | */ |
10cc9d2a |
2563 | #define Malloc_t $malloctype /**/ |
2564 | #define Free_t $freetype /**/ |
c287c78d |
2565 | |
10cc9d2a |
2566 | /* MYMALLOC: |
2567 | * This symbol, if defined, indicates that we're using our own malloc. |
c287c78d |
2568 | */ |
10cc9d2a |
2569 | #$d_mymalloc MYMALLOC /**/ |
c287c78d |
2570 | |
10cc9d2a |
2571 | /* Mode_t: |
2572 | * This symbol holds the type used to declare file modes |
2573 | * for systems calls. It is usually mode_t, but may be |
2574 | * int or unsigned short. It may be necessary to include <sys/types.h> |
2575 | * to get any typedef'ed information. |
c287c78d |
2576 | */ |
10cc9d2a |
2577 | #define Mode_t $modetype /* file mode parameter for system calls */ |
c287c78d |
2578 | |
10cc9d2a |
2579 | /* VAL_O_NONBLOCK: |
2580 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on |
2581 | * non-blocking I/O for the file descriptor. Note that there is no way |
2582 | * back, i.e. you cannot turn it blocking again this way. If you wish to |
2583 | * alternatively switch between blocking and non-blocking, use the |
2584 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. |
c287c78d |
2585 | */ |
10cc9d2a |
2586 | /* VAL_EAGAIN: |
2587 | * This symbol holds the errno error code set by read() when no data was |
2588 | * present on the non-blocking file descriptor. |
c287c78d |
2589 | */ |
10cc9d2a |
2590 | /* RD_NODATA: |
2591 | * This symbol holds the return code from read() when no data is present |
2592 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is |
2593 | * not defined, then you can't distinguish between no data and EOF by |
2594 | * issuing a read(). You'll have to find another way to tell for sure! |
c287c78d |
2595 | */ |
10cc9d2a |
2596 | /* EOF_NONBLOCK: |
2597 | * This symbol, if defined, indicates to the C program that a read() on |
2598 | * a non-blocking file descriptor will return 0 on EOF, and not the value |
2599 | * held in RD_NODATA (-1 usually, in that case!). |
c287c78d |
2600 | */ |
10cc9d2a |
2601 | #define VAL_O_NONBLOCK $o_nonblock |
2602 | #define VAL_EAGAIN $eagain |
2603 | #define RD_NODATA $rd_nodata |
2604 | #$d_eofnblk EOF_NONBLOCK |
c287c78d |
2605 | |
10cc9d2a |
2606 | /* Netdb_host_t: |
2607 | * This symbol holds the type used for the 1st argument |
2608 | * to gethostbyaddr(). |
c287c78d |
2609 | */ |
10cc9d2a |
2610 | /* Netdb_hlen_t: |
2611 | * This symbol holds the type used for the 2nd argument |
2612 | * to gethostbyaddr(). |
c287c78d |
2613 | */ |
10cc9d2a |
2614 | /* Netdb_name_t: |
2615 | * This symbol holds the type used for the argument to |
2616 | * gethostbyname(). |
c287c78d |
2617 | */ |
10cc9d2a |
2618 | /* Netdb_net_t: |
2619 | * This symbol holds the type used for the 1st argument to |
2620 | * getnetbyaddr(). |
2621 | */ |
2622 | #define Netdb_host_t $netdb_host_type /**/ |
2623 | #define Netdb_hlen_t $netdb_hlen_type /**/ |
2624 | #define Netdb_name_t $netdb_name_type /**/ |
2625 | #define Netdb_net_t $netdb_net_type /**/ |
c287c78d |
2626 | |
d722968f |
2627 | /* PERL_OTHERLIBDIRS: |
2628 | * This variable contains a colon-separated set of paths for the perl |
2629 | * binary to search for additional library files or modules. |
2630 | * These directories will be tacked to the end of @INC. |
2631 | * Perl will automatically search below each path for version- |
2632 | * and architecture-specific directories. See PERL_INC_VERSION_LIST |
2633 | * for more details. |
2634 | */ |
2635 | #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/ |
2636 | |
10cc9d2a |
2637 | /* IVTYPE: |
2638 | * This symbol defines the C type used for Perl's IV. |
495c5fdc |
2639 | */ |
c287c78d |
2640 | /* UVTYPE: |
2641 | * This symbol defines the C type used for Perl's UV. |
2642 | */ |
2643 | /* I8TYPE: |
2644 | * This symbol defines the C type used for Perl's I8. |
2645 | */ |
2646 | /* U8TYPE: |
2647 | * This symbol defines the C type used for Perl's U8. |
2648 | */ |
2649 | /* I16TYPE: |
2650 | * This symbol defines the C type used for Perl's I16. |
2651 | */ |
2652 | /* U16TYPE: |
2653 | * This symbol defines the C type used for Perl's U16. |
2654 | */ |
2655 | /* I32TYPE: |
2656 | * This symbol defines the C type used for Perl's I32. |
2657 | */ |
2658 | /* U32TYPE: |
2659 | * This symbol defines the C type used for Perl's U32. |
2660 | */ |
2661 | /* I64TYPE: |
2662 | * This symbol defines the C type used for Perl's I64. |
2663 | */ |
2664 | /* U64TYPE: |
2665 | * This symbol defines the C type used for Perl's U64. |
2666 | */ |
2667 | /* NVTYPE: |
2668 | * This symbol defines the C type used for Perl's NV. |
2669 | */ |
2670 | /* IVSIZE: |
2671 | * This symbol contains the sizeof(IV). |
2672 | */ |
2673 | /* UVSIZE: |
2674 | * This symbol contains the sizeof(UV). |
2675 | */ |
2676 | /* I8SIZE: |
2677 | * This symbol contains the sizeof(I8). |
2678 | */ |
2679 | /* U8SIZE: |
2680 | * This symbol contains the sizeof(U8). |
2681 | */ |
2682 | /* I16SIZE: |
2683 | * This symbol contains the sizeof(I16). |
2684 | */ |
2685 | /* U16SIZE: |
2686 | * This symbol contains the sizeof(U16). |
2687 | */ |
2688 | /* I32SIZE: |
2689 | * This symbol contains the sizeof(I32). |
2690 | */ |
2691 | /* U32SIZE: |
2692 | * This symbol contains the sizeof(U32). |
2693 | */ |
2694 | /* I64SIZE: |
2695 | * This symbol contains the sizeof(I64). |
2696 | */ |
2697 | /* U64SIZE: |
2698 | * This symbol contains the sizeof(U64). |
2699 | */ |
a3540c92 |
2700 | /* NVSIZE: |
2701 | * This symbol contains the sizeof(NV). |
2702 | */ |
10cc9d2a |
2703 | /* NV_PRESERVES_UV: |
2704 | * This symbol, if defined, indicates that a variable of type NVTYPE |
3813c136 |
2705 | * can preserve all the bits of a variable of type UVTYPE. |
10cc9d2a |
2706 | */ |
fd47df60 |
2707 | /* NV_PRESERVES_UV_BITS: |
2708 | * This symbol contains the number of bits a variable of type NVTYPE |
2709 | * can preserve of a variable of type UVTYPE. |
2710 | */ |
c287c78d |
2711 | #define IVTYPE $ivtype /**/ |
2712 | #define UVTYPE $uvtype /**/ |
2713 | #define I8TYPE $i8type /**/ |
2714 | #define U8TYPE $u8type /**/ |
2715 | #define I16TYPE $i16type /**/ |
2716 | #define U16TYPE $u16type /**/ |
2717 | #define I32TYPE $i32type /**/ |
2718 | #define U32TYPE $u32type /**/ |
2719 | #ifdef HAS_QUAD |
2720 | #define I64TYPE $i64type /**/ |
2721 | #define U64TYPE $u64type /**/ |
2722 | #endif |
2723 | #define NVTYPE $nvtype /**/ |
2724 | #define IVSIZE $ivsize /**/ |
2725 | #define UVSIZE $uvsize /**/ |
2726 | #define I8SIZE $i8size /**/ |
2727 | #define U8SIZE $u8size /**/ |
2728 | #define I16SIZE $i16size /**/ |
2729 | #define U16SIZE $u16size /**/ |
2730 | #define I32SIZE $i32size /**/ |
2731 | #define U32SIZE $u32size /**/ |
2732 | #ifdef HAS_QUAD |
2733 | #define I64SIZE $i64size /**/ |
2734 | #define U64SIZE $u64size /**/ |
2735 | #endif |
a3540c92 |
2736 | #define NVSIZE $nvsize /**/ |
10cc9d2a |
2737 | #$d_nv_preserves_uv NV_PRESERVES_UV |
fd47df60 |
2738 | #define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits |
495c5fdc |
2739 | |
c287c78d |
2740 | /* IVdf: |
2741 | * This symbol defines the format string used for printing a Perl IV |
2742 | * as a signed decimal integer. |
495c5fdc |
2743 | */ |
c287c78d |
2744 | /* UVuf: |
2745 | * This symbol defines the format string used for printing a Perl UV |
2746 | * as an unsigned decimal integer. |
495c5fdc |
2747 | */ |
c287c78d |
2748 | /* UVof: |
2749 | * This symbol defines the format string used for printing a Perl UV |
2750 | * as an unsigned octal integer. |
2751 | */ |
2752 | /* UVxf: |
2753 | * This symbol defines the format string used for printing a Perl UV |
fd47df60 |
2754 | * as an unsigned hexadecimal integer in lowercase abcdef. |
2755 | */ |
2756 | /* NVef: |
2757 | * This symbol defines the format string used for printing a Perl NV |
2758 | * using %e-ish floating point format. |
2759 | */ |
2760 | /* NVff: |
2761 | * This symbol defines the format string used for printing a Perl NV |
2762 | * using %f-ish floating point format. |
2763 | */ |
2764 | /* NVgf: |
2765 | * This symbol defines the format string used for printing a Perl NV |
2766 | * using %g-ish floating point format. |
c287c78d |
2767 | */ |
2768 | #define IVdf $ivdformat /**/ |
2769 | #define UVuf $uvuformat /**/ |
2770 | #define UVof $uvoformat /**/ |
2771 | #define UVxf $uvxformat /**/ |
fd47df60 |
2772 | #define NVef $nveformat /**/ |
2773 | #define NVff $nvfformat /**/ |
2774 | #define NVgf $nvgformat /**/ |
c287c78d |
2775 | |
10cc9d2a |
2776 | /* Pid_t: |
2777 | * This symbol holds the type used to declare process ids in the kernel. |
2778 | * It can be int, uint, pid_t, etc... It may be necessary to include |
2779 | * <sys/types.h> to get any typedef'ed information. |
495c5fdc |
2780 | */ |
10cc9d2a |
2781 | #define Pid_t $pidtype /* PID type */ |
495c5fdc |
2782 | |
10cc9d2a |
2783 | /* PRIVLIB: |
2784 | * This symbol contains the name of the private library for this package. |
2785 | * The library is private in the sense that it needn't be in anyone's |
2786 | * execution path, but it should be accessible by the world. The program |
2787 | * should be prepared to do ~ expansion. |
495c5fdc |
2788 | */ |
10cc9d2a |
2789 | /* PRIVLIB_EXP: |
2790 | * This symbol contains the ~name expanded version of PRIVLIB, to be used |
2791 | * in programs that are not prepared to deal with ~ expansion at run-time. |
495c5fdc |
2792 | */ |
10cc9d2a |
2793 | #define PRIVLIB "$privlib" /**/ |
2794 | #define PRIVLIB_EXP "$privlibexp" /**/ |
495c5fdc |
2795 | |
10cc9d2a |
2796 | /* PTRSIZE: |
2797 | * This symbol contains the size of a pointer, so that the C preprocessor |
2798 | * can make decisions based on it. It will be sizeof(void *) if |
2799 | * the compiler supports (void *); otherwise it will be |
2800 | * sizeof(char *). |
495c5fdc |
2801 | */ |
10cc9d2a |
2802 | #define PTRSIZE $ptrsize /**/ |
495c5fdc |
2803 | |
10cc9d2a |
2804 | /* Drand01: |
2805 | * This macro is to be used to generate uniformly distributed |
2806 | * random numbers over the range [0., 1.[. You may have to supply |
2807 | * an 'extern double drand48();' in your program since SunOS 4.1.3 |
2808 | * doesn't provide you with anything relevant in it's headers. |
2809 | * See HAS_DRAND48_PROTO. |
495c5fdc |
2810 | */ |
10cc9d2a |
2811 | /* Rand_seed_t: |
2812 | * This symbol defines the type of the argument of the |
2813 | * random seed function. |
495c5fdc |
2814 | */ |
10cc9d2a |
2815 | /* seedDrand01: |
2816 | * This symbol defines the macro to be used in seeding the |
2817 | * random number generator (see Drand01). |
495c5fdc |
2818 | */ |
10cc9d2a |
2819 | /* RANDBITS: |
2820 | * This symbol indicates how many bits are produced by the |
2821 | * function used to generate normalized random numbers. |
2822 | * Values include 15, 16, 31, and 48. |
c287c78d |
2823 | */ |
10cc9d2a |
2824 | #define Drand01() $drand01 /**/ |
2825 | #define Rand_seed_t $randseedtype /**/ |
2826 | #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/ |
2827 | #define RANDBITS $randbits /**/ |
c287c78d |
2828 | |
10cc9d2a |
2829 | /* SELECT_MIN_BITS: |
2830 | * This symbol holds the minimum number of bits operated by select. |
2831 | * That is, if you do select(n, ...), how many bits at least will be |
2832 | * cleared in the masks if some activity is detected. Usually this |
2833 | * is either n or 32*ceil(n/32), especially many little-endians do |
2834 | * the latter. This is only useful if you have select(), naturally. |
1761cee5 |
2835 | */ |
10cc9d2a |
2836 | #define SELECT_MIN_BITS $selectminbits /**/ |
1761cee5 |
2837 | |
10cc9d2a |
2838 | /* Select_fd_set_t: |
2839 | * This symbol holds the type used for the 2nd, 3rd, and 4th |
2840 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET |
2841 | * is defined, and 'int *' otherwise. This is only useful if you |
2842 | * have select(), of course. |
1761cee5 |
2843 | */ |
10cc9d2a |
2844 | #define Select_fd_set_t $selecttype /**/ |
1761cee5 |
2845 | |
10cc9d2a |
2846 | /* SIG_NAME: |
2847 | * This symbol contains a list of signal names in order of |
2848 | * signal number. This is intended |
2849 | * to be used as a static array initialization, like this: |
2850 | * char *sig_name[] = { SIG_NAME }; |
2851 | * The signals in the list are separated with commas, and each signal |
2852 | * is surrounded by double quotes. There is no leading SIG in the signal |
2853 | * name, i.e. SIGQUIT is known as "QUIT". |
2854 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, |
2855 | * etc., where nn is the actual signal number (e.g. NUM37). |
2856 | * The signal number for sig_name[i] is stored in sig_num[i]. |
2857 | * The last element is 0 to terminate the list with a NULL. This |
2858 | * corresponds to the 0 at the end of the sig_num list. |
1761cee5 |
2859 | */ |
10cc9d2a |
2860 | /* SIG_NUM: |
2861 | * This symbol contains a list of signal numbers, in the same order as the |
2862 | * SIG_NAME list. It is suitable for static array initialization, as in: |
2863 | * int sig_num[] = { SIG_NUM }; |
2864 | * The signals in the list are separated with commas, and the indices |
2865 | * within that list and the SIG_NAME list match, so it's easy to compute |
2866 | * the signal name from a number or vice versa at the price of a small |
2867 | * dynamic linear lookup. |
2868 | * Duplicates are allowed, but are moved to the end of the list. |
2869 | * The signal number corresponding to sig_name[i] is sig_number[i]. |
2870 | * if (i < NSIG) then sig_number[i] == i. |
2871 | * The last element is 0, corresponding to the 0 at the end of |
2872 | * the sig_name list. |
1761cee5 |
2873 | */ |
10cc9d2a |
2874 | #define SIG_NAME $sig_name_init /**/ |
2875 | #define SIG_NUM $sig_num_init /**/ |
1761cee5 |
2876 | |
10cc9d2a |
2877 | /* SITEARCH: |
2878 | * This symbol contains the name of the private library for this package. |
2879 | * The library is private in the sense that it needn't be in anyone's |
2880 | * execution path, but it should be accessible by the world. The program |
2881 | * should be prepared to do ~ expansion. |
2882 | * The standard distribution will put nothing in this directory. |
2883 | * After perl has been installed, users may install their own local |
2884 | * architecture-dependent modules in this directory with |
2885 | * MakeMaker Makefile.PL |
2886 | * or equivalent. See INSTALL for details. |
1761cee5 |
2887 | */ |
10cc9d2a |
2888 | /* SITEARCH_EXP: |
2889 | * This symbol contains the ~name expanded version of SITEARCH, to be used |
2890 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1761cee5 |
2891 | */ |
a3540c92 |
2892 | #define SITEARCH "$sitearch" /**/ |
2893 | #define SITEARCH_EXP "$sitearchexp" /**/ |
1761cee5 |
2894 | |
10cc9d2a |
2895 | /* SITELIB: |
2896 | * This symbol contains the name of the private library for this package. |
2897 | * The library is private in the sense that it needn't be in anyone's |
2898 | * execution path, but it should be accessible by the world. The program |
2899 | * should be prepared to do ~ expansion. |
2900 | * The standard distribution will put nothing in this directory. |
2901 | * After perl has been installed, users may install their own local |
2902 | * architecture-independent modules in this directory with |
2903 | * MakeMaker Makefile.PL |
2904 | * or equivalent. See INSTALL for details. |
1761cee5 |
2905 | */ |
10cc9d2a |
2906 | /* SITELIB_EXP: |
2907 | * This symbol contains the ~name expanded version of SITELIB, to be used |
2908 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1761cee5 |
2909 | */ |
526fdc24 |
2910 | /* SITELIB_STEM: |
2911 | * This define is SITELIB_EXP with any trailing version-specific component |
2912 | * removed. The elements in inc_version_list (inc_version_list.U) can |
2913 | * be tacked onto this variable to generate a list of directories to search. |
2914 | */ |
10cc9d2a |
2915 | #define SITELIB "$sitelib" /**/ |
2916 | #define SITELIB_EXP "$sitelibexp" /**/ |
526fdc24 |
2917 | #define SITELIB_STEM "$sitelib_stem" /**/ |
1761cee5 |
2918 | |
f78bfc9c |
2919 | /* Size_t_size: |
2920 | * This symbol holds the size of a Size_t in bytes. |
2921 | */ |
2922 | #define Size_t_size $sizesize /* */ |
2923 | |
10cc9d2a |
2924 | /* Size_t: |
2925 | * This symbol holds the type used to declare length parameters |
2926 | * for string functions. It is usually size_t, but may be |
2927 | * unsigned long, int, etc. It may be necessary to include |
2928 | * <sys/types.h> to get any typedef'ed information. |
1761cee5 |
2929 | */ |
10cc9d2a |
2930 | #define Size_t $sizetype /* length paramater for string functions */ |
1761cee5 |
2931 | |
a3540c92 |
2932 | /* Sock_size_t: |
2933 | * This symbol holds the type used for the size argument of |
2934 | * various socket calls (just the base type, not the pointer-to). |
2935 | */ |
2936 | #define Sock_size_t $socksizetype /**/ |
2937 | |
10cc9d2a |
2938 | /* SSize_t: |
2939 | * This symbol holds the type used by functions that return |
2940 | * a count of bytes or an error condition. It must be a signed type. |
2941 | * It is usually ssize_t, but may be long or int, etc. |
2942 | * It may be necessary to include <sys/types.h> or <unistd.h> |
2943 | * to get any typedef'ed information. |
2944 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). |
1761cee5 |
2945 | */ |
10cc9d2a |
2946 | #define SSize_t $ssizetype /* signed count of bytes */ |
1761cee5 |
2947 | |
10cc9d2a |
2948 | /* STARTPERL: |
2949 | * This variable contains the string to put in front of a perl |
2950 | * script to make sure (one hopes) that it runs with perl and not |
2951 | * some shell. |
1761cee5 |
2952 | */ |
10cc9d2a |
2953 | #define STARTPERL "$startperl" /**/ |
2954 | |
2955 | /* HAS_STDIO_STREAM_ARRAY: |
2956 | * This symbol, if defined, tells that there is an array |
2957 | * holding the stdio streams. |
1761cee5 |
2958 | */ |
10cc9d2a |
2959 | /* STDIO_STREAM_ARRAY: |
2960 | * This symbol tells the name of the array holding the stdio streams. |
2961 | * Usual values include _iob, __iob, and __sF. |
1761cee5 |
2962 | */ |
10cc9d2a |
2963 | #$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/ |
2964 | #define STDIO_STREAM_ARRAY $stdio_stream_array |
1761cee5 |
2965 | |
10cc9d2a |
2966 | /* Uid_t_f: |
2967 | * This symbol defines the format string used for printing a Uid_t. |
1761cee5 |
2968 | */ |
10cc9d2a |
2969 | #define Uid_t_f $uidformat /**/ |
1761cee5 |
2970 | |
23dcd6c8 |
2971 | /* Uid_t_sign: |
2972 | * This symbol holds the signedess of a Uid_t. |
2973 | * 1 for unsigned, -1 for signed. |
2974 | */ |
2975 | #define Uid_t_sign $uidsign /* UID sign */ |
2976 | |
10cc9d2a |
2977 | /* Uid_t_size: |
2978 | * This symbol holds the size of a Uid_t in bytes. |
c287c78d |
2979 | */ |
10cc9d2a |
2980 | #define Uid_t_size $uidsize /* UID size */ |
1761cee5 |
2981 | |
10cc9d2a |
2982 | /* Uid_t: |
2983 | * This symbol holds the type used to declare user ids in the kernel. |
2984 | * It can be int, ushort, uid_t, etc... It may be necessary to include |
2985 | * <sys/types.h> to get any typedef'ed information. |
495c5fdc |
2986 | */ |
10cc9d2a |
2987 | #define Uid_t $uidtype /* UID type */ |
2988 | |
2989 | /* USE_64_BIT_INT: |
2990 | * This symbol, if defined, indicates that 64-bit integers should |
2991 | * be used when available. If not defined, the native integers |
2992 | * will be employed (be they 32 or 64 bits). The minimal possible |
2993 | * 64-bitness is used, just enough to get 64-bit integers into Perl. |
2994 | * This may mean using for example "long longs", while your memory |
2995 | * may still be limited to 2 gigabytes. |
495c5fdc |
2996 | */ |
10cc9d2a |
2997 | /* USE_64_BIT_ALL: |
2998 | * This symbol, if defined, indicates that 64-bit integers should |
2999 | * be used when available. If not defined, the native integers |
3000 | * will be used (be they 32 or 64 bits). The maximal possible |
3001 | * 64-bitness is employed: LP64 or ILP64, meaning that you will |
3002 | * be able to use more than 2 gigabytes of memory. This mode is |
3003 | * even more binary incompatible than USE_64_BIT_INT. You may not |
3004 | * be able to run the resulting executable in a 32-bit CPU at all or |
3005 | * you may need at least to reboot your OS to 64-bit mode. |
3006 | */ |
3007 | #ifndef USE_64_BIT_INT |
3008 | #$use64bitint USE_64_BIT_INT /**/ |
c287c78d |
3009 | #endif |
495c5fdc |
3010 | |
10cc9d2a |
3011 | #ifndef USE_64_BIT_ALL |
3012 | #$use64bitall USE_64_BIT_ALL /**/ |
3013 | #endif |
3014 | |
3015 | /* USE_LARGE_FILES: |
3016 | * This symbol, if defined, indicates that large file support |
3017 | * should be used when available. |
495c5fdc |
3018 | */ |
10cc9d2a |
3019 | #ifndef USE_LARGE_FILES |
3020 | #$uselargefiles USE_LARGE_FILES /**/ |
3021 | #endif |
495c5fdc |
3022 | |
10cc9d2a |
3023 | /* USE_LONG_DOUBLE: |
3024 | * This symbol, if defined, indicates that long doubles should |
3025 | * be used when available. |
495c5fdc |
3026 | */ |
10cc9d2a |
3027 | #ifndef USE_LONG_DOUBLE |
3028 | #$uselongdouble USE_LONG_DOUBLE /**/ |
3029 | #endif |
1761cee5 |
3030 | |
10cc9d2a |
3031 | /* USE_MORE_BITS: |
3032 | * This symbol, if defined, indicates that 64-bit interfaces and |
3033 | * long doubles should be used when available. |
1761cee5 |
3034 | */ |
10cc9d2a |
3035 | #ifndef USE_MORE_BITS |
3036 | #$usemorebits USE_MORE_BITS /**/ |
3037 | #endif |
1761cee5 |
3038 | |
10cc9d2a |
3039 | /* MULTIPLICITY: |
3040 | * This symbol, if defined, indicates that Perl should |
3041 | * be built to use multiplicity. |
1761cee5 |
3042 | */ |
10cc9d2a |
3043 | #ifndef MULTIPLICITY |
3044 | #$usemultiplicity MULTIPLICITY /**/ |
3045 | #endif |
1761cee5 |
3046 | |
10cc9d2a |
3047 | /* USE_PERLIO: |
3048 | * This symbol, if defined, indicates that the PerlIO abstraction should |
3049 | * be used throughout. If not defined, stdio should be |
3050 | * used in a fully backward compatible manner. |
1761cee5 |
3051 | */ |
10cc9d2a |
3052 | #ifndef USE_PERLIO |
3053 | #$useperlio USE_PERLIO /**/ |
3054 | #endif |
1761cee5 |
3055 | |
10cc9d2a |
3056 | /* USE_SOCKS: |
3057 | * This symbol, if defined, indicates that Perl should |
3058 | * be built to use socks. |
1761cee5 |
3059 | */ |
10cc9d2a |
3060 | #ifndef USE_SOCKS |
3061 | #$usesocks USE_SOCKS /**/ |
3062 | #endif |
1761cee5 |
3063 | |
10cc9d2a |
3064 | /* USE_ITHREADS: |
3065 | * This symbol, if defined, indicates that Perl should be built to |
3066 | * use the interpreter-based threading implementation. |
1761cee5 |
3067 | */ |
10cc9d2a |
3068 | /* USE_5005THREADS: |
3069 | * This symbol, if defined, indicates that Perl should be built to |
3070 | * use the 5.005-based threading implementation. |
1761cee5 |
3071 | */ |
10cc9d2a |
3072 | /* OLD_PTHREADS_API: |
3073 | * This symbol, if defined, indicates that Perl should |
3074 | * be built to use the old draft POSIX threads API. |
1761cee5 |
3075 | */ |
10cc9d2a |
3076 | #$use5005threads USE_5005THREADS /**/ |
3077 | #$useithreads USE_ITHREADS /**/ |
3078 | #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) |
3079 | #define USE_THREADS /* until src is revised*/ |
3080 | #endif |
3081 | #$d_oldpthreads OLD_PTHREADS_API /**/ |
1761cee5 |
3082 | |
a3540c92 |
3083 | /* PERL_VENDORARCH: |
3084 | * If defined, this symbol contains the name of a private library. |
3085 | * The library is private in the sense that it needn't be in anyone's |
3086 | * execution path, but it should be accessible by the world. |
3087 | * It may have a ~ on the front. |
3088 | * The standard distribution will put nothing in this directory. |
3089 | * Vendors who distribute perl may wish to place their own |
3090 | * architecture-dependent modules and extensions in this directory with |
3091 | * MakeMaker Makefile.PL INSTALLDIRS=vendor |
3092 | * or equivalent. See INSTALL for details. |
3093 | */ |
526fdc24 |
3094 | /* PERL_VENDORARCH_EXP: |
3095 | * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used |
3096 | * in programs that are not prepared to deal with ~ expansion at run-time. |
3097 | */ |
a3540c92 |
3098 | #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ |
526fdc24 |
3099 | #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ |
3100 | |
10cc9d2a |
3101 | /* PERL_VENDORLIB_EXP: |
3102 | * This symbol contains the ~name expanded version of VENDORLIB, to be used |
3103 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1761cee5 |
3104 | */ |
526fdc24 |
3105 | /* PERL_VENDORLIB_STEM: |
3106 | * This define is PERL_VENDORLIB_EXP with any trailing version-specific component |
3107 | * removed. The elements in inc_version_list (inc_version_list.U) can |
3108 | * be tacked onto this variable to generate a list of directories to search. |
3109 | */ |
10cc9d2a |
3110 | #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/ |
526fdc24 |
3111 | #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/ |
1761cee5 |
3112 | |
10cc9d2a |
3113 | /* VOIDFLAGS: |
3114 | * This symbol indicates how much support of the void type is given by this |
3115 | * compiler. What various bits mean: |
3116 | * |
3117 | * 1 = supports declaration of void |
3118 | * 2 = supports arrays of pointers to functions returning void |
3119 | * 4 = supports comparisons between pointers to void functions and |
3120 | * addresses of void functions |
3121 | * 8 = suports declaration of generic void pointers |
3122 | * |
3123 | * The package designer should define VOIDUSED to indicate the requirements |
3124 | * of the package. This can be done either by #defining VOIDUSED before |
3125 | * including config.h, or by defining defvoidused in Myinit.U. If the |
3126 | * latter approach is taken, only those flags will be tested. If the |
3127 | * level of void support necessary is not present, defines void to int. |
1761cee5 |
3128 | */ |
10cc9d2a |
3129 | #ifndef VOIDUSED |
3130 | #define VOIDUSED $defvoidused |
3131 | #endif |
3132 | #define VOIDFLAGS $voidflags |
3133 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED |
3134 | #define void int /* is void to be avoided? */ |
3135 | #define M_VOID /* Xenix strikes again */ |
3136 | #endif |
1761cee5 |
3137 | |
10cc9d2a |
3138 | /* PERL_XS_APIVERSION: |
3139 | * This variable contains the version of the oldest perl binary |
3140 | * compatible with the present perl. perl.c:incpush() and |
3141 | * lib/lib.pm will automatically search in $sitearch for older |
3142 | * directories across major versions back to xs_apiversion. |
3143 | * This is only useful if you have a perl library directory tree |
3144 | * structured like the default one. |
3145 | * See INSTALL for how this works. |
3146 | * The versioned site_perl directory was introduced in 5.005, |
3147 | * so that is the lowest possible value. |
3148 | * Since this can depend on compile time options (such as |
3149 | * bincompat) it is set by Configure. Other non-default sources |
3150 | * of potential incompatibility, such as multiplicity, threads, |
3151 | * debugging, 64bits, sfio, etc., are not checked for currently, |
3152 | * though in principle we could go snooping around in old |
3153 | * Config.pm files. |
1761cee5 |
3154 | */ |
10cc9d2a |
3155 | /* PERL_PM_APIVERSION: |
3156 | * This variable contains the version of the oldest perl |
3157 | * compatible with the present perl. (That is, pure perl modules |
3158 | * written for pm_apiversion will still work for the current |
3159 | * version). perl.c:incpush() and lib/lib.pm will automatically |
3160 | * search in $sitelib for older directories across major versions |
3161 | * back to pm_apiversion. This is only useful if you have a perl |
3162 | * library directory tree structured like the default one. The |
3163 | * versioned site_perl library was introduced in 5.005, so that's |
3164 | * the default setting for this variable. It's hard to imagine |
3165 | * it changing before Perl6. It is included here for symmetry |
3166 | * with xs_apiveprsion -- the searching algorithms will |
3167 | * (presumably) be similar. |
3168 | * See the INSTALL file for how this works. |
3169 | */ |
3170 | #define PERL_XS_APIVERSION "$xs_apiversion" |
3171 | #define PERL_PM_APIVERSION "$pm_apiversion" |
1761cee5 |
3172 | |
6f748670 |
3173 | /* HAS_GETPGRP: |
3174 | * This symbol, if defined, indicates that the getpgrp routine is |
3175 | * available to get the current process group. |
3176 | */ |
3177 | /* USE_BSD_GETPGRP: |
3178 | * This symbol, if defined, indicates that getpgrp needs one |
3179 | * arguments whereas USG one needs none. |
3180 | */ |
3181 | #$d_getpgrp HAS_GETPGRP /**/ |
3182 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ |
3183 | |
3184 | /* HAS_SETPGRP: |
3185 | * This symbol, if defined, indicates that the setpgrp routine is |
3186 | * available to set the current process group. |
3187 | */ |
3188 | /* USE_BSD_SETPGRP: |
3189 | * This symbol, if defined, indicates that setpgrp needs two |
3190 | * arguments whereas USG one needs none. See also HAS_SETPGID |
3191 | * for a POSIX interface. |
3192 | */ |
3193 | #$d_setpgrp HAS_SETPGRP /**/ |
3194 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ |
3195 | |
495c5fdc |
3196 | #endif |
3197 | !GROK!THIS! |