Commit | Line | Data |
---|---|---|
8d063cd8 LW |
1 | case $CONFIG in |
2 | '') | |
3 | if test ! -f config.sh; then | |
4 | ln ../config.sh . || \ | |
5 | ln ../../config.sh . || \ | |
6 | ln ../../../config.sh . || \ | |
7 | (echo "Can't find config.sh."; exit 1) | |
8 | echo "Using config.sh from above..." | |
9 | fi | |
10 | . config.sh | |
11 | ;; | |
12 | esac | |
13 | echo "Extracting config.h (with variable substitutions)" | |
14 | cat <<!GROK!THIS! >config.h | |
15 | /* config.h | |
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 | |
18 | * running Configure. | |
19 | * | |
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. | |
23 | */ | |
24 | ||
25 | ||
26 | /* EUNICE: | |
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. | |
32 | */ | |
33 | /* VMS: | |
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. | |
36 | */ | |
37 | #$d_eunice EUNICE /**/ | |
38 | #$d_eunice VMS /**/ | |
39 | ||
36ce8bec DFDL |
40 | /* CPP: |
41 | * This symbol contains the first part of the string which will invoke | |
42 | * the C preprocessor on the standard input and produce to standard | |
43 | * output. Typical value of "cc -E" or "/lib/cpp". | |
44 | */ | |
45 | /* CPPMINUS: | |
46 | * This symbol contains the second part of the string which will invoke | |
47 | * the C preprocessor on the standard input and produce to standard | |
48 | * output. This symbol will have the value "-" if CPP needs a minus | |
49 | * to specify standard input, otherwise the value is "". | |
50 | */ | |
51 | #define CPP "$cpp" | |
52 | #define CPPMINUS "$cppminus" | |
53 | ||
c51b80d1 LW |
54 | /* BCOPY: |
55 | * This symbol, if defined, indicates that the bcopy routine is available | |
56 | * to copy blocks of memory. Otherwise you should probably use memcpy(). | |
57 | */ | |
58 | #$d_bcopy BCOPY /**/ | |
59 | ||
8d063cd8 LW |
60 | /* CHARSPRINTF: |
61 | * This symbol is defined if this system declares "char *sprintf()" in | |
62 | * stdio.h. The trend seems to be to declare it as "int sprintf()". It | |
63 | * is up to the package author to declare sprintf correctly based on the | |
64 | * symbol. | |
65 | */ | |
66 | #$d_charsprf CHARSPRINTF /**/ | |
67 | ||
68 | /* index: | |
69 | * This preprocessor symbol is defined, along with rindex, if the system | |
70 | * uses the strchr and strrchr routines instead. | |
71 | */ | |
72 | /* rindex: | |
73 | * This preprocessor symbol is defined, along with index, if the system | |
74 | * uses the strchr and strrchr routines instead. | |
75 | */ | |
76 | #$d_index index strchr /* cultural */ | |
77 | #$d_index rindex strrchr /* differences? */ | |
78 | ||
c51b80d1 LW |
79 | /* STATBLOCKS: |
80 | * This symbol is defined if this system has a stat structure declaring | |
81 | * st_blksize and st_blocks. | |
82 | */ | |
83 | #$d_statblks STATBLOCKS /**/ | |
84 | ||
36ce8bec DFDL |
85 | /* STDSTDIO: |
86 | * This symbol is defined if this system has a FILE structure declaring | |
87 | * _ptr and _cnt in stdio.h. | |
88 | */ | |
89 | #$d_stdstdio STDSTDIO /**/ | |
90 | ||
8d063cd8 LW |
91 | /* STRUCTCOPY: |
92 | * This symbol, if defined, indicates that this C compiler knows how | |
93 | * to copy structures. If undefined, you'll need to use a block copy | |
94 | * routine of some sort instead. | |
95 | */ | |
96 | #$d_strctcpy STRUCTCOPY /**/ | |
97 | ||
c51b80d1 LW |
98 | /* TMINSYS: |
99 | * This symbol is defined if this system declares "struct tm" in | |
100 | * in <sys/time.h> rather than <time.h>. We can't just say | |
101 | * -I/usr/include/sys because some systems have both time files, and | |
102 | * the -I trick gets the wrong one. | |
103 | */ | |
104 | #$d_tminsys TMINSYS /**/ | |
105 | ||
8d063cd8 LW |
106 | /* vfork: |
107 | * This symbol, if defined, remaps the vfork routine to fork if the | |
108 | * vfork() routine isn't supported here. | |
109 | */ | |
110 | #$d_vfork vfork fork /**/ | |
111 | ||
36ce8bec DFDL |
112 | /* VOIDSIG: |
113 | * This symbol is defined if this system declares "void (*signal())()" in | |
114 | * signal.h. The old way was to declare it as "int (*signal())()". It | |
115 | * is up to the package author to declare things correctly based on the | |
116 | * symbol. | |
117 | */ | |
118 | #$d_voidsig VOIDSIG /**/ | |
119 | ||
120 | /* STDCHAR: | |
121 | * This symbol is defined to be the type of char used in stdio.h. | |
122 | * It has the values "unsigned char" or "char". | |
123 | */ | |
124 | #define STDCHAR $stdchar /**/ | |
125 | ||
8d063cd8 LW |
126 | /* VOIDFLAGS: |
127 | * This symbol indicates how much support of the void type is given by this | |
128 | * compiler. What various bits mean: | |
129 | * | |
130 | * 1 = supports declaration of void | |
131 | * 2 = supports arrays of pointers to functions returning void | |
132 | * 4 = supports comparisons between pointers to void functions and | |
133 | * addresses of void functions | |
134 | * | |
135 | * The package designer should define VOIDUSED to indicate the requirements | |
136 | * of the package. This can be done either by #defining VOIDUSED before | |
137 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
138 | * level of void support necessary is not present, defines void to int. | |
139 | */ | |
140 | #ifndef VOIDUSED | |
141 | #define VOIDUSED $defvoidused | |
142 | #endif | |
143 | #define VOIDFLAGS $voidflags | |
144 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
145 | #$define void int /* is void to be avoided? */ | |
146 | #$define M_VOID /* Xenix strikes again */ | |
147 | #endif | |
148 | ||
149 | !GROK!THIS! |