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