]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/osf1.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / osf1.cf
1 XCOMM platform:  $TOG: osf1.cf /main/74 1997/05/27 15:51:24 kaleb $
2 /* only tested with Digital OSF/1 */
3
4 #ifndef OSName
5 # define OSName         DefaultOSName
6 #endif
7 #ifndef OSMajorVersion
8 # define OSMajorVersion DefaultOSMajorVersion
9 #endif
10 #ifndef OSMinorVersion
11 # define OSMinorVersion DefaultOSMinorVersion
12 #endif
13 XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion)
14
15 #define StandardCppDefines      -D__osf__ StandardDefines
16 #define BuildLibPathVar         _RLD_ROOT=/dev/null LD_LIBRARY_PATH
17 #define HasPutenv               YES
18 #define Malloc0ReturnsNull      YES
19 #define HasNdbm                 YES
20 #define HasShm                  YES
21 #define AvoidNullMakeCommand    YES
22 #define NullMakeCommand         @ echo
23 #define HasPosixThreads         YES
24 #define SystemMTDefines         -D_REENTRANT
25 #define CplusplusSystemMTDefines -D_REENTRANT
26 #define HasPoll                 YES
27 #define HasVFork                NO
28 #define HasPlugin               YES
29 #define InstallCmd              installbsd
30 #define RanlibCmd               ranlib -t
31 #if OSMajorVersion > 1 || OSMinorVersion > 0
32 #define ModernOSF1              YES
33 #else
34 #define ModernOSF1              NO
35 #define ShLibDir                /usr/shlib
36 #define SharedLibPex            NO  /* losing, no shared -lm */
37 #endif
38 #define ThreadedX               ModernOSF1
39
40 #if ThreadedX
41 #define MTSafeAPIDefines        -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
42 #if OSMajorVersion < 4
43 #define ThreadsLibraries                -lpthreads -lmach -lc_r
44 #define ThreadsCplusplusLibraries       -lpthreads -lmach
45 #define ThreadPreStdAPIDefines          -DXPRE_STANDARD_API
46 #else
47 #define ThreadsLibraries                -lpthread -lmach -lexc -lc
48 #define ThreadsCplusplusLibraries       -lpthread -lmach -lexc
49 #define LibraryMTDefines                -DUSE_TIS_SUPPORT
50 #endif
51 #endif
52
53 #if ModernOSF1
54 #ifndef OptimizedCDebugFlags
55 #define OptimizedCDebugFlags    -O2 -Olimit 2000
56 #endif
57 #ifndef ExtraLoadFlags
58 /*
59  * In OSF/1 3.0 Digital has shared libXdmcp and libXau. What's more,
60  * the link editor has different search semantics, i.e. it will search
61  * for shared libraries first, then, if it can't find a shared lib, it
62  * will use a static lib. By using -oldstyle_liblookup the linker will
63  * follow "normal" semantics for linking libraries and will get the
64  * static libraries we really want. By 3.2 they no longer have libXdmcp 
65  * and libXau as shared libraries and we can omit -oldstyle_liblookup. 
66  * (What did they have in 3.1?)
67  */
68 #if OSMajorVersion == 3 && OSMinorVersion == 0
69 #define ExtraLoadFlags          -Wl,-rpath,$(USRLIBDIRPATH),-oldstyle_liblookup
70 #else
71 #define ExtraLoadFlags          -Wl,-rpath,$(USRLIBDIRPATH)
72 #endif
73 #endif
74 #if OSMajorVersion > 3
75 #define TermcapLibrary          -lcurses
76 #endif
77 #if OSMajorVersion >= 3
78 #define HasMkstemp              YES
79 #endif
80 #endif
81
82 /*
83  * C++ compiler setup.  This file knows what options to use with the
84  * DEC C++ compiler, and may learn about other compilers in the future.
85  * 
86  * For DEC C++, define HasDECCplusplus to YES in site.def.  
87  *
88  * For g++ 2.6.x, define HasGcc2ForCplusplus to YES in site.def.
89  *
90  * For other compilers, define HasCplusplus to YES in site.def, and 
91  *    check to see if you need to provide values for CplusplusOptions
92  *    and/or DefaultCplusplusOptions.
93  *
94  * In any case, you may also need to set CplusplusDependIncludes.
95  *
96  * Note: For DEC C++, the -call_shared option really only needs to 
97  * appear when linking C++ executables, not when actually compiling
98  * the C++ sources.  But since there's no imake variable that lets
99  * us insert flags only into the C++ link stage, we use -call_shared
100  * on all compilations when building executables.  This could be 
101  * considered a deficiency in the current imake configuration
102  */
103
104 #if HasDECCplusplus
105 #ifndef HasCplusplus 
106 #define HasCplusplus YES
107 #endif
108 #ifndef CplusplusCmd
109 #define CplusplusCmd /usr/bin/cxx
110 #endif
111 #ifndef CplusplusFilt
112 # define CplusplusFilt /usr/bin/demangle
113 #endif
114 #ifndef CplusplusDependIncludes 
115 #define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
116 #endif
117 #ifndef CplusplusLibDir
118 #define CplusplusLibDir /usr/lib/cmplrs/cxx
119 #endif
120 #ifndef CplusplusLibC
121 #define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
122 #endif
123 #ifndef CplusplusOptions
124 #define CplusplusOptions -call_shared
125 #endif
126 #endif /* HasDECCplusplus */
127
128
129 #if HasGcc2ForCplusplus
130 #ifndef CplusplusLibC
131 #define CplusplusLibC `$(CXX) -print-libgcc-file-name`
132 #endif 
133 #endif /* HasGcc2ForCplusplus */
134
135 #ifdef CplusplusLibDir
136 # define SystemBuildLibPath     \
137 /usr/shlib:/usr/ccs/lib:CplusplusLibDir:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
138 #else
139 # define SystemBuildLibPath     \
140 /usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
141 #endif
142
143 #include <osfLib.rules>
144 #define NoRConst                YES
145
146 #ifdef AlphaArchitecture
147 #ifndef HasWChar32
148 #define HasWChar32              YES
149 #endif
150 #define ServerExtraDefines      -D_XSERVER64
151 #define ServerOSDefines         -DDDXTIME
152 #ifndef DefaultCCOptions
153 #define DefaultCCOptions        -std1
154 #endif
155 #ifndef XawI18nDefines
156 #define XawI18nDefines          -DHAS_WCHAR_H
157 #endif
158 #ifndef BuildServer
159 #define BuildServer             NO
160 #endif
161
162 /* For DtHelp's TIFF processing routines. */
163 #define LSBBitOrder             YES
164
165 #define MotifDefines            -DNO_REGCOMP -DNO_REGEX -DSTRINGS_ALIGNED
166 #define DtSvcDefines            -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
167 #define DtSearchDefines         -DI18N_MSG DtSvcDefines
168 #define DtWidgetDefines         DtSearchDefines
169 #define DtPrintDefines          DtSearchDefines
170 #define DtMailDefines           \
171   -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
172
173 #define ArchitectureDefines     -DALPHA_ARCHITECTURE
174 #endif
175
176 #ifdef MipsArchitecture
177 #define DefaultCCOptions        -Xa
178 #define XdecServer YES
179 #define ServerOSDefines -DDDXTIME
180 #define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
181 #define NormalLibObjCompile(options)    ClearmakeOSName                   \
182         $(RM) $@ $*.os \                                                @@\
183         && $(CC) -c options $(CFLAGS) $*.c \                            @@\
184         && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \                       @@\
185         && $(MV) $*.os $@
186 #endif
187
188 #if !HasClearmake
189 #ifndef HasMakefileSafeInclude
190 #define HasMakefileSafeInclude YES
191 #endif
192 #ifndef IncludeMakefile
193 #define IncludeMakefile(file) @@-include file
194 #endif
195 #endif
196
197 #ifndef ManKeywordsTarget
198 #define ManKeywordsTarget(manpath)                                      @@\
199 man_keywords::                                                          @@\
200         catman -M $(DESTDIR)manpath -w
201 #endif
202
203 #define CdeTicDefines   -DHAS_KNL -DHAS_KTAB
204 #define CdeProjectDefines \
205         -DDEC -DMULTIBYTE -DNLS16 \
206         -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion