summaryrefslogtreecommitdiffstats
path: root/src/config/site.def
blob: 100b152aa34de855c0d8bec8c14b906e8cb1cc28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/**/# $Source$
/**/# $Author$
/**/# $Id$
/**/#

/**/# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

/*****************************************************************************
 *                                                                           *
 *			   SITE-SPECIFIC DEFINITIONS                         *
 *                                                                           *
 * Override any of the defaults in *.tmpl here.                              *
 *                                                                           *
 *                                                                           *
 * Make sure you check the following parameters:                             *
 *                                                                           *
 *     1.  HasLargeTmp                                                       *
 *     2.  All the manpage locations & suffixes                              *
 *     3.  All the binary install locations                                  *
 *                                                                           *
 * Note on using DESTDIR:  If you want to install into a scratch directory   *
 * but will eventually move the tree back to the root, compile with DESTDIR  *
 * blank and install with "make install DESTDIR=directory".                  *
 *                                                                           *
 *****************************************************************************/


/* General */
#define InstKmemFlag	-g kmem -m 2755
#define StripInstalledPrograms	YES
#define InstUidFlags	-o root -m 4755

/*
 * SET THESE PARAMETERS FIRST !!!
 */

/*
 * 1.  HasLargeTmp - if your /tmp space is less than a 1meg, you should
 * probably set this to NO
 */
#ifndef HasLargeTmp
#define HasLargeTmp YES
#endif

/*
 * 2. Man page locations & suffixes.
 */
/* AdminManSuffix: man page suffix for administrative programs */
#ifndef AdminManSuffix
#define AdminManSuffix 8
#endif
/* AdminMandir: manual page directory for administrative man pages */
#ifndef AdminMandir
#define AdminMandir $(KRB5ROOT)/man/man$(ADMIN_MANSUFFIX)
#endif

/* ServerManSuffix: man page suffix for server programs */
#ifndef ServerManSuffix
#define ServerManSuffix 8
#endif
/* ServerMandir: manual page directory for server man pages */
#ifndef ServerMandir
#define ServerMandir $(KRB5ROOT)/man/man$(SERVER_MANSUFFIX)
#endif

/* ClientManSuffix: man page suffix for client programs */
#ifndef ClientManSuffix
#define ClientManSuffix 1
#endif
/* ClientMandir: manual page directory for client man pages */
#ifndef ClientMandir
#define ClientMandir $(KRB5ROOT)/man/man$(CLIENT_MANSUFFIX)
#endif

/* FileManSuffix: man page suffix for files */
#ifndef FileManSuffix
#define FileManSuffix 5
#endif
/* FileMandir: manual page directory for file man pages */
#ifndef FileMandir
#define FileMandir $(KRB5ROOT)/man/man$(FILE_MANSUFFIX)
#endif

/*
 * 3. Binary program install areas.
 */
/* AdminBindir: binary install directory for administrative programs */
#ifndef AdminBindir
#define AdminBindir $(KRB5ROOT)/admin
#endif

/* ServerBindir: binary install directory for server programs */
#ifndef ServerBindir
#define ServerBindir $(KRB5ROOT)/sbin
#endif

/* ClientBindir: binary install directory for client programs */
#ifndef ClientBindir
#define ClientBindir $(KRB5ROOT)/bin
#endif

/* Libdir: install directory for kerberos libraries */
#ifndef Krb5Libdir
#define	Krb5Libdir $(KRB5ROOT)/lib
#endif

#ifndef Krb5Incdir
#define	Krb5Incdir $(KRB5ROOT)/include
#endif
/*****************************************************************************
 *                                                                           *
 *			       Build Parameters                              *
 *                                                                           *
 *****************************************************************************/

/*
 * If you want to use GCC, set HasGcc in the appropriate .cf files.
 */
#ifndef HasGcc
#define HasGcc NO
#endif

#ifdef SunArchitecture
#define	CcCmd cc -pipe
#endif

/*
 * If you want to use VPATH to do makefile building, set it here.
 */
#undef Use_VPATH

/* The -Z flag is a special loader flag at Athena to unmap page zero on
   some architectures that normally allow p0 references, e.g. VAX BSD.

   -T0x400000 has a similar effect on AIX 1.2

   Symbolic debugging is difficult on RT and PS/2 when this option is used. */
#if defined(AIXArchitecture) && OSMajorVersion == 1
#define	ExtraLoadFlags -T0x400000
#else
#if !defined(UltrixArchitecture) && !defined(AIXArchitecture) && !defined(SunArchitecture) && !defined(LinuxArchitecture)
#define ExtraLoadFlags -Z
#endif
#endif

/* With gcc, use -g -O.  Otherwise use the default (-O). */
#if !defined(DefaultCDebugFlags) && HasGcc
#define DefaultCDebugFlags OptimizedCDebugFlags DebuggableCDebugFlags
#endif

