summaryrefslogtreecommitdiff
path: root/lynx.cf
blob: 1c761194765764f10993d1daa60961dbbff0df45 (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
XCOMM $Xorg: lynx.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $




XCOMM platform:  $XFree86: xc/config/cf/lynx.cf,v 3.47 2003/04/24 22:14:53 herrb Exp $


#ifndef OSName
#define OSName			DefaultOSName
#endif
#ifndef OSVendor
#define OSVendor		(LynuxWorks Inc.)
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion		DefaultOSTeenyVersion
#endif
XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)

#ifndef HasSetenv
#define HasSetenv		NO
#endif

#if  OSMajorVersion > 2
#define HasGcc2			YES
#endif

#ifndef HasGcc2
#define HasGcc2			NO
#endif

#if  OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 2)
# ifndef HasGcc2ForCplusplus
#  define HasGcc2ForCplusplus	YES
# endif
#endif
#ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus	YES
#endif
#define GccUsesGas		YES
#define UseGas			YES
#define GnuCpp			YES
#define HasShadowPasswd		NO
#ifndef HasLibCrypt
# define HasLibCrypt		NO
#endif
#define HasPutenv		YES
#define HasSutenv		NO
#define HasSnprintf		NO
#define HasShm			YES
#define HasSockets		YES
#define HasVFork		NO
#define HasVarDirectory		NO
#if  OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 4)
# define HasBSD44Sockets 	YES
#endif
#define HasStickyDirBit		NO
#ifndef HasPosixRegex
# define HasPosixRegex		NO
#endif
#ifndef HasPerl
# define HasPerl		NO
#endif
#ifndef HasFreetype2
# define HasFreetype2		NO
#endif

#if OSMajorVersion <= 2
# define USE_MACHINE_ABSOLUTE
#endif

/* At least on x86 we're seeing spurious server crashes when
 * using signals (SmartScheduler, SilkenMouse) starting with
 * LynxOS 3.1.0.
 */
#if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion == 1)
# ifndef UseSmartScheduler
#  define UseSmartScheduler	NO
# endif
#endif

#ifdef UseSmartScheduler
/* pull in real sigio in os-support instead of sigiostubs */
# define AllowSIGIO		YES
#endif

#define HasPosixThreads		YES
#define ThreadedX		YES
#define HasThreadSafeAPI	YES
#if HasGcc2
# if OSMajorVersion == 2 && OSMinorVersion == 3
#  define ThreadsCompileFlags	-mposix -mthreads
#  define ThreadsCplusplusCompileFlags	-mposix -mthreads
# else
#  define ThreadsCompileFlags	-mthreads
#  define ThreadsCplusplusCompileFlags	-mthreads
# endif
#else
# define ThreadsCompileFlags	-m
# define ThreadsCplusplusCompileFlags	-m
#endif
#if OSMajorVersion == 2 && OSMinorVersion < 3
# define ThreadsLibraries /lib/thread/libc.a /lib/thread/libc_p.a
#endif
#if (OSMajorVersion == 3 && OSMinorVersion == 0) || (OSMajorVersion == 2 && OSMinorVersion <= 5)
# define ThreadPreStdAPIDefines	-DXPRE_STANDARD_API
#endif
#define AvoidNullMakeCommand	YES
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 2)
#define StripInstalledPrograms	YES
#else
/* under LynxOS AT V2.x /bin/strip will leave file.unstripped around
 * and fail if installing across different file systems
 */
#define StripInstalledPrograms	NO
#endif
#define CompressAllFonts	YES
#define Malloc0ReturnsNull	NO
#define NeedConstPrototypes	YES
#define NeedFunctionPrototypes	YES
#define NeedNestedPrototypes	YES
#define NeedVarargsPrototypes	YES
#define NeedWidePrototypes	NO
#define MkdirHierCmd		mkdir -p
#define DirFailPrefix 		-

#if HasGcc2
# if OSMajorVersion == 2 && OSMinorVersion == 3
#  define CplusplusCmd		g++ -mposix
#  define CcCmd			gcc -mposix
# else
#  define CplusplusCmd		g++
#  define CcCmd			gcc
# endif
# if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion == 5)
#  if defined(UseInstalled)
#   define DefaultCCOptions	-fcommon -D__NO_INCLUDE_WARN__
#  else
#   define DefaultCCOptions -ansi -pedantic -fcommon -D__NO_INCLUDE_WARN__ GccWarningOptions
#  endif
# endif
#else
# define CplusplusCmd		g++
# define CcCmd			gcc
# define DefaultCCOptions	-ansi GccWarningOptions
# define GccGasOption		-DGCCUSESGAS /* For SuperProbe */
#endif
#define AsCmd			as
#define LdCmd			ld
#define AsmDefines		-DUSE_GAS
#if OSMajorVersion < 4
# define CppCmd			/lib/cpp
#else
# define CppCmd			/bin/cpp
#endif
#define RawCppCmd              CppCmd
#if !CrossCompiling
#define YaccCmd			bison -y
/* make sure we take the right flex on 2.3.0 and 2.4.0 */
#define LexCmd			/bin/flex
#endif
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 5)
# define LexLib			-lfl
#else
# define LexLib			/**/
#endif
#define HasFlex			YES
/* On LynxOS AT 2.3.0 /lib/libm.a is a symbolic link to /lib/libc.a, so we
 * screw up some POSIX functionality when -lm comes before -lc_p in our
 * ld argument list. For LynxOS-AT we don't need -lm but for others we
 * do (e.g. SPARC)
 */
