1XCOMM platform:  $XFree86: xc/config/cf/gnu.cf,v 1.12 2003/11/24 02:02:26 dawes Exp $
2XCOMM $XdotOrg: xc/config/cf/gnu.cf,v 1.2 2004/04/23 18:41:58 eich Exp $
3
4#ifndef OSName
5#define OSName			DefaultOSName
6#endif
7
8#ifndef OSVendor
9#define OSVendor		/**/
10#endif
11#ifndef OSMajorVersion
12#define OSMajorVersion		DefaultOSMajorVersion
13#endif
14#ifndef OSMinorVersion
15#define OSMinorVersion		DefaultOSMinorVersion
16#endif
17#ifndef OSTeenyVersion
18#define OSTeenyVersion		DefaultOSTeenyVersion
19#endif
20XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
21
22#define GNUSourceDefines      -D_POSIX_C_SOURCE=199309L \
23                              -D_POSIX_SOURCE -D_XOPEN_SOURCE \
24                              -D_BSD_SOURCE -D_SVID_SOURCE
25
26XCOMM XXXMB: What about _GNU_SOURCE, see Linux/UseInstalled?
27
28#define XawI18nDefines        -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
29
30#define HasPosixThreads         YES
31#define ThreadedX               YES
32#define HasThreadSafeAPI        YES
33#define ThreadsLibraries        -lpthread
34#define SystemMTDefines         -D_REENTRANT
35
36#ifndef HasLibCrypt
37#define HasLibCrypt             YES
38#endif
39
40#ifndef BuildXF86RushExt
41# define BuildXF86RushExt	YES
42#endif
43
44#define BuildLibPathVar		LD_LIBRARY_PATH
45#define GccUsesGas		YES
46#define UseGas			YES
47#define GnuCpp			YES
48#define HasDlopen		YES
49#ifndef HasShadowPasswd
50#  define HasShadowPasswd	YES
51#endif
52#define HasPutenv		YES
53
54XCOMM Not implemented and will always fail.
55#ifndef HasShm
56# define HasShm			YES
57#endif
58
59#define HasBSD44Sockets		YES
60#define HasSockets		YES
61#define HasSnprintf		YES
62#define HasMkstemp		YES
63#define HasUsableFileMmap	YES
64#ifndef HasNCurses
65#define HasNCurses		YES
66#endif
67
68#define AvoidNullMakeCommand	YES
69#ifndef DebuggableLibraries
70#define DebuggableLibraries	NO
71#endif
72#define CompressAllFonts	YES
73#define Malloc0ReturnsNull	YES
74#define NeedConstPrototypes	YES
75#define NeedFunctionPrototypes	YES
76#define NeedNestedPrototypes	YES
77#define NeedVarargsPrototypes	YES
78#ifndef NeedWidePrototypes
79#define NeedWidePrototypes	NO
80#endif
81#define SetTtyGroup		YES
82
83#ifndef UseStaticTermcapLib
84#define UseStaticTermcapLib	NO
85#endif
86
87#define MkdirHierCmd		mkdir -p
88#ifndef CcCmd
89#define CcCmd			gcc
90#endif
91#ifndef AsCmd
92#define AsCmd			as
93#endif
94#ifndef LdCmd
95#define LdCmd			ld
96#endif
97
98#define AsmDefines		-D__ELF__
99#define CplusplusCmd		c++
100#ifndef TermcapLibrary
101#if UseStaticTermcapLib
102#define TermcapLibrary		StaticLibrary(/usr/lib,ncurses)
103#else
104#define TermcapLibrary		-lncurses
105#endif
106#endif
107#ifndef DoLoadableServer
108#define DoLoadableServer	YES
109#endif
110#ifndef CppCmd
111#define CppCmd			/lib/cpp
112#endif
113#define YaccCmd			bison -y
114#define LexCmd			flex -l
115#define HasFlex			YES
116#define LexLib			-lfl
117#define PreProcessCmd		CcCmd -E
118#define PostIncDir		DefaultGccIncludeDir
119#define LdCombineFlags		-r
120#ifndef LdPostLib
121#define LdPostLib		/* Never needed */
122#endif
123#define HasWChar32		YES
124#define StandardCppOptions	-traditional
125#define StandardCppDefines	StandardDefines
126
127#define HasVarRun		YES
128#define VarDbDirectory		$(VARDIR)/lib
129
130XCOMM i386Architecture
131#define OptimizedCDebugFlags	DefaultGcc2i386Opt
132#define GNUMachineDefines	-D__i386__
133#define ServerOSDefines		XFree86ServerOSDefines -DDDXTIME
134#define ServerExtraDefines	-DGCCUSESGAS XFree86ServerDefines
135#define HasPlugin		YES
136#define VendorHasX11R6_3libXext	YES
137
138#ifndef StandardDefines
139#define StandardDefines		GNUMachineDefines GNUSourceDefines
140#endif
141
142#define DlLibrary		-rdynamic -ldl
143
144#define ServerExtraSysLibs	/**/
145
146#define ConnectionFlags		-DUNIXCONN -DTCPCONN
147
148/* Some of these man page defaults are overridden in the above OS sections */
149#ifndef ManSuffix
150# define ManSuffix	1x
151#endif
152#ifndef ManDir
153# define ManDir		$(MANSOURCEPATH)1
154#endif
155#ifndef LibManSuffix
156# define LibManSuffix	3x
157#endif
158#ifndef LibmanDir
159# define LibmanDir	$(MANSOURCEPATH)3
160#endif
161#ifndef FileManSuffix
162# define FileManSuffix	5x
163#endif
164#ifndef FileManDir
165# define FileManDir	$(MANSOURCEPATH)5
166#endif
167
168#ifndef StaticLibrary
169#define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
170#endif
171
172#define HasGnuMake	YES
173
174#define MakeNamedTargetSubdir(dir,flags,subname)\
175        $(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
176
177#define ArchitectureDefines	-DGNU_ARCHITECTURE
178
179#define XserverNeedsSetUID	YES
180
181#include <gnuLib.rules>
182
183XCOMM XXX Might need this if they are not careful with slashes.
184XCOMM #define DirFailPrefix -
185
186#include <xorg.cf>
187
188