summaryrefslogtreecommitdiffstats
path: root/rules/xorg-server.in
blob: 1df393b5a45b6048c94f0e1cabfd3a3144d93d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
# xorg server configuration
#
# Note: Some of the listed dependencies are hardcoded in the configure script
# see configure script line 26250
#
# REQUIRED_MODULES="randrproto renderproto fixesproto >= 4.0 damageproto xcmiscproto xextproto xproto \
#     xtrans xf86miscproto xf86vidmodeproto xf86bigfontproto scrnsaverproto >= 1.1 bigreqsproto \
#     resourceproto fontsproto inputproto xf86dgaproto"
# REQUIRED_LIBS="xfont xau fontenc"
#
menuconfig XORG_SERVER
	bool "xorg server           "
# Always required:
	select XORG_LIB_X11
	select XORG_LIB_XAW
	select XORG_LIB_XAU

	select XORG_LIB_XTRANS
	select XORG_PROTO_RANDR

	select XORG_PROTO_RENDER
	select XORG_LIB_XRENDER

	select XORG_PROTO_FIXES
	select XORG_PROTO_DAMAGE
	select XORG_PROTO_XCMISC
	select XORG_PROTO_XEXT
	select XORG_PROTO_X
	select XORG_PROTO_XF86MISC
	select XORG_PROTO_BIGREQS
	select XORG_PROTO_XF86VIDMODE
	select XORG_PROTO_XF86BIGFONT
	select XORG_LIB_FONTENC
	select XORG_LIB_XFONT
	select XORG_LIB_XKBFILE

	select GLIBC_DL
	select PIXMAN
#
# Required on demand
#
	select XORG_LIB_XXF86VM if XORG_SERVER_EXT_XV

	select XORG_LIB_XRES if XORG_SERVER_EXT_XRES

	select XORG_LIB_XP if XORG_SERVER_XPRINT

	select XORG_LIB_XXF86MISC if XORG_SERVER_EXT_XF86MISC
#
# FIXME: required?
	select XORG_LIB_XSCRNSAVER if XORG_SERVER_EXT_SCREENSAVER
#
	select XORG_PROTO_FONTS
	select XORG_PROTO_INPUT
	select XORG_LIB_XI
	select XORG_LIB_LBXUTIL if XORG_SERVER_EXT_LBX
	select XORG_LIB_XFONTCACHE
	select XORG_LIB_XT
	select XORG_LIB_XMU
	select XORG_LIB_XTST
	select XORG_LIB_XEXT
	select XORG_PROTO_FONTCACHE
	select XORG_PROTO_PRINT
#
	select XORG_PROTO_XF86DRI if XORG_SERVER_EXT_DRI
#
# when OpenGL is enabled, MesaLib is required
#
	select XORG_PROTO_GL if XORG_SERVER_EXT_GLX
	select MESALIB if XORG_PROTO_GL
	select LIBDRM if XORG_PROTO_GL
#
#	select XORG_PROTO_XV
	select XORG_LIB_XV if XORG_SERVER_EXT_XV
#
	select XORG_LIB_XCOMPOSITE if XORG_SERVER_EXT_COMPOSITE
#	select XORG_PROTO_COMPOSITE if XORG_SERVER_EXT_COMPOSITE
#
	select XORG_LIB_XTRAP if XORG_SERVER_EXT_XTRAP
#	select XORG_PROTO_TRAP if XORG_SERVER_EXT_XTRAP
#
	select XORG_PROTO_RECORD if XORG_SERVER_EXT_RECORD
#
# FIXME: required?
	select XORG_LIB_XKBUI if XORG_KEYBOARD_MAPPING_SUPPORT

	select XORG_PROTO_XINERAMA if XORG_SERVER_EXT_XINERAMA

	select XORG_PROTO_EVIEEXT if XORG_SERVER_EXT_XEVIE

	select XORG_LIB_XDMCP if XORG_SERVER_EXT_XDMCP

# configure checks for dmx-proto when checking XDMCP. Why?
	select XORG_PROTO_DMX if XORG_SERVER_EXT_XDMCP

	select XORG_LIB_DMX if XORG_SERVER_DMX

# FIXME seems not to work
# FIXME: There are some configurations where its required. Bit when?
	select GCCLIBS_GCC_S


# always! Why?
	select XORG_PROTO_SCRNSAVER if XORG_SERVER_QUIRKS
# always! Why?
	select XORG_PROTO_RESOURCE if XORG_SERVER_QUIRKS
# always! Why?
	select XORG_PROTO_XF86DGA if XORG_SERVER_QUIRKS || XORG_SERVER_EXT_DGA
# always! Why?
	select XORG_PROTO_VIDEO if XORG_SERVER_QUIRKS

	# FIXME: if not enabled, we get this one:
	# record.c:46:38: X11/extensions/recordstr.h: No such file or directory