#if OSMajorVersion == 2 && OSMinorVersion == 3
# define MathLibrary		-lc_p -lm
# define TermcapLibrary		-lc_p -ltermcap
#else
# define MathLibrary		-lm
# define TermcapLibrary		-ltermcap
#endif
#define PreProcessCmd		CcCmd -E
#if HasGcc2
# define PostIncDir		DefaultGccIncludeDir
#endif
#define LdCombineFlags		-r
#if HasGcc2
# ifdef i386Architecture
#  define OptimizedCDebugFlags	DefaultGcc2i386Opt
# else
#  define OptimizedCDebugFlags	-O2
# endif
#else
# define OptimizedCDebugFlags	-O
#endif
#if OSMajorVersion == 2 && OSMinorVersion <= 2
# define StandardDefines		-DLynx -DLynx_22 -DX_NOT_POSIX
#else
# if defined(i386Architecture)
/* need __i386__ for 2.5.0 AT and higher */
#  if OSMajorVersion <= 3
#   define StandardDefines		-DLynx -DX_LOCALE -D__i386__ -DNO_MMAP
#  else
#   define StandardDefines		-DLynx -DX_LOCALE -D__i386__
#  endif
# else
#  if OSMajorVersion <= 3
#   define StandardDefines		-DLynx -DX_LOCALE -DNO_MMAP
#  else
#   define StandardDefines		-DLynx -DX_LOCALE
#  endif
# endif
#endif

#define StandardCppOptions	-traditional
#define StandardCppDefines	StandardDefines
#if defined(i386Architecture) || defined(PpcArchitecture)
# define ServerOSDefines	XFree86ServerOSDefines -DDDXTIME
# define ServerExtraDefines	-DGCCUSESGAS XFree86ServerDefines
# if OSMajorVersion == 2 && OSMinorVersion < 5
#  define XkbServerDefines      -DNEED_POPEN_WORKAROUND
# endif
#else
# if defined(SparcArchitecture)
#  define SparcConsoleDefines	/* -DPATCHED_CONSOLE */
#  define ServerOSDefines 	-DDDXOSINIT
#  define ServerExtraDefines	-DGCCUSESGAS SparcConsoleDefines
#  define XkbServerDefines	-DXKB_ALWAYS_USES_SOFT_REPEAT
# else
#  define ServerOSDefines 	/**/
#  define ServerExtraDefines	-DGCCUSESGAS
# endif
#endif
#define ServerExtraSysLibs	$(CBRT) MathLibrary
#define ConnectionFlags		-DUNIXCONN -DTCPCONN
#if OSMajorVersion <= 2 && OSMinorVersion < 5
# define ExtraLibraries		-lbsd
#else
# define ExtraLibraries		-lbsd -llynx
#endif
#if !HasGcc2
# define ExtraLoadFlags		-k
#endif
#if OSMajorVersion == 2 && OSMinorVersion <= 2
# define XawI18nDefines		-DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif

/* If you have the mtrr driver installed you might want to enable this */
#ifndef HasMTRRSupport
#define HasMTRRSupport		NO
#endif

#if (defined(i386Architecture) || defined(PpcArchitecture)) && (OSMajorVersion > 2 || OSMinorVersion > 2)
# ifndef DoLoadableServer
#  define DoLoadableServer	YES
# endif
#endif


/* define HasMotif to YES for LynxOS with Motif
 * installed according to the notes in README.LynxOS.
 */
#ifndef HasMotif
# define HasMotif 		NO
#endif
#ifndef MetroLink
/* We handle the Motif stuff elsewhere */
#if HasMotif
# ifndef UseInstalledMotif
#  define UseInstalledMotif	YES
# endif
# ifndef SaberProgramTarget
#  define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) /**/
# endif
# define LocalTmplFile		<Motif.tmpl>
# define LocalRulesFile		<Motif.rules>
#endif
#endif

#define ManSourcePath   $(MANPATH)/cat

#ifndef ManSuffix
# define ManSuffix	1
#endif
#ifndef ManDir
# define ManDir		$(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix	3
#endif
#ifndef LibmanDir
# define LibmanDir	$(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix	5
#endif
#ifndef FileManDir
# define FileManDir	$(MANSOURCEPATH)5
#endif

