Fixes for OpenBSD
[oweals/cde.git] / cde / config / cf / site.def
1 XCOMM site:  $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
2
3 /***************************************************************************
4  *                                                                         *
5  *                X Consortium In-House Build Parameters                   *
6  *                      Use at Your Own Risk                               *
7  *                                                                         *
8  ***************************************************************************/
9
10 #ifndef SiteIConfigFiles
11 # define SiteIConfigFiles $(IRULESRC)/host.def
12 # define LocalConfigFiles host.def
13 #endif
14
15 #ifdef BeforeVendorCF
16
17 # define LocalThreadsDefines
18
19 # include <host.def>
20
21 /* CDE uses a .C suffix for C++ source, not the default .cxx */
22 # define CCsuf                  C
23
24 /* We will import x11 and Motif. */
25 # define ImportX11              YES
26 # define ImportMotif            YES
27
28 # ifndef TopLevelProject
29 #  define TopLevelProject       cde
30 # endif
31
32 /* On systems where cpp doesn't expand correctly macros in include directives
33  * the two following macros need to be defined directly (accordingly to the
34  * TopLevelProject macro defined above).
35  */
36 # if defined(SunArchitecture) || defined(AIXArchitecture)
37 #  ifndef ProjectRulesFile
38 #   define ProjectRulesFile     <cde.rules>
39 #  endif
40 #  ifndef ProjectTmplFile
41 #   define ProjectTmplFile      <cde.tmpl>
42 #  endif
43 # endif
44
45 # ifdef HPArchitecture
46 #  define HasHPCplusplus        YES
47 # endif
48
49 # if defined(SGIArchitecture)
50 #  define MipsN32Architecture   YES
51 # endif
52
53 # if defined(SunArchitecture)
54 #  ifndef HasSunC
55 #   define HasSunC              NO
56 #  endif
57 #  ifndef HasSunCplusplus
58 #   define HasSunCplusplus      HasSunC
59 #  endif
60 #  ifndef HasGcc2
61 #   if HasSunC
62 #    define HasGcc2             NO
63 #   else
64 #    define HasGcc2             YES
65 #   endif
66 #  endif
67 #  ifndef HasGcc2ForCplusplus
68 #   define HasGcc2ForCplusplus  HasGcc2
69 #  endif
70 # endif
71
72 # if defined(AIXArchitecture)
73 #  define HasCplusplus          YES
74 # endif
75
76 #endif /* BeforeVendorCF */
77
78 #ifdef AfterVendorCF
79
80 #ifndef X11ProjectRoot
81 # if defined(LinuxArchitecture)
82 #  define X11ProjectRoot        /usr
83 # elif defined(FreeBSDArchitecture)
84 #  define X11ProjectRoot        /usr/local
85 # elif defined(SunArchitecture)
86 #  define X11ProjectRoot        /usr
87 # elif defined(OpenBSDArchitecture)
88 #  define X11ProjectRoot        /usr/X11R6
89 # elif defined(NetBSDArchitecture)
90 #  define X11ProjectRoot        /usr/X11R7
91 # else
92 #  define X11ProjectRoot        /X11
93 # endif
94 #endif
95
96 #ifndef MotifProjectRoot
97 # if defined(FreeBSDArchitecture)
98 #  define MotifProjectRoot      /usr/local
99 # elif defined(OpenBSDArchitecture)
100 #  define MotifProjectRoot      /usr/local
101 # elif defined(NetBSDArchitecture)
102 #  define MotifProjectRoot      /usr/pkg
103 # elif defined(SunArchitecture)
104 #  define MotifProjectRoot      /usr/X11
105 # endif
106 #endif
107
108 #ifndef ProjectRoot
109 # define ProjectRoot    /usr/dt
110 #endif
111
112 XCOMM build the DtXinerama support
113 #define CDE_USEXINERAMA         YES
114
115 #ifdef SunArchitecture
116 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
117 #endif
118
119 XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
120 XCOMM  or building non-C locales will cause build failures.
121 #if defined(BSDArchitecture)
122 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
123 #endif
124
125 #if defined(LinuxArchitecture)
126 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 en_US.UTF-8 
127 # define UTF8_NLS_SUPPORT
128 #endif
129
130 #ifdef SunArchitecture
131 #define HasCodeCenter        YES
132 #define HasTestCenter        YES
133 #ifdef SparcArchitecture
134 #define HasPurify        YES
135 #endif
136 #endif
137
138 #ifdef HPArchitecture
139 #define HasPurify        YES
140 #endif
141
142 #ifdef __hp9000s800
143 #define HasCodeCenter        YES
144 #define HasTestCenter        YES
145 #endif
146
147 #ifdef SGIArchitecture
148 #if OSMajorVersion > 5
149 #define HasPurify        YES
150 #endif
151 #endif
152
153 XCOMM define DtDocLocalesToBuild to be the same as DtLocalesToBuild if undefined
154 #ifndef DtDocLocalesToBuild
155 # define DtDocLocalesToBuild DtLocalesToBuild
156 #endif
157
158 #endif /* AfterVendorCF */