OpenBSD.cf: don't include xorg.cf (leftover)
[oweals/cde.git] / cde / config / cf / FreeBSD.cf
1 XCOMM platform:  $TOG: FreeBSD.cf /main/21 1997/10/05 20:42:34 kaleb $
2
3 #ifndef OSName
4 #define OSName                  DefaultOSName
5 #endif
6 #ifndef OSVendor
7 #define OSVendor                FreeBSD Foundation
8 #endif
9 #ifndef OSMajorVersion
10 #define OSMajorVersion          DefaultOSMajorVersion
11 #endif
12 #ifndef OSMinorVersion
13 #define OSMinorVersion          DefaultOSMinorVersion
14 #endif
15 #ifndef OSTeenyVersion
16 #define OSTeenyVersion          DefaultOSTeenyVersion
17 #endif
18 XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
19
20 #define HasPutenv               YES
21 #define HasBSD44Sockets         YES
22 #define HasZlib                 YES
23
24 #if OSMajorVersion >= 5
25 #define CppCmd                  /usr/bin/cpp -traditional
26 #define PreProcessCmd           /usr/bin/cpp -traditional
27 #else
28 #define CppCmd                  /usr/libexec/cpp -traditional
29 #define PreProcessCmd           /usr/libexec/cpp -traditional
30 #endif
31 #undef  InstallCmd
32 #define InstallCmd              /usr/bin/install
33 #undef  KornShell
34 #define KornShell               /usr/local/bin/ksh93
35
36 #define UseGas                  YES
37 #ifndef GccUsesGas
38 # define GccUsesGas             YES
39 #endif
40
41 #ifndef AsmDefines
42 #  define AsmDefines            -DUSE_GAS
43 #endif
44
45 #if GccUsesGas
46 # define GccGasOption           -DGCCUSESGAS
47 #else
48 # define GccGasOption           /**/
49 #endif
50
51 #ifndef HasGcc2
52 # define HasGcc2                YES
53 #endif
54
55 /* For DtHelp TIFF processing routines. */
56 #ifdef AMD64Architecture
57 #define LSBBitOrder             YES
58 #endif
59
60 #ifdef ARMArchitecture
61 #define LSBBitOrder             YES
62 #endif
63
64 #ifdef i386Architecture
65 #define LSBBitOrder             YES
66 #endif
67
68 #define MkdirHierCmd            mkdir -p
69
70 #define CcCmd gcc
71 #ifndef DefaultCCOptions
72 #define DefaultCCOptions        -pipe
73 #endif
74
75 #define CplusplusLibC           -lstdc++
76
77 #if OSMajorVersion > 1
78 #define ServerOSDefines         XFree86ServerOSDefines -DDDXTIME
79 #define XawI18nDefines          -DUSE_XWCHAR_STRING
80 #define HasMakefileSafeInclude  YES
81 #define IncludeMakefile(file)   @@# dependencies are in .depend
82 #define DependFileName          .depend
83 #if OSMajorVersion < 3
84 #if OSMinorVersion < 2
85 #ifndef ExtraLibraries
86 #define ExtraLibraries          -lgnumalloc
87 #endif
88 #else
89 #if OSTeenyVersion == 2
90 #define HasSetUserContext       YES
91 #endif
92 #endif
93 #ifndef ExtraLoadFlags
94 /* 
95  * This doesn't work the way it does on every other system. On FreeBSD it's
96  * only a "hint, not a demand", whatever that means. Note that this is not 
97  * what it says in the ld and ld.so man pages, which are rather vague on the
98  * matter.
99  *
100  * But we do know that if a) you do what the X Project team does and set your 
101  * ProjectRoot to something like "/X11", and b) you have other X libraries, 
102  * e.g. in /usr/X11R6/lib, and you have added /usr/X11R6/lib to your 
103  * ld.so.cache with ldconfig, then any programs linked with this "hint" will
104  * find that ld.so ignores the "hint" at runtime and loads the libraries in 
105  * the ld.so.cache, i.e.the wrong ones, instead! Empirically we find that
106  * the run-path is only used as a last resort to find the libraries, after
107  * the LD_LIBRARY_PATH and ld.so.cache.
108  *
109  * N. B. to FreeBSD users who are not familiar with the semantics of the run-
110  * path on other systems. The run-path is akin to a per-program ld.so.cache. 
111  * If a program is linked with a run-path, that run-path should take 
112  * precedence over _everything_ else! In my opinion ldconfig and the 
113  * ld.so.cache should be deprecated immediately now that FreeBSD has run-
114  * paths. Any program that needs libraries that are outside the "well known" 
115  * locations should be linked with a run-path.
116  *
117  * All of which begs the question: If this option doesn't work in any useful
118  * way, why did they (FreeBSD) bother to add it? It would be nice if FreeBSD
119  * would fix ld.so so that run-paths are truly useful.
120  *
121  * Using run-paths is added with the intent that vendors who ship X for 
122  * FreeBSD should use it too. Once everyone uses it then there will be no 
123  * reason for FreeBSD to assume that it knows where X libraries are installed 
124  * and they can remove it from the list of directories they add to ld.so.cache 
125  * in their /etc/rc file.
126  */
127 #define ExtraLoadFlags          -Wl,-R,$(USRLIBDIRPATH)
128 #endif
129 #endif
130 #else
131 #define ServerOSDefines         XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
132 #define XawI18nDefines          -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
133 #ifndef ExtraLibraries
134 #define ExtraLibraries          /* -lmalloc */
135 #endif
136 #endif
137
138 /* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
139 #ifndef DefaultGcc2i386Opt
140 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
141 #define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
142 #endif
143 #endif
144
145 #ifdef i386Architecture
146 # define OptimizedCDebugFlags DefaultGcc2i386Opt
147 #else
148 # define OptimizedCDebugFlags -O2 -fno-strict-aliasing
149 #endif
150
151 #ifdef HasGcc2
152 CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
153                     2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
154 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
155 #endif
156
157 #define ServerExtraDefines      GccGasOption XFree86ServerDefines
158
159 #define StandardDefines         -DCSRG_BASED
160 #define StandardIncludes        -I/usr/local/include
161 #define BuildLibPathVar         LD_LIBRARY_PATH
162
163 #define DefaultUserPath         /bin:/usr/bin:/usr/local/bin:$(BINDIR)
164 #define DefaultSystemPath       /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
165
166 #define TroffCmd                groff -Tps
167 #define SetTtyGroup             YES
168 #define HasNdbm                 YES
169 #define HasShm                  YES
170 #define HasWChar32              YES
171
172 #define HasLibCrypt             YES
173
174 #define AvoidNullMakeCommand    YES
175
176 #define HasPlugin               YES
177 #define VendorHasX11R6_3libXext YES     /* XC or XFree86 3.3.1 */
178
179 #define CDESharedRev            2
180
181 #include <bsdLib.rules>