]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/OpenBSD.cf
c55eb403d6d64ba5d2dabfb6d81647f8aa28a217
[rdpsrv] / Xserver / config / cf / OpenBSD.cf
1 XCOMM platform:  $XFree86: xc/config/cf/OpenBSD.cf,v 3.1.2.11 1998/02/15 16:08:33 hohndel Exp $
2 XCOMM $OpenBSD: OpenBSD.cf,v 1.11 1997/12/09 03:03:48 gene Exp $
3
4 #ifndef OSName
5 #define OSName                  DefaultOSName OSBinaryType
6 #endif
7 #ifndef OSMajorVersion
8 #define OSMajorVersion          DefaultOSMajorVersion
9 #endif
10 #ifndef OSMinorVersion
11 #define OSMinorVersion          DefaultOSMinorVersion
12 #endif
13 #ifndef OSTeenyVersion
14 #define OSTeenyVersion          DefaultOSTeenyVersion
15 #endif
16
17 #ifndef OSVendor
18 #define OSVendor        /**/
19 #endif
20 XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
21
22 /*
23  * C library features
24  */
25 #define HasPoll                 YES
26 #define HasNdbm                 YES
27 #define HasPutenv               YES
28 #define HasSnprintf             YES
29 #define HasBSD44Sockets         YES
30 #define Malloc0ReturnsNull      NO
31 #define SetTtyGroup             YES
32 #define DBMLibrary              /**/
33 #define HasLibCrypt             NO
34 #define HasShm                  YES
35 #define HasWChar32              YES
36 #define HasMkstemp              YES
37
38 /*
39  * Compiler Features
40  */
41 #undef HasGcc
42 #define HasGcc                  YES
43 #define HasGcc2                 YES
44 #ifndef HasGcc2ForCplusplus
45 #define HasGcc2ForCplusplus     YES
46 #endif
47 #define GccUsesGas              YES
48 #define UseGas                  YES
49 #define GnuCpp                  YES
50
51
52 #define NeedConstPrototypes     YES
53 #define NeedFunctionPrototypes  YES
54 #define NeedNestedPrototypes    YES
55 #define NeedVarargsPrototypes   YES
56 #define NeedWidePrototypes      NO
57
58 #define MkdirHierCmd            mkdir -p
59
60 #define CppCmd                  /usr/libexec/cpp
61 #define StandardCppDefines      -traditional
62 #define PreProcessCmd           CppCmd
63 #define PreIncDir               DefaultGccIncludeDir
64
65 #undef CcCmd
66 #define CcCmd                   gcc
67 #if defined(UseInstalled) && (!defined(XF86LinkKit) || !XF86LinkKit)
68 #define DefaultCCOptions        /**/
69 #else
70 #define DefaultCCOptions        -ansi -Dasm=__asm
71 #endif
72
73 #define GccGasOption            -DGCCUSESGAS
74 #define AsmDefines              -DUSE_GAS
75
76
77 #ifdef i386Architecture
78 # define OptimizedCDebugFlags   DefaultGcc2i386Opt
79 # define ServerOSDefines        XFree86ServerOSDefines -DDDXTIME
80 # define ServerExtraSysLibs     -li386
81 #else
82 # define OptimizedCDebugFlags   -O2
83 # if defined(SparcArchitecture) || defined(AlphaArchitecture) || defined(AmigaArchitecture) || defined(Sun3Architecture)
84 #  define ServerOSDefines       -DDDXOSINIT
85 # else
86 #  define ServerOSDefines       /**/
87 # endif
88 #endif
89 #if defined(i386Architecture) || defined(ArcArchitecture)
90 # define ServerExtraDefines GccGasOption XFree86ServerDefines
91 # ifndef XFree86ConsoleDefines
92 #  if defined(ArcArchitecture)
93 #   define XFree86ConsoleDefines -DPCCONS_SUPPORT
94 #  else
95 #   define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
96 #  endif
97 # endif
98 #else
99 # if defined(AlphaArchitecture)
100 #  define ServerExtraDefines GccGasOption -D_XSERVER64
101 # else
102 #  if !defined(Sun3Architecture)
103 #   define ServerExtraDefines GccGasOption
104 #  endif
105 # endif
106 #endif
107
108 #define StandardDefines -DCSRG_BASED
109 #define XawI18nDefines  -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
110
111
112 #ifndef ExtraLibraries
113 #define ExtraLibraries          /**/
114 #endif
115 #define UseGnuMalloc            NO
116
117 #define HasZlib                 YES
118
119 #define AdmDir                  /var/log
120
121 /*
122  * Make & install Features
123  */
124
125 #define HasBsdMake              YES
126
127 #define StripInstalledPrograms  YES
128 #define CompressAllFonts        YES
129 #define GzipFontCompression     YES
130 #define DefaultUserPath         /bin:/usr/bin:/usr/local/bin:$(BINDIR)
131 #define DefaultSystemPath       /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
132
133 #ifdef  InstallCmd
134 # undef  InstallCmd
135 # define InstallCmd             /usr/bin/install
136 #endif
137
138 #ifndef ExtraFilesToClean
139 # define ExtraFilesToClean      *.core
140 #endif
141
142 /*
143  * Documentation formatting
144  */
145 #define NeqnCmd                 neqn -Tlatin1
146 #define NroffCmd                nroff -Tlatin1
147 #define EqnCmd                  eqn -Tps
148 #define TroffCmd                groff -Tps
149
150 /*
151  * To use the NetBSD Aperture driver
152  */
153 #if defined(i386Architecture)
154 #ifndef HasNetBSDApertureDriver
155 #define HasNetBSDApertureDriver YES
156 #endif
157 #endif
158
159
160
161 XCOMM Man pages need to be formatted when installed, so override the default
162 XCOMM imake rules.
163
164 #define ManSuffix       1
165 #define FileManSuffix   5
166 #define ManSourcePath   $(MANPATH)/cat
167
168 #define InstallManPageLong(file,destdir,dest)                           @@\
169 all:: file.0                                                            @@\
170                                                                         @@\
171 file.0:: file.man                                                       @@\
172         @if [ -f file.man ]; \                                          @@\
173         then \                                                          @@\
174         cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \      @@\
175         cp /tmp/$$$$.man file.0; \                                      @@\
176         $(RM) /tmp/$$$$.man; \                                          @@\
177         fi                                                              @@\
178                                                                         @@\
179 install.man::                                                           @@\
180         MakeDir($(DESTDIR)destdir)                                      @@\
181         -@if [ -f file.0 ]; \                                           @@\
182         then \                                                          @@\
183         $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
184         fi
185
186 #define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
187         InstallManPageLong(file,destdir,dest)
188
189 #define InstallMultipleManSuffix(list,dest,suff)                        @@\
190 install.man::                                                           @@\
191         MakeDir($(DESTDIR)dest)                                         @@\
192         case '${MFLAGS}' in *[i]*) set +e;; esac; \                     @@\
193         for i in list; do \                                             @@\
194           (set -x; \                                                    @@\
195           cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \   @@\
196           $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \  @@\
197           $(RM) /tmp/$$$$.suff); \                                              @@\
198         done
199
200 #define InstallMultipleMan(list,dest)                                   @@\
201         InstallMultipleManSuffix(list,dest,man)
202
203 #define InstallManPageAliases(file,destdir,aliases)                     @@\
204 install.man::                                                           @@\
205         @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
206         for i in aliases; do \                                          @@\
207                 (set -x; \                                              @@\
208                 $(RM) $(DESTDIR)destdir/$$i.0;\                         @@\
209                 (cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\           @@\
210                 ); \                                                    @@\
211         done
212
213 #define InstallGenManPageAliases(file,destdir,suffix,aliases)           @@\
214         InstallManPageAliases(file,destdir,aliases)
215
216
217
218 /*
219  * Architecture specific sections - put all architecture dependent
220  * options and setting here into the correct section
221  */
222
223 /*
224  * Definitions for the alpha architecture
225  */
226 #ifdef AlphaArchitecture
227
228 # define XF86Contrib
229 # include <xf86.rules>
230 # define BuildServer            NO
231 # define XnestServer            NO
232 # define XVirtualFramebufferServer      NO
233
234  /*
235   * For the current ECOFF system
236   */
237 # define HasSharedLibraries     NO
238 # define UseElfFormat           NO
239 # define BuildDynamicLoading    NO
240  /*
241   * For the upcoming ELF system
242   */
243 # if 0 /* NOT YET */
244 #  define HasSharedLibraries    YES
245 #  define UseElfFormat          YES
246 #  define BuildDynamicLoading   YES
247 # endif
248
249 #endif /* AlphaArchitecture */
250
251
252 /*
253  * Definitions for the i386 architecture
254  */
255 #ifdef i386Architecture
256
257 /*
258  * For safety reasons, don't install the X server setuid on OpenBSD
259  * use xdm instead
260  */
261 # define InstallXserverSetUID   NO
262
263 # define BuildDynamicLoading    YES
264 # include <xfree86.cf>
265
266 #endif /* i386Architecture */
267
268
269 /*
270  * Definitions for the m68k architecture (currently amiga, hp300,
271  * mac68k, mvme68k, sun3)
272  */
273 #ifdef Mc68020Architecture
274
275 /*
276  * Function CSE makes gas -k not recognize external function calls as lazily
277  * resolvable symbols, thus sometimes making ld.so report undefined symbol
278  * errors on symbols found in shared library members that would never be 
279  * called.  Ask niklas@openbsd.org for details.
280  */
281 # define PositionIndependentCFlags -fpic -fno-function-cse
282
283 #endif /* Mc68020Architecture */
284
285
286 /*
287  * Definitions for the amiga architecture
288  */
289 #ifdef AmigaArchitecture
290
291 # define XF86Contrib
292 # include <xf86.rules>
293 # define BuildServer            NO
294
295 #endif /* AmigaArchitecture */
296
297
298 /*
299  * Definitions for the hp300 architecture
300  */
301 #ifdef Hp300Architecture
302
303 # include <xf86.rules>
304 # define BuildServer            NO
305
306 #endif /* Hp300Architecture */
307
308
309 /*
310  * Definitions for the mac68k architecture
311  */
312 #ifdef mac68kArchitecture
313
314 # include <xf86.rules>
315 # define BuildServer            NO
316
317 #endif /* Mac68kArchitecture */
318
319
320 /*
321  * Definitions for the mvme68k architecture
322  */
323 #ifdef Mvme68kArchitecture
324
325 # include <xf86.rules>
326 # define BuildServer            NO
327
328 #endif /* Mvme68kArchitecture */
329
330
331 /*
332  * Definitions for the sun3 architecture
333  */
334 #ifdef Sun3Architecture
335
336 # include <xf86.rules>
337
338 # define OptimizedCDebugFlags  -O2
339 # define ServerOSDefines       -DDDXOSINIT
340 # define BootstrapCFlags       -Dsun3
341 # define UnalignedReferencesAllowed YES /* changes _XtCopyArgs() */
342 /* Note: -ansi turns off -Dmc68000 */
343 # define ServerExtraDefines    GccGasOption -Dmc68000 -Dmc68020
344
345 # ifndef Xsun24Server
346 #  define Xsun24Server          NO
347 # endif
348 # ifndef XsunServer
349 #  define XsunServer            NO
350 # endif
351 # ifndef XsunMonoServer
352 #  define XsunMonoServer        YES
353 # endif
354
355 # ifndef BuildXKB
356 #  define BuildXKB              NO
357 # endif
358
359 # ifndef BuildXKBlib
360 #  define BuildXKBlib           NO
361 # endif
362
363 # ifndef BuildPexExt
364 #  define BuildPexExt           (XsunServer || Xsun24Server)
365 # endif
366
367 #endif /* Sun3Architecture */
368
369
370 /*
371  * Definitions for the mips architecture (currently arc, pmax)
372  */
373 #ifdef MipsArchitecture
374
375  /*
376   * Mips ELF shared libs need some special handling.
377   */
378 # define PositionIndependentCFlags
379 # define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ | sed 's/\.[0-9]*$$//'`
380 # define SharedXtReqs -L$(BUILDLIBDIR) $(XLIBONLY) $(SMLIB) $(ICELIB)
381 # define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
382
383 #endif /* MipsArchitecture */
384
385
386 /*
387  * Definitions for the arc architecture
388  */
389 #ifdef ArcArchitecture
390
391 # include <xfree86.cf>
392
393 #endif /* ArcArchitecture */
394
395
396 /*
397  * Definitions for the pmax architecture
398  */
399 #ifdef PmaxArchitecture
400
401 # include <xf86.rules>
402 # define BuildServer            NO
403
404 #endif /* PmaxArchitecture */
405
406
407 /*
408  * Definitions for the sparc architecture
409  */
410 #ifdef SparcArchitecture
411
412 # include <xf86.rules>
413
414 # ifndef Xsun24Server
415 # define Xsun24Server   YES
416 # endif
417 # ifndef XsunServer
418 # define XsunServer     YES
419 # endif
420 # ifndef XsunMonoServer
421 # define XsunMonoServer YES
422 # endif
423
424 #define XkbServerDefines  -DXKB_ALWAYS_USES_SOFT_REPEAT
425
426 # ifndef BuildPexExt
427 #  define BuildPexExt   (XsunServer || Xsun24Server)
428 # endif
429 #endif /* SparcArchitecture */
430
431
432 /* End or architecture specific section */
433
434 /*
435  * Generic settings for all architectures
436  */
437
438 #ifndef XVirtualFramebufferServer
439 # undef BuildServer
440 # define BuildServer                    YES
441 # define XVirtualFramebufferServer      YES
442 #endif
443
444 #ifndef XnestServer
445 # undef BuildServer
446 # define BuildServer                    YES
447 # define XnestServer                    YES
448 #endif
449
450 #ifndef BuildScreenSaverLibrary
451 # define BuildScreenSaverLibrary        YES
452 #endif
453
454 #ifndef ForceNormalLib
455 # define ForceNormalLib                 YES
456 #endif
457
458 #ifndef BuildDynamicLoading
459 # define BuildDynamicLoading            NO
460 #endif
461
462 /*
463  * XFree86 uses its own (more portable) database routines to speed up 
464  * the RGB database lookups
465  * However, if you want to use ndbm anyway, you can set that to NO in 
466  * site.def
467  */
468 #ifndef UseRgbTxt
469 # define UseRgbTxt                      YES
470 #endif
471
472 #ifndef OSBinaryType
473 # if UseElfFormat
474 #  define OSBinaryType                  [ELF]
475 # else 
476 #  define OSBinaryType                  /**/
477 # endif
478 #endif
479
480 /* This must come last */
481 #include <bsdLib.rules>
482