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 mktime routine is
435 #$d_mktime HAS_MKTIME /**/
438 * This symbol, if defined, indicates that the entire msg*(2) library is
439 * supported (IPC mechanism based on message queues).
444 * This symbol, if defined, indicates that the nice routine is
447 #$d_nice HAS_NICE /**/
450 * This symbol, if defined, indicates that pathconf() is available
451 * to determine file-system related limits and options associated
452 * with a given filename.
455 * This symbol, if defined, indicates that pathconf() is available
456 * to determine file-system related limits and options associated
457 * with a given open file descriptor.
459 #$d_pathconf HAS_PATHCONF /**/
460 #$d_fpathconf HAS_FPATHCONF /**/
463 * This symbol, if defined, indicates that the pause routine is
464 * available to suspend a process until a signal is received.
466 #$d_pause HAS_PAUSE /**/
469 * This symbol, if defined, indicates that the pipe routine is
470 * available to create an inter-process channel.
472 #$d_pipe HAS_PIPE /**/
475 * This symbol, if defined, indicates that the poll routine is
476 * available to poll active file descriptors. You may safely
477 * include <poll.h> when this symbol is defined.
479 #$d_poll HAS_POLL /**/
482 * This symbol, if defined, indicates that the readdir routine is
483 * available to read directory entries. You may have to include
484 * <dirent.h>. See I_DIRENT.
486 #$d_readdir HAS_READDIR /**/
489 * This symbol, if defined, indicates that the seekdir routine is
490 * available. You may have to include <dirent.h>. See I_DIRENT.
492 #$d_seekdir HAS_SEEKDIR /**/
495 * This symbol, if defined, indicates that the telldir routine is
496 * available. You may have to include <dirent.h>. See I_DIRENT.
498 #$d_telldir HAS_TELLDIR /**/
501 * This symbol, if defined, indicates that the rewinddir routine is
502 * available. You may have to include <dirent.h>. See I_DIRENT.
504 #$d_rewinddir HAS_REWINDDIR /**/
507 * This symbol, if defined, indicates that the readlink routine is
508 * available to read the value of a symbolic link.
510 #$d_readlink HAS_READLINK /**/
513 * This symbol, if defined, indicates that the rename routine is available
514 * to rename files. Otherwise you should do the unlink(), link(), unlink()
517 #$d_rename HAS_RENAME /**/
520 * This symbol, if defined, indicates that the rmdir routine is
521 * available to remove directories. Otherwise you should fork off a
522 * new process to exec /bin/rmdir.
524 #$d_rmdir HAS_RMDIR /**/
527 * This symbol, if defined, indicates that the select routine is
528 * available to select active file descriptors. If the timeout field
529 * is used, <sys/time.h> may need to be included.
531 #$d_select HAS_SELECT /**/
534 * This symbol, if defined, indicates that the entire sem*(2) library is
540 * This symbol, if defined, indicates that the setegid routine is available
541 * to change the effective gid of the current program.
543 #$d_setegid HAS_SETEGID /**/
546 * This symbol, if defined, indicates that the seteuid routine is available
547 * to change the effective uid of the current program.
549 #$d_seteuid HAS_SETEUID /**/
552 * This symbol, if defined, indicates that the setlinebuf routine is
553 * available to change stderr or stdout from block-buffered or unbuffered
554 * to a line-buffered mode.
556 #$d_setlinebuf HAS_SETLINEBUF /**/
559 * This symbol, if defined, indicates that the setlocale routine is
560 * available to handle locale-specific ctype implementations.
562 #$d_setlocale HAS_SETLOCALE /**/
565 * This symbol, if defined, indicates that the setpgid(pid, gpid)
566 * routine is available to set process group ID.
568 #$d_setpgid HAS_SETPGID /**/
571 * This symbol, if defined, indicates that the setpgrp routine is
572 * available to set the current process group.
575 * This symbol, if defined, indicates that setpgrp needs two
576 * arguments whereas USG one needs none. See also HAS_SETPGID
577 * for a POSIX interface.
579 #$d_setpgrp HAS_SETPGRP /**/
580 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
583 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
584 * routine is available to set the current process group.
586 #$d_setpgrp2 HAS_SETPGRP2 /**/
589 * This symbol, if defined, indicates that the setpriority routine is
590 * available to set a process's priority.
592 #$d_setprior HAS_SETPRIORITY /**/
595 * This symbol, if defined, indicates that the setregid routine is
596 * available to change the real and effective gid of the current
600 * This symbol, if defined, indicates that the setresgid routine is
601 * available to change the real, effective and saved gid of the current
604 #$d_setregid HAS_SETREGID /**/
605 #$d_setresgid HAS_SETRESGID /**/
608 * This symbol, if defined, indicates that the setreuid routine is
609 * available to change the real and effective uid of the current
613 * This symbol, if defined, indicates that the setresuid routine is
614 * available to change the real, effective and saved uid of the current
617 #$d_setreuid HAS_SETREUID /**/
618 #$d_setresuid HAS_SETRESUID /**/
621 * This symbol, if defined, indicates that the setrgid routine is available
622 * to change the real gid of the current program.
624 #$d_setrgid HAS_SETRGID /**/
627 * This symbol, if defined, indicates that the setruid routine is available
628 * to change the real uid of the current program.
630 #$d_setruid HAS_SETRUID /**/
633 * This symbol, if defined, indicates that the setsid routine is
634 * available to set the process group ID.
636 #$d_setsid HAS_SETSID /**/
639 * This symbol, if defined, indicates that the entire shm*(2) library is
645 * This symbol holds the return type of the shmat() system call.
646 * Usually set to 'void *' or 'char *'.
648 /* HAS_SHMAT_PROTOTYPE:
649 * This symbol, if defined, indicates that the sys/shm.h includes
650 * a prototype for shmat(). Otherwise, it is up to the program to
651 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
652 * but not always right so it should be emitted by the program only
653 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
655 #define Shmat_t $shmattype /**/
656 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
659 * This symbol is defined if this system has a stat structure declaring
660 * st_blksize and st_blocks.
662 #$d_statblks USE_STAT_BLOCKS /**/
665 * This symbol is defined to indicate that the strchr()/strrchr()
666 * functions are available for string searching. If not, try the
667 * index()/rindex() pair.
670 * This symbol is defined to indicate that the index()/rindex()
671 * functions are available for string searching.
673 #$d_strchr HAS_STRCHR /**/
674 #$d_index HAS_INDEX /**/
677 * This symbol, if defined, indicates that the strcoll routine is
678 * available to compare strings using collating information.
680 #$d_strcoll HAS_STRCOLL /**/
683 * This symbol, if defined, indicates that this C compiler knows how
684 * to copy structures. If undefined, you'll need to use a block copy
685 * routine of some sort instead.
687 #$d_strctcpy USE_STRUCT_COPY /**/
690 * This symbol, if defined, indicates that the strerror routine is
691 * available to translate error numbers to strings. See the writeup
692 * of Strerror() in this file before you try to define your own.
695 * This symbol, if defined, indicates that the sys_errlist array is
696 * available to translate error numbers to strings. The extern int
697 * sys_nerr gives the size of that table.
700 * This preprocessor symbol is defined as a macro if strerror() is
701 * not available to translate error numbers to strings but sys_errlist[]
704 #$d_strerror HAS_STRERROR /**/
705 #$d_syserrlst HAS_SYS_ERRLIST /**/
706 #define Strerror(e) $d_strerrm
709 * This symbol, if defined, indicates that the strtod routine is
710 * available to provide better numeric string conversion than atof().
712 #$d_strtod HAS_STRTOD /**/
715 * This symbol, if defined, indicates that the strtol routine is available
716 * to provide better numeric string conversion than atoi() and friends.
718 #$d_strtol HAS_STRTOL /**/
721 * This symbol, if defined, indicates that the strtoul routine is
722 * available to provide conversion of strings to unsigned long.
724 #$d_strtoul HAS_STRTOUL /**/
727 * This symbol, if defined, indicates that the strxfrm() routine is
728 * available to transform strings.
730 #$d_strxfrm HAS_STRXFRM /**/
733 * This symbol, if defined, indicates that the symlink routine is available
734 * to create symbolic links.
736 #$d_symlink HAS_SYMLINK /**/
739 * This symbol, if defined, indicates that the syscall routine is
740 * available to call arbitrary system calls. If undefined, that's tough.
742 #$d_syscall HAS_SYSCALL /**/
745 * This symbol, if defined, indicates that sysconf() is available
746 * to determine system related limits and options.
748 #$d_sysconf HAS_SYSCONF /**/
751 * This symbol, if defined, indicates that the system routine is
752 * available to issue a shell command.
754 #$d_system HAS_SYSTEM /**/
757 * This symbol, if defined, indicates that the tcgetpgrp routine is
758 * available to get foreground process group ID.
760 #$d_tcgetpgrp HAS_TCGETPGRP /**/
763 * This symbol, if defined, indicates that the tcsetpgrp routine is
764 * available to set foreground process group ID.
766 #$d_tcsetpgrp HAS_TCSETPGRP /**/
769 * This symbol, if defined, indicates that the truncate routine is
770 * available to truncate files.
772 #$d_truncate HAS_TRUNCATE /**/
775 * This symbol, if defined, indicates that the tzname[] array is
776 * available to access timezone names.
778 #$d_tzname HAS_TZNAME /**/
781 * This symbol, if defined, indicates that the umask routine is
782 * available to set and get the value of the file creation mask.
784 #$d_umask HAS_UMASK /**/
787 * This symbol, if defined, indicates that vfork() exists.
789 #$d_vfork HAS_VFORK /**/
792 * This symbol, if defined, indicates that this C compiler knows about
793 * the volatile declaration.
795 #$d_volatile HASVOLATILE /**/
801 * This symbol, if defined, indicates that wait4() exists.
803 #$d_wait4 HAS_WAIT4 /**/
806 * This symbol, if defined, indicates that the waitpid routine is
807 * available to wait for child process.
809 #$d_waitpid HAS_WAITPID /**/
812 * This symbol, if defined, indicates that the wcstombs routine is
813 * available to convert wide character strings to multibyte strings.
815 #$d_wcstombs HAS_WCSTOMBS /**/
818 * This symbol, if defined, indicates that the wctomb routine is available
819 * to covert a wide character to a multibyte.
821 #$d_wctomb HAS_WCTOMB /**/
824 * This symbol, if defined, indicates that <dbm.h> exists and should
828 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
829 * should be included.
832 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
835 * This symbol, if defined, indicates to the C program that it should
836 * include <dirent.h>. Using this symbol also triggers the definition
837 * of the Direntry_t define which ends up being 'struct dirent' or
838 * 'struct direct' depending on the availability of <dirent.h>.
841 * This symbol, if defined, indicates to the C program that the length
842 * of directory entry names is provided by a d_namlen field. Otherwise
843 * you need to do strlen() on the d_name field.
846 * This symbol is set to 'struct direct' or 'struct dirent' depending on
847 * whether dirent is available or not. You should use this pseudo type to
848 * portably declare your directory entries.
850 #$i_dirent I_DIRENT /**/
851 #$d_dirnamlen DIRNAMLEN /**/
852 #define Direntry_t $direntrytype
855 * This symbol, if defined, indicates that <dlfcn.h> exists and should
858 #$i_dlfcn I_DLFCN /**/
861 * This manifest constant tells the C program to include <fcntl.h>.
863 #$i_fcntl I_FCNTL /**/
866 * This symbol, if defined, indicates to the C program that it should
867 * include <float.h> to get definition of symbols like DBL_MAX or
868 * DBL_MIN, i.e. machine dependent floating point values.
870 #$i_float I_FLOAT /**/
873 * This symbol, if defined, indicates to the C program that it should
879 * This symbol, if defined, indicates to the C program that it should
880 * include <limits.h> to get definition of symbols like WORD_BIT or
881 * LONG_MAX, i.e. machine dependant limitations.
883 #$i_limits I_LIMITS /**/
886 * This symbol, if defined, indicates to the C program that it should
887 * include <locale.h>.
889 #$i_locale I_LOCALE /**/
892 * This symbol, if defined, indicates to the C program that it should
898 * This symbol, if defined, indicates to the C program that it should
899 * include <memory.h>.
901 #$i_memory I_MEMORY /**/
904 * This symbol, if defined, indicates that <ndbm.h> exists and should
910 * This symbol, if defined, indicates that <net/errno.h> exists and
911 * should be included.
913 #$i_neterrno I_NET_ERRNO /**/
916 * This symbol, if defined, indicates to the C program that it should
917 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
919 #$i_niin I_NETINET_IN /**/
922 * This symbol, if defined, indicates to the C program that it should
928 * This symbol, if defined, indicates that <stddef.h> exists and should
931 #$i_stddef I_STDDEF /**/
934 * This symbol, if defined, indicates that <stdlib.h> exists and should
937 #$i_stdlib I_STDLIB /**/
940 * This symbol, if defined, indicates to the C program that it should
941 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
943 #$i_string I_STRING /**/
946 * This symbol, if defined, indicates to the C program that it should
947 * include <sys/dir.h>.
949 #$i_sysdir I_SYS_DIR /**/
952 * This symbol, if defined, indicates to the C program that it should
953 * include <sys/file.h> to get definition of R_OK and friends.
955 #$i_sysfile I_SYS_FILE /**/
958 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
959 * be included. Otherwise, include <sgtty.h> or <termio.h>.
961 #$i_sysioctl I_SYS_IOCTL /**/
964 * This symbol, if defined, indicates to the C program that it should
965 * include <sys/ndir.h>.
967 #$i_sysndir I_SYS_NDIR /**/
970 * This symbol, if defined, indicates to the C program that it should
971 * include <sys/param.h>.
973 #$i_sysparam I_SYS_PARAM /**/
976 * This symbol, if defined, indicates to the C program that it should
977 * include <sys/resource.h>.
979 #$i_sysresrc I_SYS_RESOURCE /**/
982 * This symbol, if defined, indicates to the C program that it should
983 * include <sys/select.h> in order to get definition of struct timeval.
985 #$i_sysselct I_SYS_SELECT /**/
988 * This symbol, if defined, indicates to the C program that it should
989 * include <sys/stat.h>.
991 #$i_sysstat I_SYS_STAT /**/
994 * This symbol, if defined, indicates to the C program that it should
995 * include <sys/times.h>.
997 #$i_systimes I_SYS_TIMES /**/
1000 * This symbol, if defined, indicates to the C program that it should
1001 * include <sys/un.h> to get UNIX domain socket definitions.
1003 #$i_sysun I_SYS_UN /**/
1006 * This symbol, if defined, indicates to the C program that it should
1007 * include <sys/wait.h>.
1009 #$i_syswait I_SYS_WAIT /**/
1012 * This symbol, if defined, indicates that the program should include
1013 * <termio.h> rather than <sgtty.h>. There are also differences in
1014 * the ioctl() calls that depend on the value of this symbol.
1017 * This symbol, if defined, indicates that the program should include
1018 * the POSIX termios.h rather than sgtty.h or termio.h.
1019 * There are also differences in the ioctl() calls that depend on the
1020 * value of this symbol.
1023 * This symbol, if defined, indicates that the program should include
1024 * <sgtty.h> rather than <termio.h>. There are also differences in
1025 * the ioctl() calls that depend on the value of this symbol.
1027 #$i_termio I_TERMIO /**/
1028 #$i_termios I_TERMIOS /**/
1029 #$i_sgtty I_SGTTY /**/
1032 * This symbol, if defined, indicates to the C program that it should
1033 * include <unistd.h>.
1035 #$i_unistd I_UNISTD /**/
1038 * This symbol, if defined, indicates to the C program that it should
1039 * include <utime.h>.
1041 #$i_utime I_UTIME /**/
1044 * This symbol, if defined, indicates to the C program that it should
1045 * include <values.h> to get definition of symbols like MINFLOAT or
1046 * MAXLONG, i.e. machine dependant limitations. Probably, you
1047 * should use <limits.h> instead, if it is available.
1049 #$i_values I_VALUES /**/
1052 * This symbol, if defined, indicates that <stdarg.h> exists and should
1056 * This symbol, if defined, indicates to the C program that it should
1057 * include <varargs.h>.
1059 #$i_stdarg I_STDARG /**/
1060 #$i_varargs I_VARARGS /**/
1063 * This symbol, if defined, indicates to the C program that it should
1066 #$i_vfork I_VFORK /**/
1069 * This variable contains the return type of free(). It is usually
1070 * void, but occasionally int.
1073 * This symbol is the type of pointer returned by malloc and realloc.
1075 #define Malloc_t $malloctype /**/
1076 #define Free_t $freetype /**/
1079 * This symbol, if defined, indicates that we're using our own malloc.
1081 #$d_mymalloc MYMALLOC /**/
1084 * If defined, this macro indicates that the C compiler can handle
1085 * function prototypes.
1088 * This macro is used to declare function parameters for folks who want
1089 * to make declarations with prototypes using a different style than
1090 * the above macros. Use double parentheses. For example:
1092 * int main _((int argc, char *argv[]));
1094 #$prototype CAN_PROTOTYPE /**/
1095 #ifdef CAN_PROTOTYPE
1096 #define _(args) args
1102 * This symbol contains the full pathname to the shell used on this
1103 * on this system to execute Bourne shell scripts. Usually, this will be
1104 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1105 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1108 #define SH_PATH "$sh" /**/
1111 * This symbol is defined to be the type of char used in stdio.h.
1112 * It has the values "unsigned char" or "char".
1114 #define STDCHAR $stdchar /**/
1117 * This symbol indicates how much support of the void type is given by this
1118 * compiler. What various bits mean:
1120 * 1 = supports declaration of void
1121 * 2 = supports arrays of pointers to functions returning void
1122 * 4 = supports comparisons between pointers to void functions and
1123 * addresses of void functions
1124 * 8 = suports declaration of generic void pointers
1126 * The package designer should define VOIDUSED to indicate the requirements
1127 * of the package. This can be done either by #defining VOIDUSED before
1128 * including config.h, or by defining defvoidused in Myinit.U. If the
1129 * latter approach is taken, only those flags will be tested. If the
1130 * level of void support necessary is not present, defines void to int.
1133 #define VOIDUSED $defvoidused
1135 #define VOIDFLAGS $voidflags
1136 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1137 #define void int /* is void to be avoided? */
1138 #define M_VOID /* Xenix strikes again */
1142 * This symbol contains the number of bytes required to align a
1143 * double. Usual values are 2, 4 and 8.
1144 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1145 * Binaries (MAB) for targets with varying alignment. This only matters
1146 * for perl, where the config.h can be generated and installed on one
1147 * system, and used by a different architecture to build an extension.
1148 * The default is eight, for safety.
1150 #define MEM_ALIGNBYTES $alignbytes /**/
1153 * This symbol holds the hexadecimal constant defined in byteorder,
1154 * i.e. 0x1234 or 0x4321, etc...
1155 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1156 * Binaries (MAB) on either big endian or little endian machines.
1157 * The endian-ness is available at compile-time. This only matters
1158 * for perl, where the config.h can be generated and installed on
1159 * one system, and used by a different architecture to build an
1160 * extension. Older versions of NeXT that might not have
1161 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1162 * so the default case (for NeXT) is big endian to catch them.
1163 * This might matter for NeXT 3.0.
1166 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1168 #ifdef __LITTLE_ENDIAN__
1169 #define BYTEORDER 0x1234
1170 #else /* __BIG_ENDIAN__ */
1171 #define BYTEORDER 0x4321
1172 #endif /* ENDIAN CHECK */
1176 * This symbol is defined if the C compiler can cast negative
1177 * or large floating point numbers to 32-bit ints.
1179 #$d_casti32 CASTI32 /**/
1182 * This symbol is defined if the C compiler can cast negative
1183 * numbers to unsigned longs, ints and shorts.
1186 * This symbol contains flags that say what difficulties the compiler
1187 * has casting odd floating values to unsigned long:
1189 * 1 = couldn't cast < 0
1190 * 2 = couldn't cast >= 0x80000000
1191 * 4 = couldn't cast in argument expression list
1193 #$d_castneg CASTNEGFLOAT /**/
1194 #define CASTFLAGS $castflags /**/
1197 * This symbol, if defined, indicates that the closedir() routine
1198 * does not return a value.
1200 #$d_void_closedir VOID_CLOSEDIR /**/
1203 * This preprocessor macro is defined to convert a floating point
1204 * number to a string without a trailing decimal point. This
1205 * emulates the behavior of sprintf("%g"), but is sometimes much more
1206 * efficient. If gconvert() is not available, but gcvt() drops the
1207 * trailing decimal point, then gcvt() is used. If all else fails,
1208 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1209 * macro are: value, number of digits, whether trailing zeros should
1210 * be retained, and the output buffer.
1211 * Possible values are:
1212 * d_Gconvert='gconvert((x),(n),(t),(b))'
1213 * d_Gconvert='gcvt((x),(n),(b))'
1214 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1215 * The last two assume trailing zeros should not be kept.
1217 #define Gconvert(x,n,t,b) $d_Gconvert
1220 * This symbol, if defined, indicates to the C program that
1221 * the GNU C library is being used.
1223 #$d_gnulibc HAS_GNULIBC /**/
1225 * This manifest constant lets the C program know that isascii
1228 #$d_isascii HAS_ISASCII /**/
1231 * This manifest constant lets the C program know that the three
1232 * argument form of open(2) is available.
1234 #$d_open3 HAS_OPEN3 /**/
1237 * This symbol, if defined, indicates that the bcopy routine is available
1238 * to copy potentially overlapping memory blocks. Otherwise you should
1239 * probably use memmove() or memcpy(). If neither is defined, roll your
1242 #$d_safebcpy HAS_SAFE_BCOPY /**/
1245 * This symbol, if defined, indicates that the memcpy routine is available
1246 * to copy potentially overlapping memory blocks. Otherwise you should
1247 * probably use memmove() or memcpy(). If neither is defined, roll your
1250 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1253 * This symbol, if defined, indicates that the memcmp routine is available
1254 * and can be used to compare relative magnitudes of chars with their high
1255 * bits set. If it is not defined, roll your own version.
1257 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1260 * This symbol, if defined, indicates that Vr4's sigaction() routine
1263 #$d_sigaction HAS_SIGACTION /**/
1266 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1269 * This macro is used in the same way as sigsetjmp(), but will invoke
1270 * traditional setjmp() if sigsetjmp isn't available.
1271 * See HAS_SIGSETJMP.
1274 * This macro is used in the same way as siglongjmp(), but will invoke
1275 * traditional longjmp() if siglongjmp isn't available.
1276 * See HAS_SIGSETJMP.
1278 #$d_sigsetjmp HAS_SIGSETJMP /**/
1279 #ifdef HAS_SIGSETJMP
1280 #define Sigjmp_buf sigjmp_buf
1281 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1282 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1284 #define Sigjmp_buf jmp_buf
1285 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1286 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1290 * This symbol is defined if the _ptr and _cnt fields (or similar)
1291 * of the stdio FILE structure can be used to access the stdio buffer
1292 * for a file handle. If this is defined, then the FILE_ptr(fp)
1293 * and FILE_cnt(fp) macros will also be defined and should be used
1294 * to access these fields.
1297 * This macro is used to access the _ptr field (or equivalent) of the
1298 * FILE structure pointed to by its argument. This macro will always be
1299 * defined if USE_STDIO_PTR is defined.
1301 /* STDIO_PTR_LVALUE:
1302 * This symbol is defined if the FILE_ptr macro can be used as an
1306 * This macro is used to access the _cnt field (or equivalent) of the
1307 * FILE structure pointed to by its argument. This macro will always be
1308 * defined if USE_STDIO_PTR is defined.
1310 /* STDIO_CNT_LVALUE:
1311 * This symbol is defined if the FILE_cnt macro can be used as an
1314 #$d_stdstdio USE_STDIO_PTR /**/
1315 #ifdef USE_STDIO_PTR
1316 #define FILE_ptr(fp) $stdio_ptr
1317 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1318 #define FILE_cnt(fp) $stdio_cnt
1319 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1323 * This symbol is defined if the _base field (or similar) of the
1324 * stdio FILE structure can be used to access the stdio buffer for
1325 * a file handle. If this is defined, then the FILE_base(fp) macro
1326 * will also be defined and should be used to access this field.
1327 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1328 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1329 * will never be defined unless USE_STDIO_PTR is.
1332 * This macro is used to access the _base field (or equivalent) of the
1333 * FILE structure pointed to by its argument. This macro will always be
1334 * defined if USE_STDIO_BASE is defined.
1337 * This macro is used to determine the number of bytes in the I/O
1338 * buffer pointed to by _base field (or equivalent) of the FILE
1339 * structure pointed to its argument. This macro will always be defined
1340 * if USE_STDIO_BASE is defined.
1342 #$d_stdiobase USE_STDIO_BASE /**/
1343 #ifdef USE_STDIO_BASE
1344 #define FILE_base(fp) $stdio_base
1345 #define FILE_bufsiz(fp) $stdio_bufsiz
1349 * This symbol, if defined, indicates that the vprintf routine is available
1350 * to printf with a pointer to an argument list. If unavailable, you
1351 * may need to write your own, probably in terms of _doprnt().
1353 /* USE_CHAR_VSPRINTF:
1354 * This symbol is defined if this system has vsprintf() returning type
1355 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1356 * is up to the package author to declare vsprintf correctly based on the
1359 #$d_vprintf HAS_VPRINTF /**/
1360 #$d_charvspr USE_CHAR_VSPRINTF /**/
1363 * This symbol contains the size of a double, so that the C preprocessor
1364 * can make decisions based on it.
1366 #define DOUBLESIZE $doublesize /**/
1369 * This symbol, if defined, indicates to the C program that it should
1373 * This symbol, if defined, indicates to the C program that it should
1374 * include <sys/time.h>.
1376 /* I_SYS_TIME_KERNEL:
1377 * This symbol, if defined, indicates to the C program that it should
1378 * include <sys/time.h> with KERNEL defined.
1380 #$i_time I_TIME /**/
1381 #$i_systime I_SYS_TIME /**/
1382 #$i_systimek I_SYS_TIME_KERNEL /**/
1385 * This symbol contains the value of sizeof(int) so that the C
1386 * preprocessor can make decisions based on it.
1389 * This symbol contains the value of sizeof(long) so that the C
1390 * preprocessor can make decisions based on it.
1393 * This symbol contains the value of sizeof(short) so that the C
1394 * preprocessor can make decisions based on it.
1396 #define INTSIZE $intsize /**/
1397 #define LONGSIZE $longsize /**/
1398 #define SHORTSIZE $shortsize /**/
1401 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1402 * non-blocking I/O for the file descriptor. Note that there is no way
1403 * back, i.e. you cannot turn it blocking again this way. If you wish to
1404 * alternatively switch between blocking and non-blocking, use the
1405 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1408 * This symbol holds the errno error code set by read() when no data was
1409 * present on the non-blocking file descriptor.
1412 * This symbol holds the return code from read() when no data is present
1413 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1414 * not defined, then you can't distinguish between no data and EOF by
1415 * issuing a read(). You'll have to find another way to tell for sure!
1418 * This symbol, if defined, indicates to the C program that a read() on
1419 * a non-blocking file descriptor will return 0 on EOF, and not the value
1420 * held in RD_NODATA (-1 usually, in that case!).
1422 #define VAL_O_NONBLOCK $o_nonblock
1423 #define VAL_EAGAIN $eagain
1424 #define RD_NODATA $rd_nodata
1425 #$d_eofnblk EOF_NONBLOCK
1428 * This symbol contains the size of a pointer, so that the C preprocessor
1429 * can make decisions based on it. It will be sizeof(void *) if
1430 * the compiler supports (void *); otherwise it will be
1433 #define PTRSIZE $ptrsize /**/
1436 * This symbol contains the number of bits of random number the rand()
1437 * function produces. Usual values are 15, 16, and 31.
1439 #define RANDBITS $randbits /**/
1442 * This symbol holds the type used by functions that return
1443 * a count of bytes or an error condition. It must be a signed type.
1444 * It is usually ssize_t, but may be long or int, etc.
1445 * It may be necessary to include <sys/types.h> or <unistd.h>
1446 * to get any typedef'ed information.
1447 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1449 #define SSize_t $ssizetype /* signed count of bytes */
1452 * This symbol contains the name of the operating system, as determined
1453 * by Configure. You shouldn't rely on it too much; the specific
1454 * feature tests from Configure are generally more reliable.
1456 #define OSNAME "$osname" /**/
1459 * This variable, if defined, holds the name of the directory in
1460 * which the user wants to put architecture-dependent public
1461 * library files for $package. It is most often a local directory
1462 * such as /usr/local/lib. Programs using this variable must be
1463 * prepared to deal with filename expansion. If ARCHLIB is the
1464 * same as PRIVLIB, it is not defined, since presumably the
1465 * program already searches PRIVLIB.
1468 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1469 * in programs that are not prepared to deal with ~ expansion at run-time.
1471 #$d_archlib ARCHLIB "$archlib" /**/
1472 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1475 * This macro catenates 2 tokens together.
1478 * This macro surrounds its token with double quotes.
1481 #define CAT2(a,b)a/**/b
1482 #define STRINGIFY(a)"a"
1483 /* If you can get stringification with catify, tell me how! */
1485 #if $cpp_stuff == 42
1486 #define CAT2(a,b)a ## b
1487 #define StGiFy(a)# a
1488 #define STRINGIFY(a)StGiFy(a)
1490 #if $cpp_stuff != 1 && $cpp_stuff != 42
1491 #include "Bletch: How does this C preprocessor catenate tokens?"
1495 * This symbol, if defined, contains the full pathname of csh.
1497 #$d_csh HAS_CSH /**/
1499 #define CSH "$full_csh" /**/
1503 * This symbol, if defined, indicates that the endhostent() routine is
1504 * available to close whatever was being used for host queries.
1506 #$d_endhent HAS_ENDHOSTENT /**/
1509 * This symbol, if defined, indicates that the endnetent() routine is
1510 * available to close whatever was being used for network queries.
1512 #$d_endnent HAS_ENDNETENT /**/
1515 * This symbol, if defined, indicates that the endprotoent() routine is
1516 * available to close whatever was being used for protocol queries.
1518 #$d_endpent HAS_ENDPROTOENT /**/
1521 * This symbol, if defined, indicates that the endservent() routine is
1522 * available to close whatever was being used for service queries.
1524 #$d_endsent HAS_ENDSERVENT /**/
1526 /* HAS_GETHOSTBYADDR:
1527 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1528 * available to look up hosts by their IP addresses.
1530 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1532 /* HAS_GETHOSTBYNAME:
1533 * This symbol, if defined, indicates that the gethostbyname() routine is
1534 * available to look up host names in some data base or other.
1536 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1539 * This symbol, if defined, indicates that the gethostent() routine is
1540 * available to look up host names in some data base or another.
1542 #$d_gethent HAS_GETHOSTENT /**/
1544 /* HAS_GETNETBYADDR:
1545 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1546 * available to look up networks by their IP addresses.
1548 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1550 /* HAS_GETNETBYNAME:
1551 * This symbol, if defined, indicates that the getnetbyname() routine is
1552 * available to look up networks by their names.
1554 #$d_getnbyname HAS_GETNETBYNAME /**/
1557 * This symbol, if defined, indicates that the getnetent() routine is
1558 * available to look up network names in some data base or another.
1560 #$d_getnent HAS_GETNETENT /**/
1563 * This symbol, if defined, indicates that the getprotoent() routine is
1564 * available to look up protocols in some data base or another.
1566 #$d_getpent HAS_GETPROTOENT /**/
1568 /* HAS_GETPROTOBYNAME:
1569 * This symbol, if defined, indicates that the getprotobyname()
1570 * routine is available to look up protocols by their name.
1572 /* HAS_GETPROTOBYNUMBER:
1573 * This symbol, if defined, indicates that the getprotobynumber()
1574 * routine is available to look up protocols by their number.
1576 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1577 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1580 * This symbol, if defined, indicates that the getservent() routine is
1581 * available to look up network services in some data base or another.
1583 #$d_getsent HAS_GETSERVENT /**/
1585 /* HAS_GETSERVBYNAME:
1586 * This symbol, if defined, indicates that the getservbyname()
1587 * routine is available to look up services by their name.
1589 /* HAS_GETSERVBYPORT:
1590 * This symbol, if defined, indicates that the getservbyport()
1591 * routine is available to look up services by their port.
1593 #$d_getsbyname HAS_GETSERVBYNAME /**/
1594 #$d_getsbyport HAS_GETSERVBYPORT /**/
1597 * This symbol will be defined if the C compiler supports long
1601 * This symbol contains the size of a long double, so that the
1602 * C preprocessor can make decisions based on it. It is only
1603 * defined if the system supports long doubles.
1605 #$d_longdbl HAS_LONG_DOUBLE /**/
1606 #ifdef HAS_LONG_DOUBLE
1607 #define LONG_DOUBLESIZE $longdblsize /**/
1611 * This symbol will be defined if the C compiler supports
1615 * This symbol contains the size of a long long, so that the
1616 * C preprocessor can make decisions based on it. It is only
1617 * defined if the system supports long long.
1619 #$d_longlong HAS_LONG_LONG /**/
1620 #ifdef HAS_LONG_LONG
1621 #define LONGLONGSIZE $longlongsize /**/
1625 * This symbol, if defined, indicates that the mkstemp routine is
1626 * available to create and open a unique temporary file.
1628 #$d_mkstemp HAS_MKSTEMP /**/
1631 * This symbol, if defined, indicates that the setgroups() routine is
1632 * available to set the list of process groups. If unavailable, multiple
1633 * groups are probably not supported.
1635 #$d_setgrps HAS_SETGROUPS /**/
1638 * This symbol, if defined, indicates that the sethostent() routine is
1641 #$d_sethent HAS_SETHOSTENT /**/
1644 * This symbol, if defined, indicates that the setnetent() routine is
1647 #$d_setnent HAS_SETNETENT /**/
1650 * This symbol, if defined, indicates that the setprotoent() routine is
1653 #$d_setpent HAS_SETPROTOENT /**/
1656 * This symbol, if defined, indicates that the setservent() routine is
1659 #$d_setsent HAS_SETSERVENT /**/
1662 * This symbol, if defined, indicates that the setvbuf routine is
1663 * available to change buffering on an open stdio stream.
1664 * to a line-buffered mode.
1666 #$d_setvbuf HAS_SETVBUF /**/
1669 * This symbol, if defined, indicates that the BSD socket interface is
1673 * This symbol, if defined, indicates that the BSD socketpair() call is
1676 #$d_socket HAS_SOCKET /**/
1677 #$d_sockpair HAS_SOCKETPAIR /**/
1680 * This symbol's value is either "void" or "int", corresponding to the
1681 * appropriate return type of a signal handler. Thus, you can declare
1682 * a signal handler using "Signal_t (*handler)()", and define the
1683 * handler using "Signal_t handler(sig)".
1685 #define Signal_t $signal_t /* Signal handler's return type */
1688 * This symbol holds the type used for the second argument to
1689 * getgroups() and setgropus(). Usually, this is the same as
1690 * gidtype (gid_t) , but sometimes it isn't.
1691 * It can be int, ushort, uid_t, etc...
1692 * It may be necessary to include <sys/types.h> to get any
1693 * typedef'ed information. This is only required if you have
1694 * getgroups() or setgropus()..
1696 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1697 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1701 * This symbol, if defined, indicates that <netdb.h> exists and
1702 * should be included.
1704 #$i_netdb I_NETDB /**/
1707 * This symbol, if defined, indicates to the C program that it should
1711 * This symbol, if defined, indicates to the C program that struct passwd
1712 * contains pw_quota.
1715 * This symbol, if defined, indicates to the C program that struct passwd
1719 * This symbol, if defined, indicates to the C program that struct passwd
1720 * contains pw_change.
1723 * This symbol, if defined, indicates to the C program that struct passwd
1724 * contains pw_class.
1727 * This symbol, if defined, indicates to the C program that struct passwd
1728 * contains pw_expire.
1731 * This symbol, if defined, indicates to the C program that struct passwd
1732 * contains pw_comment.
1735 * This symbol, if defined, indicates to the C program that struct passwd
1736 * contains pw_gecos.
1739 #$d_pwquota PWQUOTA /**/
1740 #$d_pwage PWAGE /**/
1741 #$d_pwchange PWCHANGE /**/
1742 #$d_pwclass PWCLASS /**/
1743 #$d_pwexpire PWEXPIRE /**/
1744 #$d_pwcomment PWCOMMENT /**/
1745 #$d_pwgecos PWGECOS /**/
1748 * This symbol, if defined, indicates to the C program that it should
1749 * include <sys/types.h>.
1751 #$i_systypes I_SYS_TYPES /**/
1754 * This symbol contains the name of the private library for this package.
1755 * The library is private in the sense that it needn't be in anyone's
1756 * execution path, but it should be accessible by the world. The program
1757 * should be prepared to do ~ expansion.
1760 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1761 * in programs that are not prepared to deal with ~ expansion at run-time.
1763 #define PRIVLIB "$privlib" /**/
1764 #define PRIVLIB_EXP "$privlibexp" /**/
1767 * This symbol contains a list of signal names in order of
1768 * signal number. This is intended
1769 * to be used as a static array initialization, like this:
1770 * char *sig_name[] = { SIG_NAME };
1771 * The signals in the list are separated with commas, and each signal
1772 * is surrounded by double quotes. There is no leading SIG in the signal
1773 * name, i.e. SIGQUIT is known as "QUIT".
1774 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1775 * etc., where nn is the actual signal number (e.g. NUM37).
1776 * The signal number for sig_name[i] is stored in sig_num[i].
1777 * The last element is 0 to terminate the list with a NULL. This
1778 * corresponds to the 0 at the end of the sig_num list.
1781 * This symbol contains a list of signal numbers, in the same order as the
1782 * SIG_NAME list. It is suitable for static array initialization, as in:
1783 * int sig_num[] = { SIG_NUM };
1784 * The signals in the list are separated with commas, and the indices
1785 * within that list and the SIG_NAME list match, so it's easy to compute
1786 * the signal name from a number or vice versa at the price of a small
1787 * dynamic linear lookup.
1788 * Duplicates are allowed, but are moved to the end of the list.
1789 * The signal number corresponding to sig_name[i] is sig_number[i].
1790 * if (i < NSIG) then sig_number[i] == i.
1791 * The last element is 0, corresponding to the 0 at the end of
1792 * the sig_name list.
1794 #define SIG_NAME $sig_name_init /**/
1795 #define SIG_NUM $sig_num /**/
1798 * This symbol contains the name of the private library for this package.
1799 * The library is private in the sense that it needn't be in anyone's
1800 * execution path, but it should be accessible by the world. The program
1801 * should be prepared to do ~ expansion.
1802 * The standard distribution will put nothing in this directory.
1803 * Individual sites may place their own extensions and modules in
1807 * This symbol contains the ~name expanded version of SITEARCH, to be used
1808 * in programs that are not prepared to deal with ~ expansion at run-time.
1810 #define SITEARCH "$sitearch" /**/
1811 #define SITEARCH_EXP "$sitearchexp" /**/
1814 * This symbol contains the name of the private library for this package.
1815 * The library is private in the sense that it needn't be in anyone's
1816 * execution path, but it should be accessible by the world. The program
1817 * should be prepared to do ~ expansion.
1818 * The standard distribution will put nothing in this directory.
1819 * Individual sites may place their own extensions and modules in
1823 * This symbol contains the ~name expanded version of SITELIB, to be used
1824 * in programs that are not prepared to deal with ~ expansion at run-time.
1826 #define SITELIB "$sitelib" /**/
1827 #define SITELIB_EXP "$sitelibexp" /**/
1829 /* DLSYM_NEEDS_UNDERSCORE:
1830 * This symbol, if defined, indicates that we need to prepend an
1831 * underscore to the symbol name before calling dlsym(). This only
1832 * makes sense if you *have* dlsym, which we will presume is the
1833 * case if you're using dl_dlopen.xs.
1835 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1838 * This symbol, if defined, indicates that sfio should
1841 #$d_sfio USE_SFIO /**/
1843 /* USE_DYNAMIC_LOADING:
1844 * This symbol, if defined, indicates that dynamic loading of
1845 * some sort is available.
1847 #$usedl USE_DYNAMIC_LOADING /**/
1850 * This symbol contains the type of the prefix structure element
1851 * in the <db.h> header file. In older versions of DB, it was
1852 * int, while in newer ones it is u_int32_t.
1855 * This symbol contains the type of the prefix structure element
1856 * in the <db.h> header file. In older versions of DB, it was
1857 * int, while in newer ones it is size_t.
1859 #define DB_Hash_t $db_hashtype /**/
1860 #define DB_Prefix_t $db_prefixtype /**/
1863 * This variable contains the string to put in front of a perl
1864 * script to make sure (one hopes) that it runs with perl and not
1867 #define STARTPERL "$startperl" /**/
1870 * This symbol, if defined, indicates that the PerlIO abstraction should
1871 * be used throughout. If not defined, stdio should be
1872 * used in a fully backward compatible manner.
1874 #$useperlio USE_PERLIO /**/
1876 /* HAS_GETHOST_PROTOS:
1877 * This symbol, if defined, indicates that <netdb.h> includes
1878 * prototypes for gethostent(), gethostbyname(), and
1879 * gethostbyaddr(). Otherwise, it is up to the program to guess
1880 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1882 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
1884 /* HAS_GETNET_PROTOS:
1885 * This symbol, if defined, indicates that <netdb.h> includes
1886 * prototypes for getnetent(), getnetbyname(), and
1887 * getnetbyaddr(). Otherwise, it is up to the program to guess
1888 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1890 #$d_getnetprotos HAS_GETNET_PROTOS /**/
1892 /* HAS_GETPROTO_PROTOS:
1893 * This symbol, if defined, indicates that <netdb.h> includes
1894 * prototypes for getprotoent(), getprotobyname(), and
1895 * getprotobyaddr(). Otherwise, it is up to the program to guess
1896 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1898 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1900 /* HAS_GETSERV_PROTOS:
1901 * This symbol, if defined, indicates that <netdb.h> includes
1902 * prototypes for getservent(), getservbyname(), and
1903 * getservbyaddr(). Otherwise, it is up to the program to guess
1904 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1906 #$d_getservprotos HAS_GETSERV_PROTOS /**/
1909 * This symbol holds the type used for the 1st argument
1910 * to gethostbyaddr().
1913 * This symbol holds the type used for the 2nd argument
1914 * to gethostbyaddr().
1917 * This symbol holds the type used for the argument to
1921 * This symbol holds the type used for the 1st argument to
1924 #define Netdb_host_t $netdb_host_type /**/
1925 #define Netdb_hlen_t $netdb_hlen_type /**/
1926 #define Netdb_name_t $netdb_name_type /**/
1927 #define Netdb_net_t $netdb_net_type /**/
1930 * This symbol holds the type used for the 2nd, 3rd, and 4th
1931 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1932 * is defined, and 'int *' otherwise. This is only useful if you
1933 * have select(), of course.
1935 #define Select_fd_set_t $selecttype /**/
1938 * This symbol holds a string representing the architecture name.
1939 * It may be used to construct an architecture-dependant pathname
1940 * where library files may be held under a private library, for
1943 #define ARCHNAME "$archname" /**/
1945 /* HAS_PTHREAD_YIELD:
1946 * This symbol, if defined, indicates that the pthread_yield
1947 * routine is available to yield the execution of the current
1951 * This symbol, if defined, indicates that the sched_yield
1952 * routine is available to yield the execution of the current
1955 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
1956 #$d_sched_yield HAS_SCHED_YIELD /**/
1958 /* PTHREADS_CREATED_JOINABLE:
1959 * This symbol, if defined, indicates that pthreads are created
1960 * in the joinable (aka undetached) state.
1962 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
1965 * This symbol, if defined, indicates that Perl should
1966 * be built to use threads.
1968 /* OLD_PTHREADS_API:
1969 * This symbol, if defined, indicates that Perl should
1970 * be built to use the old draft POSIX threads API.
1972 #$usethreads USE_THREADS /**/
1973 #$d_oldpthreads OLD_PTHREADS_API /**/
1976 * This symbol holds the type returned by time(). It can be long,
1977 * or time_t on BSD sites (in which case <sys/types.h> should be
1980 #define Time_t $timetype /* Time type */
1983 * This symbol, if defined, indicates that the times() routine exists.
1984 * Note that this became obsolete on some systems (SUNOS), which now
1985 * use getrusage(). It may be necessary to include <sys/times.h>.
1987 #$d_times HAS_TIMES /**/
1990 * This symbol holds the type used to declare file positions in libc.
1991 * It can be fpos_t, long, uint, etc... It may be necessary to include
1992 * <sys/types.h> to get any typedef'ed information.
1994 #define Fpos_t $fpostype /* File position type */
1997 * This symbol holds the return type of getgid() and the type of
1998 * argument to setrgid() and related functions. Typically,
1999 * it is the type of group ids in the kernel. It can be int, ushort,
2000 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2001 * any typedef'ed information.
2003 #define Gid_t $gidtype /* Type for getgid(), etc... */
2006 * This symbol holds the type used to declare offsets in the kernel.
2007 * It can be int, long, off_t, etc... It may be necessary to include
2008 * <sys/types.h> to get any typedef'ed information.
2010 #define Off_t $lseektype /* <offset> type */
2013 * This symbol holds the type used to declare file modes
2014 * for systems calls. It is usually mode_t, but may be
2015 * int or unsigned short. It may be necessary to include <sys/types.h>
2016 * to get any typedef'ed information.
2018 #define Mode_t $modetype /* file mode parameter for system calls */
2021 * This symbol holds the type used to declare process ids in the kernel.
2022 * It can be int, uint, pid_t, etc... It may be necessary to include
2023 * <sys/types.h> to get any typedef'ed information.
2025 #define Pid_t $pidtype /* PID type */
2028 * This symbol holds the type used to declare length parameters
2029 * for string functions. It is usually size_t, but may be
2030 * unsigned long, int, etc. It may be necessary to include
2031 * <sys/types.h> to get any typedef'ed information.
2033 #define Size_t $sizetype /* length paramater for string functions */
2036 * This symbol holds the type used to declare user ids in the kernel.
2037 * It can be int, ushort, uid_t, etc... It may be necessary to include
2038 * <sys/types.h> to get any typedef'ed information.
2040 #define Uid_t $uidtype /* UID type */