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!' -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.3 1995/01/30 14:25:39 ram Exp $
31 /* Configuration time: $cf_time
32 * Configured by: $cf_by
33 * Target system: $myuname
40 * This symbol contains the number of bytes required to align a
41 * double. Usual values are 2, 4 and 8.
43 #define MEM_ALIGNBYTES $alignbytes /**/
46 * This symbol contains the ~name expanded version of ARCHLIB, to be used
47 * in programs that are not prepared to deal with ~ expansion at run-time.
49 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
52 * This symbol holds the path of the bin directory where the package will
53 * be installed. Program must be prepared to deal with ~name substitution.
55 #define BIN "$bin" /**/
58 * This symbol hold the hexadecimal constant defined in byteorder,
59 * i.e. 0x1234 or 0x4321, etc...
61 #define BYTEORDER 0x$byteorder /* large digits for MSB */
64 * This macro catenates 2 tokens together.
67 * This macro surrounds its token with double quotes.
70 #define CAT2(a,b)a/**/b
71 #define CAT3(a,b,c)a/**/b/**/c
72 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
73 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
74 #define STRINGIFY(a)"a"
75 /* If you can get stringification with catify, tell me how! */
78 #define CAT2(a,b)a ## b
79 #define CAT3(a,b,c)a ## b ## c
80 #define CAT4(a,b,c,d)a ## b ## c ## d
81 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
83 #define STRINGIFY(a)StGiFy(a)
84 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
85 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
86 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
87 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
90 #include "Bletch: How does this C preprocessor catenate tokens?"
94 * This symbol contains the first part of the string which will invoke
95 * the C preprocessor on the standard input and produce to standard
96 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
97 * call a wrapper. See CPPRUN.
100 * This symbol contains the second part of the string which will invoke
101 * the C preprocessor on the standard input and produce to standard
102 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
103 * to specify standard input, otherwise the value is "".
105 #define CPPSTDIN "$cppstdin"
106 #define CPPMINUS "$cppminus"
109 * This symbol, if defined, indicates that the alarm routine is
112 #$d_alarm HAS_ALARM /**/
115 * This symbol indicates the C compiler can check for function attributes,
116 * such as printf formats. This is normally only supported by GNU cc.
118 #$d_attribut HASATTRIBUTE /**/
120 #define __attribute__(_arg_)
124 * This symbol is defined if the bcmp() routine is available to
125 * compare blocks of memory.
127 #$d_bcmp HAS_BCMP /**/
130 * This symbol is defined if the bcopy() routine is available to
131 * copy blocks of memory.
133 #$d_bcopy HAS_BCOPY /**/
136 * This symbol is defined if the bzero() routine is available to
137 * set a memory block to 0.
139 #$d_bzero HAS_BZERO /**/
142 * This symbol is defined if the C compiler can cast negative
143 * or large floating point numbers to 32-bit ints.
145 #$d_casti32 CASTI32 /**/
148 * This symbol is defined if the C compiler can cast negative
149 * numbers to unsigned longs, ints and shorts.
152 * This symbol contains flags that say what difficulties the compiler
153 * has casting odd floating values to unsigned long:
155 * 1 = couldn't cast < 0
156 * 2 = couldn't cast >= 0x80000000
158 #$d_castneg CASTNEGFLOAT /**/
159 #define CASTFLAGS $castflags /**/
162 * This symbol, if defined, indicates that the chown routine is
165 #$d_chown HAS_CHOWN /**/
168 * This symbol, if defined, indicates that the chroot routine is
171 #$d_chroot HAS_CHROOT /**/
174 * This symbol, if defined, indicates that the chsize routine is available
175 * to truncate files. You might need a -lx to get this routine.
177 #$d_chsize HAS_CHSIZE /**/
180 * This symbol, if defined, indicates that the closedir() routine
181 * does not return a value.
183 #$d_void_closedir VOID_CLOSEDIR /**/
186 * This symbol, if defined, indicates that this C compiler knows about
187 * the const type. There is no need to actually test for that symbol
188 * within your programs. The mere use of the "const" keyword will
189 * trigger the necessary tests.
191 #$d_const HASCONST /**/
197 * This symbol, if defined, indicates that the crypt routine is available
198 * to encrypt passwords and the like.
200 #$d_crypt HAS_CRYPT /**/
203 * This symbol, if defined, indicates that the cuserid routine is
204 * available to get character login names.
206 #$d_cuserid HAS_CUSERID /**/
209 * This symbol, if defined, indicates that this system's <float.h>
210 * or <limits.h> defines the symbol DBL_DIG, which is the number
211 * of significant digits in a double precision number. If this
212 * symbol is not defined, a guess of 15 is usually pretty good.
214 #$d_dbl_dig HAS_DBL_DIG /* */
217 * This symbol, if defined, indicates that the difftime routine is
220 #$d_difftime HAS_DIFFTIME /**/
223 * This symbol, if defined, indicates that the dlerror routine is
224 * available to return a string describing the last error that
225 * occurred from a call to dlopen(), dlclose() or dlsym().
227 #$d_dlerror HAS_DLERROR /**/
229 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
230 * This symbol, if defined, indicates that the bug that prevents
231 * setuid scripts from being secure is not present in this kernel.
234 * This symbol, if defined, indicates that the C program should
235 * check the script that it is executing for setuid/setgid bits, and
236 * attempt to emulate setuid/setgid on systems that have disabled
237 * setuid #! scripts because the kernel can't do it securely.
238 * It is up to the package designer to make sure that this emulation
239 * is done securely. Among other things, it should do an fstat on
240 * the script it just opened to make sure it really is a setuid/setgid
241 * script, it should make sure the arguments passed correspond exactly
242 * to the argument on the #! line, and it should not trust any
243 * subprocesses to which it must pass the filename rather than the
244 * file descriptor of the script to be executed.
246 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
247 #$d_dosuid DOSUID /**/
250 * This symbol, if defined, indicates that the drem routine is
251 * available. This routine is roughly the same as fmod, i.e. it
252 * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod
255 #$d_drem HAS_DREM /**/
258 * This symbol, if defined, indicates that the dup2 routine is
259 * available to duplicate file descriptors.
261 #$d_dup2 HAS_DUP2 /**/
264 * This symbol, if defined, indicates that the fchmod routine is available
265 * to change mode of opened files. If unavailable, use chmod().
267 #$d_fchmod HAS_FCHMOD /**/
270 * This symbol, if defined, indicates that the fchown routine is available
271 * to change ownership of opened files. If unavailable, use chown().
273 #$d_fchown HAS_FCHOWN /**/
276 * This symbol, if defined, indicates to the C program that
277 * the fcntl() function exists.
279 #$d_fcntl HAS_FCNTL /**/
282 * This symbol, if defined, indicates that the fgetpos routine is
283 * available to get the file position indicator, similar to ftell().
285 #$d_fgetpos HAS_FGETPOS /**/
288 * This symbol, if defined, indicates that the system supports filenames
289 * longer than 14 characters.
291 #$d_flexfnam FLEXFILENAMES /**/
294 * This symbol, if defined, indicates that the flock routine is
295 * available to do file locking.
297 #$d_flock HAS_FLOCK /**/
300 * This symbol, if defined, indicates that the fmod routine is
301 * available to compute the remainder r=x-n*y where n=trunc(x/y).
303 #$d_fmod HAS_FMOD /**/
306 * This symbol, if defined, indicates that the fork routine is
309 #$d_fork HAS_FORK /**/
312 * This symbol, if defined, indicates that the fsetpos routine is
313 * available to set the file position indicator, similar to fseek().
315 #$d_fsetpos HAS_FSETPOS /**/
318 * This preprocessor macro is defined to convert a floating point
319 * number to a string without a trailing decimal point. This
320 * emulates the behavior of sprintf("%g"), but is sometimes much more
321 * efficient. If gconvert() is not available, but gcvt() drops the
322 * trailing decimal point, then gcvt() is used. If all else fails,
323 * a macro using sprintf("%g") is used. Arguments for the Gconvert
324 * macro are: value, number of digits, whether trailing zeros should
325 * be retained, and the output buffer.
327 #define Gconvert(x,n,t,b) $d_Gconvert
330 * This symbol, if defined, indicates that the getgroups() routine is
331 * available to get the list of process groups. If unavailable, multiple
332 * groups are probably not supported.
334 #$d_getgrps HAS_GETGROUPS /**/
337 * This symbol, if defined, indicates that the gethostent routine is
338 * available to lookup host names in some data base or other.
340 #$d_gethent HAS_GETHOSTENT /**/
343 * This symbol, if defined, indicates that the C program may use the
344 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
347 #$d_uname HAS_UNAME /**/
350 * This symbol, if defined, indicates that the getlogin routine is
351 * available to get the login name.
353 #$d_getlogin HAS_GETLOGIN /**/
356 * This symbol, if defined, indicates that the getpgrp routine is
357 * available to get the current process group.
359 #$d_getpgrp HAS_GETPGRP /**/
362 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
363 * routine is available to get the current process group.
365 #$d_getpgrp2 HAS_GETPGRP2 /**/
368 * This symbol, if defined, indicates that the getppid routine is
369 * available to get the parent process ID.
371 #$d_getppid HAS_GETPPID /**/
374 * This symbol, if defined, indicates that the getpriority routine is
375 * available to get a process's priority.
377 #$d_getprior HAS_GETPRIORITY /**/
380 * This symbol, if defined, indicates that the htonl() routine (and
381 * friends htons() ntohl() ntohs()) are available to do network
382 * order byte swapping.
385 * This symbol, if defined, indicates that the htons() routine (and
386 * friends htonl() ntohl() ntohs()) are available to do network
387 * order byte swapping.
390 * This symbol, if defined, indicates that the ntohl() routine (and
391 * friends htonl() htons() ntohs()) are available to do network
392 * order byte swapping.
395 * This symbol, if defined, indicates that the ntohs() routine (and
396 * friends htonl() htons() ntohl()) are available to do network
397 * order byte swapping.
399 #$d_htonl HAS_HTONL /**/
400 #$d_htonl HAS_HTONS /**/
401 #$d_htonl HAS_NTOHL /**/
402 #$d_htonl HAS_NTOHS /**/
405 * This manifest constant lets the C program know that isascii
408 #$d_isascii HAS_ISASCII /**/
411 * This symbol, if defined, indicates that the killpg routine is available
412 * to kill process groups. If unavailable, you probably should use kill
413 * with a negative process number.
415 #$d_killpg HAS_KILLPG /**/
418 * This symbol, if defined, indicates that the link routine is
419 * available to create hard links.
421 #$d_link HAS_LINK /**/
424 * This symbol is defined if this system has a FILE structure declaring
425 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
427 #$d_linuxstd USE_LINUX_STDIO /**/
430 * This symbol, if defined, indicates that the localeconv routine is
431 * available for numeric and monetary formatting conventions.
433 #$d_locconv HAS_LOCALECONV /**/
436 * This symbol, if defined, indicates that the lockf routine is
437 * available to do file locking.
439 #$d_lockf HAS_LOCKF /**/
442 * This symbol, if defined, indicates that the lstat routine is
443 * available to do file stats on symbolic links.
445 #$d_lstat HAS_LSTAT /**/
448 * This symbol, if defined, indicates that the mblen routine is available
449 * to find the number of bytes in a multibye character.
451 #$d_mblen HAS_MBLEN /**/
454 * This symbol, if defined, indicates that the mbstowcs routine is
455 * available to covert a multibyte string into a wide character string.
457 #$d_mbstowcs HAS_MBSTOWCS /**/
460 * This symbol, if defined, indicates that the mbtowc routine is available
461 * to covert a multibyte to a wide character.
463 #$d_mbtowc HAS_MBTOWC /**/
466 * This symbol, if defined, indicates that the memcmp routine is available
467 * to compare blocks of memory.
469 #$d_memcmp HAS_MEMCMP /**/
472 * This symbol, if defined, indicates that the memcpy routine is available
473 * to copy blocks of memory.
475 #$d_memcpy HAS_MEMCPY /**/
478 * This symbol, if defined, indicates that the memmove routine is available
479 * to copy potentially overlapping blocks of memory. This should be used
480 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
483 #$d_memmove HAS_MEMMOVE /**/
486 * This symbol, if defined, indicates that the memset routine is available
487 * to set blocks of memory.
489 #$d_memset HAS_MEMSET /**/
492 * This symbol, if defined, indicates that the mkdir routine is available
493 * to create directories. Otherwise you should fork off a new process to
496 #$d_mkdir HAS_MKDIR /**/
499 * This symbol, if defined, indicates that the mkfifo routine is
500 * available to create FIFOs. Otherwise, mknod should be able to
501 * do it for you. However, if mkfifo is there, mknod might require
502 * super-user privileges which mkfifo will not.
504 #$d_mkfifo HAS_MKFIFO /**/
507 * This symbol, if defined, indicates that the mktime routine is
510 #$d_mktime HAS_MKTIME /**/
513 * This symbol, if defined, indicates that the entire msg*(2) library is
514 * supported (IPC mechanism based on message queues).
519 * This symbol, if defined, indicates that the nice routine is
522 #$d_nice HAS_NICE /**/
525 * This manifest constant lets the C program know that the three
526 * argument form of open(2) is available.
528 #$d_open3 HAS_OPEN3 /**/
531 * This symbol, if defined, indicates that pathconf() is available
532 * to determine file-system related limits and options associated
533 * with a given filename.
536 * This symbol, if defined, indicates that pathconf() is available
537 * to determine file-system related limits and options associated
538 * with a given open file descriptor.
540 #$d_pathconf HAS_PATHCONF /**/
541 #$d_fpathconf HAS_FPATHCONF /**/
544 * This symbol, if defined, indicates that the pause routine is
545 * available to suspend a process until a signal is received.
547 #$d_pause HAS_PAUSE /**/
550 * This symbol, if defined, indicates that the pipe routine is
551 * available to create an inter-process channel.
553 #$d_pipe HAS_PIPE /**/
556 * This symbol, if defined, indicates that the readdir routine is
557 * available to read directory entries. You may have to include
558 * <dirent.h>. See I_DIRENT.
560 #$d_readdir HAS_READDIR /**/
563 * This symbol, if defined, indicates that the seekdir routine is
564 * available. You may have to include <dirent.h>. See I_DIRENT.
566 #$d_seekdir HAS_SEEKDIR /**/
569 * This symbol, if defined, indicates that the telldir routine is
570 * available. You may have to include <dirent.h>. See I_DIRENT.
572 #$d_telldir HAS_TELLDIR /**/
575 * This symbol, if defined, indicates that the rewinddir routine is
576 * available. You may have to include <dirent.h>. See I_DIRENT.
578 #$d_rewinddir HAS_REWINDDIR /**/
581 * This symbol, if defined, indicates that the readlink routine is
582 * available to read the value of a symbolic link.
584 #$d_readlink HAS_READLINK /**/
587 * This symbol, if defined, indicates that the rename routine is available
588 * to rename files. Otherwise you should do the unlink(), link(), unlink()
591 #$d_rename HAS_RENAME /**/
594 * This symbol, if defined, indicates that the rmdir routine is
595 * available to remove directories. Otherwise you should fork off a
596 * new process to exec /bin/rmdir.
598 #$d_rmdir HAS_RMDIR /**/
601 * This symbol, if defined, indicates that the bcopy routine is available
602 * to copy potentially overlapping memory blocks. Otherwise you should
603 * probably use memmove() or memcpy(). If neither is defined, roll your
606 #$d_safebcpy HAS_SAFE_BCOPY /**/
609 * This symbol, if defined, indicates that the memcpy routine is available
610 * to copy potentially overlapping memory blocks. Otherwise you should
611 * probably use memmove() or memcpy(). If neither is defined, roll your
614 #$d_safemcpy HAS_SAFE_MEMCPY /**/
617 * This symbol, if defined, indicates that the select routine is
618 * available to select active file descriptors. If the timeout field
619 * is used, <sys/time.h> may need to be included.
621 #$d_select HAS_SELECT /**/
624 * This symbol, if defined, indicates that the entire sem*(2) library is
630 * This symbol, if defined, indicates that the setegid routine is available
631 * to change the effective gid of the current program.
633 #$d_setegid HAS_SETEGID /**/
636 * This symbol, if defined, indicates that the seteuid routine is available
637 * to change the effective uid of the current program.
639 #$d_seteuid HAS_SETEUID /**/
642 * This symbol, if defined, indicates that the setlinebuf routine is
643 * available to change stderr or stdout from block-buffered or unbuffered
644 * to a line-buffered mode.
646 #$d_setlinebuf HAS_SETLINEBUF /**/
649 * This symbol, if defined, indicates that the setlocale routine is
650 * available to handle locale-specific ctype implementations.
652 #$d_setlocale HAS_SETLOCALE /**/
655 * This symbol, if defined, indicates that the setpgid routine is
656 * available to set process group ID.
658 #$d_setpgid HAS_SETPGID /**/
661 * This symbol, if defined, indicates that the setpgrp routine is
662 * available to set the current process group.
665 * This symbol, if defined, indicates that the BSD notion of process
666 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
667 * instead of the USG setpgrp().
669 #$d_setpgrp HAS_SETPGRP /**/
670 #$d_bsdpgrp USE_BSDPGRP /**/
673 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
674 * routine is available to set the current process group.
676 #$d_setpgrp2 HAS_SETPGRP2 /**/
679 * This symbol, if defined, indicates that the setpriority routine is
680 * available to set a process's priority.
682 #$d_setprior HAS_SETPRIORITY /**/
685 * This symbol, if defined, indicates that the setregid routine is
686 * available to change the real and effective gid of the current
690 * This symbol, if defined, indicates that the setresgid routine is
691 * available to change the real, effective and saved gid of the current
694 #$d_setregid HAS_SETREGID /**/
695 #$d_setresgid HAS_SETRESGID /**/
698 * This symbol, if defined, indicates that the setreuid routine is
699 * available to change the real and effective uid of the current
703 * This symbol, if defined, indicates that the setresuid routine is
704 * available to change the real, effective and saved uid of the current
707 #$d_setreuid HAS_SETREUID /**/
708 #$d_setresuid HAS_SETRESUID /**/
711 * This symbol, if defined, indicates that the setrgid routine is available
712 * to change the real gid of the current program.
714 #$d_setrgid HAS_SETRGID /**/
717 * This symbol, if defined, indicates that the setruid routine is available
718 * to change the real uid of the current program.
720 #$d_setruid HAS_SETRUID /**/
723 * This symbol, if defined, indicates that the setsid routine is
724 * available to set the process group ID.
726 #$d_setsid HAS_SETSID /**/
729 * This symbol, if defined, indicates that the entire shm*(2) library is
735 * This symbol holds the return type of the shmat() system call.
736 * Usually set to 'void *' or 'char *'.
738 /* HAS_SHMAT_PROTOTYPE:
739 * This symbol, if defined, indicates that the sys/shm.h includes
740 * a prototype for shmat(). Otherwise, it is up to the program to
741 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
742 * but not always right so it should be emitted by the program only
743 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
745 #define Shmat_t $shmattype /**/
746 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
749 * This symbol, if defined, indicates that the BSD socket interface is
753 * This symbol, if defined, indicates that the BSD socketpair() call is
756 #$d_socket HAS_SOCKET /**/
757 #$d_sockpair HAS_SOCKETPAIR /**/
760 * This symbol is defined if this system has a stat structure declaring
761 * st_blksize and st_blocks.
763 #$d_statblks USE_STAT_BLOCKS /**/
766 * This symbol is defined if this system has a FILE structure declaring
767 * _ptr and _cnt in stdio.h.
769 #$d_stdstdio USE_STD_STDIO /**/
772 * This symbol is defined to indicate that the strchr()/strrchr()
773 * functions are available for string searching. If not, try the
774 * index()/rindex() pair.
777 * This symbol is defined to indicate that the index()/rindex()
778 * functions are available for string searching.
780 #$d_strchr HAS_STRCHR /**/
781 #$d_index HAS_INDEX /**/
784 * This symbol, if defined, indicates that the strcoll routine is
785 * available to compare strings using collating information.
787 #$d_strcoll HAS_STRCOLL /**/
790 * This symbol, if defined, indicates that this C compiler knows how
791 * to copy structures. If undefined, you'll need to use a block copy
792 * routine of some sort instead.
794 #$d_strctcpy USE_STRUCT_COPY /**/
797 * This symbol, if defined, indicates that the strerror routine is
798 * available to translate error numbers to strings. See the writeup
799 * of Strerror() in this file before you try to define your own.
802 * This symbol, if defined, indicates that the sys_errlist array is
803 * available to translate error numbers to strings. The extern int
804 * sys_nerr gives the size of that table.
807 * This preprocessor symbol is defined as a macro if strerror() is
808 * not available to translate error numbers to strings but sys_errlist[]
811 #$d_strerror HAS_STRERROR /**/
812 #$d_syserrlst HAS_SYS_ERRLIST /**/
813 #define Strerror(e) $d_strerrm
816 * This symbol, if defined, indicates that the strxfrm() routine is
817 * available to transform strings.
819 #$d_strxfrm HAS_STRXFRM /**/
822 * This symbol, if defined, indicates that the symlink routine is available
823 * to create symbolic links.
825 #$d_symlink HAS_SYMLINK /**/
828 * This symbol, if defined, indicates that the syscall routine is
829 * available to call arbitrary system calls. If undefined, that's tough.
831 #$d_syscall HAS_SYSCALL /**/
834 * This symbol, if defined, indicates that sysconf() is available
835 * to determine system related limits and options.
837 #$d_sysconf HAS_SYSCONF /**/
840 * This symbol, if defined, indicates that the system routine is
841 * available to issue a shell command.
843 #$d_system HAS_SYSTEM /**/
846 * This symbol, if defined, indicates that the tcgetpgrp routine is
847 * available to get foreground process group ID.
849 #$d_tcgetpgrp HAS_TCGETPGRP /**/
852 * This symbol, if defined, indicates that the tcsetpgrp routine is
853 * available to set foreground process group ID.
855 #$d_tcsetpgrp HAS_TCSETPGRP /**/
858 * This symbol holds the type returned by time(). It can be long,
859 * or time_t on BSD sites (in which case <sys/types.h> should be
862 #define Time_t $timetype /* Time type */
865 * This symbol, if defined, indicates that the times() routine exists.
866 * Note that this became obsolete on some systems (SUNOS), which now
867 * use getrusage(). It may be necessary to include <sys/times.h>.
869 #$d_times HAS_TIMES /**/
872 * This symbol, if defined, indicates that the truncate routine is
873 * available to truncate files.
875 #$d_truncate HAS_TRUNCATE /**/
878 * This symbol, if defined, indicates that the tzname[] array is
879 * available to access timezone names.
881 #$d_tzname HAS_TZNAME /**/
884 * This symbol, if defined, indicates that the umask routine is
885 * available to set and get the value of the file creation mask.
887 #$d_umask HAS_UMASK /**/
890 * This symbol, if defined, indicates that vfork() exists.
892 #$d_vfork HAS_VFORK /**/
895 * This symbol's value is either "void" or "int", corresponding to the
896 * appropriate return type of a signal handler. Thus, you can declare
897 * a signal handler using "Signal_t (*handler)()", and define the
898 * handler using "Signal_t handler(sig)".
900 #define Signal_t $signal_t /* Signal handler's return type */
903 * This symbol, if defined, indicates that this C compiler knows about
904 * the volatile declaration.
906 #$d_volatile HASVOLATILE /**/
912 * This symbol, if defined, indicates that the vprintf routine is available
913 * to printf with a pointer to an argument list. If unavailable, you
914 * may need to write your own, probably in terms of _doprnt().
916 /* USE_CHAR_VSPRINTF:
917 * This symbol is defined if this system has vsprintf() returning type
918 * (char*). The trend seems to be to declare it as "int vsprintf()". It
919 * is up to the package author to declare vsprintf correctly based on the
922 #$d_vprintf HAS_VPRINTF /**/
923 #$d_charvspr USE_CHAR_VSPRINTF /**/
926 * This symbol, if defined, indicates that wait4() exists.
928 #$d_wait4 HAS_WAIT4 /**/
931 * This symbol, if defined, indicates that the waitpid routine is
932 * available to wait for child process.
934 #$d_waitpid HAS_WAITPID /**/
937 * This symbol, if defined, indicates that the wcstombs routine is
938 * available to convert wide character strings to multibyte strings.
940 #$d_wcstombs HAS_WCSTOMBS /**/
943 * This symbol, if defined, indicates that the wctomb routine is available
944 * to covert a wide character to a multibyte.
946 #$d_wctomb HAS_WCTOMB /**/
949 * This symbol holds the type used to declare file positions in libc.
950 * It can be fpos_t, long, uint, etc... It may be necessary to include
951 * <sys/types.h> to get any typedef'ed information.
953 #define Fpos_t $fpostype /* File position type */
956 * This symbol holds the return type of getgid() and the type of
957 * argument to setrgid() and related functions. Typically,
958 * it is the type of group ids in the kernel. It can be int, ushort,
959 * uid_t, etc... It may be necessary to include <sys/types.h> to get
960 * any typedef'ed information.
962 #define Gid_t $gidtype /* Type for getgid(), etc... */
965 * This symbol holds the type used for the second argument to
966 * getgroups(). Usually, this is the same of gidtype, but
967 * sometimes it isn't. It can be int, ushort, uid_t, etc...
968 * It may be necessary to include <sys/types.h> to get any
969 * typedef'ed information. This is only required if you have
973 #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
977 * This symbol, if defined, indicates to the C program that it should
978 * include <dirent.h>. Using this symbol also triggers the definition
979 * of the Direntry_t define which ends up being 'struct dirent' or
980 * 'struct direct' depending on the availability of <dirent.h>.
983 * This symbol, if defined, indicates to the C program that the length
984 * of directory entry names is provided by a d_namlen field. Otherwise
985 * you need to do strlen() on the d_name field.
988 * This symbol is set to 'struct direct' or 'struct dirent' depending on
989 * whether dirent is available or not. You should use this pseudo type to
990 * portably declare your directory entries.
992 #$i_dirent I_DIRENT /**/
993 #$d_dirnamlen DIRNAMLEN /**/
994 #define Direntry_t $direntrytype
997 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1000 #$i_dlfcn I_DLFCN /**/
1003 * This manifest constant tells the C program to include <fcntl.h>.
1005 #$i_fcntl I_FCNTL /**/
1008 * This symbol, if defined, indicates to the C program that it should
1009 * include <float.h> to get definition of symbols like DBL_MAX or
1010 * DBL_MIN, i.e. machine dependent floating point values.
1012 #$i_float I_FLOAT /**/
1015 * This symbol, if defined, indicates to the C program that it should
1021 * This symbol, if defined, indicates to the C program that it should
1022 * include <limits.h> to get definition of symbols like WORD_BIT or
1023 * LONG_MAX, i.e. machine dependant limitations.
1025 #$i_limits I_LIMITS /**/
1028 * This symbol, if defined, indicates to the C program that it should
1031 #$i_math I_MATH /**/
1034 * This symbol, if defined, indicates to the C program that it should
1035 * include <memory.h>.
1037 #$i_memory I_MEMORY /**/
1040 * This symbol, if defined, indicates that <net/errno.h> exists and
1041 * should be included.
1043 #$i_neterrno I_NET_ERRNO /**/
1046 * This symbol, if defined, indicates to the C program that it should
1047 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1049 #$i_niin I_NETINET_IN /**/
1052 * This symbol, if defined, indicates to the C program that it should
1056 * This symbol, if defined, indicates to the C program that struct passwd
1057 * contains pw_quota.
1060 * This symbol, if defined, indicates to the C program that struct passwd
1064 * This symbol, if defined, indicates to the C program that struct passwd
1065 * contains pw_change.
1068 * This symbol, if defined, indicates to the C program that struct passwd
1069 * contains pw_class.
1072 * This symbol, if defined, indicates to the C program that struct passwd
1073 * contains pw_expire.
1076 * This symbol, if defined, indicates to the C program that struct passwd
1077 * contains pw_comment.
1080 #$d_pwquota PWQUOTA /**/
1081 #$d_pwage PWAGE /**/
1082 #$d_pwchange PWCHANGE /**/
1083 #$d_pwclass PWCLASS /**/
1084 #$d_pwexpire PWEXPIRE /**/
1085 #$d_pwcomment PWCOMMENT /**/
1088 * This symbol, if defined, indicates that <stddef.h> exists and should
1091 #$i_stddef I_STDDEF /**/
1094 * This symbol, if defined, indicates that <stdlib.h> exists and should
1097 #$i_stdlib I_STDLIB /**/
1100 * This symbol, if defined, indicates to the C program that it should
1101 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1103 #$i_string I_STRING /**/
1106 * This symbol, if defined, indicates to the C program that it should
1107 * include <sys/dir.h>.
1109 #$i_sysdir I_SYS_DIR /**/
1112 * This symbol, if defined, indicates to the C program that it should
1113 * include <sys/file.h> to get definition of R_OK and friends.
1115 #$i_sysfile I_SYS_FILE /**/
1118 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1119 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1121 #$i_sysioctl I_SYS_IOCTL /**/
1124 * This symbol, if defined, indicates to the C program that it should
1125 * include <sys/ndir.h>.
1127 #$i_sysndir I_SYS_NDIR /**/
1130 * This symbol, if defined, indicates to the C program that it should
1131 * include <sys/param.h>.
1133 #$i_sysparam I_SYS_PARAM /**/
1136 * This symbol, if defined, indicates to the C program that it should
1137 * include <sys/select.h> in order to get definition of struct timeval.
1139 #$i_sysselct I_SYS_SELECT /**/
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <sys/times.h>.
1145 #$i_systimes I_SYS_TIMES /**/
1148 * This symbol, if defined, indicates to the C program that it should
1149 * include <sys/types.h>.
1151 #$i_systypes I_SYS_TYPES /**/
1154 * This symbol, if defined, indicates that the program should include
1155 * <termio.h> rather than <sgtty.h>. There are also differences in
1156 * the ioctl() calls that depend on the value of this symbol.
1159 * This symbol, if defined, indicates that the program should include
1160 * the POSIX termios.h rather than sgtty.h or termio.h.
1161 * There are also differences in the ioctl() calls that depend on the
1162 * value of this symbol.
1165 * This symbol, if defined, indicates that the program should include
1166 * <sgtty.h> rather than <termio.h>. There are also differences in
1167 * the ioctl() calls that depend on the value of this symbol.
1169 #$i_termio I_TERMIO /**/
1170 #$i_termios I_TERMIOS /**/
1171 #$i_sgtty I_SGTTY /**/
1174 * This symbol, if defined, indicates to the C program that it should
1178 * This symbol, if defined, indicates to the C program that it should
1179 * include <sys/time.h>.
1181 /* I_SYS_TIME_KERNEL:
1182 * This symbol, if defined, indicates to the C program that it should
1183 * include <sys/time.h> with KERNEL defined.
1185 #$i_time I_TIME /**/
1186 #$i_systime I_SYS_TIME /**/
1187 #$i_systimek I_SYS_TIME_KERNEL /**/
1190 * This symbol, if defined, indicates to the C program that it should
1191 * include <unistd.h>.
1193 #$i_unistd I_UNISTD /**/
1196 * This symbol, if defined, indicates to the C program that it should
1197 * include <utime.h>.
1199 #$i_utime I_UTIME /**/
1202 * This symbol, if defined, indicates that <stdarg.h> exists and should
1206 * This symbol, if defined, indicates to the C program that it should
1207 * include <varargs.h>.
1209 #$i_stdarg I_STDARG /**/
1210 #$i_varargs I_VARARGS /**/
1213 * This symbol, if defined, indicates to the C program that it should
1216 #$i_vfork I_VFORK /**/
1219 * This symbol contains the size of an int, so that the C preprocessor
1220 * can make decisions based on it.
1222 #define INTSIZE $intsize /**/
1225 * This symbol holds the type used to declare offsets in the kernel.
1226 * It can be int, long, off_t, etc... It may be necessary to include
1227 * <sys/types.h> to get any typedef'ed information.
1229 #define Off_t $lseektype /* <offset> type */
1232 * This symbol holds the type used to declare file modes
1233 * for systems calls. It is usually mode_t, but may be
1234 * int or unsigned short. It may be necessary to include <sys/types.h>
1235 * to get any typedef'ed information.
1237 #define Mode_t $modetype /* file mode parameter for system calls */
1240 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1241 * in programs that are not prepared to deal with ~ expansion at run-time.
1243 #define PRIVLIB_EXP "$privlibexp" /**/
1246 * If defined, this macro indicates that the C compiler can handle
1247 * function prototypes.
1250 * This macro is used to declare function parameters for folks who want
1251 * to make declarations with prototypes using a different style than
1252 * the above macros. Use double parentheses. For example:
1254 * int main _((int argc, char *argv[]));
1256 #$prototype CAN_PROTOTYPE /**/
1257 #ifdef CAN_PROTOTYPE
1258 #define _(args) args
1264 * This symbol contains the number of bits of random number the rand()
1265 * function produces. Usual values are 15, 16, and 31.
1267 #define RANDBITS $randbits /**/
1270 * This symbol holds the name of the directory in which the user wants
1271 * to put publicly executable scripts for the package in question. It
1272 * is often a directory that is mounted across diverse architectures.
1273 * Programs must be prepared to deal with ~name expansion.
1275 #define SCRIPTDIR "$scriptdir" /**/
1278 * This symbol holds the type used for the 2nd, 3rd, and 4th
1279 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1280 * is defined, and 'int *' otherwise. This is only useful if you
1281 * have select(), of course.
1283 #define Select_fd_set_t $selecttype /**/
1286 * This symbol contains a list of signal names in order. This is intended
1287 * to be used as a static array initialization, like this:
1288 * char *sig_name[] = { SIG_NAME };
1289 * The signals in the list are separated with commas, and each signal
1290 * is surrounded by double quotes. There is no leading SIG in the signal
1291 * name, i.e. SIGQUIT is known as "QUIT".
1293 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
1296 * This symbol holds the type used to declare length parameters
1297 * for string functions. It is usually size_t, but may be
1298 * unsigned long, int, etc. It may be necessary to include
1299 * <sys/types.h> to get any typedef'ed information.
1301 #define Size_t $sizetype /* length paramater for string functions */
1304 * This symbol holds the type used by functions that return
1305 * a count of bytes or an error condition. It must be a signed type.
1306 * It is usually ssize_t, but may be long or int, etc.
1307 * It may be necessary to include <sys/types.h> or <unistd.h>
1308 * to get any typedef'ed information.
1309 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1311 #define SSize_t $ssizetype /* signed count of bytes */
1314 * This symbol is defined to be the type of char used in stdio.h.
1315 * It has the values "unsigned char" or "char".
1317 #define STDCHAR $stdchar /**/
1320 * This symbol holds the type used to declare user ids in the kernel.
1321 * It can be int, ushort, uid_t, etc... It may be necessary to include
1322 * <sys/types.h> to get any typedef'ed information.
1324 #define Uid_t $uidtype /* UID type */
1327 * This symbol indicates how much support of the void type is given by this
1328 * compiler. What various bits mean:
1330 * 1 = supports declaration of void
1331 * 2 = supports arrays of pointers to functions returning void
1332 * 4 = supports comparisons between pointers to void functions and
1333 * addresses of void functions
1334 * 8 = suports declaration of generic void pointers
1336 * The package designer should define VOIDUSED to indicate the requirements
1337 * of the package. This can be done either by #defining VOIDUSED before
1338 * including config.h, or by defining defvoidused in Myinit.U. If the
1339 * latter approach is taken, only those flags will be tested. If the
1340 * level of void support necessary is not present, defines void to int.
1343 #define VOIDUSED $defvoidused
1345 #define VOIDFLAGS $voidflags
1346 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1347 #define void int /* is void to be avoided? */
1348 #define M_VOID /* Xenix strikes again */
1352 * This symbol, if defined, indicates that the program is being compiled
1353 * under the EUNICE package under VMS. The program will need to handle
1354 * things like files that don't go away the first time you unlink them,
1355 * due to version numbering. It will also need to compensate for lack
1356 * of a respectable link() command.
1359 * This symbol, if defined, indicates that the program is running under
1360 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1362 #$d_eunice EUNICE /**/
1366 * This symbol holds the complete pathname to the sed program.
1368 #define LOC_SED "$full_sed" /**/
1371 * This symbol, if defined, indicates that the C-shell exists.
1372 * If defined, contains the full pathname of csh.
1374 #$d_csh CSH "$full_csh" /**/
1376 /* DLSYM_NEEDS_UNDERSCORE:
1377 * This symbol, if defined, indicates that we need to prepend an
1378 * underscore to the symbol name before calling dlsym(). This only
1379 * makes sense if you *have* dlsym, which we will presume is the
1380 * case if you're using dl_dlopen.xs.
1382 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1384 /* USE_DYNAMIC_LOADING:
1385 * This symbol, if defined, indicates that dynamic loading of
1386 * some sort is available.
1388 #$usedl USE_DYNAMIC_LOADING /**/
1391 * This symbol contains the type of the prefix structure element
1392 * in the <db.h> header file. In older versions of DB, it was
1393 * int, while in newer ones it is u_int32_t.
1396 * This symbol contains the type of the prefix structure element
1397 * in the <db.h> header file. In older versions of DB, it was
1398 * int, while in newer ones it is size_t.
1400 #define DB_Hash_t $db_hashtype /**/
1401 #define DB_Prefix_t $db_prefixtype /**/
1404 * This symbol, if defined, indicates that ndbm.h exists and should
1407 #$i_ndbm I_NDBM /**/
1410 * This symbol, if defined, indicates to the C program that it should
1411 * include <sys/stat.h>.
1413 #$i_sysstat I_SYS_STAT /**/
1416 * This symbol is the type of pointer returned by malloc and realloc.
1418 #define Malloc_t $malloctype /**/
1421 * This symbol, if defined, indicates that we're using our own malloc.
1423 #$d_mymalloc MYMALLOC /**/