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