This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 3.0 patch #6 patch 5 continued
[perl5.git] / config.h.SH
CommitLineData
8d063cd8
LW
1case $CONFIG in
2'')
3 if test ! -f config.sh; then
4 ln ../config.sh . || \
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
8 echo "Using config.sh from above..."
9 fi
378cc40b 10 . ./config.sh
8d063cd8
LW
11 ;;
12esac
13echo "Extracting config.h (with variable substitutions)"
13281fa4 14sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
8d063cd8
LW
15/* config.h
16 * This file was produced by running the config.h.SH script, which
17 * gets its values from config.sh, which is generally produced by
18 * running Configure.
19 *
20 * Feel free to modify any of this as the need arises. Note, however,
21 * that running config.h.SH again will wipe out any changes you've made.
22 * For a more permanent change edit config.sh and rerun config.h.SH.
23 */
24
25
26/* EUNICE:
27 * This symbol, if defined, indicates that the program is being compiled
28 * under the EUNICE package under VMS. The program will need to handle
29 * things like files that don't go away the first time you unlink them,
30 * due to version numbering. It will also need to compensate for lack
31 * of a respectable link() command.
32 */
33/* VMS:
34 * This symbol, if defined, indicates that the program is running under
35 * VMS. It is currently only set in conjunction with the EUNICE symbol.
36 */
37#$d_eunice EUNICE /**/
38#$d_eunice VMS /**/
39
a687059c
LW
40/* BIN:
41 * This symbol holds the name of the directory in which the user wants
42 * to put publicly executable images for the package in question. It
43 * is most often a local directory such as /usr/local/bin.
44 */
45#define BIN "$bin" /**/
46
47/* BYTEORDER:
48 * This symbol contains an encoding of the order of bytes in a long.
49 * Usual values (in octal) are 01234, 04321, 02143, 03412...
50 */
0d3e774c 51#define BYTEORDER 0x$byteorder /**/
a687059c 52
378cc40b 53/* CPPSTDIN:
36ce8bec
DFDL
54 * This symbol contains the first part of the string which will invoke
55 * the C preprocessor on the standard input and produce to standard
56 * output. Typical value of "cc -E" or "/lib/cpp".
57 */
58/* CPPMINUS:
59 * This symbol contains the second part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
378cc40b 61 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec
DFDL
62 * to specify standard input, otherwise the value is "".
63 */
378cc40b 64#define CPPSTDIN "$cppstdin"
36ce8bec
DFDL
65#define CPPMINUS "$cppminus"
66
a687059c
LW
67/* BCMP:
68 * This symbol, if defined, indicates that the bcmp routine is available
69 * to compare blocks of memory. If undefined, use memcmp. If that's
70 * not available, roll your own.
71 */
72#$d_bcmp BCMP /**/
73
c51b80d1
LW
74/* BCOPY:
75 * This symbol, if defined, indicates that the bcopy routine is available
76 * to copy blocks of memory. Otherwise you should probably use memcpy().
77 */
78#$d_bcopy BCOPY /**/
79
0d3e774c
LW
80/* BZERO:
81 * This symbol, if defined, indicates that the bzero routine is available
82 * to zero blocks of memory. Otherwise you should probably use memcpy().
83 */
84#$d_bzero BZERO /**/
85
8d063cd8
LW
86/* CHARSPRINTF:
87 * This symbol is defined if this system declares "char *sprintf()" in
88 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
89 * is up to the package author to declare sprintf correctly based on the
90 * symbol.
91 */
92#$d_charsprf CHARSPRINTF /**/
93
2e1b3b7e
KK
94/* CRYPT:
95 * This symbol, if defined, indicates that the crypt routine is available
96 * to encrypt passwords and the like.
97 */
98#$d_crypt CRYPT /**/
99
bf38876a
LW
100/* CSH:
101 * This symbol, if defined, indicates that the C-shell exists.
102 * If defined, contains the full pathname of csh.
103 */
104#$d_csh CSH "$csh" /**/
105
13281fa4
LW
106/* DOSUID:
107 * This symbol, if defined, indicates that the C program should
108 * check the script that it is executing for setuid/setgid bits, and
109 * attempt to emulate setuid/setgid on systems that have disabled
110 * setuid #! scripts because the kernel can't do it securely.
111 * It is up to the package designer to make sure that this emulation
112 * is done securely. Among other things, it should do an fstat on
113 * the script it just opened to make sure it really is a setuid/setgid
114 * script, it should make sure the arguments passed correspond exactly
115 * to the argument on the #! line, and it should not trust any
116 * subprocesses to which it must pass the filename rather than the
117 * file descriptor of the script to be executed.
118 */
119#$d_dosuid DOSUID /**/
120
a687059c
LW
121/* DUP2:
122 * This symbol, if defined, indicates that the dup2 routine is available
123 * to dup file descriptors. Otherwise you should use dup().
124 */
125#$d_dup2 DUP2 /**/
126
378cc40b
LW
127/* FCHMOD:
128 * This symbol, if defined, indicates that the fchmod routine is available
129 * to change mode of opened files. If unavailable, use chmod().
130 */
131#$d_fchmod FCHMOD /**/
132
133/* FCHOWN:
134 * This symbol, if defined, indicates that the fchown routine is available
135 * to change ownership of opened files. If unavailable, use chown().
136 */
137#$d_fchown FCHOWN /**/
138
a687059c
LW
139/* FCNTL:
140 * This symbol, if defined, indicates to the C program that it should
141 * include fcntl.h.
142 */
143#$d_fcntl FCNTL /**/
144
145/* FLOCK:
146 * This symbol, if defined, indicates that the flock() routine is
147 * available to do file locking.
148 */
149#$d_flock FLOCK /**/
150
378cc40b
LW
151/* GETGROUPS:
152 * This symbol, if defined, indicates that the getgroups() routine is
153 * available to get the list of process groups. If unavailable, multiple
154 * groups are probably not supported.
155 */
156#$d_getgrps GETGROUPS /**/
157
a687059c
LW
158/* GETHOSTENT:
159 * This symbol, if defined, indicates that the gethostent() routine is
160 * available to lookup host names in some data base or other.
161 */
162#$d_gethent GETHOSTENT /**/
163
164/* GETPGRP:
165 * This symbol, if defined, indicates that the getpgrp() routine is
166 * available to get the current process group.
167 */
168#$d_getpgrp GETPGRP /**/
169
170/* GETPRIORITY:
171 * This symbol, if defined, indicates that the getpriority() routine is
172 * available to get a process's priority.
173 */
174#$d_getprior GETPRIORITY /**/
175
176/* HTONS:
177 * This symbol, if defined, indicates that the htons routine (and friends)
178 * are available to do network order byte swapping.
179 */
180/* HTONL:
181 * This symbol, if defined, indicates that the htonl routine (and friends)
182 * are available to do network order byte swapping.
183 */
184/* NTOHS:
185 * This symbol, if defined, indicates that the ntohs routine (and friends)
186 * are available to do network order byte swapping.
187 */
188/* NTOHL:
189 * This symbol, if defined, indicates that the ntohl routine (and friends)
190 * are available to do network order byte swapping.
191 */
192#$d_htonl HTONS /**/
193#$d_htonl HTONL /**/
194#$d_htonl NTOHS /**/
195#$d_htonl NTOHL /**/
196
8d063cd8
LW
197/* index:
198 * This preprocessor symbol is defined, along with rindex, if the system
199 * uses the strchr and strrchr routines instead.
200 */
201/* rindex:
202 * This preprocessor symbol is defined, along with index, if the system
203 * uses the strchr and strrchr routines instead.
204 */
205#$d_index index strchr /* cultural */
206#$d_index rindex strrchr /* differences? */
207
a687059c
LW
208/* IOCTL:
209 * This symbol, if defined, indicates that sys/ioctl.h exists and should
210 * be included.
211 */
212#$d_ioctl IOCTL /**/
213
378cc40b
LW
214/* KILLPG:
215 * This symbol, if defined, indicates that the killpg routine is available
216 * to kill process groups. If unavailable, you probably should use kill
217 * with a negative process number.
218 */
219#$d_killpg KILLPG /**/
220
0d3e774c
LW
221/* LSTAT:
222 * This symbol, if defined, indicates that the lstat() routine is
223 * available to do file locking.
224 */
225#$d_lstat LSTAT /**/
226
a687059c
LW
227/* MEMCMP:
228 * This symbol, if defined, indicates that the memcmp routine is available
229 * to compare blocks of memory. If undefined, roll your own.
230 */
231#$d_memcmp MEMCMP /**/
232
378cc40b
LW
233/* MEMCPY:
234 * This symbol, if defined, indicates that the memcpy routine is available
235 * to copy blocks of memory. Otherwise you should probably use bcopy().
236 * If neither is defined, roll your own.
237 */
238#$d_memcpy MEMCPY /**/
239
a687059c
LW
240/* MKDIR:
241 * This symbol, if defined, indicates that the mkdir routine is available
242 * to create directories. Otherwise you should fork off a new process to
243 * exec /bin/mkdir.
244 */
245#$d_mkdir MKDIR /**/
246
247/* NDBM:
248 * This symbol, if defined, indicates that ndbm.h exists and should
249 * be included.
250 */
251#$d_ndbm NDBM /**/
252
253/* ODBM:
254 * This symbol, if defined, indicates that dbm.h exists and should
255 * be included.
256 */
257#$d_odbm ODBM /**/
258
259/* READDIR:
260 * This symbol, if defined, indicates that the readdir routine is available
261 * from the C library to create directories.
262 */
263#$d_readdir READDIR /**/
264
378cc40b
LW
265/* RENAME:
266 * This symbol, if defined, indicates that the rename routine is available
267 * to rename files. Otherwise you should do the unlink(), link(), unlink()
268 * trick.
269 */
270#$d_rename RENAME /**/
271
a687059c
LW
272/* RMDIR:
273 * This symbol, if defined, indicates that the rmdir routine is available
274 * to remove directories. Otherwise you should fork off a new process to
275 * exec /bin/rmdir.
276 */
277#$d_rmdir RMDIR /**/
278
378cc40b
LW
279/* SETEGID:
280 * This symbol, if defined, indicates that the setegid routine is available
281 * to change the effective gid of the current program.
282 */
283#$d_setegid SETEGID /**/
284
285/* SETEUID:
286 * This symbol, if defined, indicates that the seteuid routine is available
287 * to change the effective uid of the current program.
288 */
289#$d_seteuid SETEUID /**/
290
a687059c
LW
291/* SETPGRP:
292 * This symbol, if defined, indicates that the setpgrp() routine is
293 * available to set the current process group.
294 */
295#$d_setpgrp SETPGRP /**/
296
297/* SETPRIORITY:
298 * This symbol, if defined, indicates that the setpriority() routine is
299 * available to set a process's priority.
300 */
301#$d_setprior SETPRIORITY /**/
302
303/* SETREGID:
304 * This symbol, if defined, indicates that the setregid routine is
305 * available to change the real and effective gid of the current program.
306 */
307/* SETRESGID:
308 * This symbol, if defined, indicates that the setresgid routine is
309 * available to change the real, effective and saved gid of the current
310 * program.
311 */
312#$d_setregid SETREGID /**/
313#$d_setresgid SETRESGID /**/
314
315/* SETREUID:
316 * This symbol, if defined, indicates that the setreuid routine is
317 * available to change the real and effective uid of the current program.
318 */
319/* SETRESUID:
320 * This symbol, if defined, indicates that the setresuid routine is
321 * available to change the real, effective and saved uid of the current
322 * program.
323 */
324#$d_setreuid SETREUID /**/
325#$d_setresuid SETRESUID /**/
326
378cc40b
LW
327/* SETRGID:
328 * This symbol, if defined, indicates that the setrgid routine is available
329 * to change the real gid of the current program.
330 */
331#$d_setrgid SETRGID /**/
332
333/* SETRUID:
334 * This symbol, if defined, indicates that the setruid routine is available
335 * to change the real uid of the current program.
336 */
337#$d_setruid SETRUID /**/
338
a687059c
LW
339/* SOCKET:
340 * This symbol, if defined, indicates that the BSD socket interface is
341 * supported.
342 */
343/* SOCKETPAIR:
344 * This symbol, if defined, indicates that the BSD socketpair call is
345 * supported.
346 */
347/* OLDSOCKET:
348 * This symbol, if defined, indicates that the 4.1c BSD socket interface
349 * is supported instead of the 4.2/4.3 BSD socket interface.
350 */
351#$d_socket SOCKET /**/
352
353#$d_sockpair SOCKETPAIR /**/
354
355#$d_oldsock OLDSOCKET /**/
356
c51b80d1
LW
357/* STATBLOCKS:
358 * This symbol is defined if this system has a stat structure declaring
359 * st_blksize and st_blocks.
360 */
361#$d_statblks STATBLOCKS /**/
362
36ce8bec
DFDL
363/* STDSTDIO:
364 * This symbol is defined if this system has a FILE structure declaring
365 * _ptr and _cnt in stdio.h.
366 */
367#$d_stdstdio STDSTDIO /**/
368
8d063cd8
LW
369/* STRUCTCOPY:
370 * This symbol, if defined, indicates that this C compiler knows how
371 * to copy structures. If undefined, you'll need to use a block copy
372 * routine of some sort instead.
373 */
374#$d_strctcpy STRUCTCOPY /**/
375
2e1b3b7e
KK
376/* SYMLINK:
377 * This symbol, if defined, indicates that the symlink routine is available
378 * to create symbolic links.
379 */
380#$d_symlink SYMLINK /**/
381
a687059c
LW
382/* SYSCALL:
383 * This symbol, if defined, indicates that the syscall routine is available
384 * to call arbitrary system calls. If undefined, that's tough.
385 */
386#$d_syscall SYSCALL /**/
387
c51b80d1
LW
388/* TMINSYS:
389 * This symbol is defined if this system declares "struct tm" in
390 * in <sys/time.h> rather than <time.h>. We can't just say
391 * -I/usr/include/sys because some systems have both time files, and
392 * the -I trick gets the wrong one.
393 */
a687059c
LW
394/* I_SYSTIME:
395 * This symbol is defined if this system has the file <sys/time.h>.
396 */
bf38876a
LW
397/* I_TIMETOO:
398 * This symbol is defined if <sys/time.h> exists but doesn't include
399 * <time.h>.
400 */
0d3e774c
LW
401/* I_SYSTIMETOO:
402 * This symbol is defined if <sys/time.h> exists but isn't included
403 * by <time.h>.
404 */
c51b80d1 405#$d_tminsys TMINSYS /**/
a687059c 406#$i_systime I_SYSTIME /**/
bf38876a 407#$i_timetoo I_TIMETOO /**/
0d3e774c 408#$i_systimetoo I_SYSTIMETOO /**/
a687059c
LW
409
410/* VARARGS:
411 * This symbol, if defined, indicates to the C program that it should
412 * include varargs.h.
413 */
414#$d_varargs VARARGS /**/
c51b80d1 415
03a14243
LW
416/* VFORK:
417 * This symbol, if defined, indicates that vfork() exists.
8d063cd8 418 */
03a14243 419#$d_vfork VFORK /**/
8d063cd8 420
36ce8bec
DFDL
421/* VOIDSIG:
422 * This symbol is defined if this system declares "void (*signal())()" in
423 * signal.h. The old way was to declare it as "int (*signal())()". It
424 * is up to the package author to declare things correctly based on the
425 * symbol.
426 */
427#$d_voidsig VOIDSIG /**/
428
a687059c
LW
429/* VPRINTF:
430 * This symbol, if defined, indicates that the vprintf routine is available
431 * to printf with a pointer to an argument list. If unavailable, you
432 * may need to write your own, probably in terms of _doprnt().
433 */
434/* CHARVSPRINTF:
435 * This symbol is defined if this system has vsprintf() returning type
436 * (char*). The trend seems to be to declare it as "int vsprintf()". It
437 * is up to the package author to declare vsprintf correctly based on the
438 * symbol.
439 */
440#$d_vprintf VPRINTF /**/
441#$d_charvspr CHARVSPRINTF /**/
442
bf38876a
LW
443/* WAIT4:
444 * This symbol, if defined, indicates that wait4() exists.
445 */
446#$d_wait4 WAIT4 /**/
447
378cc40b
LW
448/* GIDTYPE:
449 * This symbol has a value like gid_t, int, ushort, or whatever type is
450 * used to declare group ids in the kernel.
451 */
452#define GIDTYPE $gidtype /**/
453
a687059c
LW
454/* I_DIRENT:
455 * This symbol, if defined, indicates to the C program that it should
456 * include dirent.h.
457 */
458/* DIRNAMLEN:
459 * This symbol, if defined, indicates to the C program that the length
460 * of directory entry names is provided by a d_namlen field. Otherwise
461 * you need to do strlen() on the d_name field.
462 */
463#$i_dirent I_DIRENT /**/
464#$d_dirnamlen DIRNAMLEN /**/
465
466/* I_FCNTL:
467 * This symbol, if defined, indicates to the C program that it should
468 * include fcntl.h.
469 */
470#$i_fcntl I_FCNTL /**/
471
472/* I_GRP:
473 * This symbol, if defined, indicates to the C program that it should
474 * include grp.h.
475 */
476#$i_grp I_GRP /**/
477
03a14243
LW
478/* I_NETINET_IN:
479 * This symbol, if defined, indicates to the C program that it should
480 * include netinet/in.h.
481 */
482#$i_niin I_NETINET_IN /**/
483
a687059c
LW
484/* I_PWD:
485 * This symbol, if defined, indicates to the C program that it should
486 * include pwd.h.
487 */
488/* PWQUOTA:
489 * This symbol, if defined, indicates to the C program that struct passwd
490 * contains pw_quota.
491 */
492/* PWAGE:
493 * This symbol, if defined, indicates to the C program that struct passwd
494 * contains pw_age.
495 */
03a14243
LW
496/* PWCHANGE:
497 * This symbol, if defined, indicates to the C program that struct passwd
498 * contains pw_change.
499 */
500/* PWCLASS:
501 * This symbol, if defined, indicates to the C program that struct passwd
502 * contains pw_class.
503 */
504/* PWEXPIRE:
505 * This symbol, if defined, indicates to the C program that struct passwd
506 * contains pw_expire.
507 */
a687059c
LW
508#$i_pwd I_PWD /**/
509#$d_pwquota PWQUOTA /**/
510#$d_pwage PWAGE /**/
bf38876a
LW
511#$d_pwchange PWCHANGE /**/
512#$d_pwclass PWCLASS /**/
513#$d_pwexpire PWEXPIRE /**/
a687059c
LW
514
515/* I_SYSDIR:
516 * This symbol, if defined, indicates to the C program that it should
517 * include sys/dir.h.
518 */
519#$i_sysdir I_SYSDIR /**/
520
521/* I_SYSIOCTL:
522 * This symbol, if defined, indicates that sys/ioctl.h exists and should
523 * be included.
524 */
525#$i_sysioctl I_SYSIOCTL /**/
526
527/* I_VARARGS:
528 * This symbol, if defined, indicates to the C program that it should
529 * include varargs.h.
530 */
531#$i_varargs I_VARARGS /**/
532
533/* I_VFORK:
534 * This symbol, if defined, indicates to the C program that it should
535 * include vfork.h.
536 */
537#$i_vfork I_VFORK /**/
538
539/* INTSIZE:
540 * This symbol contains the size of an int, so that the C preprocessor
541 * can make decisions based on it.
542 */
543#define INTSIZE $intsize /**/
544
545/* RANDBITS:
546 * This symbol contains the number of bits of random number the rand()
547 * function produces. Usual values are 15, 16, and 31.
548 */
549#define RANDBITS $randbits /**/
550
551/* SIG_NAME:
552 * This symbol contains an list of signal names in order.
553 */
554#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
555
36ce8bec
DFDL
556/* STDCHAR:
557 * This symbol is defined to be the type of char used in stdio.h.
558 * It has the values "unsigned char" or "char".
559 */
560#define STDCHAR $stdchar /**/
561
378cc40b
LW
562/* UIDTYPE:
563 * This symbol has a value like uid_t, int, ushort, or whatever type is
564 * used to declare user ids in the kernel.
565 */
566#define UIDTYPE $uidtype /**/
567
8d063cd8
LW
568/* VOIDFLAGS:
569 * This symbol indicates how much support of the void type is given by this
570 * compiler. What various bits mean:
571 *
572 * 1 = supports declaration of void
573 * 2 = supports arrays of pointers to functions returning void
574 * 4 = supports comparisons between pointers to void functions and
575 * addresses of void functions
576 *
577 * The package designer should define VOIDUSED to indicate the requirements
578 * of the package. This can be done either by #defining VOIDUSED before
579 * including config.h, or by defining defvoidused in Myinit.U. If the
a687059c 580 * latter approach is taken, only those flags will be tested. If the
8d063cd8
LW
581 * level of void support necessary is not present, defines void to int.
582 */
583#ifndef VOIDUSED
584#define VOIDUSED $defvoidused
585#endif
586#define VOIDFLAGS $voidflags
587#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
588#$define void int /* is void to be avoided? */
589#$define M_VOID /* Xenix strikes again */
590#endif
591
378cc40b
LW
592/* PRIVLIB:
593 * This symbol contains the name of the private library for this package.
594 * The library is private in the sense that it needn't be in anyone's
a687059c
LW
595 * execution path, but it should be accessible by the world. The program
596 * should be prepared to do ~ expansion.
378cc40b
LW
597 */
598#define PRIVLIB "$privlib" /**/
599
8d063cd8 600!GROK!THIS!