This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 4.0 patch 22: patch #20, continued
[perl5.git] / config_h.SH
CommitLineData
fe14fcc3 1: make config.h.SH
8d063cd8
LW
2case $CONFIG in
3'')
4 if test ! -f config.sh; then
5 ln ../config.sh . || \
6 ln ../../config.sh . || \
7 ln ../../../config.sh . || \
8 (echo "Can't find config.sh."; exit 1)
9 echo "Using config.sh from above..."
fe14fcc3 10 fi 2>/dev/null
378cc40b 11 . ./config.sh
8d063cd8
LW
12 ;;
13esac
14echo "Extracting config.h (with variable substitutions)"
13281fa4 15sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
fe14fcc3
LW
16#ifndef config_h
17#define config_h
8d063cd8
LW
18/* config.h
19 * This file was produced by running the config.h.SH script, which
20 * gets its values from config.sh, which is generally produced by
21 * running Configure.
22 *
23 * Feel free to modify any of this as the need arises. Note, however,
24 * that running config.h.SH again will wipe out any changes you've made.
25 * For a more permanent change edit config.sh and rerun config.h.SH.
26 */
db4e6270 27 /*SUPPRESS 460*/
8d063cd8
LW
28
29
fe14fcc3 30/* EUNICE
8d063cd8
LW
31 * This symbol, if defined, indicates that the program is being compiled
32 * under the EUNICE package under VMS. The program will need to handle
33 * things like files that don't go away the first time you unlink them,
34 * due to version numbering. It will also need to compensate for lack
35 * of a respectable link() command.
36 */
fe14fcc3 37/* VMS
8d063cd8
LW
38 * This symbol, if defined, indicates that the program is running under
39 * VMS. It is currently only set in conjunction with the EUNICE symbol.
40 */
41#$d_eunice EUNICE /**/
42#$d_eunice VMS /**/
43
fe14fcc3 44/* ALIGNBYTES
7e1cf235
LW
45 * This symbol contains the number of bytes required to align a double.
46 * Usual values are 2, 4, and 8.
47 */
48#define ALIGNBYTES $alignbytes /**/
49
fe14fcc3 50/* BIN
a687059c 51 * This symbol holds the name of the directory in which the user wants
fe14fcc3 52 * to keep publicly executable images for the package in question. It
a687059c
LW
53 * is most often a local directory such as /usr/local/bin.
54 */
55#define BIN "$bin" /**/
56
fe14fcc3 57/* BYTEORDER
a687059c 58 * This symbol contains an encoding of the order of bytes in a long.
db4e6270 59 * Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
a687059c 60 */
0d3e774c 61#define BYTEORDER 0x$byteorder /**/
a687059c 62
fe14fcc3 63/* CPPSTDIN
36ce8bec
DFDL
64 * This symbol contains the first part of the string which will invoke
65 * the C preprocessor on the standard input and produce to standard
66 * output. Typical value of "cc -E" or "/lib/cpp".
67 */
fe14fcc3 68/* CPPMINUS
36ce8bec
DFDL
69 * This symbol contains the second part of the string which will invoke
70 * the C preprocessor on the standard input and produce to standard
378cc40b 71 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec
DFDL
72 * to specify standard input, otherwise the value is "".
73 */
378cc40b 74#define CPPSTDIN "$cppstdin"
36ce8bec
DFDL
75#define CPPMINUS "$cppminus"
76
fe14fcc3 77/* HAS_BCMP
a687059c
LW
78 * This symbol, if defined, indicates that the bcmp routine is available
79 * to compare blocks of memory. If undefined, use memcmp. If that's
80 * not available, roll your own.
81 */
fe14fcc3 82#$d_bcmp HAS_BCMP /**/
a687059c 83
fe14fcc3 84/* HAS_BCOPY
c51b80d1
LW
85 * This symbol, if defined, indicates that the bcopy routine is available
86 * to copy blocks of memory. Otherwise you should probably use memcpy().
87 */
fe14fcc3 88#$d_bcopy HAS_BCOPY /**/
c51b80d1 89
fe14fcc3 90/* HAS_BZERO
0d3e774c 91 * This symbol, if defined, indicates that the bzero routine is available
fe14fcc3
LW
92 * to zero blocks of memory. Otherwise you should probably use memset()
93 * or roll your own.
0d3e774c 94 */
fe14fcc3 95#$d_bzero HAS_BZERO /**/
0d3e774c 96
fe14fcc3 97/* CASTNEGFLOAT
b1248f16 98 * This symbol, if defined, indicates that this C compiler knows how to
fe14fcc3
LW
99 * cast negative or large floating point numbers to unsigned longs, ints
100 * and shorts.
b1248f16 101 */
fe14fcc3 102/* CASTFLAGS
7e1cf235
LW
103 * This symbol contains flags that say what difficulties the compiler
104 * has casting odd floating values to unsigned long:
105 * 1 = couldn't cast < 0
106 * 2 = couldn't cast >= 0x80000000
107 */
b1248f16 108#$d_castneg CASTNEGFLOAT /**/
7e1cf235 109#define CASTFLAGS $castflags /**/
b1248f16 110
fe14fcc3 111/* CHARSPRINTF
8d063cd8
LW
112 * This symbol is defined if this system declares "char *sprintf()" in
113 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
114 * is up to the package author to declare sprintf correctly based on the
115 * symbol.
116 */
117#$d_charsprf CHARSPRINTF /**/
118
fe14fcc3 119/* HAS_CHSIZE
87250799
LW
120 * This symbol, if defined, indicates that the chsize routine is available
121 * to truncate files. You might need a -lx to get this routine.
122 */
fe14fcc3 123#$d_chsize HAS_CHSIZE /**/
87250799 124
fe14fcc3 125/* HAS_CRYPT
2e1b3b7e
KK
126 * This symbol, if defined, indicates that the crypt routine is available
127 * to encrypt passwords and the like.
128 */
fe14fcc3 129#$d_crypt HAS_CRYPT /**/
2e1b3b7e 130
fe14fcc3 131/* CSH
bf38876a
LW
132 * This symbol, if defined, indicates that the C-shell exists.
133 * If defined, contains the full pathname of csh.
134 */
135#$d_csh CSH "$csh" /**/
136
fe14fcc3 137/* DOSUID
13281fa4
LW
138 * This symbol, if defined, indicates that the C program should
139 * check the script that it is executing for setuid/setgid bits, and
140 * attempt to emulate setuid/setgid on systems that have disabled
141 * setuid #! scripts because the kernel can't do it securely.
142 * It is up to the package designer to make sure that this emulation
143 * is done securely. Among other things, it should do an fstat on
144 * the script it just opened to make sure it really is a setuid/setgid
145 * script, it should make sure the arguments passed correspond exactly
146 * to the argument on the #! line, and it should not trust any
147 * subprocesses to which it must pass the filename rather than the
148 * file descriptor of the script to be executed.
149 */
150#$d_dosuid DOSUID /**/
151
fe14fcc3 152/* HAS_DUP2
a687059c
LW
153 * This symbol, if defined, indicates that the dup2 routine is available
154 * to dup file descriptors. Otherwise you should use dup().
155 */
fe14fcc3 156#$d_dup2 HAS_DUP2 /**/
a687059c 157
fe14fcc3 158/* HAS_FCHMOD
378cc40b
LW
159 * This symbol, if defined, indicates that the fchmod routine is available
160 * to change mode of opened files. If unavailable, use chmod().
161 */
fe14fcc3 162#$d_fchmod HAS_FCHMOD /**/
378cc40b 163
fe14fcc3 164/* HAS_FCHOWN
378cc40b
LW
165 * This symbol, if defined, indicates that the fchown routine is available
166 * to change ownership of opened files. If unavailable, use chown().
167 */
fe14fcc3 168#$d_fchown HAS_FCHOWN /**/
378cc40b 169
fe14fcc3
LW
170/* HAS_FCNTL
171 * This symbol, if defined, indicates to the C program that
172 * the fcntl() function exists.
a687059c 173 */
fe14fcc3 174#$d_fcntl HAS_FCNTL /**/
a687059c 175
fe14fcc3 176/* FLEXFILENAMES
7e1cf235
LW
177 * This symbol, if defined, indicates that the system supports filenames
178 * longer than 14 characters.
179 */
180#$d_flexfnam FLEXFILENAMES /**/
181
fe14fcc3 182/* HAS_FLOCK
a687059c
LW
183 * This symbol, if defined, indicates that the flock() routine is
184 * available to do file locking.
185 */
fe14fcc3 186#$d_flock HAS_FLOCK /**/
a687059c 187
fe14fcc3 188/* HAS_GETGROUPS
378cc40b
LW
189 * This symbol, if defined, indicates that the getgroups() routine is
190 * available to get the list of process groups. If unavailable, multiple
191 * groups are probably not supported.
192 */
fe14fcc3 193#$d_getgrps HAS_GETGROUPS /**/
378cc40b 194
fe14fcc3 195/* HAS_GETHOSTENT
a687059c
LW
196 * This symbol, if defined, indicates that the gethostent() routine is
197 * available to lookup host names in some data base or other.
198 */
fe14fcc3 199#$d_gethent HAS_GETHOSTENT /**/
a687059c 200
fe14fcc3 201/* HAS_GETPGRP
a687059c
LW
202 * This symbol, if defined, indicates that the getpgrp() routine is
203 * available to get the current process group.
204 */
fe14fcc3 205#$d_getpgrp HAS_GETPGRP /**/
a687059c 206
fe14fcc3 207/* HAS_GETPGRP2
d8f2e4cc
LW
208 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
209 * routine is available to get the current process group.
210 */
fe14fcc3 211#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 212
fe14fcc3 213/* HAS_GETPRIORITY
a687059c
LW
214 * This symbol, if defined, indicates that the getpriority() routine is
215 * available to get a process's priority.
216 */
fe14fcc3 217#$d_getprior HAS_GETPRIORITY /**/
a687059c 218
fe14fcc3 219/* HAS_HTONS
a687059c
LW
220 * This symbol, if defined, indicates that the htons routine (and friends)
221 * are available to do network order byte swapping.
222 */
fe14fcc3 223/* HAS_HTONL
a687059c
LW
224 * This symbol, if defined, indicates that the htonl routine (and friends)
225 * are available to do network order byte swapping.
226 */
fe14fcc3 227/* HAS_NTOHS
a687059c
LW
228 * This symbol, if defined, indicates that the ntohs routine (and friends)
229 * are available to do network order byte swapping.
230 */
fe14fcc3 231/* HAS_NTOHL
a687059c
LW
232 * This symbol, if defined, indicates that the ntohl routine (and friends)
233 * are available to do network order byte swapping.
234 */
fe14fcc3
LW
235#$d_htonl HAS_HTONS /**/
236#$d_htonl HAS_HTONL /**/
237#$d_htonl HAS_NTOHS /**/
238#$d_htonl HAS_NTOHL /**/
a687059c 239
fe14fcc3 240/* index
8d063cd8
LW
241 * This preprocessor symbol is defined, along with rindex, if the system
242 * uses the strchr and strrchr routines instead.
243 */
fe14fcc3 244/* rindex
8d063cd8
LW
245 * This preprocessor symbol is defined, along with index, if the system
246 * uses the strchr and strrchr routines instead.
247 */
248#$d_index index strchr /* cultural */
249#$d_index rindex strrchr /* differences? */
250
fe14fcc3 251/* HAS_KILLPG
378cc40b
LW
252 * This symbol, if defined, indicates that the killpg routine is available
253 * to kill process groups. If unavailable, you probably should use kill
254 * with a negative process number.
255 */
fe14fcc3 256#$d_killpg HAS_KILLPG /**/
378cc40b 257
fe14fcc3 258/* HAS_LSTAT
0d3e774c 259 * This symbol, if defined, indicates that the lstat() routine is
fe14fcc3 260 * available to stat symbolic links.
0d3e774c 261 */
fe14fcc3 262#$d_lstat HAS_LSTAT /**/
0d3e774c 263
fe14fcc3 264/* HAS_MEMCMP
a687059c
LW
265 * This symbol, if defined, indicates that the memcmp routine is available
266 * to compare blocks of memory. If undefined, roll your own.
267 */
fe14fcc3 268#$d_memcmp HAS_MEMCMP /**/
a687059c 269
fe14fcc3 270/* HAS_MEMCPY
378cc40b
LW
271 * This symbol, if defined, indicates that the memcpy routine is available
272 * to copy blocks of memory. Otherwise you should probably use bcopy().
273 * If neither is defined, roll your own.
274 */
fe14fcc3 275#$d_memcpy HAS_MEMCPY /**/
378cc40b 276
fe14fcc3 277/* HAS_MKDIR
a687059c
LW
278 * This symbol, if defined, indicates that the mkdir routine is available
279 * to create directories. Otherwise you should fork off a new process to
280 * exec /bin/mkdir.
281 */
fe14fcc3
LW
282#$d_mkdir HAS_MKDIR /**/
283
284/* HAS_MSG
285 * This symbol, if defined, indicates that the entire msg*(2) library is
286 * supported.
287 */
288#$d_msg HAS_MSG /**/
289
290/* HAS_MSGCTL
291 * This symbol, if defined, indicates that the msgctl() routine is
292 * available to stat symbolic links.
293 */
294#$d_msgctl HAS_MSGCTL /**/
a687059c 295
fe14fcc3
LW
296/* HAS_MSGGET
297 * This symbol, if defined, indicates that the msgget() routine is
298 * available to stat symbolic links.
299 */
300#$d_msgget HAS_MSGGET /**/
301
302/* HAS_MSGRCV
303 * This symbol, if defined, indicates that the msgrcv() routine is
304 * available to stat symbolic links.
305 */
306#$d_msgrcv HAS_MSGRCV /**/
307
308/* HAS_MSGSND
309 * This symbol, if defined, indicates that the msgsnd() routine is
310 * available to stat symbolic links.
311 */
312#$d_msgsnd HAS_MSGSND /**/
313
314/* HAS_NDBM
a687059c
LW
315 * This symbol, if defined, indicates that ndbm.h exists and should
316 * be included.
317 */
fe14fcc3 318#$d_ndbm HAS_NDBM /**/
a687059c 319
fe14fcc3 320/* HAS_ODBM
a687059c
LW
321 * This symbol, if defined, indicates that dbm.h exists and should
322 * be included.
323 */
fe14fcc3 324#$d_odbm HAS_ODBM /**/
a687059c 325
fe14fcc3
LW
326/* HAS_OPEN3
327 * This manifest constant lets the C program know that the three
328 * argument form of open(2) is available.
329 */
330#$d_open3 HAS_OPEN3 /**/
331
332/* HAS_READDIR
a687059c 333 * This symbol, if defined, indicates that the readdir routine is available
fe14fcc3 334 * from the C library to read directories.
a687059c 335 */
fe14fcc3 336#$d_readdir HAS_READDIR /**/
a687059c 337
fe14fcc3 338/* HAS_RENAME
378cc40b
LW
339 * This symbol, if defined, indicates that the rename routine is available
340 * to rename files. Otherwise you should do the unlink(), link(), unlink()
341 * trick.
342 */
fe14fcc3 343#$d_rename HAS_RENAME /**/
378cc40b 344
fe14fcc3 345/* HAS_RMDIR
a687059c
LW
346 * This symbol, if defined, indicates that the rmdir routine is available
347 * to remove directories. Otherwise you should fork off a new process to
348 * exec /bin/rmdir.
349 */
fe14fcc3
LW
350#$d_rmdir HAS_RMDIR /**/
351
352/* HAS_SELECT
353 * This symbol, if defined, indicates that the select() subroutine
354 * exists.
355 */
356#$d_select HAS_SELECT /**/
a687059c 357
fe14fcc3
LW
358/* HAS_SEM
359 * This symbol, if defined, indicates that the entire sem*(2) library is
360 * supported.
361 */
362#$d_sem HAS_SEM /**/
363
364/* HAS_SEMCTL
365 * This symbol, if defined, indicates that the semctl() routine is
366 * available to stat symbolic links.
87250799 367 */
fe14fcc3 368#$d_semctl HAS_SEMCTL /**/
87250799 369
fe14fcc3
LW
370/* HAS_SEMGET
371 * This symbol, if defined, indicates that the semget() routine is
372 * available to stat symbolic links.
373 */
374#$d_semget HAS_SEMGET /**/
375
376/* HAS_SEMOP
377 * This symbol, if defined, indicates that the semop() routine is
378 * available to stat symbolic links.
379 */
380#$d_semop HAS_SEMOP /**/
381
382/* HAS_SETEGID
378cc40b
LW
383 * This symbol, if defined, indicates that the setegid routine is available
384 * to change the effective gid of the current program.
385 */
fe14fcc3 386#$d_setegid HAS_SETEGID /**/
378cc40b 387
fe14fcc3 388/* HAS_SETEUID
378cc40b
LW
389 * This symbol, if defined, indicates that the seteuid routine is available
390 * to change the effective uid of the current program.
391 */
fe14fcc3 392#$d_seteuid HAS_SETEUID /**/
378cc40b 393
fe14fcc3 394/* HAS_SETPGRP
a687059c
LW
395 * This symbol, if defined, indicates that the setpgrp() routine is
396 * available to set the current process group.
397 */
fe14fcc3 398#$d_setpgrp HAS_SETPGRP /**/
a687059c 399
fe14fcc3 400/* HAS_SETPGRP2
d8f2e4cc
LW
401 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
402 * routine is available to set the current process group.
403 */
fe14fcc3 404#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 405
fe14fcc3 406/* HAS_SETPRIORITY
a687059c
LW
407 * This symbol, if defined, indicates that the setpriority() routine is
408 * available to set a process's priority.
409 */
fe14fcc3 410#$d_setprior HAS_SETPRIORITY /**/
a687059c 411
fe14fcc3 412/* HAS_SETREGID
a687059c
LW
413 * This symbol, if defined, indicates that the setregid routine is
414 * available to change the real and effective gid of the current program.
415 */
fe14fcc3 416/* HAS_SETRESGID
a687059c
LW
417 * This symbol, if defined, indicates that the setresgid routine is
418 * available to change the real, effective and saved gid of the current
419 * program.
420 */
fe14fcc3
LW
421#$d_setregid HAS_SETREGID /**/
422#$d_setresgid HAS_SETRESGID /**/
a687059c 423
fe14fcc3 424/* HAS_SETREUID
a687059c
LW
425 * This symbol, if defined, indicates that the setreuid routine is
426 * available to change the real and effective uid of the current program.
427 */
fe14fcc3 428/* HAS_SETRESUID
a687059c
LW
429 * This symbol, if defined, indicates that the setresuid routine is
430 * available to change the real, effective and saved uid of the current
431 * program.
432 */
fe14fcc3
LW
433#$d_setreuid HAS_SETREUID /**/
434#$d_setresuid HAS_SETRESUID /**/
a687059c 435
fe14fcc3 436/* HAS_SETRGID
378cc40b
LW
437 * This symbol, if defined, indicates that the setrgid routine is available
438 * to change the real gid of the current program.
439 */
fe14fcc3 440#$d_setrgid HAS_SETRGID /**/
378cc40b 441
fe14fcc3 442/* HAS_SETRUID
378cc40b
LW
443 * This symbol, if defined, indicates that the setruid routine is available
444 * to change the real uid of the current program.
445 */
fe14fcc3
LW
446#$d_setruid HAS_SETRUID /**/
447
448/* HAS_SHM
449 * This symbol, if defined, indicates that the entire shm*(2) library is
450 * supported.
451 */
452#$d_shm HAS_SHM /**/
453
454/* HAS_SHMAT
455 * This symbol, if defined, indicates that the shmat() routine is
456 * available to stat symbolic links.
457 */
2b317908
LW
458/* VOID_SHMAT
459 * This symbol, if defined, indicates that the shmat() routine
460 * returns a pointer of type void*.
461 */
fe14fcc3
LW
462#$d_shmat HAS_SHMAT /**/
463
2b317908
LW
464#$d_voidshmat VOIDSHMAT /**/
465
fe14fcc3
LW
466/* HAS_SHMCTL
467 * This symbol, if defined, indicates that the shmctl() routine is
468 * available to stat symbolic links.
469 */
470#$d_shmctl HAS_SHMCTL /**/
378cc40b 471
fe14fcc3
LW
472/* HAS_SHMDT
473 * This symbol, if defined, indicates that the shmdt() routine is
474 * available to stat symbolic links.
475 */
476#$d_shmdt HAS_SHMDT /**/
477
478/* HAS_SHMGET
479 * This symbol, if defined, indicates that the shmget() routine is
480 * available to stat symbolic links.
481 */
482#$d_shmget HAS_SHMGET /**/
483
484/* HAS_SOCKET
a687059c
LW
485 * This symbol, if defined, indicates that the BSD socket interface is
486 * supported.
487 */
fe14fcc3 488/* HAS_SOCKETPAIR
a687059c
LW
489 * This symbol, if defined, indicates that the BSD socketpair call is
490 * supported.
491 */
fe14fcc3 492/* OLDSOCKET
a687059c
LW
493 * This symbol, if defined, indicates that the 4.1c BSD socket interface
494 * is supported instead of the 4.2/4.3 BSD socket interface.
495 */
fe14fcc3 496#$d_socket HAS_SOCKET /**/
a687059c 497
fe14fcc3 498#$d_sockpair HAS_SOCKETPAIR /**/
a687059c
LW
499
500#$d_oldsock OLDSOCKET /**/
501
fe14fcc3 502/* STATBLOCKS
c51b80d1
LW
503 * This symbol is defined if this system has a stat structure declaring
504 * st_blksize and st_blocks.
505 */
506#$d_statblks STATBLOCKS /**/
507
fe14fcc3 508/* STDSTDIO
36ce8bec
DFDL
509 * This symbol is defined if this system has a FILE structure declaring
510 * _ptr and _cnt in stdio.h.
511 */
512#$d_stdstdio STDSTDIO /**/
513
fe14fcc3 514/* STRUCTCOPY
8d063cd8
LW
515 * This symbol, if defined, indicates that this C compiler knows how
516 * to copy structures. If undefined, you'll need to use a block copy
517 * routine of some sort instead.
518 */
519#$d_strctcpy STRUCTCOPY /**/
520
fe14fcc3 521/* HAS_STRERROR
d8f2e4cc
LW
522 * This symbol, if defined, indicates that the strerror() routine is
523 * available to translate error numbers to strings.
524 */
fe14fcc3 525#$d_strerror HAS_STRERROR /**/
d8f2e4cc 526
fe14fcc3 527/* HAS_SYMLINK
2e1b3b7e
KK
528 * This symbol, if defined, indicates that the symlink routine is available
529 * to create symbolic links.
530 */
fe14fcc3 531#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 532
fe14fcc3 533/* HAS_SYSCALL
a687059c
LW
534 * This symbol, if defined, indicates that the syscall routine is available
535 * to call arbitrary system calls. If undefined, that's tough.
536 */
fe14fcc3 537#$d_syscall HAS_SYSCALL /**/
e5d73d77 538
fe14fcc3 539/* HAS_TRUNCATE
87250799
LW
540 * This symbol, if defined, indicates that the truncate routine is
541 * available to truncate files.
542 */
fe14fcc3 543#$d_truncate HAS_TRUNCATE /**/
87250799 544
fe14fcc3 545/* HAS_VFORK
03a14243 546 * This symbol, if defined, indicates that vfork() exists.
8d063cd8 547 */
fe14fcc3 548#$d_vfork HAS_VFORK /**/
8d063cd8 549
fe14fcc3 550/* VOIDSIG
36ce8bec
DFDL
551 * This symbol is defined if this system declares "void (*signal())()" in
552 * signal.h. The old way was to declare it as "int (*signal())()". It
553 * is up to the package author to declare things correctly based on the
554 * symbol.
555 */
fe14fcc3
LW
556/* TO_SIGNAL
557 * This symbol's value is either "void" or "int", corresponding to the
558 * appropriate return "type" of a signal handler. Thus, one can declare
559 * a signal handler using "TO_SIGNAL (*handler())()", and define the
560 * handler using "TO_SIGNAL handler(sig)".
561 */
36ce8bec 562#$d_voidsig VOIDSIG /**/
fe14fcc3 563#$define TO_SIGNAL $d_tosignal /**/
36ce8bec 564
fe14fcc3 565/* HASVOLATILE
afd9f252
LW
566 * This symbol, if defined, indicates that this C compiler knows about
567 * the volatile declaration.
568 */
569#$d_volatile HASVOLATILE /**/
570
fe14fcc3 571/* HAS_VPRINTF
a687059c
LW
572 * This symbol, if defined, indicates that the vprintf routine is available
573 * to printf with a pointer to an argument list. If unavailable, you
574 * may need to write your own, probably in terms of _doprnt().
575 */
fe14fcc3 576/* CHARVSPRINTF
a687059c
LW
577 * This symbol is defined if this system has vsprintf() returning type
578 * (char*). The trend seems to be to declare it as "int vsprintf()". It
579 * is up to the package author to declare vsprintf correctly based on the
580 * symbol.
581 */
fe14fcc3 582#$d_vprintf HAS_VPRINTF /**/
a687059c
LW
583#$d_charvspr CHARVSPRINTF /**/
584
fe14fcc3 585/* HAS_WAIT4
bf38876a
LW
586 * This symbol, if defined, indicates that wait4() exists.
587 */
fe14fcc3 588#$d_wait4 HAS_WAIT4 /**/
bf38876a 589
fe14fcc3 590/* HAS_WAITPID
39c3038c
LW
591 * This symbol, if defined, indicates that waitpid() exists.
592 */
fe14fcc3 593#$d_waitpid HAS_WAITPID /**/
39c3038c 594
fe14fcc3 595/* GIDTYPE
378cc40b
LW
596 * This symbol has a value like gid_t, int, ushort, or whatever type is
597 * used to declare group ids in the kernel.
598 */
599#define GIDTYPE $gidtype /**/
600
1c3d792e
LW
601/* GROUPSTYPE
602 * This symbol has a value like gid_t, int, ushort, or whatever type is
603 * used in the return value of getgroups().
604 */
605#define GROUPSTYPE $groupstype /**/
606
fe14fcc3
LW
607/* I_FCNTL
608 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 609 */
fe14fcc3 610#$i_fcntl I_FCNTL /**/
a687059c 611
fe14fcc3
LW
612/* I_GDBM
613 * This symbol, if defined, indicates that gdbm.h exists and should
614 * be included.
a687059c 615 */
fe14fcc3 616#$i_gdbm I_GDBM /**/
a687059c 617
fe14fcc3 618/* I_GRP
a687059c
LW
619 * This symbol, if defined, indicates to the C program that it should
620 * include grp.h.
621 */
622#$i_grp I_GRP /**/
623
fe14fcc3 624/* I_NETINET_IN
03a14243
LW
625 * This symbol, if defined, indicates to the C program that it should
626 * include netinet/in.h.
627 */
fe14fcc3
LW
628/* I_SYS_IN
629 * This symbol, if defined, indicates to the C program that it should
630 * include sys/in.h.
631 */
03a14243 632#$i_niin I_NETINET_IN /**/
fe14fcc3 633#$i_sysin I_SYS_IN /**/
03a14243 634
fe14fcc3 635/* I_PWD
a687059c
LW
636 * This symbol, if defined, indicates to the C program that it should
637 * include pwd.h.
638 */
fe14fcc3 639/* PWQUOTA
a687059c
LW
640 * This symbol, if defined, indicates to the C program that struct passwd
641 * contains pw_quota.
642 */
fe14fcc3 643/* PWAGE
a687059c
LW
644 * This symbol, if defined, indicates to the C program that struct passwd
645 * contains pw_age.
646 */
fe14fcc3 647/* PWCHANGE
03a14243
LW
648 * This symbol, if defined, indicates to the C program that struct passwd
649 * contains pw_change.
650 */
fe14fcc3 651/* PWCLASS
03a14243
LW
652 * This symbol, if defined, indicates to the C program that struct passwd
653 * contains pw_class.
654 */
fe14fcc3 655/* PWEXPIRE
03a14243
LW
656 * This symbol, if defined, indicates to the C program that struct passwd
657 * contains pw_expire.
658 */
fe14fcc3
LW
659/* PWCOMMENT
660 * This symbol, if defined, indicates to the C program that struct passwd
661 * contains pw_comment.
662 */
a687059c
LW
663#$i_pwd I_PWD /**/
664#$d_pwquota PWQUOTA /**/
665#$d_pwage PWAGE /**/
bf38876a
LW
666#$d_pwchange PWCHANGE /**/
667#$d_pwclass PWCLASS /**/
668#$d_pwexpire PWEXPIRE /**/
fe14fcc3 669#$d_pwcomment PWCOMMENT /**/
a687059c 670
fe14fcc3
LW
671/* I_SYS_FILE
672 * This manifest constant tells the C program to include <sys/file.h>.
a687059c 673 */
fe14fcc3 674#$i_sys_file I_SYS_FILE /**/
a687059c 675
fe14fcc3 676/* I_SYSIOCTL
a687059c
LW
677 * This symbol, if defined, indicates that sys/ioctl.h exists and should
678 * be included.
679 */
680#$i_sysioctl I_SYSIOCTL /**/
681
fe14fcc3 682/* I_TIME
d8f2e4cc
LW
683 * This symbol is defined if the program should include <time.h>.
684 */
fe14fcc3 685/* I_SYS_TIME
d8f2e4cc
LW
686 * This symbol is defined if the program should include <sys/time.h>.
687 */
fe14fcc3 688/* SYSTIMEKERNEL
d8f2e4cc
LW
689 * This symbol is defined if the program should include <sys/time.h>
690 * with KERNEL defined.
691 */
fe14fcc3
LW
692/* I_SYS_SELECT
693 * This symbol is defined if the program should include <sys/select.h>.
694 */
695#$i_time I_TIME /**/
696#$i_sys_time I_SYS_TIME /**/
d8f2e4cc 697#$d_systimekernel SYSTIMEKERNEL /**/
fe14fcc3 698#$i_sys_select I_SYS_SELECT /**/
d8f2e4cc 699
fe14fcc3 700/* I_UTIME
d8f2e4cc 701 * This symbol, if defined, indicates to the C program that it should
afd9f252 702 * include utime.h.
d8f2e4cc
LW
703 */
704#$i_utime I_UTIME /**/
705
fe14fcc3 706/* I_VARARGS
a687059c
LW
707 * This symbol, if defined, indicates to the C program that it should
708 * include varargs.h.
709 */
710#$i_varargs I_VARARGS /**/
711
fe14fcc3 712/* I_VFORK
a687059c
LW
713 * This symbol, if defined, indicates to the C program that it should
714 * include vfork.h.
715 */
716#$i_vfork I_VFORK /**/
717
fe14fcc3 718/* INTSIZE
a687059c
LW
719 * This symbol contains the size of an int, so that the C preprocessor
720 * can make decisions based on it.
721 */
722#define INTSIZE $intsize /**/
723
fe14fcc3
LW
724/* I_DIRENT
725 * This symbol, if defined, indicates that the program should use the
726 * P1003-style directory routines, and include <dirent.h>.
727 */
728/* I_SYS_DIR
729 * This symbol, if defined, indicates that the program should use the
730 * directory functions by including <sys/dir.h>.
731 */
732/* I_NDIR
733 * This symbol, if defined, indicates that the program should include the
734 * system's version of ndir.h, rather than the one with this package.
735 */
736/* I_SYS_NDIR
737 * This symbol, if defined, indicates that the program should include the
738 * system's version of sys/ndir.h, rather than the one with this package.
739 */
740/* I_MY_DIR
741 * This symbol, if defined, indicates that the program should compile
742 * the ndir.c code provided with the package.
743 */
744/* DIRNAMLEN
745 * This symbol, if defined, indicates to the C program that the length
746 * of directory entry names is provided by a d_namlen field. Otherwise
747 * you need to do strlen() on the d_name field.
748 */
749#$i_dirent I_DIRENT /**/
750#$i_sys_dir I_SYS_DIR /**/
751#$i_ndir I_NDIR /**/
752#$i_sys_ndir I_SYS_NDIR /**/
753#$i_my_dir I_MY_DIR /**/
754#$d_dirnamlen DIRNAMLEN /**/
755
db4e6270
LW
756/* MYMALLOC
757 * This symbol, if defined, indicates that we're using our own malloc.
758 */
1c3d792e
LW
759/* MALLOCPTRTYPE
760 * This symbol defines the kind of ptr returned by malloc and realloc.
761 */
db4e6270
LW
762#$d_mymalloc MYMALLOC /**/
763
1c3d792e
LW
764#define MALLOCPTRTYPE $mallocptrtype /**/
765
fe14fcc3
LW
766
767/* RANDBITS
a687059c
LW
768 * This symbol contains the number of bits of random number the rand()
769 * function produces. Usual values are 15, 16, and 31.
770 */
771#define RANDBITS $randbits /**/
772
fe14fcc3 773/* SCRIPTDIR
87250799 774 * This symbol holds the name of the directory in which the user wants
2b317908 775 * to keep publicly executable scripts for the package in question. It
87250799
LW
776 * is often a directory that is mounted across diverse architectures.
777 */
778#define SCRIPTDIR "$scriptdir" /**/
779
fe14fcc3 780/* SIG_NAME
a687059c
LW
781 * This symbol contains an list of signal names in order.
782 */
783#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
784
fe14fcc3 785/* STDCHAR
36ce8bec
DFDL
786 * This symbol is defined to be the type of char used in stdio.h.
787 * It has the values "unsigned char" or "char".
788 */
789#define STDCHAR $stdchar /**/
790
fe14fcc3 791/* UIDTYPE
378cc40b
LW
792 * This symbol has a value like uid_t, int, ushort, or whatever type is
793 * used to declare user ids in the kernel.
794 */
795#define UIDTYPE $uidtype /**/
796
fe14fcc3 797/* VOIDHAVE
8d063cd8
LW
798 * This symbol indicates how much support of the void type is given by this
799 * compiler. What various bits mean:
800 *
801 * 1 = supports declaration of void
802 * 2 = supports arrays of pointers to functions returning void
803 * 4 = supports comparisons between pointers to void functions and
804 * addresses of void functions
805 *
fe14fcc3
LW
806 * The package designer should define VOIDWANT to indicate the requirements
807 * of the package. This can be done either by #defining VOIDWANT before
808 * including config.h, or by defining voidwant in Myinit.U. If the level
809 * of void support necessary is not present, config.h defines void to "int",
810 * VOID to the empty string, and VOIDP to "char *".
811 */
812/* void
813 * This symbol is used for void casts. On implementations which support
814 * void appropriately, its value is "void". Otherwise, its value maps
815 * to "int".
816 */
817/* VOID
818 * This symbol's value is "void" if the implementation supports void
819 * appropriately. Otherwise, its value is the empty string. The primary
820 * use of this symbol is in specifying void parameter lists for function
821 * prototypes.
822 */
823/* VOIDP
824 * This symbol is used for casting generic pointers. On implementations
825 * which support void appropriately, its value is "void *". Otherwise,
826 * its value is "char *".
827 */
828#ifndef VOIDWANT
829#define VOIDWANT $voidwant
8d063cd8 830#endif
fe14fcc3
LW
831#define VOIDHAVE $voidhave
832#if (VOIDHAVE & VOIDWANT) != VOIDWANT
833#define void int /* is void to be avoided? */
834#define VOID
835#define VOIDP (char *)
836#define M_VOID /* Xenix strikes again */
837#else
838#define VOID void
839#define VOIDP (void *)
8d063cd8
LW
840#endif
841
fe14fcc3 842/* PRIVLIB
378cc40b
LW
843 * This symbol contains the name of the private library for this package.
844 * The library is private in the sense that it needn't be in anyone's
a687059c
LW
845 * execution path, but it should be accessible by the world. The program
846 * should be prepared to do ~ expansion.
378cc40b
LW
847 */
848#define PRIVLIB "$privlib" /**/
849
fe14fcc3 850#endif
8d063cd8 851!GROK!THIS!