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, if defined, indicates that the alarm routine is
62 #$d_alarm HAS_ALARM /**/
65 * This symbol indicates the C compiler can check for function attributes,
66 * such as printf formats. This is normally only supported by GNU cc.
68 #$d_attribut HASATTRIBUTE /**/
70 #define __attribute__(_arg_)
74 * This symbol is defined if the bcmp() routine is available to
75 * compare blocks of memory.
77 #$d_bcmp HAS_BCMP /**/
80 * This symbol is defined if the bcopy() routine is available to
81 * copy blocks of memory.
83 #$d_bcopy HAS_BCOPY /**/
86 * This symbol is defined if the bzero() routine is available to
87 * set a memory block to 0.
89 #$d_bzero HAS_BZERO /**/
92 * This symbol, if defined, indicates that the chown routine is
95 #$d_chown HAS_CHOWN /**/
98 * This symbol, if defined, indicates that the chroot routine is
101 #$d_chroot HAS_CHROOT /**/
104 * This symbol, if defined, indicates that the chsize routine is available
105 * to truncate files. You might need a -lx to get this routine.
107 #$d_chsize HAS_CHSIZE /**/
110 * This symbol, if defined, indicates that this C compiler knows about
111 * the const type. There is no need to actually test for that symbol
112 * within your programs. The mere use of the "const" keyword will
113 * trigger the necessary tests.
115 #$d_const HASCONST /**/
121 * This symbol, if defined, indicates that the crypt routine is available
122 * to encrypt passwords and the like.
124 #$d_crypt HAS_CRYPT /**/
127 * This symbol, if defined, indicates that the cuserid routine is
128 * available to get character login names.
130 #$d_cuserid HAS_CUSERID /**/
133 * This symbol, if defined, indicates that this system's <float.h>
134 * or <limits.h> defines the symbol DBL_DIG, which is the number
135 * of significant digits in a double precision number. If this
136 * symbol is not defined, a guess of 15 is usually pretty good.
138 #$d_dbl_dig HAS_DBL_DIG /* */
141 * This symbol, if defined, indicates that the difftime routine is
144 #$d_difftime HAS_DIFFTIME /**/
147 * This symbol, if defined, indicates that the dlerror routine is
148 * available to return a string describing the last error that
149 * occurred from a call to dlopen(), dlclose() or dlsym().
151 #$d_dlerror HAS_DLERROR /**/
153 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
154 * This symbol, if defined, indicates that the bug that prevents
155 * setuid scripts from being secure is not present in this kernel.
158 * This symbol, if defined, indicates that the C program should
159 * check the script that it is executing for setuid/setgid bits, and
160 * attempt to emulate setuid/setgid on systems that have disabled
161 * setuid #! scripts because the kernel can't do it securely.
162 * It is up to the package designer to make sure that this emulation
163 * is done securely. Among other things, it should do an fstat on
164 * the script it just opened to make sure it really is a setuid/setgid
165 * script, it should make sure the arguments passed correspond exactly
166 * to the argument on the #! line, and it should not trust any
167 * subprocesses to which it must pass the filename rather than the
168 * file descriptor of the script to be executed.
170 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
171 #$d_dosuid DOSUID /**/
174 * This symbol, if defined, indicates that the dup2 routine is
175 * available to duplicate file descriptors.
177 #$d_dup2 HAS_DUP2 /**/
180 * This symbol, if defined, indicates that the fchmod routine is available
181 * to change mode of opened files. If unavailable, use chmod().
183 #$d_fchmod HAS_FCHMOD /**/
186 * This symbol, if defined, indicates that the fchown routine is available
187 * to change ownership of opened files. If unavailable, use chown().
189 #$d_fchown HAS_FCHOWN /**/
192 * This symbol, if defined, indicates to the C program that
193 * the fcntl() function exists.
195 #$d_fcntl HAS_FCNTL /**/
198 * This symbol, if defined, indicates that the fgetpos routine is
199 * available to get the file position indicator, similar to ftell().
201 #$d_fgetpos HAS_FGETPOS /**/
204 * This symbol, if defined, indicates that the system supports filenames
205 * longer than 14 characters.
207 #$d_flexfnam FLEXFILENAMES /**/
210 * This symbol, if defined, indicates that the flock routine is
211 * available to do file locking.
213 #$d_flock HAS_FLOCK /**/
216 * This symbol, if defined, indicates that the fork routine is
219 #$d_fork HAS_FORK /**/
222 * This symbol, if defined, indicates that the fsetpos routine is
223 * available to set the file position indicator, similar to fseek().
225 #$d_fsetpos HAS_FSETPOS /**/
228 * This symbol, if defined, indicates that the gettimeofday() system
229 * call is available for a sub-second accuracy clock. Usually, the file
230 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
231 * The type "Timeval" should be used to refer to "struct timeval".
233 #$d_gettimeod HAS_GETTIMEOFDAY /**/
234 #ifdef HAS_GETTIMEOFDAY
235 #define Timeval struct timeval /* Structure used by gettimeofday() */
239 * This symbol, if defined, indicates that the getgroups() routine is
240 * available to get the list of process groups. If unavailable, multiple
241 * groups are probably not supported.
243 #$d_getgrps HAS_GETGROUPS /**/
246 * This symbol, if defined, indicates that the getlogin routine is
247 * available to get the login name.
249 #$d_getlogin HAS_GETLOGIN /**/
252 * This symbol, if defined, indicates to the C program that
253 * the getpgid(pid) function is available to get the
256 #$d_getpgid HAS_GETPGID /**/
259 * This symbol, if defined, indicates that the getpgrp routine is
260 * available to get the current process group.
263 * This symbol, if defined, indicates that getpgrp needs one
264 * arguments whereas USG one needs none.
266 #$d_getpgrp HAS_GETPGRP /**/
267 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
270 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
271 * routine is available to get the current process group.
273 #$d_getpgrp2 HAS_GETPGRP2 /**/
276 * This symbol, if defined, indicates that the getppid routine is
277 * available to get the parent process ID.
279 #$d_getppid HAS_GETPPID /**/
282 * This symbol, if defined, indicates that the getpriority routine is
283 * available to get a process's priority.
285 #$d_getprior HAS_GETPRIORITY /**/
288 * This symbol, if defined, indicates to the C program that the
289 * inet_aton() function is available to parse IP address "dotted-quad"
292 #$d_inetaton HAS_INET_ATON /**/
295 * This symbol, if defined, indicates that the killpg routine is available
296 * to kill process groups. If unavailable, you probably should use kill
297 * with a negative process number.
299 #$d_killpg HAS_KILLPG /**/
302 * This symbol, if defined, indicates that the link routine is
303 * available to create hard links.
305 #$d_link HAS_LINK /**/
308 * This symbol, if defined, indicates that the localeconv routine is
309 * available for numeric and monetary formatting conventions.
311 #$d_locconv HAS_LOCALECONV /**/
314 * This symbol, if defined, indicates that the lockf routine is
315 * available to do file locking.
317 #$d_lockf HAS_LOCKF /**/
320 * This symbol, if defined, indicates that the lstat routine is
321 * available to do file stats on symbolic links.
323 #$d_lstat HAS_LSTAT /**/
326 * This symbol, if defined, indicates that the mblen routine is available
327 * to find the number of bytes in a multibye character.
329 #$d_mblen HAS_MBLEN /**/
332 * This symbol, if defined, indicates that the mbstowcs routine is
333 * available to covert a multibyte string into a wide character string.
335 #$d_mbstowcs HAS_MBSTOWCS /**/
338 * This symbol, if defined, indicates that the mbtowc routine is available
339 * to covert a multibyte to a wide character.
341 #$d_mbtowc HAS_MBTOWC /**/
344 * This symbol, if defined, indicates that the memcmp routine is available
345 * to compare blocks of memory.
347 #$d_memcmp HAS_MEMCMP /**/
350 * This symbol, if defined, indicates that the memcpy routine is available
351 * to copy blocks of memory.
353 #$d_memcpy HAS_MEMCPY /**/
356 * This symbol, if defined, indicates that the memmove routine is available
357 * to copy potentially overlapping blocks of memory. This should be used
358 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
361 #$d_memmove HAS_MEMMOVE /**/
364 * This symbol, if defined, indicates that the memset routine is available
365 * to set blocks of memory.
367 #$d_memset HAS_MEMSET /**/
370 * This symbol, if defined, indicates that the mkdir routine is available
371 * to create directories. Otherwise you should fork off a new process to
374 #$d_mkdir HAS_MKDIR /**/
377 * This symbol, if defined, indicates that the mkfifo routine is
378 * available to create FIFOs. Otherwise, mknod should be able to
379 * do it for you. However, if mkfifo is there, mknod might require
380 * super-user privileges which mkfifo will not.
382 #$d_mkfifo HAS_MKFIFO /**/
385 * This symbol, if defined, indicates that the mktime routine is
388 #$d_mktime HAS_MKTIME /**/
391 * This symbol, if defined, indicates that the msync system call is
392 * available to synchronize a mapped file.
394 #$d_msync HAS_MSYNC /**/
397 * This symbol, if defined, indicates that the munmap system call is
398 * available to unmap a region, usually mapped by mmap().
400 #$d_munmap HAS_MUNMAP /**/
403 * This symbol, if defined, indicates that the nice routine is
406 #$d_nice HAS_NICE /**/
409 * This symbol, if defined, indicates that pathconf() is available
410 * to determine file-system related limits and options associated
411 * with a given filename.
414 * This symbol, if defined, indicates that pathconf() is available
415 * to determine file-system related limits and options associated
416 * with a given open file descriptor.
418 #$d_pathconf HAS_PATHCONF /**/
419 #$d_fpathconf HAS_FPATHCONF /**/
422 * This symbol, if defined, indicates that the pause routine is
423 * available to suspend a process until a signal is received.
425 #$d_pause HAS_PAUSE /**/
428 * This symbol, if defined, indicates that the pipe routine is
429 * available to create an inter-process channel.
431 #$d_pipe HAS_PIPE /**/
434 * This symbol, if defined, indicates that the poll routine is
435 * available to poll active file descriptors. You may safely
436 * include <poll.h> when this symbol is defined.
438 #$d_poll HAS_POLL /**/
441 * This symbol, if defined, indicates that the readdir routine is
442 * available to read directory entries. You may have to include
443 * <dirent.h>. See I_DIRENT.
445 #$d_readdir HAS_READDIR /**/
448 * This symbol, if defined, indicates that the seekdir routine is
449 * available. You may have to include <dirent.h>. See I_DIRENT.
451 #$d_seekdir HAS_SEEKDIR /**/
454 * This symbol, if defined, indicates that the telldir routine is
455 * available. You may have to include <dirent.h>. See I_DIRENT.
457 #$d_telldir HAS_TELLDIR /**/
460 * This symbol, if defined, indicates that the rewinddir routine is
461 * available. You may have to include <dirent.h>. See I_DIRENT.
463 #$d_rewinddir HAS_REWINDDIR /**/
466 * This symbol, if defined, indicates that the readlink routine is
467 * available to read the value of a symbolic link.
469 #$d_readlink HAS_READLINK /**/
472 * This symbol, if defined, indicates that the rename routine is available
473 * to rename files. Otherwise you should do the unlink(), link(), unlink()
476 #$d_rename HAS_RENAME /**/
479 * This symbol, if defined, indicates that the rmdir routine is
480 * available to remove directories. Otherwise you should fork off a
481 * new process to exec /bin/rmdir.
483 #$d_rmdir HAS_RMDIR /**/
486 * This symbol, if defined, indicates that the select routine is
487 * available to select active file descriptors. If the timeout field
488 * is used, <sys/time.h> may need to be included.
490 #$d_select HAS_SELECT /**/
493 * This symbol, if defined, indicates that the setegid routine is available
494 * to change the effective gid of the current program.
496 #$d_setegid HAS_SETEGID /**/
499 * This symbol, if defined, indicates that the seteuid routine is available
500 * to change the effective uid of the current program.
502 #$d_seteuid HAS_SETEUID /**/
505 * This symbol, if defined, indicates that the setlinebuf routine is
506 * available to change stderr or stdout from block-buffered or unbuffered
507 * to a line-buffered mode.
509 #$d_setlinebuf HAS_SETLINEBUF /**/
512 * This symbol, if defined, indicates that the setlocale routine is
513 * available to handle locale-specific ctype implementations.
515 #$d_setlocale HAS_SETLOCALE /**/
518 * This symbol, if defined, indicates that the setpgid(pid, gpid)
519 * routine is available to set process group ID.
521 #$d_setpgid HAS_SETPGID /**/
524 * This symbol, if defined, indicates that the setpgrp routine is
525 * available to set the current process group.
528 * This symbol, if defined, indicates that setpgrp needs two
529 * arguments whereas USG one needs none. See also HAS_SETPGID
530 * for a POSIX interface.
532 #$d_setpgrp HAS_SETPGRP /**/
533 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
536 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
537 * routine is available to set the current process group.
539 #$d_setpgrp2 HAS_SETPGRP2 /**/
542 * This symbol, if defined, indicates that the setpriority routine is
543 * available to set a process's priority.
545 #$d_setprior HAS_SETPRIORITY /**/
548 * This symbol, if defined, indicates that the setregid routine is
549 * available to change the real and effective gid of the current
553 * This symbol, if defined, indicates that the setresgid routine is
554 * available to change the real, effective and saved gid of the current
557 #$d_setregid HAS_SETREGID /**/
558 #$d_setresgid HAS_SETRESGID /**/
561 * This symbol, if defined, indicates that the setreuid routine is
562 * available to change the real and effective uid of the current
566 * This symbol, if defined, indicates that the setresuid routine is
567 * available to change the real, effective and saved uid of the current
570 #$d_setreuid HAS_SETREUID /**/
571 #$d_setresuid HAS_SETRESUID /**/
574 * This symbol, if defined, indicates that the setrgid routine is available
575 * to change the real gid of the current program.
577 #$d_setrgid HAS_SETRGID /**/
580 * This symbol, if defined, indicates that the setruid routine is available
581 * to change the real uid of the current program.
583 #$d_setruid HAS_SETRUID /**/
586 * This symbol, if defined, indicates that the setsid routine is
587 * available to set the process group ID.
589 #$d_setsid HAS_SETSID /**/
592 * This symbol holds the return type of the shmat() system call.
593 * Usually set to 'void *' or 'char *'.
595 /* HAS_SHMAT_PROTOTYPE:
596 * This symbol, if defined, indicates that the sys/shm.h includes
597 * a prototype for shmat(). Otherwise, it is up to the program to
598 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
599 * but not always right so it should be emitted by the program only
600 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
602 #define Shmat_t $shmattype /**/
603 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
606 * This symbol is defined to indicate that the strchr()/strrchr()
607 * functions are available for string searching. If not, try the
608 * index()/rindex() pair.
611 * This symbol is defined to indicate that the index()/rindex()
612 * functions are available for string searching.
614 #$d_strchr HAS_STRCHR /**/
615 #$d_index HAS_INDEX /**/
618 * This symbol, if defined, indicates that the strcoll routine is
619 * available to compare strings using collating information.
621 #$d_strcoll HAS_STRCOLL /**/
624 * This symbol, if defined, indicates that this C compiler knows how
625 * to copy structures. If undefined, you'll need to use a block copy
626 * routine of some sort instead.
628 #$d_strctcpy USE_STRUCT_COPY /**/
631 * This symbol, if defined, indicates that the strtod routine is
632 * available to provide better numeric string conversion than atof().
634 #$d_strtod HAS_STRTOD /**/
637 * This symbol, if defined, indicates that the strtol routine is available
638 * to provide better numeric string conversion than atoi() and friends.
640 #$d_strtol HAS_STRTOL /**/
643 * This symbol, if defined, indicates that the strtoul routine is
644 * available to provide conversion of strings to unsigned long.
646 #$d_strtoul HAS_STRTOUL /**/
649 * This symbol, if defined, indicates that the strxfrm() routine is
650 * available to transform strings.
652 #$d_strxfrm HAS_STRXFRM /**/
655 * This symbol, if defined, indicates that the symlink routine is available
656 * to create symbolic links.
658 #$d_symlink HAS_SYMLINK /**/
661 * This symbol, if defined, indicates that the syscall routine is
662 * available to call arbitrary system calls. If undefined, that's tough.
664 #$d_syscall HAS_SYSCALL /**/
667 * This symbol, if defined, indicates that sysconf() is available
668 * to determine system related limits and options.
670 #$d_sysconf HAS_SYSCONF /**/
673 * This symbol, if defined, indicates that the system routine is
674 * available to issue a shell command.
676 #$d_system HAS_SYSTEM /**/
679 * This symbol, if defined, indicates that the tcgetpgrp routine is
680 * available to get foreground process group ID.
682 #$d_tcgetpgrp HAS_TCGETPGRP /**/
685 * This symbol, if defined, indicates that the tcsetpgrp routine is
686 * available to set foreground process group ID.
688 #$d_tcsetpgrp HAS_TCSETPGRP /**/
691 * This symbol, if defined, indicates that the truncate routine is
692 * available to truncate files.
694 #$d_truncate HAS_TRUNCATE /**/
697 * This symbol, if defined, indicates that the tzname[] array is
698 * available to access timezone names.
700 #$d_tzname HAS_TZNAME /**/
703 * This symbol, if defined, indicates that the umask routine is
704 * available to set and get the value of the file creation mask.
706 #$d_umask HAS_UMASK /**/
709 * This symbol, if defined, indicates that this C compiler knows about
710 * the volatile declaration.
712 #$d_volatile HASVOLATILE /**/
718 * This symbol, if defined, indicates that wait4() exists.
720 #$d_wait4 HAS_WAIT4 /**/
723 * This symbol, if defined, indicates that the waitpid routine is
724 * available to wait for child process.
726 #$d_waitpid HAS_WAITPID /**/
729 * This symbol, if defined, indicates that the wcstombs routine is
730 * available to convert wide character strings to multibyte strings.
732 #$d_wcstombs HAS_WCSTOMBS /**/
735 * This symbol, if defined, indicates that the wctomb routine is available
736 * to covert a wide character to a multibyte.
738 #$d_wctomb HAS_WCTOMB /**/
741 * This symbol, if defined, indicates to the C program that it should
742 * include <arpa/inet.h> to get inet_addr and friends declarations.
744 #$i_arpainet I_ARPA_INET /**/
747 * This symbol, if defined, indicates that <dbm.h> exists and should
751 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
752 * should be included.
755 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
758 * This symbol, if defined, indicates to the C program that it should
759 * include <dirent.h>. Using this symbol also triggers the definition
760 * of the Direntry_t define which ends up being 'struct dirent' or
761 * 'struct direct' depending on the availability of <dirent.h>.
764 * This symbol, if defined, indicates to the C program that the length
765 * of directory entry names is provided by a d_namlen field. Otherwise
766 * you need to do strlen() on the d_name field.
769 * This symbol is set to 'struct direct' or 'struct dirent' depending on
770 * whether dirent is available or not. You should use this pseudo type to
771 * portably declare your directory entries.
773 #$i_dirent I_DIRENT /**/
774 #$d_dirnamlen DIRNAMLEN /**/
775 #define Direntry_t $direntrytype
778 * This symbol, if defined, indicates that <dlfcn.h> exists and should
781 #$i_dlfcn I_DLFCN /**/
784 * This manifest constant tells the C program to include <fcntl.h>.
786 #$i_fcntl I_FCNTL /**/
789 * This symbol, if defined, indicates to the C program that it should
790 * include <float.h> to get definition of symbols like DBL_MAX or
791 * DBL_MIN, i.e. machine dependent floating point values.
793 #$i_float I_FLOAT /**/
796 * This symbol, if defined, indicates to the C program that it should
797 * include <limits.h> to get definition of symbols like WORD_BIT or
798 * LONG_MAX, i.e. machine dependant limitations.
800 #$i_limits I_LIMITS /**/
803 * This symbol, if defined, indicates to the C program that it should
804 * include <locale.h>.
806 #$i_locale I_LOCALE /**/
809 * This symbol, if defined, indicates to the C program that it should
815 * This symbol, if defined, indicates to the C program that it should
816 * include <memory.h>.
818 #$i_memory I_MEMORY /**/
821 * This symbol, if defined, indicates that <ndbm.h> exists and should
827 * This symbol, if defined, indicates that <net/errno.h> exists and
828 * should be included.
830 #$i_neterrno I_NET_ERRNO /**/
833 * This symbol, if defined, indicates to the C program that it should
834 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
836 #$i_niin I_NETINET_IN /**/
839 * This symbol, if defined, indicates to the C program that it should
845 * This symbol, if defined, indicates that <stddef.h> exists and should
848 #$i_stddef I_STDDEF /**/
851 * This symbol, if defined, indicates that <stdlib.h> exists and should
854 #$i_stdlib I_STDLIB /**/
857 * This symbol, if defined, indicates to the C program that it should
858 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
860 #$i_string I_STRING /**/
863 * This symbol, if defined, indicates to the C program that it should
864 * include <sys/dir.h>.
866 #$i_sysdir I_SYS_DIR /**/
869 * This symbol, if defined, indicates to the C program that it should
870 * include <sys/file.h> to get definition of R_OK and friends.
872 #$i_sysfile I_SYS_FILE /**/
875 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
876 * be included. Otherwise, include <sgtty.h> or <termio.h>.
878 #$i_sysioctl I_SYS_IOCTL /**/
881 * This symbol, if defined, indicates to the C program that it should
882 * include <sys/ndir.h>.
884 #$i_sysndir I_SYS_NDIR /**/
887 * This symbol, if defined, indicates to the C program that it should
888 * include <sys/param.h>.
890 #$i_sysparam I_SYS_PARAM /**/
893 * This symbol, if defined, indicates to the C program that it should
894 * include <sys/resource.h>.
896 #$i_sysresrc I_SYS_RESOURCE /**/
899 * This symbol, if defined, indicates to the C program that it should
900 * include <sys/select.h> in order to get definition of struct timeval.
902 #$i_sysselct I_SYS_SELECT /**/
905 * This symbol, if defined, indicates to the C program that it should
906 * include <sys/stat.h>.
908 #$i_sysstat I_SYS_STAT /**/
911 * This symbol, if defined, indicates to the C program that it should
912 * include <sys/times.h>.
914 #$i_systimes I_SYS_TIMES /**/
917 * This symbol, if defined, indicates to the C program that it should
918 * include <sys/types.h>.
920 #$i_systypes I_SYS_TYPES /**/
923 * This symbol, if defined, indicates to the C program that it should
924 * include <sys/un.h> to get UNIX domain socket definitions.
926 #$i_sysun I_SYS_UN /**/
929 * This symbol, if defined, indicates to the C program that it should
930 * include <sys/wait.h>.
932 #$i_syswait I_SYS_WAIT /**/
935 * This symbol, if defined, indicates that the program should include
936 * <termio.h> rather than <sgtty.h>. There are also differences in
937 * the ioctl() calls that depend on the value of this symbol.
940 * This symbol, if defined, indicates that the program should include
941 * the POSIX termios.h rather than sgtty.h or termio.h.
942 * There are also differences in the ioctl() calls that depend on the
943 * value of this symbol.
946 * This symbol, if defined, indicates that the program should include
947 * <sgtty.h> rather than <termio.h>. There are also differences in
948 * the ioctl() calls that depend on the value of this symbol.
950 #$i_termio I_TERMIO /**/
951 #$i_termios I_TERMIOS /**/
952 #$i_sgtty I_SGTTY /**/
955 * This symbol, if defined, indicates to the C program that it should
956 * include <unistd.h>.
958 #$i_unistd I_UNISTD /**/
961 * This symbol, if defined, indicates to the C program that it should
964 #$i_utime I_UTIME /**/
967 * This symbol, if defined, indicates to the C program that it should
968 * include <values.h> to get definition of symbols like MINFLOAT or
969 * MAXLONG, i.e. machine dependant limitations. Probably, you
970 * should use <limits.h> instead, if it is available.
972 #$i_values I_VALUES /**/
975 * This symbol, if defined, indicates that <stdarg.h> exists and should
979 * This symbol, if defined, indicates to the C program that it should
980 * include <varargs.h>.
982 #$i_stdarg I_STDARG /**/
983 #$i_varargs I_VARARGS /**/
986 * This symbol, if defined, indicates to the C program that it should
989 #$i_vfork I_VFORK /**/
992 * If defined, this macro indicates that the C compiler can handle
993 * function prototypes.
996 * This macro is used to declare function parameters for folks who want
997 * to make declarations with prototypes using a different style than
998 * the above macros. Use double parentheses. For example:
1000 * int main _((int argc, char *argv[]));
1002 #$prototype CAN_PROTOTYPE /**/
1003 #ifdef CAN_PROTOTYPE
1004 #define _(args) args
1010 * This symbol contains the full pathname to the shell used on this
1011 * on this system to execute Bourne shell scripts. Usually, this will be
1012 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1013 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1016 #define SH_PATH "$sh" /**/
1019 * This symbol is defined to be the type of char used in stdio.h.
1020 * It has the values "unsigned char" or "char".
1022 #define STDCHAR $stdchar /**/
1025 * This symbol, if defined, indicates that the accessx routine is
1026 * available to do extended access checks.
1028 #$d_accessx HAS_ACCESSX /**/
1031 * This symbol, if defined, indicates that the eaccess routine is
1032 * available to do extended access checks.
1034 #$d_eaccess HAS_EACCESS /**/
1037 * This symbol, if defined, indicates to the C program that it should
1038 * include <sys/access.h>.
1040 #$i_sysaccess I_SYS_ACCESS /**/
1043 * This symbol, if defined, indicates to the C program that it should
1044 * include <sys/security.h>.
1046 #$i_syssecrt I_SYS_SECURITY /**/
1049 * This symbol, if defined, signifies that we our
1050 * build process is a cross-compilation.
1052 #$crosscompile CROSSCOMPILE /**/
1055 * This symbol contains the value of sizeof(int) so that the C
1056 * preprocessor can make decisions based on it.
1059 * This symbol contains the value of sizeof(long) so that the C
1060 * preprocessor can make decisions based on it.
1063 * This symbol contains the value of sizeof(short) so that the C
1064 * preprocessor can make decisions based on it.
1066 #define INTSIZE $intsize /**/
1067 #define LONGSIZE $longsize /**/
1068 #define SHORTSIZE $shortsize /**/
1071 * This symbol, if defined, signifies that the build
1072 * process will produce some binary files that are going to be
1073 * used in a cross-platform environment. This is the case for
1074 * example with the NeXT "fat" binaries that contain executables
1077 #$multiarch MULTIARCH /**/
1080 * This symbol contains the number of bytes required to align a
1081 * double. Usual values are 2, 4 and 8. The default is eight,
1084 #if defined(CROSSCOMPILE) || defined(MULTIARCH)
1085 # define MEM_ALIGNBYTES 8
1087 #define MEM_ALIGNBYTES $alignbytes
1091 * This symbol contains the value of sizeof(int) so that the C
1092 * preprocessor can make decisions based on it.
1095 * This symbol contains the value of sizeof(long) so that the C
1096 * preprocessor can make decisions based on it.
1099 * This symbol contains the value of sizeof(short) so that the C
1100 * preprocessor can make decisions based on it.
1102 #define INTSIZE $intsize /**/
1103 #define LONGSIZE $longsize /**/
1104 #define SHORTSIZE $shortsize /**/
1107 * This symbol holds the hexadecimal constant defined in byteorder,
1108 * i.e. 0x1234 or 0x4321, etc...
1109 * If the compiler supports cross-compiling or multiple-architecture
1110 * binaries (eg. on NeXT systems), use compiler-defined macros to
1111 * determine the byte order.
1112 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1113 * Binaries (MAB) on either big endian or little endian machines.
1114 * The endian-ness is available at compile-time. This only matters
1115 * for perl, where the config.h can be generated and installed on
1116 * one system, and used by a different architecture to build an
1117 * extension. Older versions of NeXT that might not have
1118 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1119 * so the default case (for NeXT) is big endian to catch them.
1120 * This might matter for NeXT 3.0.
1122 #if defined(CROSSCOMPILE) || defined(MULTIARCH)
1123 # ifdef __LITTLE_ENDIAN__
1125 # define BYTEORDER 0x1234
1128 # define BYTEORDER 0x12345678
1132 # ifdef __BIG_ENDIAN__
1134 # define BYTEORDER 0x4321
1137 # define BYTEORDER 0x87654321
1142 # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1143 # define BYTEORDER 0x4321
1146 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1150 * This symbol is defined if the C compiler can cast negative
1151 * or large floating point numbers to 32-bit ints.
1153 #$d_casti32 CASTI32 /**/
1156 * This symbol is defined if the C compiler can cast negative
1157 * numbers to unsigned longs, ints and shorts.
1160 * This symbol contains flags that say what difficulties the compiler
1161 * has casting odd floating values to unsigned long:
1163 * 1 = couldn't cast < 0
1164 * 2 = couldn't cast >= 0x80000000
1165 * 4 = couldn't cast in argument expression list
1167 #$d_castneg CASTNEGFLOAT /**/
1168 #define CASTFLAGS $castflags /**/
1171 * This symbol, if defined, indicates that the closedir() routine
1172 * does not return a value.
1174 #$d_void_closedir VOID_CLOSEDIR /**/
1177 * This symbol, when defined, indicates presence of the fd_set typedef
1180 #$d_fd_set HAS_FD_SET /**/
1183 * This preprocessor macro is defined to convert a floating point
1184 * number to a string without a trailing decimal point. This
1185 * emulates the behavior of sprintf("%g"), but is sometimes much more
1186 * efficient. If gconvert() is not available, but gcvt() drops the
1187 * trailing decimal point, then gcvt() is used. If all else fails,
1188 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1189 * macro are: value, number of digits, whether trailing zeros should
1190 * be retained, and the output buffer.
1191 * Possible values are:
1192 * d_Gconvert='gconvert((x),(n),(t),(b))'
1193 * d_Gconvert='gcvt((x),(n),(b))'
1194 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1195 * The last two assume trailing zeros should not be kept.
1197 #define Gconvert(x,n,t,b) $d_Gconvert
1200 * This symbol, if defined, indicates to the C program that
1201 * the GNU C library is being used.
1203 #$d_gnulibc HAS_GNULIBC /**/
1205 * This manifest constant lets the C program know that isascii
1208 #$d_isascii HAS_ISASCII /**/
1211 * This symbol, if defined, indicates that the lchown routine is
1212 * available to operate on a symbolic link (instead of following the
1215 #$d_lchown HAS_LCHOWN /**/
1218 * This manifest constant lets the C program know that the three
1219 * argument form of open(2) is available.
1221 #$d_open3 HAS_OPEN3 /**/
1224 * This symbol, if defined, indicates that the bcopy routine is available
1225 * to copy potentially overlapping memory blocks. Otherwise you should
1226 * probably use memmove() or memcpy(). If neither is defined, roll your
1229 #$d_safebcpy HAS_SAFE_BCOPY /**/
1232 * This symbol, if defined, indicates that the memcpy routine is available
1233 * to copy potentially overlapping memory blocks. Otherwise you should
1234 * probably use memmove() or memcpy(). If neither is defined, roll your
1237 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1240 * This symbol, if defined, indicates that the memcmp routine is available
1241 * and can be used to compare relative magnitudes of chars with their high
1242 * bits set. If it is not defined, roll your own version.
1244 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1247 * This symbol, if defined, indicates that Vr4's sigaction() routine
1250 #$d_sigaction HAS_SIGACTION /**/
1253 * This variable indicates to the C program that the sigsetjmp()
1254 * routine is available to save the calling process's registers
1255 * and stack environment for later use by siglongjmp(), and
1256 * to optionally save the process's signal mask. See
1257 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
1260 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1263 * This macro is used in the same way as sigsetjmp(), but will invoke
1264 * traditional setjmp() if sigsetjmp isn't available.
1265 * See HAS_SIGSETJMP.
1268 * This macro is used in the same way as siglongjmp(), but will invoke
1269 * traditional longjmp() if siglongjmp isn't available.
1270 * See HAS_SIGSETJMP.
1272 #$d_sigsetjmp HAS_SIGSETJMP /**/
1273 #ifdef HAS_SIGSETJMP
1274 #define Sigjmp_buf sigjmp_buf
1275 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1276 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1278 #define Sigjmp_buf jmp_buf
1279 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1280 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1284 * This symbol is defined if the _ptr and _cnt fields (or similar)
1285 * of the stdio FILE structure can be used to access the stdio buffer
1286 * for a file handle. If this is defined, then the FILE_ptr(fp)
1287 * and FILE_cnt(fp) macros will also be defined and should be used
1288 * to access these fields.
1291 * This macro is used to access the _ptr field (or equivalent) of the
1292 * FILE structure pointed to by its argument. This macro will always be
1293 * defined if USE_STDIO_PTR is defined.
1295 /* STDIO_PTR_LVALUE:
1296 * This symbol is defined if the FILE_ptr macro can be used as an
1300 * This macro is used to access the _cnt field (or equivalent) of the
1301 * FILE structure pointed to by its argument. This macro will always be
1302 * defined if USE_STDIO_PTR is defined.
1304 /* STDIO_CNT_LVALUE:
1305 * This symbol is defined if the FILE_cnt macro can be used as an
1308 #$d_stdstdio USE_STDIO_PTR /**/
1309 #ifdef USE_STDIO_PTR
1310 #define FILE_ptr(fp) $stdio_ptr
1311 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1312 #define FILE_cnt(fp) $stdio_cnt
1313 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1317 * This symbol is defined if the _base field (or similar) of the
1318 * stdio FILE structure can be used to access the stdio buffer for
1319 * a file handle. If this is defined, then the FILE_base(fp) macro
1320 * will also be defined and should be used to access this field.
1321 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1322 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1323 * will never be defined unless USE_STDIO_PTR is.
1326 * This macro is used to access the _base field (or equivalent) of the
1327 * FILE structure pointed to by its argument. This macro will always be
1328 * defined if USE_STDIO_BASE is defined.
1331 * This macro is used to determine the number of bytes in the I/O
1332 * buffer pointed to by _base field (or equivalent) of the FILE
1333 * structure pointed to its argument. This macro will always be defined
1334 * if USE_STDIO_BASE is defined.
1336 #$d_stdiobase USE_STDIO_BASE /**/
1337 #ifdef USE_STDIO_BASE
1338 #define FILE_base(fp) $stdio_base
1339 #define FILE_bufsiz(fp) $stdio_bufsiz
1343 * This symbol, if defined, indicates that the vprintf routine is available
1344 * to printf with a pointer to an argument list. If unavailable, you
1345 * may need to write your own, probably in terms of _doprnt().
1347 /* USE_CHAR_VSPRINTF:
1348 * This symbol is defined if this system has vsprintf() returning type
1349 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1350 * is up to the package author to declare vsprintf correctly based on the
1353 #$d_vprintf HAS_VPRINTF /**/
1354 #$d_charvspr USE_CHAR_VSPRINTF /**/
1357 * This symbol contains the size of a double, so that the C preprocessor
1358 * can make decisions based on it.
1360 #define DOUBLESIZE $doublesize /**/
1363 * This symbol, if defined, indicates to the C program that it should
1367 * This symbol, if defined, indicates to the C program that it should
1368 * include <sys/time.h>.
1370 /* I_SYS_TIME_KERNEL:
1371 * This symbol, if defined, indicates to the C program that it should
1372 * include <sys/time.h> with KERNEL defined.
1374 #$i_time I_TIME /**/
1375 #$i_systime I_SYS_TIME /**/
1376 #$i_systimek I_SYS_TIME_KERNEL /**/
1379 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1380 * non-blocking I/O for the file descriptor. Note that there is no way
1381 * back, i.e. you cannot turn it blocking again this way. If you wish to
1382 * alternatively switch between blocking and non-blocking, use the
1383 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1386 * This symbol holds the errno error code set by read() when no data was
1387 * present on the non-blocking file descriptor.
1390 * This symbol holds the return code from read() when no data is present
1391 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1392 * not defined, then you can't distinguish between no data and EOF by
1393 * issuing a read(). You'll have to find another way to tell for sure!
1396 * This symbol, if defined, indicates to the C program that a read() on
1397 * a non-blocking file descriptor will return 0 on EOF, and not the value
1398 * held in RD_NODATA (-1 usually, in that case!).
1400 #define VAL_O_NONBLOCK $o_nonblock
1401 #define VAL_EAGAIN $eagain
1402 #define RD_NODATA $rd_nodata
1403 #$d_eofnblk EOF_NONBLOCK
1406 * This symbol contains the size of a pointer, so that the C preprocessor
1407 * can make decisions based on it. It will be sizeof(void *) if
1408 * the compiler supports (void *); otherwise it will be
1411 #define PTRSIZE $ptrsize /**/
1414 * This macro is to be used to generate uniformly distributed
1415 * random numbers over the range [0., 1.[. You may have to supply
1416 * an 'extern double drand48();' in your program since SunOS 4.1.3
1417 * doesn't provide you with anything relevant in it's headers.
1418 * See HAS_DRAND48_PROTO.
1421 * This symbol defines the type of the argument of the
1422 * random seed function.
1425 * This symbol defines the macro to be used in seeding the
1426 * random number generator (see Drand01).
1429 * This symbol indicates how many bits are produced by the
1430 * function used to generate normalized random numbers.
1431 * Values include 15, 16, 31, and 48.
1433 #define Drand01() $drand01 /**/
1434 #define Rand_seed_t $randseedtype /**/
1435 #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
1436 #define RANDBITS $randbits /**/
1439 * This symbol holds the type used by functions that return
1440 * a count of bytes or an error condition. It must be a signed type.
1441 * It is usually ssize_t, but may be long or int, etc.
1442 * It may be necessary to include <sys/types.h> or <unistd.h>
1443 * to get any typedef'ed information.
1444 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1446 #define SSize_t $ssizetype /* signed count of bytes */
1449 * This symbol, if defined, indicates that this system uses
1452 #$ebcdic EBCDIC /**/
1455 * This symbol contains the name of the operating system, as determined
1456 * by Configure. You shouldn't rely on it too much; the specific
1457 * feature tests from Configure are generally more reliable.
1459 #define OSNAME "$osname" /**/
1462 * This macro catenates 2 tokens together.
1465 * This macro surrounds its token with double quotes.
1468 #define CAT2(a,b)a/**/b
1469 #define STRINGIFY(a)"a"
1470 /* If you can get stringification with catify, tell me how! */
1472 #if $cpp_stuff == 42
1473 #define CAT2(a,b)a ## b
1474 #define StGiFy(a)# a
1475 #define STRINGIFY(a)StGiFy(a)
1477 #if $cpp_stuff != 1 && $cpp_stuff != 42
1478 #include "Bletch: How does this C preprocessor catenate tokens?"
1482 * This symbol contains the first part of the string which will invoke
1483 * the C preprocessor on the standard input and produce to standard
1484 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1485 * call a wrapper. See CPPRUN.
1488 * This symbol contains the second part of the string which will invoke
1489 * the C preprocessor on the standard input and produce to standard
1490 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1491 * to specify standard input, otherwise the value is "".
1494 * This symbol contains the string which will invoke a C preprocessor on
1495 * the standard input and produce to standard output. It needs to end
1496 * with CPPLAST, after all other preprocessor flags have been specified.
1497 * The main difference with CPPSTDIN is that this program will never be a
1498 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1499 * available directly to the user. Note that it may well be different from
1500 * the preprocessor used to compile the C program.
1502 #define CPPSTDIN "$cppstdin"
1503 #define CPPMINUS "$cppminus"
1504 #define CPPRUN "$cpprun"
1507 * This manifest constant lets the C program know that the access()
1508 * system call is available to check for accessibility using real UID/GID.
1509 * (always present on UNIX.)
1511 #$d_access HAS_ACCESS /**/
1514 * This symbol, if defined, indicates that the C-shell exists.
1517 * This symbol, if defined, contains the full pathname of csh.
1519 #$d_csh HAS_CSH /**/
1521 #define CSH "$full_csh" /**/
1525 * This symbol, if defined, indicates that the getgrent routine is
1526 * available for finalizing sequential access of the group database.
1528 #$d_endgrent HAS_ENDGRENT /**/
1531 * This symbol, if defined, indicates that the endhostent() routine is
1532 * available to close whatever was being used for host queries.
1534 #$d_endhent HAS_ENDHOSTENT /**/
1537 * This symbol, if defined, indicates that the endnetent() routine is
1538 * available to close whatever was being used for network queries.
1540 #$d_endnent HAS_ENDNETENT /**/
1543 * This symbol, if defined, indicates that the endprotoent() routine is
1544 * available to close whatever was being used for protocol queries.
1546 #$d_endpent HAS_ENDPROTOENT /**/
1549 * This symbol, if defined, indicates that the getgrent routine is
1550 * available for finalizing sequential access of the passwd database.
1552 #$d_endpwent HAS_ENDPWENT /**/
1555 * This symbol, if defined, indicates that the endservent() routine is
1556 * available to close whatever was being used for service queries.
1558 #$d_endsent HAS_ENDSERVENT /**/
1561 * This symbol, if defined, indicates that the getgrent routine is
1562 * available for sequential access of the group database.
1564 #$d_getgrent HAS_GETGRENT /**/
1566 /* HAS_GETHOSTBYADDR:
1567 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1568 * available to look up hosts by their IP addresses.
1570 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1572 /* HAS_GETHOSTBYNAME:
1573 * This symbol, if defined, indicates that the gethostbyname() routine is
1574 * available to look up host names in some data base or other.
1576 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1579 * This symbol, if defined, indicates that the gethostent() routine is
1580 * available to look up host names in some data base or another.
1582 #$d_gethent HAS_GETHOSTENT /**/
1585 * This symbol, if defined, indicates that the C program may use the
1586 * gethostname() routine to derive the host name. See also HAS_UNAME
1590 * This symbol, if defined, indicates that the C program may use the
1591 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1595 * This symbol, if defined, indicates the command to feed to the
1596 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1597 * and HAS_UNAME. Note that the command uses a fully qualified path,
1598 * so that it is safe even if used by a process with super-user
1601 #$d_gethname HAS_GETHOSTNAME /**/
1602 #$d_uname HAS_UNAME /**/
1603 #$d_phostname HAS_PHOSTNAME
1604 #ifdef HAS_PHOSTNAME
1605 #define PHOSTNAME "$aphostname" /* How to get the host name */
1608 /* HAS_GETNETBYADDR:
1609 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1610 * available to look up networks by their IP addresses.
1612 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1614 /* HAS_GETNETBYNAME:
1615 * This symbol, if defined, indicates that the getnetbyname() routine is
1616 * available to look up networks by their names.
1618 #$d_getnbyname HAS_GETNETBYNAME /**/
1621 * This symbol, if defined, indicates that the getnetent() routine is
1622 * available to look up network names in some data base or another.
1624 #$d_getnent HAS_GETNETENT /**/
1627 * This symbol, if defined, indicates that the getprotoent() routine is
1628 * available to look up protocols in some data base or another.
1630 #$d_getpent HAS_GETPROTOENT /**/
1632 /* HAS_GETPROTOBYNAME:
1633 * This symbol, if defined, indicates that the getprotobyname()
1634 * routine is available to look up protocols by their name.
1636 /* HAS_GETPROTOBYNUMBER:
1637 * This symbol, if defined, indicates that the getprotobynumber()
1638 * routine is available to look up protocols by their number.
1640 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1641 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1644 * This symbol, if defined, indicates that the getpwent routine is
1645 * available for sequential access of the passwd database.
1646 * If this is not available, the older getpw() function may be available.
1648 #$d_getpwent HAS_GETPWENT /**/
1651 * This symbol, if defined, indicates that the getservent() routine is
1652 * available to look up network services in some data base or another.
1654 #$d_getsent HAS_GETSERVENT /**/
1656 /* HAS_GETSERVBYNAME:
1657 * This symbol, if defined, indicates that the getservbyname()
1658 * routine is available to look up services by their name.
1660 /* HAS_GETSERVBYPORT:
1661 * This symbol, if defined, indicates that the getservbyport()
1662 * routine is available to look up services by their port.
1664 #$d_getsbyname HAS_GETSERVBYNAME /**/
1665 #$d_getsbyport HAS_GETSERVBYPORT /**/
1668 * This symbol, if defined, indicates that the htonl() routine (and
1669 * friends htons() ntohl() ntohs()) are available to do network
1670 * order byte swapping.
1673 * This symbol, if defined, indicates that the htons() routine (and
1674 * friends htonl() ntohl() ntohs()) are available to do network
1675 * order byte swapping.
1678 * This symbol, if defined, indicates that the ntohl() routine (and
1679 * friends htonl() htons() ntohs()) are available to do network
1680 * order byte swapping.
1683 * This symbol, if defined, indicates that the ntohs() routine (and
1684 * friends htonl() htons() ntohl()) are available to do network
1685 * order byte swapping.
1687 #$d_htonl HAS_HTONL /**/
1688 #$d_htonl HAS_HTONS /**/
1689 #$d_htonl HAS_NTOHL /**/
1690 #$d_htonl HAS_NTOHS /**/
1693 * This symbol will be defined if the C compiler supports long
1697 * This symbol contains the size of a long double, so that the
1698 * C preprocessor can make decisions based on it. It is only
1699 * defined if the system supports long doubles.
1701 #$d_longdbl HAS_LONG_DOUBLE /**/
1702 #ifdef HAS_LONG_DOUBLE
1703 #define LONG_DOUBLESIZE $longdblsize /**/
1707 * This symbol will be defined if the C compiler supports long long.
1710 * This symbol contains the size of a long long, so that the
1711 * C preprocessor can make decisions based on it. It is only
1712 * defined if the system supports long long.
1714 #$d_longlong HAS_LONG_LONG /**/
1715 #ifdef HAS_LONG_LONG
1716 #define LONGLONGSIZE $longlongsize /**/
1720 * This symbol, if defined, indicates that the mmap system call is
1721 * available to map a file into memory.
1724 * This symbol holds the return type of the mmap() system call
1725 * (and simultaneously the type of the first argument).
1726 * Usually set to 'void *' or 'cadd_t'.
1728 #$d_mmap HAS_MMAP /**/
1729 #define Mmap_t $mmaptype /**/
1732 * This symbol, if defined, indicates that the entire msg*(2) library is
1733 * supported (IPC mechanism based on message queues).
1735 #$d_msg HAS_MSG /**/
1738 * This symbol, if defined, indicates that the entire sem*(2) library is
1741 #$d_sem HAS_SEM /**/
1744 * This symbol, if defined, indicates that the setgrent routine is
1745 * available for initializing sequential access of the group database.
1747 #$d_setgrent HAS_SETGRENT /**/
1750 * This symbol, if defined, indicates that the setgroups() routine is
1751 * available to set the list of process groups. If unavailable, multiple
1752 * groups are probably not supported.
1754 #$d_setgrps HAS_SETGROUPS /**/
1757 * This symbol, if defined, indicates that the sethostent() routine is
1760 #$d_sethent HAS_SETHOSTENT /**/
1763 * This symbol, if defined, indicates that the setnetent() routine is
1766 #$d_setnent HAS_SETNETENT /**/
1769 * This symbol, if defined, indicates that the setprotoent() routine is
1772 #$d_setpent HAS_SETPROTOENT /**/
1775 * This symbol, if defined, indicates that the setpwent routine is
1776 * available for initializing sequential access of the passwd database.
1778 #$d_setpwent HAS_SETPWENT /**/
1781 * This symbol, if defined, indicates that the setservent() routine is
1784 #$d_setsent HAS_SETSERVENT /**/
1787 * This symbol, if defined, indicates that the setvbuf routine is
1788 * available to change buffering on an open stdio stream.
1789 * to a line-buffered mode.
1791 #$d_setvbuf HAS_SETVBUF /**/
1794 * This symbol, if defined, indicates that the entire shm*(2) library is
1797 #$d_shm HAS_SHM /**/
1800 * This symbol, if defined, indicates that the BSD socket interface is
1804 * This symbol, if defined, indicates that the BSD socketpair() call is
1808 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1809 * Checking just with #ifdef might not be enough because this symbol
1810 * has been known to be an enum.
1812 /* HAS_MSG_DONTROUTE:
1813 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
1814 * Checking just with #ifdef might not be enough because this symbol
1815 * has been known to be an enum.
1818 * This symbol, if defined, indicates that the MSG_OOB is supported.
1819 * Checking just with #ifdef might not be enough because this symbol
1820 * has been known to be an enum.
1823 * This symbol, if defined, indicates that the MSG_PEEK is supported.
1824 * Checking just with #ifdef might not be enough because this symbol
1825 * has been known to be an enum.
1828 * This symbol, if defined, indicates that the MSG_PROXY is supported.
1829 * Checking just with #ifdef might not be enough because this symbol
1830 * has been known to be an enum.
1833 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
1834 * Checking just with #ifdef might not be enough because this symbol
1835 * has been known to be an enum.
1838 * This symbol, if defined, indicates that the sendmsg is supported
1839 * to send messages between sockets. You will also need struct
1840 * iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1843 * This symbol, if defined, indicates that the recvmsg is supported
1844 * to send messages between sockets. You will also need struct
1845 * iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1847 /* HAS_STRUCT_MSGHDR:
1848 * This symbol, if defined, indicates that the struct msghdr
1849 * (BSD 4.3 or 4.4) is supported. You will also need struct
1850 * iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1852 /* HAS_STRUCT_CMSGHDR:
1853 * This symbol, if defined, indicates that the struct cmsghdr
1854 * (BSD 4.4) is supported. You will also need struct
1855 * iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1857 #$d_socket HAS_SOCKET /**/
1858 #$d_sockpair HAS_SOCKETPAIR /**/
1859 #$d_msg_ctrunc HAS_MSG_CTRUNC /**/
1860 #$d_msg_dontroute HAS_MSG_DONTROUTE /**/
1861 #$d_msg_oob HAS_MSG_OOB /**/
1862 #$d_msg_peek HAS_MSG_PEEK /**/
1863 #$d_msg_proxy HAS_MSG_PROXY /**/
1864 #$d_scm_rights HAS_SCM_RIGHTS /**/
1865 #$d_sendmsg HAS_SENDMSG /**/
1866 #$d_recvmsg HAS_RECVMSG /**/
1867 #$d_msghdr_s HAS_STRUCT_MSGHDR /**/
1868 #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
1871 * This symbol is defined if this system has a stat structure declaring
1872 * st_blksize and st_blocks.
1874 #$d_statblks USE_STAT_BLOCKS /**/
1877 * This symbol, if defined, indicates that the strerror routine is
1878 * available to translate error numbers to strings. See the writeup
1879 * of Strerror() in this file before you try to define your own.
1882 * This symbol, if defined, indicates that the sys_errlist array is
1883 * available to translate error numbers to strings. The extern int
1884 * sys_nerr gives the size of that table.
1887 * This preprocessor symbol is defined as a macro if strerror() is
1888 * not available to translate error numbers to strings but sys_errlist[]
1891 #$d_strerror HAS_STRERROR /**/
1892 #$d_syserrlst HAS_SYS_ERRLIST /**/
1893 #define Strerror(e) $d_strerrm
1896 * This symbol, if defined, indicates that the union semun is
1897 * defined by including <sys/sem.h>. If not, the user code
1898 * probably needs to define it as:
1901 * struct semid_ds *buf;
1902 * unsigned short *array;
1905 /* USE_SEMCTL_SEMUN:
1906 * This symbol, if defined, indicates that union semun is
1907 * used for semctl IPC_STAT.
1909 /* USE_SEMCTL_SEMID_DS:
1910 * This symbol, if defined, indicates that struct semid_ds * is
1911 * used for semctl IPC_STAT.
1913 #$d_union_semun HAS_UNION_SEMUN /**/
1914 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
1915 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1918 * This symbol, if defined, indicates that vfork() exists.
1920 #$d_vfork HAS_VFORK /**/
1923 * This symbol's value is either "void" or "int", corresponding to the
1924 * appropriate return type of a signal handler. Thus, you can declare
1925 * a signal handler using "Signal_t (*handler)()", and define the
1926 * handler using "Signal_t handler(sig)".
1928 #define Signal_t $signal_t /* Signal handler's return type */
1931 * This symbol holds the type used for the second argument to
1932 * getgroups() and setgropus(). Usually, this is the same as
1933 * gidtype (gid_t) , but sometimes it isn't.
1934 * It can be int, ushort, uid_t, etc...
1935 * It may be necessary to include <sys/types.h> to get any
1936 * typedef'ed information. This is only required if you have
1937 * getgroups() or setgropus()..
1939 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1940 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1944 * This symbol, if defined, indicates to the C program that it should
1948 * This symbol, if defined, indicates to the C program that struct group
1949 * in <grp.h> contains gr_passwd.
1952 #$d_grpasswd GRPASSWD /**/
1955 * This symbol, if defined, indicates that <netdb.h> exists and
1956 * should be included.
1958 #$i_netdb I_NETDB /**/
1961 * This symbol, if defined, indicates to the C program that it should
1965 * This symbol, if defined, indicates to the C program that struct passwd
1966 * contains pw_quota.
1969 * This symbol, if defined, indicates to the C program that struct passwd
1973 * This symbol, if defined, indicates to the C program that struct passwd
1974 * contains pw_change.
1977 * This symbol, if defined, indicates to the C program that struct passwd
1978 * contains pw_class.
1981 * This symbol, if defined, indicates to the C program that struct passwd
1982 * contains pw_expire.
1985 * This symbol, if defined, indicates to the C program that struct passwd
1986 * contains pw_comment.
1989 * This symbol, if defined, indicates to the C program that struct passwd
1990 * contains pw_gecos.
1993 * This symbol, if defined, indicates to the C program that struct passwd
1994 * contains pw_passwd.
1997 #$d_pwquota PWQUOTA /**/
1998 #$d_pwage PWAGE /**/
1999 #$d_pwchange PWCHANGE /**/
2000 #$d_pwclass PWCLASS /**/
2001 #$d_pwexpire PWEXPIRE /**/
2002 #$d_pwcomment PWCOMMENT /**/
2003 #$d_pwgecos PWGECOS /**/
2004 #$d_pwpasswd PWPASSWD /**/
2007 * This symbol, if defined, indicates that <sys/uio.h> exists and
2008 * should be included.
2010 #$i_sysuio I_SYSUIO /**/
2013 * This variable contains the return type of free(). It is usually
2014 * void, but occasionally int.
2017 * This symbol is the type of pointer returned by malloc and realloc.
2019 #define Malloc_t $malloctype /**/
2020 #define Free_t $freetype /**/
2023 * This symbol, if defined, indicates that we're using our own malloc.
2025 #$d_mymalloc MYMALLOC /**/
2028 * This symbol contains a list of signal names in order of
2029 * signal number. This is intended
2030 * to be used as a static array initialization, like this:
2031 * char *sig_name[] = { SIG_NAME };
2032 * The signals in the list are separated with commas, and each signal
2033 * is surrounded by double quotes. There is no leading SIG in the signal
2034 * name, i.e. SIGQUIT is known as "QUIT".
2035 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2036 * etc., where nn is the actual signal number (e.g. NUM37).
2037 * The signal number for sig_name[i] is stored in sig_num[i].
2038 * The last element is 0 to terminate the list with a NULL. This
2039 * corresponds to the 0 at the end of the sig_num list.
2042 * This symbol contains a list of signal numbers, in the same order as the
2043 * SIG_NAME list. It is suitable for static array initialization, as in:
2044 * int sig_num[] = { SIG_NUM };
2045 * The signals in the list are separated with commas, and the indices
2046 * within that list and the SIG_NAME list match, so it's easy to compute
2047 * the signal name from a number or vice versa at the price of a small
2048 * dynamic linear lookup.
2049 * Duplicates are allowed, but are moved to the end of the list.
2050 * The signal number corresponding to sig_name[i] is sig_number[i].
2051 * if (i < NSIG) then sig_number[i] == i.
2052 * The last element is 0, corresponding to the 0 at the end of
2053 * the sig_name list.
2055 #define SIG_NAME $sig_name_init /**/
2056 #define SIG_NUM $sig_num_init /**/
2059 * This symbol indicates how much support of the void type is given by this
2060 * compiler. What various bits mean:
2062 * 1 = supports declaration of void
2063 * 2 = supports arrays of pointers to functions returning void
2064 * 4 = supports comparisons between pointers to void functions and
2065 * addresses of void functions
2066 * 8 = suports declaration of generic void pointers
2068 * The package designer should define VOIDUSED to indicate the requirements
2069 * of the package. This can be done either by #defining VOIDUSED before
2070 * including config.h, or by defining defvoidused in Myinit.U. If the
2071 * latter approach is taken, only those flags will be tested. If the
2072 * level of void support necessary is not present, defines void to int.
2075 #define VOIDUSED $defvoidused
2077 #define VOIDFLAGS $voidflags
2078 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
2079 #define void int /* is void to be avoided? */
2080 #define M_VOID /* Xenix strikes again */
2084 * This variable, if defined, holds the name of the directory in
2085 * which the user wants to put architecture-dependent public
2086 * library files for $package. It is most often a local directory
2087 * such as /usr/local/lib. Programs using this variable must be
2088 * prepared to deal with filename expansion. If ARCHLIB is the
2089 * same as PRIVLIB, it is not defined, since presumably the
2090 * program already searches PRIVLIB.
2093 * This symbol contains the ~name expanded version of ARCHLIB, to be used
2094 * in programs that are not prepared to deal with ~ expansion at run-time.
2096 #$d_archlib ARCHLIB "$archlib" /**/
2097 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
2099 /* DLSYM_NEEDS_UNDERSCORE:
2100 * This symbol, if defined, indicates that we need to prepend an
2101 * underscore to the symbol name before calling dlsym(). This only
2102 * makes sense if you *have* dlsym, which we will presume is the
2103 * case if you're using dl_dlopen.xs.
2105 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
2108 * This symbol, if defined, indicates that the fseeko routine is
2109 * available to fseek beyond 32 bits (useful for ILP32 hosts).
2111 #$d_fseeko HAS_FSEEKO /**/
2114 * This symbol, if defined, indicates that the ftello routine is
2115 * available to ftell from beyond 32 bits (useful for ILP32 hosts).
2117 #$d_ftello HAS_FTELLO /**/
2120 * This symbol, if defined, indicates that the getmntent routine is
2121 * available to iterate through mounted file systems.
2123 #$d_getmntent HAS_GETMNTENT /**/
2126 * This symbol, if defined, indicates that the hasmntopt routine is
2127 * available to query the mount options of file systems.
2129 #$d_hasmntopt HAS_HASMNTOPT /**/
2132 * This symbol, if defined, indicates that the madvise system call is
2133 * available to map a file into memory.
2135 #$d_madvise HAS_MADVISE /**/
2138 * This symbol, if defined, indicates that the mprotect system call is
2139 * available to modify the access protection of a memory mapped file.
2141 #$d_mprotect HAS_MPROTECT /**/
2144 * This symbol, if defined, indicates that the readv routine is
2145 * available to do gather reads. You will also need <sys/uio.h>
2146 * and there I_SYSUIO.
2148 #$d_readv HAS_READV /**/
2151 * This symbol, if defined, indicates that sfio should
2154 #$d_sfio USE_SFIO /**/
2157 * This symbol, if defined, indicates that the fstatfs routine is
2158 * available to stat filesystems of file descriptors.
2160 /* HAS_STRUCT_STATFS_FLAGS:
2161 * This symbol, if defined, indicates that the struct statfs
2162 * does have the f_flags member containing the mount flags of
2163 * the filesystem holding the file.
2164 * This kind of struct statfs is coming from sys/mount.h (BSD),
2165 * not from sys/statfs.h (SYSV).
2167 #$d_fstatfs HAS_FSTATFS /**/
2168 #$d_statfsflags HAS_STRUCT_STATFS_FLAGS /**/
2171 * This symbol, if defined, indicates that the fstatvfs routine is
2172 * available to stat filesystems of file descriptors.
2174 #$d_fstatvfs HAS_FSTATVFS /**/
2176 /* HAS_TELLDIR_PROTO:
2177 * This symbol, if defined, indicates that the system provides
2178 * a prototype for the telldir() function. Otherwise, it is up
2179 * to the program to supply one. A good guess is
2180 * extern long telldir _((DIR*));
2182 #$d_telldirproto HAS_TELLDIR_PROTO /**/
2185 * This symbol, if defined, indicates that the writev routine is
2186 * available to do scatter writes.
2188 #$d_writev HAS_WRITEV /**/
2191 * This symbol, if defined, indicates that the dbminit64 routine is
2192 * available to open dbm files larger than 2 gigabytes.
2195 * This symbol, if defined, indicates that the dbmclose64 routine is
2196 * available to close dbm files larger than 2 gigabytes.
2199 * This symbol, if defined, indicates that the fetch64 routine is
2200 * available to fetch from dbm files larger than 2 gigabytes.
2203 * This symbol, if defined, indicates that the store64 routine is
2204 * available to store to dbm files larger than 2 gigabytes.
2207 * This symbol, if defined, indicates that the delete64 routine is
2208 * available to delete from dbm files larger than 2 gigabytes.
2211 * This symbol, if defined, indicates that the firstkey64 routine is
2212 * available to firstkey in dbm files larger than 2 gigabytes.
2215 * This symbol, if defined, indicates that the nextkey64 routine is
2216 * available to nextkey in dbm files larger than 2 gigabytes.
2218 #$d_dbminit64 HAS_DBMINIT64 /**/
2219 #$d_dbmclose64 HAS_DBMCLOSE64 /**/
2220 #$d_fetch64 HAS_FETCH64 /**/
2221 #$d_store64 HAS_STORE64 /**/
2222 #$d_delete64 HAS_DELETE64 /**/
2223 #$d_firstkey64 HAS_FIRSTKEY64 /**/
2224 #$d_nextkey64 HAS_NEXTKEY64 /**/
2226 /* USE_DYNAMIC_LOADING:
2227 * This symbol, if defined, indicates that dynamic loading of
2228 * some sort is available.
2230 #$usedl USE_DYNAMIC_LOADING /**/
2233 * This symbol contains the type of the prefix structure element
2234 * in the <db.h> header file. In older versions of DB, it was
2235 * int, while in newer ones it is u_int32_t.
2238 * This symbol contains the type of the prefix structure element
2239 * in the <db.h> header file. In older versions of DB, it was
2240 * int, while in newer ones it is size_t.
2242 #define DB_Hash_t $db_hashtype /**/
2243 #define DB_Prefix_t $db_prefixtype /**/
2246 * This symbol, if defined, indicates to the C program that it should
2247 * include <inttypes.h>.
2250 * This symbol will defined if the C compiler supports int64_t.
2251 * Usually the <inttypes.h> needs to be included, but sometimes
2252 * <sys/types.h> is enough.
2254 #$i_inttypes I_INTTYPES /**/
2255 #$d_int64t HAS_INT64_T /**/
2258 * This symbol, if defined, indicates that <mntent.h> exists and
2259 * should be included.
2261 #$i_mntent I_MNTENT /**/
2264 * This symbol, if defined, indicates that <poll.h> exists and
2265 * should be included.
2267 #$i_poll I_POLL /**/
2270 * This symbol, if defined, indicates that <sys/mman.h> exists and
2271 * should be included.
2273 #$i_sysmman I_SYS_MMAN /**/
2276 * This symbol, if defined, indicates that <sys/mount.h> exists and
2277 * should be included.
2279 #$i_sysmount I_SYS_MOUNT /**/
2282 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2283 * should be included.
2285 #$i_sysstatvfs I_SYS_STATVFS /**/
2287 /* INSTALL_USR_BIN_PERL:
2288 * This symbol, if defined, indicates that Perl is to be installed
2289 * also as /usr/bin/perl.
2291 #$installusrbinperl INSTALL_USR_BIN_PERL /**/
2294 * This symbol, if defined, indicates that the fstat64 routine is
2295 * available to stat files (fds) larger than 2 gigabytes.
2298 * This symbol, if defined, indicates that the ftruncate64 routine is
2299 * available to tell files larger than 2 gigabytes.
2302 * This symbol, if defined, indicates that the lseek64 routine is
2303 * available to seek files larger than 2 gigabytes.
2306 * This symbol, if defined, indicates that the lstat64 routine is
2307 * available to stat files (symlinks) larger than 2 gigabytes.
2310 * This symbol, if defined, indicates that the open64 routine is
2311 * available to open files larger than 2 gigabytes.
2314 * This symbol, if defined, indicates that the opendir64 routine is
2315 * available to opendir files larger than 2 gigabytes.
2318 * This symbol, if defined, indicates that the readdir64 routine is
2319 * available to readdir files larger than 2 gigabytes.
2322 * This symbol, if defined, indicates that the seekdir64 routine is
2323 * available to seekdir files larger than 2 gigabytes.
2326 * This symbol, if defined, indicates that the stat64 routine is
2327 * available to stat files larger than 2 gigabytes.
2330 * This symbol, if defined, indicates that the telldir64 routine is
2331 * available to telldir files larger than 2 gigabytes.
2334 * This symbol, if defined, indicates that the truncate64 routine is
2335 * available to truncate files larger than 2 gigabytes.
2338 * This symbol will be defined if the C compiler supports off64_t.
2340 /* HAS_STRUCT_DIRENT64:
2341 * This symbol will be defined if the C compiler supports struct dirent64.
2343 #$d_fstat64 HAS_FSTAT64 /**/
2344 #$d_ftruncate64 HAS_FTRUNCATE64 /**/
2345 #$d_lseek64 HAS_LSEEK64 /**/
2346 #$d_lstat64 HAS_LSTAT64 /**/
2347 #$d_open64 HAS_OPEN64 /**/
2348 #$d_opendir64 HAS_OPENDIR64 /**/
2349 #$d_readdir64 HAS_READDIR64 /**/
2350 #$d_seekdir64 HAS_SEEKDIR64 /**/
2351 #$d_stat64 HAS_STAT64 /**/
2352 #$d_telldir64 HAS_TELLDIR64 /**/
2353 #$d_truncate64 HAS_TRUNCATE64 /**/
2354 #$d_off64_t HAS_OFF64_T /**/
2355 #$d_dirent64_s HAS_STRUCT_DIRENT64 /**/
2358 * This symbol contains the name of the private library for this package.
2359 * The library is private in the sense that it needn't be in anyone's
2360 * execution path, but it should be accessible by the world. The program
2361 * should be prepared to do ~ expansion.
2364 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2365 * in programs that are not prepared to deal with ~ expansion at run-time.
2367 #define PRIVLIB "$privlib" /**/
2368 #define PRIVLIB_EXP "$privlibexp" /**/
2371 * This symbol holds the minimum number of bits operated by select.
2372 * That is, if you do select(n, ...), how many bits at least will be
2373 * cleared in the masks if some activity is detected. Usually this
2374 * is either n or 32*ceil(n/32), especially many little-endians do
2375 * the latter. This is only useful if you have select(), naturally.
2377 #define SELECT_MIN_BITS $selectminbits /**/
2380 * This symbol contains the name of the private library for this package.
2381 * The library is private in the sense that it needn't be in anyone's
2382 * execution path, but it should be accessible by the world. The program
2383 * should be prepared to do ~ expansion.
2384 * The standard distribution will put nothing in this directory.
2385 * Individual sites may place their own extensions and modules in
2389 * This symbol contains the ~name expanded version of SITEARCH, to be used
2390 * in programs that are not prepared to deal with ~ expansion at run-time.
2392 #define SITEARCH "$sitearch" /**/
2393 #define SITEARCH_EXP "$sitearchexp" /**/
2396 * This symbol contains the name of the private library for this package.
2397 * The library is private in the sense that it needn't be in anyone's
2398 * execution path, but it should be accessible by the world. The program
2399 * should be prepared to do ~ expansion.
2400 * The standard distribution will put nothing in this directory.
2401 * Individual sites may place their own extensions and modules in
2405 * This symbol contains the ~name expanded version of SITELIB, to be used
2406 * in programs that are not prepared to deal with ~ expansion at run-time.
2408 #define SITELIB "$sitelib" /**/
2409 #define SITELIB_EXP "$sitelibexp" /**/
2412 * This variable contains the string to put in front of a perl
2413 * script to make sure (one hopes) that it runs with perl and not
2416 #define STARTPERL "$startperl" /**/
2419 * This symbol, if defined, indicates that the fgetpos64 routine is
2420 * available to getpos files larger than 2 gigabytes.
2423 * This symbol, if defined, indicates that the fopen64 routine is
2424 * available to open files larger than 2 gigabytes.
2427 * This symbol, if defined, indicates that the freopen64 routine is
2428 * available to reopen files larger than 2 gigabytes.
2431 * This symbol, if defined, indicates that the fseek64 routine is
2432 * available to seek files larger than 2 gigabytes.
2435 * This symbol, if defined, indicates that the fseeko64 routine is
2436 * available to seek files larger than 2 gigabytes.
2439 * This symbol, if defined, indicates that the fsetpos64 routine is
2440 * available to setpos files larger than 2 gigabytes.
2443 * This symbol, if defined, indicates that the ftell64 routine is
2444 * available to tell files larger than 2 gigabytes.
2447 * This symbol, if defined, indicates that the ftello64 routine is
2448 * available to tell files larger than 2 gigabytes.
2451 * This symbol, if defined, indicates that the tmpfile64 routine is
2452 * available to tmpfile files larger than 2 gigabytes.
2454 #$d_fgetpos64 HAS_FGETPOS64 /**/
2455 #$d_fopen64 HAS_FOPEN64 /**/
2456 #$d_freopen64 HAS_FREOPEN64 /**/
2457 #$d_fseek64 HAS_FSEEK64 /**/
2458 #$d_fseeko64 HAS_FSEEKO64 /**/
2459 #$d_fsetpos64 HAS_FSETPOS64 /**/
2460 #$d_ftell64 HAS_FTELL64 /**/
2461 #$d_ftello64 HAS_FTELLO64 /**/
2462 #$d_tmpfile64 HAS_TMPFILE64 /**/
2465 * This symbol, if defined, indicates that 64-bit interfaces should
2466 * be used when available. If not defined, the native default interfaces
2467 * will be used (be they 32 or 64 bits).
2469 #$use64bits USE_64_BITS /**/
2472 * This symbol, if defined, indicates that Perl should
2473 * be built to use multiplicity.
2475 #$usemultiplicity MULTIPLICITY /**/
2478 * This symbol, if defined, indicates that the PerlIO abstraction should
2479 * be used throughout. If not defined, stdio should be
2480 * used in a fully backward compatible manner.
2482 #$useperlio USE_PERLIO /**/
2484 /* HAS_DRAND48_PROTO:
2485 * This symbol, if defined, indicates that the system provides
2486 * a prototype for the drand48() function. Otherwise, it is up
2487 * to the program to supply one. A good guess is
2488 * extern double drand48 _((void));
2490 #$d_drand48proto HAS_DRAND48_PROTO /**/
2492 /* HAS_GETHOST_PROTOS:
2493 * This symbol, if defined, indicates that <netdb.h> includes
2494 * prototypes for gethostent(), gethostbyname(), and
2495 * gethostbyaddr(). Otherwise, it is up to the program to guess
2496 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2498 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
2500 /* HAS_GETNET_PROTOS:
2501 * This symbol, if defined, indicates that <netdb.h> includes
2502 * prototypes for getnetent(), getnetbyname(), and
2503 * getnetbyaddr(). Otherwise, it is up to the program to guess
2504 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2506 #$d_getnetprotos HAS_GETNET_PROTOS /**/
2508 /* HAS_GETPROTO_PROTOS:
2509 * This symbol, if defined, indicates that <netdb.h> includes
2510 * prototypes for getprotoent(), getprotobyname(), and
2511 * getprotobyaddr(). Otherwise, it is up to the program to guess
2512 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2514 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2516 /* HAS_GETSERV_PROTOS:
2517 * This symbol, if defined, indicates that <netdb.h> includes
2518 * prototypes for getservent(), getservbyname(), and
2519 * getservbyaddr(). Otherwise, it is up to the program to guess
2520 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2522 #$d_getservprotos HAS_GETSERV_PROTOS /**/
2525 * This symbol holds the type used for the 1st argument
2526 * to gethostbyaddr().
2529 * This symbol holds the type used for the 2nd argument
2530 * to gethostbyaddr().
2533 * This symbol holds the type used for the argument to
2537 * This symbol holds the type used for the 1st argument to
2540 #define Netdb_host_t $netdb_host_type /**/
2541 #define Netdb_hlen_t $netdb_hlen_type /**/
2542 #define Netdb_name_t $netdb_name_type /**/
2543 #define Netdb_net_t $netdb_net_type /**/
2546 * This symbol holds the type used for the 2nd, 3rd, and 4th
2547 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2548 * is defined, and 'int *' otherwise. This is only useful if you
2549 * have select(), of course.
2551 #define Select_fd_set_t $selecttype /**/
2554 * This symbol holds a string representing the architecture name.
2555 * It may be used to construct an architecture-dependant pathname
2556 * where library files may be held under a private library, for
2559 #define ARCHNAME "$archname" /**/
2561 /* OLD_PTHREAD_CREATE_JOINABLE:
2562 * This symbol, if defined, indicates how to create pthread
2563 * in joinable (aka undetached) state. NOTE: not defined
2564 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2565 * (the new version of the constant).
2566 * If defined, known values are PTHREAD_CREATE_UNDETACHED
2569 #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2571 /* HAS_PTHREAD_YIELD:
2572 * This symbol, if defined, indicates that the pthread_yield
2573 * routine is available to yield the execution of the current
2574 * thread. sched_yield is preferable to pthread_yield.
2577 * This symbol defines the way to yield the execution of
2578 * the current thread. Known ways are sched_yield,
2579 * pthread_yield, and pthread_yield with NULL.
2582 * This symbol, if defined, indicates that the sched_yield
2583 * routine is available to yield the execution of the current
2584 * thread. sched_yield is preferable to pthread_yield.
2586 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
2587 #define SCHED_YIELD $sched_yield /**/
2588 #$d_sched_yield HAS_SCHED_YIELD /**/
2591 * This symbol, if defined, indicates to the C program that it should
2592 * include <mach/cthreads.h>.
2594 #$i_machcthr I_MACH_CTHREADS /**/
2597 * This symbol, if defined, indicates that Perl should
2598 * be built to use threads.
2600 /* OLD_PTHREADS_API:
2601 * This symbol, if defined, indicates that Perl should
2602 * be built to use the old draft POSIX threads API.
2604 #$usethreads USE_THREADS /**/
2605 #$d_oldpthreads OLD_PTHREADS_API /**/
2608 * This symbol holds the type returned by time(). It can be long,
2609 * or time_t on BSD sites (in which case <sys/types.h> should be
2612 #define Time_t $timetype /* Time type */
2615 * This symbol, if defined, indicates that the times() routine exists.
2616 * Note that this became obsolete on some systems (SUNOS), which now
2617 * use getrusage(). It may be necessary to include <sys/times.h>.
2619 #$d_times HAS_TIMES /**/
2622 * This symbol holds the type used to declare file positions in libc.
2623 * It can be fpos_t, long, uint, etc... It may be necessary to include
2624 * <sys/types.h> to get any typedef'ed information.
2626 #define Fpos_t $fpostype /* File position type */
2629 * This symbol holds the return type of getgid() and the type of
2630 * argument to setrgid() and related functions. Typically,
2631 * it is the type of group ids in the kernel. It can be int, ushort,
2632 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2633 * any typedef'ed information.
2635 #define Gid_t $gidtype /* Type for getgid(), etc... */
2638 * This symbol holds the type used to declare offsets in the kernel.
2639 * It can be int, long, off_t, etc... It may be necessary to include
2640 * <sys/types.h> to get any typedef'ed information.
2643 * This symbol holds the number of bytes used by the Off_t.
2645 #define Off_t $lseektype /* <offset> type */
2646 #define LSEEKSIZE $lseeksize /* <offset> size */
2649 * This symbol holds the type used to declare file modes
2650 * for systems calls. It is usually mode_t, but may be
2651 * int or unsigned short. It may be necessary to include <sys/types.h>
2652 * to get any typedef'ed information.
2654 #define Mode_t $modetype /* file mode parameter for system calls */
2657 * This symbol holds the type used to declare process ids in the kernel.
2658 * It can be int, uint, pid_t, etc... It may be necessary to include
2659 * <sys/types.h> to get any typedef'ed information.
2661 #define Pid_t $pidtype /* PID type */
2664 * This symbol holds the type used to declare length parameters
2665 * for string functions. It is usually size_t, but may be
2666 * unsigned long, int, etc. It may be necessary to include
2667 * <sys/types.h> to get any typedef'ed information.
2669 #define Size_t $sizetype /* length paramater for string functions */
2672 * This symbol holds the type used to declare user ids in the kernel.
2673 * It can be int, ushort, uid_t, etc... It may be necessary to include
2674 * <sys/types.h> to get any typedef'ed information.
2676 #define Uid_t $uidtype /* UID type */