Andres Mejia [Fri, 8 Feb 2013 20:00:05 +0000 (15:00 -0500)]
Change crypto checks, find necessary library before corresponding checks are done.
LIBS are set back to original value if all crypto checks for that implementation
fail.
Andres Mejia [Tue, 5 Feb 2013 22:51:15 +0000 (17:51 -0500)]
Provide better check for when libpcreposix is to be used for regex support.
On Windows, if the static libraries for PCRE are to be used and the PCRE static libs were built
using the mingw toolchain, libgcc must also be linked for resolving the symbol ___chkstk_ms.
Dave Reisner [Fri, 6 Jul 2012 03:31:49 +0000 (23:31 -0400)]
build-sys: install all library manpages
A number of manpages were curiously omitted from the installation
process, but are referred to in installed manpages. To avoid developers
spontaneously combusting, ship all available manpages.
Andres Mejia [Mon, 4 Feb 2013 03:05:34 +0000 (22:05 -0500)]
Fix crypto check failures on Windows.
Checks will now be similar to checks done with autotools, where all defines are passed into a source file
along with the append source code to be checked. Also, once a library that support a crypto function is
found, all other checks for that crypto function will be skipped.
Andres Mejia [Fri, 1 Feb 2013 21:52:19 +0000 (16:52 -0500)]
Modify CHECK_C_SOURCE_* checks to fix builds using Visual Studio 12.
This is needed to fix build failures using Visual Studio 12 and using libraries such as liblzma which
have been built without the "/SAFESEH" linker flag (which is the usual case for libraries built using
the mingw toolchain).
Andres Mejia [Fri, 1 Feb 2013 00:20:34 +0000 (19:20 -0500)]
Add CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio builds.
Visual Studio 12 enables this option by default. Enabling /SAFESEH will produce build failures when
attempting to link other libraries which were not built with /SAFESEH. This would typically be
the case for libraries built using the mingw toolchain, where the option to use structured exception
handling is not yet available.
The option is used as follows.
Setting to "YES" sets "/SAFESEH" linker flag
Setting to "NO" sets "/SAFESEH:NO" linker flag
Setting to any other value such as "AUTO" won't do anything (set the default linker flag from Visual Studio)
Andres Mejia [Thu, 31 Jan 2013 23:39:39 +0000 (18:39 -0500)]
Support POSIX regular expression support using PCRE in CMake builds.
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
Andres Mejia [Sat, 26 Jan 2013 03:43:17 +0000 (22:43 -0500)]
Fix build failure when doing normal builds.
These are builds done running a standard './configure && make'. This
will also fix a corner case where the whence is set to anything other than
SEEK_SET, SEEK_CUR, or SEEK_END. The behavior is to use SEEK_SET by default.
Andres Mejia [Sat, 26 Jan 2013 01:57:48 +0000 (20:57 -0500)]
Fix broken RAR seek support.
Using SEEK_CUR or SEEK_END produced the wrong results, SEEK_SET was
fine however. Note that archive_read_data() doesn't function exactly
as POSIX read. Currently, downstreams will have to check the current
file position after after call to archive_read_data() if they are
to use SEEK_CUR afterwards.
Benoît Amiaux [Thu, 3 Jan 2013 18:12:00 +0000 (19:12 +0100)]
Fix test_read_append_filter_program
canGzip() tests for "gzip -d" then try to use gunzip.
On some systems, gzip is available while gunzip is not.
Use gzip -d as this is what we are looking for
Andres Mejia [Sun, 9 Dec 2012 18:12:01 +0000 (13:12 -0500)]
Separate code to set formats/filters into different source files.
This needs close_filters and free_filters to be globally available
as global symbols __archive_read_close_filters and
__archive_read_free_filters.