Branch oldpackages for 14.07
[14.07/packages.git] / libs / libcrypto++ / patches / 003-autoconf_files.patch
1 --- /dev/null   2009-09-20 12:09:29.503935207 +0200
2 +++ debian/configure.ac 2009-09-20 18:51:50.000000000 +0200
3 @@ -0,0 +1,43 @@
4 +# -*- autoconf -*-
5 +# Process this file with autoconf to produce a configure script.
6 +# Written by Jens Peter Secher <jps@debian.org>.
7 +
8 +AC_INIT([Crypto++], [5.6.0], [libcrypto++@bugs.debian.org])
9 +AC_CONFIG_SRCDIR([cryptlib.h])
10 +AC_CONFIG_HEADERS([cryptopp_config.h])
11 +AC_CONFIG_HEADERS([config.h])
12 +AM_INIT_AUTOMAKE([foreign])
13 +AM_MAINTAINER_MODE
14 +
15 +# Checks for programs.
16 +AC_PROG_CXX
17 +AC_PROG_CC
18 +AC_PROG_LN_S
19 +AC_PROG_LIBTOOL
20 +
21 +# Checks for header files.
22 +AC_HEADER_STDC
23 +AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
24 +
25 +# Checks for typedefs, structures, and compiler characteristics.
26 +AC_HEADER_STDBOOL
27 +AC_C_CONST
28 +AC_C_INLINE
29 +AC_TYPE_SIZE_T
30 +AC_HEADER_TIME
31 +AC_CHECK_TYPES([ptrdiff_t])
32 +AC_C_BIGENDIAN(
33 +       AC_DEFINE(IS_BIG_ENDIAN, [], [Big-endian architecture]),
34 +       AC_DEFINE(IS_LITTLE_ENDIAN, [], [Little-endian architecture]),
35 +       AC_MSG_ERROR([Can't tell endianess of platform]))
36 +
37 +# Checks for library functions.
38 +AC_PROG_GCC_TRADITIONAL
39 +AC_FUNC_MALLOC
40 +AC_FUNC_MEMCMP
41 +AC_FUNC_SELECT_ARGTYPES
42 +AC_TYPE_SIGNAL
43 +AC_CHECK_FUNCS([gethostbyname gettimeofday memmove memset pow select socket])
44 +
45 +AC_CONFIG_FILES([Makefile libcrypto++.pc])
46 +AC_OUTPUT
47 --- /dev/null   2009-09-20 12:09:29.503935207 +0200
48 +++ debian/Makefile.am  2009-09-20 18:51:50.000000000 +0200
49 @@ -0,0 +1,303 @@
50 +## Process this file with automake to produce Makefile.in
51 +# Written by Jens Peter Secher <jps@debian.org>.
52 +
53 +# Build two versions of cryptest, one that uses data files from the
54 +# current working directory, and one that uses data files from
55 +# /usr/share/crypto++.  The former is for running the test suite at
56 +# build time, the latter is included in the package.
57 +
58 +# To test against newest GCC, uncomment the following two lines.
59 +#CXX = /usr/lib/gcc-snapshot/bin/g++
60 +#CXXCPP = /usr/lib/gcc-snapshot/bin/g++
61 +
62 +bin_PROGRAMS = cryptest cryptestcwd
63 +cryptest_CXXFLAGS = -DPACKAGE_DATA_DIR='"/usr/share/crypto++/"'
64 +cryptest_SOURCES = \
65 +       bench.cpp \
66 +       bench2.cpp \
67 +       datatest.cpp \
68 +       dlltest.cpp \
69 +       fipsalgt.cpp \
70 +       regtest.cpp \
71 +       test.cpp \
72 +       validat1.cpp \
73 +       validat2.cpp \
74 +       validat3.cpp
75 +cryptest_LDADD = libcrypto++.la
76 +cryptestcwd_CXXFLAGS = -DPACKAGE_DATA_DIR='""'
77 +cryptestcwd_SOURCES = \
78 +       bench.cpp \
79 +       bench2.cpp \
80 +       datatest.cpp \
81 +       dlltest.cpp \
82 +       fipsalgt.cpp \
83 +       regtest.cpp \
84 +       test.cpp \
85 +       validat1.cpp \
86 +       validat2.cpp \
87 +       validat3.cpp
88 +cryptestcwd_LDADD = libcrypto++.la
89 +
90 +lib_LTLIBRARIES = libcrypto++.la
91 +libcrypto___la_LDFLAGS = -version-info 8:0:0
92 +libcrypto___la_SOURCES = \
93 +       3way.cpp \
94 +       adler32.cpp \
95 +       algebra.cpp \
96 +       algparam.cpp \
97 +       arc4.cpp \
98 +       asn.cpp \
99 +       authenc.cpp \
100 +       base32.cpp \
101 +       base64.cpp \
102 +       basecode.cpp \
103 +       bfinit.cpp \
104 +       blowfish.cpp \
105 +       blumshub.cpp \
106 +       camellia.cpp \
107 +       cast.cpp \
108 +       casts.cpp \
109 +       cbcmac.cpp \
110 +       ccm.cpp \
111 +       channels.cpp \
112 +       cmac.cpp \
113 +       cpu.cpp \
114 +       crc.cpp \
115 +       cryptlib.cpp \
116 +       default.cpp \
117 +       des.cpp \
118 +       dessp.cpp \
119 +       dh2.cpp \
120 +       dh.cpp \
121 +       dll.cpp \
122 +       dsa.cpp \
123 +       eax.cpp \
124 +       ec2n.cpp \
125 +       eccrypto.cpp \
126 +       ecp.cpp \
127 +       elgamal.cpp \
128 +       emsa2.cpp \
129 +       eprecomp.cpp \
130 +       esign.cpp \
131 +       files.cpp \
132 +       filters.cpp \
133 +       fips140.cpp \
134 +       fipstest.cpp \
135 +       gcm.cpp \
136 +       gf2_32.cpp \
137 +       gf256.cpp \
138 +       gf2n.cpp \
139 +       gfpcrypt.cpp \
140 +       gost.cpp \
141 +       gzip.cpp \
142 +       hex.cpp \
143 +       hmac.cpp \
144 +       hrtimer.cpp \
145 +       ida.cpp \
146 +       idea.cpp \
147 +       integer.cpp \
148 +       iterhash.cpp \
149 +       luc.cpp \
150 +       mars.cpp \
151 +       marss.cpp \
152 +       md2.cpp \
153 +       md4.cpp \
154 +       md5.cpp \
155 +       misc.cpp \
156 +       modes.cpp \
157 +       mqueue.cpp \
158 +       mqv.cpp \
159 +       nbtheory.cpp \
160 +       network.cpp \
161 +       oaep.cpp \
162 +       osrng.cpp \
163 +       panama.cpp \
164 +       pch.cpp \
165 +       pkcspad.cpp \
166 +       polynomi.cpp \
167 +       pssr.cpp \
168 +       pubkey.cpp \
169 +       queue.cpp \
170 +       rabin.cpp \
171 +       randpool.cpp \
172 +       rc2.cpp \
173 +       rc5.cpp \
174 +       rc6.cpp \
175 +       rdtables.cpp \
176 +       rijndael.cpp \
177 +       ripemd.cpp \
178 +       rng.cpp \
179 +       rsa.cpp \
180 +       rw.cpp \
181 +       safer.cpp \
182 +       salsa.cpp \
183 +       seal.cpp \
184 +       seed.cpp \
185 +       serpent.cpp \
186 +       shacal2.cpp \
187 +       sha.cpp \
188 +       sharkbox.cpp \
189 +       shark.cpp \
190 +       simple.cpp \
191 +       skipjack.cpp \
192 +       socketft.cpp \
193 +       sosemanuk.cpp \
194 +       square.cpp \
195 +       squaretb.cpp \
196 +       strciphr.cpp \
197 +       tea.cpp \
198 +       tftables.cpp \
199 +       tiger.cpp \
200 +       tigertab.cpp \
201 +       trdlocal.cpp \
202 +       ttmac.cpp \
203 +       twofish.cpp \
204 +       vmac.cpp \
205 +       wait.cpp \
206 +       wake.cpp \
207 +       whrlpool.cpp \
208 +       winpipes.cpp \
209 +       xtr.cpp \
210 +       xtrcrypt.cpp \
211 +       zdeflate.cpp \
212 +       zinflate.cpp \
213 +       zlib.cpp
214 +
215 +pkginclude_HEADERS = \
216 +       3way.h \
217 +       adler32.h \
218 +       aes.h \
219 +       algebra.h \
220 +       algparam.h \
221 +       arc4.h \
222 +       argnames.h \
223 +       asn.h \
224 +       authenc.h \
225 +       base32.h \
226 +       base64.h \
227 +       basecode.h \
228 +       bench.h \
229 +       blowfish.h \
230 +       blumshub.h \
231 +       camellia.h \
232 +       cast.h \
233 +       cbcmac.h \
234 +       ccm.h \
235 +       channels.h \
236 +       cmac.h \
237 +       config.h \
238 +       cpu.h \
239 +       crc.h \
240 +       cryptlib.h \
241 +       default.h \
242 +       des.h \
243 +       dh2.h \
244 +       dh.h \
245 +       dll.h \
246 +       dmac.h \
247 +       dsa.h \
248 +       eax.h \
249 +       ec2n.h \
250 +       eccrypto.h \
251 +       ecp.h \
252 +       elgamal.h \
253 +       emsa2.h \
254 +       eprecomp.h \
255 +       esign.h \
256 +       factory.h \
257 +       files.h \
258 +       filters.h \
259 +       fips140.h \
260 +       fltrimpl.h \
261 +       gcm.h \
262 +       gf2_32.h \
263 +       gf256.h \
264 +       gf2n.h \
265 +       gfpcrypt.h \
266 +       gost.h \
267 +       gzip.h \
268 +       hex.h \
269 +       hmac.h \
270 +       hrtimer.h \
271 +       ida.h \
272 +       idea.h \
273 +       integer.h \
274 +       iterhash.h \
275 +       lubyrack.h \
276 +       luc.h \
277 +       mars.h \
278 +       md2.h \
279 +       md4.h \
280 +       md5.h \
281 +       mdc.h \
282 +       misc.h \
283 +       modarith.h \
284 +       modes.h  \
285 +       modexppc.h \
286 +       mqueue.h \
287 +       mqv.h \
288 +       nbtheory.h \
289 +       network.h \
290 +       nr.h \
291 +       oaep.h \
292 +       oids.h \
293 +       osrng.h \
294 +       panama.h \
295 +       pch.h \
296 +       pkcspad.h \
297 +       polynomi.h \
298 +       pssr.h \
299 +       pubkey.h \
300 +       pwdbased.h \
301 +       queue.h \
302 +       rabin.h \
303 +       randpool.h \
304 +       rc2.h \
305 +       rc5.h \
306 +       rc6.h \
307 +       rijndael.h \
308 +       ripemd.h \
309 +       rng.h \
310 +       rsa.h \
311 +       rw.h \
312 +       safer.h \
313 +       salsa.h \
314 +       seal.h \
315 +       secblock.h \
316 +       seckey.h \
317 +       seed.h \
318 +       serpent.h \
319 +       serpentp.h \
320 +       shacal2.h \
321 +       sha.h \
322 +       shark.h \
323 +       simple.h \
324 +       skipjack.h \
325 +       smartptr.h \
326 +       socketft.h \
327 +       sosemanuk.h \
328 +       square.h \
329 +       stdcpp.h \
330 +       strciphr.h \
331 +       tea.h \
332 +       tiger.h \
333 +       trdlocal.h \
334 +       trunhash.h \
335 +       ttmac.h \
336 +       twofish.h \
337 +       vmac.h \
338 +       wait.h \
339 +       wake.h \
340 +       whrlpool.h \
341 +       winpipes.h \
342 +       words.h \
343 +       xtr.h \
344 +       xtrcrypt.h \
345 +       zdeflate.h \
346 +       zinflate.h \
347 +       zlib.h
348 +
349 +htmldir = $(datadir)/html
350 +
351 +html: $(libcrypto___la_SOURCES)
352 +       doxygen
353 --- /dev/null   2009-09-20 12:09:29.503935207 +0200
354 +++ debian/config.h.in  2009-09-20 18:51:50.000000000 +0200
355 @@ -0,0 +1,452 @@
356 +// Debian note: This is a copy of the original config.h file except for the two
357 +// endianness undefs below; they are substituted by the autoconf process
358 +// according to the build architecture.
359 +
360 +#ifndef CRYPTOPP_CONFIG_H
361 +#define CRYPTOPP_CONFIG_H
362 +
363 +// ***************** Important Settings ********************
364 +
365 +// Endianness
366 +#undef IS_BIG_ENDIAN
367 +#undef IS_LITTLE_ENDIAN
368 +
369 +// define this if you want to disable all OS-dependent features,
370 +// such as sockets and OS-provided random number generators
371 +// #define NO_OS_DEPENDENCE
372 +
373 +// Define this to use features provided by Microsoft's CryptoAPI.
374 +// Currently the only feature used is random number generation.
375 +// This macro will be ignored if NO_OS_DEPENDENCE is defined.
376 +#define USE_MS_CRYPTOAPI
377 +
378 +// Define this to 1 to enforce the requirement in FIPS 186-2 Change Notice 1 that only 1024 bit moduli be used
379 +#ifndef DSA_1024_BIT_MODULUS_ONLY
380 +#      define DSA_1024_BIT_MODULUS_ONLY 1
381 +#endif
382 +
383 +// ***************** Less Important Settings ***************
384 +
385 +// define this to retain (as much as possible) old deprecated function and class names
386 +// #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
387 +
388 +#define GZIP_OS_CODE 0
389 +
390 +// Try this if your CPU has 256K internal cache or a slow multiply instruction
391 +// and you want a (possibly) faster IDEA implementation using log tables
392 +// #define IDEA_LARGECACHE
393 +
394 +// Define this if, for the linear congruential RNG, you want to use
395 +// the original constants as specified in S.K. Park and K.W. Miller's
396 +// CACM paper.
397 +// #define LCRNG_ORIGINAL_NUMBERS
398 +
399 +// choose which style of sockets to wrap (mostly useful for cygwin which has both)
400 +#define PREFER_BERKELEY_STYLE_SOCKETS
401 +// #define PREFER_WINDOWS_STYLE_SOCKETS
402 +
403 +// set the name of Rijndael cipher, was "Rijndael" before version 5.3
404 +#define CRYPTOPP_RIJNDAEL_NAME "AES"
405 +
406 +// ***************** Important Settings Again ********************
407 +// But the defaults should be ok.
408 +
409 +// namespace support is now required
410 +#ifdef NO_NAMESPACE
411 +#      error namespace support is now required
412 +#endif
413 +
414 +// Define this to workaround a Microsoft CryptoAPI bug where
415 +// each call to CryptAcquireContext causes a 100 KB memory leak.
416 +// Defining this will cause Crypto++ to make only one call to CryptAcquireContext.
417 +#define WORKAROUND_MS_BUG_Q258000
418 +
419 +#ifdef CRYPTOPP_DOXYGEN_PROCESSING
420 +// Avoid putting "CryptoPP::" in front of everything in Doxygen output
421 +#      define CryptoPP
422 +#      define NAMESPACE_BEGIN(x)
423 +#      define NAMESPACE_END
424 +// Get Doxygen to generate better documentation for these typedefs
425 +#      define DOCUMENTED_TYPEDEF(x, y) class y : public x {};
426 +#else
427 +#      define NAMESPACE_BEGIN(x) namespace x {
428 +#      define NAMESPACE_END }
429 +#      define DOCUMENTED_TYPEDEF(x, y) typedef x y;
430 +#endif
431 +#define ANONYMOUS_NAMESPACE_BEGIN namespace {
432 +#define USING_NAMESPACE(x) using namespace x;
433 +#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x {
434 +#define DOCUMENTED_NAMESPACE_END }
435 +
436 +// What is the type of the third parameter to bind?
437 +// For Unix, the new standard is ::socklen_t (typically unsigned int), and the old standard is int.
438 +// Unfortunately there is no way to tell whether or not socklen_t is defined.
439 +// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile.
440 +#ifndef TYPE_OF_SOCKLEN_T
441 +#      if defined(_WIN32) || defined(__CYGWIN__)
442 +#              define TYPE_OF_SOCKLEN_T int
443 +#      else
444 +#              define TYPE_OF_SOCKLEN_T ::socklen_t
445 +#      endif
446 +#endif
447 +
448 +#if defined(__CYGWIN__) && defined(PREFER_WINDOWS_STYLE_SOCKETS)
449 +#      define __USE_W32_SOCKETS
450 +#endif
451 +
452 +typedef unsigned char byte;            // put in global namespace to avoid ambiguity with other byte typedefs
453 +
454 +NAMESPACE_BEGIN(CryptoPP)
455 +
456 +typedef unsigned short word16;
457 +typedef unsigned int word32;
458 +
459 +#if defined(_MSC_VER) || defined(__BORLANDC__)
460 +       typedef unsigned __int64 word64;
461 +       #define W64LIT(x) x##ui64
462 +#else
463 +       typedef unsigned long long word64;
464 +       #define W64LIT(x) x##ULL
465 +#endif
466 +
467 +// define large word type, used for file offsets and such
468 +typedef word64 lword;
469 +const lword LWORD_MAX = W64LIT(0xffffffffffffffff);
470 +
471 +#ifdef __GNUC__
472 +       #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
473 +#endif
474 +
475 +// define hword, word, and dword. these are used for multiprecision integer arithmetic
476 +// Intel compiler won't have _umul128 until version 10.0. See http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30231625.aspx
477 +#if (defined(_MSC_VER) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1000) && (defined(_M_X64) || defined(_M_IA64))) || (defined(__DECCXX) && defined(__alpha__)) || (defined(__INTEL_COMPILER) && defined(__x86_64__)) || (defined(__SUNPRO_CC) && defined(__x86_64__))
478 +       typedef word32 hword;
479 +       typedef word64 word;
480 +#else
481 +       #define CRYPTOPP_NATIVE_DWORD_AVAILABLE
482 +       #if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || defined(__x86_64__) || defined(__mips64) || defined(__sparc64__)
483 +               #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !(CRYPTOPP_GCC_VERSION == 40001 && defined(__APPLE__)) && CRYPTOPP_GCC_VERSION >= 30400
484 +                       // GCC 4.0.1 on MacOS X is missing __umodti3 and __udivti3
485 +                       // mode(TI) division broken on amd64 with GCC earlier than GCC 3.4
486 +                       typedef word32 hword;
487 +                       typedef word64 word;
488 +                       typedef __uint128_t dword;
489 +                       typedef __uint128_t word128;
490 +                       #define CRYPTOPP_WORD128_AVAILABLE
491 +               #else
492 +                       // if we're here, it means we're on a 64-bit CPU but we don't have a way to obtain 128-bit multiplication results
493 +                       typedef word16 hword;
494 +                       typedef word32 word;
495 +                       typedef word64 dword;
496 +               #endif
497 +       #else
498 +               // being here means the native register size is probably 32 bits or less
499 +               #define CRYPTOPP_BOOL_SLOW_WORD64 1
500 +               typedef word16 hword;
501 +               typedef word32 word;
502 +               typedef word64 dword;
503 +       #endif
504 +#endif
505 +#ifndef CRYPTOPP_BOOL_SLOW_WORD64
506 +       #define CRYPTOPP_BOOL_SLOW_WORD64 0
507 +#endif
508 +
509 +const unsigned int WORD_SIZE = sizeof(word);
510 +const unsigned int WORD_BITS = WORD_SIZE * 8;
511 +
512 +NAMESPACE_END
513 +
514 +#ifndef CRYPTOPP_L1_CACHE_LINE_SIZE
515 +       // This should be a lower bound on the L1 cache line size. It's used for defense against timing attacks.
516 +       #if defined(_M_X64) || defined(__x86_64__)
517 +               #define CRYPTOPP_L1_CACHE_LINE_SIZE 64
518 +       #else
519 +               // L1 cache line size is 32 on Pentium III and earlier
520 +               #define CRYPTOPP_L1_CACHE_LINE_SIZE 32
521 +       #endif
522 +#endif
523 +
524 +#if defined(_MSC_VER)
525 +       #if _MSC_VER == 1200
526 +               #include <malloc.h>
527 +       #endif
528 +       #if _MSC_VER > 1200 || defined(_mm_free)
529 +               #define CRYPTOPP_MSVC6PP_OR_LATER               // VC 6 processor pack or later
530 +       #else
531 +               #define CRYPTOPP_MSVC6_NO_PP                    // VC 6 without processor pack
532 +       #endif
533 +#endif
534 +
535 +#ifndef CRYPTOPP_ALIGN_DATA
536 +       #if defined(CRYPTOPP_MSVC6PP_OR_LATER)
537 +               #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x))
538 +       #elif defined(__GNUC__)
539 +               #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
540 +       #else
541 +               #define CRYPTOPP_ALIGN_DATA(x)
542 +       #endif
543 +#endif
544 +
545 +#ifndef CRYPTOPP_SECTION_ALIGN16
546 +       #if defined(__GNUC__) && !defined(__APPLE__)
547 +               // the alignment attribute doesn't seem to work without this section attribute when -fdata-sections is turned on
548 +               #define CRYPTOPP_SECTION_ALIGN16 __attribute__((section ("CryptoPP_Align16")))
549 +       #else
550 +               #define CRYPTOPP_SECTION_ALIGN16
551 +       #endif
552 +#endif
553 +
554 +#if defined(_MSC_VER) || defined(__fastcall)
555 +       #define CRYPTOPP_FASTCALL __fastcall
556 +#else
557 +       #define CRYPTOPP_FASTCALL
558 +#endif
559 +
560 +// VC60 workaround: it doesn't allow typename in some places
561 +#if defined(_MSC_VER) && (_MSC_VER < 1300)
562 +#define CPP_TYPENAME
563 +#else
564 +#define CPP_TYPENAME typename
565 +#endif
566 +
567 +// VC60 workaround: can't cast unsigned __int64 to float or double
568 +#if defined(_MSC_VER) && !defined(CRYPTOPP_MSVC6PP_OR_LATER)
569 +#define CRYPTOPP_VC6_INT64 (__int64)
570 +#else
571 +#define CRYPTOPP_VC6_INT64
572 +#endif
573 +
574 +#ifdef _MSC_VER
575 +#define CRYPTOPP_NO_VTABLE __declspec(novtable)
576 +#else
577 +#define CRYPTOPP_NO_VTABLE
578 +#endif
579 +
580 +#ifdef _MSC_VER
581 +       // 4231: nonstandard extension used : 'extern' before template explicit instantiation
582 +       // 4250: dominance
583 +       // 4251: member needs to have dll-interface
584 +       // 4275: base needs to have dll-interface
585 +       // 4660: explicitly instantiating a class that's already implicitly instantiated
586 +       // 4661: no suitable definition provided for explicit template instantiation request
587 +       // 4786: identifer was truncated in debug information
588 +       // 4355: 'this' : used in base member initializer list
589 +       // 4910: '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation
590 +#      pragma warning(disable: 4231 4250 4251 4275 4660 4661 4786 4355 4910)
591 +#endif
592 +
593 +#ifdef __BORLANDC__
594 +// 8037: non-const function called for const object. needed to work around BCB2006 bug
595 +#      pragma warn -8037
596 +#endif
597 +
598 +#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION)
599 +#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
600 +#endif
601 +
602 +#ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
603 +#define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE
604 +#endif
605 +
606 +#ifdef CRYPTOPP_DISABLE_X86ASM         // for backwards compatibility: this macro had both meanings
607 +#define CRYPTOPP_DISABLE_ASM
608 +#define CRYPTOPP_DISABLE_SSE2
609 +#endif
610 +
611 +#if !defined(CRYPTOPP_DISABLE_ASM) && ((defined(_MSC_VER) && defined(_M_IX86)) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))))
612 +       #define CRYPTOPP_X86_ASM_AVAILABLE
613 +
614 +       #if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || CRYPTOPP_GCC_VERSION >= 30300)
615 +               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1
616 +       #else
617 +               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
618 +       #endif
619 +
620 +       // SSSE3 was actually introduced in GNU as 2.17, which was released 6/23/2006, but we can't tell what version of binutils is installed.
621 +       // GCC 4.1.2 was released on 2/13/2007, so we'll use that as a proxy for the binutils version.
622 +       #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102)
623 +               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
624 +       #else
625 +               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
626 +       #endif
627 +#endif
628 +
629 +#if !defined(CRYPTOPP_DISABLE_ASM) && defined(_MSC_VER) && defined(_M_X64)
630 +       #define CRYPTOPP_X64_MASM_AVAILABLE
631 +#endif
632 +
633 +#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__x86_64__)
634 +       #define CRYPTOPP_X64_ASM_AVAILABLE
635 +#endif
636 +
637 +#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__))
638 +       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1
639 +#else
640 +       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0
641 +#endif
642 +
643 +#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)
644 +       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1
645 +#else
646 +       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0
647 +#endif
648 +
649 +// how to allocate 16-byte aligned memory (for SSE2)
650 +#if defined(CRYPTOPP_MSVC6PP_OR_LATER)
651 +       #define CRYPTOPP_MM_MALLOC_AVAILABLE
652 +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
653 +       #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16
654 +#elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__)
655 +       #define CRYPTOPP_MEMALIGN_AVAILABLE
656 +#else
657 +       #define CRYPTOPP_NO_ALIGNED_ALLOC
658 +#endif
659 +
660 +// how to disable inlining
661 +#if defined(_MSC_VER) && _MSC_VER >= 1300
662 +#      define CRYPTOPP_NOINLINE_DOTDOTDOT
663 +#      define CRYPTOPP_NOINLINE __declspec(noinline)
664 +#elif defined(__GNUC__)
665 +#      define CRYPTOPP_NOINLINE_DOTDOTDOT
666 +#      define CRYPTOPP_NOINLINE __attribute__((noinline))
667 +#else
668 +#      define CRYPTOPP_NOINLINE_DOTDOTDOT ...
669 +#      define CRYPTOPP_NOINLINE 
670 +#endif
671 +
672 +// how to declare class constants
673 +#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER)
674 +#      define CRYPTOPP_CONSTANT(x) enum {x};
675 +#else
676 +#      define CRYPTOPP_CONSTANT(x) static const int x;
677 +#endif
678 +
679 +#if defined(_M_X64) || defined(__x86_64__)
680 +       #define CRYPTOPP_BOOL_X64 1
681 +#else
682 +       #define CRYPTOPP_BOOL_X64 0
683 +#endif
684 +
685 +// see http://predef.sourceforge.net/prearch.html
686 +#if defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__)
687 +       #define CRYPTOPP_BOOL_X86 1
688 +#else
689 +       #define CRYPTOPP_BOOL_X86 0
690 +#endif
691 +
692 +#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || defined(__powerpc__)
693 +       #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
694 +#endif
695 +
696 +#define CRYPTOPP_VERSION 560
697 +
698 +// ***************** determine availability of OS features ********************
699 +
700 +#ifndef NO_OS_DEPENDENCE
701 +
702 +#if defined(_WIN32) || defined(__CYGWIN__)
703 +#define CRYPTOPP_WIN32_AVAILABLE
704 +#endif
705 +
706 +#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun)
707 +#define CRYPTOPP_UNIX_AVAILABLE
708 +#endif
709 +
710 +#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
711 +#      define HIGHRES_TIMER_AVAILABLE
712 +#endif
713 +
714 +#ifdef CRYPTOPP_UNIX_AVAILABLE
715 +#      define HAS_BERKELEY_STYLE_SOCKETS
716 +#endif
717 +
718 +#ifdef CRYPTOPP_WIN32_AVAILABLE
719 +#      define HAS_WINDOWS_STYLE_SOCKETS
720 +#endif
721 +
722 +#if defined(HIGHRES_TIMER_AVAILABLE) && (defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(HAS_WINDOWS_STYLE_SOCKETS))
723 +#      define SOCKETS_AVAILABLE
724 +#endif
725 +
726 +#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
727 +#      define USE_WINDOWS_STYLE_SOCKETS
728 +#else
729 +#      define USE_BERKELEY_STYLE_SOCKETS
730 +#endif
731 +
732 +#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
733 +#      define WINDOWS_PIPES_AVAILABLE
734 +#endif
735 +
736 +#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(USE_MS_CRYPTOAPI)
737 +#      define NONBLOCKING_RNG_AVAILABLE
738 +#      define OS_RNG_AVAILABLE
739 +#endif
740 +
741 +#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
742 +#      define NONBLOCKING_RNG_AVAILABLE
743 +#      define BLOCKING_RNG_AVAILABLE
744 +#      define OS_RNG_AVAILABLE
745 +#      define HAS_PTHREADS
746 +#      define THREADS_AVAILABLE
747 +#endif
748 +
749 +#ifdef CRYPTOPP_WIN32_AVAILABLE
750 +#      define HAS_WINTHREADS
751 +#      define THREADS_AVAILABLE
752 +#endif
753 +
754 +#endif // NO_OS_DEPENDENCE
755 +
756 +// ***************** DLL related ********************
757 +
758 +#ifdef CRYPTOPP_WIN32_AVAILABLE
759 +
760 +#ifdef CRYPTOPP_EXPORTS
761 +#define CRYPTOPP_IS_DLL
762 +#define CRYPTOPP_DLL __declspec(dllexport)
763 +#elif defined(CRYPTOPP_IMPORTS)
764 +#define CRYPTOPP_IS_DLL
765 +#define CRYPTOPP_DLL __declspec(dllimport)
766 +#else
767 +#define CRYPTOPP_DLL
768 +#endif
769 +
770 +#define CRYPTOPP_API __cdecl
771 +
772 +#else  // CRYPTOPP_WIN32_AVAILABLE
773 +
774 +#define CRYPTOPP_DLL
775 +#define CRYPTOPP_API
776 +
777 +#endif // CRYPTOPP_WIN32_AVAILABLE
778 +
779 +#if defined(__MWERKS__)
780 +#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL
781 +#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
782 +#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
783 +#else
784 +#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL
785 +#endif
786 +
787 +#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_IMPORTS)
788 +#define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
789 +#else
790 +#define CRYPTOPP_DLL_TEMPLATE_CLASS CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS
791 +#endif
792 +
793 +#if defined(__MWERKS__)
794 +#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class
795 +#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
796 +#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class
797 +#else
798 +#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class
799 +#endif
800 +
801 +#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_EXPORTS)
802 +#define CRYPTOPP_STATIC_TEMPLATE_CLASS template class
803 +#else
804 +#define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS
805 +#endif
806 +
807 +#endif
808 --- /dev/null   2009-09-20 12:09:29.503935207 +0200
809 +++ debian/libcrypto++.pc.in    2009-09-20 18:51:50.000000000 +0200
810 @@ -0,0 +1,12 @@
811 +prefix=@prefix@
812 +exec_prefix=@exec_prefix@
813 +libdir=@libdir@
814 +includedir=@includedir@
815 +
816 +Name: libcrypto++
817 +Description: General purpose cryptographic shared library
818 +URL: http://www.cryptopp.com
819 +Version: @VERSION@
820 +Requires:
821 +Libs: -lcrypto++
822 +Cflags: