387 Commits
Author SHA1 Message Date
Brad King be2f791b2d Configure intptr_t and uintptr_t defaults
We define these to 32- or 64-bit signed and unsigned integer types
depending on the pointer size of the target platform.

SVN-Revision: 1634
2009-11-11 09:19:27 -05:00
Tim Kientzle 15caccc310 Probe for cygwin_conv_path in cmake build, for Cygwin 1.7.
SVN-Revision: 1629
2009-11-11 02:50:13 -05:00
Tim Kientzle bafc3c6b7d pkgconfig support from Xavier, plus a couple of missing files added to
the distfile generation.

SVN-Revision: 1614
2009-11-09 00:34:56 -05:00
Tim Kientzle 5eec93b795 Make the __FBSDID() handling more platform-agnostic by using
HAVE_SYS_CDEFS_H to control the inclusion of sys/cdefs.h and
defining a fake __FBSDID() macro if we need one.  In particular,
this deals a lot more gracefully with systems that are not
FreeBSD but use FreeBSD-derived system headers.

See Issue 46 on libarchive.googlecode.com for discussion.
Submitted by:	cpr420

SVN-Revision: 1565
2009-11-01 01:56:20 -05:00
Tim Kientzle 9abb82d5fb Windows build fixes from Bill Hoffman.
SVN-Revision: 1534
2009-10-15 23:54:55 -04:00
Michihiro NAKAJIMA 5dcb6ce884 Add check that int32_t is available, and define it if not.
SVN-Revision: 1519
2009-10-14 06:34:54 -04:00
Charles Wilson b1e75e9c5a Ensure autogen.sh invokes autotools in same order,
and with same arguments, as autoreconf.

SVN-Revision: 1439
2009-09-06 20:17:35 -04:00
Tim Kientzle 3407cbf6a0 Probe for CreateHardLinkW and use it only if it's found.
(Needed for MinGW, which doesn't have new enough Windows
headers to compile calls to CreateHardLinkW.)

SVN-Revision: 1423
2009-09-04 22:41:09 -04:00
Charles Wilson 197cc2d1a2 Refine win32 api checks and usage.
* tar/bsdtar_windows.c: Remove WINVER, _WIN32_WINNT defines.
(wequallen): Remove unused function.
(canHardLinkW): Ditto.
* cpio/cpio_windows.c: Remove WINVER, _WIN32_WINNT defines.
* libarchive/archive_windows.c: Remove WINVER, _WIN32_WINNT defines.
* configure.ac [mingw|cygwin]: Add WINVER and _WIN32_WINNT defines
to config.h. Use new AC_CHECK_STDCALL_FUNC macro to check for
CreateHardLinkA symbol. Don't check for CreateSymbolicLink symbol.
* CMakeLists.txt [WIN32]: Add WINVER and _WIN32_WINNT defines to cache.
Check for CreateHardLinkA symbol, not CreateHardLink. Don't check for
CreateSymbolicLink.
* build/autoconf/check_stdcall_func.m4: New.

SVN-Revision: 1422
2009-09-04 02:11:54 -04:00
Tim Kientzle 342a3394e1 memset() is sufficiently ubiquitous that I don't see a need to test for it.
SVN-Revision: 1378
2009-08-15 22:20:37 -04:00
Tim Kientzle 37b7b5be65 Fix cpio symlink tests on FreeBSD; the link-sensitive ACL routines
weren't being properly configured, which was causing the regular
Posix mode bits to get overwritten.

SVN-Revision: 1357
2009-08-11 11:14:32 -04:00
Tim Kientzle 72f559e73d Prefer the standard CHECK_INCLUDE_FILE() and CHECK_INCLUDE_FILES(),
refactor some of the header checks that rely on other headers.

SVN-Revision: 1352
2009-08-07 00:42:18 -04:00
Tim Kientzle 794a00f4a1 Test whether printf() supports %jd, %ju, %lld, or %llu.
This needs to be implemented in the autoconf machinery
and tar and cpio need to be taught to use it when printing
very large numbers.

SVN-Revision: 1351
2009-08-07 00:01:06 -04:00
Tim Kientzle 97389bb900 Cmake warning fix.
SVN-Revision: 1319
2009-08-02 21:06:56 -04:00
Tim Kientzle 950a18b38c Rework the style of CHECK_FUNCS() to better match
the style of built-in cmake tests:
 * One test per invocation
 * macro name is explicit

Convert some of the tests to CHECK_SYMBOL_EXISTS(),
which further reduces some of the magic within the
old CHECK_FUNCS.  It is now primarily an extended
version of CHECK_FUNCTION_EXISTS that understands the
glibc __stub_ convention for marking functions that
should be treated as nonexistent even though they
do exist in the local library.  I've renamed the
macro to CHECK_FUNCTION_EXISTS_GLIBC to better
reflect this.

SVN-Revision: 1308
2009-08-02 16:00:46 -04:00
Tim Kientzle 606903d748 Another step towards clean Windows builds: libarchive, libarchive_test, and bsdtar_test all build cleanly now under both Visual C++ and MinGW.
SVN-Revision: 1305
2009-08-02 14:34:07 -04:00
Tim Kientzle 4b57c013d7 Conditionalize link, symlink, and lstat support.
SVN-Revision: 1304
2009-08-01 01:30:24 -04:00
Tim Kientzle 8cf8c91050 Add config.h conditional for Windows <io.h>
SVN-Revision: 1278
2009-07-26 03:47:34 -04:00
Charles Wilson 1bc92efa4d Forgot to add file in r1257.
SVN-Revision: 1258
2009-07-21 00:44:16 -04:00
Joerg Sonnenberger 3645b64eea fnmatch(3) is no longer use, so don't check for it.
SVN-Revision: 1142
2009-05-29 02:38:52 -04:00
Tim Kientzle fccf5c27d3 Fix the CMake build on systems that lack a C++ compiler.
libarchive doesn't need C++, so we should be able to build
on systems that don't have a C++ compiler.

SVN-Revision: 1071
2009-05-08 12:50:46 -04:00
Tim Kientzle 97ca03cfce Push the version number in trunk to 2.7.900; trunk is now working towards 2.8.
SVN-Revision: 942
2009-04-08 03:58:41 -04:00
Tim Kientzle 7ba01d7512 2.6.990a
SVN-Revision: 912
2009-04-01 21:39:57 -04:00
Tim Kientzle 0e75be4097 Add a config.h macro for <signal.h>
SVN-Revision: 901
2009-04-01 18:47:11 -04:00
Charles Wilson e148393166 Use a better mechanism to portably find binmode.o
SVN-Revision: 852
2009-03-25 21:59:56 -04:00
Michihiro NAKAJIMA 63985961e6 Catch up with r829.
SVN-Revision: 833
2009-03-22 06:39:08 -04:00
Tim Kientzle 80b5f20fa0 Files that are used by the autoconf build system belong in
the build/autoconf dir.  We may need to further split that
out to separate the files that get generated by autoconf/automake/etc
from the files that are provided by libarchive.

SVN-Revision: 828
2009-03-22 01:58:07 -04:00
Charles Wilson 79cb8e5b99 Issue 15, part 14. Build system
build/m4/la_syslibsearchpath.m4: New.  Allows to automatically
      determine where binmode.o is located, even on cross builds (hopefully).
  configure.ac: specify AC_CONFIG_MACRO_DIR, AC_CANONICAL_HOST, and
      AC_LIBTOOL_WIN32_DLL. Add new AM_CONDITIONALs INC_WINDOWS_FILES and
      INC_CYGWIN_FILES. Use new macro LA_SYS_LIB_SEARCH_PATH to set
      new AC_SUBST, PROG_LDADD_EXTRA, to <some path>/binmode.o on cygwin.
  Makefile.am: Specify ACLOCAL_AMFLAGS. Use INC_WINDOWS_FILES and
      INC_CYGWIN_FILES where appropriate. Update all *_EXTRA_DIST variables
      with new files. Add -DLIBARCHIVE_STATIC to all *_test_CPPFLAGS. Add
      or update existing ${APP}_LDADD to specify @PROG_LDADD_EXTRA@ (this
      enables to link apps with binmode.o on cygwin).

Works on cygwin (ac-2.63, am-1.10.1, libtool-2.2.7a). Passes all tests.
Works on linux (ac-2.61, am-1.10, libtool-1.5.22). Passes all tests.

 Makefile.am                     |   75 +++++++++++++++++++++++++++++++----
 build/m4/la_syslibsearchpath.m4 |   84 ++++++++++++++++++++++++++++++++++++++++
 configure.ac                    |   34 ++++++++++++++++

SVN-Revision: 827
2009-03-21 10:25:50 -04:00
Michihiro NAKAJIMA 1b7e93f0d6 Catch up with r819 for cmake.
SVN-Revision: 821
2009-03-20 05:14:13 -04:00
Michihiro NAKAJIMA 5dd8d2e265 Improve cmake detecting a function on linux.
The GNU C library defines stub functions(chflags, fchflags..),
and so cmake detecting the function process found out that
stub function. This commit avoid detecting the stub function.

SVN-Revision: 812
2009-03-19 18:21:35 -04:00
Michihiro NAKAJIMA 19a8ead18b Add checking if _FILE_OFFSET_BITS macro needed for large files.
SVN-Revision: 810
2009-03-19 05:28:53 -04:00
Michihiro NAKAJIMA 7aeacd63d5 Eliminate building error on Ubuntu.
SVN-Revision: 808
2009-03-19 01:40:58 -04:00
Michihiro NAKAJIMA 75ba077d94 Back out r786 except cheking __CYGWIN__ macro.
SVN-Revision: 805
2009-03-19 00:00:51 -04:00
Michihiro NAKAJIMA 525697361c Move _WIN32_WINNT macro to build/cmake/config.h.in
SVN-Revision: 786
2009-03-17 21:54:17 -04:00
Tim Kientzle 80bdb4b402 Mark this as 2.6.901a - as of this point, FreeBSD-CURRENT is in sync with
libarchive.googlecode.com (except for the xz/lzma support).

SVN-Revision: 745
2009-03-07 23:31:24 -05:00
Tim Kientzle ee50ecdf20 Move the version number stamp file and the release.sh/autogen.sh scripts
out of the root directory and into the 'build' directory.

SVN-Revision: 613
2009-02-14 03:13:15 -05:00
Tim Kientzle 23c96a2480 Clean up the top level a bit by moving the auxiliary cmake files down into
build/cmake and the windows build files down into build/windows.
I intend to do the same with the autoconf files, but that will
require a little more creativity.

SVN-Revision: 610
2009-02-13 19:03:30 -05:00