#define HasGroff	YES

/* groff 1.09 compiles right out of the box with LynxOS 2.3,
 * so if you want to have manual pages you should install groff 1.09
 * before you run 'make install.man'
 */
#ifndef InstallManPageLong
#define InstallManPageLong(file,destdir,dest)                           @@\
BuildInstallHtmlManPage(file,dest,$(MANSUFFIX))				@@\
									@@\
CppManTarget(file, $(EXTRAMANDEFS))					@@\
									@@\
install.man:: file.$(MANNEWSUFFIX)                                      @@\
	MakeDir($(DESTDIR)destdir)					@@\
	$(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)*			@@\
	groff -e -t -man -Tascii file.$(MANNEWSUFFIX) >/tmp/file.man	@@\
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
	echo dest dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX) @@\
	gawk '					\			@@\
	/^\.SH[ 	]*NAME/ 	{ 	\			@@\
		getline; sub("\\\\", "(" p ") "); print; exit	\	@@\
	}' p=$(MANSUFFIX) file.$(MANNEWSUFFIX)  >> $(DESTDIR)destdir/../whatis	@@\
	$(RM) /tmp/file.man
#endif

#ifndef InstallManPageAliases
#define InstallManPageAliases(file,destdir,aliases)                     @@\
InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX))			@@\
									@@\
install.man::                                                           @@\
	@(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \	@@\
	for i in aliases; do (set -x; \ 				@@\
	$(RM) $(DESTDIR)destdir/$$i.*; \				@@\
	(cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \			@@\
	$$i.$${SUFFIX})); \						@@\
	echo $$i dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX); \ @@\
	done)
#endif

#ifndef InstallGenManPageLong
#define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
BuildInstallHtmlManPage(file,dest,suffix)				@@\
									@@\
CppManTarget(file, $(EXTRAMANDEFS))					@@\
									@@\
install.man:: file.$(MANNEWSUFFIX)                                      @@\
	MakeDir($(DESTDIR)destdir)					@@\
	$(RM) $(DESTDIR)destdir/dest.suffix*				@@\
	groff -e -t -man -Tascii file.$(MANNEWSUFFIX) >/tmp/file.man	@@\
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
	echo dest dest suffix >> $(DESTDIR)destdir/Concat(LIST,suffix)	 @@\
	gawk '					\			@@\
	/^\.SH[ 	]*NAME/ 	{ 	\			@@\
		getline; sub("\\\\", "(" p ") "); print; exit	\	@@\
	}' p=suffix file.$(MANNEWSUFFIX)  >> $(DESTDIR)destdir/../whatis	@@\
	$(RM) /tmp/file.man
#endif

#ifndef InstallMultipleMan
#define InstallMultipleMan(list,dest)                                   @@\
install.man:: list                                                      @@\
	MakeDir($(DESTDIR)dest)						@@\
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \			@@\
	for i in list; do \						@@\
		(MNAME=`echo $$i | cut -f1 -d.`; \			@@\
		set -x; \						@@\
		$(RM) $(DESTDIR)dest/$${MNAME}*; \			@@\
		groff -e -t -man -Tascii $$i >/tmp/$$i; \		@@\
		$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \      @@\
		echo $${MNAME} $${MNAME} $(MANSUFFIX) >> $(DESTDIR)dest/LIST$(MANSUFFIX)\  @@\
		gawk '							\  @@\
		/^\.SH[ 	]*NAME/ 	{ 			\  @@\
			getline; sub("\\\\", "(" p ") "); print; exit	\  @@\
		}' p=$(MANSUFFIX) $$i  >> $(DESTDIR)dest/../whatis	\  @@\
		$(RM) /tmp/$$i); \					   @@\
	done
#endif

/*
 * Definitions for the SUN server on LynxOS SPARC
 */
#ifdef SparcArchitecture
# define XsunLynxServer			YES
# define XsunLynxMonoServer		NO
# ifndef BuildScreenSaverLibrary
#  define BuildScreenSaverLibrary	YES
# endif
# if BuildXInputExt
#  undef BuildXInputExt
# endif
# define BuildXInputExt			NO
# define BuildXF86MiscExt		NO
# define BuildXF86VidModeExt		NO
/*
 * XFree86 uses its own (more portable) database routines to speed up
 * the RGB database lookups
 * However, if you want to use ndbm anyway, you can set that to NO in
 * site.def
 */
# ifndef UseRgbTxt
#  define UseRgbTxt	YES
# endif
#endif

#if !defined(i386Architecture) && !defined(PpcArchitecture)
# define BuildXF86DGA NO
#endif

#if 0
#include <lynxLib.rules>
#endif

#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif

#include <xorg.cf>