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.4 1995/09/25 09:10:49 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 holds the path of the bin directory where the package will
47 * be installed. Program must be prepared to deal with ~name substitution.
49 #define BIN "$bin" /**/
52 * This macro catenates 2 tokens together.
55 #define CAT2(a,b)a/**/b
56 #define CAT3(a,b,c)a/**/b/**/c
57 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
58 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
59 #define STRINGIFY(a)"a"
60 /* If you can get stringification with catify, tell me how! */
63 #define CAT2(a,b)a ## b
64 #define CAT3(a,b,c)a ## b ## c
65 #define CAT4(a,b,c,d)a ## b ## c ## d
66 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
68 #define STRINGIFY(a)StGiFy(a)
69 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
70 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
71 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
72 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
75 #include "Bletch: How does this C preprocessor catenate tokens?"
79 * This symbol contains the first part of the string which will invoke
80 * the C preprocessor on the standard input and produce to standard
81 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
82 * call a wrapper. See CPPRUN.
85 * This symbol contains the second part of the string which will invoke
86 * the C preprocessor on the standard input and produce to standard
87 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
88 * to specify standard input, otherwise the value is "".
90 #define CPPSTDIN "$cppstdin"
91 #define CPPMINUS "$cppminus"
94 * This symbol, if defined, indicates that the alarm routine is
97 #$d_alarm HAS_ALARM /**/
100 * This symbol indicates the C compiler can check for function attributes,
101 * such as printf formats. This is normally only supported by GNU cc.
103 #$d_attribut HASATTRIBUTE /**/
105 #define __attribute__(_arg_)
109 * This symbol is defined if the bcmp() routine is available to
110 * compare blocks of memory.
112 #$d_bcmp HAS_BCMP /**/
115 * This symbol is defined if the bcopy() routine is available to
116 * copy blocks of memory.
118 #$d_bcopy HAS_BCOPY /**/
121 * This symbol is defined if the bzero() routine is available to
122 * set a memory block to 0.
124 #$d_bzero HAS_BZERO /**/
127 * This symbol is defined if the C compiler can cast negative
128 * or large floating point numbers to 32-bit ints.
130 #$d_casti32 CASTI32 /**/
133 * This symbol is defined if the C compiler can cast negative
134 * numbers to unsigned longs, ints and shorts.
137 * This symbol contains flags that say what difficulties the compiler
138 * has casting odd floating values to unsigned long:
140 * 1 = couldn't cast < 0
141 * 2 = couldn't cast >= 0x80000000
142 * 4 = couldn't cast in argument expression list
144 #$d_castneg CASTNEGFLOAT /**/
145 #define CASTFLAGS $castflags /**/
148 * This symbol, if defined, indicates that the chown routine is
151 #$d_chown HAS_CHOWN /**/
154 * This symbol, if defined, indicates that the chroot routine is
157 #$d_chroot HAS_CHROOT /**/
160 * This symbol, if defined, indicates that the chsize routine is available
161 * to truncate files. You might need a -lx to get this routine.
163 #$d_chsize HAS_CHSIZE /**/
166 * This symbol, if defined, indicates that the closedir() routine
167 * does not return a value.
169 #$d_void_closedir VOID_CLOSEDIR /**/
172 * This symbol, if defined, indicates that this C compiler knows about
173 * the const type. There is no need to actually test for that symbol
174 * within your programs. The mere use of the "const" keyword will
175 * trigger the necessary tests.
177 #$d_const HASCONST /**/
183 * This symbol, if defined, indicates that the crypt routine is available
184 * to encrypt passwords and the like.
186 #$d_crypt HAS_CRYPT /**/
189 * This symbol, if defined, indicates that the cuserid routine is
190 * available to get character login names.
192 #$d_cuserid HAS_CUSERID /**/
195 * This symbol, if defined, indicates that this system's <float.h>
196 * or <limits.h> defines the symbol DBL_DIG, which is the number
197 * of significant digits in a double precision number. If this
198 * symbol is not defined, a guess of 15 is usually pretty good.
200 #$d_dbl_dig HAS_DBL_DIG /* */
203 * This symbol, if defined, indicates that the difftime routine is
206 #$d_difftime HAS_DIFFTIME /**/
209 * This symbol, if defined, indicates that the dlerror routine is
210 * available to return a string describing the last error that
211 * occurred from a call to dlopen(), dlclose() or dlsym().
213 #$d_dlerror HAS_DLERROR /**/
215 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
216 * This symbol, if defined, indicates that the bug that prevents
217 * setuid scripts from being secure is not present in this kernel.
220 * This symbol, if defined, indicates that the C program should
221 * check the script that it is executing for setuid/setgid bits, and
222 * attempt to emulate setuid/setgid on systems that have disabled
223 * setuid #! scripts because the kernel can't do it securely.
224 * It is up to the package designer to make sure that this emulation
225 * is done securely. Among other things, it should do an fstat on
226 * the script it just opened to make sure it really is a setuid/setgid
227 * script, it should make sure the arguments passed correspond exactly
228 * to the argument on the #! line, and it should not trust any
229 * subprocesses to which it must pass the filename rather than the
230 * file descriptor of the script to be executed.
232 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
233 #$d_dosuid DOSUID /**/
236 * This symbol, if defined, indicates that the dup2 routine is
237 * available to duplicate file descriptors.
239 #$d_dup2 HAS_DUP2 /**/
242 * This symbol, if defined, indicates that the fchmod routine is available
243 * to change mode of opened files. If unavailable, use chmod().
245 #$d_fchmod HAS_FCHMOD /**/
248 * This symbol, if defined, indicates that the fchown routine is available
249 * to change ownership of opened files. If unavailable, use chown().
251 #$d_fchown HAS_FCHOWN /**/
254 * This symbol, if defined, indicates to the C program that
255 * the fcntl() function exists.
257 #$d_fcntl HAS_FCNTL /**/
260 * This symbol, if defined, indicates that the fgetpos routine is
261 * available to get the file position indicator, similar to ftell().
263 #$d_fgetpos HAS_FGETPOS /**/
266 * This symbol, if defined, indicates that the system supports filenames
267 * longer than 14 characters.
269 #$d_flexfnam FLEXFILENAMES /**/
272 * This symbol, if defined, indicates that the flock routine is
273 * available to do file locking.
275 #$d_flock HAS_FLOCK /**/
278 * This symbol, if defined, indicates that the fork routine is
281 #$d_fork HAS_FORK /**/
284 * This symbol, if defined, indicates that the fsetpos routine is
285 * available to set the file position indicator, similar to fseek().
287 #$d_fsetpos HAS_FSETPOS /**/
290 * This symbol, if defined, indicates that the getgroups() routine is
291 * available to get the list of process groups. If unavailable, multiple
292 * groups are probably not supported.
294 #$d_getgrps HAS_GETGROUPS /**/
297 * This symbol, if defined, indicates that the gethostent routine is
298 * available to lookup host names in some data base or other.
300 #$d_gethent HAS_GETHOSTENT /**/
303 * This symbol, if defined, indicates that the C program may use the
304 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
307 #$d_uname HAS_UNAME /**/
310 * This symbol, if defined, indicates that the getlogin routine is
311 * available to get the login name.
313 #$d_getlogin HAS_GETLOGIN /**/
316 * This symbol, if defined, indicates that the getpgrp routine is
317 * available to get the current process group.
319 #$d_getpgrp HAS_GETPGRP /**/
322 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
323 * routine is available to get the current process group.
325 #$d_getpgrp2 HAS_GETPGRP2 /**/
328 * This symbol, if defined, indicates that the getppid routine is
329 * available to get the parent process ID.
331 #$d_getppid HAS_GETPPID /**/
334 * This symbol, if defined, indicates that the getpriority routine is
335 * available to get a process's priority.
337 #$d_getprior HAS_GETPRIORITY /**/
340 * This symbol, if defined, indicates that the htonl() routine (and
341 * friends htons() ntohl() ntohs()) are available to do network
342 * order byte swapping.
345 * This symbol, if defined, indicates that the htons() routine (and
346 * friends htonl() ntohl() ntohs()) are available to do network
347 * order byte swapping.
350 * This symbol, if defined, indicates that the ntohl() routine (and
351 * friends htonl() htons() ntohs()) are available to do network
352 * order byte swapping.
355 * This symbol, if defined, indicates that the ntohs() routine (and
356 * friends htonl() htons() ntohl()) are available to do network
357 * order byte swapping.
359 #$d_htonl HAS_HTONL /**/
360 #$d_htonl HAS_HTONS /**/
361 #$d_htonl HAS_NTOHL /**/
362 #$d_htonl HAS_NTOHS /**/
365 * This manifest constant lets the C program know that isascii
368 #$d_isascii HAS_ISASCII /**/
371 * This symbol, if defined, indicates that the killpg routine is available
372 * to kill process groups. If unavailable, you probably should use kill
373 * with a negative process number.
375 #$d_killpg HAS_KILLPG /**/
378 * This symbol, if defined, indicates that the link routine is
379 * available to create hard links.
381 #$d_link HAS_LINK /**/
384 * This symbol, if defined, indicates that the localeconv routine is
385 * available for numeric and monetary formatting conventions.
387 #$d_locconv HAS_LOCALECONV /**/
390 * This symbol, if defined, indicates that the lockf routine is
391 * available to do file locking.
393 #$d_lockf HAS_LOCKF /**/
396 * This symbol, if defined, indicates that the lstat routine is
397 * available to do file stats on symbolic links.
399 #$d_lstat HAS_LSTAT /**/
402 * This symbol, if defined, indicates that the mblen routine is available
403 * to find the number of bytes in a multibye character.
405 #$d_mblen HAS_MBLEN /**/
408 * This symbol, if defined, indicates that the mbstowcs routine is
409 * available to covert a multibyte string into a wide character string.
411 #$d_mbstowcs HAS_MBSTOWCS /**/
414 * This symbol, if defined, indicates that the mbtowc routine is available
415 * to covert a multibyte to a wide character.
417 #$d_mbtowc HAS_MBTOWC /**/
420 * This symbol, if defined, indicates that the memcmp routine is available
421 * to compare blocks of memory.
423 #$d_memcmp HAS_MEMCMP /**/
426 * This symbol, if defined, indicates that the memcpy routine is available
427 * to copy blocks of memory.
429 #$d_memcpy HAS_MEMCPY /**/
432 * This symbol, if defined, indicates that the memmove routine is available
433 * to copy potentially overlapping blocks of memory. This should be used
434 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
437 #$d_memmove HAS_MEMMOVE /**/
440 * This symbol, if defined, indicates that the memset routine is available
441 * to set blocks of memory.
443 #$d_memset HAS_MEMSET /**/
446 * This symbol, if defined, indicates that the mkdir routine is available
447 * to create directories. Otherwise you should fork off a new process to
450 #$d_mkdir HAS_MKDIR /**/
453 * This symbol, if defined, indicates that the mkfifo routine is
454 * available to create FIFOs. Otherwise, mknod should be able to
455 * do it for you. However, if mkfifo is there, mknod might require
456 * super-user privileges which mkfifo will not.
458 #$d_mkfifo HAS_MKFIFO /**/
461 * This symbol, if defined, indicates that the mktime routine is
464 #$d_mktime HAS_MKTIME /**/
467 * This symbol, if defined, indicates that the entire msg*(2) library is
468 * supported (IPC mechanism based on message queues).
473 * This symbol, if defined, indicates that the nice routine is
476 #$d_nice HAS_NICE /**/
479 * This manifest constant lets the C program know that the three
480 * argument form of open(2) is available.
482 #$d_open3 HAS_OPEN3 /**/
485 * This symbol, if defined, indicates that pathconf() is available
486 * to determine file-system related limits and options associated
487 * with a given filename.
490 * This symbol, if defined, indicates that pathconf() is available
491 * to determine file-system related limits and options associated
492 * with a given open file descriptor.
494 #$d_pathconf HAS_PATHCONF /**/
495 #$d_fpathconf HAS_FPATHCONF /**/
498 * This symbol, if defined, indicates that the pause routine is
499 * available to suspend a process until a signal is received.
501 #$d_pause HAS_PAUSE /**/
504 * This symbol, if defined, indicates that the pipe routine is
505 * available to create an inter-process channel.
507 #$d_pipe HAS_PIPE /**/
510 * This symbol, if defined, indicates that the poll routine is
511 * available to poll active file descriptors.
513 #$d_poll HAS_POLL /**/
516 * This symbol, if defined, indicates that the readdir routine is
517 * available to read directory entries. You may have to include
518 * <dirent.h>. See I_DIRENT.
520 #$d_readdir HAS_READDIR /**/
523 * This symbol, if defined, indicates that the seekdir routine is
524 * available. You may have to include <dirent.h>. See I_DIRENT.
526 #$d_seekdir HAS_SEEKDIR /**/
529 * This symbol, if defined, indicates that the telldir routine is
530 * available. You may have to include <dirent.h>. See I_DIRENT.
532 #$d_telldir HAS_TELLDIR /**/
535 * This symbol, if defined, indicates that the rewinddir routine is
536 * available. You may have to include <dirent.h>. See I_DIRENT.
538 #$d_rewinddir HAS_REWINDDIR /**/
541 * This symbol, if defined, indicates that the readlink routine is
542 * available to read the value of a symbolic link.
544 #$d_readlink HAS_READLINK /**/
547 * This symbol, if defined, indicates that the rename routine is available
548 * to rename files. Otherwise you should do the unlink(), link(), unlink()
551 #$d_rename HAS_RENAME /**/
554 * This symbol, if defined, indicates that the rmdir routine is
555 * available to remove directories. Otherwise you should fork off a
556 * new process to exec /bin/rmdir.
558 #$d_rmdir HAS_RMDIR /**/
561 * This symbol, if defined, indicates that the bcopy routine is available
562 * to copy potentially overlapping memory blocks. Otherwise you should
563 * probably use memmove() or memcpy(). If neither is defined, roll your
566 #$d_safebcpy HAS_SAFE_BCOPY /**/
569 * This symbol, if defined, indicates that the memcpy routine is available
570 * to copy potentially overlapping memory blocks. Otherwise you should
571 * probably use memmove() or memcpy(). If neither is defined, roll your
574 #$d_safemcpy HAS_SAFE_MEMCPY /**/
577 * This symbol, if defined, indicates that the select routine is
578 * available to select active file descriptors. If the timeout field
579 * is used, <sys/time.h> may need to be included.
581 #$d_select HAS_SELECT /**/
584 * This symbol, if defined, indicates that the entire sem*(2) library is
590 * This symbol, if defined, indicates that the setegid routine is available
591 * to change the effective gid of the current program.
593 #$d_setegid HAS_SETEGID /**/
596 * This symbol, if defined, indicates that the seteuid routine is available
597 * to change the effective uid of the current program.
599 #$d_seteuid HAS_SETEUID /**/
602 * This symbol, if defined, indicates that the setlinebuf routine is
603 * available to change stderr or stdout from block-buffered or unbuffered
604 * to a line-buffered mode.
606 #$d_setlinebuf HAS_SETLINEBUF /**/
609 * This symbol, if defined, indicates that the setlocale routine is
610 * available to handle locale-specific ctype implementations.
612 #$d_setlocale HAS_SETLOCALE /**/
615 * This symbol, if defined, indicates that the setpgid routine is
616 * available to set process group ID.
618 #$d_setpgid HAS_SETPGID /**/
621 * This symbol, if defined, indicates that the setpgrp routine is
622 * available to set the current process group.
625 * This symbol, if defined, indicates that the BSD notion of process
626 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
627 * instead of the USG setpgrp().
629 #$d_setpgrp HAS_SETPGRP /**/
630 #$d_bsdpgrp USE_BSDPGRP /**/
633 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
634 * routine is available to set the current process group.
636 #$d_setpgrp2 HAS_SETPGRP2 /**/
639 * This symbol, if defined, indicates that the setpriority routine is
640 * available to set a process's priority.
642 #$d_setprior HAS_SETPRIORITY /**/
645 * This symbol, if defined, indicates that the setregid routine is
646 * available to change the real and effective gid of the current
650 * This symbol, if defined, indicates that the setresgid routine is
651 * available to change the real, effective and saved gid of the current
654 #$d_setregid HAS_SETREGID /**/
655 #$d_setresgid HAS_SETRESGID /**/
658 * This symbol, if defined, indicates that the setreuid routine is
659 * available to change the real and effective uid of the current
663 * This symbol, if defined, indicates that the setresuid routine is
664 * available to change the real, effective and saved uid of the current
667 #$d_setreuid HAS_SETREUID /**/
668 #$d_setresuid HAS_SETRESUID /**/
671 * This symbol, if defined, indicates that the setrgid routine is available
672 * to change the real gid of the current program.
674 #$d_setrgid HAS_SETRGID /**/
677 * This symbol, if defined, indicates that the setruid routine is available
678 * to change the real uid of the current program.
680 #$d_setruid HAS_SETRUID /**/
683 * This symbol, if defined, indicates that the setsid routine is
684 * available to set the process group ID.
686 #$d_setsid HAS_SETSID /**/
689 * This symbol, if defined, indicates that the entire shm*(2) library is
695 * This symbol holds the return type of the shmat() system call.
696 * Usually set to 'void *' or 'char *'.
698 /* HAS_SHMAT_PROTOTYPE:
699 * This symbol, if defined, indicates that the sys/shm.h includes
700 * a prototype for shmat(). Otherwise, it is up to the program to
701 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
702 * but not always right so it should be emitted by the program only
703 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
705 #define Shmat_t $shmattype /**/
706 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
709 * This symbol, if defined, indicates that the BSD socket interface is
713 * This symbol, if defined, indicates that the BSD socketpair() call is
716 #$d_socket HAS_SOCKET /**/
717 #$d_sockpair HAS_SOCKETPAIR /**/
720 * This symbol is defined if this system has a stat structure declaring
721 * st_blksize and st_blocks.
723 #$d_statblks USE_STAT_BLOCKS /**/
726 * This symbol is defined if the _ptr and _cnt fields (or similar)
727 * of the stdio FILE structure can be used to access the stdio buffer
728 * for a file handle. If this is defined, then the FILE_ptr(fp)
729 * and FILE_cnt(fp) macros will also be defined and should be used
730 * to access these fields.
733 * This symbol is defined if the _base field (or similar) of the
734 * stdio FILE structure can be used to access the stdio buffer for
735 * a file handle. If this is defined, then the FILE_base(fp) macro
736 * will also be defined and should be used to access this field.
737 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
738 * to determine the number of bytes in the buffer. USE_STDIO_BASE
739 * will never be defined unless USE_STDIO_PTR is.
741 #$d_stdstdio USE_STDIO_PTR /**/
742 #$d_stdiobase USE_STDIO_BASE /**/
745 * This macro is used to access the _ptr field (or equivalent) of the
746 * FILE structure pointed to by its argument. This macro will always be
747 * defined if USE_STDIO_PTR is defined.
750 * This symbol is defined if the FILE_ptr macro can be used as an
754 * This macro is used to access the _cnt field (or equivalent) of the
755 * FILE structure pointed to by its argument. This macro will always be
756 * defined if USE_STDIO_PTR is defined.
759 * This symbol is defined if the FILE_cnt macro can be used as an
763 #define FILE_ptr(fp) $stdio_ptr
764 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
765 #define FILE_cnt(fp) $stdio_cnt
766 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
770 * This macro is used to access the _base field (or equivalent) of the
771 * FILE structure pointed to by its argument. This macro will always be
772 * defined if USE_STDIO_BASE is defined.
775 * This macro is used to determine the number of bytes in the I/O
776 * buffer pointed to by _base field (or equivalent) of the FILE
777 * structure pointed to its argument. This macro will always be defined
778 * if USE_STDIO_BASE is defined.
780 #ifdef USE_STDIO_BASE
781 #define FILE_base(fp) $stdio_base
782 #define FILE_bufsiz(fp) $stdio_bufsiz
786 * This symbol is defined to indicate that the strchr()/strrchr()
787 * functions are available for string searching. If not, try the
788 * index()/rindex() pair.
791 * This symbol is defined to indicate that the index()/rindex()
792 * functions are available for string searching.
794 #$d_strchr HAS_STRCHR /**/
795 #$d_index HAS_INDEX /**/
798 * This symbol, if defined, indicates that the strcoll routine is
799 * available to compare strings using collating information.
801 #$d_strcoll HAS_STRCOLL /**/
804 * This symbol, if defined, indicates that this C compiler knows how
805 * to copy structures. If undefined, you'll need to use a block copy
806 * routine of some sort instead.
808 #$d_strctcpy USE_STRUCT_COPY /**/
811 * This symbol, if defined, indicates that the strerror routine is
812 * available to translate error numbers to strings. See the writeup
813 * of Strerror() in this file before you try to define your own.
816 * This symbol, if defined, indicates that the sys_errlist array is
817 * available to translate error numbers to strings. The extern int
818 * sys_nerr gives the size of that table.
821 * This preprocessor symbol is defined as a macro if strerror() is
822 * not available to translate error numbers to strings but sys_errlist[]
825 #$d_strerror HAS_STRERROR /**/
826 #$d_syserrlst HAS_SYS_ERRLIST /**/
827 #define Strerror(e) $d_strerrm
830 * This symbol, if defined, indicates that the strxfrm() routine is
831 * available to transform strings.
833 #$d_strxfrm HAS_STRXFRM /**/
836 * This symbol, if defined, indicates that the symlink routine is available
837 * to create symbolic links.
839 #$d_symlink HAS_SYMLINK /**/
842 * This symbol, if defined, indicates that the syscall routine is
843 * available to call arbitrary system calls. If undefined, that's tough.
845 #$d_syscall HAS_SYSCALL /**/
848 * This symbol, if defined, indicates that sysconf() is available
849 * to determine system related limits and options.
851 #$d_sysconf HAS_SYSCONF /**/
854 * This symbol, if defined, indicates that the system routine is
855 * available to issue a shell command.
857 #$d_system HAS_SYSTEM /**/
860 * This symbol, if defined, indicates that the tcgetpgrp routine is
861 * available to get foreground process group ID.
863 #$d_tcgetpgrp HAS_TCGETPGRP /**/
866 * This symbol, if defined, indicates that the tcsetpgrp routine is
867 * available to set foreground process group ID.
869 #$d_tcsetpgrp HAS_TCSETPGRP /**/
872 * This symbol holds the type returned by time(). It can be long,
873 * or time_t on BSD sites (in which case <sys/types.h> should be
876 #define Time_t $timetype /* Time type */
879 * This symbol, if defined, indicates that the times() routine exists.
880 * Note that this became obsolete on some systems (SUNOS), which now
881 * use getrusage(). It may be necessary to include <sys/times.h>.
883 #$d_times HAS_TIMES /**/
886 * This symbol, if defined, indicates that the truncate routine is
887 * available to truncate files.
889 #$d_truncate HAS_TRUNCATE /**/
892 * This symbol, if defined, indicates that the tzname[] array is
893 * available to access timezone names.
895 #$d_tzname HAS_TZNAME /**/
898 * This symbol, if defined, indicates that the umask routine is
899 * available to set and get the value of the file creation mask.
901 #$d_umask HAS_UMASK /**/
904 * This symbol, if defined, indicates that vfork() exists.
906 #$d_vfork HAS_VFORK /**/
909 * This symbol's value is either "void" or "int", corresponding to the
910 * appropriate return type of a signal handler. Thus, you can declare
911 * a signal handler using "Signal_t (*handler)()", and define the
912 * handler using "Signal_t handler(sig)".
914 #define Signal_t $signal_t /* Signal handler's return type */
917 * This symbol, if defined, indicates that this C compiler knows about
918 * the volatile declaration.
920 #$d_volatile HASVOLATILE /**/
926 * This symbol, if defined, indicates that the vprintf routine is available
927 * to printf with a pointer to an argument list. If unavailable, you
928 * may need to write your own, probably in terms of _doprnt().
930 /* USE_CHAR_VSPRINTF:
931 * This symbol is defined if this system has vsprintf() returning type
932 * (char*). The trend seems to be to declare it as "int vsprintf()". It
933 * is up to the package author to declare vsprintf correctly based on the
936 #$d_vprintf HAS_VPRINTF /**/
937 #$d_charvspr USE_CHAR_VSPRINTF /**/
940 * This symbol, if defined, indicates that wait4() exists.
942 #$d_wait4 HAS_WAIT4 /**/
945 * This symbol, if defined, indicates that the waitpid routine is
946 * available to wait for child process.
948 #$d_waitpid HAS_WAITPID /**/
951 * This symbol, if defined, indicates that the wcstombs routine is
952 * available to convert wide character strings to multibyte strings.
954 #$d_wcstombs HAS_WCSTOMBS /**/
957 * This symbol, if defined, indicates that the wctomb routine is available
958 * to covert a wide character to a multibyte.
960 #$d_wctomb HAS_WCTOMB /**/
963 * This symbol holds the type used to declare file positions in libc.
964 * It can be fpos_t, long, uint, etc... It may be necessary to include
965 * <sys/types.h> to get any typedef'ed information.
967 #define Fpos_t $fpostype /* File position type */
970 * This symbol holds the return type of getgid() and the type of
971 * argument to setrgid() and related functions. Typically,
972 * it is the type of group ids in the kernel. It can be int, ushort,
973 * uid_t, etc... It may be necessary to include <sys/types.h> to get
974 * any typedef'ed information.
976 #define Gid_t $gidtype /* Type for getgid(), etc... */
979 * This symbol holds the type used for the second argument to
980 * getgroups(). Usually, this is the same of gidtype, but
981 * sometimes it isn't. It can be int, ushort, uid_t, etc...
982 * It may be necessary to include <sys/types.h> to get any
983 * typedef'ed information. This is only required if you have
987 #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
991 * This symbol contains the type of the prefix structure element
992 * in the <db.h> header file. In older versions of DB, it was
993 * int, while in newer ones it is u_int32_t.
996 * This symbol contains the type of the prefix structure element
997 * in the <db.h> header file. In older versions of DB, it was
998 * int, while in newer ones it is size_t.
1000 #define DB_Hash_t $db_hashtype /**/
1001 #define DB_Prefix_t $db_prefixtype /**/
1004 * This symbol, if defined, indicates to the C program that it should
1005 * include <dirent.h>. Using this symbol also triggers the definition
1006 * of the Direntry_t define which ends up being 'struct dirent' or
1007 * 'struct direct' depending on the availability of <dirent.h>.
1010 * This symbol, if defined, indicates to the C program that the length
1011 * of directory entry names is provided by a d_namlen field. Otherwise
1012 * you need to do strlen() on the d_name field.
1015 * This symbol is set to 'struct direct' or 'struct dirent' depending on
1016 * whether dirent is available or not. You should use this pseudo type to
1017 * portably declare your directory entries.
1019 #$i_dirent I_DIRENT /**/
1020 #$d_dirnamlen DIRNAMLEN /**/
1021 #define Direntry_t $direntrytype
1024 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1027 #$i_dlfcn I_DLFCN /**/
1030 * This manifest constant tells the C program to include <fcntl.h>.
1032 #$i_fcntl I_FCNTL /**/
1035 * This symbol, if defined, indicates to the C program that it should
1036 * include <float.h> to get definition of symbols like DBL_MAX or
1037 * DBL_MIN, i.e. machine dependent floating point values.
1039 #$i_float I_FLOAT /**/
1042 * This symbol, if defined, indicates to the C program that it should
1048 * This symbol, if defined, indicates to the C program that it should
1049 * include <limits.h> to get definition of symbols like WORD_BIT or
1050 * LONG_MAX, i.e. machine dependant limitations.
1052 #$i_limits I_LIMITS /**/
1055 * This symbol, if defined, indicates to the C program that it should
1058 #$i_math I_MATH /**/
1061 * This symbol, if defined, indicates to the C program that it should
1062 * include <memory.h>.
1064 #$i_memory I_MEMORY /**/
1067 * This symbol, if defined, indicates that <ndbm.h> exists and should
1070 #$i_ndbm I_NDBM /**/
1073 * This symbol, if defined, indicates that <net/errno.h> exists and
1074 * should be included.
1076 #$i_neterrno I_NET_ERRNO /**/
1079 * This symbol, if defined, indicates to the C program that it should
1080 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1082 #$i_niin I_NETINET_IN /**/
1085 * This symbol, if defined, indicates to the C program that it should
1089 * This symbol, if defined, indicates to the C program that struct passwd
1090 * contains pw_quota.
1093 * This symbol, if defined, indicates to the C program that struct passwd
1097 * This symbol, if defined, indicates to the C program that struct passwd
1098 * contains pw_change.
1101 * This symbol, if defined, indicates to the C program that struct passwd
1102 * contains pw_class.
1105 * This symbol, if defined, indicates to the C program that struct passwd
1106 * contains pw_expire.
1109 * This symbol, if defined, indicates to the C program that struct passwd
1110 * contains pw_comment.
1113 #$d_pwquota PWQUOTA /**/
1114 #$d_pwage PWAGE /**/
1115 #$d_pwchange PWCHANGE /**/
1116 #$d_pwclass PWCLASS /**/
1117 #$d_pwexpire PWEXPIRE /**/
1118 #$d_pwcomment PWCOMMENT /**/
1121 * This symbol, if defined, indicates that <stddef.h> exists and should
1124 #$i_stddef I_STDDEF /**/
1127 * This symbol, if defined, indicates that <stdlib.h> exists and should
1130 #$i_stdlib I_STDLIB /**/
1133 * This symbol, if defined, indicates to the C program that it should
1134 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1136 #$i_string I_STRING /**/
1139 * This symbol, if defined, indicates to the C program that it should
1140 * include <sys/dir.h>.
1142 #$i_sysdir I_SYS_DIR /**/
1145 * This symbol, if defined, indicates to the C program that it should
1146 * include <sys/file.h> to get definition of R_OK and friends.
1148 #$i_sysfile I_SYS_FILE /**/
1151 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1152 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1154 #$i_sysioctl I_SYS_IOCTL /**/
1157 * This symbol, if defined, indicates to the C program that it should
1158 * include <sys/ndir.h>.
1160 #$i_sysndir I_SYS_NDIR /**/
1163 * This symbol, if defined, indicates to the C program that it should
1164 * include <sys/param.h>.
1166 #$i_sysparam I_SYS_PARAM /**/
1169 * This symbol, if defined, indicates to the C program that it should
1170 * include <sys/select.h> in order to get definition of struct timeval.
1172 #$i_sysselct I_SYS_SELECT /**/
1175 * This symbol, if defined, indicates to the C program that it should
1176 * include <sys/times.h>.
1178 #$i_systimes I_SYS_TIMES /**/
1181 * This symbol, if defined, indicates to the C program that it should
1182 * include <sys/types.h>.
1184 #$i_systypes I_SYS_TYPES /**/
1187 * This symbol, if defined, indicates that the program should include
1188 * <termio.h> rather than <sgtty.h>. There are also differences in
1189 * the ioctl() calls that depend on the value of this symbol.
1192 * This symbol, if defined, indicates that the program should include
1193 * the POSIX termios.h rather than sgtty.h or termio.h.
1194 * There are also differences in the ioctl() calls that depend on the
1195 * value of this symbol.
1198 * This symbol, if defined, indicates that the program should include
1199 * <sgtty.h> rather than <termio.h>. There are also differences in
1200 * the ioctl() calls that depend on the value of this symbol.
1202 #$i_termio I_TERMIO /**/
1203 #$i_termios I_TERMIOS /**/
1204 #$i_sgtty I_SGTTY /**/
1207 * This symbol, if defined, indicates to the C program that it should
1211 * This symbol, if defined, indicates to the C program that it should
1212 * include <sys/time.h>.
1214 /* I_SYS_TIME_KERNEL:
1215 * This symbol, if defined, indicates to the C program that it should
1216 * include <sys/time.h> with KERNEL defined.
1218 #$i_time I_TIME /**/
1219 #$i_systime I_SYS_TIME /**/
1220 #$i_systimek I_SYS_TIME_KERNEL /**/
1223 * This symbol, if defined, indicates to the C program that it should
1224 * include <unistd.h>.
1226 #$i_unistd I_UNISTD /**/
1229 * This symbol, if defined, indicates to the C program that it should
1230 * include <utime.h>.
1232 #$i_utime I_UTIME /**/
1235 * This symbol, if defined, indicates that <stdarg.h> exists and should
1239 * This symbol, if defined, indicates to the C program that it should
1240 * include <varargs.h>.
1242 #$i_stdarg I_STDARG /**/
1243 #$i_varargs I_VARARGS /**/
1246 * This symbol, if defined, indicates to the C program that it should
1249 #$i_vfork I_VFORK /**/
1252 * This symbol holds the type used to declare offsets in the kernel.
1253 * It can be int, long, off_t, etc... It may be necessary to include
1254 * <sys/types.h> to get any typedef'ed information.
1256 #define Off_t $lseektype /* <offset> type */
1259 * This symbol holds the type used to declare file modes
1260 * for systems calls. It is usually mode_t, but may be
1261 * int or unsigned short. It may be necessary to include <sys/types.h>
1262 * to get any typedef'ed information.
1264 #define Mode_t $modetype /* file mode parameter for system calls */
1267 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1268 * non-blocking I/O for the file descriptor. Note that there is no way
1269 * back, i.e. you cannot turn it blocking again this way. If you wish to
1270 * alternatively switch between blocking and non-blocking, use the
1271 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1274 * This symbol holds the errno error code set by read() when no data was
1275 * present on the non-blocking file descriptor.
1278 * This symbol holds the return code from read() when no data is present
1279 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1280 * not defined, then you can't distinguish between no data and EOF by
1281 * issuing a read(). You'll have to find another way to tell for sure!
1284 * This symbol, if defined, indicates to the C program that a read() on
1285 * a non-blocking file descriptor will return 0 on EOF, and not the value
1286 * held in RD_NODATA (-1 usually, in that case!).
1288 #define VAL_O_NONBLOCK $o_nonblock
1289 #define VAL_EAGAIN $eagain
1290 #define RD_NODATA $rd_nodata
1291 #$d_eofnblk EOF_NONBLOCK
1294 * If defined, this macro indicates that the C compiler can handle
1295 * function prototypes.
1298 * This macro is used to declare function parameters for folks who want
1299 * to make declarations with prototypes using a different style than
1300 * the above macros. Use double parentheses. For example:
1302 * int main _((int argc, char *argv[]));
1304 #$prototype CAN_PROTOTYPE /**/
1305 #ifdef CAN_PROTOTYPE
1306 #define _(args) args
1312 * This symbol contains the number of bits of random number the rand()
1313 * function produces. Usual values are 15, 16, and 31.
1315 #define RANDBITS $randbits /**/
1318 * This symbol holds the name of the directory in which the user wants
1319 * to put publicly executable scripts for the package in question. It
1320 * is often a directory that is mounted across diverse architectures.
1321 * Programs must be prepared to deal with ~name expansion.
1323 #define SCRIPTDIR "$scriptdir" /**/
1326 * This symbol holds the type used for the 2nd, 3rd, and 4th
1327 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1328 * is defined, and 'int *' otherwise. This is only useful if you
1329 * have select(), of course.
1331 #define Select_fd_set_t $selecttype /**/
1334 * This symbol holds the type used to declare length parameters
1335 * for string functions. It is usually size_t, but may be
1336 * unsigned long, int, etc. It may be necessary to include
1337 * <sys/types.h> to get any typedef'ed information.
1339 #define Size_t $sizetype /* length paramater for string functions */
1342 * This symbol holds the type used by functions that return
1343 * a count of bytes or an error condition. It must be a signed type.
1344 * It is usually ssize_t, but may be long or int, etc.
1345 * It may be necessary to include <sys/types.h> or <unistd.h>
1346 * to get any typedef'ed information.
1347 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1349 #define SSize_t $ssizetype /* signed count of bytes */
1352 * This symbol is defined to be the type of char used in stdio.h.
1353 * It has the values "unsigned char" or "char".
1355 #define STDCHAR $stdchar /**/
1358 * This symbol holds the type used to declare user ids in the kernel.
1359 * It can be int, ushort, uid_t, etc... It may be necessary to include
1360 * <sys/types.h> to get any typedef'ed information.
1362 #define Uid_t $uidtype /* UID type */
1365 * This symbol, if defined, indicates that the program is running under
1366 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1371 * This symbol holds the complete pathname to the sed program.
1373 #define LOC_SED "$full_sed" /**/
1376 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1377 * in programs that are not prepared to deal with ~ expansion at run-time.
1379 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1382 * This symbol hold the hexadecimal constant defined in byteorder,
1383 * i.e. 0x1234 or 0x4321, etc...
1385 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1388 * This symbol, if defined, indicates that the C-shell exists.
1389 * If defined, contains the full pathname of csh.
1391 #$d_csh CSH "$full_csh" /**/
1393 /* DLSYM_NEEDS_UNDERSCORE:
1394 * This symbol, if defined, indicates that we need to prepend an
1395 * underscore to the symbol name before calling dlsym(). This only
1396 * makes sense if you *have* dlsym, which we will presume is the
1397 * case if you're using dl_dlopen.xs.
1399 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1402 * This preprocessor macro is defined to convert a floating point
1403 * number to a string without a trailing decimal point. This
1404 * emulates the behavior of sprintf("%g"), but is sometimes much more
1405 * efficient. If gconvert() is not available, but gcvt() drops the
1406 * trailing decimal point, then gcvt() is used. If all else fails,
1407 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1408 * macro are: value, number of digits, whether trailing zeros should
1409 * be retained, and the output buffer.
1410 * Possible values are:
1411 * d_Gconvert='gconvert((x),(n),(t),(b))'
1412 * d_Gconvert='gcvt((x),(n),(b))'
1413 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1414 * The last two assume trailing zeros should not be kept.
1416 #define Gconvert(x,n,t,b) $d_Gconvert
1418 /* USE_DYNAMIC_LOADING:
1419 * This symbol, if defined, indicates that dynamic loading of
1420 * some sort is available.
1422 #$usedl USE_DYNAMIC_LOADING /**/
1425 * This symbol, if defined, indicates that <dbm.h> exists and should
1429 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
1430 * should be included.
1433 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
1436 * This symbol, if defined, indicates to the C program that it should
1437 * include <locale.h>.
1439 #$i_locale I_LOCALE /**/
1442 * This symbol, if defined, indicates to the C program that it should
1443 * include <sys/stat.h>.
1445 #$i_sysstat I_SYS_STAT /**/
1448 * This symbol contains the size of an int, so that the C preprocessor
1449 * can make decisions based on it.
1451 #define INTSIZE $intsize /**/
1454 * This variable contains the return type of free(). It is usually
1455 * void, but occasionally int.
1458 * This symbol is the type of pointer returned by malloc and realloc.
1460 #define Malloc_t $malloctype /**/
1461 #define Free_t $freetype /**/
1464 * This symbol, if defined, indicates that we're using our own malloc.
1466 #$d_mymalloc MYMALLOC /**/
1469 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1470 * used in programs that are not prepared to deal with ~ expansion at
1473 #$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp" /**/
1476 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1477 * in programs that are not prepared to deal with ~ expansion at run-time.
1479 #define PRIVLIB_EXP "$privlibexp" /**/
1482 * This symbol contains a list of signal names in order of
1483 * signal number. This is intended
1484 * to be used as a static array initialization, like this:
1485 * char *sig_name[] = { SIG_NAME };
1486 * The signals in the list are separated with commas, and each signal
1487 * is surrounded by double quotes. There is no leading SIG in the signal
1488 * name, i.e. SIGQUIT is known as "QUIT".
1489 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1490 * etc., where nn is the actual signal number (e.g. NUM37).
1491 * The signal number for sig_name[i] is stored in sig_num[i].
1492 * The last element is 0 to terminate the list with a NULL. This
1493 * corresponds to the 0 at the end of the sig_num list.
1496 * This symbol contains a list of signal numbers, in the same order as the
1497 * SIG_NAME list. It is suitable for static array initialization, as in:
1498 * int sig_num[] = { SIG_NUM };
1499 * The signals in the list are separated with commas, and the indices
1500 * within that list and the SIG_NAME list match, so it's easy to compute
1501 * the signal name from a number or vice versa at the price of a small
1502 * dynamic linear lookup.
1503 * Duplicates are allowed, but are moved to the end of the list.
1504 * The signal number corresponding to sig_name[i] is sig_number[i].
1505 * if (i < NSIG) then sig_number[i] == i.
1506 * The last element is 0, corresponding to the 0 at the end of
1507 * the sig_name list.
1509 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/
1510 #define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'` /**/
1513 * This symbol contains the ~name expanded version of SITEARCH, to be used
1514 * in programs that are not prepared to deal with ~ expansion at run-time.
1516 #define SITEARCH_EXP "$sitearchexp" /**/
1519 * This symbol indicates how much support of the void type is given by this
1520 * compiler. What various bits mean:
1522 * 1 = supports declaration of void
1523 * 2 = supports arrays of pointers to functions returning void
1524 * 4 = supports comparisons between pointers to void functions and
1525 * addresses of void functions
1526 * 8 = suports declaration of generic void pointers
1528 * The package designer should define VOIDUSED to indicate the requirements
1529 * of the package. This can be done either by #defining VOIDUSED before
1530 * including config.h, or by defining defvoidused in Myinit.U. If the
1531 * latter approach is taken, only those flags will be tested. If the
1532 * level of void support necessary is not present, defines void to int.
1535 #define VOIDUSED $defvoidused
1537 #define VOIDFLAGS $voidflags
1538 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1539 #define void int /* is void to be avoided? */
1540 #define M_VOID /* Xenix strikes again */