3 if test ! -f config.sh; then
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
8 echo "Using config.sh from above..."
13 echo "Extracting config.h (with variable substitutions)"
14 sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
16 * This file was produced by running the config.h.SH script, which
17 * gets its values from config.sh, which is generally produced by
20 * Feel free to modify any of this as the need arises. Note, however,
21 * that running config.h.SH again will wipe out any changes you've made.
22 * For a more permanent change edit config.sh and rerun config.h.SH.
27 * This symbol, if defined, indicates that the program is being compiled
28 * under the EUNICE package under VMS. The program will need to handle
29 * things like files that don't go away the first time you unlink them,
30 * due to version numbering. It will also need to compensate for lack
31 * of a respectable link() command.
34 * This symbol, if defined, indicates that the program is running under
35 * VMS. It is currently only set in conjunction with the EUNICE symbol.
37 #$d_eunice EUNICE /**/
41 * This symbol holds the name of the directory in which the user wants
42 * to put publicly executable images for the package in question. It
43 * is most often a local directory such as /usr/local/bin.
45 #define BIN "$bin" /**/
48 * This symbol contains an encoding of the order of bytes in a long.
49 * Usual values (in octal) are 01234, 04321, 02143, 03412...
51 #define BYTEORDER 0x$byteorder /**/
54 * This symbol contains the first part of the string which will invoke
55 * the C preprocessor on the standard input and produce to standard
56 * output. Typical value of "cc -E" or "/lib/cpp".
59 * This symbol contains the second part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
61 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
62 * to specify standard input, otherwise the value is "".
64 #define CPPSTDIN "$cppstdin"
65 #define CPPMINUS "$cppminus"
68 * This symbol, if defined, indicates that the bcmp routine is available
69 * to compare blocks of memory. If undefined, use memcmp. If that's
70 * not available, roll your own.
75 * This symbol, if defined, indicates that the bcopy routine is available
76 * to copy blocks of memory. Otherwise you should probably use memcpy().
81 * This symbol, if defined, indicates that the bzero routine is available
82 * to zero blocks of memory. Otherwise you should probably use memcpy().
87 * This symbol is defined if this system declares "char *sprintf()" in
88 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
89 * is up to the package author to declare sprintf correctly based on the
92 #$d_charsprf CHARSPRINTF /**/
95 * This symbol, if defined, indicates that the crypt routine is available
96 * to encrypt passwords and the like.
101 * This symbol, if defined, indicates that the C-shell exists.
102 * If defined, contains the full pathname of csh.
104 #$d_csh CSH "$csh" /**/
107 * This symbol, if defined, indicates that the C program should
108 * check the script that it is executing for setuid/setgid bits, and
109 * attempt to emulate setuid/setgid on systems that have disabled
110 * setuid #! scripts because the kernel can't do it securely.
111 * It is up to the package designer to make sure that this emulation
112 * is done securely. Among other things, it should do an fstat on
113 * the script it just opened to make sure it really is a setuid/setgid
114 * script, it should make sure the arguments passed correspond exactly
115 * to the argument on the #! line, and it should not trust any
116 * subprocesses to which it must pass the filename rather than the
117 * file descriptor of the script to be executed.
119 #$d_dosuid DOSUID /**/
122 * This symbol, if defined, indicates that the dup2 routine is available
123 * to dup file descriptors. Otherwise you should use dup().
128 * This symbol, if defined, indicates that the fchmod routine is available
129 * to change mode of opened files. If unavailable, use chmod().
131 #$d_fchmod FCHMOD /**/
134 * This symbol, if defined, indicates that the fchown routine is available
135 * to change ownership of opened files. If unavailable, use chown().
137 #$d_fchown FCHOWN /**/
140 * This symbol, if defined, indicates to the C program that it should
146 * This symbol, if defined, indicates that the flock() routine is
147 * available to do file locking.
152 * This symbol, if defined, indicates that the getgroups() routine is
153 * available to get the list of process groups. If unavailable, multiple
154 * groups are probably not supported.
156 #$d_getgrps GETGROUPS /**/
159 * This symbol, if defined, indicates that the gethostent() routine is
160 * available to lookup host names in some data base or other.
162 #$d_gethent GETHOSTENT /**/
165 * This symbol, if defined, indicates that the getpgrp() routine is
166 * available to get the current process group.
168 #$d_getpgrp GETPGRP /**/
171 * This symbol, if defined, indicates that the getpriority() routine is
172 * available to get a process's priority.
174 #$d_getprior GETPRIORITY /**/
177 * This symbol, if defined, indicates that the htons routine (and friends)
178 * are available to do network order byte swapping.
181 * This symbol, if defined, indicates that the htonl routine (and friends)
182 * are available to do network order byte swapping.
185 * This symbol, if defined, indicates that the ntohs routine (and friends)
186 * are available to do network order byte swapping.
189 * This symbol, if defined, indicates that the ntohl routine (and friends)
190 * are available to do network order byte swapping.
198 * This preprocessor symbol is defined, along with rindex, if the system
199 * uses the strchr and strrchr routines instead.
202 * This preprocessor symbol is defined, along with index, if the system
203 * uses the strchr and strrchr routines instead.
205 #$d_index index strchr /* cultural */
206 #$d_index rindex strrchr /* differences? */
209 * This symbol, if defined, indicates that sys/ioctl.h exists and should
215 * This symbol, if defined, indicates that the killpg routine is available
216 * to kill process groups. If unavailable, you probably should use kill
217 * with a negative process number.
219 #$d_killpg KILLPG /**/
222 * This symbol, if defined, indicates that the lstat() routine is
223 * available to do file locking.
228 * This symbol, if defined, indicates that the memcmp routine is available
229 * to compare blocks of memory. If undefined, roll your own.
231 #$d_memcmp MEMCMP /**/
234 * This symbol, if defined, indicates that the memcpy routine is available
235 * to copy blocks of memory. Otherwise you should probably use bcopy().
236 * If neither is defined, roll your own.
238 #$d_memcpy MEMCPY /**/
241 * This symbol, if defined, indicates that the mkdir routine is available
242 * to create directories. Otherwise you should fork off a new process to
248 * This symbol, if defined, indicates that ndbm.h exists and should
254 * This symbol, if defined, indicates that dbm.h exists and should
260 * This symbol, if defined, indicates that the readdir routine is available
261 * from the C library to create directories.
263 #$d_readdir READDIR /**/
266 * This symbol, if defined, indicates that the rename routine is available
267 * to rename files. Otherwise you should do the unlink(), link(), unlink()
270 #$d_rename RENAME /**/
273 * This symbol, if defined, indicates that the rmdir routine is available
274 * to remove directories. Otherwise you should fork off a new process to
280 * This symbol, if defined, indicates that the setegid routine is available
281 * to change the effective gid of the current program.
283 #$d_setegid SETEGID /**/
286 * This symbol, if defined, indicates that the seteuid routine is available
287 * to change the effective uid of the current program.
289 #$d_seteuid SETEUID /**/
292 * This symbol, if defined, indicates that the setpgrp() routine is
293 * available to set the current process group.
295 #$d_setpgrp SETPGRP /**/
298 * This symbol, if defined, indicates that the setpriority() routine is
299 * available to set a process's priority.
301 #$d_setprior SETPRIORITY /**/
304 * This symbol, if defined, indicates that the setregid routine is
305 * available to change the real and effective gid of the current program.
308 * This symbol, if defined, indicates that the setresgid routine is
309 * available to change the real, effective and saved gid of the current
312 #$d_setregid SETREGID /**/
313 #$d_setresgid SETRESGID /**/
316 * This symbol, if defined, indicates that the setreuid routine is
317 * available to change the real and effective uid of the current program.
320 * This symbol, if defined, indicates that the setresuid routine is
321 * available to change the real, effective and saved uid of the current
324 #$d_setreuid SETREUID /**/
325 #$d_setresuid SETRESUID /**/
328 * This symbol, if defined, indicates that the setrgid routine is available
329 * to change the real gid of the current program.
331 #$d_setrgid SETRGID /**/
334 * This symbol, if defined, indicates that the setruid routine is available
335 * to change the real uid of the current program.
337 #$d_setruid SETRUID /**/
340 * This symbol, if defined, indicates that the BSD socket interface is
344 * This symbol, if defined, indicates that the BSD socketpair call is
348 * This symbol, if defined, indicates that the 4.1c BSD socket interface
349 * is supported instead of the 4.2/4.3 BSD socket interface.
351 #$d_socket SOCKET /**/
353 #$d_sockpair SOCKETPAIR /**/
355 #$d_oldsock OLDSOCKET /**/
358 * This symbol is defined if this system has a stat structure declaring
359 * st_blksize and st_blocks.
361 #$d_statblks STATBLOCKS /**/
364 * This symbol is defined if this system has a FILE structure declaring
365 * _ptr and _cnt in stdio.h.
367 #$d_stdstdio STDSTDIO /**/
370 * This symbol, if defined, indicates that this C compiler knows how
371 * to copy structures. If undefined, you'll need to use a block copy
372 * routine of some sort instead.
374 #$d_strctcpy STRUCTCOPY /**/
377 * This symbol, if defined, indicates that the symlink routine is available
378 * to create symbolic links.
380 #$d_symlink SYMLINK /**/
383 * This symbol, if defined, indicates that the syscall routine is available
384 * to call arbitrary system calls. If undefined, that's tough.
386 #$d_syscall SYSCALL /**/
389 * This symbol is defined if this system declares "struct tm" in
390 * in <sys/time.h> rather than <time.h>. We can't just say
391 * -I/usr/include/sys because some systems have both time files, and
392 * the -I trick gets the wrong one.
395 * This symbol is defined if this system has the file <sys/time.h>.
398 * This symbol is defined if <sys/time.h> exists but doesn't include
402 * This symbol is defined if <sys/time.h> exists but isn't included
405 #$d_tminsys TMINSYS /**/
406 #$i_systime I_SYSTIME /**/
407 #$i_timetoo I_TIMETOO /**/
408 #$i_systimetoo I_SYSTIMETOO /**/
411 * This symbol, if defined, indicates to the C program that it should
414 #$d_varargs VARARGS /**/
417 * This symbol, if defined, indicates that vfork() exists.
422 * This symbol is defined if this system declares "void (*signal())()" in
423 * signal.h. The old way was to declare it as "int (*signal())()". It
424 * is up to the package author to declare things correctly based on the
427 #$d_voidsig VOIDSIG /**/
430 * This symbol, if defined, indicates that the vprintf routine is available
431 * to printf with a pointer to an argument list. If unavailable, you
432 * may need to write your own, probably in terms of _doprnt().
435 * This symbol is defined if this system has vsprintf() returning type
436 * (char*). The trend seems to be to declare it as "int vsprintf()". It
437 * is up to the package author to declare vsprintf correctly based on the
440 #$d_vprintf VPRINTF /**/
441 #$d_charvspr CHARVSPRINTF /**/
444 * This symbol, if defined, indicates that wait4() exists.
449 * This symbol has a value like gid_t, int, ushort, or whatever type is
450 * used to declare group ids in the kernel.
452 #define GIDTYPE $gidtype /**/
455 * This symbol, if defined, indicates to the C program that it should
459 * This symbol, if defined, indicates to the C program that the length
460 * of directory entry names is provided by a d_namlen field. Otherwise
461 * you need to do strlen() on the d_name field.
463 #$i_dirent I_DIRENT /**/
464 #$d_dirnamlen DIRNAMLEN /**/
467 * This symbol, if defined, indicates to the C program that it should
470 #$i_fcntl I_FCNTL /**/
473 * This symbol, if defined, indicates to the C program that it should
479 * This symbol, if defined, indicates to the C program that it should
480 * include netinet/in.h.
482 #$i_niin I_NETINET_IN /**/
485 * This symbol, if defined, indicates to the C program that it should
489 * This symbol, if defined, indicates to the C program that struct passwd
493 * This symbol, if defined, indicates to the C program that struct passwd
497 * This symbol, if defined, indicates to the C program that struct passwd
498 * contains pw_change.
501 * This symbol, if defined, indicates to the C program that struct passwd
505 * This symbol, if defined, indicates to the C program that struct passwd
506 * contains pw_expire.
509 #$d_pwquota PWQUOTA /**/
511 #$d_pwchange PWCHANGE /**/
512 #$d_pwclass PWCLASS /**/
513 #$d_pwexpire PWEXPIRE /**/
516 * This symbol, if defined, indicates to the C program that it should
519 #$i_sysdir I_SYSDIR /**/
522 * This symbol, if defined, indicates that sys/ioctl.h exists and should
525 #$i_sysioctl I_SYSIOCTL /**/
528 * This symbol, if defined, indicates to the C program that it should
531 #$i_varargs I_VARARGS /**/
534 * This symbol, if defined, indicates to the C program that it should
537 #$i_vfork I_VFORK /**/
540 * This symbol contains the size of an int, so that the C preprocessor
541 * can make decisions based on it.
543 #define INTSIZE $intsize /**/
546 * This symbol contains the number of bits of random number the rand()
547 * function produces. Usual values are 15, 16, and 31.
549 #define RANDBITS $randbits /**/
552 * This symbol contains an list of signal names in order.
554 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
557 * This symbol is defined to be the type of char used in stdio.h.
558 * It has the values "unsigned char" or "char".
560 #define STDCHAR $stdchar /**/
563 * This symbol has a value like uid_t, int, ushort, or whatever type is
564 * used to declare user ids in the kernel.
566 #define UIDTYPE $uidtype /**/
569 * This symbol indicates how much support of the void type is given by this
570 * compiler. What various bits mean:
572 * 1 = supports declaration of void
573 * 2 = supports arrays of pointers to functions returning void
574 * 4 = supports comparisons between pointers to void functions and
575 * addresses of void functions
577 * The package designer should define VOIDUSED to indicate the requirements
578 * of the package. This can be done either by #defining VOIDUSED before
579 * including config.h, or by defining defvoidused in Myinit.U. If the
580 * latter approach is taken, only those flags will be tested. If the
581 * level of void support necessary is not present, defines void to int.
584 #define VOIDUSED $defvoidused
586 #define VOIDFLAGS $voidflags
587 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
588 #$define void int /* is void to be avoided? */
589 #$define M_VOID /* Xenix strikes again */
593 * This symbol contains the name of the private library for this package.
594 * The library is private in the sense that it needn't be in anyone's
595 * execution path, but it should be accessible by the world. The program
596 * should be prepared to do ~ expansion.
598 #define PRIVLIB "$privlib" /**/