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=../../../..;
9 echo "Can't find config.sh."; exit 1
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
17 echo "Extracting config.h (with variable substitutions)"
18 sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
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
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.
28 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
32 * Package name : $package
33 * Source directory : $src
34 * Configuration time: $cf_time
35 * Configured by : $cf_by
36 * Target system : $myuname
43 * This symbol holds the complete pathname to the sed program.
45 #define LOC_SED "$full_sed" /**/
48 * This symbol holds the path of the bin directory where the package will
49 * be installed. Program must be prepared to deal with ~name substitution.
52 * This symbol is the filename expanded version of the BIN symbol, for
53 * programs that do not want to deal with that at run-time.
55 #define BIN "$bin" /**/
56 #define BIN_EXP "$binexp" /**/
59 * This symbol contains the first part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
61 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
62 * call a wrapper. See CPPRUN.
65 * This symbol contains the second part of the string which will invoke
66 * the C preprocessor on the standard input and produce to standard
67 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
68 * to specify standard input, otherwise the value is "".
70 #define CPPSTDIN "$cppstdin"
71 #define CPPMINUS "$cppminus"
74 * This symbol, if defined, indicates that the alarm routine is
77 #$d_alarm HAS_ALARM /**/
80 * This symbol indicates the C compiler can check for function attributes,
81 * such as printf formats. This is normally only supported by GNU cc.
83 #$d_attribut HASATTRIBUTE /**/
85 #define __attribute__(_arg_)
89 * This symbol is defined if the bcmp() routine is available to
90 * compare blocks of memory.
92 #$d_bcmp HAS_BCMP /**/
95 * This symbol is defined if the bcopy() routine is available to
96 * copy blocks of memory.
98 #$d_bcopy HAS_BCOPY /**/
101 * This symbol is defined if the bzero() routine is available to
102 * set a memory block to 0.
104 #$d_bzero HAS_BZERO /**/
107 * This symbol, if defined, indicates that the chown routine is
110 #$d_chown HAS_CHOWN /**/
113 * This symbol, if defined, indicates that the chroot routine is
116 #$d_chroot HAS_CHROOT /**/
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.
122 #$d_chsize HAS_CHSIZE /**/
125 * This symbol, if defined, indicates that this C compiler knows about
126 * the const type. There is no need to actually test for that symbol
127 * within your programs. The mere use of the "const" keyword will
128 * trigger the necessary tests.
130 #$d_const HASCONST /**/
136 * This symbol, if defined, indicates that the crypt routine is available
137 * to encrypt passwords and the like.
139 #$d_crypt HAS_CRYPT /**/
142 * This symbol, if defined, indicates that the cuserid routine is
143 * available to get character login names.
145 #$d_cuserid HAS_CUSERID /**/
148 * This symbol, if defined, indicates that this system's <float.h>
149 * or <limits.h> defines the symbol DBL_DIG, which is the number
150 * of significant digits in a double precision number. If this
151 * symbol is not defined, a guess of 15 is usually pretty good.
153 #$d_dbl_dig HAS_DBL_DIG /* */
156 * This symbol, if defined, indicates that the difftime routine is
159 #$d_difftime HAS_DIFFTIME /**/
162 * This symbol, if defined, indicates that the dlerror routine is
163 * available to return a string describing the last error that
164 * occurred from a call to dlopen(), dlclose() or dlsym().
166 #$d_dlerror HAS_DLERROR /**/
168 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
169 * This symbol, if defined, indicates that the bug that prevents
170 * setuid scripts from being secure is not present in this kernel.
173 * This symbol, if defined, indicates that the C program should
174 * check the script that it is executing for setuid/setgid bits, and
175 * attempt to emulate setuid/setgid on systems that have disabled
176 * setuid #! scripts because the kernel can't do it securely.
177 * It is up to the package designer to make sure that this emulation
178 * is done securely. Among other things, it should do an fstat on
179 * the script it just opened to make sure it really is a setuid/setgid
180 * script, it should make sure the arguments passed correspond exactly
181 * to the argument on the #! line, and it should not trust any
182 * subprocesses to which it must pass the filename rather than the
183 * file descriptor of the script to be executed.
185 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
186 #$d_dosuid DOSUID /**/
189 * This symbol, if defined, indicates that the dup2 routine is
190 * available to duplicate file descriptors.
192 #$d_dup2 HAS_DUP2 /**/
195 * This symbol, if defined, indicates that the fchmod routine is available
196 * to change mode of opened files. If unavailable, use chmod().
198 #$d_fchmod HAS_FCHMOD /**/
201 * This symbol, if defined, indicates that the fchown routine is available
202 * to change ownership of opened files. If unavailable, use chown().
204 #$d_fchown HAS_FCHOWN /**/
207 * This symbol, if defined, indicates to the C program that
208 * the fcntl() function exists.
210 #$d_fcntl HAS_FCNTL /**/
213 * This symbol, if defined, indicates that the fgetpos routine is
214 * available to get the file position indicator, similar to ftell().
216 #$d_fgetpos HAS_FGETPOS /**/
219 * This symbol, if defined, indicates that the system supports filenames
220 * longer than 14 characters.
222 #$d_flexfnam FLEXFILENAMES /**/
225 * This symbol, if defined, indicates that the flock routine is
226 * available to do file locking.
228 #$d_flock HAS_FLOCK /**/
231 * This symbol, if defined, indicates that the fork routine is
234 #$d_fork HAS_FORK /**/
237 * This symbol, if defined, indicates that the fsetpos routine is
238 * available to set the file position indicator, similar to fseek().
240 #$d_fsetpos HAS_FSETPOS /**/
243 * This symbol, if defined, indicates that the gettimeofday() system
244 * call is available for a sub-second accuracy clock. Usually, the file
245 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
246 * The type "Timeval" should be used to refer to "struct timeval".
248 #$d_gettimeod HAS_GETTIMEOFDAY /**/
249 #ifdef HAS_GETTIMEOFDAY
250 #define Timeval struct timeval /* Structure used by gettimeofday() */
254 * This symbol, if defined, indicates that the getgroups() routine is
255 * available to get the list of process groups. If unavailable, multiple
256 * groups are probably not supported.
258 #$d_getgrps HAS_GETGROUPS /**/
261 * This symbol, if defined, indicates that the C program may use the
262 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
265 #$d_uname HAS_UNAME /**/
268 * This symbol, if defined, indicates that the getlogin routine is
269 * available to get the login name.
271 #$d_getlogin HAS_GETLOGIN /**/
274 * This symbol, if defined, indicates to the C program that
275 * the getpgid(pid) function is available to get the
278 #$d_getpgid HAS_GETPGID /**/
281 * This symbol, if defined, indicates that the getpgrp routine is
282 * available to get the current process group.
285 * This symbol, if defined, indicates that getpgrp needs one
286 * arguments whereas USG one needs none.
288 #$d_getpgrp HAS_GETPGRP /**/
289 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
292 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
293 * routine is available to get the current process group.
295 #$d_getpgrp2 HAS_GETPGRP2 /**/
298 * This symbol, if defined, indicates that the getppid routine is
299 * available to get the parent process ID.
301 #$d_getppid HAS_GETPPID /**/
304 * This symbol, if defined, indicates that the getpriority routine is
305 * available to get a process's priority.
307 #$d_getprior HAS_GETPRIORITY /**/
310 * This symbol, if defined, indicates that the htonl() routine (and
311 * friends htons() ntohl() ntohs()) are available to do network
312 * order byte swapping.
315 * This symbol, if defined, indicates that the htons() routine (and
316 * friends htonl() ntohl() ntohs()) are available to do network
317 * order byte swapping.
320 * This symbol, if defined, indicates that the ntohl() routine (and
321 * friends htonl() htons() ntohs()) are available to do network
322 * order byte swapping.
325 * This symbol, if defined, indicates that the ntohs() routine (and
326 * friends htonl() htons() ntohl()) are available to do network
327 * order byte swapping.
329 #$d_htonl HAS_HTONL /**/
330 #$d_htonl HAS_HTONS /**/
331 #$d_htonl HAS_NTOHL /**/
332 #$d_htonl HAS_NTOHS /**/
335 * This symbol, if defined, indicates to the C program that the
336 * inet_aton() function is available to parse IP address "dotted-quad"
339 #$d_inetaton HAS_INET_ATON /**/
342 * This symbol, if defined, indicates that the killpg routine is available
343 * to kill process groups. If unavailable, you probably should use kill
344 * with a negative process number.
346 #$d_killpg HAS_KILLPG /**/
349 * This symbol, if defined, indicates that the link routine is
350 * available to create hard links.
352 #$d_link HAS_LINK /**/
355 * This symbol, if defined, indicates that the localeconv routine is
356 * available for numeric and monetary formatting conventions.
358 #$d_locconv HAS_LOCALECONV /**/
361 * This symbol, if defined, indicates that the lockf routine is
362 * available to do file locking.
364 #$d_lockf HAS_LOCKF /**/
367 * This symbol, if defined, indicates that the lstat routine is
368 * available to do file stats on symbolic links.
370 #$d_lstat HAS_LSTAT /**/
373 * This symbol, if defined, indicates that the mblen routine is available
374 * to find the number of bytes in a multibye character.
376 #$d_mblen HAS_MBLEN /**/
379 * This symbol, if defined, indicates that the mbstowcs routine is
380 * available to covert a multibyte string into a wide character string.
382 #$d_mbstowcs HAS_MBSTOWCS /**/
385 * This symbol, if defined, indicates that the mbtowc routine is available
386 * to covert a multibyte to a wide character.
388 #$d_mbtowc HAS_MBTOWC /**/
391 * This symbol, if defined, indicates that the memcmp routine is available
392 * to compare blocks of memory.
394 #$d_memcmp HAS_MEMCMP /**/
397 * This symbol, if defined, indicates that the memcpy routine is available
398 * to copy blocks of memory.
400 #$d_memcpy HAS_MEMCPY /**/
403 * This symbol, if defined, indicates that the memmove routine is available
404 * to copy potentially overlapping blocks of memory. This should be used
405 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
408 #$d_memmove HAS_MEMMOVE /**/
411 * This symbol, if defined, indicates that the memset routine is available
412 * to set blocks of memory.
414 #$d_memset HAS_MEMSET /**/
417 * This symbol, if defined, indicates that the mkdir routine is available
418 * to create directories. Otherwise you should fork off a new process to
421 #$d_mkdir HAS_MKDIR /**/
424 * This symbol, if defined, indicates that the mkfifo routine is
425 * available to create FIFOs. Otherwise, mknod should be able to
426 * do it for you. However, if mkfifo is there, mknod might require
427 * super-user privileges which mkfifo will not.
429 #$d_mkfifo HAS_MKFIFO /**/
432 * This symbol, if defined, indicates that the mknod routine is
433 * available to create character and block special files. Otherwise,
434 * mknod should be able to do it for you. However, if mknod is there,
435 * mknod might require super-user privileges which mknod will not.
437 #$d_mknod HAS_MKNOD /**/
440 * This symbol, if defined, indicates that the mktime routine is
443 #$d_mktime HAS_MKTIME /**/
446 * This symbol, if defined, indicates that the entire msg*(2) library is
447 * supported (IPC mechanism based on message queues).
452 * This symbol, if defined, indicates that the nice routine is
455 #$d_nice HAS_NICE /**/
458 * This symbol, if defined, indicates that pathconf() is available
459 * to determine file-system related limits and options associated
460 * with a given filename.
463 * This symbol, if defined, indicates that pathconf() is available
464 * to determine file-system related limits and options associated
465 * with a given open file descriptor.
467 #$d_pathconf HAS_PATHCONF /**/
468 #$d_fpathconf HAS_FPATHCONF /**/
471 * This symbol, if defined, indicates that the pause routine is
472 * available to suspend a process until a signal is received.
474 #$d_pause HAS_PAUSE /**/
477 * This symbol, if defined, indicates that the pipe routine is
478 * available to create an inter-process channel.
480 #$d_pipe HAS_PIPE /**/
483 * This symbol, if defined, indicates that the poll routine is
484 * available to poll active file descriptors. You may safely
485 * include <poll.h> when this symbol is defined.
487 #$d_poll HAS_POLL /**/
490 * This symbol, if defined, indicates that the readdir routine is
491 * available to read directory entries. You may have to include
492 * <dirent.h>. See I_DIRENT.
494 #$d_readdir HAS_READDIR /**/
497 * This symbol, if defined, indicates that the seekdir routine is
498 * available. You may have to include <dirent.h>. See I_DIRENT.
500 #$d_seekdir HAS_SEEKDIR /**/
503 * This symbol, if defined, indicates that the telldir routine is
504 * available. You may have to include <dirent.h>. See I_DIRENT.
506 #$d_telldir HAS_TELLDIR /**/
509 * This symbol, if defined, indicates that the rewinddir routine is
510 * available. You may have to include <dirent.h>. See I_DIRENT.
512 #$d_rewinddir HAS_REWINDDIR /**/
515 * This symbol, if defined, indicates that the readlink routine is
516 * available to read the value of a symbolic link.
518 #$d_readlink HAS_READLINK /**/
521 * This symbol, if defined, indicates that the rename routine is available
522 * to rename files. Otherwise you should do the unlink(), link(), unlink()
525 #$d_rename HAS_RENAME /**/
528 * This symbol, if defined, indicates that the rmdir routine is
529 * available to remove directories. Otherwise you should fork off a
530 * new process to exec /bin/rmdir.
532 #$d_rmdir HAS_RMDIR /**/
535 * This symbol, if defined, indicates that the select routine is
536 * available to select active file descriptors. If the timeout field
537 * is used, <sys/time.h> may need to be included.
539 #$d_select HAS_SELECT /**/
542 * This symbol, if defined, indicates that the entire sem*(2) library is
548 * This symbol, if defined, indicates that the setegid routine is available
549 * to change the effective gid of the current program.
551 #$d_setegid HAS_SETEGID /**/
554 * This symbol, if defined, indicates that the seteuid routine is available
555 * to change the effective uid of the current program.
557 #$d_seteuid HAS_SETEUID /**/
560 * This symbol, if defined, indicates that the setlinebuf routine is
561 * available to change stderr or stdout from block-buffered or unbuffered
562 * to a line-buffered mode.
564 #$d_setlinebuf HAS_SETLINEBUF /**/
567 * This symbol, if defined, indicates that the setlocale routine is
568 * available to handle locale-specific ctype implementations.
570 #$d_setlocale HAS_SETLOCALE /**/
573 * This symbol, if defined, indicates that the setpgid(pid, gpid)
574 * routine is available to set process group ID.
576 #$d_setpgid HAS_SETPGID /**/
579 * This symbol, if defined, indicates that the setpgrp routine is
580 * available to set the current process group.
583 * This symbol, if defined, indicates that setpgrp needs two
584 * arguments whereas USG one needs none. See also HAS_SETPGID
585 * for a POSIX interface.
587 #$d_setpgrp HAS_SETPGRP /**/
588 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
591 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
592 * routine is available to set the current process group.
594 #$d_setpgrp2 HAS_SETPGRP2 /**/
597 * This symbol, if defined, indicates that the setpriority routine is
598 * available to set a process's priority.
600 #$d_setprior HAS_SETPRIORITY /**/
603 * This symbol, if defined, indicates that the setregid routine is
604 * available to change the real and effective gid of the current
608 * This symbol, if defined, indicates that the setresgid routine is
609 * available to change the real, effective and saved gid of the current
612 #$d_setregid HAS_SETREGID /**/
613 #$d_setresgid HAS_SETRESGID /**/
616 * This symbol, if defined, indicates that the setreuid routine is
617 * available to change the real and effective uid of the current
621 * This symbol, if defined, indicates that the setresuid routine is
622 * available to change the real, effective and saved uid of the current
625 #$d_setreuid HAS_SETREUID /**/
626 #$d_setresuid HAS_SETRESUID /**/
629 * This symbol, if defined, indicates that the setrgid routine is available
630 * to change the real gid of the current program.
632 #$d_setrgid HAS_SETRGID /**/
635 * This symbol, if defined, indicates that the setruid routine is available
636 * to change the real uid of the current program.
638 #$d_setruid HAS_SETRUID /**/
641 * This symbol, if defined, indicates that the setsid routine is
642 * available to set the process group ID.
644 #$d_setsid HAS_SETSID /**/
647 * This symbol, if defined, indicates that the entire shm*(2) library is
653 * This symbol holds the return type of the shmat() system call.
654 * Usually set to 'void *' or 'char *'.
656 /* HAS_SHMAT_PROTOTYPE:
657 * This symbol, if defined, indicates that the sys/shm.h includes
658 * a prototype for shmat(). Otherwise, it is up to the program to
659 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
660 * but not always right so it should be emitted by the program only
661 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
663 #define Shmat_t $shmattype /**/
664 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
667 * This symbol is defined if this system has a stat structure declaring
668 * st_blksize and st_blocks.
670 #$d_statblks USE_STAT_BLOCKS /**/
673 * This symbol is defined to indicate that the strchr()/strrchr()
674 * functions are available for string searching. If not, try the
675 * index()/rindex() pair.
678 * This symbol is defined to indicate that the index()/rindex()
679 * functions are available for string searching.
681 #$d_strchr HAS_STRCHR /**/
682 #$d_index HAS_INDEX /**/
685 * This symbol, if defined, indicates that the strcoll routine is
686 * available to compare strings using collating information.
688 #$d_strcoll HAS_STRCOLL /**/
691 * This symbol, if defined, indicates that this C compiler knows how
692 * to copy structures. If undefined, you'll need to use a block copy
693 * routine of some sort instead.
695 #$d_strctcpy USE_STRUCT_COPY /**/
698 * This symbol, if defined, indicates that the strerror routine is
699 * available to translate error numbers to strings. See the writeup
700 * of Strerror() in this file before you try to define your own.
703 * This symbol, if defined, indicates that the sys_errlist array is
704 * available to translate error numbers to strings. The extern int
705 * sys_nerr gives the size of that table.
708 * This preprocessor symbol is defined as a macro if strerror() is
709 * not available to translate error numbers to strings but sys_errlist[]
712 #$d_strerror HAS_STRERROR /**/
713 #$d_syserrlst HAS_SYS_ERRLIST /**/
714 #define Strerror(e) $d_strerrm
717 * This symbol, if defined, indicates that the strtod routine is
718 * available to provide better numeric string conversion than atof().
720 #$d_strtod HAS_STRTOD /**/
723 * This symbol, if defined, indicates that the strtol routine is available
724 * to provide better numeric string conversion than atoi() and friends.
726 #$d_strtol HAS_STRTOL /**/
729 * This symbol, if defined, indicates that the strtoul routine is
730 * available to provide conversion of strings to unsigned long.
732 #$d_strtoul HAS_STRTOUL /**/
735 * This symbol, if defined, indicates that the strxfrm() routine is
736 * available to transform strings.
738 #$d_strxfrm HAS_STRXFRM /**/
741 * This symbol, if defined, indicates that the symlink routine is available
742 * to create symbolic links.
744 #$d_symlink HAS_SYMLINK /**/
747 * This symbol, if defined, indicates that the syscall routine is
748 * available to call arbitrary system calls. If undefined, that's tough.
750 #$d_syscall HAS_SYSCALL /**/
753 * This symbol, if defined, indicates that sysconf() is available
754 * to determine system related limits and options.
756 #$d_sysconf HAS_SYSCONF /**/
759 * This symbol, if defined, indicates that the system routine is
760 * available to issue a shell command.
762 #$d_system HAS_SYSTEM /**/
765 * This symbol, if defined, indicates that the tcgetpgrp routine is
766 * available to get foreground process group ID.
768 #$d_tcgetpgrp HAS_TCGETPGRP /**/
771 * This symbol, if defined, indicates that the tcsetpgrp routine is
772 * available to set foreground process group ID.
774 #$d_tcsetpgrp HAS_TCSETPGRP /**/
777 * This symbol, if defined, indicates that the truncate routine is
778 * available to truncate files.
780 #$d_truncate HAS_TRUNCATE /**/
783 * This symbol, if defined, indicates that the tzname[] array is
784 * available to access timezone names.
786 #$d_tzname HAS_TZNAME /**/
789 * This symbol, if defined, indicates that the umask routine is
790 * available to set and get the value of the file creation mask.
792 #$d_umask HAS_UMASK /**/
795 * This symbol, if defined, indicates that vfork() exists.
797 #$d_vfork HAS_VFORK /**/
800 * This symbol, if defined, indicates that this C compiler knows about
801 * the volatile declaration.
803 #$d_volatile HASVOLATILE /**/
809 * This symbol, if defined, indicates that wait4() exists.
811 #$d_wait4 HAS_WAIT4 /**/
814 * This symbol, if defined, indicates that the waitpid routine is
815 * available to wait for child process.
817 #$d_waitpid HAS_WAITPID /**/
820 * This symbol, if defined, indicates that the wcstombs routine is
821 * available to convert wide character strings to multibyte strings.
823 #$d_wcstombs HAS_WCSTOMBS /**/
826 * This symbol, if defined, indicates that the wctomb routine is available
827 * to covert a wide character to a multibyte.
829 #$d_wctomb HAS_WCTOMB /**/
832 * This symbol, if defined, indicates that <dbm.h> exists and should
836 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
837 * should be included.
840 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
843 * This symbol, if defined, indicates to the C program that it should
844 * include <dirent.h>. Using this symbol also triggers the definition
845 * of the Direntry_t define which ends up being 'struct dirent' or
846 * 'struct direct' depending on the availability of <dirent.h>.
849 * This symbol, if defined, indicates to the C program that the length
850 * of directory entry names is provided by a d_namlen field. Otherwise
851 * you need to do strlen() on the d_name field.
854 * This symbol is set to 'struct direct' or 'struct dirent' depending on
855 * whether dirent is available or not. You should use this pseudo type to
856 * portably declare your directory entries.
858 #$i_dirent I_DIRENT /**/
859 #$d_dirnamlen DIRNAMLEN /**/
860 #define Direntry_t $direntrytype
863 * This symbol, if defined, indicates that <dlfcn.h> exists and should
866 #$i_dlfcn I_DLFCN /**/
869 * This manifest constant tells the C program to include <fcntl.h>.
871 #$i_fcntl I_FCNTL /**/
874 * This symbol, if defined, indicates to the C program that it should
875 * include <float.h> to get definition of symbols like DBL_MAX or
876 * DBL_MIN, i.e. machine dependent floating point values.
878 #$i_float I_FLOAT /**/
881 * This symbol, if defined, indicates to the C program that it should
887 * This symbol, if defined, indicates to the C program that it should
888 * include <limits.h> to get definition of symbols like WORD_BIT or
889 * LONG_MAX, i.e. machine dependant limitations.
891 #$i_limits I_LIMITS /**/
894 * This symbol, if defined, indicates to the C program that it should
895 * include <locale.h>.
897 #$i_locale I_LOCALE /**/
900 * This symbol, if defined, indicates to the C program that it should
906 * This symbol, if defined, indicates to the C program that it should
907 * include <memory.h>.
909 #$i_memory I_MEMORY /**/
912 * This symbol, if defined, indicates that <ndbm.h> exists and should
918 * This symbol, if defined, indicates that <net/errno.h> exists and
919 * should be included.
921 #$i_neterrno I_NET_ERRNO /**/
924 * This symbol, if defined, indicates to the C program that it should
925 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
927 #$i_niin I_NETINET_IN /**/
930 * This symbol, if defined, indicates to the C program that it should
936 * This symbol, if defined, indicates that <stddef.h> exists and should
939 #$i_stddef I_STDDEF /**/
942 * This symbol, if defined, indicates that <stdlib.h> exists and should
945 #$i_stdlib I_STDLIB /**/
948 * This symbol, if defined, indicates to the C program that it should
949 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
951 #$i_string I_STRING /**/
954 * This symbol, if defined, indicates to the C program that it should
955 * include <sys/dir.h>.
957 #$i_sysdir I_SYS_DIR /**/
960 * This symbol, if defined, indicates to the C program that it should
961 * include <sys/file.h> to get definition of R_OK and friends.
963 #$i_sysfile I_SYS_FILE /**/
966 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
967 * be included. Otherwise, include <sgtty.h> or <termio.h>.
969 #$i_sysioctl I_SYS_IOCTL /**/
972 * This symbol, if defined, indicates to the C program that it should
973 * include <sys/ndir.h>.
975 #$i_sysndir I_SYS_NDIR /**/
978 * This symbol, if defined, indicates to the C program that it should
979 * include <sys/param.h>.
981 #$i_sysparam I_SYS_PARAM /**/
984 * This symbol, if defined, indicates to the C program that it should
985 * include <sys/resource.h>.
987 #$i_sysresrc I_SYS_RESOURCE /**/
990 * This symbol, if defined, indicates to the C program that it should
991 * include <sys/select.h> in order to get definition of struct timeval.
993 #$i_sysselct I_SYS_SELECT /**/
996 * This symbol, if defined, indicates to the C program that it should
997 * include <sys/stat.h>.
999 #$i_sysstat I_SYS_STAT /**/
1002 * This symbol, if defined, indicates to the C program that it should
1003 * include <sys/times.h>.
1005 #$i_systimes I_SYS_TIMES /**/
1008 * This symbol, if defined, indicates to the C program that it should
1009 * include <sys/types.h>.
1011 #$i_systypes I_SYS_TYPES /**/
1014 * This symbol, if defined, indicates to the C program that it should
1015 * include <sys/un.h> to get UNIX domain socket definitions.
1017 #$i_sysun I_SYS_UN /**/
1020 * This symbol, if defined, indicates to the C program that it should
1021 * include <sys/wait.h>.
1023 #$i_syswait I_SYS_WAIT /**/
1026 * This symbol, if defined, indicates that the program should include
1027 * <termio.h> rather than <sgtty.h>. There are also differences in
1028 * the ioctl() calls that depend on the value of this symbol.
1031 * This symbol, if defined, indicates that the program should include
1032 * the POSIX termios.h rather than sgtty.h or termio.h.
1033 * There are also differences in the ioctl() calls that depend on the
1034 * value of this symbol.
1037 * This symbol, if defined, indicates that the program should include
1038 * <sgtty.h> rather than <termio.h>. There are also differences in
1039 * the ioctl() calls that depend on the value of this symbol.
1041 #$i_termio I_TERMIO /**/
1042 #$i_termios I_TERMIOS /**/
1043 #$i_sgtty I_SGTTY /**/
1046 * This symbol, if defined, indicates to the C program that it should
1047 * include <unistd.h>.
1049 #$i_unistd I_UNISTD /**/
1052 * This symbol, if defined, indicates to the C program that it should
1053 * include <utime.h>.
1055 #$i_utime I_UTIME /**/
1058 * This symbol, if defined, indicates to the C program that it should
1059 * include <values.h> to get definition of symbols like MINFLOAT or
1060 * MAXLONG, i.e. machine dependant limitations. Probably, you
1061 * should use <limits.h> instead, if it is available.
1063 #$i_values I_VALUES /**/
1066 * This symbol, if defined, indicates that <stdarg.h> exists and should
1070 * This symbol, if defined, indicates to the C program that it should
1071 * include <varargs.h>.
1073 #$i_stdarg I_STDARG /**/
1074 #$i_varargs I_VARARGS /**/
1077 * This symbol, if defined, indicates to the C program that it should
1080 #$i_vfork I_VFORK /**/
1083 * This variable contains the return type of free(). It is usually
1084 * void, but occasionally int.
1087 * This symbol is the type of pointer returned by malloc and realloc.
1089 #define Malloc_t $malloctype /**/
1090 #define Free_t $freetype /**/
1093 * This symbol, if defined, indicates that we're using our own malloc.
1095 #$d_mymalloc MYMALLOC /**/
1098 * If defined, this macro indicates that the C compiler can handle
1099 * function prototypes.
1102 * This macro is used to declare function parameters for folks who want
1103 * to make declarations with prototypes using a different style than
1104 * the above macros. Use double parentheses. For example:
1106 * int main _((int argc, char *argv[]));
1108 #$prototype CAN_PROTOTYPE /**/
1109 #ifdef CAN_PROTOTYPE
1110 #define _(args) args
1116 * This symbol contains the full pathname to the shell used on this
1117 * on this system to execute Bourne shell scripts. Usually, this will be
1118 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1119 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1122 #define SH_PATH "$sh" /**/
1125 * This symbol is defined to be the type of char used in stdio.h.
1126 * It has the values "unsigned char" or "char".
1128 #define STDCHAR $stdchar /**/
1131 * This symbol indicates how much support of the void type is given by this
1132 * compiler. What various bits mean:
1134 * 1 = supports declaration of void
1135 * 2 = supports arrays of pointers to functions returning void
1136 * 4 = supports comparisons between pointers to void functions and
1137 * addresses of void functions
1138 * 8 = suports declaration of generic void pointers
1140 * The package designer should define VOIDUSED to indicate the requirements
1141 * of the package. This can be done either by #defining VOIDUSED before
1142 * including config.h, or by defining defvoidused in Myinit.U. If the
1143 * latter approach is taken, only those flags will be tested. If the
1144 * level of void support necessary is not present, defines void to int.
1147 #define VOIDUSED $defvoidused
1149 #define VOIDFLAGS $voidflags
1150 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1151 #define void int /* is void to be avoided? */
1152 #define M_VOID /* Xenix strikes again */
1156 * This symbol contains the number of bytes required to align a
1157 * double. Usual values are 2, 4 and 8.
1158 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1159 * Binaries (MAB) for targets with varying alignment. This only matters
1160 * for perl, where the config.h can be generated and installed on one
1161 * system, and used by a different architecture to build an extension.
1162 * The default is eight, for safety.
1164 #define MEM_ALIGNBYTES $alignbytes /**/
1167 * This symbol holds the hexadecimal constant defined in byteorder,
1168 * i.e. 0x1234 or 0x4321, etc...
1169 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1170 * Binaries (MAB) on either big endian or little endian machines.
1171 * The endian-ness is available at compile-time. This only matters
1172 * for perl, where the config.h can be generated and installed on
1173 * one system, and used by a different architecture to build an
1174 * extension. Older versions of NeXT that might not have
1175 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1176 * so the default case (for NeXT) is big endian to catch them.
1177 * This might matter for NeXT 3.0.
1180 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1182 #ifdef __LITTLE_ENDIAN__
1183 #define BYTEORDER 0x1234
1184 #else /* __BIG_ENDIAN__ */
1185 #define BYTEORDER 0x4321
1186 #endif /* ENDIAN CHECK */
1190 * This symbol is defined if the C compiler can cast negative
1191 * or large floating point numbers to 32-bit ints.
1193 #$d_casti32 CASTI32 /**/
1196 * This symbol is defined if the C compiler can cast negative
1197 * numbers to unsigned longs, ints and shorts.
1200 * This symbol contains flags that say what difficulties the compiler
1201 * has casting odd floating values to unsigned long:
1203 * 1 = couldn't cast < 0
1204 * 2 = couldn't cast >= 0x80000000
1205 * 4 = couldn't cast in argument expression list
1207 #$d_castneg CASTNEGFLOAT /**/
1208 #define CASTFLAGS $castflags /**/
1211 * This symbol, if defined, indicates that the closedir() routine
1212 * does not return a value.
1214 #$d_void_closedir VOID_CLOSEDIR /**/
1217 * This preprocessor macro is defined to convert a floating point
1218 * number to a string without a trailing decimal point. This
1219 * emulates the behavior of sprintf("%g"), but is sometimes much more
1220 * efficient. If gconvert() is not available, but gcvt() drops the
1221 * trailing decimal point, then gcvt() is used. If all else fails,
1222 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1223 * macro are: value, number of digits, whether trailing zeros should
1224 * be retained, and the output buffer.
1225 * Possible values are:
1226 * d_Gconvert='gconvert((x),(n),(t),(b))'
1227 * d_Gconvert='gcvt((x),(n),(b))'
1228 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1229 * The last two assume trailing zeros should not be kept.
1231 #define Gconvert(x,n,t,b) $d_Gconvert
1234 * This symbol, if defined, indicates to the C program that
1235 * the GNU C library is being used.
1237 #$d_gnulibc HAS_GNULIBC /**/
1239 * This manifest constant lets the C program know that isascii
1242 #$d_isascii HAS_ISASCII /**/
1245 * This symbol, if defined, indicates that the lchown routine is
1246 * available to operate on a symbolic link (instead of following the
1249 #$d_lchown HAS_LCHOWN /**/
1252 * This manifest constant lets the C program know that the three
1253 * argument form of open(2) is available.
1255 #$d_open3 HAS_OPEN3 /**/
1258 * This symbol, if defined, indicates that the bcopy routine is available
1259 * to copy potentially overlapping memory blocks. Otherwise you should
1260 * probably use memmove() or memcpy(). If neither is defined, roll your
1263 #$d_safebcpy HAS_SAFE_BCOPY /**/
1266 * This symbol, if defined, indicates that the memcpy routine is available
1267 * to copy potentially overlapping memory blocks. Otherwise you should
1268 * probably use memmove() or memcpy(). If neither is defined, roll your
1271 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1274 * This symbol, if defined, indicates that the memcmp routine is available
1275 * and can be used to compare relative magnitudes of chars with their high
1276 * bits set. If it is not defined, roll your own version.
1278 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1281 * This symbol, if defined, indicates that Vr4's sigaction() routine
1284 #$d_sigaction HAS_SIGACTION /**/
1287 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1290 * This macro is used in the same way as sigsetjmp(), but will invoke
1291 * traditional setjmp() if sigsetjmp isn't available.
1292 * See HAS_SIGSETJMP.
1295 * This macro is used in the same way as siglongjmp(), but will invoke
1296 * traditional longjmp() if siglongjmp isn't available.
1297 * See HAS_SIGSETJMP.
1299 #$d_sigsetjmp HAS_SIGSETJMP /**/
1300 #ifdef HAS_SIGSETJMP
1301 #define Sigjmp_buf sigjmp_buf
1302 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1303 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1305 #define Sigjmp_buf jmp_buf
1306 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1307 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1311 * This symbol is defined if the _ptr and _cnt fields (or similar)
1312 * of the stdio FILE structure can be used to access the stdio buffer
1313 * for a file handle. If this is defined, then the FILE_ptr(fp)
1314 * and FILE_cnt(fp) macros will also be defined and should be used
1315 * to access these fields.
1318 * This macro is used to access the _ptr field (or equivalent) of the
1319 * FILE structure pointed to by its argument. This macro will always be
1320 * defined if USE_STDIO_PTR is defined.
1322 /* STDIO_PTR_LVALUE:
1323 * This symbol is defined if the FILE_ptr macro can be used as an
1327 * This macro is used to access the _cnt field (or equivalent) of the
1328 * FILE structure pointed to by its argument. This macro will always be
1329 * defined if USE_STDIO_PTR is defined.
1331 /* STDIO_CNT_LVALUE:
1332 * This symbol is defined if the FILE_cnt macro can be used as an
1335 #$d_stdstdio USE_STDIO_PTR /**/
1336 #ifdef USE_STDIO_PTR
1337 #define FILE_ptr(fp) $stdio_ptr
1338 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1339 #define FILE_cnt(fp) $stdio_cnt
1340 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1344 * This symbol is defined if the _base field (or similar) of the
1345 * stdio FILE structure can be used to access the stdio buffer for
1346 * a file handle. If this is defined, then the FILE_base(fp) macro
1347 * will also be defined and should be used to access this field.
1348 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1349 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1350 * will never be defined unless USE_STDIO_PTR is.
1353 * This macro is used to access the _base field (or equivalent) of the
1354 * FILE structure pointed to by its argument. This macro will always be
1355 * defined if USE_STDIO_BASE is defined.
1358 * This macro is used to determine the number of bytes in the I/O
1359 * buffer pointed to by _base field (or equivalent) of the FILE
1360 * structure pointed to its argument. This macro will always be defined
1361 * if USE_STDIO_BASE is defined.
1363 #$d_stdiobase USE_STDIO_BASE /**/
1364 #ifdef USE_STDIO_BASE
1365 #define FILE_base(fp) $stdio_base
1366 #define FILE_bufsiz(fp) $stdio_bufsiz
1370 * This symbol, if defined, indicates that the vprintf routine is available
1371 * to printf with a pointer to an argument list. If unavailable, you
1372 * may need to write your own, probably in terms of _doprnt().
1374 /* USE_CHAR_VSPRINTF:
1375 * This symbol is defined if this system has vsprintf() returning type
1376 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1377 * is up to the package author to declare vsprintf correctly based on the
1380 #$d_vprintf HAS_VPRINTF /**/
1381 #$d_charvspr USE_CHAR_VSPRINTF /**/
1384 * This symbol contains the size of a double, so that the C preprocessor
1385 * can make decisions based on it.
1387 #define DOUBLESIZE $doublesize /**/
1390 * This symbol, if defined, indicates to the C program that it should
1394 * This symbol, if defined, indicates to the C program that it should
1395 * include <sys/time.h>.
1397 /* I_SYS_TIME_KERNEL:
1398 * This symbol, if defined, indicates to the C program that it should
1399 * include <sys/time.h> with KERNEL defined.
1401 #$i_time I_TIME /**/
1402 #$i_systime I_SYS_TIME /**/
1403 #$i_systimek I_SYS_TIME_KERNEL /**/
1406 * This symbol contains the value of sizeof(int) so that the C
1407 * preprocessor can make decisions based on it.
1410 * This symbol contains the value of sizeof(long) so that the C
1411 * preprocessor can make decisions based on it.
1414 * This symbol contains the value of sizeof(short) so that the C
1415 * preprocessor can make decisions based on it.
1417 #define INTSIZE $intsize /**/
1418 #define LONGSIZE $longsize /**/
1419 #define SHORTSIZE $shortsize /**/
1422 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1423 * non-blocking I/O for the file descriptor. Note that there is no way
1424 * back, i.e. you cannot turn it blocking again this way. If you wish to
1425 * alternatively switch between blocking and non-blocking, use the
1426 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1429 * This symbol holds the errno error code set by read() when no data was
1430 * present on the non-blocking file descriptor.
1433 * This symbol holds the return code from read() when no data is present
1434 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1435 * not defined, then you can't distinguish between no data and EOF by
1436 * issuing a read(). You'll have to find another way to tell for sure!
1439 * This symbol, if defined, indicates to the C program that a read() on
1440 * a non-blocking file descriptor will return 0 on EOF, and not the value
1441 * held in RD_NODATA (-1 usually, in that case!).
1443 #define VAL_O_NONBLOCK $o_nonblock
1444 #define VAL_EAGAIN $eagain
1445 #define RD_NODATA $rd_nodata
1446 #$d_eofnblk EOF_NONBLOCK
1449 * This symbol contains the size of a pointer, so that the C preprocessor
1450 * can make decisions based on it. It will be sizeof(void *) if
1451 * the compiler supports (void *); otherwise it will be
1454 #define PTRSIZE $ptrsize /**/
1457 * This symbol contains the number of bits of random number the rand()
1458 * function produces. Usual values are 15, 16, and 31.
1460 #define RANDBITS $randbits /**/
1463 * This symbol holds the type used by functions that return
1464 * a count of bytes or an error condition. It must be a signed type.
1465 * It is usually ssize_t, but may be long or int, etc.
1466 * It may be necessary to include <sys/types.h> or <unistd.h>
1467 * to get any typedef'ed information.
1468 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1470 #define SSize_t $ssizetype /* signed count of bytes */
1473 * This symbol contains the name of the operating system, as determined
1474 * by Configure. You shouldn't rely on it too much; the specific
1475 * feature tests from Configure are generally more reliable.
1477 #define OSNAME "$osname" /**/
1480 * This variable, if defined, holds the name of the directory in
1481 * which the user wants to put architecture-dependent public
1482 * library files for $package. It is most often a local directory
1483 * such as /usr/local/lib. Programs using this variable must be
1484 * prepared to deal with filename expansion. If ARCHLIB is the
1485 * same as PRIVLIB, it is not defined, since presumably the
1486 * program already searches PRIVLIB.
1489 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1490 * in programs that are not prepared to deal with ~ expansion at run-time.
1492 #$d_archlib ARCHLIB "$archlib" /**/
1493 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1496 * This macro catenates 2 tokens together.
1499 * This macro surrounds its token with double quotes.
1502 #define CAT2(a,b)a/**/b
1503 #define STRINGIFY(a)"a"
1504 /* If you can get stringification with catify, tell me how! */
1506 #if $cpp_stuff == 42
1507 #define CAT2(a,b)a ## b
1508 #define StGiFy(a)# a
1509 #define STRINGIFY(a)StGiFy(a)
1511 #if $cpp_stuff != 1 && $cpp_stuff != 42
1512 #include "Bletch: How does this C preprocessor catenate tokens?"
1516 * This symbol, if defined, contains the full pathname of csh.
1518 #$d_csh HAS_CSH /**/
1520 #define CSH "$full_csh" /**/
1524 * This symbol, if defined, indicates that the endhostent() routine is
1525 * available to close whatever was being used for host queries.
1527 #$d_endhent HAS_ENDHOSTENT /**/
1530 * This symbol, if defined, indicates that the endnetent() routine is
1531 * available to close whatever was being used for network queries.
1533 #$d_endnent HAS_ENDNETENT /**/
1536 * This symbol, if defined, indicates that the endprotoent() routine is
1537 * available to close whatever was being used for protocol queries.
1539 #$d_endpent HAS_ENDPROTOENT /**/
1542 * This symbol, if defined, indicates that the endservent() routine is
1543 * available to close whatever was being used for service queries.
1545 #$d_endsent HAS_ENDSERVENT /**/
1547 /* HAS_GETHOSTBYADDR:
1548 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1549 * available to look up hosts by their IP addresses.
1551 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1553 /* HAS_GETHOSTBYNAME:
1554 * This symbol, if defined, indicates that the gethostbyname() routine is
1555 * available to look up host names in some data base or other.
1557 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1560 * This symbol, if defined, indicates that the gethostent() routine is
1561 * available to look up host names in some data base or another.
1563 #$d_gethent HAS_GETHOSTENT /**/
1565 /* HAS_GETNETBYADDR:
1566 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1567 * available to look up networks by their IP addresses.
1569 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1571 /* HAS_GETNETBYNAME:
1572 * This symbol, if defined, indicates that the getnetbyname() routine is
1573 * available to look up networks by their names.
1575 #$d_getnbyname HAS_GETNETBYNAME /**/
1578 * This symbol, if defined, indicates that the getnetent() routine is
1579 * available to look up network names in some data base or another.
1581 #$d_getnent HAS_GETNETENT /**/
1584 * This symbol, if defined, indicates that the getprotoent() routine is
1585 * available to look up protocols in some data base or another.
1587 #$d_getpent HAS_GETPROTOENT /**/
1589 /* HAS_GETPROTOBYNAME:
1590 * This symbol, if defined, indicates that the getprotobyname()
1591 * routine is available to look up protocols by their name.
1593 /* HAS_GETPROTOBYNUMBER:
1594 * This symbol, if defined, indicates that the getprotobynumber()
1595 * routine is available to look up protocols by their number.
1597 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1598 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1601 * This symbol, if defined, indicates that the getservent() routine is
1602 * available to look up network services in some data base or another.
1604 #$d_getsent HAS_GETSERVENT /**/
1606 /* HAS_GETSERVBYNAME:
1607 * This symbol, if defined, indicates that the getservbyname()
1608 * routine is available to look up services by their name.
1610 /* HAS_GETSERVBYPORT:
1611 * This symbol, if defined, indicates that the getservbyport()
1612 * routine is available to look up services by their port.
1614 #$d_getsbyname HAS_GETSERVBYNAME /**/
1615 #$d_getsbyport HAS_GETSERVBYPORT /**/
1618 * This symbol will be defined if the C compiler supports long
1622 * This symbol contains the size of a long double, so that the
1623 * C preprocessor can make decisions based on it. It is only
1624 * defined if the system supports long doubles.
1626 #$d_longdbl HAS_LONG_DOUBLE /**/
1627 #ifdef HAS_LONG_DOUBLE
1628 #define LONG_DOUBLESIZE $longdblsize /**/
1632 * This symbol will be defined if the C compiler supports
1636 * This symbol contains the size of a long long, so that the
1637 * C preprocessor can make decisions based on it. It is only
1638 * defined if the system supports long long.
1640 #$d_longlong HAS_LONG_LONG /**/
1641 #ifdef HAS_LONG_LONG
1642 #define LONGLONGSIZE $longlongsize /**/
1646 * This symbol, if defined, indicates that the setgroups() routine is
1647 * available to set the list of process groups. If unavailable, multiple
1648 * groups are probably not supported.
1650 #$d_setgrps HAS_SETGROUPS /**/
1653 * This symbol, if defined, indicates that the sethostent() routine is
1656 #$d_sethent HAS_SETHOSTENT /**/
1659 * This symbol, if defined, indicates that the setnetent() routine is
1662 #$d_setnent HAS_SETNETENT /**/
1665 * This symbol, if defined, indicates that the setprotoent() routine is
1668 #$d_setpent HAS_SETPROTOENT /**/
1671 * This symbol, if defined, indicates that the setservent() routine is
1674 #$d_setsent HAS_SETSERVENT /**/
1677 * This symbol, if defined, indicates that the setvbuf routine is
1678 * available to change buffering on an open stdio stream.
1679 * to a line-buffered mode.
1681 #$d_setvbuf HAS_SETVBUF /**/
1684 * This symbol, if defined, indicates that the BSD socket interface is
1688 * This symbol, if defined, indicates that the BSD socketpair() call is
1691 #$d_socket HAS_SOCKET /**/
1692 #$d_sockpair HAS_SOCKETPAIR /**/
1695 * This symbol, if defined, indicates that the union semun is
1696 * defined by including <sys/sem.h>. If not, the user code
1697 * probably needs to define it as:
1700 * struct semid_ds *buf;
1701 * unsigned short *array;
1704 /* USE_SEMCTL_SEMUN:
1705 * This symbol, if defined, indicates that union semun is
1706 * used for semctl IPC_STAT.
1708 /* USE_SEMCTL_SEMID_DS:
1709 * This symbol, if defined, indicates that struct semid_ds * is
1710 * used for semctl IPC_STAT.
1712 #$d_union_semun HAS_UNION_SEMUN /**/
1713 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
1714 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1717 * This symbol's value is either "void" or "int", corresponding to the
1718 * appropriate return type of a signal handler. Thus, you can declare
1719 * a signal handler using "Signal_t (*handler)()", and define the
1720 * handler using "Signal_t handler(sig)".
1722 #define Signal_t $signal_t /* Signal handler's return type */
1725 * This symbol holds the type used for the second argument to
1726 * getgroups() and setgropus(). Usually, this is the same as
1727 * gidtype (gid_t) , but sometimes it isn't.
1728 * It can be int, ushort, uid_t, etc...
1729 * It may be necessary to include <sys/types.h> to get any
1730 * typedef'ed information. This is only required if you have
1731 * getgroups() or setgropus()..
1733 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1734 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1738 * This symbol, if defined, indicates that <netdb.h> exists and
1739 * should be included.
1741 #$i_netdb I_NETDB /**/
1744 * This symbol, if defined, indicates to the C program that it should
1748 * This symbol, if defined, indicates to the C program that struct passwd
1749 * contains pw_quota.
1752 * This symbol, if defined, indicates to the C program that struct passwd
1756 * This symbol, if defined, indicates to the C program that struct passwd
1757 * contains pw_change.
1760 * This symbol, if defined, indicates to the C program that struct passwd
1761 * contains pw_class.
1764 * This symbol, if defined, indicates to the C program that struct passwd
1765 * contains pw_expire.
1768 * This symbol, if defined, indicates to the C program that struct passwd
1769 * contains pw_comment.
1772 * This symbol, if defined, indicates to the C program that struct passwd
1773 * contains pw_gecos.
1776 #$d_pwquota PWQUOTA /**/
1777 #$d_pwage PWAGE /**/
1778 #$d_pwchange PWCHANGE /**/
1779 #$d_pwclass PWCLASS /**/
1780 #$d_pwexpire PWEXPIRE /**/
1781 #$d_pwcomment PWCOMMENT /**/
1782 #$d_pwgecos PWGECOS /**/
1785 * This symbol contains the name of the private library for this package.
1786 * The library is private in the sense that it needn't be in anyone's
1787 * execution path, but it should be accessible by the world. The program
1788 * should be prepared to do ~ expansion.
1791 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1792 * in programs that are not prepared to deal with ~ expansion at run-time.
1794 #define PRIVLIB "$privlib" /**/
1795 #define PRIVLIB_EXP "$privlibexp" /**/
1798 * This symbol contains a list of signal names in order of
1799 * signal number. This is intended
1800 * to be used as a static array initialization, like this:
1801 * char *sig_name[] = { SIG_NAME };
1802 * The signals in the list are separated with commas, and each signal
1803 * is surrounded by double quotes. There is no leading SIG in the signal
1804 * name, i.e. SIGQUIT is known as "QUIT".
1805 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1806 * etc., where nn is the actual signal number (e.g. NUM37).
1807 * The signal number for sig_name[i] is stored in sig_num[i].
1808 * The last element is 0 to terminate the list with a NULL. This
1809 * corresponds to the 0 at the end of the sig_num list.
1812 * This symbol contains a list of signal numbers, in the same order as the
1813 * SIG_NAME list. It is suitable for static array initialization, as in:
1814 * int sig_num[] = { SIG_NUM };
1815 * The signals in the list are separated with commas, and the indices
1816 * within that list and the SIG_NAME list match, so it's easy to compute
1817 * the signal name from a number or vice versa at the price of a small
1818 * dynamic linear lookup.
1819 * Duplicates are allowed, but are moved to the end of the list.
1820 * The signal number corresponding to sig_name[i] is sig_number[i].
1821 * if (i < NSIG) then sig_number[i] == i.
1822 * The last element is 0, corresponding to the 0 at the end of
1823 * the sig_name list.
1825 #define SIG_NAME $sig_name_init /**/
1826 #define SIG_NUM $sig_num /**/
1829 * This symbol contains the name of the private library for this package.
1830 * The library is private in the sense that it needn't be in anyone's
1831 * execution path, but it should be accessible by the world. The program
1832 * should be prepared to do ~ expansion.
1833 * The standard distribution will put nothing in this directory.
1834 * Individual sites may place their own extensions and modules in
1838 * This symbol contains the ~name expanded version of SITEARCH, to be used
1839 * in programs that are not prepared to deal with ~ expansion at run-time.
1841 #define SITEARCH "$sitearch" /**/
1842 #define SITEARCH_EXP "$sitearchexp" /**/
1845 * This symbol contains the name of the private library for this package.
1846 * The library is private in the sense that it needn't be in anyone's
1847 * execution path, but it should be accessible by the world. The program
1848 * should be prepared to do ~ expansion.
1849 * The standard distribution will put nothing in this directory.
1850 * Individual sites may place their own extensions and modules in
1854 * This symbol contains the ~name expanded version of SITELIB, to be used
1855 * in programs that are not prepared to deal with ~ expansion at run-time.
1857 #define SITELIB "$sitelib" /**/
1858 #define SITELIB_EXP "$sitelibexp" /**/
1860 /* DLSYM_NEEDS_UNDERSCORE:
1861 * This symbol, if defined, indicates that we need to prepend an
1862 * underscore to the symbol name before calling dlsym(). This only
1863 * makes sense if you *have* dlsym, which we will presume is the
1864 * case if you're using dl_dlopen.xs.
1866 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1869 * This symbol, if defined, indicates that sfio should
1872 #$d_sfio USE_SFIO /**/
1874 /* USE_DYNAMIC_LOADING:
1875 * This symbol, if defined, indicates that dynamic loading of
1876 * some sort is available.
1878 #$usedl USE_DYNAMIC_LOADING /**/
1881 * This symbol contains the type of the prefix structure element
1882 * in the <db.h> header file. In older versions of DB, it was
1883 * int, while in newer ones it is u_int32_t.
1886 * This symbol contains the type of the prefix structure element
1887 * in the <db.h> header file. In older versions of DB, it was
1888 * int, while in newer ones it is size_t.
1890 #define DB_Hash_t $db_hashtype /**/
1891 #define DB_Prefix_t $db_prefixtype /**/
1894 * This variable contains the string to put in front of a perl
1895 * script to make sure (one hopes) that it runs with perl and not
1898 #define STARTPERL "$startperl" /**/
1901 * This symbol, if defined, indicates that the PerlIO abstraction should
1902 * be used throughout. If not defined, stdio should be
1903 * used in a fully backward compatible manner.
1905 #$useperlio USE_PERLIO /**/
1907 /* HAS_GETHOST_PROTOS:
1908 * This symbol, if defined, indicates that <netdb.h> includes
1909 * prototypes for gethostent(), gethostbyname(), and
1910 * gethostbyaddr(). Otherwise, it is up to the program to guess
1911 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1913 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
1915 /* HAS_GETNET_PROTOS:
1916 * This symbol, if defined, indicates that <netdb.h> includes
1917 * prototypes for getnetent(), getnetbyname(), and
1918 * getnetbyaddr(). Otherwise, it is up to the program to guess
1919 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1921 #$d_getnetprotos HAS_GETNET_PROTOS /**/
1923 /* HAS_GETPROTO_PROTOS:
1924 * This symbol, if defined, indicates that <netdb.h> includes
1925 * prototypes for getprotoent(), getprotobyname(), and
1926 * getprotobyaddr(). Otherwise, it is up to the program to guess
1927 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1929 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1931 /* HAS_GETSERV_PROTOS:
1932 * This symbol, if defined, indicates that <netdb.h> includes
1933 * prototypes for getservent(), getservbyname(), and
1934 * getservbyaddr(). Otherwise, it is up to the program to guess
1935 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1937 #$d_getservprotos HAS_GETSERV_PROTOS /**/
1940 * This symbol holds the type used for the 1st argument
1941 * to gethostbyaddr().
1944 * This symbol holds the type used for the 2nd argument
1945 * to gethostbyaddr().
1948 * This symbol holds the type used for the argument to
1952 * This symbol holds the type used for the 1st argument to
1955 #define Netdb_host_t $netdb_host_type /**/
1956 #define Netdb_hlen_t $netdb_hlen_type /**/
1957 #define Netdb_name_t $netdb_name_type /**/
1958 #define Netdb_net_t $netdb_net_type /**/
1961 * This symbol holds the type used for the 2nd, 3rd, and 4th
1962 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1963 * is defined, and 'int *' otherwise. This is only useful if you
1964 * have select(), of course.
1966 #define Select_fd_set_t $selecttype /**/
1969 * This symbol holds a string representing the architecture name.
1970 * It may be used to construct an architecture-dependant pathname
1971 * where library files may be held under a private library, for
1974 #define ARCHNAME "$archname" /**/
1976 /* HAS_PTHREAD_YIELD:
1977 * This symbol, if defined, indicates that the pthread_yield
1978 * routine is available to yield the execution of the current
1982 * This symbol, if defined, indicates that the sched_yield
1983 * routine is available to yield the execution of the current
1986 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
1987 #$d_sched_yield HAS_SCHED_YIELD /**/
1989 /* PTHREADS_CREATED_JOINABLE:
1990 * This symbol, if defined, indicates that pthreads are created
1991 * in the joinable (aka undetached) state.
1993 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
1996 * This symbol, if defined, indicates that Perl should
1997 * be built to use threads.
1999 /* OLD_PTHREADS_API:
2000 * This symbol, if defined, indicates that Perl should
2001 * be built to use the old draft POSIX threads API.
2003 #$usethreads USE_THREADS /**/
2004 #$d_oldpthreads OLD_PTHREADS_API /**/
2007 * This symbol holds the type returned by time(). It can be long,
2008 * or time_t on BSD sites (in which case <sys/types.h> should be
2011 #define Time_t $timetype /* Time type */
2014 * This symbol, if defined, indicates that the times() routine exists.
2015 * Note that this became obsolete on some systems (SUNOS), which now
2016 * use getrusage(). It may be necessary to include <sys/times.h>.
2018 #$d_times HAS_TIMES /**/
2021 * This symbol holds the type used to declare file positions in libc.
2022 * It can be fpos_t, long, uint, etc... It may be necessary to include
2023 * <sys/types.h> to get any typedef'ed information.
2025 #define Fpos_t $fpostype /* File position type */
2028 * This symbol holds the return type of getgid() and the type of
2029 * argument to setrgid() and related functions. Typically,
2030 * it is the type of group ids in the kernel. It can be int, ushort,
2031 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2032 * any typedef'ed information.
2034 #define Gid_t $gidtype /* Type for getgid(), etc... */
2037 * This symbol holds the type used to declare device numbers.
2038 * It can be int, long, dev_t, etc... It may be necessary to include
2039 * <sys/types.h> to get any typedef'ed information.
2041 #define Dev_t $devtype /* <device> type */
2044 * This symbol holds the type used to declare offsets in the kernel.
2045 * It can be int, long, off_t, etc... It may be necessary to include
2046 * <sys/types.h> to get any typedef'ed information.
2048 #define Off_t $lseektype /* <offset> type */
2051 * This symbol holds the type used to declare file modes
2052 * for systems calls. It is usually mode_t, but may be
2053 * int or unsigned short. It may be necessary to include <sys/types.h>
2054 * to get any typedef'ed information.
2056 #define Mode_t $modetype /* file mode parameter for system calls */
2059 * This symbol holds the type used to declare process ids in the kernel.
2060 * It can be int, uint, pid_t, etc... It may be necessary to include
2061 * <sys/types.h> to get any typedef'ed information.
2063 #define Pid_t $pidtype /* PID type */
2066 * This symbol holds the type used to declare length parameters
2067 * for string functions. It is usually size_t, but may be
2068 * unsigned long, int, etc. It may be necessary to include
2069 * <sys/types.h> to get any typedef'ed information.
2071 #define Size_t $sizetype /* length paramater for string functions */
2074 * This symbol holds the type used to declare user ids in the kernel.
2075 * It can be int, ushort, uid_t, etc... It may be necessary to include
2076 * <sys/types.h> to get any typedef'ed information.
2078 #define Uid_t $uidtype /* UID type */