]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/bsdi.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / bsdi.cf
1 XCOMM platform:  $XConsortium: bsdi.cf /main/22 1996/09/28 16:09:30 rws $
2 XCOMM platform:  $XFree86: xc/config/cf/bsdi.cf,v 3.23.2.5 1998/02/09 14:33:21 robin Exp $
3
4 #ifndef OSName
5 #define OSName            BSD/OS 2.0
6 #endif
7 #ifndef OSVendor
8 #define OSVendor          BSDI
9 #endif
10 XCOMM operating system:  OSName
11 #ifndef OSMajorVersion
12 #define OSMajorVersion    2
13 #endif
14 #ifndef OSMinorVersion
15 #define OSMinorVersion    0
16 #endif
17
18 #define HasPutenv       YES
19 #define HasBSD44Sockets YES
20
21 XCOMM BSD/OS 2.0 comes with gcc 2.6.3 installed as gcc2 and gcc.
22 XCOMM gcc 1.42 is installed as cc.
23 XCOMM BSD/386 1.1 comes with gcc 2.5.8 installed as gcc2.
24 XCOMM BSD/386 1.0 comes with gcc 1.40 as the only compiler.
25 XCOMM The default is to use gcc2 on release 2.0 and 1.1 and gcc1 on 1.0
26 XCOMM The defaults can be altered by defining "HasGcc2" as YES or NO in
27 XCOMM xf86site.def
28
29 #ifndef HasGcc
30 # define HasGcc                 YES
31 #endif
32 #if OSMajorVersion > 1 || OSMinorVersion >= 1
33 # ifndef HasGcc2
34 #  define HasGcc2               YES
35 # endif
36 #endif
37 #if HasGcc2
38 # ifndef HasGcc2ForCplusplus
39 #  define HasGcc2ForCplusplus   YES
40 # endif
41 # define CcCmd                  gcc2
42 # define OptimizedCDebugFlags   DefaultGcc2i386Opt
43 #else
44 # define CcCmd                  cc
45 # define OptimizedCDebugFlags   -O
46 #endif
47 #define CppCmd          /usr/bin/cpp
48 #define TroffCmd        groff -Tps
49 #define MkdirHierCmd    mkdir -p
50 #define SetTtyGroup     YES
51 #define HasNdbm         YES
52 #define HasWChar32      YES
53 #define DirFailPrefix -
54 #define AvoidNullMakeCommand YES
55 # ifndef GccUsesGas
56 #  define GccUsesGas    YES
57 # endif
58 #if HasGcc
59 #if defined(UseInstalled) && (!defined(XF86LinkKit) || !XF86LinkKit)
60 #define DefaultCCOptions        /**/
61 #else
62 #define DefaultCCOptions        -ansi
63 #endif
64 #endif
65
66 #if GccUsesGas
67 # define GccGasOption -DGCCUSESGAS
68 #else
69 # define GccGasOption /**/
70 #endif
71
72 #define HasShm  YES
73 #define ServerExtraDefines GccGasOption XFree86ServerDefines
74 #define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
75 #define XFree86ConsoleDefines /**/
76 #define AsmDefines -DUSE_GAS
77
78 #define StandardDefines -DCSRG_BASED
79
80 #define InstallCmd /usr/bin/install
81 #define EqnCmd eqn -Tps
82 #define NeqnCmd eqn -Tascii
83           COL = col
84          NEQN = NeqnCmd
85         NROFF = nroff
86
87 #define DefaultUserPath         :/bin:/usr/bin:/usr/local/bin:$(BINDIR)
88 #define DefaultSystemPath       /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
89
90 XCOMM Man pages need to be formatted when installed, so override the default
91 XCOMM imake rules.
92
93 #define ManSuffix       1
94 #define ManSourcePath   $(MANPATH)/cat
95
96 #define InstallManPageLong(file,destdir,dest)                           @@\
97 all:: file.0                                                            @@\
98                                                                         @@\
99 file.0:: file.man                                                       @@\
100         @if [ -f file.man ]; \                                          @@\
101         then \                                                          @@\
102         cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \      @@\
103         cp /tmp/$$$$.man file.0; \                                      @@\
104         $(RM) /tmp/$$$$.man; \                                          @@\
105         fi                                                              @@\
106                                                                         @@\
107 file.man::                                                              @@\
108                                                                         @@\
109 install.man::                                                           @@\
110         MakeDir($(DESTDIR)destdir)                                      @@\
111         -@if [ -f file.0 ]; \                                           @@\
112         then \                                                          @@\
113         $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
114         fi
115
116 #define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
117         InstallManPageLong(file,destdir,dest)
118
119 #define InstallMultipleManSuffix(list,dest,suff)                        @@\
120 install.man::                                                           @@\
121         MakeDir($(DESTDIR)dest)                                         @@\
122         case '${MFLAGS}' in *[i]*) set +e;; esac; \                     @@\
123         for i in list; do \                                             @@\
124           (set -x; \                                                    @@\
125           cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \   @@\
126           $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \  @@\
127           $(RM) /tmp/$$$$.suff); \                                              @@\
128         done
129
130 #define InstallMultipleMan(list,dest)                                   @@\
131         InstallMultipleManSuffix(list,dest,man)
132
133 #define InstallManPageAliases(file,destdir,aliases)                     @@\
134 install.man::                                                           @@\
135         @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
136         for i in aliases; do \                                          @@\
137                 (set -x; \                                              @@\
138                 $(RM) $(DESTDIR)destdir/$$i.0;\                         @@\
139                 (cd $(DESTDIR)destdir; $(LN) file.0 $$i.0);\            @@\
140                 ); \                                                    @@\
141         done
142
143 #define InstallGenManPageAliases(file,destdir,suffix,aliases)           @@\
144         InstallManPageAliases(file,destdir,aliases)
145
146 /*
147  * These seem redundant, but leave them in for now.
148  */
149 #define i386Bsd 1
150 #define i386Bsdi 1
151 #include <xfree86.cf>