#	select XORG_PROTO_RECORD if XORG_SERVER_QUIRKS

	# FIXME: if not enabled, we get this one:
	# seems an error. Without DBE its definition will be omitted
	# (in os/utils.c), but it will always be used in
	# hw/xfree86/dixmods/dbemodule.c!
	# dbemodule.c:17: error: `noDbeExtension' undeclared here (not in a function)
	select XORG_SERVER_EXT_DBE if XORG_SERVER_QUIRKS

	# FIXME: XVMC_[TRUE|FALSE] are ifdefd out if XV is not set!
	select XORG_SERVER_EXT_XVMC if XORG_SERVER_QUIRKS && XORG_SERVER_EXT_XV

	# FIXME: same problem as above
	select XORG_SERVER_EXT_XV if XORG_SERVER_QUIRKS

	# FIXME: xorg fails in dix subdirectory if no file based font is enabled
	# so at least one must be enabled
#	select XORG_LIB_XFONT_PCF_FONTS if XORG_SERVER_QUIRKS

	# FIXME: xorg fails in dix subdirectory if no connection to font servers
	# are enabled.
	select XORG_LIB_XFONT_FONTSERVER if XORG_SERVER_QUIRKS

config XORG_SERVER_QUIRKS
	bool
	depends on XORG_SERVER
	prompt "enable xorg quirks"
	default y
	help
	  This option turns on some additional dependencies between the
	  xorg server and the libraries. These dependencies should not
	  be there, it is just for showing where currently things with
	  the build system do not work as expected.

# ----------------------------------------------------------------------------

comment "*** X.org Servers ***"
	depends on XORG_SERVER

config XORG_SERVER_XORG
	bool
	depends on XORG_SERVER
	prompt "X.org main server"
	help
	  This is the main server to be used for the other video drivers

config XORG_SERVER_DMX
	bool
	depends on XORG_SERVER
	prompt "X.org DMX server"
	help
	  Distributed Multi-head X server. Xdmx is a proxy X server that uses
	  one or more other X servers as its display devices.

config XORG_SERVER_XVFB
	bool
	depends on XORG_SERVER
	prompt "X.org Xvfb server"
	help
	  --enable-xvfb

config XORG_SERVER_XNEST
	bool
	depends on XORG_SERVER
	prompt "X.org Xnest server"
	help
	  A X server working on a running X server. Disadvantage is Xnest
	  supports only features the running X server itself supports.

config XORG_SERVER_XWIN
	bool
	depends on XORG_SERVER
	depends on BROKEN
	prompt "X.org XWin server [BROKEN]"
	help
	  X Server for the Cygwin environment on Microsoft Windows

config XORG_SERVER_XPRINT
	bool
	depends on XORG_SERVER
	prompt "Xprint server and extension"
	help
	  Support the Xprint extension on this server. This lets application
	  render to a non to non-display devices.

config XORG_SERVER_XEPHYR
	bool
	depends on XORG_SERVER
	prompt "kdrive's XEPHYR"
	help
	  This server is working on top of a running X server. But instead of
	  Xnest this kind of server supports all new features (extensions). It
	  doesn't depend on the features of the underlying X server.

# ----------------------------------------------------------------------------

comment "*** X.org Options ***"
	depends on XORG_SERVER

config XORG_SERVER_OPT_INSTALL_SETUID
	depends on XORG_SERVER
	bool
	prompt "Install Xorg server as owned by root with setupd bit"
	help
	  --enable-install-setuid

config XORG_SERVER_OPT_SECURE_RPC
	depends on XORG_SERVER
	bool
	prompt "secure RPC"
	default n
	help
	  Use secure RPC authentication (SUN-DES-1)

config XORG_SERVER_OPT_XORGCFG
	depends on XORG_SERVER
	select XORG_LIB_XKBUI
	select XORG_LIB_XXF86MISC
	select XORG_LIB_XAW_V7
	bool
	prompt "build xorgcfg GUI config utility"
	default n
	help
	  --enable-xorgcfg

config XORG_SERVER_OPT_KBD_MODE
	depends on XORG_SERVER
	bool
	prompt "build kbd_mode utility"
	help
	  --enable-kbd_mode

menuconfig XORG_SERVER_INT10_HANDLING
	depends on XORG_SERVER
	bool
	prompt "Select int10 handling       "
	help
	  Disabling this entry uses configure's default. This extension can be
	  used for closed graphic chips. The video BIOS will be called to manipulate
	  things in the device.

choice
	prompt "Select handling method"
	depends on XORG_SERVER_INT10_HANDLING

config XORG_SERVER_INT10_VM86
	depends on XORG_SERVER_INT10_HANDLING
	bool
	prompt "Use VM86"
	help
	  Using VM86 for int10. To be used on a real x86 platform with a BIOS.

config XORG_SERVER_INT10_X86EMU
	depends on XORG_SERVER_INT10_HANDLING
	bool
	prompt "Use x86emu"
	help
	  Using x86emu for int10. To be used in a environment that emulates an
	  x86.

config XORG_SERVER_INT10_STUB
	depends on XORG_SERVER_INT10_HANDLING
	bool
	prompt "Use stub"
	help
	  Using stub for int10. To be used if the environment is not a x86 and
	  does not provide an x86 emulator.

endchoice

# ----------------------------------------------------------------------------

comment "*** X.org Extensions ***"
	depends on XORG_SERVER

