]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/lynx.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / lynx.cf
1 XCOMM platform:  $XFree86: xc/config/cf/lynx.cf,v 3.12.2.6 1998/02/01 16:03:19 robin Exp $
2
3 #ifdef i386Architecture
4 # define OSName                 LynxOS AT
5 #endif
6 #ifdef ppcArchitecture
7 # define OSName                 LynxOS PowerPC
8 #endif
9 #ifdef SparcArchitecture
10 # define OSName                 LynxOS microSPARC
11 #endif
12 #define OSVendor                (LYNX Real-Time Systems, Inc)
13 #define OSMajorVersion          2
14 #define OSMinorVersion          5
15 #define OSTeenyVersion          0
16
17 #define HasGcc                  YES
18 #if OSMajorVersion == 2 && OSMinorVersion > 2
19 # define HasGcc2                YES
20 # ifndef HasGcc2ForCplusplus
21 #  define HasGcc2ForCplusplus   YES
22 # endif
23 #else
24 # define HasGcc2                NO
25 #endif
26 #ifndef HasGcc2ForCplusplus
27 # define HasGcc2ForCplusplus    YES
28 #endif
29 #define GccUsesGas              YES
30 #define UseGas                  YES
31 #define GnuCpp                  YES
32 #define HasShadowPasswd         NO
33 #ifndef HasLibCrypt
34 # define HasLibCrypt            NO
35 #endif
36 #define HasPutenv               YES
37 #define HasShm                  YES
38 #define HasSockets              YES
39 #define HasVFork                NO
40 #define HasVarDirectory         NO
41 #if OSMajorVersion == 2 && OSMinorVersion > 4
42 # define HasBSD44Sockets        YES
43 #endif
44
45 #define HasPosixThreads         YES
46 #define ThreadedX               YES
47 #define HasThreadSafeAPI        YES     /* only 2.[345].0 ?? */
48 #if HasGcc2
49 # if OSMajorVersion == 2 && OSMinorVersion == 3
50 #  define ThreadsCompileFlags   -mposix -mthreads
51 #  define ThreadsCplusplusCompileFlags  -mposix -mthreads
52 # else
53 #  define ThreadsCompileFlags   -mthreads
54 #  define ThreadsCplusplusCompileFlags  -mthreads
55 # endif
56 #else
57 # define ThreadsCompileFlags    -m
58 # define ThreadsCplusplusCompileFlags   -m
59 #endif
60 #if OSMajorVersion == 2 && OSMinorVersion < 3
61 # define ThreadsLibraries /lib/thread/libc.a /lib/thread/libc_p.a
62 #endif
63 #if OSMinorVersion <= 5
64 # define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
65 #endif
66 #define AvoidNullMakeCommand    YES
67 #if OSMajorVersion == 2 && OSMinorVersion > 2
68 #define StripInstalledPrograms  YES
69 #else
70 /* under LynxOS AT V2.x /bin/strip will leave file.unstripped around
71  * and fail if installing across different file systems
72  */
73 #define StripInstalledPrograms  NO
74 #endif
75 #define CompressAllFonts        YES
76 #define Malloc0ReturnsNull      NO
77 #define NeedConstPrototypes     YES
78 #define NeedFunctionPrototypes  YES
79 #define NeedNestedPrototypes    YES
80 #define NeedVarargsPrototypes   YES
81 #define NeedWidePrototypes      NO
82
83 #if HasGcc2
84 # if OSMajorVersion == 2 && OSMinorVersion == 3
85 #  define CplusplusCmd          g++ -mposix
86 #  define CcCmd                 gcc -mposix
87 # else
88 #  define CplusplusCmd          g++
89 #  define CcCmd                 gcc
90 # endif
91 # if OSMajorVersion == 2 && OSMinorVersion == 5
92 #  define DefaultCCOptions -ansi -pedantic -fcommon
93 # endif
94 #else
95 # define CplusplusCmd           g++ 
96 # define CcCmd                  gcc 
97 # define DefaultCCOptions       -ansi
98 # define GccGasOption           -DGCCUSESGAS /* For SuperProbe */
99 #endif
100 #define AsCmd                   as
101 #define LdCmd                   ld
102 #define AsmDefines              -DUSE_GAS
103 #define CppCmd                  /lib/cpp
104 #define YaccCmd                 bison -y
105 /* make sure we take the right flex on 2.3.0 and 2.4.0 */
106 #define LexCmd                  /bin/flex
107 #if OSMinorVersion >= 5
108 # define LexLib                 -lfl
109 #else
110 # define LexLib                 /**/
111 #endif
112 /* On LynxOS AT 2.3.0 /lib/libm.a is a symbolic link to /lib/libc.a, so we
113  * screw up some POSIX functionality when -lm comes before -lc_p in our
114  * ld argument list. For LynxOS-AT we don't need -lm but for others we 
115  * do (e.g. SPARC)
116  */
117 #if OSMajorVersion == 2 && OSMinorVersion == 3
118 # define MathLibrary            -lc_p -lm
119 # define TermcapLibrary         -lc_p -ltermcap
120 #else
121 # define MathLibrary            -lm
122 # define TermcapLibrary         -ltermcap
123 #endif
124 #define PreProcessCmd           CcCmd -E
125 #if HasGcc2
126 # define PostIncDir             DefaultGccIncludeDir
127 #endif
128 #define LdCombineFlags          -r
129 #if HasGcc2
130 # ifdef i386Architecture
131 #  define OptimizedCDebugFlags  DefaultGcc2i386Opt
132 # else
133 #  define OptimizedCDebugFlags  -O2
134 # endif
135 #else
136 # define OptimizedCDebugFlags   -O
137 #endif
138 #if OSMajorVersion == 2 && OSMinorVersion <= 2
139 # define StandardDefines                -DLynx -DLynx_22 -DX_NOT_POSIX
140 #else
141 # if defined(i386Architecture) && OSMajorVersion == 2 && OSMinorVersion > 4
142 /* need __i386__ for 2.5.0 AT and higher */
143 #  define StandardDefines               -DLynx -DX_LOCALE -D__i386__
144 # else
145 #  define StandardDefines               -DLynx -DX_LOCALE
146 # endif
147 #endif
148 #define StandardCppDefines      -traditional StandardDefines
149 #ifdef i386Architecture
150 # define ServerOSDefines        XFree86ServerOSDefines -DDDXTIME -DPART_NET
151 # define ServerExtraDefines     -DGCCUSESGAS XFree86ServerDefines
152 #else
153 # if defined(SparcArchitecture)
154 #  define SparcConsoleDefines   -DPATCHED_CONSOLE
155 #  define ServerOSDefines       -DDDXOSINIT
156 #  define ServerExtraDefines    -DGCCUSESGAS SparcConsoleDefines
157 #  define XkbServerDefines      -DXKB_ALWAYS_USES_SOFT_REPEAT
158 # else
159 #  define ServerOSDefines       /**/
160 #  define ServerExtraDefines    -DGCCUSESGAS
161 # endif
162 #endif
163 #define ServerExtraSysLibs      $(CBRT) MathLibrary
164 #define ConnectionFlags         -DUNIXCONN -DTCPCONN
165 #if OSMajorVersion == 2 && OSMinorVersion < 5
166 # define ExtraLibraries         -lbsd
167 #else
168 # define ExtraLibraries         -lbsd -llynx
169 #endif
170 #if !HasGcc2
171 # define ExtraLoadFlags         -k
172 #endif
173 #if OSMajorVersion == 2 && OSMinorVersion <= 2
174 # define XawI18nDefines         -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
175 #endif
176
177 /* define HasMotif to YES for LynxOS with Motif
178  * installed according to the notes in README.LynxOS.
179  */
180 #ifndef HasMotif
181 # define HasMotif               NO
182 #endif
183 #if HasMotif
184 # ifndef UseInstalledMotif
185 #  define UseInstalledMotif     YES
186 # endif
187 # ifndef SaberProgramTarget
188 #  define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) /**/
189 # endif
190 # define LocalTmplFile          <Motif.tmpl>
191 # define LocalRulesFile         <Motif.rules>
192 #endif
193
194 #define ManSourcePath   $(MANPATH)/cat
195
196 #ifndef ManSuffix
197 # define ManSuffix      1
198 #endif
199 #ifndef ManDir
200 # define ManDir         $(MANSOURCEPATH)1
201 #endif
202 #ifndef LibManSuffix
203 # define LibManSuffix   3
204 #endif
205 #ifndef LibmanDir
206 # define LibmanDir      $(MANSOURCEPATH)3
207 #endif
208 #ifndef FileManSuffix
209 # define FileManSuffix  5
210 #endif
211 #ifndef FileManDir
212 # define FileManDir     $(MANSOURCEPATH)5
213 #endif
214
215 /* groff 1.09 compiles right out of the box with LynxOS 2.3,
216  * so if you want to have manual pages you should install groff 1.09
217  * before you run 'make install.man'
218  */
219 #ifndef InstallManPageLong
220 #define InstallManPageLong(file,destdir,dest)                           @@\
221 install.man:: file.man                                                  @@\
222         MakeDir($(DESTDIR)destdir)                                      @@\
223         $(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)*                      @@\
224         groff -e -t -man -Tascii file.man >/tmp/file.man                @@\
225         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
226         echo dest dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX) @@\
227         gawk '                                  \                       @@\
228         /^\.SH[         ]*NAME/         {       \                       @@\
229                 getline; sub("\\\\", "(" p ") "); print; exit   \       @@\
230         }' p=$(MANSUFFIX) file.man  >> $(DESTDIR)destdir/../whatis      @@\
231         $(RM) /tmp/file.man
232 #endif
233
234 #ifndef InstallManPageAliases
235 #define InstallManPageAliases(file,destdir,aliases)                     @@\
236 install.man::                                                           @@\
237         @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \     @@\
238         for i in aliases; do (set -x; \                                 @@\
239         $(RM) $(DESTDIR)destdir/$$i.*; \                                @@\
240         (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \                  @@\
241         $$i.$${SUFFIX})); \                                             @@\
242         echo $$i dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX); \ @@\
243         done)
244 #endif
245
246 #ifndef InstallGenManPageLong
247 #define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
248 install.man:: file.man                                                  @@\
249         MakeDir($(DESTDIR)destdir)                                      @@\
250         $(RM) $(DESTDIR)destdir/dest.suffix*                            @@\
251         groff -e -t -man -Tascii file.man >/tmp/file.man                @@\
252         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
253         echo dest dest suffix >> $(DESTDIR)destdir/Concat(LIST,suffix)   @@\
254         gawk '                                  \                       @@\
255         /^\.SH[         ]*NAME/         {       \                       @@\
256                 getline; sub("\\\\", "(" p ") "); print; exit   \       @@\
257         }' p=suffix file.man  >> $(DESTDIR)destdir/../whatis    @@\
258         $(RM) /tmp/file.man)
259 #endif
260
261 #ifndef InstallMultipleMan
262 #define InstallMultipleMan(list,dest)                                   @@\
263 install.man:: list                                                      @@\
264         MakeDir($(DESTDIR)dest)                                         @@\
265         @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
266         for i in list; do \                                             @@\
267                 (set -x; \                                              @@\
268                 MNAME=`echo $$i | cut -f1 -d.`; \                       @@\
269                 $(RM) $(DESTDIR)dest/$${MNAME}*; \                      @@\
270                 groff -e -t -man -Tascii $$i >/tmp/$$i; \               @@\
271                 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \      @@\
272                 echo $${MNAME} $${MNAME} $(MANSUFFIX) >> $(DESTDIR)dest/LIST$(MANSUFFIX)\  @@\
273                 gawk '                                                  \  @@\
274                 /^\.SH[         ]*NAME/         {                       \  @@\
275                         getline; sub("\\\\", "(" p ") "); print; exit   \  @@\
276                 }' p=$(MANSUFFIX) $$i  >> $(DESTDIR)dest/../whatis      \  @@\
277                 $(RM) /tmp/$$i); \                                         @@\
278         done
279 #endif
280
281 /*
282  * Definitions for the SUN server on LynxOS SPARC
283  */
284 #ifdef SparcArchitecture
285 # define XsunLynxServer                 YES
286 # define XsunLynxMonoServer             NO
287 # define BuildPexExt                    YES
288 # define BuildXIE                       YES
289 # ifndef BuildScreenSaverLibrary
290 #  define BuildScreenSaverLibrary       YES
291 # endif
292 # if BuildXInputExt
293 #  undef BuildXInputExt
294 # endif
295 # define BuildXInputExt                 NO
296 # if BuildDPMSExt
297 #  undef BuildDPMSExt
298 # endif
299 # define BuildDPMSExt                   NO
300 # define BuildXF86MiscExt               NO
301 /*
302  * XFree86 uses its own (more portable) database routines to speed up 
303  * the RGB database lookups
304  * However, if you want to use ndbm anyway, you can set that to NO in 
305  * site.def
306  */
307 # ifndef UseRgbTxt
308 #  define UseRgbTxt     YES
309 # endif
310 #endif
311
312 #ifndef i386Architecture
313 # define BuildXF86DGA NO
314 #endif
315
316 #include <xfree86.cf>