libarchive-static 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/Makefile +6 -0
- data/ext/extconf.rb +61 -0
- data/ext/libarchive-0.1.1/COPYING.libarchive +60 -0
- data/ext/libarchive-0.1.1/LICENSE.libbzip2 +42 -0
- data/ext/libarchive-0.1.1/README.txt +143 -0
- data/ext/libarchive-0.1.1/ext/Makefile.in +0 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +31 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_compression.h +6 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_format.c +32 -0
- data/ext/libarchive-0.1.1/ext/archive_read_support_format.h +6 -0
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +29 -0
- data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.h +6 -0
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +32 -0
- data/ext/libarchive-0.1.1/ext/archive_write_set_compression.h +6 -0
- data/ext/libarchive-0.1.1/ext/config.h.in +22 -0
- data/ext/libarchive-0.1.1/ext/configure +3904 -0
- data/ext/libarchive-0.1.1/ext/configure.in +11 -0
- data/ext/libarchive-0.1.1/ext/depend +19 -0
- data/ext/libarchive-0.1.1/ext/extconf.rb +6 -0
- data/ext/libarchive-0.1.1/ext/install-sh +250 -0
- data/ext/libarchive-0.1.1/ext/libarchive.c +89 -0
- data/ext/libarchive-0.1.1/ext/libarchive_archive.c +84 -0
- data/ext/libarchive-0.1.1/ext/libarchive_entry.c +1015 -0
- data/ext/libarchive-0.1.1/ext/libarchive_internal.h +155 -0
- data/ext/libarchive-0.1.1/ext/libarchive_reader.c +328 -0
- data/ext/libarchive-0.1.1/ext/libarchive_win32.h +52 -0
- data/ext/libarchive-0.1.1/ext/libarchive_writer.c +246 -0
- data/ext/libarchive-0.1.1/libarchive.c +1762 -0
- data/ext/libarchive-2.8.4/Makefile.in +7076 -0
- data/ext/libarchive-2.8.4/build/autoconf/check_stdcall_func.m4 +51 -0
- data/ext/libarchive-2.8.4/build/autoconf/compile +143 -0
- data/ext/libarchive-2.8.4/build/autoconf/config.guess +1502 -0
- data/ext/libarchive-2.8.4/build/autoconf/config.sub +1708 -0
- data/ext/libarchive-2.8.4/build/autoconf/depcomp +630 -0
- data/ext/libarchive-2.8.4/build/autoconf/install-sh +291 -0
- data/ext/libarchive-2.8.4/build/autoconf/la_uid_t.m4 +20 -0
- data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +8406 -0
- data/ext/libarchive-2.8.4/build/autoconf/missing +376 -0
- data/ext/libarchive-2.8.4/build/pkgconfig/libarchive.pc.in +10 -0
- data/ext/libarchive-2.8.4/config.h.in +772 -0
- data/ext/libarchive-2.8.4/configure +17916 -0
- data/ext/libarchive-2.8.4/libarchive/archive.h +741 -0
- data/ext/libarchive-2.8.4/libarchive/archive_check_magic.c +134 -0
- data/ext/libarchive-2.8.4/libarchive/archive_crc32.h +66 -0
- data/ext/libarchive-2.8.4/libarchive/archive_endian.h +162 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry.c +2202 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry.h +524 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_bhfi.c +74 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_stat.c +77 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_link_resolver.c +405 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_private.h +184 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_stat.c +118 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_strmode.c +87 -0
- data/ext/libarchive-2.8.4/libarchive/archive_entry_xattr.c +158 -0
- data/ext/libarchive-2.8.4/libarchive/archive_hash.h +281 -0
- data/ext/libarchive-2.8.4/libarchive/archive_platform.h +165 -0
- data/ext/libarchive-2.8.4/libarchive/archive_private.h +124 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read.c +1249 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_data_into_fd.c +93 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +198 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +570 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk_private.h +62 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_disk_set_standard_lookup.c +303 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_extract.c +182 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_fd.c +190 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_file.c +165 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +272 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_open_memory.c +156 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_private.h +199 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_all.c +60 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c +353 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c +444 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c +465 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_none.c +40 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_program.c +459 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c +287 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c +627 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c +708 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_all.c +43 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_ar.c +584 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +777 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_empty.c +93 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_iso9660.c +2830 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +1304 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_raw.c +185 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_tar.c +2418 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_xar.c +3151 -0
- data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +903 -0
- data/ext/libarchive-2.8.4/libarchive/archive_string.c +453 -0
- data/ext/libarchive-2.8.4/libarchive/archive_string.h +148 -0
- data/ext/libarchive-2.8.4/libarchive/archive_string_sprintf.c +164 -0
- data/ext/libarchive-2.8.4/libarchive/archive_util.c +391 -0
- data/ext/libarchive-2.8.4/libarchive/archive_virtual.c +94 -0
- data/ext/libarchive-2.8.4/libarchive/archive_windows.c +1236 -0
- data/ext/libarchive-2.8.4/libarchive/archive_windows.h +347 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write.c +466 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +2628 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_disk_private.h +38 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_disk_set_standard_lookup.c +262 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_open_fd.c +141 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_open_file.c +105 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_open_filename.c +162 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_open_memory.c +126 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_private.h +122 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +408 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c +492 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +477 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +257 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +347 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +438 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format.c +72 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ar.c +550 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_by_name.c +76 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +344 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +295 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +1050 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_pax.c +1386 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_shar.c +626 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ustar.c +587 -0
- data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +667 -0
- data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +154 -0
- data/ext/libarchive-2.8.4/libarchive/filter_fork.c +161 -0
- data/ext/libarchive-2.8.4/libarchive/filter_fork.h +41 -0
- data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +113 -0
- data/ext/libarchive-static-makefile +80 -0
- data/ext/libarchive-static-wrapper-makefile +22 -0
- data/ext/zlib-1.2.5/Makefile.in +257 -0
- data/ext/zlib-1.2.5/adler32.c +169 -0
- data/ext/zlib-1.2.5/compress.c +80 -0
- data/ext/zlib-1.2.5/configure +596 -0
- data/ext/zlib-1.2.5/crc32.c +442 -0
- data/ext/zlib-1.2.5/crc32.h +441 -0
- data/ext/zlib-1.2.5/deflate.c +1834 -0
- data/ext/zlib-1.2.5/deflate.h +342 -0
- data/ext/zlib-1.2.5/example.c +565 -0
- data/ext/zlib-1.2.5/gzclose.c +25 -0
- data/ext/zlib-1.2.5/gzguts.h +132 -0
- data/ext/zlib-1.2.5/gzlib.c +537 -0
- data/ext/zlib-1.2.5/gzread.c +653 -0
- data/ext/zlib-1.2.5/gzwrite.c +531 -0
- data/ext/zlib-1.2.5/infback.c +632 -0
- data/ext/zlib-1.2.5/inffast.c +340 -0
- data/ext/zlib-1.2.5/inffast.h +11 -0
- data/ext/zlib-1.2.5/inffixed.h +94 -0
- data/ext/zlib-1.2.5/inflate.c +1480 -0
- data/ext/zlib-1.2.5/inflate.h +122 -0
- data/ext/zlib-1.2.5/inftrees.c +330 -0
- data/ext/zlib-1.2.5/inftrees.h +62 -0
- data/ext/zlib-1.2.5/minigzip.c +440 -0
- data/ext/zlib-1.2.5/trees.c +1244 -0
- data/ext/zlib-1.2.5/trees.h +128 -0
- data/ext/zlib-1.2.5/uncompr.c +59 -0
- data/ext/zlib-1.2.5/zconf.h +428 -0
- data/ext/zlib-1.2.5/zlib.h +1613 -0
- data/ext/zlib-1.2.5/zutil.c +318 -0
- data/ext/zlib-1.2.5/zutil.h +274 -0
- metadata +211 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
# AC_LANG_STDCALL_FUNC_LINK_TRY(FUNCTION, SIGNATURE)
|
2
|
+
# -------------------------------
|
3
|
+
# Produce a source which links correctly iff the FUNCTION exists.
|
4
|
+
AC_DEFUN([AC_LANG_STDCALL_FUNC_LINK_TRY],
|
5
|
+
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
6
|
+
|
7
|
+
# AC_CHECK_STDCALL_FUNC(FUNCTION, SIGNATURE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
8
|
+
# -----------------------------------------------------------------
|
9
|
+
AC_DEFUN([AC_CHECK_STDCALL_FUNC],
|
10
|
+
[AS_VAR_PUSHDEF([ac_var], [ac_cv_func_$1])dnl
|
11
|
+
AC_CACHE_CHECK([for $1], ac_var,
|
12
|
+
[AC_LINK_IFELSE([AC_LANG_STDCALL_FUNC_LINK_TRY([$1],[$2])],
|
13
|
+
[AS_VAR_SET(ac_var, yes)],
|
14
|
+
[AS_VAR_SET(ac_var, no)])])
|
15
|
+
AS_IF([test AS_VAR_GET(ac_var) = yes], [$3], [$4])dnl
|
16
|
+
AS_VAR_POPDEF([ac_var])dnl
|
17
|
+
])# AC_CHECK_FUNC
|
18
|
+
|
19
|
+
# AC_LANG_STDCALL_FUNC_LINK_TRY(C)(FUNCTION, SIGNATURE)
|
20
|
+
# ----------------------------------
|
21
|
+
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
22
|
+
# <sys/types.h> which includes <sys/select.h> which contains a
|
23
|
+
# prototype for select. Similarly for bzero.
|
24
|
+
m4_define([AC_LANG_STDCALL_FUNC_LINK_TRY(C)],
|
25
|
+
[AC_LANG_PROGRAM(
|
26
|
+
[/* System header to define __stub macros and hopefully few prototypes,
|
27
|
+
which can conflict with char __stdcall $1 ( $2 ) below. */
|
28
|
+
#include <assert.h>
|
29
|
+
/* Override any gcc2 internal prototype to avoid an error. */
|
30
|
+
#ifdef __cplusplus
|
31
|
+
extern "C"
|
32
|
+
#endif
|
33
|
+
/* We use char because int might match the return type of a gcc2
|
34
|
+
builtin and then its argument prototype would still apply. */
|
35
|
+
char __stdcall $1 ( $2 );
|
36
|
+
char (*f) ( $2 );
|
37
|
+
],
|
38
|
+
[/* The GNU C library defines this for functions which it implements
|
39
|
+
to always fail with ENOSYS. Some functions are actually named
|
40
|
+
something starting with __ and the normal name is an alias. */
|
41
|
+
#if defined (__stub_$1) || defined (__stub___$1)
|
42
|
+
choke me
|
43
|
+
#else
|
44
|
+
f = $1;
|
45
|
+
#endif
|
46
|
+
])])
|
47
|
+
|
48
|
+
# AC_LANG_STDCALL_FUNC_LINK_TRY(C++)(FUNCTION)
|
49
|
+
# ------------------------------------
|
50
|
+
m4_copy([AC_LANG_STDCALL_FUNC_LINK_TRY(C)], [AC_LANG_STDCALL_FUNC_LINK_TRY(C++)])
|
51
|
+
|
@@ -0,0 +1,143 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
# Wrapper for compilers which do not understand `-c -o'.
|
3
|
+
|
4
|
+
scriptversion=2009-10-06.20; # UTC
|
5
|
+
|
6
|
+
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
|
7
|
+
# Foundation, Inc.
|
8
|
+
# Written by Tom Tromey <tromey@cygnus.com>.
|
9
|
+
#
|
10
|
+
# This program is free software; you can redistribute it and/or modify
|
11
|
+
# it under the terms of the GNU General Public License as published by
|
12
|
+
# the Free Software Foundation; either version 2, or (at your option)
|
13
|
+
# any later version.
|
14
|
+
#
|
15
|
+
# This program is distributed in the hope that it will be useful,
|
16
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
+
# GNU General Public License for more details.
|
19
|
+
#
|
20
|
+
# You should have received a copy of the GNU General Public License
|
21
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
22
|
+
|
23
|
+
# As a special exception to the GNU General Public License, if you
|
24
|
+
# distribute this file as part of a program that contains a
|
25
|
+
# configuration script generated by Autoconf, you may include it under
|
26
|
+
# the same distribution terms that you use for the rest of that program.
|
27
|
+
|
28
|
+
# This file is maintained in Automake, please report
|
29
|
+
# bugs to <bug-automake@gnu.org> or send patches to
|
30
|
+
# <automake-patches@gnu.org>.
|
31
|
+
|
32
|
+
case $1 in
|
33
|
+
'')
|
34
|
+
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
35
|
+
exit 1;
|
36
|
+
;;
|
37
|
+
-h | --h*)
|
38
|
+
cat <<\EOF
|
39
|
+
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
40
|
+
|
41
|
+
Wrapper for compilers which do not understand `-c -o'.
|
42
|
+
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
43
|
+
arguments, and rename the output as expected.
|
44
|
+
|
45
|
+
If you are trying to build a whole package this is not the
|
46
|
+
right script to run: please start by reading the file `INSTALL'.
|
47
|
+
|
48
|
+
Report bugs to <bug-automake@gnu.org>.
|
49
|
+
EOF
|
50
|
+
exit $?
|
51
|
+
;;
|
52
|
+
-v | --v*)
|
53
|
+
echo "compile $scriptversion"
|
54
|
+
exit $?
|
55
|
+
;;
|
56
|
+
esac
|
57
|
+
|
58
|
+
ofile=
|
59
|
+
cfile=
|
60
|
+
eat=
|
61
|
+
|
62
|
+
for arg
|
63
|
+
do
|
64
|
+
if test -n "$eat"; then
|
65
|
+
eat=
|
66
|
+
else
|
67
|
+
case $1 in
|
68
|
+
-o)
|
69
|
+
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
70
|
+
# So we strip `-o arg' only if arg is an object.
|
71
|
+
eat=1
|
72
|
+
case $2 in
|
73
|
+
*.o | *.obj)
|
74
|
+
ofile=$2
|
75
|
+
;;
|
76
|
+
*)
|
77
|
+
set x "$@" -o "$2"
|
78
|
+
shift
|
79
|
+
;;
|
80
|
+
esac
|
81
|
+
;;
|
82
|
+
*.c)
|
83
|
+
cfile=$1
|
84
|
+
set x "$@" "$1"
|
85
|
+
shift
|
86
|
+
;;
|
87
|
+
*)
|
88
|
+
set x "$@" "$1"
|
89
|
+
shift
|
90
|
+
;;
|
91
|
+
esac
|
92
|
+
fi
|
93
|
+
shift
|
94
|
+
done
|
95
|
+
|
96
|
+
if test -z "$ofile" || test -z "$cfile"; then
|
97
|
+
# If no `-o' option was seen then we might have been invoked from a
|
98
|
+
# pattern rule where we don't need one. That is ok -- this is a
|
99
|
+
# normal compilation that the losing compiler can handle. If no
|
100
|
+
# `.c' file was seen then we are probably linking. That is also
|
101
|
+
# ok.
|
102
|
+
exec "$@"
|
103
|
+
fi
|
104
|
+
|
105
|
+
# Name of file we expect compiler to create.
|
106
|
+
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
107
|
+
|
108
|
+
# Create the lock directory.
|
109
|
+
# Note: use `[/\\:.-]' here to ensure that we don't use the same name
|
110
|
+
# that we are using for the .o file. Also, base the name on the expected
|
111
|
+
# object file name, since that is what matters with a parallel build.
|
112
|
+
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
113
|
+
while true; do
|
114
|
+
if mkdir "$lockdir" >/dev/null 2>&1; then
|
115
|
+
break
|
116
|
+
fi
|
117
|
+
sleep 1
|
118
|
+
done
|
119
|
+
# FIXME: race condition here if user kills between mkdir and trap.
|
120
|
+
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
121
|
+
|
122
|
+
# Run the compile.
|
123
|
+
"$@"
|
124
|
+
ret=$?
|
125
|
+
|
126
|
+
if test -f "$cofile"; then
|
127
|
+
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
128
|
+
elif test -f "${cofile}bj"; then
|
129
|
+
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
130
|
+
fi
|
131
|
+
|
132
|
+
rmdir "$lockdir"
|
133
|
+
exit $ret
|
134
|
+
|
135
|
+
# Local Variables:
|
136
|
+
# mode: shell-script
|
137
|
+
# sh-indentation: 2
|
138
|
+
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
139
|
+
# time-stamp-start: "scriptversion="
|
140
|
+
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
141
|
+
# time-stamp-time-zone: "UTC"
|
142
|
+
# time-stamp-end: "; # UTC"
|
143
|
+
# End:
|