Fix WANT_IDEA knob.
[dragonfly.git] / secure / lib / libcrypto / opensslconf-i386.h
1 /* opensslconf.h */
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4 /* OpenSSL was configured with the following options: */
5 #ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8 #ifndef OPENSSL_NO_CAMELLIA
9 # define OPENSSL_NO_CAMELLIA
10 #endif
11 #ifndef OPENSSL_NO_CAPIENG
12 # define OPENSSL_NO_CAPIENG
13 #endif
14 #ifndef OPENSSL_NO_CMS
15 # define OPENSSL_NO_CMS
16 #endif
17 #ifndef OPENSSL_NO_GMP
18 # define OPENSSL_NO_GMP
19 #endif
20 #ifndef OPENSSL_NO_IDEA
21 # define OPENSSL_NO_IDEA
22 #endif
23 #ifndef OPENSSL_NO_JPAKE
24 # define OPENSSL_NO_JPAKE
25 #endif
26 #ifndef OPENSSL_NO_KRB5
27 # define OPENSSL_NO_KRB5
28 #endif
29 #ifndef OPENSSL_NO_MDC2
30 # define OPENSSL_NO_MDC2
31 #endif
32 #ifndef OPENSSL_NO_RC5
33 # define OPENSSL_NO_RC5
34 #endif
35 #ifndef OPENSSL_NO_RFC3779
36 # define OPENSSL_NO_RFC3779
37 #endif
38 #ifndef OPENSSL_NO_SEED
39 # define OPENSSL_NO_SEED
40 #endif
41
42 #endif /* OPENSSL_DOING_MAKEDEPEND */
43
44 #ifndef OPENSSL_THREADS
45 # define OPENSSL_THREADS
46 #endif
47 #ifndef OPENSSL_NO_ASM
48 # define OPENSSL_NO_ASM
49 #endif
50 #ifndef OPENSSL_NO_STATIC_ENGINE
51 # define OPENSSL_NO_STATIC_ENGINE
52 #endif
53
54 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
55    asks for it.  This is a transient feature that is provided for those
56    who haven't had the time to do the appropriate changes in their
57    applications.  */
58 #ifdef OPENSSL_ALGORITHM_DEFINES
59 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
60 #  define NO_CAMELLIA
61 # endif
62 # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
63 #  define NO_CAPIENG
64 # endif
65 # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
66 #  define NO_CMS
67 # endif
68 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
69 #  define NO_GMP
70 # endif
71 # if defined(OPENSSL_NO_IDEA) && !(defined(NO_IDEA)
72 #  define NO_IDEA
73 # endif
74 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
75 #  define NO_JPAKE
76 # endif
77 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
78 #  define NO_KRB5
79 # endif
80 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
81 #  define NO_MDC2
82 # endif
83 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
84 #  define NO_RC5
85 # endif
86 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
87 #  define NO_RFC3779
88 # endif
89 # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
90 #  define NO_SEED
91 # endif
92 #endif
93
94 /* crypto/opensslconf.h.in */
95
96 #ifdef OPENSSL_DOING_MAKEDEPEND
97
98 /* Include any symbols here that have to be explicitly set to enable a feature
99  * that should be visible to makedepend.
100  *
101  * [Our "make depend" doesn't actually look at this, we use actual build settings
102  * instead; we want to make it easy to remove subdirectories with disabled algorithms.]
103  */
104
105 #if 0
106 #ifndef OPENSSL_FIPS
107 #define OPENSSL_FIPS
108 #endif
109 #endif
110
111 #endif
112
113 /* Generate 80386 code? */
114 #undef I386_ONLY
115
116 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
117 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
118 #define ENGINESDIR "/usr/lib/engines"
119 #define OPENSSLDIR "/etc/ssl"
120 #endif
121 #endif
122
123 #undef OPENSSL_UNISTD
124 #define OPENSSL_UNISTD <unistd.h>
125
126 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
127
128 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
129 #define IDEA_INT unsigned int
130 #endif
131
132 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
133 #define MD2_INT unsigned int
134 #endif
135
136 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
137 /* I need to put in a mod for the alpha - eay */
138 #define RC2_INT unsigned int
139 #endif
140
141 #if defined(HEADER_RC4_H)
142 #if !defined(RC4_INT)
143 /* using int types make the structure larger but make the code faster
144  * on most boxes I have tested - up to %20 faster. */
145 /*
146  * I don't know what does "most" mean, but declaring "int" is a must on:
147  * - Intel P6 because partial register stalls are very expensive;
148  * - elder Alpha because it lacks byte load/store instructions;
149  */
150 #define RC4_INT unsigned int
151 #endif
152 #if !defined(RC4_CHUNK)
153 /*
154  * This enables code handling data aligned at natural CPU word
155  * boundary. See crypto/rc4/rc4_enc.c for further details.
156  */
157 #undef RC4_CHUNK
158 #endif
159 #endif
160
161 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
162 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
163  * %20 speed up (longs are 8 bytes, int's are 4). */
164 #ifndef DES_LONG
165 #define DES_LONG unsigned long
166 #endif
167 #endif
168
169 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
170 #define CONFIG_HEADER_BN_H
171 #define BN_LLONG
172
173 /* Should we define BN_DIV2W here? */
174
175 /* Only one for the following should be defined */
176 /* The prime number generation stuff may not work when
177  * EIGHT_BIT but I don't care since I've only used this mode
178  * for debuging the bignum libraries */
179 #undef SIXTY_FOUR_BIT_LONG
180 #undef SIXTY_FOUR_BIT
181 #define THIRTY_TWO_BIT
182 #undef SIXTEEN_BIT
183 #undef EIGHT_BIT
184 #endif
185
186 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
187 #define CONFIG_HEADER_RC4_LOCL_H
188 /* if this is defined data[i] is used instead of *data, this is a %20
189  * speedup on x86 */
190 #define RC4_INDEX
191 #endif
192
193 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
194 #define CONFIG_HEADER_BF_LOCL_H
195 #undef BF_PTR
196 #endif /* HEADER_BF_LOCL_H */
197
198 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
199 #define CONFIG_HEADER_DES_LOCL_H
200 #ifndef DES_DEFAULT_OPTIONS
201 /* the following is tweaked from a config script, that is why it is a
202  * protected undef/define */
203 #ifndef DES_PTR
204 #define DES_PTR
205 #endif
206
207 /* This helps C compiler generate the correct code for multiple functional
208  * units.  It reduces register dependancies at the expense of 2 more
209  * registers */
210 #ifndef DES_RISC1
211 #define DES_RISC1
212 #endif
213
214 #ifndef DES_RISC2
215 #undef DES_RISC2
216 #endif
217
218 #if defined(DES_RISC1) && defined(DES_RISC2)
219 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
220 #endif
221
222 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
223  * Very mucy CPU dependant */
224 #ifndef DES_UNROLL
225 #define DES_UNROLL
226 #endif
227
228 /* These default values were supplied by
229  * Peter Gutman <pgut001@cs.auckland.ac.nz>
230  * They are only used if nothing else has been defined */
231 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
232 /* Special defines which change the way the code is built depending on the
233    CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
234    even newer MIPS CPU's, but at the moment one size fits all for
235    optimization options.  Older Sparc's work better with only UNROLL, but
236    there's no way to tell at compile time what it is you're running on */
237  
238 #if defined( sun )              /* Newer Sparc's */
239 #  define DES_PTR
240 #  define DES_RISC1
241 #  define DES_UNROLL
242 #elif defined( __ultrix )       /* Older MIPS */
243 #  define DES_PTR
244 #  define DES_RISC2
245 #  define DES_UNROLL
246 #elif defined( __osf1__ )       /* Alpha */
247 #  define DES_PTR
248 #  define DES_RISC2
249 #elif defined ( _AIX )          /* RS6000 */
250   /* Unknown */
251 #elif defined( __hpux )         /* HP-PA */
252   /* Unknown */
253 #elif defined( __aux )          /* 68K */
254   /* Unknown */
255 #elif defined( __dgux )         /* 88K (but P6 in latest boxes) */
256 #  define DES_UNROLL
257 #elif defined( __sgi )          /* Newer MIPS */
258 #  define DES_PTR
259 #  define DES_RISC2
260 #  define DES_UNROLL
261 #elif defined(i386) || defined(__i386__)        /* x86 boxes, should be gcc */
262 #  define DES_PTR
263 #  define DES_RISC1
264 #  define DES_UNROLL
265 #endif /* Systems-specific speed defines */
266 #endif
267
268 #endif /* DES_DEFAULT_OPTIONS */
269 #endif /* HEADER_DES_LOCL_H */