/* If you have the Hesiod software and libraries installed, and want to
   use it in some application programs, then turn these on.  If they're
   not turned on, they are left empty in Project.tmpl */
#define HesiodDefines -DHESIOD
#define HesiodLibs /usr/athena/lib/libhesiod.a
#define HesiodIncludes -I/usr/athena/include

#if 0
/* not yet in use, but maybe someday... */
/* If you have the Zephyr software and libraries installed, and want to
   use it in some application programs, then turn these on.  If they're
   not turned on, they are left empty in Project.tmpl.

   NOTE:  You must have Kerberos v4 in order to use Zephyr.
 */
#define ZephyrDefines -DZEPHYR
#define ZephyrLibs -lzephyr
#endif

#ifndef PS2Architecture
/* define IsodeLib to be what you pass to the loader to find the ISODE
   library.  This might want to be -lisode if you have it installed.
   IsodeDir is put into the 'make' variable ISODE. */

/* Work around bug in gld; it doesn't like the at-sign in @sys */

#define IsodeDir /mit/isode/isode-7.0
#define IsodeLib -L/mit/isode/isode-7.0/gld-bug-sys/lib -lisode
#define IsodeIncls /mit/isode/isode-7.0/gld-bug-sys/include

/*
 * #define ISODE 7 only if you are using ISODE 7.0 or later.
 */
#define ISODE7

/* Re-define PepsyCmd if pepsy isn't in your search path. */

#define PepsyCmd IsodeDir/@sys/bin/pepsy
#endif

/* #define UseImakeInstalled -- turn on if you have imake installed */
/* #define UseMakedependInstalled -- turn on if you have makedepend installed */
#define Krb4ApplCompat /* turn this on if you want selected applications to
			  work with both v4 & v5 code */
#define Krb4KDCCompat /* turn this on if you want the KDC to provide v4
			 tickets from a v5 database */
/* #define Krb4Includes <empty>	-- If you don't want to use our copy of the
   				   Kerberos V4 include files, set this to
				   an empty name, by using the /**/
/* 				   trick */
/* #define Krb4LibList -lquux  -- If -lkrb -ldes is NOT the right thing
   				  to get V4 libraries, define it here
				  to something else */

#define Krb4LibList /usr/athena/lib/libkrb.a $(KLIBLOC) -l$(DES425LIB)
#define Krb4KdbList /usr/athena/lib/libkdb.a

/* the following might want to be put into a specific architecture
   definition file */

/* #define HasVfprintf -- turn on if you have vfprintf/vsprintf in libc
   			  (might want to be in the architecture-specific
			   configuration file) */
/* #define HasVsyslog -- turn on if you have vsyslog in libc
   			  (might want to be in the architecture-specific
			   configuration file) */
/* #define HasStrdup -- turn on if you have strdup() in libc
   			  (might want to be in the architecture-specific
			   configuration file) */

/* If you have the Hash library it will enable the GSSAPI validation code.
   It will make the GSSAPI library more robust, but it is not strictly 
   necessary. */
#define HasHashLibrary NO

#if 0
/* alternate library search paths, if needed for some system libraries */
#define LdLibLocations -L/usr/athena/lib
#endif

/* additional include paths, if needed, such as those needed
   to get special include files, like <ss/ss.h> or <com_err.h>,
   or Kerberos V4 include files */
#ifdef notdef
#define	StandardIncludes -I/usr/athena/include
#endif

#if defined(AIXArchitecture) && OSMajorVersion == 3
#define	StandardDefines	-D_ALL_SOURCE
/* For all its flaws, gmake has one advantage over AIX make: it supports
   VPATH in the way the Kerberos config files want.   WARNING: if you combine
   RCS and VPATH with gmake will will probably lose.  */
#define MakeCmd gmake
.SUFFIXES:
.SUFFIXES: .et .c .h .o

#undef LdLibLocations
#define LdLibLocations -L/usr/athena/lib/shared -L/mit/krb5/rsaix/lib/shared
#endif

#define	AthenaEnv YES		/* Define this if you are in the
				   athena environment.
				   No one else should define this.  */

/* Define this if you are building for multiple architectures or operating
   systems.  This tells the build where to look for the sources.  */
#ifndef UseInstalled
/* #define SourceTop /u1/krb5/sandbox/build */
#endif

#if defined(VaxArchitecture) || defined(RtArchitecture)
#if HasGcc
#ifdef SourceTop
#define	STDCTopIncludes	-I$(SRCTOP)/include/stdc-incl
#else
#define	STDCTopIncludes	-I$(TOP)/include/stdc-incl
#endif
#endif /* HasGcc */
#endif


#if defined(VaxArchitecture) && defined(UltrixArchitecture)
#undef STDCTopIncludes
#undef CcCmd
#define CcCmd gcc -pedantic -pipe -Wall -fpcc-struct-return
#define	OptimizedCDebugFlags -O3
#define DefaultCDebugFlags OptimizedCDebugFlags -g
#endif