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