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