Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym
[oweals/cde.git] / cde / config / cf / NetBSD.cf
1 XCOMM platform:  $XConsortium: NetBSD.cf /main/16 1996/10/31 14:47:14 kaleb $
2
3
4
5 XCOMM platform:  $XFree86: xc/config/cf/NetBSD.cf,v 3.44 1996/10/23 13:07:55 dawes Exp $
6
7 #ifndef OSName
8 #define OSName                  DefaultOSName
9 #endif
10 #ifndef OSMajorVersion
11 #define OSMajorVersion          DefaultOSMajorVersion
12 #endif
13 #ifndef OSMinorVersion
14 #define OSMinorVersion          DefaultOSMinorVersion
15 #endif
16 /* 1 = A, 2 = B, 3 = C */
17 #ifndef OSTeenyVersion
18 #define OSTeenyVersion          DefaultOSTeenyVersion
19 #endif
20
21
22 #ifndef OSVendor
23 #define OSVendor        /**/
24 #endif
25 XCOMM operating system:  OSName
26
27 #define LibDir                  /usr/X11R7/lib/X11
28 #define UsrLibDir               /usr/X11R7/lib
29 #define ManDirectoryRoot        /usr/X11R7/man
30 #define FontDir                 /usr/X11R7/lib/X11/fonts
31 #define FontEncDir              /usr/X11R7/lib/X11/fonts/encodings
32
33 /*
34  * C library features
35  */
36 #if defined(NetBSDArchitecture) && (OsMajorVersion == 1 && OsMinorVersion >= 2)
37 #  define HasPoll                       YES
38 #endif
39 #define HasNdbm                 YES
40 #define HasPutenv               YES
41 #define HasSnprintf             YES
42 #define HasBSD44Sockets         YES
43 #define Malloc0ReturnsNull      NO
44 #define SetTtyGroup             YES
45 #define DBMLibrary              /**/
46 #ifndef HasLibCrypt
47 # define HasLibCrypt            YES
48 #endif
49 #ifndef HasShm
50 # if OSMajorVersion == 0 && OSMinorVersion == 9 && OSTeenyVersion == 2
51 /*
52  * Shm memory was removed in 0.9B because it was encumbered.
53  * A free version was added in 0.9C
54  */
55 #  define HasShm                NO
56 # else
57 #  define HasShm                YES
58 # endif
59 #endif
60 #define HasWChar32              YES
61 /*
62  * There's a bug in NetBSD 1.0, 1.1 and 1.2 dlsym()
63  */
64 #if OSMajorVersion == 1 && OSMinorVersion <= 2
65 #  define HasDlsymBug           YES
66 #endif
67
68 /*
69  * Compiler Features
70  */
71 #undef HasGcc
72 #define HasGcc                  YES
73 #define HasGcc2                 YES
74 #ifndef HasGcc2ForCplusplus
75 #define HasGcc2ForCplusplus     YES
76 #endif
77 #define GccUsesGas              YES
78 #define UseGas                  YES
79 #define GnuCpp                  YES
80
81 #define NeedConstPrototypes     YES
82 #define NeedFunctionPrototypes  YES
83 #define NeedNestedPrototypes    YES
84 #define NeedVarargsPrototypes   YES
85 #define NeedWidePrototypes      NO
86
87 #define MkdirHierCmd            mkdir -p
88
89 #define PerlCmd                 /usr/pkg/bin/perl
90
91 #define CppCmd                  /usr/bin/cpp
92 #define StandardCppDefines      -traditional
93 #define PreProcessCmd           CppCmd
94 #define PreIncDir               /usr/include
95
96 #undef CcCmd
97 #define CcCmd                   gcc
98 #if UseInstalled
99 #define DefaultCCOptions        /**/
100 #else
101 #define DefaultCCOptions        -pipe
102 #endif
103
104 #define CplusplusLibC           -lm -lstdc++
105
106 #define GccGasOption            -DGCCUSESGAS
107 #define AsmDefines              -DUSE_GAS
108
109 #ifdef i386Architecture
110 # ifndef OptimizedCDebugFlags
111 #  define OptimizedCDebugFlags  -O2 -fno-strict-aliasing
112 # endif
113 # if OSMajorVersion < 1
114 #  define ServerOSDefines       XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
115 # else
116 #  define ServerOSDefines       XFree86ServerOSDefines -DDDXTIME
117 # endif
118 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
119 #  define ServerExtraSysLibs    -li386
120 # endif
121 #else
122 # ifndef OptimizedCDebugFlags
123 #  define OptimizedCDebugFlags  -O2 -fno-strict-aliasing
124 # endif
125 # if defined(SparcArchitecture)
126 #  define ServerOSDefines       -DDDXOSINIT
127 # else
128 #  define ServerOSDefines       /**/
129 # endif
130 #endif
131 #ifdef i386Architecture
132 # define ServerExtraDefines GccGasOption XFree86ServerDefines
133 # ifndef XFree86ConsoleDefines
134 #  define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
135 # endif
136 #else
137 # define ServerExtraDefines GccGasOption
138 #endif
139
140 #define StandardDefines -DCSRG_BASED
141 #define XawI18nDefines  -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
142
143 #if OSMajorVersion > 0
144 # ifndef BuildDynamicLoading
145 # define BuildDynamicLoading    YES
146 # endif
147 #endif
148
149 #ifndef ExtraLibraries
150 #define ExtraLibraries          /**/
151 #endif
152 #ifndef UseGnuMalloc
153 # define UseGnuMalloc           YES
154 #endif
155 #ifndef GnuMallocLibrary
156 #define GnuMallocLibrary        -lgnumalloc
157 #endif
158
159 /*
160  * Make & install Features
161  */
162
163 #define HasMakefileSafeInclude  YES
164 #define IncludeMakefile(file) @@# dependencies are in .depend
165 #define DependFileName .depend
166 #define AvoidNullMakeCommand    YES
167 #define StripInstalledPrograms  YES
168 #define CompressAllFonts        YES
169 #define DefaultUserPath         .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
170 #define DefaultSystemPath       /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
171 #define BuildLibPathVar         LD_LIBRARY_PATH
172
173 #ifdef  InstallCmd
174 # undef  InstallCmd
175 # define InstallCmd             /usr/bin/install
176 #endif
177
178 #ifndef ExtraFilesToClean
179 # define ExtraFilesToClean      *.core
180 #endif
181
182 /*
183  * Documentation formatting
184  */
185 #define NeqnCmd                 neqn -Tlatin1
186 #define EqnCmd                  eqn -Tps
187 #define TroffCmd                groff -Tps
188 #define M4Cmd                   /usr/bin/m4
189
190 /*
191  * To use the NetBSD Aperture driver
192  */
193 #if defined(i386Architecture)
194 #ifndef HasNetBSDApertureDrv
195 #define HasNetBSDApertureDrv    NO
196 #endif
197 #endif
198
199 #define MakeHasPosixVariableSubstitutions       YES
200
201 /*
202  * ForceSubdirs - force make to build subdirectories
203  * 
204  * For BSD 4.4 make 
205  */
206 #define ForceSubdirs(dirs)                                              @@\
207 dirs:   .EXEC                                                           @@\
208         @cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \           @@\
209         $(MAKE) $(MFLAGS) PassCDebugFlags all                           @@\
210                                                                         @@\
211 .EXEC:
212
213
214 #include <bsdLib.rules>
215
216 #ifdef i386Architecture
217 # include <xfree86.cf>
218 #endif
219
220 /*
221  * Definitions for the SUN server on NetBSD/sparc
222  */
223 #ifdef SparcArchitecture
224 #ifndef Xsun24Server
225 #define Xsun24Server    NO
226 #endif
227 #ifndef XsunServer
228 #define XsunServer      YES
229 #endif
230 #ifndef XsunMonoServer
231 #define XsunMonoServer  YES
232 #endif
233 #ifndef BuildScreenSaverLibrary
234 #define BuildScreenSaverLibrary YES
235 #endif
236 /*
237  * XFree86 uses its own (more portable) database routines to speed up 
238  * the RGB database lookups
239  * However, if you want to use ndbm anyway, you can set that to NO in 
240  * site.def
241  */
242 #ifndef UseRgbTxt
243 #define UseRgbTxt       YES
244 #endif
245 #endif
246
247 /*
248  * Definition for compiling on MIPS machines
249  */
250 #ifdef MipsArchitecture
251 #define PositionIndependentCFlags
252 #define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ |
253 sed 's/\.[0-9]*$$//'`
254 #define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB)
255 #define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
256 #endif
257
258
259 /* For DtHelp TIFF processing routines. */
260 #ifdef AMD64Architecture
261 #define LSBBitOrder             YES
262 #endif
263
264 #ifdef ARMArchitecture
265 #define LSBBitOrder             YES
266 #endif
267
268 #ifdef i386Architecture
269 #define LSBBitOrder             YES
270 #endif
271
272
273 /*
274  * Generic settings for all architectures
275  * which can be overridden by architecture specific sections above
276  */
277
278 #ifdef HasGcc2
279 CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
280                     2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
281 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
282 #endif
283
284 #ifndef StandardIncludes
285 # define StandardIncludes       -I/usr/pkg/include -I/usr/local/include
286 #endif
287
288 #ifndef MTop
289 #define MTop                    $(TOP)/imports/motif
290 #endif
291
292 #ifndef TopMotifInclude
293 # define TopMotifInclude        /usr/pkg/include
294 #endif
295
296 #ifndef ExtraLoadFlags
297 # define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH):$(CDE_INSTALLATION_TOP)/lib
298 #endif
299
300 #ifndef SharedTtReqs
301 # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
302 #endif
303
304 #ifndef SharedDtSvcReqs
305 # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
306 #endif
307
308 #ifndef SharedDtHelpReqs
309 # define SharedDtHelpReqs $(LDPRELIBS) $(ICONVSYSLIB) SharedXReqs -Wl,-rpath,$(USRLIBDIRPATH)
310 #endif
311
312 #ifndef SharedCsaReqs
313 # define SharedCsaReqs -lXt $(LDPOSTLIBS) -Wl,-rpath,$(USRLIBDIRPATH)
314 #endif
315
316 #ifndef KornShell
317 #define KornShell               /usr/pkg/bin/ksh93
318 #endif