Add a helper to compile & install OpenSSL (MSys)
[msysgit.git] / lib / gcc-lib / i686-pc-msys / 2.95.3-1 / include / openssl / opensslconf.h
blobcaf3e075dd7e2d9e403e9b962f9c0c3d204ede8d
1 /* opensslconf.h */
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
4 /* OpenSSL was configured with the following options: */
5 #ifdef OPENSSL_ALGORITHM_DEFINES
6 /* no ciphers excluded */
7 #endif
8 #ifdef OPENSSL_THREAD_DEFINES
9 #endif
10 #ifdef OPENSSL_OTHER_DEFINES
11 # ifndef DSO_WIN32
12 # define DSO_WIN32
13 # endif
14 #endif
16 /* crypto/opensslconf.h.in */
18 /* Generate 80386 code? */
19 #define I386_ONLY
21 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
22 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
23 #define OPENSSLDIR "/usr/ssl"
24 #endif
25 #endif
27 #define OPENSSL_UNISTD <unistd.h>
29 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
30 #define IDEA_INT unsigned int
31 #endif
33 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
34 #define MD2_INT unsigned int
35 #endif
37 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
38 /* I need to put in a mod for the alpha - eay */
39 #define RC2_INT unsigned int
40 #endif
42 #if defined(HEADER_RC4_H)
43 #if !defined(RC4_INT)
44 /* using int types make the structure larger but make the code faster
45 * on most boxes I have tested - up to %20 faster. */
47 * I don't know what does "most" mean, but declaring "int" is a must on:
48 * - Intel P6 because partial register stalls are very expensive;
49 * - elder Alpha because it lacks byte load/store instructions;
51 #define RC4_INT unsigned int
52 #endif
53 #if !defined(RC4_CHUNK)
55 * This enables code handling data aligned at natural CPU word
56 * boundary. See crypto/rc4/rc4_enc.c for further details.
58 #undef RC4_CHUNK
59 #endif
60 #endif
62 #if defined(HEADER_DES_H) && !defined(DES_LONG)
63 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
64 * %20 speed up (longs are 8 bytes, int's are 4). */
65 #ifndef DES_LONG
66 #define DES_LONG unsigned long
67 #endif
68 #endif
70 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
71 #define CONFIG_HEADER_BN_H
72 #define BN_LLONG
74 /* Should we define BN_DIV2W here? */
76 /* Only one for the following should be defined */
77 /* The prime number generation stuff may not work when
78 * EIGHT_BIT but I don't care since I've only used this mode
79 * for debuging the bignum libraries */
80 #undef SIXTY_FOUR_BIT_LONG
81 #undef SIXTY_FOUR_BIT
82 #define THIRTY_TWO_BIT
83 #undef SIXTEEN_BIT
84 #undef EIGHT_BIT
85 #endif
87 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
88 #define CONFIG_HEADER_RC4_LOCL_H
89 /* if this is defined data[i] is used instead of *data, this is a %20
90 * speedup on x86 */
91 #define RC4_INDEX
92 #endif
94 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
95 #define CONFIG_HEADER_BF_LOCL_H
96 #undef BF_PTR
97 #endif /* HEADER_BF_LOCL_H */
99 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
100 #define CONFIG_HEADER_DES_LOCL_H
101 #ifndef DES_DEFAULT_OPTIONS
102 /* the following is tweaked from a config script, that is why it is a
103 * protected undef/define */
104 #ifndef DES_PTR
105 #define DES_PTR
106 #endif
108 /* This helps C compiler generate the correct code for multiple functional
109 * units. It reduces register dependancies at the expense of 2 more
110 * registers */
111 #ifndef DES_RISC1
112 #define DES_RISC1
113 #endif
115 #ifndef DES_RISC2
116 #undef DES_RISC2
117 #endif
119 #if defined(DES_RISC1) && defined(DES_RISC2)
120 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
121 #endif
123 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
124 * Very mucy CPU dependant */
125 #ifndef DES_UNROLL
126 #define DES_UNROLL
127 #endif
129 /* These default values were supplied by
130 * Peter Gutman <pgut001@cs.auckland.ac.nz>
131 * They are only used if nothing else has been defined */
132 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
133 /* Special defines which change the way the code is built depending on the
134 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
135 even newer MIPS CPU's, but at the moment one size fits all for
136 optimization options. Older Sparc's work better with only UNROLL, but
137 there's no way to tell at compile time what it is you're running on */
139 #if defined( __sun__ ) /* Newer Sparc's */
140 # define DES_PTR
141 # define DES_RISC1
142 # define DES_UNROLL
143 #elif defined( __ultrix ) /* Older MIPS */
144 # define DES_PTR
145 # define DES_RISC2
146 # define DES_UNROLL
147 #elif defined( __osf1__ ) /* Alpha */
148 # define DES_PTR
149 # define DES_RISC2
150 #elif defined ( _AIX ) /* RS6000 */
151 /* Unknown */
152 #elif defined( __hpux ) /* HP-PA */
153 /* Unknown */
154 #elif defined( __aux ) /* 68K */
155 /* Unknown */
156 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
157 # define DES_UNROLL
158 #elif defined( __sgi ) /* Newer MIPS */
159 # define DES_PTR
160 # define DES_RISC2
161 # define DES_UNROLL
162 #elif defined( __i386__ ) /* x86 boxes, should be gcc */
163 # define DES_PTR
164 # define DES_RISC1
165 # define DES_UNROLL
166 #endif /* Systems-specific speed defines */
167 #endif
169 #endif /* DES_DEFAULT_OPTIONS */
170 #endif /* HEADER_DES_LOCL_H */