config XORG_SERVER_EXT_COMPOSITE
	depends on XORG_SERVER
	bool
	prompt "composite extension"
	default y
	help
	  --enable-composite

config XORG_SERVER_EXT_SHM
	depends on XORG_SERVER
	bool
	prompt "SHM extension"
	default y
	help
	  --enable-shm Support for MIT Shared Memoy

config XORG_SERVER_EXT_XRES
	depends on XORG_SERVER
	bool
	prompt "XRes extension"
	default y
	help
	  --enable-xres

config XORG_SERVER_EXT_XTRAP
	depends on XORG_SERVER
	bool
	prompt "XTrap extension"
	default y
	help
	  --enable-xtrap

config XORG_SERVER_EXT_RECORD
	depends on XORG_SERVER
	bool
	prompt "Record extension"
	default y
	help
	  --enable-record, The record module adds record extension to capture
	  events that are associated with recording and playback user actions

config XORG_SERVER_EXT_XV
	depends on XORG_SERVER
	bool
	prompt "Xv extension"
	default y
	help
	  The Xv extension provides support for video adaptors attached to an X
	  display. It takes the approach that a display may have one or more
	  video adaptors, each of which has one or more ports through which
	  independent video streams pass

config XORG_SERVER_EXT_XVMC
	depends on XORG_SERVER
	bool
	prompt "XvMC extension"
	default y
	help
	  --enable-xvmc

config XORG_SERVER_EXT_DGA
	depends on XORG_SERVER
	bool
	prompt "DGA extension"
	default y
	help
	 DGA (Direct Access Graphics mode) is a feature of XFree86 that allows
	 the program to access directly to video memory on the graphics card.
	 DGA supports the double flickering.

config XORG_SERVER_EXT_SCREENSAVER
	depends on XORG_SERVER
	bool
	prompt "ScreenSaver extension"
	default y
	help
	  --enable-screensaver

config XORG_SERVER_EXT_XDMCP
	depends on XORG_SERVER
	bool
	prompt "XDMCP extension"
	help
	  --enable-xdmcp

config XORG_SERVER_EXT_XDMCP_AUTH_1
	depends on XORG_SERVER
	bool
	prompt "XDM-Auth-1 extension"
	help
	  --enable-xdmcp

config XORG_SERVER_EXT_GLX
	depends on XORG_SERVER
	bool
	prompt "GLX extension"
	help
	  --enable-glx

config XORG_SERVER_EXT_DRI
	depends on XORG_SERVER
	bool
	prompt "DRI extension"
	default n
	help
	  Enable support for the Direct Rendering Infrastructure to get 3D
	  accelerations support. This is meaningless if you don't have DRI
	  support in your kernel for your hardware.
	  Currently the build scripts needs DRI disabled when crosscompiling,
	  else they try to detect the DRI hardware on your host.

config XORG_SERVER_EXT_XINERAMA
	depends on XORG_SERVER
	bool
	prompt "Xinerama extension"
	help
	  --enable-xinerama - Support for more than one screen, but handled
	  as one screen

config XORG_SERVER_EXT_XF86VIDMODE
	depends on XORG_SERVER
	bool
	prompt "XF86VidMode extension"
	help
	  --enable-xf86vidmode

config XORG_SERVER_EXT_XF86MISC
	depends on XORG_SERVER
	bool
	prompt "XF86Misc extension"
	help
	  --enable-xf86misc

config XORG_SERVER_EXT_XCSECURITY
	depends on XORG_SERVER
	bool
	prompt "Security extension"
	help
	  --enable-xcsecurity

config XORG_SERVER_EXT_XEVIE
	depends on XORG_SERVER
	bool
	prompt "XEvIE extension"
	help
	  --enable-xevie

config XORG_SERVER_EXT_LBX
	depends on XORG_SERVER
	bool
	prompt "LBX extension"
	help
	  --enable-lbx

config XORG_SERVER_EXT_APPGROUP
	depends on XORG_SERVER
	bool
	prompt "XC-APPGROUP extension"
	help
	  --enable-appgroup

config XORG_SERVER_EXT_CUP
	depends on XORG_SERVER
	bool
	prompt "TOG-CUP extension"
	help
	  --enable-cup

config XORG_SERVER_EXT_EVI
	depends on XORG_SERVER
	bool
	prompt "Extended-Visual-Information extension"
	help
	  --enable-evi

config XORG_SERVER_EXT_MULTIBUFFER
	depends on XORG_SERVER
	bool
	prompt "Multibuffer extension"
	help
	  --enable-multibuffer

config XORG_SERVER_EXT_FONTCACHE
	depends on XORG_SERVER
	bool
	prompt "FontCache extension"
	help
	  --enable-fontcache

config XORG_SERVER_EXT_DBE
	depends on XORG_SERVER
	bool
	prompt "DBE extension"
	help
	  --enable-dbe - Double Buffer Extension for graphic accelaration,
	  Required for flicker free and smooth animations

config XORG_SERVER_EXT_DPMS
	depends on XORG_SERVER
	bool
	prompt "DPMS extension"
	help
	  Display Power Management Service to control the display monitor