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