Browse code

Merging the post0.92 stuff Please don't commit anything till I'm finished

A full changelog will come up later

Thanks


git-svn: trunk@3410

aCaB authored on 2007/12/14 04:45:38
Showing 54 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,45 @@
0
+Modified files from libbzip2 are present under libclamav/nsis.
1
+The original LICENSE file for bzip2 and libbzip2 is reproduced below.
2
+
3
+--------------------------------------------------------------------------
4
+
5
+This program, "bzip2", the associated library "libbzip2", and all
6
+documentation, are copyright (C) 1996-2006 Julian R Seward.  All
7
+rights reserved.
8
+
9
+Redistribution and use in source and binary forms, with or without
10
+modification, are permitted provided that the following conditions
11
+are met:
12
+
13
+1. Redistributions of source code must retain the above copyright
14
+   notice, this list of conditions and the following disclaimer.
15
+
16
+2. The origin of this software must not be misrepresented; you must 
17
+   not claim that you wrote the original software.  If you use this 
18
+   software in a product, an acknowledgment in the product 
19
+   documentation would be appreciated but is not required.
20
+
21
+3. Altered source versions must be plainly marked as such, and must
22
+   not be misrepresented as being the original software.
23
+
24
+4. The name of the author may not be used to endorse or promote 
25
+   products derived from this software without specific prior written 
26
+   permission.
27
+
28
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
29
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
30
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
+ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
32
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
37
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
+
40
+Julian Seward, Cambridge, UK.
41
+jseward@bzip.org
42
+bzip2/libbzip2 version 1.0.4 of 20 December 2006
43
+
44
+--------------------------------------------------------------------------
0 45
new file mode 100644
... ...
@@ -0,0 +1,72 @@
0
+Original unmodified files from the LZMA SDK are included under libclamav/lzma.
1
+The original lzma.txt license file, a small portion of which is reproduced below,
2
+is available under libclamav/lzma/lzma.txt. 
3
+
4
+LICENSE
5
+-------
6
+
7
+LZMA SDK is available under any of the following licenses:
8
+
9
+1) GNU Lesser General Public License (GNU LGPL)
10
+2) Common Public License (CPL)
11
+3) Simplified license for unmodified code (read SPECIAL EXCEPTION) 
12
+4) Proprietary license 
13
+
14
+It means that you can select one of these four options and follow rules of that license.
15
+
16
+
17
+1,2) GNU LGPL and CPL licenses are pretty similar and both these
18
+licenses are classified as 
19
+ - "Free software licenses" at http://www.gnu.org/ 
20
+ - "OSI-approved" at http://www.opensource.org/
21
+
22
+
23
+3) SPECIAL EXCEPTION
24
+
25
+Igor Pavlov, as the author of this code, expressly permits you 
26
+to statically or dynamically link your code (or bind by name) 
27
+to the files from LZMA SDK without subjecting your linked 
28
+code to the terms of the CPL or GNU LGPL. 
29
+Any modifications or additions to files from LZMA SDK, however, 
30
+are subject to the GNU LGPL or CPL terms.
31
+
32
+SPECIAL EXCEPTION allows you to use LZMA SDK in applications with closed code, 
33
+while you keep LZMA SDK code unmodified.
34
+
35
+
36
+SPECIAL EXCEPTION #2: Igor Pavlov, as the author of this code, expressly permits 
37
+you to use this code under the same terms and conditions contained in the License 
38
+Agreement you have for any previous version of LZMA SDK developed by Igor Pavlov.
39
+
40
+SPECIAL EXCEPTION #2 allows owners of proprietary licenses to use latest version 
41
+of LZMA SDK as update for previous versions.
42
+
43
+
44
+SPECIAL EXCEPTION #3: Igor Pavlov, as the author of this code, expressly permits 
45
+you to use code of the following files: 
46
+BranchTypes.h, LzmaTypes.h, LzmaTest.c, LzmaStateTest.c, LzmaAlone.cpp, 
47
+LzmaAlone.cs, LzmaAlone.java
48
+as public domain code. 
49
+
50
+
51
+4) Proprietary license
52
+
53
+LZMA SDK also can be available under a proprietary license which 
54
+can include:
55
+
56
+1) Right to modify code without subjecting modified code to the 
57
+terms of the CPL or GNU LGPL
58
+2) Technical support for code
59
+
60
+To request such proprietary license or any additional consultations,
61
+send email message from that page:
62
+http://www.7-zip.org/support.html
63
+
64
+
65
+You should have received a copy of the GNU Lesser General Public
66
+License along with this library; if not, write to the Free Software
67
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
68
+
69
+You should have received a copy of the Common Public License
70
+along with this library.
71
+
0 72
deleted file mode 100644
... ...
@@ -1,308 +0,0 @@
1
-********************************************************************************
2
-   This document contains licence details for files in libclamav/nsis. It can
3
-   be accessed on-line at http://nsis.sourceforge.net/License
4
-********************************************************************************
5
-
6
-Copyright (C) 1995-2007 Contributors 
7
-
8
-More detailed copyright information can be found in the individual source code 
9
-files. 
10
-
11
-Applicable licenses 
12
-
13
-* All NSIS source code, plug-ins, documentation, examples, header files and 
14
-  graphics, with the exception of the compression modules and where otherwise 
15
-  noted, are licensed under the zlib/libpng license. 
16
-
17
-* The zlib compression module for NSIS is licensed under the zlib/libpng
18
-  license. 
19
-
20
-* The bzip2 compression module for NSIS is licensed under the bzip2 license. 
21
-
22
-* The lzma compression module for NSIS is licensed under the Common Public
23
-  License version 1.0. 
24
-
25
-zlib/libpng license 
26
-
27
-This software is provided 'as-is', without any express or implied warranty. In 
28
-no event will the authors be held liable for any damages arising from the use
29
-of this software. 
30
-
31
-Permission is granted to anyone to use this software for any purpose, including 
32
-commercial applications, and to alter it and redistribute it freely, subject to 
33
-the following restrictions: 
34
-
35
-  1. The origin of this software must not be misrepresented; you must not
36
-     claim that you wrote the original software. If you use this software in
37
-     a product, an acknowledgment in the product documentation would be
38
-     appreciated but is not required. 
39
-
40
-  2. Altered source versions must be plainly marked as such, and must not be
41
-     misrepresented as being the original software. 
42
-
43
-  3. This notice may not be removed or altered from any source distribution. 
44
-
45
-bzip2 license 
46
-
47
-Redistribution and use in source and binary forms, with or without
48
-modification, are permitted provided that the following conditions are met: 
49
-
50
-  1. Redistributions of source code must retain the above copyright notice,
51
-     this list of conditions and the following disclaimer.
52
-
53
-  2. The origin of this software must not be misrepresented; you must not
54
-     claim that you wrote the original software. If you use this software in
55
-     a product, an acknowledgment in the product documentation would be
56
-     appreciated but is not required. 
57
-
58
-  3. Altered source versions must be plainly marked as such, and must not be
59
-     misrepresented as being the original software.
60
-
61
-  4. The name of the author may not be used to endorse or promote products
62
-     derived from this software without specific prior written permission. 
63
-
64
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS AND ANY EXPRESS OR IMPLIED 
65
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
66
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
67
-EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
68
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
69
-OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
70
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
71
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
72
-IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
73
-OF SUCH DAMAGE. 
74
-
75
-Julian Seward, Cambridge, UK. 
76
-
77
-jseward@acm.org 
78
-
79
-Common Public License version 1.0 
80
-
81
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC 
82
-LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM 
83
-CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 
84
-
85
-1. DEFINITIONS 
86
-
87
-"Contribution" means: 
88
-
89
-a) in the case of the initial Contributor, the initial code and documentation 
90
-   distributed under this Agreement, and b) in the case of each subsequent 
91
-   Contributor: 
92
-
93
-i) changes to the Program, and 
94
-
95
-ii) additions to the Program; 
96
-
97
-where such changes and/or additions to the Program originate from and are 
98
-distributed by that particular Contributor. A Contribution 'originates' from a 
99
-Contributor if it was added to the Program by such Contributor itself or anyone 
100
-acting on such Contributor's behalf. Contributions do not include additions to 
101
-the Program which: (i) are separate modules of software distributed in 
102
-conjunction with the Program under their own license agreement, and (ii) are
103
-not derivative works of the Program. 
104
-
105
-"Contributor" means any person or entity that distributes the Program. 
106
-
107
-"Licensed Patents " mean patent claims licensable by a Contributor which are 
108
-necessarily infringed by the use or sale of its Contribution alone or when 
109
-combined with the Program. 
110
-
111
-"Program" means the Contributions distributed in accordance with this Agreement.
112
-
113
-"Recipient" means anyone who receives the Program under this Agreement, 
114
-including all Contributors. 
115
-
116
-2. GRANT OF RIGHTS 
117
-
118
-a) Subject to the terms of this Agreement, each Contributor hereby grants 
119
-Recipient a non-exclusive, worldwide, royalty-free copyright license to 
120
-reproduce, prepare derivative works of, publicly display, publicly perform, 
121
-distribute and sublicense the Contribution of such Contributor, if any, and
122
-such derivative works, in source code and object code form. 
123
-
124
-b) Subject to the terms of this Agreement, each Contributor hereby grants 
125
-Recipient a non-exclusive, worldwide, royalty-free patent license under
126
-Licensed Patents to make, use, sell, offer to sell, import and otherwise
127
-transfer the Contribution of such Contributor, if any, in source code and
128
-object code form. This patent license shall apply to the combination of the
129
-Contribution and the Program if, at the time the Contribution is added by the
130
-Contributor, such addition of the Contribution causes such combination to be
131
-covered by the Licensed Patents. The patent license shall not apply to any
132
-other combinations which include the Contribution. No hardware per se is
133
-licensed hereunder.
134
-
135
-c) Recipient understands that although each Contributor grants the licenses to 
136
-its Contributions set forth herein, no assurances are provided by any 
137
-Contributor that the Program does not infringe the patent or other intellectual 
138
-property rights of any other entity. Each Contributor disclaims any liability
139
-to Recipient for claims brought by any other entity based on infringement of 
140
-intellectual property rights or otherwise. As a condition to exercising the 
141
-rights and licenses granted hereunder, each Recipient hereby assumes sole 
142
-responsibility to secure any other intellectual property rights needed, if any. 
143
-For example, if a third party patent license is required to allow Recipient to 
144
-distribute the Program, it is Recipient's responsibility to acquire that
145
-license before distributing the Program. 
146
-
147
-d) Each Contributor represents that to its knowledge it has sufficient
148
-copyright rights in its Contribution, if any, to grant the copyright license
149
-set forth in this Agreement. 
150
-
151
-3. REQUIREMENTS 
152
-
153
-A Contributor may choose to distribute the Program in object code form under
154
-its own license agreement, provided that: 
155
-
156
-a) it complies with the terms and conditions of this Agreement; and 
157
-
158
-b) its license agreement: 
159
-
160
-i) effectively disclaims on behalf of all Contributors all warranties and 
161
-conditions, express and implied, including warranties or conditions of title
162
-and non-infringement, and implied warranties or conditions of merchantability
163
-and fitness for a particular purpose; 
164
-
165
-ii) effectively excludes on behalf of all Contributors all liability for
166
-damages, including direct, indirect, special, incidental and consequential
167
-damages, such as lost profits; 
168
-
169
-iii) states that any provisions which differ from this Agreement are offered by 
170
-that Contributor alone and not by any other party; and 
171
-
172
-iv) states that source code for the Program is available from such Contributor, 
173
-and informs licensees how to obtain it in a reasonable manner on or through a 
174
-medium customarily used for software exchange. 
175
-
176
-When the Program is made available in source code form: 
177
-
178
-a) it must be made available under this Agreement; and 
179
-
180
-b) a copy of this Agreement must be included with each copy of the Program. 
181
-
182
-Contributors may not remove or alter any copyright notices contained within the 
183
-Program. 
184
-
185
-Each Contributor must identify itself as the originator of its Contribution, if 
186
-any, in a manner that reasonably allows subsequent Recipients to identify the 
187
-originator of the Contribution. 
188
-
189
-4. COMMERCIAL DISTRIBUTION 
190
-
191
-Commercial distributors of software may accept certain responsibilities with 
192
-respect to end users, business partners and the like. While this license is 
193
-intended to facilitate the commercial use of the Program, the Contributor who 
194
-includes the Program in a commercial product offering should do so in a manner 
195
-which does not create potential liability for other Contributors. Therefore, if 
196
-a Contributor includes the Program in a commercial product offering, such 
197
-Contributor ("Commercial Contributor") hereby agrees to defend and indemnify 
198
-every other Contributor ("Indemnified Contributor") against any losses, damages 
199
-and costs (collectively "Losses") arising from claims, lawsuits and other legal 
200
-actions brought by a third party against the Indemnified Contributor to the 
201
-extent caused by the acts or omissions of such Commercial Contributor in 
202
-connection with its distribution of the Program in a commercial product
203
-offering. The obligations in this section do not apply to any claims or Losses
204
-relating to any actual or alleged intellectual property infringement. In order
205
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
206
-Contributor in writing of such claim, and b) allow the Commercial Contributor
207
-to control, and cooperate with the Commercial Contributor in, the defense and
208
-any related settlement negotiations. The Indemnified Contributor may
209
-participate in any such claim at its own expense. 
210
-
211
-For example, a Contributor might include the Program in a commercial product 
212
-offering, Product X. That Contributor is then a Commercial Contributor. If that 
213
-Commercial Contributor then makes performance claims, or offers warranties 
214
-related to Product X, those performance claims and warranties are such 
215
-Commercial Contributor's responsibility alone. Under this section, the 
216
-Commercial Contributor would have to defend claims against the other 
217
-Contributors related to those performance claims and warranties, and if a court 
218
-requires any other Contributor to pay any damages as a result, the Commercial 
219
-Contributor must pay those damages. 
220
-
221
-5. NO WARRANTY 
222
-
223
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON
224
-AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS
225
-OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
226
-TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
227
-Each Recipient is solely responsible for determining the appropriateness of
228
-using and distributing the Program and assumes all risks associated with its
229
-exercise of rights under this Agreement, including but not limited to the risks
230
-and costs of program errors, compliance with applicable laws, damage to or loss
231
-of data, programs or equipment, and unavailability or interruption of
232
-operations. 
233
-
234
-6. DISCLAIMER OF LIABILITY 
235
-
236
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY 
237
-CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
238
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST 
239
-PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
240
-STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
241
-WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
242
-GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 
243
-
244
-7. GENERAL 
245
-
246
-If any provision of this Agreement is invalid or unenforceable under applicable 
247
-law, it shall not affect the validity or enforceability of the remainder of the 
248
-terms of this Agreement, and without further action by the parties hereto, such 
249
-provision shall be reformed to the minimum extent necessary to make such 
250
-provision valid and enforceable. 
251
-
252
-If Recipient institutes patent litigation against a Contributor with respect to 
253
-a patent applicable to software (including a cross-claim or counterclaim in a 
254
-lawsuit), then any patent licenses granted by that Contributor to such
255
-Recipient under this Agreement shall terminate as of the date such litigation
256
-is filed. In addition, if Recipient institutes patent litigation against any
257
-entity (including a cross-claim or counterclaim in a lawsuit) alleging that the
258
-Program itself (excluding combinations of the Program with other software or
259
-hardware) infringes such Recipient's patent(s), then such Recipient's rights
260
-granted under Section 2(b) shall terminate as of the date such litigation is
261
-filed. 
262
-
263
-All Recipient's rights under this Agreement shall terminate if it fails to 
264
-comply with any of the material terms or conditions of this Agreement and does 
265
-not cure such failure in a reasonable period of time after becoming aware of 
266
-such noncompliance. If all Recipient's rights under this Agreement terminate, 
267
-Recipient agrees to cease use and distribution of the Program as soon as 
268
-reasonably practicable. However, Recipient's obligations under this Agreement 
269
-and any licenses granted by Recipient relating to the Program shall continue
270
-and survive. 
271
-
272
-Everyone is permitted to copy and distribute copies of this Agreement, but in 
273
-order to avoid inconsistency the Agreement is copyrighted and may only be 
274
-modified in the following manner. The Agreement Steward reserves the right to 
275
-publish new versions (including revisions) of this Agreement from time to time. 
276
-No one other than the Agreement Steward has the right to modify this Agreement. 
277
-IBM is the initial Agreement Steward. IBM may assign the responsibility to
278
-serve as the Agreement Steward to a suitable separate entity. Each new version
279
-of the Agreement will be given a distinguishing version number. The Program
280
-(including Contributions) may always be distributed subject to the version of
281
-the Agreement under which it was received. In addition, after a new version of
282
-the Agreement is published, Contributor may elect to distribute the Program
283
-(including its Contributions) under the new version. Except as expressly
284
-stated in Sections 2(a) and 2(b) above, Recipient receives no rights or
285
-licenses to the intellectual property of any Contributor under this Agreement,
286
-whether expressly, by implication, estoppel or otherwise. All rights in the
287
-Program not expressly granted under this Agreement are reserved. 
288
-
289
-This Agreement is governed by the laws of the State of New York and the 
290
-intellectual property laws of the United States of America. No party to this 
291
-Agreement will bring a legal action under this Agreement more than one year 
292
-after the cause of action arose. Each party waives its rights to a jury trial
293
-in any resulting litigation. 
294
-
295
-Special exception for LZMA compression module 
296
-
297
-Igor Pavlov and Amir Szekely, the authors of the LZMA compression module for 
298
-NSIS, expressly permit you to statically or dynamically link your code (or bind 
299
-by name) to the files from the LZMA compression module for NSIS without 
300
-subjecting your linked code to the terms of the Common Public license version
301
-1.0.  Any modifications or additions to files from the LZMA compression module
302
-for NSIS, however, are subject to the terms of the Common Public License
303
-version 1.0. 
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,11 +33,15 @@
33 33
 #  MA 02110-1301, USA.
34 34
 
35 35
 
36
+srcdir = @srcdir@
37
+top_srcdir = @top_srcdir@
36 38
 VPATH = @srcdir@
37 39
 pkgdatadir = $(datadir)/@PACKAGE@
38 40
 pkglibdir = $(libdir)/@PACKAGE@
39 41
 pkgincludedir = $(includedir)/@PACKAGE@
42
+top_builddir = .
40 43
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
+INSTALL = @INSTALL@
41 45
 install_sh_DATA = $(install_sh) -c -m 644
42 46
 install_sh_PROGRAM = $(install_sh) -c
43 47
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -52,7 +56,6 @@ POST_UNINSTALL = :
52 52
 build_triplet = @build@
53 53
 host_triplet = @host@
54 54
 target_triplet = @target@
55
-subdir = .
56 55
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
57 56
 	$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
58 57
 	$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \
... ...
@@ -68,13 +71,14 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
68 68
 	$(top_srcdir)/docs/man/sigtool.1.in AUTHORS COPYING ChangeLog \
69 69
 	INSTALL NEWS config.guess config.sub depcomp install-sh \
70 70
 	ltmain.sh missing mkinstalldirs
71
+subdir = .
71 72
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
72 73
 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
73 74
 	$(top_srcdir)/configure.in
74 75
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
75 76
 	$(ACLOCAL_M4)
76 77
 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
77
- configure.lineno config.status.lineno
78
+ configure.lineno configure.status.lineno
78 79
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
79 80
 CONFIG_HEADER = clamav-config.h
80 81
 CONFIG_CLEAN_FILES = clamav-config libclamav.pc \
... ...
@@ -89,11 +93,10 @@ SOURCES =
89 89
 DIST_SOURCES =
90 90
 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
91 91
 	html-recursive info-recursive install-data-recursive \
92
-	install-dvi-recursive install-exec-recursive \
93
-	install-html-recursive install-info-recursive \
94
-	install-pdf-recursive install-ps-recursive install-recursive \
95
-	installcheck-recursive installdirs-recursive pdf-recursive \
96
-	ps-recursive uninstall-recursive
92
+	install-exec-recursive install-info-recursive \
93
+	install-recursive installcheck-recursive installdirs-recursive \
94
+	pdf-recursive ps-recursive uninstall-info-recursive \
95
+	uninstall-recursive
97 96
 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
98 97
 am__vpath_adj = case $$p in \
99 98
     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
... ...
@@ -102,8 +105,6 @@ am__vpath_adj = case $$p in \
102 102
 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
103 103
 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
104 104
 DATA = $(pkgconfig_DATA)
105
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
106
-  distclean-recursive maintainer-clean-recursive
107 105
 ETAGS = etags
108 106
 CTAGS = ctags
109 107
 DIST_SUBDIRS = $(SUBDIRS)
... ...
@@ -119,12 +120,16 @@ GZIP_ENV = --best
119 119
 distuninstallcheck_listfiles = find . -type f -print
120 120
 distcleancheck_listfiles = find . -type f -print
121 121
 ACLOCAL = @ACLOCAL@
122
+AMDEP_FALSE = @AMDEP_FALSE@
123
+AMDEP_TRUE = @AMDEP_TRUE@
122 124
 AMTAR = @AMTAR@
123 125
 AR = @AR@
124 126
 AUTOCONF = @AUTOCONF@
125 127
 AUTOHEADER = @AUTOHEADER@
126 128
 AUTOMAKE = @AUTOMAKE@
127 129
 AWK = @AWK@
130
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
131
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
128 132
 CC = @CC@
129 133
 CCDEPMODE = @CCDEPMODE@
130 134
 CFGDIR = @CFGDIR@
... ...
@@ -148,13 +153,16 @@ ECHO_C = @ECHO_C@
148 148
 ECHO_N = @ECHO_N@
149 149
 ECHO_T = @ECHO_T@
150 150
 EGREP = @EGREP@
151
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
152
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
151 153
 EXEEXT = @EXEEXT@
152 154
 F77 = @F77@
153 155
 FFLAGS = @FFLAGS@
154 156
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
155 157
 GETENT = @GETENT@
156 158
 GREP = @GREP@
157
-INSTALL = @INSTALL@
159
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
160
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
158 161
 INSTALL_DATA = @INSTALL_DATA@
159 162
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
160 163
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -168,8 +176,9 @@ LIBTOOL = @LIBTOOL@
168 168
 LN_S = @LN_S@
169 169
 LTLIBOBJS = @LTLIBOBJS@
170 170
 MAINT = @MAINT@
171
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
172
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
171 173
 MAKEINFO = @MAKEINFO@
172
-MKDIR_P = @MKDIR_P@
173 174
 OBJEXT = @OBJEXT@
174 175
 PACKAGE = @PACKAGE@
175 176
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -186,13 +195,13 @@ STRIP = @STRIP@
186 186
 THREAD_LIBS = @THREAD_LIBS@
187 187
 TH_SAFE = @TH_SAFE@
188 188
 VERSION = @VERSION@
189
-abs_builddir = @abs_builddir@
190
-abs_srcdir = @abs_srcdir@
191
-abs_top_builddir = @abs_top_builddir@
192
-abs_top_srcdir = @abs_top_srcdir@
193 189
 ac_ct_CC = @ac_ct_CC@
194 190
 ac_ct_CXX = @ac_ct_CXX@
195 191
 ac_ct_F77 = @ac_ct_F77@
192
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
193
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
194
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
195
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
196 196
 am__include = @am__include@
197 197
 am__leading_dot = @am__leading_dot@
198 198
 am__quote = @am__quote@
... ...
@@ -204,7 +213,6 @@ build_alias = @build_alias@
204 204
 build_cpu = @build_cpu@
205 205
 build_os = @build_os@
206 206
 build_vendor = @build_vendor@
207
-builddir = @builddir@
208 207
 datadir = @datadir@
209 208
 datarootdir = @datarootdir@
210 209
 docdir = @docdir@
... ...
@@ -233,15 +241,12 @@ psdir = @psdir@
233 233
 sbindir = @sbindir@
234 234
 sendmailprog = @sendmailprog@
235 235
 sharedstatedir = @sharedstatedir@
236
-srcdir = @srcdir@
237 236
 sysconfdir = @sysconfdir@
238 237
 target = @target@
239 238
 target_alias = @target_alias@
240 239
 target_cpu = @target_cpu@
241 240
 target_os = @target_os@
242 241
 target_vendor = @target_vendor@
243
-top_builddir = @top_builddir@
244
-top_srcdir = @top_srcdir@
245 242
 SUBDIRS = libclamunrar libclamunrar_iface libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
246 243
 EXTRA_DIST = FAQ contrib test examples BUGS shared libclamav.pc.in UPGRADE COPYING.nsis COPYING.unrar COPYING.LGPL
247 244
 bin_SCRIPTS = clamav-config
... ...
@@ -288,7 +293,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
288 288
 clamav-config.h: stamp-h1
289 289
 	@if test ! -f $@; then \
290 290
 	  rm -f stamp-h1; \
291
-	  $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
291
+	  $(MAKE) stamp-h1; \
292 292
 	else :; fi
293 293
 
294 294
 stamp-h1: $(srcdir)/clamav-config.h.in $(top_builddir)/config.status
... ...
@@ -325,7 +330,7 @@ docs/man/sigtool.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/sigtool
325 325
 	cd $(top_builddir) && $(SHELL) ./config.status $@
326 326
 install-binSCRIPTS: $(bin_SCRIPTS)
327 327
 	@$(NORMAL_INSTALL)
328
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
328
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
329 329
 	@list='$(bin_SCRIPTS)'; for p in $$list; do \
330 330
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
331 331
 	  if test -f $$d$$p; then \
... ...
@@ -351,9 +356,10 @@ clean-libtool:
351 351
 
352 352
 distclean-libtool:
353 353
 	-rm -f libtool
354
+uninstall-info-am:
354 355
 install-pkgconfigDATA: $(pkgconfig_DATA)
355 356
 	@$(NORMAL_INSTALL)
356
-	test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
357
+	test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
357 358
 	@list='$(pkgconfig_DATA)'; for p in $$list; do \
358 359
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
359 360
 	  f=$(am__strip_dir) \
... ...
@@ -400,7 +406,8 @@ $(RECURSIVE_TARGETS):
400 400
 	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
401 401
 	fi; test -z "$$fail"
402 402
 
403
-$(RECURSIVE_CLEAN_TARGETS):
403
+mostlyclean-recursive clean-recursive distclean-recursive \
404
+maintainer-clean-recursive:
404 405
 	@failcom='exit 1'; \
405 406
 	for f in x $$MAKEFLAGS; do \
406 407
 	  case $$f in \
... ...
@@ -502,22 +509,24 @@ distclean-tags:
502 502
 
503 503
 distdir: $(DISTFILES)
504 504
 	$(am__remove_distdir)
505
-	test -d $(distdir) || mkdir $(distdir)
506
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
507
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
508
-	list='$(DISTFILES)'; \
509
-	  dist_files=`for file in $$list; do echo $$file; done | \
510
-	  sed -e "s|^$$srcdirstrip/||;t" \
511
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
512
-	case $$dist_files in \
513
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
514
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
515
-			   sort -u` ;; \
516
-	esac; \
517
-	for file in $$dist_files; do \
505
+	mkdir $(distdir)
506
+	$(mkdir_p) $(distdir)/. $(distdir)/docs/man
507
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
508
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
509
+	list='$(DISTFILES)'; for file in $$list; do \
510
+	  case $$file in \
511
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
512
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
513
+	  esac; \
518 514
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
515
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
516
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
517
+	    dir="/$$dir"; \
518
+	    $(mkdir_p) "$(distdir)$$dir"; \
519
+	  else \
520
+	    dir=''; \
521
+	  fi; \
519 522
 	  if test -d $$d/$$file; then \
520
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
521 523
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
522 524
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
523 525
 	    fi; \
... ...
@@ -531,7 +540,7 @@ distdir: $(DISTFILES)
531 531
 	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
532 532
 	  if test "$$subdir" = .; then :; else \
533 533
 	    test -d "$(distdir)/$$subdir" \
534
-	    || $(MKDIR_P) "$(distdir)/$$subdir" \
534
+	    || $(mkdir_p) "$(distdir)/$$subdir" \
535 535
 	    || exit 1; \
536 536
 	    distdir=`$(am__cd) $(distdir) && pwd`; \
537 537
 	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
... ...
@@ -539,8 +548,6 @@ distdir: $(DISTFILES)
539 539
 	      $(MAKE) $(AM_MAKEFLAGS) \
540 540
 	        top_distdir="$$top_distdir" \
541 541
 	        distdir="$$distdir/$$subdir" \
542
-		am__remove_distdir=: \
543
-		am__skip_length_check=: \
544 542
 	        distdir) \
545 543
 	      || exit 1; \
546 544
 	  fi; \
... ...
@@ -548,7 +555,7 @@ distdir: $(DISTFILES)
548 548
 	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
549 549
 	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
550 550
 	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
551
-	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
551
+	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
552 552
 	|| chmod -R a+r $(distdir)
553 553
 dist-gzip: distdir
554 554
 	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
... ...
@@ -623,7 +630,7 @@ distcheck: dist
623 623
 	$(am__remove_distdir)
624 624
 	@(echo "$(distdir) archives ready for distribution: "; \
625 625
 	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
626
-	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
626
+	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
627 627
 distuninstallcheck:
628 628
 	@cd $(distuninstallcheck_dir) \
629 629
 	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
... ...
@@ -648,7 +655,7 @@ all-am: Makefile $(SCRIPTS) $(DATA) clamav-config.h
648 648
 installdirs: installdirs-recursive
649 649
 installdirs-am:
650 650
 	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \
651
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
651
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
652 652
 	done
653 653
 install: install-recursive
654 654
 install-exec: install-exec-recursive
... ...
@@ -696,20 +703,12 @@ info-am:
696 696
 
697 697
 install-data-am: install-pkgconfigDATA
698 698
 
699
-install-dvi: install-dvi-recursive
700
-
701 699
 install-exec-am: install-binSCRIPTS
702 700
 
703
-install-html: install-html-recursive
704
-
705 701
 install-info: install-info-recursive
706 702
 
707 703
 install-man:
708 704
 
709
-install-pdf: install-pdf-recursive
710
-
711
-install-ps: install-ps-recursive
712
-
713 705
 installcheck-am:
714 706
 
715 707
 maintainer-clean: maintainer-clean-recursive
... ...
@@ -730,28 +729,27 @@ ps: ps-recursive
730 730
 
731 731
 ps-am:
732 732
 
733
-uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
733
+uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
734
+	uninstall-pkgconfigDATA
734 735
 
735
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
736
-	install-strip
736
+uninstall-info: uninstall-info-recursive
737 737
 
738
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
739
-	all all-am am--refresh check check-am clean clean-generic \
740
-	clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
741
-	dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
738
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
739
+	check-am clean clean-generic clean-libtool clean-recursive \
740
+	ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
741
+	dist-shar dist-tarZ dist-zip distcheck distclean \
742 742
 	distclean-generic distclean-hdr distclean-libtool \
743
-	distclean-tags distcleancheck distdir distuninstallcheck dvi \
744
-	dvi-am html html-am info info-am install install-am \
745
-	install-binSCRIPTS install-data install-data-am install-dvi \
746
-	install-dvi-am install-exec install-exec-am install-html \
747
-	install-html-am install-info install-info-am install-man \
748
-	install-pdf install-pdf-am install-pkgconfigDATA install-ps \
749
-	install-ps-am install-strip installcheck installcheck-am \
750
-	installdirs installdirs-am maintainer-clean \
751
-	maintainer-clean-generic mostlyclean mostlyclean-generic \
752
-	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
753
-	uninstall uninstall-am uninstall-binSCRIPTS \
754
-	uninstall-pkgconfigDATA
743
+	distclean-recursive distclean-tags distcleancheck distdir \
744
+	distuninstallcheck dvi dvi-am html html-am info info-am \
745
+	install install-am install-binSCRIPTS install-data \
746
+	install-data-am install-exec install-exec-am install-info \
747
+	install-info-am install-man install-pkgconfigDATA \
748
+	install-strip installcheck installcheck-am installdirs \
749
+	installdirs-am maintainer-clean maintainer-clean-generic \
750
+	maintainer-clean-recursive mostlyclean mostlyclean-generic \
751
+	mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
752
+	tags tags-recursive uninstall uninstall-am \
753
+	uninstall-binSCRIPTS uninstall-info-am uninstall-pkgconfigDATA
755 754
 
756 755
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
757 756
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,7 +1,7 @@
1
-# generated automatically by aclocal 1.10 -*- Autoconf -*-
1
+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2 2
 
3 3
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
-# 2005, 2006  Free Software Foundation, Inc.
4
+# 2005  Free Software Foundation, Inc.
5 5
 # This file is free software; the Free Software Foundation
6 6
 # gives unlimited permission to copy and/or distribute it,
7 7
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -11,11 +11,6 @@
11 11
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 12
 # PARTICULAR PURPOSE.
13 13
 
14
-m4_if(m4_PACKAGE_VERSION, [2.61],,
15
-[m4_fatal([this file was generated for autoconf 2.61.
16
-You have another version of autoconf.  If you want to use that,
17
-you should regenerate the build system entirely.], [63])])
18
-
19 14
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20 15
 
21 16
 # serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
... ...
@@ -6597,7 +6592,7 @@ AC_SUBST([SED])
6597 6597
 AC_MSG_RESULT([$SED])
6598 6598
 ])
6599 6599
 
6600
-# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6600
+# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6601 6601
 #
6602 6602
 # This file is free software; the Free Software Foundation
6603 6603
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6607,29 +6602,14 @@ AC_MSG_RESULT([$SED])
6607 6607
 # ----------------------------
6608 6608
 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6609 6609
 # generated from the m4 files accompanying Automake X.Y.
6610
-# (This private macro should not be called outside this file.)
6611
-AC_DEFUN([AM_AUTOMAKE_VERSION],
6612
-[am__api_version='1.10'
6613
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6614
-dnl require some minimum version.  Point them to the right macro.
6615
-m4_if([$1], [1.10], [],
6616
-      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6617
-])
6618
-
6619
-# _AM_AUTOCONF_VERSION(VERSION)
6620
-# -----------------------------
6621
-# aclocal traces this macro to find the Autoconf version.
6622
-# This is a private macro too.  Using m4_define simplifies
6623
-# the logic in aclocal, which can simply ignore this definition.
6624
-m4_define([_AM_AUTOCONF_VERSION], [])
6610
+AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6625 6611
 
6626 6612
 # AM_SET_CURRENT_AUTOMAKE_VERSION
6627 6613
 # -------------------------------
6628
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6614
+# Call AM_AUTOMAKE_VERSION so it can be traced.
6629 6615
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6630 6616
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6631
-[AM_AUTOMAKE_VERSION([1.10])dnl
6632
-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6617
+	 [AM_AUTOMAKE_VERSION([1.9.6])])
6633 6618
 
6634 6619
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6635 6620
 
... ...
@@ -6686,14 +6666,14 @@ am_aux_dir=`cd $ac_aux_dir && pwd`
6686 6686
 
6687 6687
 # AM_CONDITIONAL                                            -*- Autoconf -*-
6688 6688
 
6689
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6689
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6690 6690
 # Free Software Foundation, Inc.
6691 6691
 #
6692 6692
 # This file is free software; the Free Software Foundation
6693 6693
 # gives unlimited permission to copy and/or distribute it,
6694 6694
 # with or without modifications, as long as this notice is preserved.
6695 6695
 
6696
-# serial 8
6696
+# serial 7
6697 6697
 
6698 6698
 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6699 6699
 # -------------------------------------
... ...
@@ -6702,10 +6682,8 @@ AC_DEFUN([AM_CONDITIONAL],
6702 6702
 [AC_PREREQ(2.52)dnl
6703 6703
  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6704 6704
 	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6705
-AC_SUBST([$1_TRUE])dnl
6706
-AC_SUBST([$1_FALSE])dnl
6707
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6708
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6705
+AC_SUBST([$1_TRUE])
6706
+AC_SUBST([$1_FALSE])
6709 6707
 if $2; then
6710 6708
   $1_TRUE=
6711 6709
   $1_FALSE='#'
... ...
@@ -6719,14 +6697,15 @@ AC_CONFIG_COMMANDS_PRE(
6719 6719
 Usually this means the macro was only invoked conditionally.]])
6720 6720
 fi])])
6721 6721
 
6722
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6722
+
6723
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6723 6724
 # Free Software Foundation, Inc.
6724 6725
 #
6725 6726
 # This file is free software; the Free Software Foundation
6726 6727
 # gives unlimited permission to copy and/or distribute it,
6727 6728
 # with or without modifications, as long as this notice is preserved.
6728 6729
 
6729
-# serial 9
6730
+# serial 8
6730 6731
 
6731 6732
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6732 6733
 # written in clear, in which case automake, when reading aclocal.m4,
... ...
@@ -6754,7 +6733,6 @@ AC_REQUIRE([AM_DEP_TRACK])dnl
6754 6754
 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6755 6755
        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6756 6756
        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6757
-       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6758 6757
        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6759 6758
                    [depcc="$$1"   am_compiler_list=])
6760 6759
 
... ...
@@ -6820,7 +6798,6 @@ AC_CACHE_CHECK([dependency style of $depcc],
6820 6820
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6821 6821
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6822 6822
          >/dev/null 2>conftest.err &&
6823
-       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6824 6823
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6825 6824
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6826 6825
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -6873,8 +6850,7 @@ if test "x$enable_dependency_tracking" != xno; then
6873 6873
   AMDEPBACKSLASH='\'
6874 6874
 fi
6875 6875
 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6876
-AC_SUBST([AMDEPBACKSLASH])dnl
6877
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6876
+AC_SUBST([AMDEPBACKSLASH])
6878 6877
 ])
6879 6878
 
6880 6879
 # Generate code to set up dependency tracking.              -*- Autoconf -*-
... ...
@@ -6899,9 +6875,8 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6899 6899
   # some people rename them; so instead we look at the file content.
6900 6900
   # Grep'ing the first line is not enough: some people post-process
6901 6901
   # each Makefile.in and add a new line on top of each file to say so.
6902
-  # Grep'ing the whole file is not good either: AIX grep has a line
6903
-  # limit of 2048, but all sed's we know have understand at least 4000.
6904
-  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6902
+  # So let's grep whole file.
6903
+  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6905 6904
     dirpart=`AS_DIRNAME("$mf")`
6906 6905
   else
6907 6906
     continue
... ...
@@ -6960,8 +6935,8 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6960 6960
 
6961 6961
 # Do all the work for Automake.                             -*- Autoconf -*-
6962 6962
 
6963
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6964
-# 2005, 2006 Free Software Foundation, Inc.
6963
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6964
+# Free Software Foundation, Inc.
6965 6965
 #
6966 6966
 # This file is free software; the Free Software Foundation
6967 6967
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6984,20 +6959,16 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6984 6984
 # arguments mandatory, and then we can depend on a new Autoconf
6985 6985
 # release and drop the old call support.
6986 6986
 AC_DEFUN([AM_INIT_AUTOMAKE],
6987
-[AC_PREREQ([2.60])dnl
6987
+[AC_PREREQ([2.58])dnl
6988 6988
 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6989 6989
 dnl the ones we care about.
6990 6990
 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6991 6991
 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6992 6992
 AC_REQUIRE([AC_PROG_INSTALL])dnl
6993
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
6994
-  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6995
-  # is not polluted with repeated "-I."
6996
-  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
6997
-  # test to see if srcdir already configured
6998
-  if test -f $srcdir/config.status; then
6999
-    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7000
-  fi
6993
+# test to see if srcdir already configured
6994
+if test "`cd $srcdir && pwd`" != "`pwd`" &&
6995
+   test -f $srcdir/config.status; then
6996
+  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7001 6997
 fi
7002 6998
 
7003 6999
 # test whether we have cygpath
... ...
@@ -7017,9 +6988,6 @@ m4_ifval([$2],
7017 7017
  AC_SUBST([PACKAGE], [$1])dnl
7018 7018
  AC_SUBST([VERSION], [$2])],
7019 7019
 [_AM_SET_OPTIONS([$1])dnl
7020
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7021
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7022
-  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7023 7020
  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7024 7021
  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7025 7022
 
... ...
@@ -7055,10 +7023,6 @@ AC_PROVIDE_IFELSE([AC_PROG_CXX],
7055 7055
                   [_AM_DEPENDENCIES(CXX)],
7056 7056
                   [define([AC_PROG_CXX],
7057 7057
                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7058
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7059
-                  [_AM_DEPENDENCIES(OBJC)],
7060
-                  [define([AC_PROG_OBJC],
7061
-                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7062 7058
 ])
7063 7059
 ])
7064 7060
 
... ...
@@ -7094,7 +7058,7 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7094 7094
 # Define $install_sh.
7095 7095
 AC_DEFUN([AM_PROG_INSTALL_SH],
7096 7096
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7097
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7097
+install_sh=${install_sh-"$am_aux_dir/install-sh"}
7098 7098
 AC_SUBST(install_sh)])
7099 7099
 
7100 7100
 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
... ...
@@ -7172,14 +7136,14 @@ rm -f confinc confmf
7172 7172
 
7173 7173
 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7174 7174
 
7175
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7175
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7176 7176
 # Free Software Foundation, Inc.
7177 7177
 #
7178 7178
 # This file is free software; the Free Software Foundation
7179 7179
 # gives unlimited permission to copy and/or distribute it,
7180 7180
 # with or without modifications, as long as this notice is preserved.
7181 7181
 
7182
-# serial 5
7182
+# serial 4
7183 7183
 
7184 7184
 # AM_MISSING_PROG(NAME, PROGRAM)
7185 7185
 # ------------------------------
... ...
@@ -7195,7 +7159,6 @@ AC_SUBST($1)])
7195 7195
 # If it does, set am_missing_run to use it, otherwise, to nothing.
7196 7196
 AC_DEFUN([AM_MISSING_HAS_RUN],
7197 7197
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7198
-AC_REQUIRE_AUX_FILE([missing])dnl
7199 7198
 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7200 7199
 # Use eval to expand $SHELL
7201 7200
 if eval "$MISSING --run true"; then
... ...
@@ -7206,7 +7169,7 @@ else
7206 7206
 fi
7207 7207
 ])
7208 7208
 
7209
-# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7209
+# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7210 7210
 #
7211 7211
 # This file is free software; the Free Software Foundation
7212 7212
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -7214,23 +7177,60 @@ fi
7214 7214
 
7215 7215
 # AM_PROG_MKDIR_P
7216 7216
 # ---------------
7217
-# Check for `mkdir -p'.
7217
+# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7218
+#
7219
+# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7220
+# created by `make install' are always world readable, even if the
7221
+# installer happens to have an overly restrictive umask (e.g. 077).
7222
+# This was a mistake.  There are at least two reasons why we must not
7223
+# use `-m 0755':
7224
+#   - it causes special bits like SGID to be ignored,
7225
+#   - it may be too restrictive (some setups expect 775 directories).
7226
+#
7227
+# Do not use -m 0755 and let people choose whatever they expect by
7228
+# setting umask.
7229
+#
7230
+# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7231
+# Some implementations (such as Solaris 8's) are not thread-safe: if a
7232
+# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7233
+# concurrently, both version can detect that a/ is missing, but only
7234
+# one can create it and the other will error out.  Consequently we
7235
+# restrict ourselves to GNU make (using the --version option ensures
7236
+# this.)
7218 7237
 AC_DEFUN([AM_PROG_MKDIR_P],
7219
-[AC_PREREQ([2.60])dnl
7220
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7221
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
7222
-dnl while keeping a definition of mkdir_p for backward compatibility.
7223
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7224
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7225
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
7226
-dnl adjustment using top_builddir (which is defined more often than
7227
-dnl MKDIR_P).
7228
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7229
-case $mkdir_p in
7230
-  [[\\/$]]* | ?:[[\\/]]*) ;;
7231
-  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7232
-esac
7233
-])
7238
+[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7239
+  # We used to keeping the `.' as first argument, in order to
7240
+  # allow $(mkdir_p) to be used without argument.  As in
7241
+  #   $(mkdir_p) $(somedir)
7242
+  # where $(somedir) is conditionally defined.  However this is wrong
7243
+  # for two reasons:
7244
+  #  1. if the package is installed by a user who cannot write `.'
7245
+  #     make install will fail,
7246
+  #  2. the above comment should most certainly read
7247
+  #     $(mkdir_p) $(DESTDIR)$(somedir)
7248
+  #     so it does not work when $(somedir) is undefined and
7249
+  #     $(DESTDIR) is not.
7250
+  #  To support the latter case, we have to write
7251
+  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7252
+  #  so the `.' trick is pointless.
7253
+  mkdir_p='mkdir -p --'
7254
+else
7255
+  # On NextStep and OpenStep, the `mkdir' command does not
7256
+  # recognize any option.  It will interpret all options as
7257
+  # directories to create, and then abort because `.' already
7258
+  # exists.
7259
+  for d in ./-p ./--version;
7260
+  do
7261
+    test -d $d && rmdir $d
7262
+  done
7263
+  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7264
+  if test -f "$ac_aux_dir/mkinstalldirs"; then
7265
+    mkdir_p='$(mkinstalldirs)'
7266
+  else
7267
+    mkdir_p='$(install_sh) -d'
7268
+  fi
7269
+fi
7270
+AC_SUBST([mkdir_p])])
7234 7271
 
7235 7272
 # Helper functions for option handling.                     -*- Autoconf -*-
7236 7273
 
... ...
@@ -7342,21 +7342,9 @@ dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7342 7342
 if test "$cross_compiling" != no; then
7343 7343
   AC_CHECK_TOOL([STRIP], [strip], :)
7344 7344
 fi
7345
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7345
+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7346 7346
 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7347 7347
 
7348
-# Copyright (C) 2006  Free Software Foundation, Inc.
7349
-#
7350
-# This file is free software; the Free Software Foundation
7351
-# gives unlimited permission to copy and/or distribute it,
7352
-# with or without modifications, as long as this notice is preserved.
7353
-
7354
-# _AM_SUBST_NOTMAKE(VARIABLE)
7355
-# ---------------------------
7356
-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7357
-# This macro is traced by Automake.
7358
-AC_DEFUN([_AM_SUBST_NOTMAKE])
7359
-
7360 7348
 # Check how to create a tarball.                            -*- Autoconf -*-
7361 7349
 
7362 7350
 # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,11 +32,15 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
35 37
 VPATH = @srcdir@
36 38
 pkgdatadir = $(datadir)/@PACKAGE@
37 39
 pkglibdir = $(libdir)/@PACKAGE@
38 40
 pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ..
39 42
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
40 44
 install_sh_DATA = $(install_sh) -c -m 644
41 45
 install_sh_PROGRAM = $(install_sh) -c
42 46
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -81,18 +85,17 @@ am__clamav_milter_SOURCES_DIST = $(top_srcdir)/shared/cfgparser.c \
81 81
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@	clamav-milter.$(OBJEXT)
82 82
 clamav_milter_OBJECTS = $(am_clamav_milter_OBJECTS)
83 83
 clamav_milter_LDADD = $(LDADD)
84
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
84
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
85 85
 depcomp = $(SHELL) $(top_srcdir)/depcomp
86 86
 am__depfiles_maybe = depfiles
87 87
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
88 88
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
89
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
90
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
91
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
89
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
90
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
91
+	$(AM_CFLAGS) $(CFLAGS)
92 92
 CCLD = $(CC)
93
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
94
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
95
-	$(LDFLAGS) -o $@
93
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
94
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
96 95
 SOURCES = $(clamav_milter_SOURCES)
97 96
 DIST_SOURCES = $(am__clamav_milter_SOURCES_DIST)
98 97
 man8dir = $(mandir)/man8
... ...
@@ -102,12 +105,16 @@ ETAGS = etags
102 102
 CTAGS = ctags
103 103
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
104 104
 ACLOCAL = @ACLOCAL@
105
+AMDEP_FALSE = @AMDEP_FALSE@
106
+AMDEP_TRUE = @AMDEP_TRUE@
105 107
 AMTAR = @AMTAR@
106 108
 AR = @AR@
107 109
 AUTOCONF = @AUTOCONF@
108 110
 AUTOHEADER = @AUTOHEADER@
109 111
 AUTOMAKE = @AUTOMAKE@
110 112
 AWK = @AWK@
113
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
114
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
111 115
 CC = @CC@
112 116
 CCDEPMODE = @CCDEPMODE@
113 117
 CFGDIR = @CFGDIR@
... ...
@@ -131,13 +138,16 @@ ECHO_C = @ECHO_C@
131 131
 ECHO_N = @ECHO_N@
132 132
 ECHO_T = @ECHO_T@
133 133
 EGREP = @EGREP@
134
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
135
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
134 136
 EXEEXT = @EXEEXT@
135 137
 F77 = @F77@
136 138
 FFLAGS = @FFLAGS@
137 139
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
138 140
 GETENT = @GETENT@
139 141
 GREP = @GREP@
140
-INSTALL = @INSTALL@
142
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
143
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
141 144
 INSTALL_DATA = @INSTALL_DATA@
142 145
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
143 146
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -151,8 +161,9 @@ LIBTOOL = @LIBTOOL@
151 151
 LN_S = @LN_S@
152 152
 LTLIBOBJS = @LTLIBOBJS@
153 153
 MAINT = @MAINT@
154
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
155
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
154 156
 MAKEINFO = @MAKEINFO@
155
-MKDIR_P = @MKDIR_P@
156 157
 OBJEXT = @OBJEXT@
157 158
 PACKAGE = @PACKAGE@
158 159
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -169,13 +180,13 @@ STRIP = @STRIP@
169 169
 THREAD_LIBS = @THREAD_LIBS@
170 170
 TH_SAFE = @TH_SAFE@
171 171
 VERSION = @VERSION@
172
-abs_builddir = @abs_builddir@
173
-abs_srcdir = @abs_srcdir@
174
-abs_top_builddir = @abs_top_builddir@
175
-abs_top_srcdir = @abs_top_srcdir@
176 172
 ac_ct_CC = @ac_ct_CC@
177 173
 ac_ct_CXX = @ac_ct_CXX@
178 174
 ac_ct_F77 = @ac_ct_F77@
175
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
176
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
177
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
178
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
179 179
 am__include = @am__include@
180 180
 am__leading_dot = @am__leading_dot@
181 181
 am__quote = @am__quote@
... ...
@@ -187,7 +198,6 @@ build_alias = @build_alias@
187 187
 build_cpu = @build_cpu@
188 188
 build_os = @build_os@
189 189
 build_vendor = @build_vendor@
190
-builddir = @builddir@
191 190
 datadir = @datadir@
192 191
 datarootdir = @datarootdir@
193 192
 docdir = @docdir@
... ...
@@ -216,15 +226,12 @@ psdir = @psdir@
216 216
 sbindir = @sbindir@
217 217
 sendmailprog = @sendmailprog@
218 218
 sharedstatedir = @sharedstatedir@
219
-srcdir = @srcdir@
220 219
 sysconfdir = @sysconfdir@
221 220
 target = @target@
222 221
 target_alias = @target_alias@
223 222
 target_cpu = @target_cpu@
224 223
 target_os = @target_os@
225 224
 target_vendor = @target_vendor@
226
-top_builddir = @top_builddir@
227
-top_srcdir = @top_srcdir@
228 225
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@clamav_milter_SOURCES = \
229 226
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@    $(top_srcdir)/shared/cfgparser.c \
230 227
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@    $(top_srcdir)/shared/cfgparser.h \
... ...
@@ -276,7 +283,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
276 276
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277 277
 install-sbinPROGRAMS: $(sbin_PROGRAMS)
278 278
 	@$(NORMAL_INSTALL)
279
-	test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
279
+	test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
280 280
 	@list='$(sbin_PROGRAMS)'; for p in $$list; do \
281 281
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
282 282
 	  if test -f $$p \
... ...
@@ -304,7 +311,7 @@ clean-sbinPROGRAMS:
304 304
 	done
305 305
 clamav-milter$(EXEEXT): $(clamav_milter_OBJECTS) $(clamav_milter_DEPENDENCIES) 
306 306
 	@rm -f clamav-milter$(EXEEXT)
307
-	$(LINK) $(clamav_milter_OBJECTS) $(clamav_milter_LDADD) $(LIBS)
307
+	$(LINK) $(clamav_milter_LDFLAGS) $(clamav_milter_OBJECTS) $(clamav_milter_LDADD) $(LIBS)
308 308
 
309 309
 mostlyclean-compile:
310 310
 	-rm -f *.$(OBJEXT)
... ...
@@ -320,92 +327,92 @@ distclean-compile:
320 320
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
321 321
 
322 322
 .c.o:
323
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
324
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
324
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
325 325
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326 326
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327 327
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
328 328
 
329 329
 .c.obj:
330
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
331
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
330
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
331
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
332 332
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
333 333
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334 334
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
335 335
 
336 336
 .c.lo:
337
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
338
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
337
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
338
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
339 339
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
340 340
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
341 341
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
342 342
 
343 343
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
344
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
345
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
344
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
345
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
346 346
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
347 347
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
348 348
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
349 349
 
350 350
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
351
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
352
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
351
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
352
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
353 353
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
354 354
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
355 355
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
356 356
 
357 357
 output.o: $(top_srcdir)/shared/output.c
358
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
359
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
358
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
359
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
360 360
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
361 361
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362 362
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
363 363
 
364 364
 output.obj: $(top_srcdir)/shared/output.c
365
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
366
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
365
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
366
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
367 367
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
368 368
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
369 369
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
370 370
 
371 371
 getopt.o: $(top_srcdir)/shared/getopt.c
372
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
373
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
372
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
373
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
374 374
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
375 375
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
376 376
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
377 377
 
378 378
 getopt.obj: $(top_srcdir)/shared/getopt.c
379
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
380
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
379
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
380
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
381 381
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
382 382
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
383 383
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
384 384
 
385 385
 misc.o: $(top_srcdir)/shared/misc.c
386
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
387
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
386
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
387
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
388 388
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
389 389
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390 390
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
391 391
 
392 392
 misc.obj: $(top_srcdir)/shared/misc.c
393
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
394
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
393
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
394
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
395 395
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
396 396
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397 397
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
398 398
 
399 399
 network.o: $(top_srcdir)/shared/network.c
400
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
401
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
400
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c; \
401
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
402 402
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.o' libtool=no @AMDEPBACKSLASH@
403 403
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404 404
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
405 405
 
406 406
 network.obj: $(top_srcdir)/shared/network.c
407
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
408
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
407
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`; \
408
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
409 409
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.obj' libtool=no @AMDEPBACKSLASH@
410 410
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
411 411
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
... ...
@@ -415,9 +422,13 @@ mostlyclean-libtool:
415 415
 
416 416
 clean-libtool:
417 417
 	-rm -rf .libs _libs
418
+
419
+distclean-libtool:
420
+	-rm -f libtool
421
+uninstall-info-am:
418 422
 install-man8: $(man8_MANS) $(man_MANS)
419 423
 	@$(NORMAL_INSTALL)
420
-	test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
424
+	test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
421 425
 	@list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
422 426
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
423 427
 	for i in $$l2; do \
... ...
@@ -510,21 +521,22 @@ distclean-tags:
510 510
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
511 511
 
512 512
 distdir: $(DISTFILES)
513
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
514
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
515
-	list='$(DISTFILES)'; \
516
-	  dist_files=`for file in $$list; do echo $$file; done | \
517
-	  sed -e "s|^$$srcdirstrip/||;t" \
518
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
519
-	case $$dist_files in \
520
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
521
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
522
-			   sort -u` ;; \
523
-	esac; \
524
-	for file in $$dist_files; do \
513
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
514
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
515
+	list='$(DISTFILES)'; for file in $$list; do \
516
+	  case $$file in \
517
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
518
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
519
+	  esac; \
525 520
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
521
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
522
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
523
+	    dir="/$$dir"; \
524
+	    $(mkdir_p) "$(distdir)$$dir"; \
525
+	  else \
526
+	    dir=''; \
527
+	  fi; \
526 528
 	  if test -d $$d/$$file; then \
527
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
528 529
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
529 530
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
530 531
 	    fi; \
... ...
@@ -540,7 +552,7 @@ check: check-am
540 540
 all-am: Makefile $(PROGRAMS) $(MANS)
541 541
 installdirs:
542 542
 	for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"; do \
543
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
543
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
544 544
 	done
545 545
 install: install-am
546 546
 install-exec: install-exec-am
... ...
@@ -575,7 +587,7 @@ distclean: distclean-am
575 575
 	-rm -rf ./$(DEPDIR)
576 576
 	-rm -f Makefile
577 577
 distclean-am: clean-am distclean-compile distclean-generic \
578
-	distclean-tags
578
+	distclean-libtool distclean-tags
579 579
 
580 580
 dvi: dvi-am
581 581
 
... ...
@@ -589,20 +601,12 @@ info-am:
589 589
 
590 590
 install-data-am: install-man
591 591
 
592
-install-dvi: install-dvi-am
593
-
594 592
 install-exec-am: install-sbinPROGRAMS
595 593
 
596
-install-html: install-html-am
597
-
598 594
 install-info: install-info-am
599 595
 
600 596
 install-man: install-man8
601 597
 
602
-install-pdf: install-pdf-am
603
-
604
-install-ps: install-ps-am
605
-
606 598
 installcheck-am:
607 599
 
608 600
 maintainer-clean: maintainer-clean-am
... ...
@@ -623,26 +627,22 @@ ps: ps-am
623 623
 
624 624
 ps-am:
625 625
 
626
-uninstall-am: uninstall-man uninstall-sbinPROGRAMS
626
+uninstall-am: uninstall-info-am uninstall-man uninstall-sbinPROGRAMS
627 627
 
628 628
 uninstall-man: uninstall-man8
629 629
 
630
-.MAKE: install-am install-strip
631
-
632 630
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
633 631
 	clean-libtool clean-sbinPROGRAMS ctags distclean \
634 632
 	distclean-compile distclean-generic distclean-libtool \
635 633
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
636
-	install install-am install-data install-data-am install-dvi \
637
-	install-dvi-am install-exec install-exec-am install-html \
638
-	install-html-am install-info install-info-am install-man \
639
-	install-man8 install-pdf install-pdf-am install-ps \
640
-	install-ps-am install-sbinPROGRAMS install-strip installcheck \
634
+	install install-am install-data install-data-am install-exec \
635
+	install-exec-am install-info install-info-am install-man \
636
+	install-man8 install-sbinPROGRAMS install-strip installcheck \
641 637
 	installcheck-am installdirs maintainer-clean \
642 638
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
643 639
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
644
-	tags uninstall uninstall-am uninstall-man uninstall-man8 \
645
-	uninstall-sbinPROGRAMS
640
+	tags uninstall uninstall-am uninstall-info-am uninstall-man \
641
+	uninstall-man8 uninstall-sbinPROGRAMS
646 642
 
647 643
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
648 644
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,11 +32,15 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
35 37
 VPATH = @srcdir@
36 38
 pkgdatadir = $(datadir)/@PACKAGE@
37 39
 pkglibdir = $(libdir)/@PACKAGE@
38 40
 pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ..
39 42
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
40 44
 install_sh_DATA = $(install_sh) -c -m 644
41 45
 install_sh_PROGRAM = $(install_sh) -c
42 46
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -69,30 +73,33 @@ am_clamconf_OBJECTS = cfgparser.$(OBJEXT) misc.$(OBJEXT) \
69 69
 	getopt.$(OBJEXT) clamconf.$(OBJEXT)
70 70
 clamconf_OBJECTS = $(am_clamconf_OBJECTS)
71 71
 clamconf_LDADD = $(LDADD)
72
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
72
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
73 73
 depcomp = $(SHELL) $(top_srcdir)/depcomp
74 74
 am__depfiles_maybe = depfiles
75 75
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
76 76
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
77
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
79
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
77
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
78
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
79
+	$(AM_CFLAGS) $(CFLAGS)
80 80
 CCLD = $(CC)
81
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
82
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
83
-	$(LDFLAGS) -o $@
81
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
82
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
84 83
 SOURCES = $(clamconf_SOURCES)
85 84
 DIST_SOURCES = $(clamconf_SOURCES)
86 85
 ETAGS = etags
87 86
 CTAGS = ctags
88 87
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89 88
 ACLOCAL = @ACLOCAL@
89
+AMDEP_FALSE = @AMDEP_FALSE@
90
+AMDEP_TRUE = @AMDEP_TRUE@
90 91
 AMTAR = @AMTAR@
91 92
 AR = @AR@
92 93
 AUTOCONF = @AUTOCONF@
93 94
 AUTOHEADER = @AUTOHEADER@
94 95
 AUTOMAKE = @AUTOMAKE@
95 96
 AWK = @AWK@
97
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
98
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
96 99
 CC = @CC@
97 100
 CCDEPMODE = @CCDEPMODE@
98 101
 CFGDIR = @CFGDIR@
... ...
@@ -116,13 +123,16 @@ ECHO_C = @ECHO_C@
116 116
 ECHO_N = @ECHO_N@
117 117
 ECHO_T = @ECHO_T@
118 118
 EGREP = @EGREP@
119
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
120
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
119 121
 EXEEXT = @EXEEXT@
120 122
 F77 = @F77@
121 123
 FFLAGS = @FFLAGS@
122 124
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
123 125
 GETENT = @GETENT@
124 126
 GREP = @GREP@
125
-INSTALL = @INSTALL@
127
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
128
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
126 129
 INSTALL_DATA = @INSTALL_DATA@
127 130
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
128 131
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -136,8 +146,9 @@ LIBTOOL = @LIBTOOL@
136 136
 LN_S = @LN_S@
137 137
 LTLIBOBJS = @LTLIBOBJS@
138 138
 MAINT = @MAINT@
139
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
140
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
139 141
 MAKEINFO = @MAKEINFO@
140
-MKDIR_P = @MKDIR_P@
141 142
 OBJEXT = @OBJEXT@
142 143
 PACKAGE = @PACKAGE@
143 144
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -154,13 +165,13 @@ STRIP = @STRIP@
154 154
 THREAD_LIBS = @THREAD_LIBS@
155 155
 TH_SAFE = @TH_SAFE@
156 156
 VERSION = @VERSION@
157
-abs_builddir = @abs_builddir@
158
-abs_srcdir = @abs_srcdir@
159
-abs_top_builddir = @abs_top_builddir@
160
-abs_top_srcdir = @abs_top_srcdir@
161 157
 ac_ct_CC = @ac_ct_CC@
162 158
 ac_ct_CXX = @ac_ct_CXX@
163 159
 ac_ct_F77 = @ac_ct_F77@
160
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
161
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
162
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
163
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
164 164
 am__include = @am__include@
165 165
 am__leading_dot = @am__leading_dot@
166 166
 am__quote = @am__quote@
... ...
@@ -172,7 +183,6 @@ build_alias = @build_alias@
172 172
 build_cpu = @build_cpu@
173 173
 build_os = @build_os@
174 174
 build_vendor = @build_vendor@
175
-builddir = @builddir@
176 175
 datadir = @datadir@
177 176
 datarootdir = @datarootdir@
178 177
 docdir = @docdir@
... ...
@@ -201,15 +211,12 @@ psdir = @psdir@
201 201
 sbindir = @sbindir@
202 202
 sendmailprog = @sendmailprog@
203 203
 sharedstatedir = @sharedstatedir@
204
-srcdir = @srcdir@
205 204
 sysconfdir = @sysconfdir@
206 205
 target = @target@
207 206
 target_alias = @target_alias@
208 207
 target_cpu = @target_cpu@
209 208
 target_os = @target_os@
210 209
 target_vendor = @target_vendor@
211
-top_builddir = @top_builddir@
212
-top_srcdir = @top_srcdir@
213 210
 clamconf_SOURCES = \
214 211
     $(top_srcdir)/shared/cfgparser.c \
215 212
     $(top_srcdir)/shared/cfgparser.h \
... ...
@@ -255,7 +262,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
255 255
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256 256
 install-binPROGRAMS: $(bin_PROGRAMS)
257 257
 	@$(NORMAL_INSTALL)
258
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
258
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
259 259
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
260 260
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
261 261
 	  if test -f $$p \
... ...
@@ -283,7 +290,7 @@ clean-binPROGRAMS:
283 283
 	done
284 284
 clamconf$(EXEEXT): $(clamconf_OBJECTS) $(clamconf_DEPENDENCIES) 
285 285
 	@rm -f clamconf$(EXEEXT)
286
-	$(LINK) $(clamconf_OBJECTS) $(clamconf_LDADD) $(LIBS)
286
+	$(LINK) $(clamconf_LDFLAGS) $(clamconf_OBJECTS) $(clamconf_LDADD) $(LIBS)
287 287
 
288 288
 mostlyclean-compile:
289 289
 	-rm -f *.$(OBJEXT)
... ...
@@ -297,64 +304,64 @@ distclean-compile:
297 297
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
298 298
 
299 299
 .c.o:
300
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
301
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
301
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
302 302
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
303 303
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
304 304
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
305 305
 
306 306
 .c.obj:
307
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
308
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
308
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
309 309
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310 310
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311 311
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
312 312
 
313 313
 .c.lo:
314
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
314
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
315
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
316 316
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
317 317
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 318
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
319 319
 
320 320
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
321
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
322
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
321
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
322
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
323 323
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
324 324
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325 325
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
326 326
 
327 327
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
328
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
329
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
328
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
329
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
330 330
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
331 331
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332 332
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
333 333
 
334 334
 misc.o: $(top_srcdir)/shared/misc.c
335
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
336
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
335
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
336
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
337 337
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
338 338
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339 339
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
340 340
 
341 341
 misc.obj: $(top_srcdir)/shared/misc.c
342
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
343
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
342
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
343
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
344 344
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
345 345
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 346
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
347 347
 
348 348
 getopt.o: $(top_srcdir)/shared/getopt.c
349
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
350
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
349
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
350
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
351 351
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
352 352
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 353
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
354 354
 
355 355
 getopt.obj: $(top_srcdir)/shared/getopt.c
356
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
357
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
356
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
357
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
358 358
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
359 359
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
360 360
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
... ...
@@ -365,6 +372,10 @@ mostlyclean-libtool:
365 365
 clean-libtool:
366 366
 	-rm -rf .libs _libs
367 367
 
368
+distclean-libtool:
369
+	-rm -f libtool
370
+uninstall-info-am:
371
+
368 372
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
369 373
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
370 374
 	unique=`for i in $$list; do \
... ...
@@ -414,21 +425,22 @@ distclean-tags:
414 414
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
415 415
 
416 416
 distdir: $(DISTFILES)
417
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
418
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
419
-	list='$(DISTFILES)'; \
420
-	  dist_files=`for file in $$list; do echo $$file; done | \
421
-	  sed -e "s|^$$srcdirstrip/||;t" \
422
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
423
-	case $$dist_files in \
424
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
425
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
426
-			   sort -u` ;; \
427
-	esac; \
428
-	for file in $$dist_files; do \
417
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
418
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
419
+	list='$(DISTFILES)'; for file in $$list; do \
420
+	  case $$file in \
421
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
422
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
423
+	  esac; \
429 424
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
425
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
426
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
427
+	    dir="/$$dir"; \
428
+	    $(mkdir_p) "$(distdir)$$dir"; \
429
+	  else \
430
+	    dir=''; \
431
+	  fi; \
430 432
 	  if test -d $$d/$$file; then \
431
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
432 433
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
433 434
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
434 435
 	    fi; \
... ...
@@ -444,7 +456,7 @@ check: check-am
444 444
 all-am: Makefile $(PROGRAMS)
445 445
 installdirs:
446 446
 	for dir in "$(DESTDIR)$(bindir)"; do \
447
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
447
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
448 448
 	done
449 449
 install: install-am
450 450
 install-exec: install-exec-am
... ...
@@ -478,7 +490,7 @@ distclean: distclean-am
478 478
 	-rm -rf ./$(DEPDIR)
479 479
 	-rm -f Makefile
480 480
 distclean-am: clean-am distclean-compile distclean-generic \
481
-	distclean-tags
481
+	distclean-libtool distclean-tags
482 482
 
483 483
 dvi: dvi-am
484 484
 
... ...
@@ -492,20 +504,12 @@ info-am:
492 492
 
493 493
 install-data-am:
494 494
 
495
-install-dvi: install-dvi-am
496
-
497 495
 install-exec-am: install-binPROGRAMS
498 496
 
499
-install-html: install-html-am
500
-
501 497
 install-info: install-info-am
502 498
 
503 499
 install-man:
504 500
 
505
-install-pdf: install-pdf-am
506
-
507
-install-ps: install-ps-am
508
-
509 501
 installcheck-am:
510 502
 
511 503
 maintainer-clean: maintainer-clean-am
... ...
@@ -526,23 +530,19 @@ ps: ps-am
526 526
 
527 527
 ps-am:
528 528
 
529
-uninstall-am: uninstall-binPROGRAMS
530
-
531
-.MAKE: install-am install-strip
529
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
532 530
 
533 531
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
534 532
 	clean-generic clean-libtool ctags distclean distclean-compile \
535 533
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
536 534
 	dvi-am html html-am info info-am install install-am \
537
-	install-binPROGRAMS install-data install-data-am install-dvi \
538
-	install-dvi-am install-exec install-exec-am install-html \
539
-	install-html-am install-info install-info-am install-man \
540
-	install-pdf install-pdf-am install-ps install-ps-am \
535
+	install-binPROGRAMS install-data install-data-am install-exec \
536
+	install-exec-am install-info install-info-am install-man \
541 537
 	install-strip installcheck installcheck-am installdirs \
542 538
 	maintainer-clean maintainer-clean-generic mostlyclean \
543 539
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
544 540
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
545
-	uninstall-binPROGRAMS
541
+	uninstall-binPROGRAMS uninstall-info-am
546 542
 
547 543
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
548 544
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,11 +32,15 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
35 37
 VPATH = @srcdir@
36 38
 pkgdatadir = $(datadir)/@PACKAGE@
37 39
 pkglibdir = $(libdir)/@PACKAGE@
38 40
 pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ..
39 42
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
40 44
 install_sh_DATA = $(install_sh) -c -m 644
41 45
 install_sh_PROGRAM = $(install_sh) -c
42 46
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -89,30 +93,33 @@ am__clamd_SOURCES_DIST = $(top_srcdir)/shared/output.c \
89 89
 @BUILD_CLAMD_TRUE@	dazukoio.$(OBJEXT)
90 90
 clamd_OBJECTS = $(am_clamd_OBJECTS)
91 91
 clamd_LDADD = $(LDADD)
92
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
92
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
93 93
 depcomp = $(SHELL) $(top_srcdir)/depcomp
94 94
 am__depfiles_maybe = depfiles
95 95
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
96 96
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
97
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
98
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
99
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
97
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
98
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
99
+	$(AM_CFLAGS) $(CFLAGS)
100 100
 CCLD = $(CC)
101
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
102
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
103
-	$(LDFLAGS) -o $@
101
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
102
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
104 103
 SOURCES = $(clamd_SOURCES)
105 104
 DIST_SOURCES = $(am__clamd_SOURCES_DIST)
106 105
 ETAGS = etags
107 106
 CTAGS = ctags
108 107
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
109 108
 ACLOCAL = @ACLOCAL@
109
+AMDEP_FALSE = @AMDEP_FALSE@
110
+AMDEP_TRUE = @AMDEP_TRUE@
110 111
 AMTAR = @AMTAR@
111 112
 AR = @AR@
112 113
 AUTOCONF = @AUTOCONF@
113 114
 AUTOHEADER = @AUTOHEADER@
114 115
 AUTOMAKE = @AUTOMAKE@
115 116
 AWK = @AWK@
117
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
118
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
116 119
 CC = @CC@
117 120
 CCDEPMODE = @CCDEPMODE@
118 121
 CFGDIR = @CFGDIR@
... ...
@@ -136,13 +143,16 @@ ECHO_C = @ECHO_C@
136 136
 ECHO_N = @ECHO_N@
137 137
 ECHO_T = @ECHO_T@
138 138
 EGREP = @EGREP@
139
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
140
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
139 141
 EXEEXT = @EXEEXT@
140 142
 F77 = @F77@
141 143
 FFLAGS = @FFLAGS@
142 144
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
143 145
 GETENT = @GETENT@
144 146
 GREP = @GREP@
145
-INSTALL = @INSTALL@
147
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
148
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
146 149
 INSTALL_DATA = @INSTALL_DATA@
147 150
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
148 151
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -156,8 +166,9 @@ LIBTOOL = @LIBTOOL@
156 156
 LN_S = @LN_S@
157 157
 LTLIBOBJS = @LTLIBOBJS@
158 158
 MAINT = @MAINT@
159
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
160
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
159 161
 MAKEINFO = @MAKEINFO@
160
-MKDIR_P = @MKDIR_P@
161 162
 OBJEXT = @OBJEXT@
162 163
 PACKAGE = @PACKAGE@
163 164
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -174,13 +185,13 @@ STRIP = @STRIP@
174 174
 THREAD_LIBS = @THREAD_LIBS@
175 175
 TH_SAFE = @TH_SAFE@
176 176
 VERSION = @VERSION@
177
-abs_builddir = @abs_builddir@
178
-abs_srcdir = @abs_srcdir@
179
-abs_top_builddir = @abs_top_builddir@
180
-abs_top_srcdir = @abs_top_srcdir@
181 177
 ac_ct_CC = @ac_ct_CC@
182 178
 ac_ct_CXX = @ac_ct_CXX@
183 179
 ac_ct_F77 = @ac_ct_F77@
180
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
181
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
182
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
183
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
184 184
 am__include = @am__include@
185 185
 am__leading_dot = @am__leading_dot@
186 186
 am__quote = @am__quote@
... ...
@@ -192,7 +203,6 @@ build_alias = @build_alias@
192 192
 build_cpu = @build_cpu@
193 193
 build_os = @build_os@
194 194
 build_vendor = @build_vendor@
195
-builddir = @builddir@
196 195
 datadir = @datadir@
197 196
 datarootdir = @datarootdir@
198 197
 docdir = @docdir@
... ...
@@ -221,15 +231,12 @@ psdir = @psdir@
221 221
 sbindir = @sbindir@
222 222
 sendmailprog = @sendmailprog@
223 223
 sharedstatedir = @sharedstatedir@
224
-srcdir = @srcdir@
225 224
 sysconfdir = @sysconfdir@
226 225
 target = @target@
227 226
 target_alias = @target_alias@
228 227
 target_cpu = @target_cpu@
229 228
 target_os = @target_os@
230 229
 target_vendor = @target_vendor@
231
-top_builddir = @top_builddir@
232
-top_srcdir = @top_srcdir@
233 230
 @BUILD_CLAMD_TRUE@clamd_SOURCES = \
234 231
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.c \
235 232
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.h \
... ...
@@ -304,7 +311,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
304 304
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
305 305
 install-sbinPROGRAMS: $(sbin_PROGRAMS)
306 306
 	@$(NORMAL_INSTALL)
307
-	test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
307
+	test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
308 308
 	@list='$(sbin_PROGRAMS)'; for p in $$list; do \
309 309
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
310 310
 	  if test -f $$p \
... ...
@@ -332,7 +339,7 @@ clean-sbinPROGRAMS:
332 332
 	done
333 333
 clamd$(EXEEXT): $(clamd_OBJECTS) $(clamd_DEPENDENCIES) 
334 334
 	@rm -f clamd$(EXEEXT)
335
-	$(LINK) $(clamd_OBJECTS) $(clamd_LDADD) $(LIBS)
335
+	$(LINK) $(clamd_LDFLAGS) $(clamd_OBJECTS) $(clamd_LDADD) $(LIBS)
336 336
 
337 337
 mostlyclean-compile:
338 338
 	-rm -f *.$(OBJEXT)
... ...
@@ -359,106 +366,106 @@ distclean-compile:
359 359
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thrmgr.Po@am__quote@
360 360
 
361 361
 .c.o:
362
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
363
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
362
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
363
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
365 365
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 366
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
367 367
 
368 368
 .c.obj:
369
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
370
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
369
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
370
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
372 372
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 373
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
374 374
 
375 375
 .c.lo:
376
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
377
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
376
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
377
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
379 379
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 380
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
381 381
 
382 382
 output.o: $(top_srcdir)/shared/output.c
383
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
384
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
383
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
384
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
386 386
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
387 387
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
388 388
 
389 389
 output.obj: $(top_srcdir)/shared/output.c
390
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
391
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
390
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
391
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
393 393
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394 394
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
395 395
 
396 396
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
397
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
398
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
397
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
398
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
400 400
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
401 401
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
402 402
 
403 403
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
404
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
405
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
404
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
405
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
407 407
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408 408
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
409 409
 
410 410
 getopt.o: $(top_srcdir)/shared/getopt.c
411
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
412
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
411
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
412
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
414 414
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
415 415
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
416 416
 
417 417
 getopt.obj: $(top_srcdir)/shared/getopt.c
418
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
419
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
418
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
419
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
420 420
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
421 421
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
422 422
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
423 423
 
424 424
 misc.o: $(top_srcdir)/shared/misc.c
425
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
426
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
425
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
426
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
427 427
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
428 428
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
429 429
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
430 430
 
431 431
 misc.obj: $(top_srcdir)/shared/misc.c
432
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
433
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
432
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
433
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
434 434
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
435 435
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436 436
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
437 437
 
438 438
 network.o: $(top_srcdir)/shared/network.c
439
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
440
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
439
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c; \
440
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
441 441
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.o' libtool=no @AMDEPBACKSLASH@
442 442
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
443 443
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
444 444
 
445 445
 network.obj: $(top_srcdir)/shared/network.c
446
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
447
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
446
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`; \
447
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
448 448
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.obj' libtool=no @AMDEPBACKSLASH@
449 449
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
450 450
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
451 451
 
452 452
 options.o: $(top_srcdir)/shared/options.c
453
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
454
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
453
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
454
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
455 455
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
456 456
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 457
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
458 458
 
459 459
 options.obj: $(top_srcdir)/shared/options.c
460
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
461
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
460
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
461
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
462 462
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
463 463
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
464 464
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -469,6 +476,10 @@ mostlyclean-libtool:
469 469
 clean-libtool:
470 470
 	-rm -rf .libs _libs
471 471
 
472
+distclean-libtool:
473
+	-rm -f libtool
474
+uninstall-info-am:
475
+
472 476
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
473 477
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
474 478
 	unique=`for i in $$list; do \
... ...
@@ -518,21 +529,22 @@ distclean-tags:
518 518
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
519 519
 
520 520
 distdir: $(DISTFILES)
521
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
522
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
523
-	list='$(DISTFILES)'; \
524
-	  dist_files=`for file in $$list; do echo $$file; done | \
525
-	  sed -e "s|^$$srcdirstrip/||;t" \
526
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
527
-	case $$dist_files in \
528
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
529
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
530
-			   sort -u` ;; \
531
-	esac; \
532
-	for file in $$dist_files; do \
521
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
522
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
523
+	list='$(DISTFILES)'; for file in $$list; do \
524
+	  case $$file in \
525
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
526
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
527
+	  esac; \
533 528
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
529
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
530
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
531
+	    dir="/$$dir"; \
532
+	    $(mkdir_p) "$(distdir)$$dir"; \
533
+	  else \
534
+	    dir=''; \
535
+	  fi; \
534 536
 	  if test -d $$d/$$file; then \
535
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
536 537
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
537 538
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
538 539
 	    fi; \
... ...
@@ -548,7 +560,7 @@ check: check-am
548 548
 all-am: Makefile $(PROGRAMS)
549 549
 installdirs:
550 550
 	for dir in "$(DESTDIR)$(sbindir)"; do \
551
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
551
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
552 552
 	done
553 553
 install: install-am
554 554
 install-exec: install-exec-am
... ...
@@ -583,7 +595,7 @@ distclean: distclean-am
583 583
 	-rm -rf ./$(DEPDIR)
584 584
 	-rm -f Makefile
585 585
 distclean-am: clean-am distclean-compile distclean-generic \
586
-	distclean-tags
586
+	distclean-libtool distclean-tags
587 587
 
588 588
 dvi: dvi-am
589 589
 
... ...
@@ -597,20 +609,12 @@ info-am:
597 597
 
598 598
 install-data-am:
599 599
 
600
-install-dvi: install-dvi-am
601
-
602 600
 install-exec-am: install-sbinPROGRAMS
603 601
 
604
-install-html: install-html-am
605
-
606 602
 install-info: install-info-am
607 603
 
608 604
 install-man:
609 605
 
610
-install-pdf: install-pdf-am
611
-
612
-install-ps: install-ps-am
613
-
614 606
 installcheck-am:
615 607
 
616 608
 maintainer-clean: maintainer-clean-am
... ...
@@ -631,23 +635,20 @@ ps: ps-am
631 631
 
632 632
 ps-am:
633 633
 
634
-uninstall-am: uninstall-sbinPROGRAMS
635
-
636
-.MAKE: install-am install-strip
634
+uninstall-am: uninstall-info-am uninstall-sbinPROGRAMS
637 635
 
638 636
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
639 637
 	clean-libtool clean-sbinPROGRAMS ctags distclean \
640 638
 	distclean-compile distclean-generic distclean-libtool \
641 639
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
642
-	install install-am install-data install-data-am install-dvi \
643
-	install-dvi-am install-exec install-exec-am install-html \
644
-	install-html-am install-info install-info-am install-man \
645
-	install-pdf install-pdf-am install-ps install-ps-am \
640
+	install install-am install-data install-data-am install-exec \
641
+	install-exec-am install-info install-info-am install-man \
646 642
 	install-sbinPROGRAMS install-strip installcheck \
647 643
 	installcheck-am installdirs maintainer-clean \
648 644
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
649 645
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
650
-	tags uninstall uninstall-am uninstall-sbinPROGRAMS
646
+	tags uninstall uninstall-am uninstall-info-am \
647
+	uninstall-sbinPROGRAMS
651 648
 
652 649
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
653 650
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,11 +32,15 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
35 37
 VPATH = @srcdir@
36 38
 pkgdatadir = $(datadir)/@PACKAGE@
37 39
 pkglibdir = $(libdir)/@PACKAGE@
38 40
 pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ..
39 42
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
40 44
 install_sh_DATA = $(install_sh) -c -m 644
41 45
 install_sh_PROGRAM = $(install_sh) -c
42 46
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -78,30 +82,33 @@ am__clamdscan_SOURCES_DIST = $(top_srcdir)/shared/output.c \
78 78
 @BUILD_CLAMD_TRUE@	clamdscan.$(OBJEXT) client.$(OBJEXT)
79 79
 clamdscan_OBJECTS = $(am_clamdscan_OBJECTS)
80 80
 clamdscan_LDADD = $(LDADD)
81
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
81
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
82 82
 depcomp = $(SHELL) $(top_srcdir)/depcomp
83 83
 am__depfiles_maybe = depfiles
84 84
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
85 85
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
86
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
87
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
88
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
86
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
87
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
88
+	$(AM_CFLAGS) $(CFLAGS)
89 89
 CCLD = $(CC)
90
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
91
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
92
-	$(LDFLAGS) -o $@
90
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
91
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
93 92
 SOURCES = $(clamdscan_SOURCES)
94 93
 DIST_SOURCES = $(am__clamdscan_SOURCES_DIST)
95 94
 ETAGS = etags
96 95
 CTAGS = ctags
97 96
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
98 97
 ACLOCAL = @ACLOCAL@
98
+AMDEP_FALSE = @AMDEP_FALSE@
99
+AMDEP_TRUE = @AMDEP_TRUE@
99 100
 AMTAR = @AMTAR@
100 101
 AR = @AR@
101 102
 AUTOCONF = @AUTOCONF@
102 103
 AUTOHEADER = @AUTOHEADER@
103 104
 AUTOMAKE = @AUTOMAKE@
104 105
 AWK = @AWK@
106
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
107
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
105 108
 CC = @CC@
106 109
 CCDEPMODE = @CCDEPMODE@
107 110
 CFGDIR = @CFGDIR@
... ...
@@ -125,13 +132,16 @@ ECHO_C = @ECHO_C@
125 125
 ECHO_N = @ECHO_N@
126 126
 ECHO_T = @ECHO_T@
127 127
 EGREP = @EGREP@
128
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
129
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
128 130
 EXEEXT = @EXEEXT@
129 131
 F77 = @F77@
130 132
 FFLAGS = @FFLAGS@
131 133
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
132 134
 GETENT = @GETENT@
133 135
 GREP = @GREP@
134
-INSTALL = @INSTALL@
136
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
137
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
135 138
 INSTALL_DATA = @INSTALL_DATA@
136 139
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
137 140
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -145,8 +155,9 @@ LIBTOOL = @LIBTOOL@
145 145
 LN_S = @LN_S@
146 146
 LTLIBOBJS = @LTLIBOBJS@
147 147
 MAINT = @MAINT@
148
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
149
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
148 150
 MAKEINFO = @MAKEINFO@
149
-MKDIR_P = @MKDIR_P@
150 151
 OBJEXT = @OBJEXT@
151 152
 PACKAGE = @PACKAGE@
152 153
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -163,13 +174,13 @@ STRIP = @STRIP@
163 163
 THREAD_LIBS = @THREAD_LIBS@
164 164
 TH_SAFE = @TH_SAFE@
165 165
 VERSION = @VERSION@
166
-abs_builddir = @abs_builddir@
167
-abs_srcdir = @abs_srcdir@
168
-abs_top_builddir = @abs_top_builddir@
169
-abs_top_srcdir = @abs_top_srcdir@
170 166
 ac_ct_CC = @ac_ct_CC@
171 167
 ac_ct_CXX = @ac_ct_CXX@
172 168
 ac_ct_F77 = @ac_ct_F77@
169
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
170
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
171
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
172
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
173 173
 am__include = @am__include@
174 174
 am__leading_dot = @am__leading_dot@
175 175
 am__quote = @am__quote@
... ...
@@ -181,7 +192,6 @@ build_alias = @build_alias@
181 181
 build_cpu = @build_cpu@
182 182
 build_os = @build_os@
183 183
 build_vendor = @build_vendor@
184
-builddir = @builddir@
185 184
 datadir = @datadir@
186 185
 datarootdir = @datarootdir@
187 186
 docdir = @docdir@
... ...
@@ -210,15 +220,12 @@ psdir = @psdir@
210 210
 sbindir = @sbindir@
211 211
 sendmailprog = @sendmailprog@
212 212
 sharedstatedir = @sharedstatedir@
213
-srcdir = @srcdir@
214 213
 sysconfdir = @sysconfdir@
215 214
 target = @target@
216 215
 target_alias = @target_alias@
217 216
 target_cpu = @target_cpu@
218 217
 target_os = @target_os@
219 218
 target_vendor = @target_vendor@
220
-top_builddir = @top_builddir@
221
-top_srcdir = @top_srcdir@
222 219
 @BUILD_CLAMD_TRUE@clamdscan_SOURCES = \
223 220
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.c \
224 221
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.h \
... ...
@@ -271,7 +278,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
271 271
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272 272
 install-binPROGRAMS: $(bin_PROGRAMS)
273 273
 	@$(NORMAL_INSTALL)
274
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
274
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
275 275
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
276 276
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
277 277
 	  if test -f $$p \
... ...
@@ -299,7 +306,7 @@ clean-binPROGRAMS:
299 299
 	done
300 300
 clamdscan$(EXEEXT): $(clamdscan_OBJECTS) $(clamdscan_DEPENDENCIES) 
301 301
 	@rm -f clamdscan$(EXEEXT)
302
-	$(LINK) $(clamdscan_OBJECTS) $(clamdscan_LDADD) $(LIBS)
302
+	$(LINK) $(clamdscan_LDFLAGS) $(clamdscan_OBJECTS) $(clamdscan_LDADD) $(LIBS)
303 303
 
304 304
 mostlyclean-compile:
305 305
 	-rm -f *.$(OBJEXT)
... ...
@@ -316,92 +323,92 @@ distclean-compile:
316 316
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
317 317
 
318 318
 .c.o:
319
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
320
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
321 321
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
322 322
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323 323
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
324 324
 
325 325
 .c.obj:
326
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
327
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
326
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
327
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
328 328
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
329 329
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330 330
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
331 331
 
332 332
 .c.lo:
333
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
334
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
333
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
334
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
335 335
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
336 336
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 337
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
338 338
 
339 339
 output.o: $(top_srcdir)/shared/output.c
340
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
341
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
340
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
341
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344 344
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
345 345
 
346 346
 output.obj: $(top_srcdir)/shared/output.c
347
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
348
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
347
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
348
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 351
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
352 352
 
353 353
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
354
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
355
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
354
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
355
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358 358
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
359 359
 
360 360
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
361
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
362
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
361
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
362
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365 365
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
366 366
 
367 367
 misc.o: $(top_srcdir)/shared/misc.c
368
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
369
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
368
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
369
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 372
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
373 373
 
374 374
 misc.obj: $(top_srcdir)/shared/misc.c
375
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
376
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
375
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
376
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 379
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
380 380
 
381 381
 getopt.o: $(top_srcdir)/shared/getopt.c
382
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
383
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
382
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
383
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 386
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
387 387
 
388 388
 getopt.obj: $(top_srcdir)/shared/getopt.c
389
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
390
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
389
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
390
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 393
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
394 394
 
395 395
 options.o: $(top_srcdir)/shared/options.c
396
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
397
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
396
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
397
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 400
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
401 401
 
402 402
 options.obj: $(top_srcdir)/shared/options.c
403
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
404
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
403
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
404
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 407
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -412,6 +419,10 @@ mostlyclean-libtool:
412 412
 clean-libtool:
413 413
 	-rm -rf .libs _libs
414 414
 
415
+distclean-libtool:
416
+	-rm -f libtool
417
+uninstall-info-am:
418
+
415 419
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
416 420
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
417 421
 	unique=`for i in $$list; do \
... ...
@@ -461,21 +472,22 @@ distclean-tags:
461 461
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
462 462
 
463 463
 distdir: $(DISTFILES)
464
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
465
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
466
-	list='$(DISTFILES)'; \
467
-	  dist_files=`for file in $$list; do echo $$file; done | \
468
-	  sed -e "s|^$$srcdirstrip/||;t" \
469
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
470
-	case $$dist_files in \
471
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
472
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
473
-			   sort -u` ;; \
474
-	esac; \
475
-	for file in $$dist_files; do \
464
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
465
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
466
+	list='$(DISTFILES)'; for file in $$list; do \
467
+	  case $$file in \
468
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
469
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
470
+	  esac; \
476 471
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
472
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
473
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
474
+	    dir="/$$dir"; \
475
+	    $(mkdir_p) "$(distdir)$$dir"; \
476
+	  else \
477
+	    dir=''; \
478
+	  fi; \
477 479
 	  if test -d $$d/$$file; then \
478
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
479 480
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
480 481
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
481 482
 	    fi; \
... ...
@@ -491,7 +503,7 @@ check: check-am
491 491
 all-am: Makefile $(PROGRAMS)
492 492
 installdirs:
493 493
 	for dir in "$(DESTDIR)$(bindir)"; do \
494
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
494
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
495 495
 	done
496 496
 install: install-am
497 497
 install-exec: install-exec-am
... ...
@@ -525,7 +537,7 @@ distclean: distclean-am
525 525
 	-rm -rf ./$(DEPDIR)
526 526
 	-rm -f Makefile
527 527
 distclean-am: clean-am distclean-compile distclean-generic \
528
-	distclean-tags
528
+	distclean-libtool distclean-tags
529 529
 
530 530
 dvi: dvi-am
531 531
 
... ...
@@ -539,20 +551,12 @@ info-am:
539 539
 
540 540
 install-data-am:
541 541
 
542
-install-dvi: install-dvi-am
543
-
544 542
 install-exec-am: install-binPROGRAMS
545 543
 
546
-install-html: install-html-am
547
-
548 544
 install-info: install-info-am
549 545
 
550 546
 install-man:
551 547
 
552
-install-pdf: install-pdf-am
553
-
554
-install-ps: install-ps-am
555
-
556 548
 installcheck-am:
557 549
 
558 550
 maintainer-clean: maintainer-clean-am
... ...
@@ -573,23 +577,19 @@ ps: ps-am
573 573
 
574 574
 ps-am:
575 575
 
576
-uninstall-am: uninstall-binPROGRAMS
577
-
578
-.MAKE: install-am install-strip
576
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
579 577
 
580 578
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
581 579
 	clean-generic clean-libtool ctags distclean distclean-compile \
582 580
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
583 581
 	dvi-am html html-am info info-am install install-am \
584
-	install-binPROGRAMS install-data install-data-am install-dvi \
585
-	install-dvi-am install-exec install-exec-am install-html \
586
-	install-html-am install-info install-info-am install-man \
587
-	install-pdf install-pdf-am install-ps install-ps-am \
582
+	install-binPROGRAMS install-data install-data-am install-exec \
583
+	install-exec-am install-info install-info-am install-man \
588 584
 	install-strip installcheck installcheck-am installdirs \
589 585
 	maintainer-clean maintainer-clean-generic mostlyclean \
590 586
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
591 587
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
592
-	uninstall-binPROGRAMS
588
+	uninstall-binPROGRAMS uninstall-info-am
593 589
 
594 590
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
595 591
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,11 +33,15 @@
33 33
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
34 34
 #  MA 02110-1301, USA.
35 35
 
36
+srcdir = @srcdir@
37
+top_srcdir = @top_srcdir@
36 38
 VPATH = @srcdir@
37 39
 pkgdatadir = $(datadir)/@PACKAGE@
38 40
 pkglibdir = $(libdir)/@PACKAGE@
39 41
 pkgincludedir = $(includedir)/@PACKAGE@
42
+top_builddir = ..
40 43
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
+INSTALL = @INSTALL@
41 45
 install_sh_DATA = $(install_sh) -c -m 644
42 46
 install_sh_PROGRAM = $(install_sh) -c
43 47
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -72,30 +76,33 @@ am_clamscan_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
72 72
 	treewalk.$(OBJEXT)
73 73
 clamscan_OBJECTS = $(am_clamscan_OBJECTS)
74 74
 clamscan_LDADD = $(LDADD)
75
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
75
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
76 76
 depcomp = $(SHELL) $(top_srcdir)/depcomp
77 77
 am__depfiles_maybe = depfiles
78 78
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
79 79
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
81
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
82
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
81
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
82
+	$(AM_CFLAGS) $(CFLAGS)
83 83
 CCLD = $(CC)
84
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
85
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
86
-	$(LDFLAGS) -o $@
84
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
85
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
87 86
 SOURCES = $(clamscan_SOURCES)
88 87
 DIST_SOURCES = $(clamscan_SOURCES)
89 88
 ETAGS = etags
90 89
 CTAGS = ctags
91 90
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
92 91
 ACLOCAL = @ACLOCAL@
92
+AMDEP_FALSE = @AMDEP_FALSE@
93
+AMDEP_TRUE = @AMDEP_TRUE@
93 94
 AMTAR = @AMTAR@
94 95
 AR = @AR@
95 96
 AUTOCONF = @AUTOCONF@
96 97
 AUTOHEADER = @AUTOHEADER@
97 98
 AUTOMAKE = @AUTOMAKE@
98 99
 AWK = @AWK@
100
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
101
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
99 102
 CC = @CC@
100 103
 CCDEPMODE = @CCDEPMODE@
101 104
 CFGDIR = @CFGDIR@
... ...
@@ -119,13 +126,16 @@ ECHO_C = @ECHO_C@
119 119
 ECHO_N = @ECHO_N@
120 120
 ECHO_T = @ECHO_T@
121 121
 EGREP = @EGREP@
122
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
123
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
122 124
 EXEEXT = @EXEEXT@
123 125
 F77 = @F77@
124 126
 FFLAGS = @FFLAGS@
125 127
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
126 128
 GETENT = @GETENT@
127 129
 GREP = @GREP@
128
-INSTALL = @INSTALL@
130
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
131
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
129 132
 INSTALL_DATA = @INSTALL_DATA@
130 133
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
131 134
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -139,8 +149,9 @@ LIBTOOL = @LIBTOOL@
139 139
 LN_S = @LN_S@
140 140
 LTLIBOBJS = @LTLIBOBJS@
141 141
 MAINT = @MAINT@
142
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
143
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
142 144
 MAKEINFO = @MAKEINFO@
143
-MKDIR_P = @MKDIR_P@
144 145
 OBJEXT = @OBJEXT@
145 146
 PACKAGE = @PACKAGE@
146 147
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -157,13 +168,13 @@ STRIP = @STRIP@
157 157
 THREAD_LIBS = @THREAD_LIBS@
158 158
 TH_SAFE = @TH_SAFE@
159 159
 VERSION = @VERSION@
160
-abs_builddir = @abs_builddir@
161
-abs_srcdir = @abs_srcdir@
162
-abs_top_builddir = @abs_top_builddir@
163
-abs_top_srcdir = @abs_top_srcdir@
164 160
 ac_ct_CC = @ac_ct_CC@
165 161
 ac_ct_CXX = @ac_ct_CXX@
166 162
 ac_ct_F77 = @ac_ct_F77@
163
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
164
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
165
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
166
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
167 167
 am__include = @am__include@
168 168
 am__leading_dot = @am__leading_dot@
169 169
 am__quote = @am__quote@
... ...
@@ -175,7 +186,6 @@ build_alias = @build_alias@
175 175
 build_cpu = @build_cpu@
176 176
 build_os = @build_os@
177 177
 build_vendor = @build_vendor@
178
-builddir = @builddir@
179 178
 datadir = @datadir@
180 179
 datarootdir = @datarootdir@
181 180
 docdir = @docdir@
... ...
@@ -204,15 +214,12 @@ psdir = @psdir@
204 204
 sbindir = @sbindir@
205 205
 sendmailprog = @sendmailprog@
206 206
 sharedstatedir = @sharedstatedir@
207
-srcdir = @srcdir@
208 207
 sysconfdir = @sysconfdir@
209 208
 target = @target@
210 209
 target_alias = @target_alias@
211 210
 target_cpu = @target_cpu@
212 211
 target_os = @target_os@
213 212
 target_vendor = @target_vendor@
214
-top_builddir = @top_builddir@
215
-top_srcdir = @top_srcdir@
216 213
 clamscan_SOURCES = \
217 214
     $(top_srcdir)/shared/output.c \
218 215
     $(top_srcdir)/shared/output.h \
... ...
@@ -270,7 +277,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
270 270
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271 271
 install-binPROGRAMS: $(bin_PROGRAMS)
272 272
 	@$(NORMAL_INSTALL)
273
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
273
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
274 274
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
275 275
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
276 276
 	  if test -f $$p \
... ...
@@ -298,7 +305,7 @@ clean-binPROGRAMS:
298 298
 	done
299 299
 clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) 
300 300
 	@rm -f clamscan$(EXEEXT)
301
-	$(LINK) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
301
+	$(LINK) $(clamscan_LDFLAGS) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
302 302
 
303 303
 mostlyclean-compile:
304 304
 	-rm -f *.$(OBJEXT)
... ...
@@ -317,92 +324,92 @@ distclean-compile:
317 317
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/treewalk.Po@am__quote@
318 318
 
319 319
 .c.o:
320
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
321
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
322 322
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
323 323
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324 324
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
325 325
 
326 326
 .c.obj:
327
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
328
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
327
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
328
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
329 329
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
330 330
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331 331
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
332 332
 
333 333
 .c.lo:
334
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
335
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
334
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
335
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
336 336
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
337 337
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 338
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
339 339
 
340 340
 output.o: $(top_srcdir)/shared/output.c
341
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
342
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
341
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
342
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
344 344
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 345
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
346 346
 
347 347
 output.obj: $(top_srcdir)/shared/output.c
348
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
349
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
348
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
349
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
351 351
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 352
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
353 353
 
354 354
 getopt.o: $(top_srcdir)/shared/getopt.c
355
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
356
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
355
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
356
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
358 358
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 359
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
360 360
 
361 361
 getopt.obj: $(top_srcdir)/shared/getopt.c
362
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
363
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
362
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
363
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
365 365
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 366
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
367 367
 
368 368
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
369
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
370
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
369
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
370
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
372 372
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 373
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
374 374
 
375 375
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
376
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
377
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
376
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
377
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
379 379
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 380
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
381 381
 
382 382
 misc.o: $(top_srcdir)/shared/misc.c
383
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
384
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
383
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
384
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
386 386
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
387 387
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
388 388
 
389 389
 misc.obj: $(top_srcdir)/shared/misc.c
390
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
391
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
390
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
391
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
393 393
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394 394
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
395 395
 
396 396
 options.o: $(top_srcdir)/shared/options.c
397
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
398
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
397
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
398
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
400 400
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
401 401
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
402 402
 
403 403
 options.obj: $(top_srcdir)/shared/options.c
404
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
405
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
404
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
405
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
407 407
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408 408
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -413,6 +420,10 @@ mostlyclean-libtool:
413 413
 clean-libtool:
414 414
 	-rm -rf .libs _libs
415 415
 
416
+distclean-libtool:
417
+	-rm -f libtool
418
+uninstall-info-am:
419
+
416 420
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
417 421
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
418 422
 	unique=`for i in $$list; do \
... ...
@@ -462,21 +473,22 @@ distclean-tags:
462 462
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
463 463
 
464 464
 distdir: $(DISTFILES)
465
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
466
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
467
-	list='$(DISTFILES)'; \
468
-	  dist_files=`for file in $$list; do echo $$file; done | \
469
-	  sed -e "s|^$$srcdirstrip/||;t" \
470
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
471
-	case $$dist_files in \
472
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
473
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
474
-			   sort -u` ;; \
475
-	esac; \
476
-	for file in $$dist_files; do \
465
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
466
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
467
+	list='$(DISTFILES)'; for file in $$list; do \
468
+	  case $$file in \
469
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
470
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
471
+	  esac; \
477 472
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
473
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
474
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
475
+	    dir="/$$dir"; \
476
+	    $(mkdir_p) "$(distdir)$$dir"; \
477
+	  else \
478
+	    dir=''; \
479
+	  fi; \
478 480
 	  if test -d $$d/$$file; then \
479
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
480 481
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
481 482
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
482 483
 	    fi; \
... ...
@@ -492,7 +504,7 @@ check: check-am
492 492
 all-am: Makefile $(PROGRAMS)
493 493
 installdirs:
494 494
 	for dir in "$(DESTDIR)$(bindir)"; do \
495
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
495
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
496 496
 	done
497 497
 install: install-am
498 498
 install-exec: install-exec-am
... ...
@@ -526,7 +538,7 @@ distclean: distclean-am
526 526
 	-rm -rf ./$(DEPDIR)
527 527
 	-rm -f Makefile
528 528
 distclean-am: clean-am distclean-compile distclean-generic \
529
-	distclean-tags
529
+	distclean-libtool distclean-tags
530 530
 
531 531
 dvi: dvi-am
532 532
 
... ...
@@ -540,20 +552,12 @@ info-am:
540 540
 
541 541
 install-data-am:
542 542
 
543
-install-dvi: install-dvi-am
544
-
545 543
 install-exec-am: install-binPROGRAMS
546 544
 
547
-install-html: install-html-am
548
-
549 545
 install-info: install-info-am
550 546
 
551 547
 install-man:
552 548
 
553
-install-pdf: install-pdf-am
554
-
555
-install-ps: install-ps-am
556
-
557 549
 installcheck-am:
558 550
 
559 551
 maintainer-clean: maintainer-clean-am
... ...
@@ -574,23 +578,19 @@ ps: ps-am
574 574
 
575 575
 ps-am:
576 576
 
577
-uninstall-am: uninstall-binPROGRAMS
578
-
579
-.MAKE: install-am install-strip
577
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
580 578
 
581 579
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
582 580
 	clean-generic clean-libtool ctags distclean distclean-compile \
583 581
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
584 582
 	dvi-am html html-am info info-am install install-am \
585
-	install-binPROGRAMS install-data install-data-am install-dvi \
586
-	install-dvi-am install-exec install-exec-am install-html \
587
-	install-html-am install-info install-info-am install-man \
588
-	install-pdf install-pdf-am install-ps install-ps-am \
583
+	install-binPROGRAMS install-data install-data-am install-exec \
584
+	install-exec-am install-info install-info-am install-man \
589 585
 	install-strip installcheck installcheck-am installdirs \
590 586
 	maintainer-clean maintainer-clean-generic mostlyclean \
591 587
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
592 588
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
593
-	uninstall-binPROGRAMS
589
+	uninstall-binPROGRAMS uninstall-info-am
594 590
 
595 591
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
596 592
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -819,7 +819,6 @@ target_os
819 819
 INSTALL_PROGRAM
820 820
 INSTALL_SCRIPT
821 821
 INSTALL_DATA
822
-am__isrc
823 822
 CYGPATH_W
824 823
 PACKAGE
825 824
 VERSION
... ...
@@ -2318,8 +2317,7 @@ do
2318 2318
 done
2319 2319
 
2320 2320
 
2321
-am__api_version='1.10'
2322
-
2321
+am__api_version="1.9"
2323 2322
 # Find a good install program.  We prefer a C program (faster),
2324 2323
 # so one script is as good as another.  But avoid the broken or
2325 2324
 # incompatible versions:
... ...
@@ -2471,53 +2469,38 @@ else
2471 2471
 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2472 2472
 fi
2473 2473
 
2474
-{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2475
-echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2476
-if test -z "$MKDIR_P"; then
2477
-  if test "${ac_cv_path_mkdir+set}" = set; then
2478
-  echo $ECHO_N "(cached) $ECHO_C" >&6
2479
-else
2480
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481
-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2482
-do
2483
-  IFS=$as_save_IFS
2484
-  test -z "$as_dir" && as_dir=.
2485
-  for ac_prog in mkdir gmkdir; do
2486
-	 for ac_exec_ext in '' $ac_executable_extensions; do
2487
-	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2488
-	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2489
-	     'mkdir (GNU coreutils) '* | \
2490
-	     'mkdir (coreutils) '* | \
2491
-	     'mkdir (fileutils) '4.1*)
2492
-	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2493
-	       break 3;;
2494
-	   esac
2495
-	 done
2496
-       done
2497
-done
2498
-IFS=$as_save_IFS
2499
-
2500
-fi
2501
-
2502
-  if test "${ac_cv_path_mkdir+set}" = set; then
2503
-    MKDIR_P="$ac_cv_path_mkdir -p"
2474
+if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2475
+  # We used to keeping the `.' as first argument, in order to
2476
+  # allow $(mkdir_p) to be used without argument.  As in
2477
+  #   $(mkdir_p) $(somedir)
2478
+  # where $(somedir) is conditionally defined.  However this is wrong
2479
+  # for two reasons:
2480
+  #  1. if the package is installed by a user who cannot write `.'
2481
+  #     make install will fail,
2482
+  #  2. the above comment should most certainly read
2483
+  #     $(mkdir_p) $(DESTDIR)$(somedir)
2484
+  #     so it does not work when $(somedir) is undefined and
2485
+  #     $(DESTDIR) is not.
2486
+  #  To support the latter case, we have to write
2487
+  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2488
+  #  so the `.' trick is pointless.
2489
+  mkdir_p='mkdir -p --'
2490
+else
2491
+  # On NextStep and OpenStep, the `mkdir' command does not
2492
+  # recognize any option.  It will interpret all options as
2493
+  # directories to create, and then abort because `.' already
2494
+  # exists.
2495
+  for d in ./-p ./--version;
2496
+  do
2497
+    test -d $d && rmdir $d
2498
+  done
2499
+  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2500
+  if test -f "$ac_aux_dir/mkinstalldirs"; then
2501
+    mkdir_p='$(mkinstalldirs)'
2504 2502
   else
2505
-    # As a last resort, use the slow shell script.  Don't cache a
2506
-    # value for MKDIR_P within a source directory, because that will
2507
-    # break other packages using the cache if that directory is
2508
-    # removed, or if the value is a relative name.
2509
-    test -d ./--version && rmdir ./--version
2510
-    MKDIR_P="$ac_install_sh -d"
2503
+    mkdir_p='$(install_sh) -d'
2511 2504
   fi
2512 2505
 fi
2513
-{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2514
-echo "${ECHO_T}$MKDIR_P" >&6; }
2515
-
2516
-mkdir_p="$MKDIR_P"
2517
-case $mkdir_p in
2518
-  [\\/$]* | ?:[\\/]*) ;;
2519
-  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2520
-esac
2521 2506
 
2522 2507
 for ac_prog in gawk mawk nawk awk
2523 2508
 do
... ...
@@ -2600,16 +2583,12 @@ else
2600 2600
 fi
2601 2601
 rmdir .tst 2>/dev/null
2602 2602
 
2603
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
2604
-  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2605
-  # is not polluted with repeated "-I."
2606
-  am__isrc=' -I$(srcdir)'
2607
-  # test to see if srcdir already configured
2608
-  if test -f $srcdir/config.status; then
2609
-    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2603
+# test to see if srcdir already configured
2604
+if test "`cd $srcdir && pwd`" != "`pwd`" &&
2605
+   test -f $srcdir/config.status; then
2606
+  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2610 2607
 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2611 2608
    { (exit 1); exit 1; }; }
2612
-  fi
2613 2609
 fi
2614 2610
 
2615 2611
 # test whether we have cygpath
... ...
@@ -2652,7 +2631,7 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2652 2652
 
2653 2653
 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2654 2654
 
2655
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2655
+install_sh=${install_sh-"$am_aux_dir/install-sh"}
2656 2656
 
2657 2657
 # Installed binaries are usually stripped using `strip' when the user
2658 2658
 # run `make install-strip'.  However `strip' might not be the right
... ...
@@ -2756,7 +2735,7 @@ else
2756 2756
 fi
2757 2757
 
2758 2758
 fi
2759
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759
+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2760 2760
 
2761 2761
 # We need awk for the "check" target.  The system "awk" is bad on
2762 2762
 # some platforms.
... ...
@@ -3792,7 +3771,9 @@ if test "x$enable_dependency_tracking" != xno; then
3792 3792
   am_depcomp="$ac_aux_dir/depcomp"
3793 3793
   AMDEPBACKSLASH='\'
3794 3794
 fi
3795
- if test "x$enable_dependency_tracking" != xno; then
3795
+
3796
+
3797
+if test "x$enable_dependency_tracking" != xno; then
3796 3798
   AMDEP_TRUE=
3797 3799
   AMDEP_FALSE='#'
3798 3800
 else
... ...
@@ -3802,6 +3783,7 @@ fi
3802 3802
 
3803 3803
 
3804 3804
 
3805
+
3805 3806
 depcc="$CC"   am_compiler_list=
3806 3807
 
3807 3808
 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
... ...
@@ -3869,7 +3851,6 @@ else
3869 3869
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 3870
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3871 3871
          >/dev/null 2>conftest.err &&
3872
-       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 3872
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 3873
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3875 3874
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -3899,7 +3880,9 @@ fi
3899 3899
 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3900 3900
 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901 3901
 
3902
- if
3902
+
3903
+
3904
+if
3903 3905
   test "x$enable_dependency_tracking" != xno \
3904 3906
   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 3907
   am__fastdepCC_TRUE=
... ...
@@ -4745,7 +4728,7 @@ ia64-*-hpux*)
4745 4745
   ;;
4746 4746
 *-*-irix6*)
4747 4747
   # Find out which ABI we are using.
4748
-  echo '#line 4748 "configure"' > conftest.$ac_ext
4748
+  echo '#line 4731 "configure"' > conftest.$ac_ext
4749 4749
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 4750
   (eval $ac_compile) 2>&5
4751 4751
   ac_status=$?
... ...
@@ -5976,7 +5959,6 @@ else
5976 5976
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5977 5977
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5978 5978
          >/dev/null 2>conftest.err &&
5979
-       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5980 5979
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5981 5980
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5982 5981
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -6006,7 +5988,9 @@ fi
6006 6006
 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6007 6007
 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6008 6008
 
6009
- if
6009
+
6010
+
6011
+if
6010 6012
   test "x$enable_dependency_tracking" != xno \
6011 6013
   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6012 6014
   am__fastdepCXX_TRUE=
... ...
@@ -7482,11 +7466,11 @@ else
7482 7482
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7483 7483
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7484 7484
    -e 's:$: $lt_compiler_flag:'`
7485
-   (eval echo "\"\$as_me:7485: $lt_compile\"" >&5)
7485
+   (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
7486 7486
    (eval "$lt_compile" 2>conftest.err)
7487 7487
    ac_status=$?
7488 7488
    cat conftest.err >&5
7489
-   echo "$as_me:7489: \$? = $ac_status" >&5
7489
+   echo "$as_me:7473: \$? = $ac_status" >&5
7490 7490
    if (exit $ac_status) && test -s "$ac_outfile"; then
7491 7491
      # The compiler can only warn and ignore the option if not recognized
7492 7492
      # So say no if there are warnings other than the usual output.
... ...
@@ -7772,11 +7756,11 @@ else
7772 7772
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7773 7773
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7774 7774
    -e 's:$: $lt_compiler_flag:'`
7775
-   (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
7775
+   (eval echo "\"\$as_me:7759: $lt_compile\"" >&5)
7776 7776
    (eval "$lt_compile" 2>conftest.err)
7777 7777
    ac_status=$?
7778 7778
    cat conftest.err >&5
7779
-   echo "$as_me:7779: \$? = $ac_status" >&5
7779
+   echo "$as_me:7763: \$? = $ac_status" >&5
7780 7780
    if (exit $ac_status) && test -s "$ac_outfile"; then
7781 7781
      # The compiler can only warn and ignore the option if not recognized
7782 7782
      # So say no if there are warnings other than the usual output.
... ...
@@ -7876,11 +7860,11 @@ else
7876 7876
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7877 7877
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7878 7878
    -e 's:$: $lt_compiler_flag:'`
7879
-   (eval echo "\"\$as_me:7879: $lt_compile\"" >&5)
7879
+   (eval echo "\"\$as_me:7863: $lt_compile\"" >&5)
7880 7880
    (eval "$lt_compile" 2>out/conftest.err)
7881 7881
    ac_status=$?
7882 7882
    cat out/conftest.err >&5
7883
-   echo "$as_me:7883: \$? = $ac_status" >&5
7883
+   echo "$as_me:7867: \$? = $ac_status" >&5
7884 7884
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7885 7885
    then
7886 7886
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -10238,7 +10222,7 @@ else
10238 10238
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239 10239
   lt_status=$lt_dlunknown
10240 10240
   cat > conftest.$ac_ext <<EOF
10241
-#line 10241 "configure"
10241
+#line 10225 "configure"
10242 10242
 #include "confdefs.h"
10243 10243
 
10244 10244
 #if HAVE_DLFCN_H
... ...
@@ -10338,7 +10322,7 @@ else
10338 10338
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10339 10339
   lt_status=$lt_dlunknown
10340 10340
   cat > conftest.$ac_ext <<EOF
10341
-#line 10341 "configure"
10341
+#line 10325 "configure"
10342 10342
 #include "confdefs.h"
10343 10343
 
10344 10344
 #if HAVE_DLFCN_H
... ...
@@ -12758,11 +12742,11 @@ else
12758 12758
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12759 12759
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12760 12760
    -e 's:$: $lt_compiler_flag:'`
12761
-   (eval echo "\"\$as_me:12761: $lt_compile\"" >&5)
12761
+   (eval echo "\"\$as_me:12745: $lt_compile\"" >&5)
12762 12762
    (eval "$lt_compile" 2>conftest.err)
12763 12763
    ac_status=$?
12764 12764
    cat conftest.err >&5
12765
-   echo "$as_me:12765: \$? = $ac_status" >&5
12765
+   echo "$as_me:12749: \$? = $ac_status" >&5
12766 12766
    if (exit $ac_status) && test -s "$ac_outfile"; then
12767 12767
      # The compiler can only warn and ignore the option if not recognized
12768 12768
      # So say no if there are warnings other than the usual output.
... ...
@@ -12862,11 +12846,11 @@ else
12862 12862
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12863 12863
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12864 12864
    -e 's:$: $lt_compiler_flag:'`
12865
-   (eval echo "\"\$as_me:12865: $lt_compile\"" >&5)
12865
+   (eval echo "\"\$as_me:12849: $lt_compile\"" >&5)
12866 12866
    (eval "$lt_compile" 2>out/conftest.err)
12867 12867
    ac_status=$?
12868 12868
    cat out/conftest.err >&5
12869
-   echo "$as_me:12869: \$? = $ac_status" >&5
12869
+   echo "$as_me:12853: \$? = $ac_status" >&5
12870 12870
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12871 12871
    then
12872 12872
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -14439,11 +14423,11 @@ else
14439 14439
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 14440
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 14441
    -e 's:$: $lt_compiler_flag:'`
14442
-   (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14442
+   (eval echo "\"\$as_me:14426: $lt_compile\"" >&5)
14443 14443
    (eval "$lt_compile" 2>conftest.err)
14444 14444
    ac_status=$?
14445 14445
    cat conftest.err >&5
14446
-   echo "$as_me:14446: \$? = $ac_status" >&5
14446
+   echo "$as_me:14430: \$? = $ac_status" >&5
14447 14447
    if (exit $ac_status) && test -s "$ac_outfile"; then
14448 14448
      # The compiler can only warn and ignore the option if not recognized
14449 14449
      # So say no if there are warnings other than the usual output.
... ...
@@ -14543,11 +14527,11 @@ else
14543 14543
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14544 14544
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14545 14545
    -e 's:$: $lt_compiler_flag:'`
14546
-   (eval echo "\"\$as_me:14546: $lt_compile\"" >&5)
14546
+   (eval echo "\"\$as_me:14530: $lt_compile\"" >&5)
14547 14547
    (eval "$lt_compile" 2>out/conftest.err)
14548 14548
    ac_status=$?
14549 14549
    cat out/conftest.err >&5
14550
-   echo "$as_me:14550: \$? = $ac_status" >&5
14550
+   echo "$as_me:14534: \$? = $ac_status" >&5
14551 14551
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14552 14552
    then
14553 14553
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -16743,11 +16727,11 @@ else
16743 16743
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16744 16744
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16745 16745
    -e 's:$: $lt_compiler_flag:'`
16746
-   (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16746
+   (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16747 16747
    (eval "$lt_compile" 2>conftest.err)
16748 16748
    ac_status=$?
16749 16749
    cat conftest.err >&5
16750
-   echo "$as_me:16750: \$? = $ac_status" >&5
16750
+   echo "$as_me:16734: \$? = $ac_status" >&5
16751 16751
    if (exit $ac_status) && test -s "$ac_outfile"; then
16752 16752
      # The compiler can only warn and ignore the option if not recognized
16753 16753
      # So say no if there are warnings other than the usual output.
... ...
@@ -17033,11 +17017,11 @@ else
17033 17033
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17034 17034
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17035 17035
    -e 's:$: $lt_compiler_flag:'`
17036
-   (eval echo "\"\$as_me:17036: $lt_compile\"" >&5)
17036
+   (eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
17037 17037
    (eval "$lt_compile" 2>conftest.err)
17038 17038
    ac_status=$?
17039 17039
    cat conftest.err >&5
17040
-   echo "$as_me:17040: \$? = $ac_status" >&5
17040
+   echo "$as_me:17024: \$? = $ac_status" >&5
17041 17041
    if (exit $ac_status) && test -s "$ac_outfile"; then
17042 17042
      # The compiler can only warn and ignore the option if not recognized
17043 17043
      # So say no if there are warnings other than the usual output.
... ...
@@ -17137,11 +17121,11 @@ else
17137 17137
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17138 17138
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17139 17139
    -e 's:$: $lt_compiler_flag:'`
17140
-   (eval echo "\"\$as_me:17140: $lt_compile\"" >&5)
17140
+   (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17141 17141
    (eval "$lt_compile" 2>out/conftest.err)
17142 17142
    ac_status=$?
17143 17143
    cat out/conftest.err >&5
17144
-   echo "$as_me:17144: \$? = $ac_status" >&5
17144
+   echo "$as_me:17128: \$? = $ac_status" >&5
17145 17145
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17146 17146
    then
17147 17147
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -22041,7 +22025,9 @@ fi
22041 22041
 
22042 22042
   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22043 22043
 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
22044
-   if test $USE_MAINTAINER_MODE = yes; then
22044
+
22045
+
22046
+if test $USE_MAINTAINER_MODE = yes; then
22045 22047
   MAINTAINER_MODE_TRUE=
22046 22048
   MAINTAINER_MODE_FALSE='#'
22047 22049
 else
... ...
@@ -24206,7 +24192,9 @@ done
24206 24206
 
24207 24207
 fi
24208 24208
 
24209
- if test "$have_pthreads" = "yes"; then
24209
+
24210
+
24211
+if test "$have_pthreads" = "yes"; then
24210 24212
   BUILD_CLAMD_TRUE=
24211 24213
   BUILD_CLAMD_FALSE='#'
24212 24214
 else
... ...
@@ -24214,7 +24202,9 @@ else
24214 24214
   BUILD_CLAMD_FALSE=
24215 24215
 fi
24216 24216
 
24217
- if test "$have_milter" = "yes"; then
24217
+
24218
+
24219
+if test "$have_milter" = "yes"; then
24218 24220
   HAVE_MILTER_TRUE=
24219 24221
   HAVE_MILTER_FALSE='#'
24220 24222
 else
... ...
@@ -24222,7 +24212,9 @@ else
24222 24222
   HAVE_MILTER_FALSE=
24223 24223
 fi
24224 24224
 
24225
- if test "$want_unrar" = "yes"; then
24225
+
24226
+
24227
+if test "$want_unrar" = "yes"; then
24226 24228
   ENABLE_UNRAR_TRUE=
24227 24229
   ENABLE_UNRAR_FALSE='#'
24228 24230
 else
... ...
@@ -26397,7 +26389,7 @@ echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not
26397 26397
 esac
26398 26398
 
26399 26399
 
26400
-ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
26400
+ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile libclamav/lzma/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
26401 26401
 
26402 26402
 cat >confcache <<\_ACEOF
26403 26403
 # This file is a shell script that caches the results of configure
... ...
@@ -26908,7 +26900,6 @@ gives unlimited permission to copy, distribute and modify it."
26908 26908
 ac_pwd='$ac_pwd'
26909 26909
 srcdir='$srcdir'
26910 26910
 INSTALL='$INSTALL'
26911
-MKDIR_P='$MKDIR_P'
26912 26911
 _ACEOF
26913 26912
 
26914 26913
 cat >>$CONFIG_STATUS <<\_ACEOF
... ...
@@ -27016,6 +27007,7 @@ do
27016 27016
     "libclamunrar/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar/Makefile" ;;
27017 27017
     "libclamunrar_iface/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar_iface/Makefile" ;;
27018 27018
     "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
27019
+    "libclamav/lzma/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/lzma/Makefile" ;;
27019 27020
     "clamscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamscan/Makefile" ;;
27020 27021
     "database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;;
27021 27022
     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
... ...
@@ -27152,7 +27144,6 @@ target_os!$target_os$ac_delim
27152 27152
 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27153 27153
 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27154 27154
 INSTALL_DATA!$INSTALL_DATA$ac_delim
27155
-am__isrc!$am__isrc$ac_delim
27156 27155
 CYGPATH_W!$CYGPATH_W$ac_delim
27157 27156
 PACKAGE!$PACKAGE$ac_delim
27158 27157
 VERSION!$VERSION$ac_delim
... ...
@@ -27197,6 +27188,7 @@ AR!$AR$ac_delim
27197 27197
 RANLIB!$RANLIB$ac_delim
27198 27198
 CPP!$CPP$ac_delim
27199 27199
 CXX!$CXX$ac_delim
27200
+CXXFLAGS!$CXXFLAGS$ac_delim
27200 27201
 _ACEOF
27201 27202
 
27202 27203
   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
... ...
@@ -27238,7 +27230,6 @@ _ACEOF
27238 27238
 ac_delim='%!_!# '
27239 27239
 for ac_last_try in false false false false false :; do
27240 27240
   cat >conf$$subs.sed <<_ACEOF
27241
-CXXFLAGS!$CXXFLAGS$ac_delim
27242 27241
 ac_ct_CXX!$ac_ct_CXX$ac_delim
27243 27242
 CXXDEPMODE!$CXXDEPMODE$ac_delim
27244 27243
 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
... ...
@@ -27273,7 +27264,7 @@ LIBOBJS!$LIBOBJS$ac_delim
27273 27273
 LTLIBOBJS!$LTLIBOBJS$ac_delim
27274 27274
 _ACEOF
27275 27275
 
27276
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
27276
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
27277 27277
     break
27278 27278
   elif $ac_last_try; then
27279 27279
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
... ...
@@ -27500,11 +27491,6 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27500 27500
   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27501 27501
   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27502 27502
   esac
27503
-  ac_MKDIR_P=$MKDIR_P
27504
-  case $MKDIR_P in
27505
-  [\\/$]* | ?:[\\/]* ) ;;
27506
-  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27507
-  esac
27508 27503
 _ACEOF
27509 27504
 
27510 27505
 cat >>$CONFIG_STATUS <<\_ACEOF
... ...
@@ -27558,7 +27544,6 @@ s&@builddir@&$ac_builddir&;t t
27558 27558
 s&@abs_builddir@&$ac_abs_builddir&;t t
27559 27559
 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27560 27560
 s&@INSTALL@&$ac_INSTALL&;t t
27561
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
27562 27561
 $ac_datarootdir_hack
27563 27562
 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27564 27563
 
... ...
@@ -27723,9 +27708,8 @@ echo "$as_me: executing $ac_file commands" >&6;}
27723 27723
   # some people rename them; so instead we look at the file content.
27724 27724
   # Grep'ing the first line is not enough: some people post-process
27725 27725
   # each Makefile.in and add a new line on top of each file to say so.
27726
-  # Grep'ing the whole file is not good either: AIX grep has a line
27727
-  # limit of 2048, but all sed's we know have understand at least 4000.
27728
-  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27726
+  # So let's grep whole file.
27727
+  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27729 27728
     dirpart=`$as_dirname -- "$mf" ||
27730 27729
 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27731 27730
 	 X"$mf" : 'X\(//\)[^/]' \| \
... ...
@@ -1217,6 +1217,7 @@ AC_OUTPUT([
1217 1217
 libclamunrar/Makefile
1218 1218
 libclamunrar_iface/Makefile
1219 1219
 libclamav/Makefile
1220
+libclamav/lzma/Makefile
1220 1221
 clamscan/Makefile
1221 1222
 database/Makefile
1222 1223
 docs/Makefile
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,11 +33,15 @@
33 33
 #  along with this program; if not, write to the Free Software
34 34
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
35 35
 #  MA 02110-1301, USA.
36
+srcdir = @srcdir@
37
+top_srcdir = @top_srcdir@
36 38
 VPATH = @srcdir@
37 39
 pkgdatadir = $(datadir)/@PACKAGE@
38 40
 pkglibdir = $(libdir)/@PACKAGE@
39 41
 pkgincludedir = $(includedir)/@PACKAGE@
42
+top_builddir = ..
40 43
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
+INSTALL = @INSTALL@
41 45
 install_sh_DATA = $(install_sh) -c -m 644
42 46
 install_sh_PROGRAM = $(install_sh) -c
43 47
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -66,12 +70,16 @@ SOURCES =
66 66
 DIST_SOURCES =
67 67
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
68 68
 ACLOCAL = @ACLOCAL@
69
+AMDEP_FALSE = @AMDEP_FALSE@
70
+AMDEP_TRUE = @AMDEP_TRUE@
69 71
 AMTAR = @AMTAR@
70 72
 AR = @AR@
71 73
 AUTOCONF = @AUTOCONF@
72 74
 AUTOHEADER = @AUTOHEADER@
73 75
 AUTOMAKE = @AUTOMAKE@
74 76
 AWK = @AWK@
77
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
78
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
75 79
 CC = @CC@
76 80
 CCDEPMODE = @CCDEPMODE@
77 81
 CFGDIR = @CFGDIR@
... ...
@@ -95,13 +103,16 @@ ECHO_C = @ECHO_C@
95 95
 ECHO_N = @ECHO_N@
96 96
 ECHO_T = @ECHO_T@
97 97
 EGREP = @EGREP@
98
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
99
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
98 100
 EXEEXT = @EXEEXT@
99 101
 F77 = @F77@
100 102
 FFLAGS = @FFLAGS@
101 103
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
102 104
 GETENT = @GETENT@
103 105
 GREP = @GREP@
104
-INSTALL = @INSTALL@
106
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
107
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
105 108
 INSTALL_DATA = @INSTALL_DATA@
106 109
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
107 110
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -115,8 +126,9 @@ LIBTOOL = @LIBTOOL@
115 115
 LN_S = @LN_S@
116 116
 LTLIBOBJS = @LTLIBOBJS@
117 117
 MAINT = @MAINT@
118
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
119
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
118 120
 MAKEINFO = @MAKEINFO@
119
-MKDIR_P = @MKDIR_P@
120 121
 OBJEXT = @OBJEXT@
121 122
 PACKAGE = @PACKAGE@
122 123
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -133,13 +145,13 @@ STRIP = @STRIP@
133 133
 THREAD_LIBS = @THREAD_LIBS@
134 134
 TH_SAFE = @TH_SAFE@
135 135
 VERSION = @VERSION@
136
-abs_builddir = @abs_builddir@
137
-abs_srcdir = @abs_srcdir@
138
-abs_top_builddir = @abs_top_builddir@
139
-abs_top_srcdir = @abs_top_srcdir@
140 136
 ac_ct_CC = @ac_ct_CC@
141 137
 ac_ct_CXX = @ac_ct_CXX@
142 138
 ac_ct_F77 = @ac_ct_F77@
139
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
140
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
141
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
142
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
143 143
 am__include = @am__include@
144 144
 am__leading_dot = @am__leading_dot@
145 145
 am__quote = @am__quote@
... ...
@@ -151,7 +163,6 @@ build_alias = @build_alias@
151 151
 build_cpu = @build_cpu@
152 152
 build_os = @build_os@
153 153
 build_vendor = @build_vendor@
154
-builddir = @builddir@
155 154
 datadir = @datadir@
156 155
 datarootdir = @datarootdir@
157 156
 docdir = @docdir@
... ...
@@ -180,15 +191,12 @@ psdir = @psdir@
180 180
 sbindir = @sbindir@
181 181
 sendmailprog = @sendmailprog@
182 182
 sharedstatedir = @sharedstatedir@
183
-srcdir = @srcdir@
184 183
 sysconfdir = @sysconfdir@
185 184
 target = @target@
186 185
 target_alias = @target_alias@
187 186
 target_cpu = @target_cpu@
188 187
 target_os = @target_os@
189 188
 target_vendor = @target_vendor@
190
-top_builddir = @top_builddir@
191
-top_srcdir = @top_srcdir@
192 189
 EXTRA_DIST = main.cvd daily.cvd
193 190
 DBINST = @DBDIR@
194 191
 all: all-am
... ...
@@ -229,6 +237,10 @@ mostlyclean-libtool:
229 229
 
230 230
 clean-libtool:
231 231
 	-rm -rf .libs _libs
232
+
233
+distclean-libtool:
234
+	-rm -f libtool
235
+uninstall-info-am:
232 236
 tags: TAGS
233 237
 TAGS:
234 238
 
... ...
@@ -237,21 +249,22 @@ CTAGS:
237 237
 
238 238
 
239 239
 distdir: $(DISTFILES)
240
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
241
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
242
-	list='$(DISTFILES)'; \
243
-	  dist_files=`for file in $$list; do echo $$file; done | \
244
-	  sed -e "s|^$$srcdirstrip/||;t" \
245
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
246
-	case $$dist_files in \
247
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
248
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
249
-			   sort -u` ;; \
250
-	esac; \
251
-	for file in $$dist_files; do \
240
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
241
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
242
+	list='$(DISTFILES)'; for file in $$list; do \
243
+	  case $$file in \
244
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
245
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
246
+	  esac; \
252 247
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
248
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
249
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
250
+	    dir="/$$dir"; \
251
+	    $(mkdir_p) "$(distdir)$$dir"; \
252
+	  else \
253
+	    dir=''; \
254
+	  fi; \
253 255
 	  if test -d $$d/$$file; then \
254
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
255 256
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
256 257
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
257 258
 	    fi; \
... ...
@@ -295,7 +308,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
295 295
 
296 296
 distclean: distclean-am
297 297
 	-rm -f Makefile
298
-distclean-am: clean-am distclean-generic
298
+distclean-am: clean-am distclean-generic distclean-libtool
299 299
 
300 300
 dvi: dvi-am
301 301
 
... ...
@@ -309,20 +322,12 @@ info-am:
309 309
 
310 310
 install-data-am:
311 311
 
312
-install-dvi: install-dvi-am
313
-
314 312
 install-exec-am:
315 313
 
316
-install-html: install-html-am
317
-
318 314
 install-info: install-info-am
319 315
 
320 316
 install-man:
321 317
 
322
-install-pdf: install-pdf-am
323
-
324
-install-ps: install-ps-am
325
-
326 318
 installcheck-am:
327 319
 
328 320
 maintainer-clean: maintainer-clean-am
... ...
@@ -341,20 +346,17 @@ ps: ps-am
341 341
 
342 342
 ps-am:
343 343
 
344
-uninstall-am:
345
-
346
-.MAKE: install-am install-strip
344
+uninstall-am: uninstall-info-am
347 345
 
348 346
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
349 347
 	distclean distclean-generic distclean-libtool distdir dvi \
350 348
 	dvi-am html html-am info info-am install install-am \
351
-	install-data install-data-am install-dvi install-dvi-am \
352
-	install-exec install-exec-am install-html install-html-am \
353
-	install-info install-info-am install-man install-pdf \
354
-	install-pdf-am install-ps install-ps-am install-strip \
349
+	install-data install-data-am install-exec install-exec-am \
350
+	install-info install-info-am install-man install-strip \
355 351
 	installcheck installcheck-am installdirs maintainer-clean \
356 352
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
357
-	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
353
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
354
+	uninstall-info-am
358 355
 
359 356
 
360 357
 install:
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -31,11 +31,15 @@
31 31
 #  along with this program; if not, write to the Free Software
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34
+srcdir = @srcdir@
35
+top_srcdir = @top_srcdir@
34 36
 VPATH = @srcdir@
35 37
 pkgdatadir = $(datadir)/@PACKAGE@
36 38
 pkglibdir = $(libdir)/@PACKAGE@
37 39
 pkgincludedir = $(includedir)/@PACKAGE@
40
+top_builddir = ..
38 41
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42
+INSTALL = @INSTALL@
39 43
 install_sh_DATA = $(install_sh) -c -m 644
40 44
 install_sh_PROGRAM = $(install_sh) -c
41 45
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -71,12 +75,16 @@ NROFF = nroff
71 71
 MANS = $(man_MANS)
72 72
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
73 73
 ACLOCAL = @ACLOCAL@
74
+AMDEP_FALSE = @AMDEP_FALSE@
75
+AMDEP_TRUE = @AMDEP_TRUE@
74 76
 AMTAR = @AMTAR@
75 77
 AR = @AR@
76 78
 AUTOCONF = @AUTOCONF@
77 79
 AUTOHEADER = @AUTOHEADER@
78 80
 AUTOMAKE = @AUTOMAKE@
79 81
 AWK = @AWK@
82
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
83
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
80 84
 CC = @CC@
81 85
 CCDEPMODE = @CCDEPMODE@
82 86
 CFGDIR = @CFGDIR@
... ...
@@ -100,13 +108,16 @@ ECHO_C = @ECHO_C@
100 100
 ECHO_N = @ECHO_N@
101 101
 ECHO_T = @ECHO_T@
102 102
 EGREP = @EGREP@
103
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
104
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
103 105
 EXEEXT = @EXEEXT@
104 106
 F77 = @F77@
105 107
 FFLAGS = @FFLAGS@
106 108
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
107 109
 GETENT = @GETENT@
108 110
 GREP = @GREP@
109
-INSTALL = @INSTALL@
111
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
112
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
110 113
 INSTALL_DATA = @INSTALL_DATA@
111 114
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112 115
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -120,8 +131,9 @@ LIBTOOL = @LIBTOOL@
120 120
 LN_S = @LN_S@
121 121
 LTLIBOBJS = @LTLIBOBJS@
122 122
 MAINT = @MAINT@
123
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
124
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
123 125
 MAKEINFO = @MAKEINFO@
124
-MKDIR_P = @MKDIR_P@
125 126
 OBJEXT = @OBJEXT@
126 127
 PACKAGE = @PACKAGE@
127 128
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -138,13 +150,13 @@ STRIP = @STRIP@
138 138
 THREAD_LIBS = @THREAD_LIBS@
139 139
 TH_SAFE = @TH_SAFE@
140 140
 VERSION = @VERSION@
141
-abs_builddir = @abs_builddir@
142
-abs_srcdir = @abs_srcdir@
143
-abs_top_builddir = @abs_top_builddir@
144
-abs_top_srcdir = @abs_top_srcdir@
145 141
 ac_ct_CC = @ac_ct_CC@
146 142
 ac_ct_CXX = @ac_ct_CXX@
147 143
 ac_ct_F77 = @ac_ct_F77@
144
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
145
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
146
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
147
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
148 148
 am__include = @am__include@
149 149
 am__leading_dot = @am__leading_dot@
150 150
 am__quote = @am__quote@
... ...
@@ -156,7 +168,6 @@ build_alias = @build_alias@
156 156
 build_cpu = @build_cpu@
157 157
 build_os = @build_os@
158 158
 build_vendor = @build_vendor@
159
-builddir = @builddir@
160 159
 datadir = @datadir@
161 160
 datarootdir = @datarootdir@
162 161
 docdir = @docdir@
... ...
@@ -185,15 +196,12 @@ psdir = @psdir@
185 185
 sbindir = @sbindir@
186 186
 sendmailprog = @sendmailprog@
187 187
 sharedstatedir = @sharedstatedir@
188
-srcdir = @srcdir@
189 188
 sysconfdir = @sysconfdir@
190 189
 target = @target@
191 190
 target_alias = @target_alias@
192 191
 target_cpu = @target_cpu@
193 192
 target_os = @target_os@
194 193
 target_vendor = @target_vendor@
195
-top_builddir = @top_builddir@
196
-top_srcdir = @top_srcdir@
197 194
 EXTRA_DIST = html man/*.in clamdoc.pdf clamdoc.tex clamav-mirror-howto.pdf clamav-mirror-howto.tex signatures.pdf signatures.tex clam.eps
198 195
 man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1
199 196
 all: all-am
... ...
@@ -234,9 +242,13 @@ mostlyclean-libtool:
234 234
 
235 235
 clean-libtool:
236 236
 	-rm -rf .libs _libs
237
+
238
+distclean-libtool:
239
+	-rm -f libtool
240
+uninstall-info-am:
237 241
 install-man1: $(man1_MANS) $(man_MANS)
238 242
 	@$(NORMAL_INSTALL)
239
-	test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
243
+	test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
240 244
 	@list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
241 245
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
242 246
 	for i in $$l2; do \
... ...
@@ -281,7 +293,7 @@ uninstall-man1:
281 281
 	done
282 282
 install-man5: $(man5_MANS) $(man_MANS)
283 283
 	@$(NORMAL_INSTALL)
284
-	test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
284
+	test -z "$(man5dir)" || $(mkdir_p) "$(DESTDIR)$(man5dir)"
285 285
 	@list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
286 286
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
287 287
 	for i in $$l2; do \
... ...
@@ -326,7 +338,7 @@ uninstall-man5:
326 326
 	done
327 327
 install-man8: $(man8_MANS) $(man_MANS)
328 328
 	@$(NORMAL_INSTALL)
329
-	test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
329
+	test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
330 330
 	@list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
331 331
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
332 332
 	for i in $$l2; do \
... ...
@@ -377,21 +389,23 @@ CTAGS:
377 377
 
378 378
 
379 379
 distdir: $(DISTFILES)
380
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382
-	list='$(DISTFILES)'; \
383
-	  dist_files=`for file in $$list; do echo $$file; done | \
384
-	  sed -e "s|^$$srcdirstrip/||;t" \
385
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386
-	case $$dist_files in \
387
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
388
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389
-			   sort -u` ;; \
390
-	esac; \
391
-	for file in $$dist_files; do \
380
+	$(mkdir_p) $(distdir)/man
381
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
382
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
383
+	list='$(DISTFILES)'; for file in $$list; do \
384
+	  case $$file in \
385
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
386
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
387
+	  esac; \
392 388
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
390
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
391
+	    dir="/$$dir"; \
392
+	    $(mkdir_p) "$(distdir)$$dir"; \
393
+	  else \
394
+	    dir=''; \
395
+	  fi; \
393 396
 	  if test -d $$d/$$file; then \
394
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 397
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 398
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 399
 	    fi; \
... ...
@@ -407,7 +421,7 @@ check: check-am
407 407
 all-am: Makefile $(MANS)
408 408
 installdirs:
409 409
 	for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \
410
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
411 411
 	done
412 412
 install: install-am
413 413
 install-exec: install-exec-am
... ...
@@ -439,7 +453,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
439 439
 
440 440
 distclean: distclean-am
441 441
 	-rm -f Makefile
442
-distclean-am: clean-am distclean-generic
442
+distclean-am: clean-am distclean-generic distclean-libtool
443 443
 
444 444
 dvi: dvi-am
445 445
 
... ...
@@ -453,20 +467,12 @@ info-am:
453 453
 
454 454
 install-data-am: install-man
455 455
 
456
-install-dvi: install-dvi-am
457
-
458 456
 install-exec-am:
459 457
 
460
-install-html: install-html-am
461
-
462 458
 install-info: install-info-am
463 459
 
464 460
 install-man: install-man1 install-man5 install-man8
465 461
 
466
-install-pdf: install-pdf-am
467
-
468
-install-ps: install-ps-am
469
-
470 462
 installcheck-am:
471 463
 
472 464
 maintainer-clean: maintainer-clean-am
... ...
@@ -485,24 +491,21 @@ ps: ps-am
485 485
 
486 486
 ps-am:
487 487
 
488
-uninstall-am: uninstall-man
488
+uninstall-am: uninstall-info-am uninstall-man
489 489
 
490 490
 uninstall-man: uninstall-man1 uninstall-man5 uninstall-man8
491 491
 
492
-.MAKE: install-am install-strip
493
-
494 492
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
495 493
 	distclean distclean-generic distclean-libtool distdir dvi \
496 494
 	dvi-am html html-am info info-am install install-am \
497
-	install-data install-data-am install-dvi install-dvi-am \
498
-	install-exec install-exec-am install-html install-html-am \
495
+	install-data install-data-am install-exec install-exec-am \
499 496
 	install-info install-info-am install-man install-man1 \
500
-	install-man5 install-man8 install-pdf install-pdf-am \
501
-	install-ps install-ps-am install-strip installcheck \
497
+	install-man5 install-man8 install-strip installcheck \
502 498
 	installcheck-am installdirs maintainer-clean \
503 499
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
504 500
 	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
505
-	uninstall-man uninstall-man1 uninstall-man5 uninstall-man8
501
+	uninstall-info-am uninstall-man uninstall-man1 uninstall-man5 \
502
+	uninstall-man8
506 503
 
507 504
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
508 505
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -31,11 +31,15 @@
31 31
 #  along with this program; if not, write to the Free Software
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34
+srcdir = @srcdir@
35
+top_srcdir = @top_srcdir@
34 36
 VPATH = @srcdir@
35 37
 pkgdatadir = $(datadir)/@PACKAGE@
36 38
 pkglibdir = $(libdir)/@PACKAGE@
37 39
 pkgincludedir = $(includedir)/@PACKAGE@
40
+top_builddir = ..
38 41
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42
+INSTALL = @INSTALL@
39 43
 install_sh_DATA = $(install_sh) -c -m 644
40 44
 install_sh_PROGRAM = $(install_sh) -c
41 45
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -64,12 +68,16 @@ SOURCES =
64 64
 DIST_SOURCES =
65 65
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
66 66
 ACLOCAL = @ACLOCAL@
67
+AMDEP_FALSE = @AMDEP_FALSE@
68
+AMDEP_TRUE = @AMDEP_TRUE@
67 69
 AMTAR = @AMTAR@
68 70
 AR = @AR@
69 71
 AUTOCONF = @AUTOCONF@
70 72
 AUTOHEADER = @AUTOHEADER@
71 73
 AUTOMAKE = @AUTOMAKE@
72 74
 AWK = @AWK@
75
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
76
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
73 77
 CC = @CC@
74 78
 CCDEPMODE = @CCDEPMODE@
75 79
 CFGDIR = @CFGDIR@
... ...
@@ -93,13 +101,16 @@ ECHO_C = @ECHO_C@
93 93
 ECHO_N = @ECHO_N@
94 94
 ECHO_T = @ECHO_T@
95 95
 EGREP = @EGREP@
96
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
97
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
96 98
 EXEEXT = @EXEEXT@
97 99
 F77 = @F77@
98 100
 FFLAGS = @FFLAGS@
99 101
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
100 102
 GETENT = @GETENT@
101 103
 GREP = @GREP@
102
-INSTALL = @INSTALL@
104
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
105
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
103 106
 INSTALL_DATA = @INSTALL_DATA@
104 107
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
105 108
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -113,8 +124,9 @@ LIBTOOL = @LIBTOOL@
113 113
 LN_S = @LN_S@
114 114
 LTLIBOBJS = @LTLIBOBJS@
115 115
 MAINT = @MAINT@
116
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
117
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
116 118
 MAKEINFO = @MAKEINFO@
117
-MKDIR_P = @MKDIR_P@
118 119
 OBJEXT = @OBJEXT@
119 120
 PACKAGE = @PACKAGE@
120 121
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -131,13 +143,13 @@ STRIP = @STRIP@
131 131
 THREAD_LIBS = @THREAD_LIBS@
132 132
 TH_SAFE = @TH_SAFE@
133 133
 VERSION = @VERSION@
134
-abs_builddir = @abs_builddir@
135
-abs_srcdir = @abs_srcdir@
136
-abs_top_builddir = @abs_top_builddir@
137
-abs_top_srcdir = @abs_top_srcdir@
138 134
 ac_ct_CC = @ac_ct_CC@
139 135
 ac_ct_CXX = @ac_ct_CXX@
140 136
 ac_ct_F77 = @ac_ct_F77@
137
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
138
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
139
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
140
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
141 141
 am__include = @am__include@
142 142
 am__leading_dot = @am__leading_dot@
143 143
 am__quote = @am__quote@
... ...
@@ -149,7 +161,6 @@ build_alias = @build_alias@
149 149
 build_cpu = @build_cpu@
150 150
 build_os = @build_os@
151 151
 build_vendor = @build_vendor@
152
-builddir = @builddir@
153 152
 datadir = @datadir@
154 153
 datarootdir = @datarootdir@
155 154
 docdir = @docdir@
... ...
@@ -178,15 +189,12 @@ psdir = @psdir@
178 178
 sbindir = @sbindir@
179 179
 sendmailprog = @sendmailprog@
180 180
 sharedstatedir = @sharedstatedir@
181
-srcdir = @srcdir@
182 181
 sysconfdir = @sysconfdir@
183 182
 target = @target@
184 183
 target_alias = @target_alias@
185 184
 target_cpu = @target_cpu@
186 185
 target_os = @target_os@
187 186
 target_vendor = @target_vendor@
188
-top_builddir = @top_builddir@
189
-top_srcdir = @top_srcdir@
190 187
 EXTRA_DIST = clamd.conf freshclam.conf
191 188
 CFGINST = @CFGDIR@
192 189
 all: all-am
... ...
@@ -227,6 +235,10 @@ mostlyclean-libtool:
227 227
 
228 228
 clean-libtool:
229 229
 	-rm -rf .libs _libs
230
+
231
+distclean-libtool:
232
+	-rm -f libtool
233
+uninstall-info-am:
230 234
 tags: TAGS
231 235
 TAGS:
232 236
 
... ...
@@ -235,21 +247,22 @@ CTAGS:
235 235
 
236 236
 
237 237
 distdir: $(DISTFILES)
238
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
239
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
240
-	list='$(DISTFILES)'; \
241
-	  dist_files=`for file in $$list; do echo $$file; done | \
242
-	  sed -e "s|^$$srcdirstrip/||;t" \
243
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
244
-	case $$dist_files in \
245
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
246
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
247
-			   sort -u` ;; \
248
-	esac; \
249
-	for file in $$dist_files; do \
238
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
239
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
240
+	list='$(DISTFILES)'; for file in $$list; do \
241
+	  case $$file in \
242
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
243
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
244
+	  esac; \
250 245
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
246
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
247
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
248
+	    dir="/$$dir"; \
249
+	    $(mkdir_p) "$(distdir)$$dir"; \
250
+	  else \
251
+	    dir=''; \
252
+	  fi; \
251 253
 	  if test -d $$d/$$file; then \
252
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
253 254
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
254 255
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
255 256
 	    fi; \
... ...
@@ -293,7 +306,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
293 293
 
294 294
 distclean: distclean-am
295 295
 	-rm -f Makefile
296
-distclean-am: clean-am distclean-generic
296
+distclean-am: clean-am distclean-generic distclean-libtool
297 297
 
298 298
 dvi: dvi-am
299 299
 
... ...
@@ -307,20 +320,12 @@ info-am:
307 307
 
308 308
 install-data-am:
309 309
 
310
-install-dvi: install-dvi-am
311
-
312 310
 install-exec-am:
313 311
 
314
-install-html: install-html-am
315
-
316 312
 install-info: install-info-am
317 313
 
318 314
 install-man:
319 315
 
320
-install-pdf: install-pdf-am
321
-
322
-install-ps: install-ps-am
323
-
324 316
 installcheck-am:
325 317
 
326 318
 maintainer-clean: maintainer-clean-am
... ...
@@ -339,20 +344,17 @@ ps: ps-am
339 339
 
340 340
 ps-am:
341 341
 
342
-uninstall-am:
343
-
344
-.MAKE: install-am install-strip
342
+uninstall-am: uninstall-info-am
345 343
 
346 344
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
347 345
 	distclean distclean-generic distclean-libtool distdir dvi \
348 346
 	dvi-am html html-am info info-am install install-am \
349
-	install-data install-data-am install-dvi install-dvi-am \
350
-	install-exec install-exec-am install-html install-html-am \
351
-	install-info install-info-am install-man install-pdf \
352
-	install-pdf-am install-ps install-ps-am install-strip \
347
+	install-data install-data-am install-exec install-exec-am \
348
+	install-info install-info-am install-man install-strip \
353 349
 	installcheck installcheck-am installdirs maintainer-clean \
354 350
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
355
-	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
351
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
352
+	uninstall-info-am
356 353
 
357 354
 
358 355
 install:
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,11 +33,15 @@
33 33
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
34 34
 #  MA 02110-1301, USA.
35 35
 
36
+srcdir = @srcdir@
37
+top_srcdir = @top_srcdir@
36 38
 VPATH = @srcdir@
37 39
 pkgdatadir = $(datadir)/@PACKAGE@
38 40
 pkglibdir = $(libdir)/@PACKAGE@
39 41
 pkgincludedir = $(includedir)/@PACKAGE@
42
+top_builddir = ..
40 43
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
+INSTALL = @INSTALL@
41 45
 install_sh_DATA = $(install_sh) -c -m 644
42 46
 install_sh_PROGRAM = $(install_sh) -c
43 47
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -73,30 +77,33 @@ am_freshclam_OBJECTS = output.$(OBJEXT) cfgparser.$(OBJEXT) \
73 73
 	execute.$(OBJEXT) nonblock.$(OBJEXT) mirman.$(OBJEXT)
74 74
 freshclam_OBJECTS = $(am_freshclam_OBJECTS)
75 75
 freshclam_LDADD = $(LDADD)
76
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
76
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
77 77
 depcomp = $(SHELL) $(top_srcdir)/depcomp
78 78
 am__depfiles_maybe = depfiles
79 79
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
80 80
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
81
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
82
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
83
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
81
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
82
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
83
+	$(AM_CFLAGS) $(CFLAGS)
84 84
 CCLD = $(CC)
85
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
86
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
87
-	$(LDFLAGS) -o $@
85
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
86
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
88 87
 SOURCES = $(freshclam_SOURCES)
89 88
 DIST_SOURCES = $(freshclam_SOURCES)
90 89
 ETAGS = etags
91 90
 CTAGS = ctags
92 91
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
93 92
 ACLOCAL = @ACLOCAL@
93
+AMDEP_FALSE = @AMDEP_FALSE@
94
+AMDEP_TRUE = @AMDEP_TRUE@
94 95
 AMTAR = @AMTAR@
95 96
 AR = @AR@
96 97
 AUTOCONF = @AUTOCONF@
97 98
 AUTOHEADER = @AUTOHEADER@
98 99
 AUTOMAKE = @AUTOMAKE@
99 100
 AWK = @AWK@
101
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
102
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
100 103
 CC = @CC@
101 104
 CCDEPMODE = @CCDEPMODE@
102 105
 CFGDIR = @CFGDIR@
... ...
@@ -120,13 +127,16 @@ ECHO_C = @ECHO_C@
120 120
 ECHO_N = @ECHO_N@
121 121
 ECHO_T = @ECHO_T@
122 122
 EGREP = @EGREP@
123
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
124
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
123 125
 EXEEXT = @EXEEXT@
124 126
 F77 = @F77@
125 127
 FFLAGS = @FFLAGS@
126 128
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
127 129
 GETENT = @GETENT@
128 130
 GREP = @GREP@
129
-INSTALL = @INSTALL@
131
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
132
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
130 133
 INSTALL_DATA = @INSTALL_DATA@
131 134
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
132 135
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -140,8 +150,9 @@ LIBTOOL = @LIBTOOL@
140 140
 LN_S = @LN_S@
141 141
 LTLIBOBJS = @LTLIBOBJS@
142 142
 MAINT = @MAINT@
143
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
144
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
143 145
 MAKEINFO = @MAKEINFO@
144
-MKDIR_P = @MKDIR_P@
145 146
 OBJEXT = @OBJEXT@
146 147
 PACKAGE = @PACKAGE@
147 148
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -158,13 +169,13 @@ STRIP = @STRIP@
158 158
 THREAD_LIBS = @THREAD_LIBS@
159 159
 TH_SAFE = @TH_SAFE@
160 160
 VERSION = @VERSION@
161
-abs_builddir = @abs_builddir@
162
-abs_srcdir = @abs_srcdir@
163
-abs_top_builddir = @abs_top_builddir@
164
-abs_top_srcdir = @abs_top_srcdir@
165 161
 ac_ct_CC = @ac_ct_CC@
166 162
 ac_ct_CXX = @ac_ct_CXX@
167 163
 ac_ct_F77 = @ac_ct_F77@
164
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
165
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
166
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
167
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
168 168
 am__include = @am__include@
169 169
 am__leading_dot = @am__leading_dot@
170 170
 am__quote = @am__quote@
... ...
@@ -176,7 +187,6 @@ build_alias = @build_alias@
176 176
 build_cpu = @build_cpu@
177 177
 build_os = @build_os@
178 178
 build_vendor = @build_vendor@
179
-builddir = @builddir@
180 179
 datadir = @datadir@
181 180
 datarootdir = @datarootdir@
182 181
 docdir = @docdir@
... ...
@@ -205,15 +215,12 @@ psdir = @psdir@
205 205
 sbindir = @sbindir@
206 206
 sendmailprog = @sendmailprog@
207 207
 sharedstatedir = @sharedstatedir@
208
-srcdir = @srcdir@
209 208
 sysconfdir = @sysconfdir@
210 209
 target = @target@
211 210
 target_alias = @target_alias@
212 211
 target_cpu = @target_cpu@
213 212
 target_os = @target_os@
214 213
 target_vendor = @target_vendor@
215
-top_builddir = @top_builddir@
216
-top_srcdir = @top_srcdir@
217 214
 freshclam_SOURCES = \
218 215
     $(top_srcdir)/shared/output.c \
219 216
     $(top_srcdir)/shared/output.h \
... ...
@@ -278,7 +285,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
278 278
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
279 279
 install-binPROGRAMS: $(bin_PROGRAMS)
280 280
 	@$(NORMAL_INSTALL)
281
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
281
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
282 282
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
283 283
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
284 284
 	  if test -f $$p \
... ...
@@ -306,7 +313,7 @@ clean-binPROGRAMS:
306 306
 	done
307 307
 freshclam$(EXEEXT): $(freshclam_OBJECTS) $(freshclam_DEPENDENCIES) 
308 308
 	@rm -f freshclam$(EXEEXT)
309
-	$(LINK) $(freshclam_OBJECTS) $(freshclam_LDADD) $(LIBS)
309
+	$(LINK) $(freshclam_LDFLAGS) $(freshclam_OBJECTS) $(freshclam_LDADD) $(LIBS)
310 310
 
311 311
 mostlyclean-compile:
312 312
 	-rm -f *.$(OBJEXT)
... ...
@@ -330,120 +337,120 @@ distclean-compile:
330 330
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha256.Po@am__quote@
331 331
 
332 332
 .c.o:
333
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
334
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
333
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
334
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
335 335
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
336 336
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 337
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
338 338
 
339 339
 .c.obj:
340
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
341
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
340
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
341
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344 344
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
345 345
 
346 346
 .c.lo:
347
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
348
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
347
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
348
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 351
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
352 352
 
353 353
 output.o: $(top_srcdir)/shared/output.c
354
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
355
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
354
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
355
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358 358
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
359 359
 
360 360
 output.obj: $(top_srcdir)/shared/output.c
361
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
362
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
361
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
362
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365 365
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
366 366
 
367 367
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
368
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
369
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
368
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
369
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 372
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
373 373
 
374 374
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
375
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
376
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
375
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
376
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 379
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
380 380
 
381 381
 getopt.o: $(top_srcdir)/shared/getopt.c
382
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
383
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
382
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
383
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 386
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
387 387
 
388 388
 getopt.obj: $(top_srcdir)/shared/getopt.c
389
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
390
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
389
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
390
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 393
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
394 394
 
395 395
 misc.o: $(top_srcdir)/shared/misc.c
396
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
397
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
396
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
397
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 400
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
401 401
 
402 402
 misc.obj: $(top_srcdir)/shared/misc.c
403
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
404
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
403
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
404
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 407
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
408 408
 
409 409
 options.o: $(top_srcdir)/shared/options.c
410
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
411
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
410
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
411
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
412 412
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414 414
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
415 415
 
416 416
 options.obj: $(top_srcdir)/shared/options.c
417
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
418
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
417
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
418
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
419 419
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
420 420
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421 421
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
422 422
 
423 423
 sha256.o: $(top_srcdir)/shared/sha256.c
424
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
425
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
424
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c; \
425
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
426 426
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.o' libtool=no @AMDEPBACKSLASH@
427 427
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428 428
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
429 429
 
430 430
 sha256.obj: $(top_srcdir)/shared/sha256.c
431
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
432
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
431
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`; \
432
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
433 433
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.obj' libtool=no @AMDEPBACKSLASH@
434 434
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
435 435
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
436 436
 
437 437
 cdiff.o: $(top_srcdir)/shared/cdiff.c
438
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
439
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
438
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c; \
439
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
440 440
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.o' libtool=no @AMDEPBACKSLASH@
441 441
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
442 442
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
443 443
 
444 444
 cdiff.obj: $(top_srcdir)/shared/cdiff.c
445
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
446
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
445
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`; \
446
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
447 447
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.obj' libtool=no @AMDEPBACKSLASH@
448 448
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
449 449
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
... ...
@@ -454,6 +461,10 @@ mostlyclean-libtool:
454 454
 clean-libtool:
455 455
 	-rm -rf .libs _libs
456 456
 
457
+distclean-libtool:
458
+	-rm -f libtool
459
+uninstall-info-am:
460
+
457 461
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
458 462
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
459 463
 	unique=`for i in $$list; do \
... ...
@@ -503,21 +514,22 @@ distclean-tags:
503 503
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
504 504
 
505 505
 distdir: $(DISTFILES)
506
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
507
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
508
-	list='$(DISTFILES)'; \
509
-	  dist_files=`for file in $$list; do echo $$file; done | \
510
-	  sed -e "s|^$$srcdirstrip/||;t" \
511
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
512
-	case $$dist_files in \
513
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
514
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
515
-			   sort -u` ;; \
516
-	esac; \
517
-	for file in $$dist_files; do \
506
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
507
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
508
+	list='$(DISTFILES)'; for file in $$list; do \
509
+	  case $$file in \
510
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
511
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
512
+	  esac; \
518 513
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
514
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
515
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
516
+	    dir="/$$dir"; \
517
+	    $(mkdir_p) "$(distdir)$$dir"; \
518
+	  else \
519
+	    dir=''; \
520
+	  fi; \
519 521
 	  if test -d $$d/$$file; then \
520
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
521 522
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
522 523
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
523 524
 	    fi; \
... ...
@@ -533,7 +545,7 @@ check: check-am
533 533
 all-am: Makefile $(PROGRAMS)
534 534
 installdirs:
535 535
 	for dir in "$(DESTDIR)$(bindir)"; do \
536
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
536
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
537 537
 	done
538 538
 install: install-am
539 539
 install-exec: install-exec-am
... ...
@@ -567,7 +579,7 @@ distclean: distclean-am
567 567
 	-rm -rf ./$(DEPDIR)
568 568
 	-rm -f Makefile
569 569
 distclean-am: clean-am distclean-compile distclean-generic \
570
-	distclean-tags
570
+	distclean-libtool distclean-tags
571 571
 
572 572
 dvi: dvi-am
573 573
 
... ...
@@ -581,20 +593,12 @@ info-am:
581 581
 
582 582
 install-data-am:
583 583
 
584
-install-dvi: install-dvi-am
585
-
586 584
 install-exec-am: install-binPROGRAMS
587 585
 
588
-install-html: install-html-am
589
-
590 586
 install-info: install-info-am
591 587
 
592 588
 install-man:
593 589
 
594
-install-pdf: install-pdf-am
595
-
596
-install-ps: install-ps-am
597
-
598 590
 installcheck-am:
599 591
 
600 592
 maintainer-clean: maintainer-clean-am
... ...
@@ -615,23 +619,19 @@ ps: ps-am
615 615
 
616 616
 ps-am:
617 617
 
618
-uninstall-am: uninstall-binPROGRAMS
619
-
620
-.MAKE: install-am install-strip
618
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
621 619
 
622 620
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
623 621
 	clean-generic clean-libtool ctags distclean distclean-compile \
624 622
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
625 623
 	dvi-am html html-am info info-am install install-am \
626
-	install-binPROGRAMS install-data install-data-am install-dvi \
627
-	install-dvi-am install-exec install-exec-am install-html \
628
-	install-html-am install-info install-info-am install-man \
629
-	install-pdf install-pdf-am install-ps install-ps-am \
624
+	install-binPROGRAMS install-data install-data-am install-exec \
625
+	install-exec-am install-info install-info-am install-man \
630 626
 	install-strip installcheck installcheck-am installdirs \
631 627
 	maintainer-clean maintainer-clean-generic mostlyclean \
632 628
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
633 629
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
634
-	uninstall-binPROGRAMS
630
+	uninstall-binPROGRAMS uninstall-info-am
635 631
 
636 632
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
637 633
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,5 +1,5 @@
1 1
 #
2
-#  Copyright (C) 2002 - 2006 Tomasz Kojm <tkojm@clamav.net>
2
+#  Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
3 3
 #
4 4
 #  This program is free software; you can redistribute it and/or modify
5 5
 #  it under the terms of the GNU General Public License as published by
... ...
@@ -16,13 +16,14 @@
16 16
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
 #  MA 02110-1301, USA.
18 18
 
19
+SUBDIRS = lzma .
19 20
 
20
-INCLUDES = -I$(top_srcdir) -I@srcdir@/nsis
21
+INCLUDES = -I$(top_srcdir) -I@srcdir@/nsis -I@srcdir@/lzma
21 22
 
22 23
 if ENABLE_UNRAR
23 24
 libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ $(top_builddir)/libclamunrar_iface/libclamunrar_iface.la
24 25
 else
25
-libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
26
+libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ lzma/liblzma.la
26 27
 endif
27 28
 
28 29
 libclamav_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
... ...
@@ -106,6 +107,10 @@ libclamav_la_SOURCES = \
106 106
 	untar.h \
107 107
 	unzip.c \
108 108
 	unzip.h \
109
+	inflate64.c \
110
+	inflate64.h \
111
+	inffixed64.h \
112
+	inflate64_priv.h \
109 113
 	special.c \
110 114
 	special.h \
111 115
 	binhex.c \
... ...
@@ -128,15 +133,9 @@ libclamav_la_SOURCES = \
128 128
 	regex/utils.h \
129 129
 	unarj.c \
130 130
 	unarj.h \
131
-	nsis/LZMADecode.c \
132
-	nsis/LZMADecode.h \
133 131
 	nsis/bzlib.c \
134 132
 	nsis/bzlib_private.h \
135
-	nsis/infblock.c \
136 133
 	nsis/nsis_bzlib.h \
137
-	nsis/nsis_zconf.h \
138
-	nsis/nsis_zlib.h \
139
-	nsis/nsis_zutil.h \
140 134
 	nsis/nulsft.c \
141 135
 	nsis/nulsft.h \
142 136
 	pdf.c \
... ...
@@ -176,7 +175,9 @@ libclamav_la_SOURCES = \
176 176
 	dconf.c \
177 177
 	dconf.h \
178 178
 	lockdb.c \
179
-	lockdb.h
179
+	lockdb.h \
180
+	lzma_iface.c \
181
+	lzma_iface.h
180 182
 
181 183
 lib_LTLIBRARIES = libclamav.la
182 184
 EXTRA_DIST = regex/engine.c
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -15,7 +15,7 @@
15 15
 @SET_MAKE@
16 16
 
17 17
 #
18
-#  Copyright (C) 2002 - 2006 Tomasz Kojm <tkojm@clamav.net>
18
+#  Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
19 19
 #
20 20
 #  This program is free software; you can redistribute it and/or modify
21 21
 #  it under the terms of the GNU General Public License as published by
... ...
@@ -33,11 +33,15 @@
33 33
 #  MA 02110-1301, USA.
34 34
 
35 35
 
36
+srcdir = @srcdir@
37
+top_srcdir = @top_srcdir@
36 38
 VPATH = @srcdir@
37 39
 pkgdatadir = $(datadir)/@PACKAGE@
38 40
 pkglibdir = $(libdir)/@PACKAGE@
39 41
 pkgincludedir = $(includedir)/@PACKAGE@
42
+top_builddir = ..
40 43
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
+INSTALL = @INSTALL@
41 45
 install_sh_DATA = $(install_sh) -c -m 644
42 46
 install_sh_PROGRAM = $(install_sh) -c
43 47
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -72,6 +76,7 @@ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
72 72
 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
73 73
 libLTLIBRARIES_INSTALL = $(INSTALL)
74 74
 LTLIBRARIES = $(lib_LTLIBRARIES)
75
+@ENABLE_UNRAR_FALSE@libclamav_la_DEPENDENCIES = lzma/liblzma.la
75 76
 @ENABLE_UNRAR_TRUE@libclamav_la_DEPENDENCIES = $(top_builddir)/libclamunrar_iface/libclamunrar_iface.la
76 77
 am_libclamav_la_OBJECTS = matcher-ac.lo matcher-bm.lo matcher.lo \
77 78
 	md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo \
... ...
@@ -79,43 +84,50 @@ am_libclamav_la_OBJECTS = matcher-ac.lo matcher-bm.lo matcher.lo \
79 79
 	table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo \
80 80
 	pe.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo \
81 81
 	wwunpack.lo unsp.lo aspack.lo packlibs.lo fsg.lo mew.lo \
82
-	upack.lo line.lo untar.lo unzip.lo special.lo binhex.lo \
83
-	is_tar.lo tnef.lo autoit.lo strlcpy.lo regcomp.lo regerror.lo \
84
-	regexec.lo regfree.lo unarj.lo LZMADecode.lo bzlib.lo \
85
-	infblock.lo nulsft.lo pdf.lo spin.lo yc.lo elf.lo sis.lo \
86
-	uuencode.lo pst.lo phishcheck.lo phish_domaincheck_db.lo \
87
-	phish_whitelist.lo regex_list.lo mspack.lo cab.lo entconv.lo \
88
-	hashtab.lo dconf.lo lockdb.lo
82
+	upack.lo line.lo untar.lo unzip.lo inflate64.lo special.lo \
83
+	binhex.lo is_tar.lo tnef.lo autoit.lo strlcpy.lo regcomp.lo \
84
+	regerror.lo regexec.lo regfree.lo unarj.lo bzlib.lo nulsft.lo \
85
+	pdf.lo spin.lo yc.lo elf.lo sis.lo uuencode.lo pst.lo \
86
+	phishcheck.lo phish_domaincheck_db.lo phish_whitelist.lo \
87
+	regex_list.lo mspack.lo cab.lo entconv.lo hashtab.lo dconf.lo \
88
+	lockdb.lo lzma_iface.lo
89 89
 libclamav_la_OBJECTS = $(am_libclamav_la_OBJECTS)
90
-libclamav_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
91
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
92
-	$(libclamav_la_LDFLAGS) $(LDFLAGS) -o $@
93
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
90
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
94 91
 depcomp = $(SHELL) $(top_srcdir)/depcomp
95 92
 am__depfiles_maybe = depfiles
96 93
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
97 94
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
98
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
99
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
100
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
95
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
96
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
97
+	$(AM_CFLAGS) $(CFLAGS)
101 98
 CCLD = $(CC)
102
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
104
-	$(LDFLAGS) -o $@
99
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
100
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
105 101
 SOURCES = $(libclamav_la_SOURCES)
106 102
 DIST_SOURCES = $(libclamav_la_SOURCES)
103
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
104
+	html-recursive info-recursive install-data-recursive \
105
+	install-exec-recursive install-info-recursive \
106
+	install-recursive installcheck-recursive installdirs-recursive \
107
+	pdf-recursive ps-recursive uninstall-info-recursive \
108
+	uninstall-recursive
107 109
 includeHEADERS_INSTALL = $(INSTALL_HEADER)
108 110
 HEADERS = $(include_HEADERS)
109 111
 ETAGS = etags
110 112
 CTAGS = ctags
113
+DIST_SUBDIRS = $(SUBDIRS)
111 114
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
112 115
 ACLOCAL = @ACLOCAL@
116
+AMDEP_FALSE = @AMDEP_FALSE@
117
+AMDEP_TRUE = @AMDEP_TRUE@
113 118
 AMTAR = @AMTAR@
114 119
 AR = @AR@
115 120
 AUTOCONF = @AUTOCONF@
116 121
 AUTOHEADER = @AUTOHEADER@
117 122
 AUTOMAKE = @AUTOMAKE@
118 123
 AWK = @AWK@
124
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
125
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
119 126
 CC = @CC@
120 127
 CCDEPMODE = @CCDEPMODE@
121 128
 CFGDIR = @CFGDIR@
... ...
@@ -139,13 +151,16 @@ ECHO_C = @ECHO_C@
139 139
 ECHO_N = @ECHO_N@
140 140
 ECHO_T = @ECHO_T@
141 141
 EGREP = @EGREP@
142
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
143
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
142 144
 EXEEXT = @EXEEXT@
143 145
 F77 = @F77@
144 146
 FFLAGS = @FFLAGS@
145 147
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
146 148
 GETENT = @GETENT@
147 149
 GREP = @GREP@
148
-INSTALL = @INSTALL@
150
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
151
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
149 152
 INSTALL_DATA = @INSTALL_DATA@
150 153
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
151 154
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -159,8 +174,9 @@ LIBTOOL = @LIBTOOL@
159 159
 LN_S = @LN_S@
160 160
 LTLIBOBJS = @LTLIBOBJS@
161 161
 MAINT = @MAINT@
162
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
163
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
162 164
 MAKEINFO = @MAKEINFO@
163
-MKDIR_P = @MKDIR_P@
164 165
 OBJEXT = @OBJEXT@
165 166
 PACKAGE = @PACKAGE@
166 167
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -177,13 +193,13 @@ STRIP = @STRIP@
177 177
 THREAD_LIBS = @THREAD_LIBS@
178 178
 TH_SAFE = @TH_SAFE@
179 179
 VERSION = @VERSION@
180
-abs_builddir = @abs_builddir@
181
-abs_srcdir = @abs_srcdir@
182
-abs_top_builddir = @abs_top_builddir@
183
-abs_top_srcdir = @abs_top_srcdir@
184 180
 ac_ct_CC = @ac_ct_CC@
185 181
 ac_ct_CXX = @ac_ct_CXX@
186 182
 ac_ct_F77 = @ac_ct_F77@
183
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
184
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
185
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
186
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
187 187
 am__include = @am__include@
188 188
 am__leading_dot = @am__leading_dot@
189 189
 am__quote = @am__quote@
... ...
@@ -195,7 +211,6 @@ build_alias = @build_alias@
195 195
 build_cpu = @build_cpu@
196 196
 build_os = @build_os@
197 197
 build_vendor = @build_vendor@
198
-builddir = @builddir@
199 198
 datadir = @datadir@
200 199
 datarootdir = @datarootdir@
201 200
 docdir = @docdir@
... ...
@@ -224,17 +239,15 @@ psdir = @psdir@
224 224
 sbindir = @sbindir@
225 225
 sendmailprog = @sendmailprog@
226 226
 sharedstatedir = @sharedstatedir@
227
-srcdir = @srcdir@
228 227
 sysconfdir = @sysconfdir@
229 228
 target = @target@
230 229
 target_alias = @target_alias@
231 230
 target_cpu = @target_cpu@
232 231
 target_os = @target_os@
233 232
 target_vendor = @target_vendor@
234
-top_builddir = @top_builddir@
235
-top_srcdir = @top_srcdir@
236
-INCLUDES = -I$(top_srcdir) -I@srcdir@/nsis
237
-@ENABLE_UNRAR_FALSE@libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
233
+SUBDIRS = lzma .
234
+INCLUDES = -I$(top_srcdir) -I@srcdir@/nsis -I@srcdir@/lzma
235
+@ENABLE_UNRAR_FALSE@libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ lzma/liblzma.la
238 236
 @ENABLE_UNRAR_TRUE@libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ $(top_builddir)/libclamunrar_iface/libclamunrar_iface.la
239 237
 libclamav_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
240 238
 include_HEADERS = clamav.h
... ...
@@ -315,6 +328,10 @@ libclamav_la_SOURCES = \
315 315
 	untar.h \
316 316
 	unzip.c \
317 317
 	unzip.h \
318
+	inflate64.c \
319
+	inflate64.h \
320
+	inffixed64.h \
321
+	inflate64_priv.h \
318 322
 	special.c \
319 323
 	special.h \
320 324
 	binhex.c \
... ...
@@ -337,15 +354,9 @@ libclamav_la_SOURCES = \
337 337
 	regex/utils.h \
338 338
 	unarj.c \
339 339
 	unarj.h \
340
-	nsis/LZMADecode.c \
341
-	nsis/LZMADecode.h \
342 340
 	nsis/bzlib.c \
343 341
 	nsis/bzlib_private.h \
344
-	nsis/infblock.c \
345 342
 	nsis/nsis_bzlib.h \
346
-	nsis/nsis_zconf.h \
347
-	nsis/nsis_zlib.h \
348
-	nsis/nsis_zutil.h \
349 343
 	nsis/nulsft.c \
350 344
 	nsis/nulsft.h \
351 345
 	pdf.c \
... ...
@@ -385,11 +396,13 @@ libclamav_la_SOURCES = \
385 385
 	dconf.c \
386 386
 	dconf.h \
387 387
 	lockdb.c \
388
-	lockdb.h
388
+	lockdb.h \
389
+	lzma_iface.c \
390
+	lzma_iface.h
389 391
 
390 392
 lib_LTLIBRARIES = libclamav.la
391 393
 EXTRA_DIST = regex/engine.c
392
-all: all-am
394
+all: all-recursive
393 395
 
394 396
 .SUFFIXES:
395 397
 .SUFFIXES: .c .lo .o .obj
... ...
@@ -424,7 +437,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
424 424
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
425 425
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
426 426
 	@$(NORMAL_INSTALL)
427
-	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
427
+	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
428 428
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
429 429
 	  if test -f $$p; then \
430 430
 	    f=$(am__strip_dir) \
... ...
@@ -435,7 +448,7 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
435 435
 
436 436
 uninstall-libLTLIBRARIES:
437 437
 	@$(NORMAL_UNINSTALL)
438
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
438
+	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
439 439
 	  p=$(am__strip_dir) \
440 440
 	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
441 441
 	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
... ...
@@ -450,7 +463,7 @@ clean-libLTLIBRARIES:
450 450
 	  rm -f "$${dir}/so_locations"; \
451 451
 	done
452 452
 libclamav.la: $(libclamav_la_OBJECTS) $(libclamav_la_DEPENDENCIES) 
453
-	$(libclamav_la_LINK) -rpath $(libdir) $(libclamav_la_OBJECTS) $(libclamav_la_LIBADD) $(LIBS)
453
+	$(LINK) -rpath $(libdir) $(libclamav_la_LDFLAGS) $(libclamav_la_OBJECTS) $(libclamav_la_LIBADD) $(LIBS)
454 454
 
455 455
 mostlyclean-compile:
456 456
 	-rm -f *.$(OBJEXT)
... ...
@@ -458,7 +471,6 @@ mostlyclean-compile:
458 458
 distclean-compile:
459 459
 	-rm -f *.tab.c
460 460
 
461
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/LZMADecode.Plo@am__quote@
462 461
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aspack.Plo@am__quote@
463 462
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/autoit.Plo@am__quote@
464 463
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/binhex.Plo@am__quote@
... ...
@@ -475,10 +487,11 @@ distclean-compile:
475 475
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsg.Plo@am__quote@
476 476
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashtab.Plo@am__quote@
477 477
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/htmlnorm.Plo@am__quote@
478
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/infblock.Plo@am__quote@
478
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inflate64.Plo@am__quote@
479 479
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/is_tar.Plo@am__quote@
480 480
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/line.Plo@am__quote@
481 481
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lockdb.Plo@am__quote@
482
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzma_iface.Plo@am__quote@
482 483
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/matcher-ac.Plo@am__quote@
483 484
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/matcher-bm.Plo@am__quote@
484 485
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/matcher.Plo@am__quote@
... ...
@@ -529,97 +542,87 @@ distclean-compile:
529 529
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yc.Plo@am__quote@
530 530
 
531 531
 .c.o:
532
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
533
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
532
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
533
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
534 534
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
535 535
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
536 536
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
537 537
 
538 538
 .c.obj:
539
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
540
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
539
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
540
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
541 541
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
542 542
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
543 543
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
544 544
 
545 545
 .c.lo:
546
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
547
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
546
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
547
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
548 548
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
549 549
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
550 550
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
551 551
 
552 552
 strlcpy.lo: regex/strlcpy.c
553
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT strlcpy.lo -MD -MP -MF $(DEPDIR)/strlcpy.Tpo -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
554
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/strlcpy.Tpo $(DEPDIR)/strlcpy.Plo
553
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT strlcpy.lo -MD -MP -MF "$(DEPDIR)/strlcpy.Tpo" -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c; \
554
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/strlcpy.Tpo" "$(DEPDIR)/strlcpy.Plo"; else rm -f "$(DEPDIR)/strlcpy.Tpo"; exit 1; fi
555 555
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/strlcpy.c' object='strlcpy.lo' libtool=yes @AMDEPBACKSLASH@
556 556
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
557
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
557
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
558 558
 
559 559
 regcomp.lo: regex/regcomp.c
560
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.lo -MD -MP -MF $(DEPDIR)/regcomp.Tpo -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
561
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regcomp.Tpo $(DEPDIR)/regcomp.Plo
560
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.lo -MD -MP -MF "$(DEPDIR)/regcomp.Tpo" -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c; \
561
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regcomp.Tpo" "$(DEPDIR)/regcomp.Plo"; else rm -f "$(DEPDIR)/regcomp.Tpo"; exit 1; fi
562 562
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regcomp.c' object='regcomp.lo' libtool=yes @AMDEPBACKSLASH@
563 563
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
564
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
564
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
565 565
 
566 566
 regerror.lo: regex/regerror.c
567
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regerror.lo -MD -MP -MF $(DEPDIR)/regerror.Tpo -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
568
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regerror.Tpo $(DEPDIR)/regerror.Plo
567
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regerror.lo -MD -MP -MF "$(DEPDIR)/regerror.Tpo" -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c; \
568
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regerror.Tpo" "$(DEPDIR)/regerror.Plo"; else rm -f "$(DEPDIR)/regerror.Tpo"; exit 1; fi
569 569
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regerror.c' object='regerror.lo' libtool=yes @AMDEPBACKSLASH@
570 570
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
571
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
572 572
 
573 573
 regexec.lo: regex/regexec.c
574
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.lo -MD -MP -MF $(DEPDIR)/regexec.Tpo -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
575
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regexec.Tpo $(DEPDIR)/regexec.Plo
574
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.lo -MD -MP -MF "$(DEPDIR)/regexec.Tpo" -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c; \
575
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regexec.Tpo" "$(DEPDIR)/regexec.Plo"; else rm -f "$(DEPDIR)/regexec.Tpo"; exit 1; fi
576 576
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regexec.c' object='regexec.lo' libtool=yes @AMDEPBACKSLASH@
577 577
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
578
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
578
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
579 579
 
580 580
 regfree.lo: regex/regfree.c
581
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regfree.lo -MD -MP -MF $(DEPDIR)/regfree.Tpo -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
582
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regfree.Tpo $(DEPDIR)/regfree.Plo
581
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regfree.lo -MD -MP -MF "$(DEPDIR)/regfree.Tpo" -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c; \
582
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regfree.Tpo" "$(DEPDIR)/regfree.Plo"; else rm -f "$(DEPDIR)/regfree.Tpo"; exit 1; fi
583 583
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regfree.c' object='regfree.lo' libtool=yes @AMDEPBACKSLASH@
584 584
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
585
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
586
-
587
-LZMADecode.lo: nsis/LZMADecode.c
588
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT LZMADecode.lo -MD -MP -MF $(DEPDIR)/LZMADecode.Tpo -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c
589
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/LZMADecode.Tpo $(DEPDIR)/LZMADecode.Plo
590
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/LZMADecode.c' object='LZMADecode.lo' libtool=yes @AMDEPBACKSLASH@
591
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
592
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c
585
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
593 586
 
594 587
 bzlib.lo: nsis/bzlib.c
595
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bzlib.lo -MD -MP -MF $(DEPDIR)/bzlib.Tpo -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
596
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/bzlib.Tpo $(DEPDIR)/bzlib.Plo
588
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bzlib.lo -MD -MP -MF "$(DEPDIR)/bzlib.Tpo" -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c; \
589
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/bzlib.Tpo" "$(DEPDIR)/bzlib.Plo"; else rm -f "$(DEPDIR)/bzlib.Tpo"; exit 1; fi
597 590
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/bzlib.c' object='bzlib.lo' libtool=yes @AMDEPBACKSLASH@
598 591
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
599
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
600
-
601
-infblock.lo: nsis/infblock.c
602
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT infblock.lo -MD -MP -MF $(DEPDIR)/infblock.Tpo -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c
603
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/infblock.Tpo $(DEPDIR)/infblock.Plo
604
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/infblock.c' object='infblock.lo' libtool=yes @AMDEPBACKSLASH@
605
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
606
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c
592
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
607 593
 
608 594
 nulsft.lo: nsis/nulsft.c
609
-@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nulsft.lo -MD -MP -MF $(DEPDIR)/nulsft.Tpo -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
610
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/nulsft.Tpo $(DEPDIR)/nulsft.Plo
595
+@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nulsft.lo -MD -MP -MF "$(DEPDIR)/nulsft.Tpo" -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c; \
596
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/nulsft.Tpo" "$(DEPDIR)/nulsft.Plo"; else rm -f "$(DEPDIR)/nulsft.Tpo"; exit 1; fi
611 597
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/nulsft.c' object='nulsft.lo' libtool=yes @AMDEPBACKSLASH@
612 598
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
613
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
599
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
614 600
 
615 601
 mostlyclean-libtool:
616 602
 	-rm -f *.lo
617 603
 
618 604
 clean-libtool:
619 605
 	-rm -rf .libs _libs
606
+
607
+distclean-libtool:
608
+	-rm -f libtool
609
+uninstall-info-am:
620 610
 install-includeHEADERS: $(include_HEADERS)
621 611
 	@$(NORMAL_INSTALL)
622
-	test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
612
+	test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
623 613
 	@list='$(include_HEADERS)'; for p in $$list; do \
624 614
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
625 615
 	  f=$(am__strip_dir) \
... ...
@@ -635,6 +638,77 @@ uninstall-includeHEADERS:
635 635
 	  rm -f "$(DESTDIR)$(includedir)/$$f"; \
636 636
 	done
637 637
 
638
+# This directory's subdirectories are mostly independent; you can cd
639
+# into them and run `make' without going through this Makefile.
640
+# To change the values of `make' variables: instead of editing Makefiles,
641
+# (1) if the variable is set in `config.status', edit `config.status'
642
+#     (which will cause the Makefiles to be regenerated when you run `make');
643
+# (2) otherwise, pass the desired values on the `make' command line.
644
+$(RECURSIVE_TARGETS):
645
+	@failcom='exit 1'; \
646
+	for f in x $$MAKEFLAGS; do \
647
+	  case $$f in \
648
+	    *=* | --[!k]*);; \
649
+	    *k*) failcom='fail=yes';; \
650
+	  esac; \
651
+	done; \
652
+	dot_seen=no; \
653
+	target=`echo $@ | sed s/-recursive//`; \
654
+	list='$(SUBDIRS)'; for subdir in $$list; do \
655
+	  echo "Making $$target in $$subdir"; \
656
+	  if test "$$subdir" = "."; then \
657
+	    dot_seen=yes; \
658
+	    local_target="$$target-am"; \
659
+	  else \
660
+	    local_target="$$target"; \
661
+	  fi; \
662
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
663
+	  || eval $$failcom; \
664
+	done; \
665
+	if test "$$dot_seen" = "no"; then \
666
+	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
667
+	fi; test -z "$$fail"
668
+
669
+mostlyclean-recursive clean-recursive distclean-recursive \
670
+maintainer-clean-recursive:
671
+	@failcom='exit 1'; \
672
+	for f in x $$MAKEFLAGS; do \
673
+	  case $$f in \
674
+	    *=* | --[!k]*);; \
675
+	    *k*) failcom='fail=yes';; \
676
+	  esac; \
677
+	done; \
678
+	dot_seen=no; \
679
+	case "$@" in \
680
+	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
681
+	  *) list='$(SUBDIRS)' ;; \
682
+	esac; \
683
+	rev=''; for subdir in $$list; do \
684
+	  if test "$$subdir" = "."; then :; else \
685
+	    rev="$$subdir $$rev"; \
686
+	  fi; \
687
+	done; \
688
+	rev="$$rev ."; \
689
+	target=`echo $@ | sed s/-recursive//`; \
690
+	for subdir in $$rev; do \
691
+	  echo "Making $$target in $$subdir"; \
692
+	  if test "$$subdir" = "."; then \
693
+	    local_target="$$target-am"; \
694
+	  else \
695
+	    local_target="$$target"; \
696
+	  fi; \
697
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
698
+	  || eval $$failcom; \
699
+	done && test -z "$$fail"
700
+tags-recursive:
701
+	list='$(SUBDIRS)'; for subdir in $$list; do \
702
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
703
+	done
704
+ctags-recursive:
705
+	list='$(SUBDIRS)'; for subdir in $$list; do \
706
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
707
+	done
708
+
638 709
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
639 710
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
640 711
 	unique=`for i in $$list; do \
... ...
@@ -645,10 +719,23 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
645 645
 	mkid -fID $$unique
646 646
 tags: TAGS
647 647
 
648
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
648
+TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
649 649
 		$(TAGS_FILES) $(LISP)
650 650
 	tags=; \
651 651
 	here=`pwd`; \
652
+	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
653
+	  include_option=--etags-include; \
654
+	  empty_fix=.; \
655
+	else \
656
+	  include_option=--include; \
657
+	  empty_fix=; \
658
+	fi; \
659
+	list='$(SUBDIRS)'; for subdir in $$list; do \
660
+	  if test "$$subdir" = .; then :; else \
661
+	    test ! -f $$subdir/TAGS || \
662
+	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
663
+	  fi; \
664
+	done; \
652 665
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
653 666
 	unique=`for i in $$list; do \
654 667
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
... ...
@@ -661,7 +748,7 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
661 661
 	    $$tags $$unique; \
662 662
 	fi
663 663
 ctags: CTAGS
664
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
664
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
665 665
 		$(TAGS_FILES) $(LISP)
666 666
 	tags=; \
667 667
 	here=`pwd`; \
... ...
@@ -684,21 +771,23 @@ distclean-tags:
684 684
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
685 685
 
686 686
 distdir: $(DISTFILES)
687
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
688
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
689
-	list='$(DISTFILES)'; \
690
-	  dist_files=`for file in $$list; do echo $$file; done | \
691
-	  sed -e "s|^$$srcdirstrip/||;t" \
692
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
693
-	case $$dist_files in \
694
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
695
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
696
-			   sort -u` ;; \
697
-	esac; \
698
-	for file in $$dist_files; do \
687
+	$(mkdir_p) $(distdir)/regex
688
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
689
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
690
+	list='$(DISTFILES)'; for file in $$list; do \
691
+	  case $$file in \
692
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
693
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
694
+	  esac; \
699 695
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
696
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
697
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
698
+	    dir="/$$dir"; \
699
+	    $(mkdir_p) "$(distdir)$$dir"; \
700
+	  else \
701
+	    dir=''; \
702
+	  fi; \
700 703
 	  if test -d $$d/$$file; then \
701
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
702 704
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
703 705
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
704 706
 	    fi; \
... ...
@@ -709,22 +798,38 @@ distdir: $(DISTFILES)
709 709
 	    || exit 1; \
710 710
 	  fi; \
711 711
 	done
712
+	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
713
+	  if test "$$subdir" = .; then :; else \
714
+	    test -d "$(distdir)/$$subdir" \
715
+	    || $(mkdir_p) "$(distdir)/$$subdir" \
716
+	    || exit 1; \
717
+	    distdir=`$(am__cd) $(distdir) && pwd`; \
718
+	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
719
+	    (cd $$subdir && \
720
+	      $(MAKE) $(AM_MAKEFLAGS) \
721
+	        top_distdir="$$top_distdir" \
722
+	        distdir="$$distdir/$$subdir" \
723
+	        distdir) \
724
+	      || exit 1; \
725
+	  fi; \
726
+	done
712 727
 check-am: all-am
713
-check: check-am
728
+check: check-recursive
714 729
 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
715
-installdirs:
730
+installdirs: installdirs-recursive
731
+installdirs-am:
716 732
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
717
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
733
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
718 734
 	done
719
-install: install-am
720
-install-exec: install-exec-am
721
-install-data: install-data-am
722
-uninstall: uninstall-am
735
+install: install-recursive
736
+install-exec: install-exec-recursive
737
+install-data: install-data-recursive
738
+uninstall: uninstall-recursive
723 739
 
724 740
 install-am: all-am
725 741
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
726 742
 
727
-installcheck: installcheck-am
743
+installcheck: installcheck-recursive
728 744
 install-strip:
729 745
 	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
730 746
 	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
... ...
@@ -740,80 +845,75 @@ distclean-generic:
740 740
 maintainer-clean-generic:
741 741
 	@echo "This command is intended for maintainers to use"
742 742
 	@echo "it deletes files that may require special tools to rebuild."
743
-clean: clean-am
743
+clean: clean-recursive
744 744
 
745 745
 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
746 746
 	mostlyclean-am
747 747
 
748
-distclean: distclean-am
748
+distclean: distclean-recursive
749 749
 	-rm -rf ./$(DEPDIR)
750 750
 	-rm -f Makefile
751 751
 distclean-am: clean-am distclean-compile distclean-generic \
752
-	distclean-tags
752
+	distclean-libtool distclean-tags
753 753
 
754
-dvi: dvi-am
754
+dvi: dvi-recursive
755 755
 
756 756
 dvi-am:
757 757
 
758
-html: html-am
758
+html: html-recursive
759 759
 
760
-info: info-am
760
+info: info-recursive
761 761
 
762 762
 info-am:
763 763
 
764 764
 install-data-am: install-includeHEADERS
765 765
 
766
-install-dvi: install-dvi-am
767
-
768 766
 install-exec-am: install-libLTLIBRARIES
769 767
 
770
-install-html: install-html-am
771
-
772
-install-info: install-info-am
768
+install-info: install-info-recursive
773 769
 
774 770
 install-man:
775 771
 
776
-install-pdf: install-pdf-am
777
-
778
-install-ps: install-ps-am
779
-
780 772
 installcheck-am:
781 773
 
782
-maintainer-clean: maintainer-clean-am
774
+maintainer-clean: maintainer-clean-recursive
783 775
 	-rm -rf ./$(DEPDIR)
784 776
 	-rm -f Makefile
785 777
 maintainer-clean-am: distclean-am maintainer-clean-generic
786 778
 
787
-mostlyclean: mostlyclean-am
779
+mostlyclean: mostlyclean-recursive
788 780
 
789 781
 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
790 782
 	mostlyclean-libtool
791 783
 
792
-pdf: pdf-am
784
+pdf: pdf-recursive
793 785
 
794 786
 pdf-am:
795 787
 
796
-ps: ps-am
788
+ps: ps-recursive
797 789
 
798 790
 ps-am:
799 791
 
800
-uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
792
+uninstall-am: uninstall-includeHEADERS uninstall-info-am \
793
+	uninstall-libLTLIBRARIES
801 794
 
802
-.MAKE: install-am install-strip
795
+uninstall-info: uninstall-info-recursive
803 796
 
804
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
805
-	clean-libLTLIBRARIES clean-libtool ctags distclean \
797
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
798
+	clean clean-generic clean-libLTLIBRARIES clean-libtool \
799
+	clean-recursive ctags ctags-recursive distclean \
806 800
 	distclean-compile distclean-generic distclean-libtool \
807
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
808
-	install install-am install-data install-data-am install-dvi \
809
-	install-dvi-am install-exec install-exec-am install-html \
810
-	install-html-am install-includeHEADERS install-info \
811
-	install-info-am install-libLTLIBRARIES install-man install-pdf \
812
-	install-pdf-am install-ps install-ps-am install-strip \
813
-	installcheck installcheck-am installdirs maintainer-clean \
814
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
815
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
816
-	tags uninstall uninstall-am uninstall-includeHEADERS \
801
+	distclean-recursive distclean-tags distdir dvi dvi-am html \
802
+	html-am info info-am install install-am install-data \
803
+	install-data-am install-exec install-exec-am \
804
+	install-includeHEADERS install-info install-info-am \
805
+	install-libLTLIBRARIES install-man install-strip installcheck \
806
+	installcheck-am installdirs installdirs-am maintainer-clean \
807
+	maintainer-clean-generic maintainer-clean-recursive \
808
+	mostlyclean mostlyclean-compile mostlyclean-generic \
809
+	mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
810
+	tags tags-recursive uninstall uninstall-am \
811
+	uninstall-includeHEADERS uninstall-info-am \
817 812
 	uninstall-libLTLIBRARIES
818 813
 
819 814
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
... ...
@@ -73,6 +73,7 @@ static const struct cli_magic_s cli_magic[] = {
73 73
     {0,	    "MSCF",			4,  "MS CAB",		CL_TYPE_MSCAB},
74 74
     {0,	    "ITSF",			4,  "MS CHM",           CL_TYPE_MSCHM},
75 75
     {8,	    "\x19\x04\x00\x10",		4,  "SIS",		CL_TYPE_SIS},
76
+    {0,	    "\x7a\x1a\x20\x10",		4,  "SIS",		CL_TYPE_SIS},
76 77
     {0,     "#@~^",			4,  "SCRENC",		CL_TYPE_SCRENC},
77 78
     {0,     "(This file must be converted with BinHex 4.0)",
78 79
 				       45, "BinHex",		CL_TYPE_BINHEX},
79 80
new file mode 100644
... ...
@@ -0,0 +1,134 @@
0
+/* 
1
+ * This file contains code from zlib library v.1.2.3 with modifications
2
+ * by aCaB <acab@clamav.net> to allow decompression of deflate64 stereams
3
+ * (aka zip method 9). The implementation is heavily inspired by InfoZip
4
+ *  and zlib's inf9back.c
5
+ * 
6
+ * Full copy of the original zlib license follows:
7
+ */
8
+
9
+/* zlib.h -- interface of the 'zlib' general purpose compression library
10
+  version 1.2.3, July 18th, 2005
11
+
12
+  Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
13
+
14
+  This software is provided 'as-is', without any express or implied
15
+  warranty.  In no event will the authors be held liable for any damages
16
+  arising from the use of this software.
17
+
18
+  Permission is granted to anyone to use this software for any purpose,
19
+  including commercial applications, and to alter it and redistribute it
20
+  freely, subject to the following restrictions:
21
+
22
+  1. The origin of this software must not be misrepresented; you must not
23
+     claim that you wrote the original software. If you use this software
24
+     in a product, an acknowledgment in the product documentation would be
25
+     appreciated but is not required.
26
+  2. Altered source versions must be plainly marked as such, and must not be
27
+     misrepresented as being the original software.
28
+  3. This notice may not be removed or altered from any source distribution.
29
+
30
+  Jean-loup Gailly        Mark Adler
31
+  jloup@gzip.org          madler@alumni.caltech.edu
32
+
33
+
34
+  The data format used by the zlib library is described by RFCs (Request for
35
+  Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
36
+  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
37
+*/
38
+
39
+
40
+    /* inffixed.h -- table for decoding fixed codes
41
+     * Generated automatically by makefixed().
42
+     */
43
+
44
+    /* WARNING: this file should *not* be used by applications.
45
+       It is part of the implementation of this library and is
46
+       subject to change. Applications should only use zlib.h.
47
+     */
48
+
49
+    static const code lenfix[512] = {
50
+        {96,7,0},{0,8,80},{0,8,16},{132,8,115},{130,7,31},{0,8,112},{0,8,48},
51
+        {0,9,192},{128,7,10},{0,8,96},{0,8,32},{0,9,160},{0,8,0},{0,8,128},
52
+        {0,8,64},{0,9,224},{128,7,6},{0,8,88},{0,8,24},{0,9,144},{131,7,59},
53
+        {0,8,120},{0,8,56},{0,9,208},{129,7,17},{0,8,104},{0,8,40},{0,9,176},
54
+        {0,8,8},{0,8,136},{0,8,72},{0,9,240},{128,7,4},{0,8,84},{0,8,20},
55
+        {133,8,227},{131,7,43},{0,8,116},{0,8,52},{0,9,200},{129,7,13},{0,8,100},
56
+        {0,8,36},{0,9,168},{0,8,4},{0,8,132},{0,8,68},{0,9,232},{128,7,8},
57
+        {0,8,92},{0,8,28},{0,9,152},{132,7,83},{0,8,124},{0,8,60},{0,9,216},
58
+        {130,7,23},{0,8,108},{0,8,44},{0,9,184},{0,8,12},{0,8,140},{0,8,76},
59
+        {0,9,248},{128,7,3},{0,8,82},{0,8,18},{133,8,163},{131,7,35},{0,8,114},
60
+        {0,8,50},{0,9,196},{129,7,11},{0,8,98},{0,8,34},{0,9,164},{0,8,2},
61
+        {0,8,130},{0,8,66},{0,9,228},{128,7,7},{0,8,90},{0,8,26},{0,9,148},
62
+        {132,7,67},{0,8,122},{0,8,58},{0,9,212},{130,7,19},{0,8,106},{0,8,42},
63
+        {0,9,180},{0,8,10},{0,8,138},{0,8,74},{0,9,244},{128,7,5},{0,8,86},
64
+        {0,8,22},{201,8,0},{131,7,51},{0,8,118},{0,8,54},{0,9,204},{129,7,15},
65
+        {0,8,102},{0,8,38},{0,9,172},{0,8,6},{0,8,134},{0,8,70},{0,9,236},
66
+        {128,7,9},{0,8,94},{0,8,30},{0,9,156},{132,7,99},{0,8,126},{0,8,62},
67
+        {0,9,220},{130,7,27},{0,8,110},{0,8,46},{0,9,188},{0,8,14},{0,8,142},
68
+        {0,8,78},{0,9,252},{96,7,0},{0,8,81},{0,8,17},{133,8,131},{130,7,31},
69
+        {0,8,113},{0,8,49},{0,9,194},{128,7,10},{0,8,97},{0,8,33},{0,9,162},
70
+        {0,8,1},{0,8,129},{0,8,65},{0,9,226},{128,7,6},{0,8,89},{0,8,25},
71
+        {0,9,146},{131,7,59},{0,8,121},{0,8,57},{0,9,210},{129,7,17},{0,8,105},
72
+        {0,8,41},{0,9,178},{0,8,9},{0,8,137},{0,8,73},{0,9,242},{128,7,4},
73
+        {0,8,85},{0,8,21},{144,8,3},{131,7,43},{0,8,117},{0,8,53},{0,9,202},
74
+        {129,7,13},{0,8,101},{0,8,37},{0,9,170},{0,8,5},{0,8,133},{0,8,69},
75
+        {0,9,234},{128,7,8},{0,8,93},{0,8,29},{0,9,154},{132,7,83},{0,8,125},
76
+        {0,8,61},{0,9,218},{130,7,23},{0,8,109},{0,8,45},{0,9,186},{0,8,13},
77
+        {0,8,141},{0,8,77},{0,9,250},{128,7,3},{0,8,83},{0,8,19},{133,8,195},
78
+        {131,7,35},{0,8,115},{0,8,51},{0,9,198},{129,7,11},{0,8,99},{0,8,35},
79
+        {0,9,166},{0,8,3},{0,8,131},{0,8,67},{0,9,230},{128,7,7},{0,8,91},
80
+        {0,8,27},{0,9,150},{132,7,67},{0,8,123},{0,8,59},{0,9,214},{130,7,19},
81
+        {0,8,107},{0,8,43},{0,9,182},{0,8,11},{0,8,139},{0,8,75},{0,9,246},
82
+        {128,7,5},{0,8,87},{0,8,23},{196,8,0},{131,7,51},{0,8,119},{0,8,55},
83
+        {0,9,206},{129,7,15},{0,8,103},{0,8,39},{0,9,174},{0,8,7},{0,8,135},
84
+        {0,8,71},{0,9,238},{128,7,9},{0,8,95},{0,8,31},{0,9,158},{132,7,99},
85
+        {0,8,127},{0,8,63},{0,9,222},{130,7,27},{0,8,111},{0,8,47},{0,9,190},
86
+        {0,8,15},{0,8,143},{0,8,79},{0,9,254},{96,7,0},{0,8,80},{0,8,16},
87
+        {132,8,115},{130,7,31},{0,8,112},{0,8,48},{0,9,193},{128,7,10},{0,8,96},
88
+        {0,8,32},{0,9,161},{0,8,0},{0,8,128},{0,8,64},{0,9,225},{128,7,6},
89
+        {0,8,88},{0,8,24},{0,9,145},{131,7,59},{0,8,120},{0,8,56},{0,9,209},
90
+        {129,7,17},{0,8,104},{0,8,40},{0,9,177},{0,8,8},{0,8,136},{0,8,72},
91
+        {0,9,241},{128,7,4},{0,8,84},{0,8,20},{133,8,227},{131,7,43},{0,8,116},
92
+        {0,8,52},{0,9,201},{129,7,13},{0,8,100},{0,8,36},{0,9,169},{0,8,4},
93
+        {0,8,132},{0,8,68},{0,9,233},{128,7,8},{0,8,92},{0,8,28},{0,9,153},
94
+        {132,7,83},{0,8,124},{0,8,60},{0,9,217},{130,7,23},{0,8,108},{0,8,44},
95
+        {0,9,185},{0,8,12},{0,8,140},{0,8,76},{0,9,249},{128,7,3},{0,8,82},
96
+        {0,8,18},{133,8,163},{131,7,35},{0,8,114},{0,8,50},{0,9,197},{129,7,11},
97
+        {0,8,98},{0,8,34},{0,9,165},{0,8,2},{0,8,130},{0,8,66},{0,9,229},
98
+        {128,7,7},{0,8,90},{0,8,26},{0,9,149},{132,7,67},{0,8,122},{0,8,58},
99
+        {0,9,213},{130,7,19},{0,8,106},{0,8,42},{0,9,181},{0,8,10},{0,8,138},
100
+        {0,8,74},{0,9,245},{128,7,5},{0,8,86},{0,8,22},{201,8,0},{131,7,51},
101
+        {0,8,118},{0,8,54},{0,9,205},{129,7,15},{0,8,102},{0,8,38},{0,9,173},
102
+        {0,8,6},{0,8,134},{0,8,70},{0,9,237},{128,7,9},{0,8,94},{0,8,30},
103
+        {0,9,157},{132,7,99},{0,8,126},{0,8,62},{0,9,221},{130,7,27},{0,8,110},
104
+        {0,8,46},{0,9,189},{0,8,14},{0,8,142},{0,8,78},{0,9,253},{96,7,0},
105
+        {0,8,81},{0,8,17},{133,8,131},{130,7,31},{0,8,113},{0,8,49},{0,9,195},
106
+        {128,7,10},{0,8,97},{0,8,33},{0,9,163},{0,8,1},{0,8,129},{0,8,65},
107
+        {0,9,227},{128,7,6},{0,8,89},{0,8,25},{0,9,147},{131,7,59},{0,8,121},
108
+        {0,8,57},{0,9,211},{129,7,17},{0,8,105},{0,8,41},{0,9,179},{0,8,9},
109
+        {0,8,137},{0,8,73},{0,9,243},{128,7,4},{0,8,85},{0,8,21},{144,8,3},
110
+        {131,7,43},{0,8,117},{0,8,53},{0,9,203},{129,7,13},{0,8,101},{0,8,37},
111
+        {0,9,171},{0,8,5},{0,8,133},{0,8,69},{0,9,235},{128,7,8},{0,8,93},
112
+        {0,8,29},{0,9,155},{132,7,83},{0,8,125},{0,8,61},{0,9,219},{130,7,23},
113
+        {0,8,109},{0,8,45},{0,9,187},{0,8,13},{0,8,141},{0,8,77},{0,9,251},
114
+        {128,7,3},{0,8,83},{0,8,19},{133,8,195},{131,7,35},{0,8,115},{0,8,51},
115
+        {0,9,199},{129,7,11},{0,8,99},{0,8,35},{0,9,167},{0,8,3},{0,8,131},
116
+        {0,8,67},{0,9,231},{128,7,7},{0,8,91},{0,8,27},{0,9,151},{132,7,67},
117
+        {0,8,123},{0,8,59},{0,9,215},{130,7,19},{0,8,107},{0,8,43},{0,9,183},
118
+        {0,8,11},{0,8,139},{0,8,75},{0,9,247},{128,7,5},{0,8,87},{0,8,23},
119
+        {196,8,0},{131,7,51},{0,8,119},{0,8,55},{0,9,207},{129,7,15},{0,8,103},
120
+        {0,8,39},{0,9,175},{0,8,7},{0,8,135},{0,8,71},{0,9,239},{128,7,9},
121
+        {0,8,95},{0,8,31},{0,9,159},{132,7,99},{0,8,127},{0,8,63},{0,9,223},
122
+        {130,7,27},{0,8,111},{0,8,47},{0,9,191},{0,8,15},{0,8,143},{0,8,79},
123
+        {0,9,255}
124
+    };
125
+
126
+    static const code distfix[32] = {
127
+        {16,5,1},{23,5,257},{19,5,17},{27,5,4097},{17,5,5},{25,5,1025},
128
+        {21,5,65},{29,5,16385},{16,5,3},{24,5,513},{20,5,33},{28,5,8193},
129
+        {18,5,9},{26,5,2049},{22,5,129},{30,5,32769},{16,5,2},{23,5,385},
130
+        {19,5,25},{27,5,6145},{17,5,7},{25,5,1537},{21,5,97},{29,5,24577},
131
+        {16,5,4},{24,5,769},{20,5,49},{28,5,12289},{18,5,13},{26,5,3073},
132
+        {22,5,193},{30,5,49153}
133
+    };
0 134
new file mode 100644
... ...
@@ -0,0 +1,1126 @@
0
+/* 
1
+ * This file contains code from zlib library v.1.2.3 with modifications
2
+ * by aCaB <acab@clamav.net> to allow decompression of deflate64 stereams
3
+ * (aka zip method 9). The implementation is heavily inspired by InfoZip
4
+ *  and zlib's inf9back.c
5
+ * 
6
+ * Full copy of the original zlib license follows:
7
+ */
8
+
9
+/* zlib.h -- interface of the 'zlib' general purpose compression library
10
+  version 1.2.3, July 18th, 2005
11
+
12
+  Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
13
+
14
+  This software is provided 'as-is', without any express or implied
15
+  warranty.  In no event will the authors be held liable for any damages
16
+  arising from the use of this software.
17
+
18
+  Permission is granted to anyone to use this software for any purpose,
19
+  including commercial applications, and to alter it and redistribute it
20
+  freely, subject to the following restrictions:
21
+
22
+  1. The origin of this software must not be misrepresented; you must not
23
+     claim that you wrote the original software. If you use this software
24
+     in a product, an acknowledgment in the product documentation would be
25
+     appreciated but is not required.
26
+  2. Altered source versions must be plainly marked as such, and must not be
27
+     misrepresented as being the original software.
28
+  3. This notice may not be removed or altered from any source distribution.
29
+
30
+  Jean-loup Gailly        Mark Adler
31
+  jloup@gzip.org          madler@alumni.caltech.edu
32
+
33
+
34
+  The data format used by the zlib library is described by RFCs (Request for
35
+  Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
36
+  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
37
+*/
38
+
39
+const char inflate64_copyright[] =
40
+   " inflate 1.2.3 Copyright 1995-2005 Mark Adler ";
41
+/*
42
+  If you use the zlib library in a product, an acknowledgment is welcome
43
+  in the documentation of your product. If for some reason you cannot
44
+  include such an acknowledgment, I would appreciate that you keep this
45
+  copyright string in the executable of your product.
46
+ */
47
+
48
+
49
+
50
+#include "inflate64_priv.h"
51
+
52
+#include <stdlib.h> /* calloc/free */
53
+#include <string.h> /* memcpy */
54
+
55
+#include "others.h"
56
+
57
+/* function prototypes */
58
+local void fixedtables OF((struct inflate_state FAR *state));
59
+local int updatewindow OF((z_stream64p strm, unsigned out));
60
+local int inflate_table OF((codetype type, unsigned short FAR *lens,
61
+                             unsigned codes, code FAR * FAR *table,
62
+                             unsigned FAR *bits, unsigned short FAR *work));
63
+
64
+
65
+int ZEXPORT inflate64Init2(strm, windowBits)
66
+z_stream64p strm;
67
+int windowBits;
68
+{
69
+    struct inflate_state FAR *state;
70
+
71
+    if (strm == Z_NULL) return Z_STREAM_ERROR;
72
+    state = (struct inflate_state FAR *)cli_calloc(1, sizeof(struct inflate_state));
73
+    if (state == Z_NULL) return Z_MEM_ERROR;
74
+    Tracev((stderr, "inflate: allocated\n"));
75
+    strm->state = (struct internal_state FAR *)state;
76
+    if (windowBits < 0) {
77
+        state->wrap = 0;
78
+        windowBits = -windowBits;
79
+    }
80
+    else {
81
+        state->wrap = (windowBits >> 4) + 1;
82
+    }
83
+    if (windowBits < 8 || windowBits > MAX_WBITS64) {
84
+        free(state);
85
+        strm->state = Z_NULL;
86
+        return Z_STREAM_ERROR;
87
+    }
88
+    state->wbits = (unsigned)windowBits;
89
+    state->window = Z_NULL;
90
+    strm->total_in = strm->total_out = state->total = 0;
91
+    strm->adler = 1;        /* to support ill-conceived Java test suite */
92
+    state->mode = HEAD;
93
+    state->last = 0;
94
+    state->havedict = 0;
95
+    state->dmax = 32768U;
96
+    state->wsize = 0;
97
+    state->whave = 0;
98
+    state->write = 0;
99
+    state->hold = 0;
100
+    state->bits = 0;
101
+    state->lencode = state->distcode = state->next = state->codes;
102
+    Tracev((stderr, "inflate: reset\n"));
103
+    return Z_OK;
104
+}
105
+
106
+/*
107
+   Return state with length and distance decoding tables and index sizes set to
108
+   fixed code decoding.  Normally this returns fixed tables from inffixed.h.
109
+   If BUILDFIXED is defined, then instead this routine builds the tables the
110
+   first time it's called, and returns those tables the first time and
111
+   thereafter.  This reduces the size of the code by about 2K bytes, in
112
+   exchange for a little execution time.  However, BUILDFIXED should not be
113
+   used for threaded applications, since the rewriting of the tables and virgin
114
+   may not be thread-safe.
115
+ */
116
+local void fixedtables(state)
117
+struct inflate_state FAR *state;
118
+{
119
+#ifdef BUILDFIXED
120
+    static int virgin = 1;
121
+    static code *lenfix, *distfix;
122
+    static code fixed[544];
123
+
124
+    /* build fixed huffman tables if first call (may not be thread safe) */
125
+    if (virgin) {
126
+        unsigned sym, bits;
127
+        static code *next;
128
+
129
+        /* literal/length table */
130
+        sym = 0;
131
+        while (sym < 144) state->lens[sym++] = 8;
132
+        while (sym < 256) state->lens[sym++] = 9;
133
+        while (sym < 280) state->lens[sym++] = 7;
134
+        while (sym < 288) state->lens[sym++] = 8;
135
+        next = fixed;
136
+        lenfix = next;
137
+        bits = 9;
138
+        inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
139
+
140
+        /* distance table */
141
+        sym = 0;
142
+        while (sym < 32) state->lens[sym++] = 5;
143
+        distfix = next;
144
+        bits = 5;
145
+        inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
146
+
147
+        /* do this just once */
148
+        virgin = 0;
149
+    }
150
+#else /* !BUILDFIXED */
151
+#   include "inffixed64.h"
152
+#endif /* BUILDFIXED */
153
+    state->lencode = lenfix;
154
+    state->lenbits = 9;
155
+    state->distcode = distfix;
156
+    state->distbits = 5;
157
+}
158
+
159
+/*
160
+   Update the window with the last wsize (normally 32K) bytes written before
161
+   returning.  If window does not exist yet, create it.  This is only called
162
+   when a window is already in use, or when output has been written during this
163
+   inflate call, but the end of the deflate stream has not been reached yet.
164
+   It is also called to create a window for dictionary data when a dictionary
165
+   is loaded.
166
+
167
+   Providing output buffers larger than 32K to inflate() should provide a speed
168
+   advantage, since only the last 32K of output is copied to the sliding window
169
+   upon return from inflate(), and since all distances after the first 32K of
170
+   output will fall in the output data, making match copies simpler and faster.
171
+   The advantage may be dependent on the size of the processor's data caches.
172
+ */
173
+local int updatewindow(strm, out)
174
+z_stream64p strm;
175
+unsigned out;
176
+{
177
+    struct inflate_state FAR *state;
178
+    unsigned copy, dist;
179
+
180
+    state = (struct inflate_state FAR *)strm->state;
181
+
182
+    /* if it hasn't been done already, allocate space for the window */
183
+    if (state->window == Z_NULL) {
184
+        state->window = (unsigned char FAR *)cli_calloc(1U << state->wbits, sizeof(unsigned char));
185
+        if (state->window == Z_NULL) return 1;
186
+    }
187
+
188
+    /* if window not in use yet, initialize */
189
+    if (state->wsize == 0) {
190
+        state->wsize = 1U << state->wbits;
191
+        state->write = 0;
192
+        state->whave = 0;
193
+    }
194
+
195
+    /* copy state->wsize or less output bytes into the circular window */
196
+    copy = out - strm->avail_out;
197
+    if (copy >= state->wsize) {
198
+        memcpy(state->window, strm->next_out - state->wsize, state->wsize);
199
+        state->write = 0;
200
+        state->whave = state->wsize;
201
+    }
202
+    else {
203
+        dist = state->wsize - state->write;
204
+        if (dist > copy) dist = copy;
205
+        memcpy(state->window + state->write, strm->next_out - copy, dist);
206
+        copy -= dist;
207
+        if (copy) {
208
+            memcpy(state->window, strm->next_out - copy, copy);
209
+            state->write = copy;
210
+            state->whave = state->wsize;
211
+        }
212
+        else {
213
+            state->write += dist;
214
+            if (state->write == state->wsize) state->write = 0;
215
+            if (state->whave < state->wsize) state->whave += dist;
216
+        }
217
+    }
218
+    return 0;
219
+}
220
+
221
+/* Macros for inflate(): */
222
+
223
+/* check function to use adler32() for zlib or crc32() for gzip */
224
+#  define UPDATE(check, buf, len) adler32(check, buf, len)
225
+
226
+/* Load registers with state in inflate() for speed */
227
+#define LOAD() \
228
+    do { \
229
+        put = strm->next_out; \
230
+        left = strm->avail_out; \
231
+        next = strm->next_in; \
232
+        have = strm->avail_in; \
233
+        hold = state->hold; \
234
+        bits = state->bits; \
235
+    } while (0)
236
+
237
+/* Restore state from registers in inflate() */
238
+#define RESTORE() \
239
+    do { \
240
+        strm->next_out = put; \
241
+        strm->avail_out = left; \
242
+        strm->next_in = next; \
243
+        strm->avail_in = have; \
244
+        state->hold = hold; \
245
+        state->bits = bits; \
246
+    } while (0)
247
+
248
+/* Clear the input bit accumulator */
249
+#define INITBITS() \
250
+    do { \
251
+        hold = 0; \
252
+        bits = 0; \
253
+    } while (0)
254
+
255
+/* Get a byte of input into the bit accumulator, or return from inflate()
256
+   if there is no input available. */
257
+#define PULLBYTE() \
258
+    do { \
259
+        if (have == 0) goto inf_leave; \
260
+        have--; \
261
+        hold += (unsigned long)(*next++) << bits; \
262
+        bits += 8; \
263
+    } while (0)
264
+
265
+/* Assure that there are at least n bits in the bit accumulator.  If there is
266
+   not enough available input to do that, then return from inflate(). */
267
+#define NEEDBITS(n) \
268
+    do { \
269
+        while (bits < (unsigned)(n)) \
270
+            PULLBYTE(); \
271
+    } while (0)
272
+
273
+/* Return the low n bits of the bit accumulator (n < 16) */
274
+#define BITS(n) \
275
+    ((unsigned)hold & ((1U << (n)) - 1))
276
+
277
+/* Remove n bits from the bit accumulator */
278
+#define DROPBITS(n) \
279
+    do { \
280
+        hold >>= (n); \
281
+        bits -= (unsigned)(n); \
282
+    } while (0)
283
+
284
+/* Remove zero to seven bits as needed to go to a byte boundary */
285
+#define BYTEBITS() \
286
+    do { \
287
+        hold >>= bits & 7; \
288
+        bits -= bits & 7; \
289
+    } while (0)
290
+
291
+/* Reverse the bytes in a 32-bit value */
292
+#define REVERSE(q) \
293
+    ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
294
+     (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
295
+
296
+/*
297
+   inflate() uses a state machine to process as much input data and generate as
298
+   much output data as possible before returning.  The state machine is
299
+   structured roughly as follows:
300
+
301
+    for (;;) switch (state) {
302
+    ...
303
+    case STATEn:
304
+        if (not enough input data or output space to make progress)
305
+            return;
306
+        ... make progress ...
307
+        state = STATEm;
308
+        break;
309
+    ...
310
+    }
311
+
312
+   so when inflate() is called again, the same case is attempted again, and
313
+   if the appropriate resources are provided, the machine proceeds to the
314
+   next state.  The NEEDBITS() macro is usually the way the state evaluates
315
+   whether it can proceed or should return.  NEEDBITS() does the return if
316
+   the requested bits are not available.  The typical use of the BITS macros
317
+   is:
318
+
319
+        NEEDBITS(n);
320
+        ... do something with BITS(n) ...
321
+        DROPBITS(n);
322
+
323
+   where NEEDBITS(n) either returns from inflate() if there isn't enough
324
+   input left to load n bits into the accumulator, or it continues.  BITS(n)
325
+   gives the low n bits in the accumulator.  When done, DROPBITS(n) drops
326
+   the low n bits off the accumulator.  INITBITS() clears the accumulator
327
+   and sets the number of available bits to zero.  BYTEBITS() discards just
328
+   enough bits to put the accumulator on a byte boundary.  After BYTEBITS()
329
+   and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.
330
+
331
+   NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return
332
+   if there is no input available.  The decoding of variable length codes uses
333
+   PULLBYTE() directly in order to pull just enough bytes to decode the next
334
+   code, and no more.
335
+
336
+   Some states loop until they get enough input, making sure that enough
337
+   state information is maintained to continue the loop where it left off
338
+   if NEEDBITS() returns in the loop.  For example, want, need, and keep
339
+   would all have to actually be part of the saved state in case NEEDBITS()
340
+   returns:
341
+
342
+    case STATEw:
343
+        while (want < need) {
344
+            NEEDBITS(n);
345
+            keep[want++] = BITS(n);
346
+            DROPBITS(n);
347
+        }
348
+        state = STATEx;
349
+    case STATEx:
350
+
351
+   As shown above, if the next state is also the next case, then the break
352
+   is omitted.
353
+
354
+   A state may also return if there is not enough output space available to
355
+   complete that state.  Those states are copying stored data, writing a
356
+   literal byte, and copying a matching string.
357
+
358
+   When returning, a "goto inf_leave" is used to update the total counters,
359
+   update the check value, and determine whether any progress has been made
360
+   during that inflate() call in order to return the proper return code.
361
+   Progress is defined as a change in either strm->avail_in or strm->avail_out.
362
+   When there is a window, goto inf_leave will update the window with the last
363
+   output written.  If a goto inf_leave occurs in the middle of decompression
364
+   and there is no window currently, goto inf_leave will create one and copy
365
+   output to the window for the next call of inflate().
366
+
367
+   In this implementation, the flush parameter of inflate() only affects the
368
+   return code (per zlib.h).  inflate() always writes as much as possible to
369
+   strm->next_out, given the space available and the provided input--the effect
370
+   documented in zlib.h of Z_SYNC_FLUSH.  Furthermore, inflate() always defers
371
+   the allocation of and copying into a sliding window until necessary, which
372
+   provides the effect documented in zlib.h for Z_FINISH when the entire input
373
+   stream available.  So the only thing the flush parameter actually does is:
374
+   when flush is set to Z_FINISH, inflate() cannot return Z_OK.  Instead it
375
+   will return Z_BUF_ERROR if it has not reached the end of the stream.
376
+ */
377
+
378
+int ZEXPORT inflate64(strm, flush)
379
+z_stream64p strm;
380
+int flush;
381
+{
382
+    struct inflate_state FAR *state;
383
+    unsigned char FAR *next;    /* next input */
384
+    unsigned char FAR *put;     /* next output */
385
+    unsigned have, left;        /* available input and output */
386
+    unsigned long hold;         /* bit buffer */
387
+    unsigned bits;              /* bits in bit buffer */
388
+    unsigned in, out;           /* save starting available input and output */
389
+    unsigned copy;              /* number of stored or match bytes to copy */
390
+    unsigned char FAR *from;    /* where to copy match bytes from */
391
+    code this;                  /* current decoding table entry */
392
+    code last;                  /* parent table entry */
393
+    unsigned len;               /* length to copy for repeats, bits to drop */
394
+    int ret;                    /* return code */
395
+    static const unsigned short order[19] = /* permutation of code lengths */
396
+        {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
397
+
398
+    if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
399
+        (strm->next_in == Z_NULL && strm->avail_in != 0))
400
+        return Z_STREAM_ERROR;
401
+
402
+    state = (struct inflate_state FAR *)strm->state;
403
+    if (state->mode == TYPE) state->mode = TYPEDO;      /* skip check */
404
+    LOAD();
405
+    in = have;
406
+    out = left;
407
+    ret = Z_OK;
408
+    for (;;)
409
+        switch (state->mode) {
410
+        case HEAD:
411
+            if (state->wrap == 0) {
412
+                state->mode = TYPEDO;
413
+                break;
414
+            }
415
+            NEEDBITS(16);
416
+            if (
417
+                ((BITS(8) << 8) + (hold >> 8)) % 31) {
418
+                state->mode = BAD;
419
+                break;
420
+            }
421
+            if (BITS(4) != Z_DEFLATED) {
422
+                state->mode = BAD;
423
+                break;
424
+            }
425
+            DROPBITS(4);
426
+            len = BITS(4) + 8;
427
+            if (len > state->wbits) {
428
+                state->mode = BAD;
429
+                break;
430
+            }
431
+            state->dmax = 1U << len;
432
+            Tracev((stderr, "inflate:   zlib header ok\n"));
433
+            strm->adler = state->check = adler32(0L, Z_NULL, 0);
434
+            state->mode = hold & 0x200 ? DICTID : TYPE;
435
+            INITBITS();
436
+            break;
437
+        case DICTID:
438
+            NEEDBITS(32);
439
+            strm->adler = state->check = REVERSE(hold);
440
+            INITBITS();
441
+            state->mode = DICT;
442
+        case DICT:
443
+            RESTORE();
444
+            return Z_NEED_DICT;
445
+        case TYPE:
446
+            if (flush == Z_BLOCK) goto inf_leave;
447
+        case TYPEDO:
448
+            if (state->last) {
449
+                BYTEBITS();
450
+                state->mode = CHECK;
451
+                break;
452
+            }
453
+            NEEDBITS(3);
454
+            state->last = BITS(1);
455
+            DROPBITS(1);
456
+            switch (BITS(2)) {
457
+            case 0:                             /* stored block */
458
+                Tracev((stderr, "inflate:     stored block%s\n",
459
+                        state->last ? " (last)" : ""));
460
+                state->mode = STORED;
461
+                break;
462
+            case 1:                             /* fixed block */
463
+                fixedtables(state);
464
+                Tracev((stderr, "inflate:     fixed codes block%s\n",
465
+                        state->last ? " (last)" : ""));
466
+                state->mode = LEN;              /* decode codes */
467
+                break;
468
+            case 2:                             /* dynamic block */
469
+                Tracev((stderr, "inflate:     dynamic codes block%s\n",
470
+                        state->last ? " (last)" : ""));
471
+                state->mode = TABLE;
472
+                break;
473
+            case 3:
474
+                state->mode = BAD;
475
+            }
476
+            DROPBITS(2);
477
+            break;
478
+        case STORED:
479
+            BYTEBITS();                         /* go to byte boundary */
480
+            NEEDBITS(32);
481
+            if ((hold & 0xffff) != ((hold >> 16) ^ 0xffff)) {
482
+                state->mode = BAD;
483
+                break;
484
+            }
485
+            state->length = (unsigned)hold & 0xffff;
486
+            Tracev((stderr, "inflate:       stored length %u\n",
487
+                    state->length));
488
+            INITBITS();
489
+            state->mode = COPY;
490
+        case COPY:
491
+            copy = state->length;
492
+            if (copy) {
493
+                if (copy > have) copy = have;
494
+                if (copy > left) copy = left;
495
+                if (copy == 0) goto inf_leave;
496
+                memcpy(put, next, copy);
497
+                have -= copy;
498
+                next += copy;
499
+                left -= copy;
500
+                put += copy;
501
+                state->length -= copy;
502
+                break;
503
+            }
504
+            Tracev((stderr, "inflate:       stored end\n"));
505
+            state->mode = TYPE;
506
+            break;
507
+        case TABLE:
508
+            NEEDBITS(14);
509
+            state->nlen = BITS(5) + 257;
510
+            DROPBITS(5);
511
+            state->ndist = BITS(5) + 1;
512
+            DROPBITS(5);
513
+            state->ncode = BITS(4) + 4;
514
+            DROPBITS(4);
515
+#ifndef PKZIP_BUG_WORKAROUND
516
+            if (state->nlen > 286 || state->ndist > 30) {
517
+                state->mode = BAD;
518
+                break;
519
+            }
520
+#endif
521
+            Tracev((stderr, "inflate:       table sizes ok\n"));
522
+            state->have = 0;
523
+            state->mode = LENLENS;
524
+        case LENLENS:
525
+            while (state->have < state->ncode) {
526
+                NEEDBITS(3);
527
+                state->lens[order[state->have++]] = (unsigned short)BITS(3);
528
+                DROPBITS(3);
529
+            }
530
+            while (state->have < 19)
531
+                state->lens[order[state->have++]] = 0;
532
+            state->next = state->codes;
533
+            state->lencode = (code const FAR *)(state->next);
534
+            state->lenbits = 7;
535
+            ret = inflate_table(CODES, state->lens, 19, &(state->next),
536
+                                &(state->lenbits), state->work);
537
+            if (ret) {
538
+                state->mode = BAD;
539
+                break;
540
+            }
541
+            Tracev((stderr, "inflate:       code lengths ok\n"));
542
+            state->have = 0;
543
+            state->mode = CODELENS;
544
+        case CODELENS:
545
+            while (state->have < state->nlen + state->ndist) {
546
+                for (;;) {
547
+                    this = state->lencode[BITS(state->lenbits)];
548
+                    if ((unsigned)(this.bits) <= bits) break;
549
+                    PULLBYTE();
550
+                }
551
+                if (this.val < 16) {
552
+                    NEEDBITS(this.bits);
553
+                    DROPBITS(this.bits);
554
+                    state->lens[state->have++] = this.val;
555
+                }
556
+                else {
557
+                    if (this.val == 16) {
558
+                        NEEDBITS(this.bits + 2);
559
+                        DROPBITS(this.bits);
560
+                        if (state->have == 0) {
561
+                            state->mode = BAD;
562
+                            break;
563
+                        }
564
+                        len = state->lens[state->have - 1];
565
+                        copy = 3 + BITS(2);
566
+                        DROPBITS(2);
567
+                    }
568
+                    else if (this.val == 17) {
569
+                        NEEDBITS(this.bits + 3);
570
+                        DROPBITS(this.bits);
571
+                        len = 0;
572
+                        copy = 3 + BITS(3);
573
+                        DROPBITS(3);
574
+                    }
575
+                    else {
576
+                        NEEDBITS(this.bits + 7);
577
+                        DROPBITS(this.bits);
578
+                        len = 0;
579
+                        copy = 11 + BITS(7);
580
+                        DROPBITS(7);
581
+                    }
582
+                    if (state->have + copy > state->nlen + state->ndist) {
583
+                        state->mode = BAD;
584
+                        break;
585
+                    }
586
+                    while (copy--)
587
+                        state->lens[state->have++] = (unsigned short)len;
588
+                }
589
+            }
590
+
591
+            /* handle error breaks in while */
592
+            if (state->mode == BAD) break;
593
+
594
+            /* build code tables */
595
+            state->next = state->codes;
596
+            state->lencode = (code const FAR *)(state->next);
597
+            state->lenbits = 9;
598
+            ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
599
+                                &(state->lenbits), state->work);
600
+            if (ret) {
601
+                state->mode = BAD;
602
+                break;
603
+            }
604
+            state->distcode = (code const FAR *)(state->next);
605
+            state->distbits = 6;
606
+            ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
607
+                            &(state->next), &(state->distbits), state->work);
608
+            if (ret) {
609
+                state->mode = BAD;
610
+                break;
611
+            }
612
+            Tracev((stderr, "inflate:       codes ok\n"));
613
+            state->mode = LEN;
614
+        case LEN:
615
+		/*            if (have >= 6 && left >= 258) {
616
+                RESTORE();
617
+                inflate_fast(strm, out);
618
+                LOAD();
619
+                break;
620
+		}*/
621
+            for (;;) {
622
+                this = state->lencode[BITS(state->lenbits)];
623
+                if ((unsigned)(this.bits) <= bits) break;
624
+                PULLBYTE();
625
+            }
626
+            if (this.op && (this.op & 0xf0) == 0) {
627
+                last = this;
628
+                for (;;) {
629
+                    this = state->lencode[last.val +
630
+                            (BITS(last.bits + last.op) >> last.bits)];
631
+                    if ((unsigned)(last.bits + this.bits) <= bits) break;
632
+                    PULLBYTE();
633
+                }
634
+                DROPBITS(last.bits);
635
+            }
636
+            DROPBITS(this.bits);
637
+            state->length = (unsigned)this.val;
638
+            if ((int)(this.op) == 0) {
639
+                Tracevv((stderr, this.val >= 0x20 && this.val < 0x7f ?
640
+                        "inflate:         literal '%c'\n" :
641
+                        "inflate:         literal 0x%02x\n", this.val));
642
+                state->mode = LIT;
643
+                break;
644
+            }
645
+            Tracevv((stderr, "inflate:         op %u\n", this.op));
646
+            if (this.op & 32) {
647
+                Tracevv((stderr, "inflate:         end of block\n"));
648
+                state->mode = TYPE;
649
+                break;
650
+            }
651
+            if (this.op & 64) {
652
+                state->mode = BAD;
653
+                break;
654
+            }
655
+            state->extra = (unsigned)(this.op) & 31;
656
+            state->mode = LENEXT;
657
+        case LENEXT:
658
+            if (state->extra) {
659
+                NEEDBITS(state->extra);
660
+                state->length += BITS(state->extra);
661
+                DROPBITS(state->extra);
662
+            }
663
+            Tracevv((stderr, "inflate:         length %u\n", state->length));
664
+            state->mode = DIST;
665
+        case DIST:
666
+            for (;;) {
667
+                this = state->distcode[BITS(state->distbits)];
668
+                if ((unsigned)(this.bits) <= bits) break;
669
+                PULLBYTE();
670
+            }
671
+            if ((this.op & 0xf0) == 0) {
672
+                last = this;
673
+                for (;;) {
674
+                    this = state->distcode[last.val +
675
+                            (BITS(last.bits + last.op) >> last.bits)];
676
+                    if ((unsigned)(last.bits + this.bits) <= bits) break;
677
+                    PULLBYTE();
678
+                }
679
+                DROPBITS(last.bits);
680
+            }
681
+            DROPBITS(this.bits);
682
+            if (this.op & 64) {
683
+                state->mode = BAD;
684
+                break;
685
+            }
686
+            Tracevv((stderr, "inflate:        val %u\n", state->offset));
687
+            state->offset = (unsigned)this.val;
688
+            state->extra = (unsigned)(this.op) & 15;
689
+            state->mode = DISTEXT;
690
+        case DISTEXT:
691
+            if (state->extra) {
692
+                NEEDBITS(state->extra);
693
+                state->offset += BITS(state->extra);
694
+                DROPBITS(state->extra);
695
+            }
696
+#ifdef INFLATE_STRICT
697
+            if (state->offset > state->dmax) {
698
+                state->mode = BAD;
699
+                break;
700
+            }
701
+#endif
702
+            if (state->offset > state->whave + out - left) {
703
+                state->mode = BAD;
704
+                break;
705
+            }
706
+            Tracevv((stderr, "inflate:         distance %u\n", state->offset));
707
+            state->mode = MATCH;
708
+        case MATCH:
709
+            if (left == 0) goto inf_leave;
710
+            copy = out - left;
711
+            if (state->offset > copy) {         /* copy from window */
712
+                copy = state->offset - copy;
713
+                if (copy > state->write) {
714
+                    copy -= state->write;
715
+                    from = state->window + (state->wsize - copy);
716
+                }
717
+                else
718
+                    from = state->window + (state->write - copy);
719
+                if (copy > state->length) copy = state->length;
720
+            }
721
+            else {                              /* copy from output */
722
+                from = put - state->offset;
723
+                copy = state->length;
724
+            }
725
+            if (copy > left) copy = left;
726
+            left -= copy;
727
+            state->length -= copy;
728
+            do {
729
+                *put++ = *from++;
730
+            } while (--copy);
731
+            if (state->length == 0) state->mode = LEN;
732
+            break;
733
+        case LIT:
734
+            if (left == 0) goto inf_leave;
735
+            *put++ = (unsigned char)(state->length);
736
+            left--;
737
+            state->mode = LEN;
738
+            break;
739
+        case CHECK:
740
+            if (state->wrap) {
741
+                NEEDBITS(32);
742
+                out -= left;
743
+                strm->total_out += out;
744
+                state->total += out;
745
+                if (out)
746
+                    strm->adler = state->check =
747
+                        UPDATE(state->check, put - out, out);
748
+                out = left;
749
+                if ((
750
+                     REVERSE(hold)) != state->check) {
751
+                    state->mode = BAD;
752
+                    break;
753
+                }
754
+                INITBITS();
755
+                Tracev((stderr, "inflate:   check matches trailer\n"));
756
+            }
757
+            state->mode = DONE;
758
+        case DONE:
759
+            ret = Z_STREAM_END;
760
+            goto inf_leave;
761
+        case BAD:
762
+            ret = Z_DATA_ERROR;
763
+            goto inf_leave;
764
+        case MEM:
765
+            return Z_MEM_ERROR;
766
+        case SYNC:
767
+        default:
768
+            return Z_STREAM_ERROR;
769
+        }
770
+
771
+    /*
772
+       Return from inflate(), updating the total counts and the check value.
773
+       If there was no progress during the inflate() call, return a buffer
774
+       error.  Call updatewindow() to create and/or update the window state.
775
+       Note: a memory error from inflate() is non-recoverable.
776
+     */
777
+  inf_leave:
778
+    RESTORE();
779
+    if (state->wsize || (state->mode < CHECK && out != strm->avail_out))
780
+        if (updatewindow(strm, out)) {
781
+            state->mode = MEM;
782
+            return Z_MEM_ERROR;
783
+        }
784
+    in -= strm->avail_in;
785
+    out -= strm->avail_out;
786
+    strm->total_in += in;
787
+    strm->total_out += out;
788
+    state->total += out;
789
+    if (state->wrap && out)
790
+        strm->adler = state->check =
791
+            UPDATE(state->check, strm->next_out - out, out);
792
+    strm->data_type = state->bits + (state->last ? 64 : 0) +
793
+                      (state->mode == TYPE ? 128 : 0);
794
+    if (((in == 0 && out == 0) || flush == Z_FINISH) && ret == Z_OK)
795
+        ret = Z_BUF_ERROR;
796
+    return ret;
797
+}
798
+
799
+int ZEXPORT inflate64End(strm)
800
+z_stream64p strm;
801
+{
802
+    struct inflate_state FAR *state;
803
+    if (strm == Z_NULL || strm->state == Z_NULL)
804
+        return Z_STREAM_ERROR;
805
+    state = (struct inflate_state FAR *)strm->state;
806
+    if (state->window != Z_NULL) free(state->window);
807
+    free(strm->state);
808
+    strm->state = Z_NULL;
809
+    Tracev((stderr, "inflate: end\n"));
810
+    return Z_OK;
811
+}
812
+
813
+
814
+/*
815
+   Build a set of tables to decode the provided canonical Huffman code.
816
+   The code lengths are lens[0..codes-1].  The result starts at *table,
817
+   whose indices are 0..2^bits-1.  work is a writable array of at least
818
+   lens shorts, which is used as a work area.  type is the type of code
819
+   to be generated, CODES, LENS, or DISTS.  On return, zero is success,
820
+   -1 is an invalid code, and +1 means that ENOUGH isn't enough.  table
821
+   on return points to the next available entry's address.  bits is the
822
+   requested root table index bits, and on return it is the actual root
823
+   table index bits.  It will differ if the request is greater than the
824
+   longest code or if it is less than the shortest code.
825
+ */
826
+local int inflate_table(type, lens, codes, table, bits, work)
827
+codetype type;
828
+unsigned short FAR *lens;
829
+unsigned codes;
830
+code FAR * FAR *table;
831
+unsigned FAR *bits;
832
+unsigned short FAR *work;
833
+{
834
+    unsigned len;               /* a code's length in bits */
835
+    unsigned sym;               /* index of code symbols */
836
+    unsigned min, max;          /* minimum and maximum code lengths */
837
+    unsigned root;              /* number of index bits for root table */
838
+    unsigned curr;              /* number of index bits for current table */
839
+    unsigned drop;              /* code bits to drop for sub-table */
840
+    int left;                   /* number of prefix codes available */
841
+    unsigned used;              /* code entries in table used */
842
+    unsigned huff;              /* Huffman code */
843
+    unsigned incr;              /* for incrementing code, index */
844
+    unsigned fill;              /* index for replicating entries */
845
+    unsigned low;               /* low bits for current root entry */
846
+    unsigned mask;              /* mask for low root bits */
847
+    code this;                  /* table entry for duplication */
848
+    code FAR *next;             /* next available space in table */
849
+    const unsigned short FAR *base;     /* base value table to use */
850
+    const unsigned short FAR *extra;    /* extra bits table to use */
851
+    int end;                    /* use base and extra for symbol > end */
852
+    unsigned short count[MAXBITS+1];    /* number of codes of each length */
853
+    unsigned short offs[MAXBITS+1];     /* offsets in table for each length */
854
+    static const unsigned short lbase[31] = { /* Length codes 257..285 base */
855
+        3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
856
+	35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, /* 258 */ 3, 0, 0};
857
+    static const unsigned short lext[31] = { /* Length codes 257..285 extra */
858
+/*         16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, */
859
+/*         19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 31, 201, 196}; */
860
+        128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 130, 130, 130, 130,
861
+        131, 131, 131, 131, 132, 132, 132, 132, 133, 133, 133, 133, 144, 201, 196};
862
+    static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
863
+        1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
864
+        257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
865
+        8193, 12289, 16385, 24577, 32769, 49153};
866
+    static const unsigned short dext[32] = { /* Distance codes 0..29 extra */
867
+        16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,
868
+        23, 23, 24, 24, 25, 25, 26, 26, 27, 27,
869
+        28, 28, 29, 29, 30, 30};
870
+
871
+    /*
872
+       Process a set of code lengths to create a canonical Huffman code.  The
873
+       code lengths are lens[0..codes-1].  Each length corresponds to the
874
+       symbols 0..codes-1.  The Huffman code is generated by first sorting the
875
+       symbols by length from short to long, and retaining the symbol order
876
+       for codes with equal lengths.  Then the code starts with all zero bits
877
+       for the first code of the shortest length, and the codes are integer
878
+       increments for the same length, and zeros are appended as the length
879
+       increases.  For the deflate format, these bits are stored backwards
880
+       from their more natural integer increment ordering, and so when the
881
+       decoding tables are built in the large loop below, the integer codes
882
+       are incremented backwards.
883
+
884
+       This routine assumes, but does not check, that all of the entries in
885
+       lens[] are in the range 0..MAXBITS.  The caller must assure this.
886
+       1..MAXBITS is interpreted as that code length.  zero means that that
887
+       symbol does not occur in this code.
888
+
889
+       The codes are sorted by computing a count of codes for each length,
890
+       creating from that a table of starting indices for each length in the
891
+       sorted table, and then entering the symbols in order in the sorted
892
+       table.  The sorted table is work[], with that space being provided by
893
+       the caller.
894
+
895
+       The length counts are used for other purposes as well, i.e. finding
896
+       the minimum and maximum length codes, determining if there are any
897
+       codes at all, checking for a valid set of lengths, and looking ahead
898
+       at length counts to determine sub-table sizes when building the
899
+       decoding tables.
900
+     */
901
+
902
+    /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
903
+    for (len = 0; len <= MAXBITS; len++)
904
+        count[len] = 0;
905
+    for (sym = 0; sym < codes; sym++)
906
+        count[lens[sym]]++;
907
+
908
+    /* bound code lengths, force root to be within code lengths */
909
+    root = *bits;
910
+    for (max = MAXBITS; max >= 1; max--)
911
+        if (count[max] != 0) break;
912
+    if (root > max) root = max;
913
+    if (max == 0) {                     /* no symbols to code at all */
914
+        this.op = (unsigned char)64;    /* invalid code marker */
915
+        this.bits = (unsigned char)1;
916
+        this.val = (unsigned short)0;
917
+        *(*table)++ = this;             /* make a table to force an error */
918
+        *(*table)++ = this;
919
+        *bits = 1;
920
+        return 0;     /* no symbols, but wait for decoding to report error */
921
+    }
922
+    for (min = 1; min <= MAXBITS; min++)
923
+        if (count[min] != 0) break;
924
+    if (root < min) root = min;
925
+
926
+    /* check for an over-subscribed or incomplete set of lengths */
927
+    left = 1;
928
+    for (len = 1; len <= MAXBITS; len++) {
929
+        left <<= 1;
930
+        left -= count[len];
931
+        if (left < 0) return -1;        /* over-subscribed */
932
+    }
933
+    if (left > 0 && (type == CODES || max != 1))
934
+        return -1;                      /* incomplete set */
935
+
936
+    /* generate offsets into symbol table for each length for sorting */
937
+    offs[1] = 0;
938
+    for (len = 1; len < MAXBITS; len++)
939
+        offs[len + 1] = offs[len] + count[len];
940
+
941
+    /* sort symbols by length, by symbol order within each length */
942
+    for (sym = 0; sym < codes; sym++)
943
+        if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
944
+
945
+    /*
946
+       Create and fill in decoding tables.  In this loop, the table being
947
+       filled is at next and has curr index bits.  The code being used is huff
948
+       with length len.  That code is converted to an index by dropping drop
949
+       bits off of the bottom.  For codes where len is less than drop + curr,
950
+       those top drop + curr - len bits are incremented through all values to
951
+       fill the table with replicated entries.
952
+
953
+       root is the number of index bits for the root table.  When len exceeds
954
+       root, sub-tables are created pointed to by the root entry with an index
955
+       of the low root bits of huff.  This is saved in low to check for when a
956
+       new sub-table should be started.  drop is zero when the root table is
957
+       being filled, and drop is root when sub-tables are being filled.
958
+
959
+       When a new sub-table is needed, it is necessary to look ahead in the
960
+       code lengths to determine what size sub-table is needed.  The length
961
+       counts are used for this, and so count[] is decremented as codes are
962
+       entered in the tables.
963
+
964
+       used keeps track of how many table entries have been allocated from the
965
+       provided *table space.  It is checked when a LENS table is being made
966
+       against the space in *table, ENOUGH, minus the maximum space needed by
967
+       the worst case distance code, MAXD.  This should never happen, but the
968
+       sufficiency of ENOUGH has not been proven exhaustively, hence the check.
969
+       This assumes that when type == LENS, bits == 9.
970
+
971
+       sym increments through all symbols, and the loop terminates when
972
+       all codes of length max, i.e. all codes, have been processed.  This
973
+       routine permits incomplete codes, so another loop after this one fills
974
+       in the rest of the decoding tables with invalid code markers.
975
+     */
976
+
977
+    /* set up for code type */
978
+    switch (type) {
979
+    case CODES:
980
+        base = extra = work;    /* dummy value--not used */
981
+        end = 19;
982
+        break;
983
+    case LENS:
984
+        base = lbase;
985
+        base -= 257;
986
+        extra = lext;
987
+        extra -= 257;
988
+        end = 256;
989
+        break;
990
+    default:            /* DISTS */
991
+        base = dbase;
992
+        extra = dext;
993
+        end = -1;
994
+    }
995
+
996
+    /* initialize state for loop */
997
+    huff = 0;                   /* starting code */
998
+    sym = 0;                    /* starting code symbol */
999
+    len = min;                  /* starting code length */
1000
+    next = *table;              /* current table to fill in */
1001
+    curr = root;                /* current table index bits */
1002
+    drop = 0;                   /* current bits to drop from code for index */
1003
+    low = (unsigned)(-1);       /* trigger new sub-table when len > root */
1004
+    used = 1U << root;          /* use root table entries */
1005
+    mask = used - 1;            /* mask for comparing low */
1006
+
1007
+    /* check available table space */
1008
+    if (type == LENS && used >= ENOUGH - MAXD)
1009
+        return 1;
1010
+
1011
+    /* process all codes and make table entries */
1012
+    for (;;) {
1013
+        /* create table entry */
1014
+        this.bits = (unsigned char)(len - drop);
1015
+        if ((int)(work[sym]) < end) {
1016
+            this.op = (unsigned char)0;
1017
+            this.val = work[sym];
1018
+        }
1019
+        else if ((int)(work[sym]) > end) {
1020
+            this.op = (unsigned char)(extra[work[sym]]);
1021
+            this.val = base[work[sym]];
1022
+        }
1023
+        else {
1024
+            this.op = (unsigned char)(32 + 64);         /* end of block */
1025
+            this.val = 0;
1026
+        }
1027
+
1028
+        /* replicate for those indices with low len bits equal to huff */
1029
+        incr = 1U << (len - drop);
1030
+        fill = 1U << curr;
1031
+        min = fill;                 /* save offset to next table */
1032
+        do {
1033
+            fill -= incr;
1034
+            next[(huff >> drop) + fill] = this;
1035
+        } while (fill != 0);
1036
+
1037
+        /* backwards increment the len-bit code huff */
1038
+        incr = 1U << (len - 1);
1039
+        while (huff & incr)
1040
+            incr >>= 1;
1041
+        if (incr != 0) {
1042
+            huff &= incr - 1;
1043
+            huff += incr;
1044
+        }
1045
+        else
1046
+            huff = 0;
1047
+
1048
+        /* go to next symbol, update count, len */
1049
+        sym++;
1050
+        if (--(count[len]) == 0) {
1051
+            if (len == max) break;
1052
+            len = lens[work[sym]];
1053
+        }
1054
+
1055
+        /* create new sub-table if needed */
1056
+        if (len > root && (huff & mask) != low) {
1057
+            /* if first time, transition to sub-tables */
1058
+            if (drop == 0)
1059
+                drop = root;
1060
+
1061
+            /* increment past last table */
1062
+            next += min;            /* here min is 1 << curr */
1063
+
1064
+            /* determine length of next table */
1065
+            curr = len - drop;
1066
+            left = (int)(1 << curr);
1067
+            while (curr + drop < max) {
1068
+                left -= count[curr + drop];
1069
+                if (left <= 0) break;
1070
+                curr++;
1071
+                left <<= 1;
1072
+            }
1073
+
1074
+            /* check for enough space */
1075
+            used += 1U << curr;
1076
+            if (type == LENS && used >= ENOUGH - MAXD)
1077
+                return 1;
1078
+
1079
+            /* point entry in root table to sub-table */
1080
+            low = huff & mask;
1081
+            (*table)[low].op = (unsigned char)curr;
1082
+            (*table)[low].bits = (unsigned char)root;
1083
+            (*table)[low].val = (unsigned short)(next - *table);
1084
+        }
1085
+    }
1086
+
1087
+    /*
1088
+       Fill in rest of table for incomplete codes.  This loop is similar to the
1089
+       loop above in incrementing huff for table indices.  It is assumed that
1090
+       len is equal to curr + drop, so there is no loop needed to increment
1091
+       through high index bits.  When the current sub-table is filled, the loop
1092
+       drops back to the root table to fill in any remaining entries there.
1093
+     */
1094
+    this.op = (unsigned char)64;                /* invalid code marker */
1095
+    this.bits = (unsigned char)(len - drop);
1096
+    this.val = (unsigned short)0;
1097
+    while (huff != 0) {
1098
+        /* when done with sub-table, drop back to root table */
1099
+        if (drop != 0 && (huff & mask) != low) {
1100
+            drop = 0;
1101
+            len = root;
1102
+            next = *table;
1103
+            this.bits = (unsigned char)len;
1104
+        }
1105
+
1106
+        /* put invalid code marker in table */
1107
+        next[huff >> drop] = this;
1108
+
1109
+        /* backwards increment the len-bit code huff */
1110
+        incr = 1U << (len - 1);
1111
+        while (huff & incr)
1112
+            incr >>= 1;
1113
+        if (incr != 0) {
1114
+            huff &= incr - 1;
1115
+            huff += incr;
1116
+        }
1117
+        else
1118
+            huff = 0;
1119
+    }
1120
+
1121
+    /* set return parameters */
1122
+    *table += used;
1123
+    *bits = root;
1124
+    return 0;
1125
+}
0 1126
new file mode 100644
... ...
@@ -0,0 +1,98 @@
0
+/* 
1
+ * This file contains code from zlib library v.1.2.3 with modifications
2
+ * by aCaB <acab@clamav.net> to allow decompression of deflate64 stereams
3
+ * (aka zip method 9). The implementation is heavily inspired by InfoZip
4
+ *  and zlib's inf9back.c
5
+ * 
6
+ * Full copy of the original zlib license follows:
7
+ */
8
+
9
+/* zlib.h -- interface of the 'zlib' general purpose compression library
10
+  version 1.2.3, July 18th, 2005
11
+
12
+  Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
13
+
14
+  This software is provided 'as-is', without any express or implied
15
+  warranty.  In no event will the authors be held liable for any damages
16
+  arising from the use of this software.
17
+
18
+  Permission is granted to anyone to use this software for any purpose,
19
+  including commercial applications, and to alter it and redistribute it
20
+  freely, subject to the following restrictions:
21
+
22
+  1. The origin of this software must not be misrepresented; you must not
23
+     claim that you wrote the original software. If you use this software
24
+     in a product, an acknowledgment in the product documentation would be
25
+     appreciated but is not required.
26
+  2. Altered source versions must be plainly marked as such, and must not be
27
+     misrepresented as being the original software.
28
+  3. This notice may not be removed or altered from any source distribution.
29
+
30
+  Jean-loup Gailly        Mark Adler
31
+  jloup@gzip.org          madler@alumni.caltech.edu
32
+
33
+
34
+  The data format used by the zlib library is described by RFCs (Request for
35
+  Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
36
+  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
37
+*/
38
+
39
+#ifndef __INFLATE64_H
40
+#define __INFLATE64_H
41
+
42
+#if HAVE_CONFIG_H
43
+#include "clamav-config.h"
44
+#endif
45
+
46
+#include "others.h"
47
+
48
+#ifndef OF /* function prototypes */
49
+#  ifdef STDC
50
+#    define OF(args)  args
51
+#  else
52
+#    define OF(args)  ()
53
+#  endif
54
+#endif
55
+
56
+#ifndef ZEXTERN
57
+#  define ZEXTERN extern
58
+#endif
59
+#ifndef ZEXPORT
60
+#  define ZEXPORT
61
+#endif
62
+#ifndef ZEXPORTVA
63
+#  define ZEXPORTVA
64
+#endif
65
+
66
+#ifndef FAR
67
+#  define FAR
68
+#endif
69
+
70
+#ifndef MAX_WBITS64
71
+#  define MAX_WBITS64   16 /* 64K window */
72
+#endif
73
+
74
+struct internal_state;
75
+
76
+typedef struct z_stream64_s {
77
+    uint8_t		*next_in;  /* next input byte */
78
+    unsigned int	avail_in;  /* number of bytes available at next_in */
79
+    unsigned long	total_in;  /* total nb of input bytes read so far */
80
+
81
+    uint8_t		*next_out; /* next output byte should be put there */
82
+    unsigned int	avail_out; /* remaining free space at next_out */
83
+    unsigned long	total_out; /* total nb of bytes output so far */
84
+
85
+    struct internal_state FAR *state; /* not visible by applications */
86
+
87
+    int     data_type;  /* best guess about the data type: binary or text */
88
+    unsigned long   adler;      /* adler32 value of the uncompressed data */
89
+} z_stream64;
90
+
91
+typedef z_stream64 FAR *z_stream64p;
92
+
93
+ZEXTERN int ZEXPORT inflate64 OF((z_stream64p strm, int flush));
94
+ZEXTERN int ZEXPORT inflate64End OF((z_stream64p strm));
95
+ZEXTERN int ZEXPORT inflate64Init2 OF((z_stream64p strm, int  windowBits));
96
+
97
+#endif /* __INFLATE64_H */
0 98
new file mode 100644
... ...
@@ -0,0 +1,192 @@
0
+/* 
1
+ * This file contains code from zlib library v.1.2.3 with modifications
2
+ * by aCaB <acab@clamav.net> to allow decompression of deflate64 stereams
3
+ * (aka zip method 9). The implementation is heavily inspired by InfoZip
4
+ *  and zlib's inf9back.c
5
+ * 
6
+ * Full copy of the original zlib license follows:
7
+ */
8
+
9
+/* zlib.h -- interface of the 'zlib' general purpose compression library
10
+  version 1.2.3, July 18th, 2005
11
+
12
+  Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
13
+
14
+  This software is provided 'as-is', without any express or implied
15
+  warranty.  In no event will the authors be held liable for any damages
16
+  arising from the use of this software.
17
+
18
+  Permission is granted to anyone to use this software for any purpose,
19
+  including commercial applications, and to alter it and redistribute it
20
+  freely, subject to the following restrictions:
21
+
22
+  1. The origin of this software must not be misrepresented; you must not
23
+     claim that you wrote the original software. If you use this software
24
+     in a product, an acknowledgment in the product documentation would be
25
+     appreciated but is not required.
26
+  2. Altered source versions must be plainly marked as such, and must not be
27
+     misrepresented as being the original software.
28
+  3. This notice may not be removed or altered from any source distribution.
29
+
30
+  Jean-loup Gailly        Mark Adler
31
+  jloup@gzip.org          madler@alumni.caltech.edu
32
+
33
+
34
+  The data format used by the zlib library is described by RFCs (Request for
35
+  Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
36
+  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
37
+*/
38
+
39
+#ifndef __INFLATE64_PRIV_H
40
+#define __INFLATE64_PRIV_H
41
+
42
+#if HAVE_CONFIG_H
43
+#include "clamav-config.h"
44
+#endif
45
+
46
+#include "inflate64.h"
47
+
48
+#include <zlib.h> /* adler/crc32 */
49
+
50
+#ifndef local
51
+#  define local static
52
+#endif
53
+/* compile with -Dlocal if your debugger can't find static symbols */
54
+
55
+#ifndef PKZIP_BUG_WORKAROUND
56
+#define PKZIP_BUG_WORKAROUND
57
+#endif
58
+
59
+/* Diagnostic functions */
60
+#ifdef INF64DEBUG
61
+#  include <stdio.h>
62
+#  define Assert(cond,msg) {if(!(cond)) perror(msg);}
63
+#  define Trace(x) {if (verbose>=0) fprintf x ;}
64
+#  define Tracev(x) {if (verbose>0) fprintf x ;}
65
+#  define Tracevv(x) {if (verbose>1) fprintf x ;}
66
+#  define Tracec(c,x) {if (verbose>0 && (c)) fprintf x ;}
67
+#  define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;}
68
+#else
69
+#  define Assert(cond,msg)
70
+#  define Trace(x)
71
+#  define Tracev(x)
72
+#  define Tracevv(x)
73
+#  define Tracec(c,x)
74
+#  define Tracecv(c,x)
75
+#endif
76
+
77
+#define MAXBITS 15
78
+#define ENOUGH 2048
79
+#define MAXD 592
80
+
81
+typedef struct {
82
+    unsigned char op;           /* operation, extra bits, table bits */
83
+    unsigned char bits;         /* bits in this part of the code */
84
+    unsigned short val;         /* offset in table or code value */
85
+} code;
86
+
87
+/* Type of code to build for inftable() */
88
+typedef enum {
89
+    CODES,
90
+    LENS,
91
+    DISTS
92
+} codetype;
93
+
94
+/* Possible inflate modes between inflate() calls */
95
+typedef enum {
96
+    HEAD,       /* i: waiting for magic header */
97
+    FLAGS,      /* i: waiting for method and flags (gzip) */
98
+    TIME,       /* i: waiting for modification time (gzip) */
99
+    OS,         /* i: waiting for extra flags and operating system (gzip) */
100
+    EXLEN,      /* i: waiting for extra length (gzip) */
101
+    EXTRA,      /* i: waiting for extra bytes (gzip) */
102
+    NAME,       /* i: waiting for end of file name (gzip) */
103
+    COMMENT,    /* i: waiting for end of comment (gzip) */
104
+    HCRC,       /* i: waiting for header crc (gzip) */
105
+    DICTID,     /* i: waiting for dictionary check value */
106
+    DICT,       /* waiting for inflateSetDictionary() call */
107
+        TYPE,       /* i: waiting for type bits, including last-flag bit */
108
+        TYPEDO,     /* i: same, but skip check to exit inflate on new block */
109
+        STORED,     /* i: waiting for stored size (length and complement) */
110
+        COPY,       /* i/o: waiting for input or output to copy stored block */
111
+        TABLE,      /* i: waiting for dynamic block table lengths */
112
+        LENLENS,    /* i: waiting for code length code lengths */
113
+        CODELENS,   /* i: waiting for length/lit and distance code lengths */
114
+            LEN,        /* i: waiting for length/lit code */
115
+            LENEXT,     /* i: waiting for length extra bits */
116
+            DIST,       /* i: waiting for distance code */
117
+            DISTEXT,    /* i: waiting for distance extra bits */
118
+            MATCH,      /* o: waiting for output space to copy string */
119
+            LIT,        /* o: waiting for output space to write literal */
120
+    CHECK,      /* i: waiting for 32-bit check value */
121
+    LENGTH,     /* i: waiting for 32-bit length (gzip) */
122
+    DONE,       /* finished check, done -- remain here until reset */
123
+    BAD,        /* got a data error -- remain here until reset */
124
+    MEM,        /* got an inflate() memory error -- remain here until reset */
125
+    SYNC        /* looking for synchronization bytes to restart inflate() */
126
+} inflate_mode;
127
+
128
+/*
129
+    State transitions between above modes -
130
+
131
+    (most modes can go to the BAD or MEM mode -- not shown for clarity)
132
+
133
+    Process header:
134
+        HEAD -> (gzip) or (zlib)
135
+        (gzip) -> FLAGS -> TIME -> OS -> EXLEN -> EXTRA -> NAME
136
+        NAME -> COMMENT -> HCRC -> TYPE
137
+        (zlib) -> DICTID or TYPE
138
+        DICTID -> DICT -> TYPE
139
+    Read deflate blocks:
140
+            TYPE -> STORED or TABLE or LEN or CHECK
141
+            STORED -> COPY -> TYPE
142
+            TABLE -> LENLENS -> CODELENS -> LEN
143
+    Read deflate codes:
144
+                LEN -> LENEXT or LIT or TYPE
145
+                LENEXT -> DIST -> DISTEXT -> MATCH -> LEN
146
+                LIT -> LEN
147
+    Process trailer:
148
+        CHECK -> LENGTH -> DONE
149
+ */
150
+
151
+/* state maintained between inflate() calls.  Approximately 7K bytes. */
152
+struct inflate_state {
153
+    inflate_mode mode;          /* current inflate mode */
154
+    int last;                   /* true if processing last block */
155
+    int wrap;                   /* bit 0 true for zlib, bit 1 true for gzip */
156
+    int havedict;               /* true if dictionary provided */
157
+    int flags;                  /* gzip header method and flags (0 if zlib) */
158
+    unsigned dmax;              /* zlib header max distance (INFLATE_STRICT) */
159
+    unsigned long check;        /* protected copy of check value */
160
+    unsigned long total;        /* protected copy of output count */
161
+        /* sliding window */
162
+    unsigned wbits;             /* log base 2 of requested window size */
163
+    unsigned wsize;             /* window size or zero if not using window */
164
+    unsigned whave;             /* valid bytes in the window */
165
+    unsigned write;             /* window write index */
166
+    unsigned char FAR *window;  /* allocated sliding window, if needed */
167
+        /* bit accumulator */
168
+    unsigned long hold;         /* input bit accumulator */
169
+    unsigned bits;              /* number of bits in "in" */
170
+        /* for string and stored block copying */
171
+    unsigned length;            /* literal or length of data to copy */
172
+    unsigned offset;            /* distance back to copy string from */
173
+        /* for table and code decoding */
174
+    unsigned extra;             /* extra bits needed */
175
+        /* fixed and dynamic code tables */
176
+    code const FAR *lencode;    /* starting table for length/literal codes */
177
+    code const FAR *distcode;   /* starting table for distance codes */
178
+    unsigned lenbits;           /* index bits for lencode */
179
+    unsigned distbits;          /* index bits for distcode */
180
+        /* dynamic table building */
181
+    unsigned ncode;             /* number of code length code lengths */
182
+    unsigned nlen;              /* number of length code lengths */
183
+    unsigned ndist;             /* number of distance code lengths */
184
+    unsigned have;              /* number of code lengths in lens[] */
185
+    code FAR *next;             /* next available space in codes[] */
186
+    unsigned short lens[320];   /* temporary storage for code lengths */
187
+    unsigned short work[288];   /* work area for code table building */
188
+    code codes[ENOUGH];         /* space for code tables */
189
+};
190
+
191
+#endif
0 192
new file mode 100644
... ...
@@ -0,0 +1,521 @@
0
+/*
1
+  LzmaStateDecode.c
2
+  LZMA Decoder (State version)
3
+  
4
+  LZMA SDK 4.40 Copyright (c) 1999-2006 Igor Pavlov (2006-05-01)
5
+  http://www.7-zip.org/
6
+
7
+  LZMA SDK is licensed under two licenses:
8
+  1) GNU Lesser General Public License (GNU LGPL)
9
+  2) Common Public License (CPL)
10
+  It means that you can select one of these two licenses and 
11
+  follow rules of that license.
12
+
13
+  SPECIAL EXCEPTION:
14
+  Igor Pavlov, as the author of this Code, expressly permits you to 
15
+  statically or dynamically link your Code (or bind by name) to the 
16
+  interfaces of this file without subjecting your linked Code to the 
17
+  terms of the CPL or GNU LGPL. Any modifications or additions 
18
+  to this file, however, are subject to the LGPL or CPL terms.
19
+*/
20
+
21
+#include "LzmaStateDecode.h"
22
+
23
+#define kNumTopBits 24
24
+#define kTopValue ((UInt32)1 << kNumTopBits)
25
+
26
+#define kNumBitModelTotalBits 11
27
+#define kBitModelTotal (1 << kNumBitModelTotalBits)
28
+#define kNumMoveBits 5
29
+
30
+#define RC_READ_BYTE (*Buffer++)
31
+
32
+#define RC_INIT Code = 0; Range = 0xFFFFFFFF; \
33
+  { int i; for(i = 0; i < 5; i++) { Code = (Code << 8) | RC_READ_BYTE; }}
34
+
35
+#define RC_NORMALIZE if (Range < kTopValue) { Range <<= 8; Code = (Code << 8) | RC_READ_BYTE; }
36
+
37
+#define IfBit0(p) RC_NORMALIZE; bound = (Range >> kNumBitModelTotalBits) * *(p); if (Code < bound)
38
+#define UpdateBit0(p) Range = bound; *(p) += (kBitModelTotal - *(p)) >> kNumMoveBits;
39
+#define UpdateBit1(p) Range -= bound; Code -= bound; *(p) -= (*(p)) >> kNumMoveBits;
40
+
41
+#define RC_GET_BIT2(p, mi, A0, A1) IfBit0(p) \
42
+  { UpdateBit0(p); mi <<= 1; A0; } else \
43
+  { UpdateBit1(p); mi = (mi + mi) + 1; A1; } 
44
+  
45
+#define RC_GET_BIT(p, mi) RC_GET_BIT2(p, mi, ; , ;)               
46
+
47
+#define RangeDecoderBitTreeDecode(probs, numLevels, res) \
48
+  { int i = numLevels; res = 1; \
49
+  do { CProb *p = probs + res; RC_GET_BIT(p, res) } while(--i != 0); \
50
+  res -= (1 << numLevels); }
51
+
52
+
53
+#define kNumPosBitsMax 4
54
+#define kNumPosStatesMax (1 << kNumPosBitsMax)
55
+
56
+#define kLenNumLowBits 3
57
+#define kLenNumLowSymbols (1 << kLenNumLowBits)
58
+#define kLenNumMidBits 3
59
+#define kLenNumMidSymbols (1 << kLenNumMidBits)
60
+#define kLenNumHighBits 8
61
+#define kLenNumHighSymbols (1 << kLenNumHighBits)
62
+
63
+#define LenChoice 0
64
+#define LenChoice2 (LenChoice + 1)
65
+#define LenLow (LenChoice2 + 1)
66
+#define LenMid (LenLow + (kNumPosStatesMax << kLenNumLowBits))
67
+#define LenHigh (LenMid + (kNumPosStatesMax << kLenNumMidBits))
68
+#define kNumLenProbs (LenHigh + kLenNumHighSymbols) 
69
+
70
+
71
+#define kNumStates 12
72
+#define kNumLitStates 7
73
+
74
+#define kStartPosModelIndex 4
75
+#define kEndPosModelIndex 14
76
+#define kNumFullDistances (1 << (kEndPosModelIndex >> 1))
77
+
78
+#define kNumPosSlotBits 6
79
+#define kNumLenToPosStates 4
80
+
81
+#define kNumAlignBits 4
82
+#define kAlignTableSize (1 << kNumAlignBits)
83
+
84
+#define kMatchMinLen 2
85
+
86
+#define IsMatch 0
87
+#define IsRep (IsMatch + (kNumStates << kNumPosBitsMax))
88
+#define IsRepG0 (IsRep + kNumStates)
89
+#define IsRepG1 (IsRepG0 + kNumStates)
90
+#define IsRepG2 (IsRepG1 + kNumStates)
91
+#define IsRep0Long (IsRepG2 + kNumStates)
92
+#define PosSlot (IsRep0Long + (kNumStates << kNumPosBitsMax))
93
+#define SpecPos (PosSlot + (kNumLenToPosStates << kNumPosSlotBits))
94
+#define Align (SpecPos + kNumFullDistances - kEndPosModelIndex)
95
+#define LenCoder (Align + kAlignTableSize)
96
+#define RepLenCoder (LenCoder + kNumLenProbs)
97
+#define Literal (RepLenCoder + kNumLenProbs)
98
+
99
+#if Literal != LZMA_BASE_SIZE
100
+StopCompilingDueBUG
101
+#endif
102
+
103
+/* kRequiredInBufferSize = number of required input bytes for worst case: 
104
+   longest match with longest distance.
105
+   kLzmaInBufferSize must be larger than kRequiredInBufferSize 
106
+   23 bits = 2 (match select) + 10 (len) + 6 (distance) + 4(align) + 1 (RC_NORMALIZE)
107
+*/
108
+
109
+#define kRequiredInBufferSize ((23 * (kNumBitModelTotalBits - kNumMoveBits + 1) + 26 + 9) / 8)
110
+
111
+#define kLzmaStreamWasFinishedId (-1)
112
+
113
+int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, int size)
114
+{
115
+  unsigned char prop0;
116
+  if (size < LZMA_PROPERTIES_SIZE)
117
+    return LZMA_RESULT_DATA_ERROR;
118
+  prop0 = propsData[0];
119
+  if (prop0 >= (9 * 5 * 5))
120
+    return LZMA_RESULT_DATA_ERROR;
121
+  {
122
+    for (propsRes->pb = 0; prop0 >= (9 * 5); propsRes->pb++, prop0 -= (9 * 5));
123
+    for (propsRes->lp = 0; prop0 >= 9; propsRes->lp++, prop0 -= 9);
124
+    propsRes->lc = prop0;
125
+    /*
126
+    unsigned char remainder = (unsigned char)(prop0 / 9);
127
+    propsRes->lc = prop0 % 9;
128
+    propsRes->pb = remainder / 5;
129
+    propsRes->lp = remainder % 5;
130
+    */
131
+  }
132
+
133
+  {
134
+    int i;
135
+    propsRes->DictionarySize = 0;
136
+    for (i = 0; i < 4; i++)
137
+      propsRes->DictionarySize += (UInt32)(propsData[1 + i]) << (i * 8);
138
+    if (propsRes->DictionarySize == 0)
139
+      propsRes->DictionarySize = 1;
140
+    return LZMA_RESULT_OK;
141
+  }
142
+}
143
+
144
+int LzmaDecode(
145
+    CLzmaDecoderState *vs,
146
+    const unsigned char *inStream, SizeT inSize, SizeT *inSizeProcessed,
147
+    unsigned char *outStream, SizeT outSize, SizeT *outSizeProcessed,
148
+    int finishDecoding)
149
+{
150
+  UInt32 Range = vs->Range;
151
+  UInt32 Code = vs->Code;
152
+
153
+  unsigned char *Buffer = vs->Buffer;
154
+  int BufferSize = vs->BufferSize; /* don't change it to unsigned int */
155
+  CProb *p = vs->Probs;
156
+
157
+  int state = vs->State;
158
+  unsigned char previousByte;
159
+  UInt32 rep0 = vs->Reps[0], rep1 = vs->Reps[1], rep2 = vs->Reps[2], rep3 = vs->Reps[3];
160
+  SizeT nowPos = 0;
161
+  UInt32 posStateMask = (1 << (vs->Properties.pb)) - 1;
162
+  UInt32 literalPosMask = (1 << (vs->Properties.lp)) - 1;
163
+  int lc = vs->Properties.lc;
164
+  int len = vs->RemainLen;
165
+  UInt32 globalPos = vs->GlobalPos;
166
+  UInt32 distanceLimit = vs->DistanceLimit;
167
+
168
+  unsigned char *dictionary = vs->Dictionary;
169
+  UInt32 dictionarySize = vs->Properties.DictionarySize;
170
+  UInt32 dictionaryPos = vs->DictionaryPos;
171
+
172
+  unsigned char tempDictionary[4];
173
+
174
+  (*inSizeProcessed) = 0;
175
+  (*outSizeProcessed) = 0;
176
+  if (len == kLzmaStreamWasFinishedId)
177
+    return LZMA_RESULT_OK;
178
+
179
+  if (dictionarySize == 0)
180
+  {
181
+    dictionary = tempDictionary;
182
+    dictionarySize = 1;
183
+    tempDictionary[0] = vs->TempDictionary[0];
184
+  }
185
+
186
+  if (len == kLzmaNeedInitId)
187
+  {
188
+    while (inSize > 0 && BufferSize < kLzmaInBufferSize)
189
+    {
190
+      Buffer[BufferSize++] = *inStream++;
191
+      (*inSizeProcessed)++;
192
+      inSize--;
193
+    }
194
+    if (BufferSize < 5)
195
+    {
196
+      vs->BufferSize = BufferSize;
197
+      return finishDecoding ? LZMA_RESULT_DATA_ERROR : LZMA_RESULT_OK;
198
+    }
199
+    {
200
+      UInt32 numProbs = Literal + ((UInt32)LZMA_LIT_SIZE << (lc + vs->Properties.lp));
201
+      UInt32 i;
202
+      for (i = 0; i < numProbs; i++)
203
+        p[i] = kBitModelTotal >> 1; 
204
+      rep0 = rep1 = rep2 = rep3 = 1;
205
+      state = 0;
206
+      globalPos = 0;
207
+      distanceLimit = 0;
208
+      dictionaryPos = 0;
209
+      dictionary[dictionarySize - 1] = 0;
210
+      RC_INIT;
211
+    }
212
+    len = 0;
213
+  }
214
+  while(len != 0 && nowPos < outSize)
215
+  {
216
+    UInt32 pos = dictionaryPos - rep0;
217
+    if (pos >= dictionarySize)
218
+      pos += dictionarySize;
219
+    outStream[nowPos++] = dictionary[dictionaryPos] = dictionary[pos];
220
+    if (++dictionaryPos == dictionarySize)
221
+      dictionaryPos = 0;
222
+    len--;
223
+  }
224
+  if (dictionaryPos == 0)
225
+    previousByte = dictionary[dictionarySize - 1];
226
+  else
227
+    previousByte = dictionary[dictionaryPos - 1];
228
+
229
+  while(1)
230
+  {
231
+    int bufferPos = (int)(Buffer - vs->Buffer);
232
+    if (BufferSize - bufferPos < kRequiredInBufferSize)
233
+    {
234
+      int i;
235
+      BufferSize -= bufferPos;
236
+      if (BufferSize < 0)
237
+        return LZMA_RESULT_DATA_ERROR;
238
+      for (i = 0; i < BufferSize; i++)
239
+        vs->Buffer[i] = Buffer[i];
240
+      Buffer = vs->Buffer;
241
+      while (inSize > 0 && BufferSize < kLzmaInBufferSize)
242
+      {
243
+        Buffer[BufferSize++] = *inStream++;
244
+        (*inSizeProcessed)++;
245
+        inSize--;
246
+      }
247
+      if (BufferSize < kRequiredInBufferSize && !finishDecoding)
248
+        break;
249
+    }
250
+    if (nowPos >= outSize)
251
+      break;
252
+    {
253
+    CProb *prob;
254
+    UInt32 bound;
255
+    int posState = (int)((nowPos + globalPos) & posStateMask);
256
+
257
+    prob = p + IsMatch + (state << kNumPosBitsMax) + posState;
258
+    IfBit0(prob)
259
+    {
260
+      int symbol = 1;
261
+      UpdateBit0(prob)
262
+      prob = p + Literal + (LZMA_LIT_SIZE * 
263
+        ((((nowPos + globalPos)& literalPosMask) << lc) + (previousByte >> (8 - lc))));
264
+
265
+      if (state >= kNumLitStates)
266
+      {
267
+        int matchByte;
268
+        UInt32 pos = dictionaryPos - rep0;
269
+        if (pos >= dictionarySize)
270
+          pos += dictionarySize;
271
+        matchByte = dictionary[pos];
272
+        do
273
+        {
274
+          int bit;
275
+          CProb *probLit;
276
+          matchByte <<= 1;
277
+          bit = (matchByte & 0x100);
278
+          probLit = prob + 0x100 + bit + symbol;
279
+          RC_GET_BIT2(probLit, symbol, if (bit != 0) break, if (bit == 0) break)
280
+        }
281
+        while (symbol < 0x100);
282
+      }
283
+      while (symbol < 0x100)
284
+      {
285
+        CProb *probLit = prob + symbol;
286
+        RC_GET_BIT(probLit, symbol)
287
+      }
288
+      previousByte = (unsigned char)symbol;
289
+
290
+      outStream[nowPos++] = previousByte;
291
+      if (distanceLimit < dictionarySize)
292
+        distanceLimit++;
293
+
294
+      dictionary[dictionaryPos] = previousByte;
295
+      if (++dictionaryPos == dictionarySize)
296
+        dictionaryPos = 0;
297
+      if (state < 4) state = 0;
298
+      else if (state < 10) state -= 3;
299
+      else state -= 6;
300
+    }
301
+    else             
302
+    {
303
+      UpdateBit1(prob);
304
+      prob = p + IsRep + state;
305
+      IfBit0(prob)
306
+      {
307
+        UpdateBit0(prob);
308
+        rep3 = rep2;
309
+        rep2 = rep1;
310
+        rep1 = rep0;
311
+        state = state < kNumLitStates ? 0 : 3;
312
+        prob = p + LenCoder;
313
+      }
314
+      else
315
+      {
316
+        UpdateBit1(prob);
317
+        prob = p + IsRepG0 + state;
318
+        IfBit0(prob)
319
+        {
320
+          UpdateBit0(prob);
321
+          prob = p + IsRep0Long + (state << kNumPosBitsMax) + posState;
322
+          IfBit0(prob)
323
+          {
324
+            UInt32 pos;
325
+            UpdateBit0(prob);
326
+            if (distanceLimit == 0)
327
+              return LZMA_RESULT_DATA_ERROR;
328
+            if (distanceLimit < dictionarySize)
329
+              distanceLimit++;
330
+            state = state < kNumLitStates ? 9 : 11;
331
+            pos = dictionaryPos - rep0;
332
+            if (pos >= dictionarySize)
333
+              pos += dictionarySize;
334
+            previousByte = dictionary[pos];
335
+            dictionary[dictionaryPos] = previousByte;
336
+            if (++dictionaryPos == dictionarySize)
337
+              dictionaryPos = 0;
338
+            outStream[nowPos++] = previousByte;
339
+            continue;
340
+          }
341
+          else
342
+          {
343
+            UpdateBit1(prob);
344
+          }
345
+        }
346
+        else
347
+        {
348
+          UInt32 distance;
349
+          UpdateBit1(prob);
350
+          prob = p + IsRepG1 + state;
351
+          IfBit0(prob)
352
+          {
353
+            UpdateBit0(prob);
354
+            distance = rep1;
355
+          }
356
+          else 
357
+          {
358
+            UpdateBit1(prob);
359
+            prob = p + IsRepG2 + state;
360
+            IfBit0(prob)
361
+            {
362
+              UpdateBit0(prob);
363
+              distance = rep2;
364
+            }
365
+            else
366
+            {
367
+              UpdateBit1(prob);
368
+              distance = rep3;
369
+              rep3 = rep2;
370
+            }
371
+            rep2 = rep1;
372
+          }
373
+          rep1 = rep0;
374
+          rep0 = distance;
375
+        }
376
+        state = state < kNumLitStates ? 8 : 11;
377
+        prob = p + RepLenCoder;
378
+      }
379
+      {
380
+        int numBits, offset;
381
+        CProb *probLen = prob + LenChoice;
382
+        IfBit0(probLen)
383
+        {
384
+          UpdateBit0(probLen);
385
+          probLen = prob + LenLow + (posState << kLenNumLowBits);
386
+          offset = 0;
387
+          numBits = kLenNumLowBits;
388
+        }
389
+        else
390
+        {
391
+          UpdateBit1(probLen);
392
+          probLen = prob + LenChoice2;
393
+          IfBit0(probLen)
394
+          {
395
+            UpdateBit0(probLen);
396
+            probLen = prob + LenMid + (posState << kLenNumMidBits);
397
+            offset = kLenNumLowSymbols;
398
+            numBits = kLenNumMidBits;
399
+          }
400
+          else
401
+          {
402
+            UpdateBit1(probLen);
403
+            probLen = prob + LenHigh;
404
+            offset = kLenNumLowSymbols + kLenNumMidSymbols;
405
+            numBits = kLenNumHighBits;
406
+          }
407
+        }
408
+        RangeDecoderBitTreeDecode(probLen, numBits, len);
409
+        len += offset;
410
+      }
411
+
412
+      if (state < 4)
413
+      {
414
+        int posSlot;
415
+        state += kNumLitStates;
416
+        prob = p + PosSlot +
417
+            ((len < kNumLenToPosStates ? len : kNumLenToPosStates - 1) << 
418
+            kNumPosSlotBits);
419
+        RangeDecoderBitTreeDecode(prob, kNumPosSlotBits, posSlot);
420
+        if (posSlot >= kStartPosModelIndex)
421
+        {
422
+          int numDirectBits = ((posSlot >> 1) - 1);
423
+          rep0 = (2 | ((UInt32)posSlot & 1));
424
+          if (posSlot < kEndPosModelIndex)
425
+          {
426
+            rep0 <<= numDirectBits;
427
+            prob = p + SpecPos + rep0 - posSlot - 1;
428
+          }
429
+          else
430
+          {
431
+            numDirectBits -= kNumAlignBits;
432
+            do
433
+            {
434
+              RC_NORMALIZE
435
+              Range >>= 1;
436
+              rep0 <<= 1;
437
+              if (Code >= Range)
438
+              {
439
+                Code -= Range;
440
+                rep0 |= 1;
441
+              }
442
+            }
443
+            while (--numDirectBits != 0);
444
+            prob = p + Align;
445
+            rep0 <<= kNumAlignBits;
446
+            numDirectBits = kNumAlignBits;
447
+          }
448
+          {
449
+            int i = 1;
450
+            int mi = 1;
451
+            do
452
+            {
453
+              CProb *prob3 = prob + mi;
454
+              RC_GET_BIT2(prob3, mi, ; , rep0 |= i);
455
+              i <<= 1;
456
+            }
457
+            while(--numDirectBits != 0);
458
+          }
459
+        }
460
+        else
461
+          rep0 = posSlot;
462
+        if (++rep0 == (UInt32)(0))
463
+        {
464
+          /* it's for stream version */
465
+          len = kLzmaStreamWasFinishedId;
466
+          break;
467
+        }
468
+      }
469
+
470
+      len += kMatchMinLen;
471
+      if (rep0 > distanceLimit) 
472
+        return LZMA_RESULT_DATA_ERROR;
473
+      if (dictionarySize - distanceLimit > (UInt32)len)
474
+        distanceLimit += len;
475
+      else
476
+        distanceLimit = dictionarySize;
477
+
478
+      do
479
+      {
480
+        UInt32 pos = dictionaryPos - rep0;
481
+        if (pos >= dictionarySize)
482
+          pos += dictionarySize;
483
+        previousByte = dictionary[pos];
484
+        dictionary[dictionaryPos] = previousByte;
485
+        if (++dictionaryPos == dictionarySize)
486
+          dictionaryPos = 0;
487
+        len--;
488
+        outStream[nowPos++] = previousByte;
489
+      }
490
+      while(len != 0 && nowPos < outSize);
491
+    }
492
+    }
493
+  }
494
+  RC_NORMALIZE;
495
+
496
+  BufferSize -= (int)(Buffer - vs->Buffer);
497
+  if (BufferSize < 0)
498
+    return LZMA_RESULT_DATA_ERROR;
499
+  {
500
+    int i;
501
+    for (i = 0; i < BufferSize; i++)
502
+      vs->Buffer[i] = Buffer[i];
503
+  }
504
+  vs->BufferSize = BufferSize;
505
+  vs->Range = Range;
506
+  vs->Code = Code;
507
+  vs->DictionaryPos = dictionaryPos;
508
+  vs->GlobalPos = (UInt32)(globalPos + nowPos);
509
+  vs->DistanceLimit = distanceLimit;
510
+  vs->Reps[0] = rep0;
511
+  vs->Reps[1] = rep1;
512
+  vs->Reps[2] = rep2;
513
+  vs->Reps[3] = rep3;
514
+  vs->State = state;
515
+  vs->RemainLen = len;
516
+  vs->TempDictionary[0] = tempDictionary[0];
517
+
518
+  (*outSizeProcessed) = nowPos;
519
+  return LZMA_RESULT_OK;
520
+}
0 521
new file mode 100644
... ...
@@ -0,0 +1,96 @@
0
+/* 
1
+  LzmaStateDecode.h
2
+  LZMA Decoder interface (State version)
3
+
4
+  LZMA SDK 4.40 Copyright (c) 1999-2006 Igor Pavlov (2006-05-01)
5
+  http://www.7-zip.org/
6
+
7
+  LZMA SDK is licensed under two licenses:
8
+  1) GNU Lesser General Public License (GNU LGPL)
9
+  2) Common Public License (CPL)
10
+  It means that you can select one of these two licenses and 
11
+  follow rules of that license.
12
+
13
+  SPECIAL EXCEPTION:
14
+  Igor Pavlov, as the author of this code, expressly permits you to 
15
+  statically or dynamically link your code (or bind by name) to the 
16
+  interfaces of this file without subjecting your linked code to the 
17
+  terms of the CPL or GNU LGPL. Any modifications or additions 
18
+  to this file, however, are subject to the LGPL or CPL terms.
19
+*/
20
+
21
+#ifndef __LZMASTATEDECODE_H
22
+#define __LZMASTATEDECODE_H
23
+
24
+#include "LzmaTypes.h"
25
+
26
+/* #define _LZMA_PROB32 */
27
+/* It can increase speed on some 32-bit CPUs, 
28
+   but memory usage will be doubled in that case */
29
+
30
+#ifdef _LZMA_PROB32
31
+#define CProb UInt32
32
+#else
33
+#define CProb UInt16
34
+#endif
35
+
36
+#define LZMA_RESULT_OK 0
37
+#define LZMA_RESULT_DATA_ERROR 1
38
+
39
+#define LZMA_BASE_SIZE 1846
40
+#define LZMA_LIT_SIZE 768
41
+
42
+#define LZMA_PROPERTIES_SIZE 5
43
+
44
+typedef struct _CLzmaProperties
45
+{
46
+  int lc;
47
+  int lp;
48
+  int pb;
49
+  UInt32 DictionarySize;
50
+}CLzmaProperties;
51
+
52
+int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, int size);
53
+
54
+#define LzmaGetNumProbs(lzmaProps) (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((lzmaProps)->lc + (lzmaProps)->lp)))
55
+
56
+#define kLzmaInBufferSize 64   /* don't change it. it must be larger than kRequiredInBufferSize */
57
+
58
+#define kLzmaNeedInitId (-2)
59
+
60
+typedef struct _CLzmaDecoderState
61
+{
62
+  CLzmaProperties Properties;
63
+  CProb *Probs;
64
+  unsigned char *Dictionary;
65
+
66
+  unsigned char Buffer[kLzmaInBufferSize];
67
+  int BufferSize;
68
+
69
+  UInt32 Range;
70
+  UInt32 Code;
71
+  UInt32 DictionaryPos;
72
+  UInt32 GlobalPos;
73
+  UInt32 DistanceLimit;
74
+  UInt32 Reps[4];
75
+  int State;
76
+  int RemainLen;  /* -2: decoder needs internal initialization
77
+                     -1: stream was finished, 
78
+                      0: ok
79
+                    > 0: need to write RemainLen bytes as match Reps[0],
80
+                  */
81
+  unsigned char TempDictionary[4];  /* it's required when DictionarySize = 0 */
82
+} CLzmaDecoderState;
83
+
84
+#define LzmaDecoderInit(vs) { (vs)->RemainLen = kLzmaNeedInitId; (vs)->BufferSize = 0; }
85
+
86
+/* LzmaDecode: decoding from input stream to output stream.
87
+  If finishDecoding != 0, then there are no more bytes in input stream
88
+  after inStream[inSize - 1]. */
89
+
90
+int LzmaDecode(CLzmaDecoderState *vs,
91
+    const unsigned char *inStream, SizeT inSize,  SizeT *inSizeProcessed,
92
+    unsigned char *outStream, SizeT outSize, SizeT *outSizeProcessed,
93
+    int finishDecoding);
94
+
95
+#endif
0 96
new file mode 100644
... ...
@@ -0,0 +1,32 @@
0
+/* 
1
+LzmaTypes.h 
2
+
3
+Types for LZMA Decoder
4
+
5
+This file written and distributed to public domain by Igor Pavlov.
6
+This file is part of LZMA SDK 4.40 (2006-05-01)
7
+*/
8
+
9
+#ifndef __LZMATYPES_H
10
+#define __LZMATYPES_H
11
+
12
+typedef unsigned char Byte;
13
+typedef unsigned short UInt16;
14
+
15
+#ifdef _LZMA_UINT32_IS_ULONG
16
+typedef unsigned long UInt32;
17
+#else
18
+typedef unsigned int UInt32;
19
+#endif
20
+
21
+/* #define _LZMA_SYSTEM_SIZE_T */
22
+/* Use system's size_t. You can use it to enable 64-bit sizes supporting */
23
+
24
+#ifdef _LZMA_SYSTEM_SIZE_T
25
+#include <stddef.h>
26
+typedef size_t SizeT;
27
+#else
28
+typedef UInt32 SizeT;
29
+#endif
30
+
31
+#endif
0 32
new file mode 100644
... ...
@@ -0,0 +1,25 @@
0
+#
1
+#  Copyright (C) 2007 Sourcefire Inc.
2
+#  Author: aCaB <acab@clamav.net>
3
+#
4
+#  This program is free software; you can redistribute it and/or modify
5
+#  it under the terms of the GNU General Public License version 2 as
6
+#  published by the Free Software Foundation.
7
+#
8
+#  This program is distributed in the hope that it will be useful,
9
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
+#  GNU General Public License for more details.
12
+#
13
+#  You should have received a copy of the GNU General Public License
14
+#  along with this program; if not, write to the Free Software
15
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
+#  MA 02110-1301, USA.
17
+#
18
+
19
+AM_CFLAGS = -fPIC -DPIC
20
+
21
+lib_LTLIBRARIES = liblzma.la
22
+liblzma_la_SOURCES = LzmaStateDecode.c
23
+liblzma_la_LDFLAGS = -static
24
+
0 25
new file mode 100644
... ...
@@ -0,0 +1,503 @@
0
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# @configure_input@
2
+
3
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4
+# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# This Makefile.in is free software; the Free Software Foundation
6
+# gives unlimited permission to copy and/or distribute it,
7
+# with or without modifications, as long as this notice is preserved.
8
+
9
+# This program is distributed in the hope that it will be useful,
10
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
+# PARTICULAR PURPOSE.
13
+
14
+@SET_MAKE@
15
+
16
+#
17
+#  Copyright (C) 2007 Sourcefire Inc.
18
+#  Author: aCaB <acab@clamav.net>
19
+#
20
+#  This program is free software; you can redistribute it and/or modify
21
+#  it under the terms of the GNU General Public License version 2 as
22
+#  published by the Free Software Foundation.
23
+#
24
+#  This program is distributed in the hope that it will be useful,
25
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
26
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
+#  GNU General Public License for more details.
28
+#
29
+#  You should have received a copy of the GNU General Public License
30
+#  along with this program; if not, write to the Free Software
31
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
32
+#  MA 02110-1301, USA.
33
+#
34
+
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
37
+VPATH = @srcdir@
38
+pkgdatadir = $(datadir)/@PACKAGE@
39
+pkglibdir = $(libdir)/@PACKAGE@
40
+pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ../..
42
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
44
+install_sh_DATA = $(install_sh) -c -m 644
45
+install_sh_PROGRAM = $(install_sh) -c
46
+install_sh_SCRIPT = $(install_sh) -c
47
+INSTALL_HEADER = $(INSTALL_DATA)
48
+transform = $(program_transform_name)
49
+NORMAL_INSTALL = :
50
+PRE_INSTALL = :
51
+POST_INSTALL = :
52
+NORMAL_UNINSTALL = :
53
+PRE_UNINSTALL = :
54
+POST_UNINSTALL = :
55
+build_triplet = @build@
56
+host_triplet = @host@
57
+target_triplet = @target@
58
+subdir = libclamav/lzma
59
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
60
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
61
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
62
+	$(top_srcdir)/configure.in
63
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
64
+	$(ACLOCAL_M4)
65
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
66
+CONFIG_HEADER = $(top_builddir)/clamav-config.h
67
+CONFIG_CLEAN_FILES =
68
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
69
+am__vpath_adj = case $$p in \
70
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
71
+    *) f=$$p;; \
72
+  esac;
73
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
74
+am__installdirs = "$(DESTDIR)$(libdir)"
75
+libLTLIBRARIES_INSTALL = $(INSTALL)
76
+LTLIBRARIES = $(lib_LTLIBRARIES)
77
+liblzma_la_LIBADD =
78
+am_liblzma_la_OBJECTS = LzmaStateDecode.lo
79
+liblzma_la_OBJECTS = $(am_liblzma_la_OBJECTS)
80
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
81
+depcomp = $(SHELL) $(top_srcdir)/depcomp
82
+am__depfiles_maybe = depfiles
83
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
84
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
85
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
86
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
87
+	$(AM_CFLAGS) $(CFLAGS)
88
+CCLD = $(CC)
89
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
90
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
91
+SOURCES = $(liblzma_la_SOURCES)
92
+DIST_SOURCES = $(liblzma_la_SOURCES)
93
+ETAGS = etags
94
+CTAGS = ctags
95
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
96
+ACLOCAL = @ACLOCAL@
97
+AMDEP_FALSE = @AMDEP_FALSE@
98
+AMDEP_TRUE = @AMDEP_TRUE@
99
+AMTAR = @AMTAR@
100
+AR = @AR@
101
+AUTOCONF = @AUTOCONF@
102
+AUTOHEADER = @AUTOHEADER@
103
+AUTOMAKE = @AUTOMAKE@
104
+AWK = @AWK@
105
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
106
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
107
+CC = @CC@
108
+CCDEPMODE = @CCDEPMODE@
109
+CFGDIR = @CFGDIR@
110
+CFLAGS = @CFLAGS@
111
+CLAMAVGROUP = @CLAMAVGROUP@
112
+CLAMAVUSER = @CLAMAVUSER@
113
+CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
114
+CLAMD_LIBS = @CLAMD_LIBS@
115
+CPP = @CPP@
116
+CPPFLAGS = @CPPFLAGS@
117
+CXX = @CXX@
118
+CXXCPP = @CXXCPP@
119
+CXXDEPMODE = @CXXDEPMODE@
120
+CXXFLAGS = @CXXFLAGS@
121
+CYGPATH_W = @CYGPATH_W@
122
+DBDIR = @DBDIR@
123
+DEFS = @DEFS@
124
+DEPDIR = @DEPDIR@
125
+ECHO = @ECHO@
126
+ECHO_C = @ECHO_C@
127
+ECHO_N = @ECHO_N@
128
+ECHO_T = @ECHO_T@
129
+EGREP = @EGREP@
130
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
131
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
132
+EXEEXT = @EXEEXT@
133
+F77 = @F77@
134
+FFLAGS = @FFLAGS@
135
+FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
136
+GETENT = @GETENT@
137
+GREP = @GREP@
138
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
139
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
140
+INSTALL_DATA = @INSTALL_DATA@
141
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
142
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
143
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
144
+LDFLAGS = @LDFLAGS@
145
+LIBCLAMAV_LIBS = @LIBCLAMAV_LIBS@
146
+LIBCLAMAV_VERSION = @LIBCLAMAV_VERSION@
147
+LIBOBJS = @LIBOBJS@
148
+LIBS = @LIBS@
149
+LIBTOOL = @LIBTOOL@
150
+LN_S = @LN_S@
151
+LTLIBOBJS = @LTLIBOBJS@
152
+MAINT = @MAINT@
153
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
154
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
155
+MAKEINFO = @MAKEINFO@
156
+OBJEXT = @OBJEXT@
157
+PACKAGE = @PACKAGE@
158
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
159
+PACKAGE_NAME = @PACKAGE_NAME@
160
+PACKAGE_STRING = @PACKAGE_STRING@
161
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
162
+PACKAGE_VERSION = @PACKAGE_VERSION@
163
+PATH_SEPARATOR = @PATH_SEPARATOR@
164
+RANLIB = @RANLIB@
165
+SED = @SED@
166
+SET_MAKE = @SET_MAKE@
167
+SHELL = @SHELL@
168
+STRIP = @STRIP@
169
+THREAD_LIBS = @THREAD_LIBS@
170
+TH_SAFE = @TH_SAFE@
171
+VERSION = @VERSION@
172
+ac_ct_CC = @ac_ct_CC@
173
+ac_ct_CXX = @ac_ct_CXX@
174
+ac_ct_F77 = @ac_ct_F77@
175
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
176
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
177
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
178
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
179
+am__include = @am__include@
180
+am__leading_dot = @am__leading_dot@
181
+am__quote = @am__quote@
182
+am__tar = @am__tar@
183
+am__untar = @am__untar@
184
+bindir = @bindir@
185
+build = @build@
186
+build_alias = @build_alias@
187
+build_cpu = @build_cpu@
188
+build_os = @build_os@
189
+build_vendor = @build_vendor@
190
+datadir = @datadir@
191
+datarootdir = @datarootdir@
192
+docdir = @docdir@
193
+dvidir = @dvidir@
194
+exec_prefix = @exec_prefix@
195
+host = @host@
196
+host_alias = @host_alias@
197
+host_cpu = @host_cpu@
198
+host_os = @host_os@
199
+host_vendor = @host_vendor@
200
+htmldir = @htmldir@
201
+includedir = @includedir@
202
+infodir = @infodir@
203
+install_sh = @install_sh@
204
+libdir = @libdir@
205
+libexecdir = @libexecdir@
206
+localedir = @localedir@
207
+localstatedir = @localstatedir@
208
+mandir = @mandir@
209
+mkdir_p = @mkdir_p@
210
+oldincludedir = @oldincludedir@
211
+pdfdir = @pdfdir@
212
+prefix = @prefix@
213
+program_transform_name = @program_transform_name@
214
+psdir = @psdir@
215
+sbindir = @sbindir@
216
+sendmailprog = @sendmailprog@
217
+sharedstatedir = @sharedstatedir@
218
+sysconfdir = @sysconfdir@
219
+target = @target@
220
+target_alias = @target_alias@
221
+target_cpu = @target_cpu@
222
+target_os = @target_os@
223
+target_vendor = @target_vendor@
224
+AM_CFLAGS = -fPIC -DPIC
225
+lib_LTLIBRARIES = liblzma.la
226
+liblzma_la_SOURCES = LzmaStateDecode.c
227
+liblzma_la_LDFLAGS = -static
228
+all: all-am
229
+
230
+.SUFFIXES:
231
+.SUFFIXES: .c .lo .o .obj
232
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
233
+	@for dep in $?; do \
234
+	  case '$(am__configure_deps)' in \
235
+	    *$$dep*) \
236
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
237
+		&& exit 0; \
238
+	      exit 1;; \
239
+	  esac; \
240
+	done; \
241
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  libclamav/lzma/Makefile'; \
242
+	cd $(top_srcdir) && \
243
+	  $(AUTOMAKE) --gnu  libclamav/lzma/Makefile
244
+.PRECIOUS: Makefile
245
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
246
+	@case '$?' in \
247
+	  *config.status*) \
248
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
249
+	  *) \
250
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
251
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
252
+	esac;
253
+
254
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
255
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256
+
257
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
258
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
260
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
262
+	@$(NORMAL_INSTALL)
263
+	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
264
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
265
+	  if test -f $$p; then \
266
+	    f=$(am__strip_dir) \
267
+	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
268
+	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
269
+	  else :; fi; \
270
+	done
271
+
272
+uninstall-libLTLIBRARIES:
273
+	@$(NORMAL_UNINSTALL)
274
+	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
275
+	  p=$(am__strip_dir) \
276
+	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
277
+	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
278
+	done
279
+
280
+clean-libLTLIBRARIES:
281
+	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
282
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
283
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
284
+	  test "$$dir" != "$$p" || dir=.; \
285
+	  echo "rm -f \"$${dir}/so_locations\""; \
286
+	  rm -f "$${dir}/so_locations"; \
287
+	done
288
+liblzma.la: $(liblzma_la_OBJECTS) $(liblzma_la_DEPENDENCIES) 
289
+	$(LINK) -rpath $(libdir) $(liblzma_la_LDFLAGS) $(liblzma_la_OBJECTS) $(liblzma_la_LIBADD) $(LIBS)
290
+
291
+mostlyclean-compile:
292
+	-rm -f *.$(OBJEXT)
293
+
294
+distclean-compile:
295
+	-rm -f *.tab.c
296
+
297
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/LzmaStateDecode.Plo@am__quote@
298
+
299
+.c.o:
300
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
301
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
302
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
303
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
304
+@am__fastdepCC_FALSE@	$(COMPILE) -c $<
305
+
306
+.c.obj:
307
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
308
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
309
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311
+@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
312
+
313
+.c.lo:
314
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
315
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
316
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
317
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
319
+
320
+mostlyclean-libtool:
321
+	-rm -f *.lo
322
+
323
+clean-libtool:
324
+	-rm -rf .libs _libs
325
+
326
+distclean-libtool:
327
+	-rm -f libtool
328
+uninstall-info-am:
329
+
330
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332
+	unique=`for i in $$list; do \
333
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334
+	  done | \
335
+	  $(AWK) '    { files[$$0] = 1; } \
336
+	       END { for (i in files) print i; }'`; \
337
+	mkid -fID $$unique
338
+tags: TAGS
339
+
340
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
341
+		$(TAGS_FILES) $(LISP)
342
+	tags=; \
343
+	here=`pwd`; \
344
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
345
+	unique=`for i in $$list; do \
346
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347
+	  done | \
348
+	  $(AWK) '    { files[$$0] = 1; } \
349
+	       END { for (i in files) print i; }'`; \
350
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351
+	  test -n "$$unique" || unique=$$empty_fix; \
352
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353
+	    $$tags $$unique; \
354
+	fi
355
+ctags: CTAGS
356
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
357
+		$(TAGS_FILES) $(LISP)
358
+	tags=; \
359
+	here=`pwd`; \
360
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
361
+	unique=`for i in $$list; do \
362
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363
+	  done | \
364
+	  $(AWK) '    { files[$$0] = 1; } \
365
+	       END { for (i in files) print i; }'`; \
366
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
367
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368
+	     $$tags $$unique
369
+
370
+GTAGS:
371
+	here=`$(am__cd) $(top_builddir) && pwd` \
372
+	  && cd $(top_srcdir) \
373
+	  && gtags -i $(GTAGS_ARGS) $$here
374
+
375
+distclean-tags:
376
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
+
378
+distdir: $(DISTFILES)
379
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
380
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
381
+	list='$(DISTFILES)'; for file in $$list; do \
382
+	  case $$file in \
383
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
384
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
385
+	  esac; \
386
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
387
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
388
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
389
+	    dir="/$$dir"; \
390
+	    $(mkdir_p) "$(distdir)$$dir"; \
391
+	  else \
392
+	    dir=''; \
393
+	  fi; \
394
+	  if test -d $$d/$$file; then \
395
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397
+	    fi; \
398
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399
+	  else \
400
+	    test -f $(distdir)/$$file \
401
+	    || cp -p $$d/$$file $(distdir)/$$file \
402
+	    || exit 1; \
403
+	  fi; \
404
+	done
405
+check-am: all-am
406
+check: check-am
407
+all-am: Makefile $(LTLIBRARIES)
408
+installdirs:
409
+	for dir in "$(DESTDIR)$(libdir)"; do \
410
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
411
+	done
412
+install: install-am
413
+install-exec: install-exec-am
414
+install-data: install-data-am
415
+uninstall: uninstall-am
416
+
417
+install-am: all-am
418
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
+
420
+installcheck: installcheck-am
421
+install-strip:
422
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424
+	  `test -z '$(STRIP)' || \
425
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426
+mostlyclean-generic:
427
+
428
+clean-generic:
429
+
430
+distclean-generic:
431
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
+
433
+maintainer-clean-generic:
434
+	@echo "This command is intended for maintainers to use"
435
+	@echo "it deletes files that may require special tools to rebuild."
436
+clean: clean-am
437
+
438
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
439
+	mostlyclean-am
440
+
441
+distclean: distclean-am
442
+	-rm -rf ./$(DEPDIR)
443
+	-rm -f Makefile
444
+distclean-am: clean-am distclean-compile distclean-generic \
445
+	distclean-libtool distclean-tags
446
+
447
+dvi: dvi-am
448
+
449
+dvi-am:
450
+
451
+html: html-am
452
+
453
+info: info-am
454
+
455
+info-am:
456
+
457
+install-data-am:
458
+
459
+install-exec-am: install-libLTLIBRARIES
460
+
461
+install-info: install-info-am
462
+
463
+install-man:
464
+
465
+installcheck-am:
466
+
467
+maintainer-clean: maintainer-clean-am
468
+	-rm -rf ./$(DEPDIR)
469
+	-rm -f Makefile
470
+maintainer-clean-am: distclean-am maintainer-clean-generic
471
+
472
+mostlyclean: mostlyclean-am
473
+
474
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
475
+	mostlyclean-libtool
476
+
477
+pdf: pdf-am
478
+
479
+pdf-am:
480
+
481
+ps: ps-am
482
+
483
+ps-am:
484
+
485
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
486
+
487
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
488
+	clean-libLTLIBRARIES clean-libtool ctags distclean \
489
+	distclean-compile distclean-generic distclean-libtool \
490
+	distclean-tags distdir dvi dvi-am html html-am info info-am \
491
+	install install-am install-data install-data-am install-exec \
492
+	install-exec-am install-info install-info-am \
493
+	install-libLTLIBRARIES install-man install-strip installcheck \
494
+	installcheck-am installdirs maintainer-clean \
495
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
496
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
497
+	tags uninstall uninstall-am uninstall-info-am \
498
+	uninstall-libLTLIBRARIES
499
+
500
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
501
+# Otherwise a system limit (for SysV at least) may be exceeded.
502
+.NOEXPORT:
0 503
new file mode 100644
... ...
@@ -0,0 +1,630 @@
0
+LZMA SDK 4.40
1
+-------------
2
+
3
+LZMA SDK   Copyright (C) 1999-2006 Igor Pavlov
4
+
5
+LZMA SDK provides the documentation, samples, header files, libraries, 
6
+and tools you need to develop applications that use LZMA compression.
7
+
8
+LZMA is default and general compression method of 7z format
9
+in 7-Zip compression program (www.7-zip.org). LZMA provides high 
10
+compression ratio and very fast decompression.
11
+
12
+LZMA is an improved version of famous LZ77 compression algorithm. 
13
+It was improved in way of maximum increasing of compression ratio,
14
+keeping high decompression speed and low memory requirements for 
15
+decompressing.
16
+
17
+
18
+
19
+LICENSE
20
+-------
21
+
22
+LZMA SDK is available under any of the following licenses:
23
+
24
+1) GNU Lesser General Public License (GNU LGPL)
25
+2) Common Public License (CPL)
26
+3) Simplified license for unmodified code (read SPECIAL EXCEPTION) 
27
+4) Proprietary license 
28
+
29
+It means that you can select one of these four options and follow rules of that license.
30
+
31
+
32
+1,2) GNU LGPL and CPL licenses are pretty similar and both these
33
+licenses are classified as 
34
+ - "Free software licenses" at http://www.gnu.org/ 
35
+ - "OSI-approved" at http://www.opensource.org/
36
+
37
+
38
+3) SPECIAL EXCEPTION
39
+
40
+Igor Pavlov, as the author of this code, expressly permits you 
41
+to statically or dynamically link your code (or bind by name) 
42
+to the files from LZMA SDK without subjecting your linked 
43
+code to the terms of the CPL or GNU LGPL. 
44
+Any modifications or additions to files from LZMA SDK, however, 
45
+are subject to the GNU LGPL or CPL terms.
46
+
47
+SPECIAL EXCEPTION allows you to use LZMA SDK in applications with closed code, 
48
+while you keep LZMA SDK code unmodified.
49
+
50
+
51
+SPECIAL EXCEPTION #2: Igor Pavlov, as the author of this code, expressly permits 
52
+you to use this code under the same terms and conditions contained in the License 
53
+Agreement you have for any previous version of LZMA SDK developed by Igor Pavlov.
54
+
55
+SPECIAL EXCEPTION #2 allows owners of proprietary licenses to use latest version 
56
+of LZMA SDK as update for previous versions.
57
+
58
+
59
+SPECIAL EXCEPTION #3: Igor Pavlov, as the author of this code, expressly permits 
60
+you to use code of the following files: 
61
+BranchTypes.h, LzmaTypes.h, LzmaTest.c, LzmaStateTest.c, LzmaAlone.cpp, 
62
+LzmaAlone.cs, LzmaAlone.java
63
+as public domain code. 
64
+
65
+
66
+4) Proprietary license
67
+
68
+LZMA SDK also can be available under a proprietary license which 
69
+can include:
70
+
71
+1) Right to modify code without subjecting modified code to the 
72
+terms of the CPL or GNU LGPL
73
+2) Technical support for code
74
+
75
+To request such proprietary license or any additional consultations,
76
+send email message from that page:
77
+http://www.7-zip.org/support.html
78
+
79
+
80
+You should have received a copy of the GNU Lesser General Public
81
+License along with this library; if not, write to the Free Software
82
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
83
+
84
+You should have received a copy of the Common Public License
85
+along with this library.
86
+
87
+
88
+LZMA SDK Contents
89
+-----------------
90
+
91
+LZMA SDK includes:
92
+
93
+  - C++ source code of LZMA compressing and decompressing
94
+  - ANSI-C compatible source code for LZMA decompressing
95
+  - C# source code for LZMA compressing and decompressing
96
+  - Java source code for LZMA compressing and decompressing
97
+  - Compiled file->file LZMA compressing/decompressing program for Windows system
98
+
99
+ANSI-C LZMA decompression code was ported from original C++ sources to C.
100
+Also it was simplified and optimized for code size. 
101
+But it is fully compatible with LZMA from 7-Zip.
102
+
103
+
104
+UNIX/Linux version 
105
+------------------
106
+To compile C++ version of file->file LZMA, go to directory
107
+C/7zip/Compress/LZMA_Alone 
108
+and type "make" or "make clean all" to recompile all.
109
+
110
+In some UNIX/Linux versions you must compile LZMA with static libraries.
111
+To compile with static libraries, change string in makefile
112
+LIB = -lm
113
+to string  
114
+LIB = -lm -static
115
+
116
+
117
+Files
118
+---------------------
119
+C        - C / CPP source code
120
+CS       - C# source code
121
+Java     - Java source code
122
+lzma.txt - LZMA SDK description (this file)
123
+7zFormat.txt - 7z Format description
124
+7zC.txt  - 7z ANSI-C Decoder description (this file)
125
+methods.txt  - Compression method IDs for .7z
126
+LGPL.txt - GNU Lesser General Public License
127
+CPL.html - Common Public License
128
+lzma.exe - Compiled file->file LZMA encoder/decoder for Windows
129
+history.txt - history of the LZMA SDK
130
+
131
+
132
+Source code structure
133
+---------------------
134
+
135
+C  - C / CPP files
136
+  Common  - common files for C++ projects
137
+  Windows - common files for Windows related code
138
+  7zip    - files related to 7-Zip Project
139
+    Common   - common files for 7-Zip
140
+    Compress - files related to compression/decompression
141
+      LZ     - files related to LZ (Lempel-Ziv) compression algorithm
142
+        BinTree    - Binary Tree Match Finder for LZ algorithm
143
+        HashChain  - Hash Chain Match Finder for LZ algorithm
144
+        Patricia   - Patricia Match Finder for LZ algorithm
145
+      RangeCoder   - Range Coder (special code of compression/decompression)
146
+      LZMA         - LZMA compression/decompression on C++
147
+      LZMA_Alone   - file->file LZMA compression/decompression
148
+      LZMA_C       - ANSI-C compatible LZMA decompressor
149
+        LzmaDecode.h  - interface for LZMA decoding on ANSI-C
150
+        LzmaDecode.c      - LZMA decoding on ANSI-C (new fastest version)
151
+        LzmaDecodeSize.c  - LZMA decoding on ANSI-C (old size-optimized version)
152
+        LzmaTest.c        - test application that decodes LZMA encoded file
153
+        LzmaTypes.h       - basic types for LZMA Decoder
154
+        LzmaStateDecode.h - interface for LZMA decoding (State version)
155
+        LzmaStateDecode.c - LZMA decoding on ANSI-C (State version)
156
+        LzmaStateTest.c   - test application (State version)
157
+      Branch       - Filters for x86, IA-64, ARM, ARM-Thumb, PowerPC and SPARC code
158
+    Archive - files related to archiving
159
+      7z_C     - 7z ANSI-C Decoder
160
+
161
+CS - C# files
162
+  7zip
163
+    Common   - some common files for 7-Zip
164
+    Compress - files related to compression/decompression
165
+      LZ     - files related to LZ (Lempel-Ziv) compression algorithm
166
+      LZMA         - LZMA compression/decompression
167
+      LzmaAlone    - file->file LZMA compression/decompression
168
+      RangeCoder   - Range Coder (special code of compression/decompression)
169
+
170
+Java  - Java files
171
+  SevenZip
172
+    Compression    - files related to compression/decompression
173
+      LZ           - files related to LZ (Lempel-Ziv) compression algorithm
174
+      LZMA         - LZMA compression/decompression
175
+      RangeCoder   - Range Coder (special code of compression/decompression)
176
+
177
+C/C++ source code of LZMA SDK is part of 7-Zip project.
178
+
179
+You can find ANSI-C LZMA decompressing code at folder 
180
+  C/7zip/Compress/LZMA_C
181
+7-Zip doesn't use that ANSI-C LZMA code and that code was developed 
182
+specially for this SDK. And files from LZMA_C do not need files from 
183
+other directories of SDK for compiling.
184
+
185
+7-Zip source code can be downloaded from 7-Zip's SourceForge page:
186
+
187
+  http://sourceforge.net/projects/sevenzip/
188
+
189
+
190
+LZMA features
191
+-------------
192
+  - Variable dictionary size (up to 1 GB)
193
+  - Estimated compressing speed: about 1 MB/s on 1 GHz CPU
194
+  - Estimated decompressing speed: 
195
+      - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon
196
+      - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
197
+  - Small memory requirements for decompressing (8-32 KB + DictionarySize)
198
+  - Small code size for decompressing: 2-8 KB (depending from 
199
+    speed optimizations) 
200
+
201
+LZMA decoder uses only integer operations and can be 
202
+implemented in any modern 32-bit CPU (or on 16-bit CPU with some conditions).
203
+
204
+Some critical operations that affect to speed of LZMA decompression:
205
+  1) 32*16 bit integer multiply
206
+  2) Misspredicted branches (penalty mostly depends from pipeline length)
207
+  3) 32-bit shift and arithmetic operations
208
+
209
+Speed of LZMA decompressing mostly depends from CPU speed.
210
+Memory speed has no big meaning. But if your CPU has small data cache, 
211
+overall weight of memory speed will slightly increase.
212
+
213
+
214
+How To Use
215
+----------
216
+
217
+Using LZMA encoder/decoder executable
218
+--------------------------------------
219
+
220
+Usage:  LZMA <e|d> inputFile outputFile [<switches>...]
221
+
222
+  e: encode file
223
+
224
+  d: decode file
225
+
226
+  b: Benchmark. There are two tests: compressing and decompressing 
227
+     with LZMA method. Benchmark shows rating in MIPS (million 
228
+     instructions per second). Rating value is calculated from 
229
+     measured speed and it is normalized with AMD Athlon 64 X2 CPU
230
+     results. Also Benchmark checks possible hardware errors (RAM 
231
+     errors in most cases). Benchmark uses these settings:
232
+     (-a1, -d21, -fb32, -mfbt4). You can change only -d. Also you 
233
+     can change number of iterations. Example for 30 iterations:
234
+	LZMA b 30
235
+     Default number of iterations is 10.
236
+
237
+<Switches>
238
+  
239
+
240
+  -a{N}:  set compression mode 0 = fast, 1 = normal
241
+          default: 1 (normal)
242
+
243
+  d{N}:   Sets Dictionary size - [0, 30], default: 23 (8MB)
244
+          The maximum value for dictionary size is 1 GB = 2^30 bytes.
245
+          Dictionary size is calculated as DictionarySize = 2^N bytes. 
246
+          For decompressing file compressed by LZMA method with dictionary 
247
+          size D = 2^N you need about D bytes of memory (RAM).
248
+
249
+  -fb{N}: set number of fast bytes - [5, 273], default: 128
250
+          Usually big number gives a little bit better compression ratio 
251
+          and slower compression process.
252
+
253
+  -lc{N}: set number of literal context bits - [0, 8], default: 3
254
+          Sometimes lc=4 gives gain for big files.
255
+
256
+  -lp{N}: set number of literal pos bits - [0, 4], default: 0
257
+          lp switch is intended for periodical data when period is 
258
+          equal 2^N. For example, for 32-bit (4 bytes) 
259
+          periodical data you can use lp=2. Often it's better to set lc0, 
260
+          if you change lp switch.
261
+
262
+  -pb{N}: set number of pos bits - [0, 4], default: 2
263
+          pb switch is intended for periodical data 
264
+          when period is equal 2^N.
265
+
266
+  -mf{MF_ID}: set Match Finder. Default: bt4. 
267
+              Algorithms from hc* group doesn't provide good compression 
268
+              ratio, but they often works pretty fast in combination with 
269
+              fast mode (-a0).
270
+
271
+              Memory requirements depend from dictionary size 
272
+              (parameter "d" in table below). 
273
+
274
+               MF_ID     Memory                   Description
275
+
276
+                bt2    d *  9.5 + 4MB  Binary Tree with 2 bytes hashing.
277
+                bt3    d * 11.5 + 4MB  Binary Tree with 3 bytes hashing.
278
+                bt4    d * 11.5 + 4MB  Binary Tree with 4 bytes hashing.
279
+                hc4    d *  7.5 + 4MB  Hash Chain with 4 bytes hashing.
280
+
281
+  -eos:   write End Of Stream marker. By default LZMA doesn't write 
282
+          eos marker, since LZMA decoder knows uncompressed size 
283
+          stored in .lzma file header.
284
+
285
+  -si:    Read data from stdin (it will write End Of Stream marker).
286
+  -so:    Write data to stdout
287
+
288
+
289
+Examples:
290
+
291
+1) LZMA e file.bin file.lzma -d16 -lc0 
292
+
293
+compresses file.bin to file.lzma with 64 KB dictionary (2^16=64K)  
294
+and 0 literal context bits. -lc0 allows to reduce memory requirements 
295
+for decompression.
296
+
297
+
298
+2) LZMA e file.bin file.lzma -lc0 -lp2
299
+
300
+compresses file.bin to file.lzma with settings suitable 
301
+for 32-bit periodical data (for example, ARM or MIPS code).
302
+
303
+3) LZMA d file.lzma file.bin
304
+
305
+decompresses file.lzma to file.bin.
306
+
307
+
308
+Compression ratio hints
309
+-----------------------
310
+
311
+Recommendations
312
+---------------
313
+
314
+To increase compression ratio for LZMA compressing it's desirable 
315
+to have aligned data (if it's possible) and also it's desirable to locate
316
+data in such order, where code is grouped in one place and data is 
317
+grouped in other place (it's better than such mixing: code, data, code,
318
+data, ...).
319
+
320
+
321
+Using Filters
322
+-------------
323
+You can increase compression ratio for some data types, using
324
+special filters before compressing. For example, it's possible to 
325
+increase compression ratio on 5-10% for code for those CPU ISAs: 
326
+x86, IA-64, ARM, ARM-Thumb, PowerPC, SPARC.
327
+
328
+You can find C/C++ source code of such filters in folder "7zip/Compress/Branch"
329
+
330
+You can check compression ratio gain of these filters with such 
331
+7-Zip commands (example for ARM code):
332
+No filter:
333
+  7z a a1.7z a.bin -m0=lzma
334
+
335
+With filter for little-endian ARM code:
336
+  7z a a2.7z a.bin -m0=bc_arm -m1=lzma        
337
+
338
+With filter for big-endian ARM code (using additional Swap4 filter):
339
+  7z a a3.7z a.bin -m0=swap4 -m1=bc_arm -m2=lzma
340
+
341
+It works in such manner:
342
+Compressing    = Filter_encoding + LZMA_encoding
343
+Decompressing  = LZMA_decoding + Filter_decoding
344
+
345
+Compressing and decompressing speed of such filters is very high,
346
+so it will not increase decompressing time too much.
347
+Moreover, it reduces decompression time for LZMA_decoding, 
348
+since compression ratio with filtering is higher.
349
+
350
+These filters convert CALL (calling procedure) instructions 
351
+from relative offsets to absolute addresses, so such data becomes more 
352
+compressible. Source code of these CALL filters is pretty simple
353
+(about 20 lines of C++), so you can convert it from C++ version yourself.
354
+
355
+For some ISAs (for example, for MIPS) it's impossible to get gain from such filter.
356
+
357
+
358
+LZMA compressed file format
359
+---------------------------
360
+Offset Size Description
361
+  0     1   Special LZMA properties for compressed data
362
+  1     4   Dictionary size (little endian)
363
+  5     8   Uncompressed size (little endian). -1 means unknown size
364
+ 13         Compressed data
365
+
366
+
367
+ANSI-C LZMA Decoder
368
+~~~~~~~~~~~~~~~~~~~
369
+
370
+To compile ANSI-C LZMA Decoder you can use one of the following files sets:
371
+1) LzmaDecode.h + LzmaDecode.c + LzmaTest.c  (fastest version)
372
+2) LzmaDecode.h + LzmaDecodeSize.c + LzmaTest.c  (old size-optimized version)
373
+3) LzmaStateDecode.h + LzmaStateDecode.c + LzmaStateTest.c  (zlib-like interface)
374
+
375
+
376
+Memory requirements for LZMA decoding
377
+-------------------------------------
378
+
379
+LZMA decoder doesn't allocate memory itself, so you must 
380
+allocate memory and send it to LZMA.
381
+
382
+Stack usage of LZMA decoding function for local variables is not 
383
+larger than 200 bytes.
384
+
385
+How To decompress data
386
+----------------------
387
+
388
+LZMA Decoder (ANSI-C version) now supports 5 interfaces:
389
+1) Single-call Decompressing
390
+2) Single-call Decompressing with input stream callback
391
+3) Multi-call Decompressing with output buffer
392
+4) Multi-call Decompressing with input callback and output buffer
393
+5) Multi-call State Decompressing (zlib-like interface)
394
+
395
+Variant-5 is similar to Variant-4, but Variant-5 doesn't use callback functions.
396
+
397
+Decompressing steps
398
+-------------------
399
+
400
+1) read LZMA properties (5 bytes):
401
+   unsigned char properties[LZMA_PROPERTIES_SIZE];
402
+
403
+2) read uncompressed size (8 bytes, little-endian)
404
+
405
+3) Decode properties:
406
+
407
+  CLzmaDecoderState state;  /* it's 24-140 bytes structure, if int is 32-bit */
408
+
409
+  if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK)
410
+    return PrintError(rs, "Incorrect stream properties");
411
+
412
+4) Allocate memory block for internal Structures:
413
+
414
+  state.Probs = (CProb *)malloc(LzmaGetNumProbs(&state.Properties) * sizeof(CProb));
415
+  if (state.Probs == 0)
416
+    return PrintError(rs, kCantAllocateMessage);
417
+
418
+  LZMA decoder uses array of CProb variables as internal structure.
419
+  By default, CProb is unsigned_short. But you can define _LZMA_PROB32 to make 
420
+  it unsigned_int. It can increase speed on some 32-bit CPUs, but memory 
421
+  usage will be doubled in that case.
422
+
423
+
424
+5) Main Decompressing
425
+
426
+You must use one of the following interfaces:
427
+
428
+5.1 Single-call Decompressing
429
+-----------------------------
430
+When to use: RAM->RAM decompressing
431
+Compile files: LzmaDecode.h, LzmaDecode.c
432
+Compile defines: no defines
433
+Memory Requirements:
434
+  - Input buffer: compressed size
435
+  - Output buffer: uncompressed size
436
+  - LZMA Internal Structures (~16 KB for default settings) 
437
+
438
+Interface:
439
+  int res = LzmaDecode(&state, 
440
+      inStream, compressedSize, &inProcessed,
441
+      outStream, outSize, &outProcessed);
442
+
443
+
444
+5.2 Single-call Decompressing with input stream callback
445
+--------------------------------------------------------
446
+When to use: File->RAM or Flash->RAM decompressing.
447
+Compile files: LzmaDecode.h, LzmaDecode.c
448
+Compile defines: _LZMA_IN_CB
449
+Memory Requirements:
450
+  - Buffer for input stream: any size (for example, 16 KB)
451
+  - Output buffer: uncompressed size
452
+  - LZMA Internal Structures (~16 KB for default settings) 
453
+
454
+Interface:
455
+  typedef struct _CBuffer
456
+  {
457
+    ILzmaInCallback InCallback;
458
+    FILE *File;
459
+    unsigned char Buffer[kInBufferSize];
460
+  } CBuffer;
461
+
462
+  int LzmaReadCompressed(void *object, const unsigned char **buffer, SizeT *size)
463
+  {
464
+    CBuffer *bo = (CBuffer *)object;
465
+    *buffer = bo->Buffer;
466
+    *size = MyReadFile(bo->File, bo->Buffer, kInBufferSize);
467
+    return LZMA_RESULT_OK;
468
+  }
469
+
470
+  CBuffer g_InBuffer;
471
+
472
+  g_InBuffer.File = inFile;
473
+  g_InBuffer.InCallback.Read = LzmaReadCompressed;
474
+  int res = LzmaDecode(&state, 
475
+      &g_InBuffer.InCallback,
476
+      outStream, outSize, &outProcessed);
477
+
478
+
479
+5.3 Multi-call decompressing with output buffer
480
+-----------------------------------------------
481
+When to use: RAM->File decompressing 
482
+Compile files: LzmaDecode.h, LzmaDecode.c
483
+Compile defines: _LZMA_OUT_READ
484
+Memory Requirements:
485
+ - Input buffer: compressed size
486
+ - Buffer for output stream: any size (for example, 16 KB)
487
+ - LZMA Internal Structures (~16 KB for default settings) 
488
+ - LZMA dictionary (dictionary size is encoded in stream properties)
489
+ 
490
+Interface:
491
+
492
+  state.Dictionary = (unsigned char *)malloc(state.Properties.DictionarySize);
493
+
494
+  LzmaDecoderInit(&state);
495
+  do
496
+  {
497
+    LzmaDecode(&state,
498
+      inBuffer, inAvail, &inProcessed,
499
+      g_OutBuffer, outAvail, &outProcessed);
500
+    inAvail -= inProcessed;
501
+    inBuffer += inProcessed;
502
+  }
503
+  while you need more bytes
504
+
505
+  see LzmaTest.c for more details.
506
+
507
+
508
+5.4 Multi-call decompressing with input callback and output buffer
509
+------------------------------------------------------------------
510
+When to use: File->File decompressing 
511
+Compile files: LzmaDecode.h, LzmaDecode.c
512
+Compile defines: _LZMA_IN_CB, _LZMA_OUT_READ
513
+Memory Requirements:
514
+ - Buffer for input stream: any size (for example, 16 KB)
515
+ - Buffer for output stream: any size (for example, 16 KB)
516
+ - LZMA Internal Structures (~16 KB for default settings) 
517
+ - LZMA dictionary (dictionary size is encoded in stream properties)
518
+ 
519
+Interface:
520
+
521
+  state.Dictionary = (unsigned char *)malloc(state.Properties.DictionarySize);
522
+ 
523
+  LzmaDecoderInit(&state);
524
+  do
525
+  {
526
+    LzmaDecode(&state,
527
+      &bo.InCallback,
528
+      g_OutBuffer, outAvail, &outProcessed);
529
+  }
530
+  while you need more bytes
531
+
532
+  see LzmaTest.c for more details:
533
+
534
+
535
+5.5 Multi-call State Decompressing (zlib-like interface)
536
+------------------------------------------------------------------
537
+When to use: file->file decompressing 
538
+Compile files: LzmaStateDecode.h, LzmaStateDecode.c
539
+Compile defines:
540
+Memory Requirements:
541
+ - Buffer for input stream: any size (for example, 16 KB)
542
+ - Buffer for output stream: any size (for example, 16 KB)
543
+ - LZMA Internal Structures (~16 KB for default settings) 
544
+ - LZMA dictionary (dictionary size is encoded in stream properties)
545
+ 
546
+Interface:
547
+
548
+  state.Dictionary = (unsigned char *)malloc(state.Properties.DictionarySize);
549
+
550
+  
551
+  LzmaDecoderInit(&state);
552
+  do
553
+  {
554
+    res = LzmaDecode(&state,
555
+      inBuffer, inAvail, &inProcessed,
556
+      g_OutBuffer, outAvail, &outProcessed,
557
+      finishDecoding);
558
+    inAvail -= inProcessed;
559
+    inBuffer += inProcessed;
560
+  }
561
+  while you need more bytes
562
+
563
+  see LzmaStateTest.c for more details:
564
+
565
+
566
+6) Free all allocated blocks
567
+
568
+
569
+Note
570
+----
571
+LzmaDecodeSize.c is size-optimized version of LzmaDecode.c.
572
+But compiled code of LzmaDecodeSize.c can be larger than 
573
+compiled code of LzmaDecode.c. So it's better to use 
574
+LzmaDecode.c in most cases.
575
+
576
+
577
+EXIT codes
578
+-----------
579
+
580
+LZMA decoder can return one of the following codes:
581
+
582
+#define LZMA_RESULT_OK 0
583
+#define LZMA_RESULT_DATA_ERROR 1
584
+
585
+If you use callback function for input data and you return some 
586
+error code, LZMA Decoder also returns that code.
587
+
588
+
589
+
590
+LZMA Defines
591
+------------
592
+
593
+_LZMA_IN_CB    - Use callback for input data
594
+
595
+_LZMA_OUT_READ - Use read function for output data
596
+
597
+_LZMA_LOC_OPT  - Enable local speed optimizations inside code.
598
+                 _LZMA_LOC_OPT is only for LzmaDecodeSize.c (size-optimized version).
599
+                 _LZMA_LOC_OPT doesn't affect LzmaDecode.c (speed-optimized version)
600
+                 and LzmaStateDecode.c
601
+
602
+_LZMA_PROB32   - It can increase speed on some 32-bit CPUs, 
603
+                 but memory usage will be doubled in that case
604
+
605
+_LZMA_UINT32_IS_ULONG  - Define it if int is 16-bit on your compiler
606
+                         and long is 32-bit.
607
+
608
+_LZMA_SYSTEM_SIZE_T  - Define it if you want to use system's size_t.
609
+                       You can use it to enable 64-bit sizes supporting
610
+
611
+
612
+
613
+C++ LZMA Encoder/Decoder 
614
+~~~~~~~~~~~~~~~~~~~~~~~~
615
+C++ LZMA code use COM-like interfaces. So if you want to use it, 
616
+you can study basics of COM/OLE.
617
+
618
+By default, LZMA Encoder contains all Match Finders.
619
+But for compressing it's enough to have just one of them.
620
+So for reducing size of compressing code you can define:
621
+  #define COMPRESS_MF_BT
622
+  #define COMPRESS_MF_BT4
623
+and it will use only bt4 match finder.
624
+
625
+
626
+---
627
+
628
+http://www.7-zip.org
629
+http://www.7-zip.org/support.html
0 630
new file mode 100644
... ...
@@ -0,0 +1,80 @@
0
+/*
1
+ *  Copyright (C) 2007 Sourcefire Inc.
2
+ *  Author: aCaB <acab@clamav.net>
3
+ *
4
+ *  This program is free software; you can redistribute it and/or modify
5
+ *  it under the terms of the GNU General Public License version 2 as
6
+ *  published by the Free Software Foundation.
7
+ *
8
+ *  This program is distributed in the hope that it will be useful,
9
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
+ *  GNU General Public License for more details.
12
+ *
13
+ *  You should have received a copy of the GNU General Public License
14
+ *  along with this program; if not, write to the Free Software
15
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
+ *  MA 02110-1301, USA.
17
+ */
18
+
19
+/* a cleaner state interface to LZMA */
20
+
21
+
22
+#include "lzma_iface.h"
23
+#include "cltypes.h"
24
+#include "others.h"
25
+
26
+int cli_LzmaInit(CLI_LZMA *L, uint64_t size_override) {
27
+  L->initted = 0;
28
+  if(size_override) L->usize=size_override;
29
+
30
+  if (!L->next_in || L->avail_in < LZMA_PROPERTIES_SIZE + 8) return LZMA_RESULT_OK;
31
+  if (LzmaDecodeProperties(&L->state.Properties, L->next_in, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK)
32
+    return LZMA_RESULT_DATA_ERROR;
33
+
34
+  L->next_in += LZMA_PROPERTIES_SIZE;
35
+  L->avail_in -= LZMA_PROPERTIES_SIZE;
36
+
37
+  if (!L->usize) {
38
+    L->usize=(uint64_t)cli_readint32(L->next_in) + ((uint64_t)cli_readint32(L->next_in+4)<<32);
39
+    L->next_in += 8;
40
+    L->avail_in -= 8;
41
+  }
42
+    
43
+  if (!(L->state.Probs = (CProb *)cli_malloc(LzmaGetNumProbs(&L->state.Properties) * sizeof(CProb))))
44
+    return LZMA_RESULT_DATA_ERROR;
45
+
46
+  if (!(L->state.Dictionary = (unsigned char *)cli_malloc(L->state.Properties.DictionarySize))) {
47
+    free(L->state.Probs);
48
+    return LZMA_RESULT_DATA_ERROR;
49
+  }
50
+
51
+  L->initted = 1;
52
+
53
+  LzmaDecoderInit(&L->state);
54
+  return LZMA_RESULT_OK;
55
+}
56
+
57
+void cli_LzmaShutdown(CLI_LZMA *L) {
58
+  if(!L->initted) return;
59
+  if(L->state.Probs) free(L->state.Probs);
60
+  if(L->state.Dictionary) free(L->state.Dictionary);
61
+  return;
62
+}
63
+
64
+int cli_LzmaDecode(CLI_LZMA *L) {
65
+  int res;
66
+  SizeT processed_in, processed_out;
67
+
68
+  if (!L->initted && cli_LzmaInit(L, 0) != LZMA_RESULT_OK) 
69
+    return LZMA_RESULT_DATA_ERROR;
70
+
71
+  res = LzmaDecode(&L->state, L->next_in, L->avail_in, &processed_in, L->next_out, L->avail_out, &processed_out, (L->avail_in==0));
72
+
73
+  L->next_in += processed_in;
74
+  L->avail_in -= processed_in;
75
+  L->next_out += processed_out;
76
+  L->avail_out -= processed_out;
77
+
78
+  return res;
79
+}
0 80
new file mode 100644
... ...
@@ -0,0 +1,43 @@
0
+/*
1
+ *  Copyright (C) 2007 Sourcefire Inc.
2
+ *  Author: aCaB <acab@clamav.net>
3
+ *
4
+ *  This program is free software; you can redistribute it and/or modify
5
+ *  it under the terms of the GNU General Public License version 2 as
6
+ *  published by the Free Software Foundation.
7
+ *
8
+ *  This program is distributed in the hope that it will be useful,
9
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
+ *  GNU General Public License for more details.
12
+ *
13
+ *  You should have received a copy of the GNU General Public License
14
+ *  along with this program; if not, write to the Free Software
15
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
+ *  MA 02110-1301, USA.
17
+ */
18
+
19
+/* a cleaner state interface to LZMA */
20
+
21
+#ifndef __LZMA_IFACE_H
22
+#define __LZMA_IFACE_H
23
+
24
+#include "LzmaStateDecode.h"
25
+#include "cltypes.h"
26
+
27
+typedef struct {
28
+  CLzmaDecoderState state;
29
+  const unsigned char *next_in;
30
+  SizeT avail_in;
31
+  unsigned char *next_out;
32
+  SizeT avail_out;
33
+  int initted;
34
+  uint64_t usize;
35
+} CLI_LZMA;
36
+
37
+int cli_LzmaInit(CLI_LZMA *, uint64_t);
38
+void cli_LzmaShutdown(CLI_LZMA *);
39
+int cli_LzmaDecode(CLI_LZMA *);
40
+
41
+#define LZMA_STREAM_END 2
42
+#endif /* __LZMA_IFACE_H */
0 43
deleted file mode 100644
... ...
@@ -1,557 +0,0 @@
1
-/*
2
- * LZMADecode.c
3
- * 
4
- * This file is a part of LZMA compression module for NSIS.
5
- * 
6
- * Original LZMA SDK Copyright (C) 1999-2006 Igor Pavlov
7
- * Modifications Copyright (C) 2003-2007 Amir Szekely <kichik@netvision.net.il>
8
- * 
9
- * Licensed under the Common Public License version 1.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * 
12
- * Licence details can be found in the file COPYING.nsis.
13
- * 
14
- * This software is provided 'as-is', without any express or implied
15
- * warranty.
16
- */
17
-
18
-#include <stdlib.h>
19
-#include "LZMADecode.h"
20
-
21
-#define LEAVE { goto saveStateAndReturn; }
22
-#define NEED_BYTE(c) case c: if (!avail_in) { mode = c; LEAVE; }
23
-#define NEED_BYTE_ if (!avail_in) LEAVE;
24
-#define NEXT_BYTE (avail_in--, *next_in++)
25
-#define NEED_OUT(c) case c: if (!avail_out) { mode = c; LEAVE; }
26
-#define PUT_BYTE_(b) { *next_out = b; next_out++; avail_out--; }
27
-#define PUT_BYTE(b) { totalOut++; PUT_BYTE_(b) }
28
-#define DECODE_BIT(c, x) prob = x; last = c; goto _LZMA_C_RDBD; case c:
29
-#define DECODE_LEN(c, x) probs = x; last2 = c; goto _LZMA_C_LEND; case c:
30
-#define DECODE_BIT_TREE(c, x, y) probs = x; numLevels = y; last3 = c; goto _LZMA_C_BTD; case c:
31
-
32
-enum {
33
-  /*  0 */ LZMA_C_INIT = 0,
34
-  /*  1 */ LZMA_C_GETDICT,
35
-  /*  2 */ LZMA_C_BLOCK,
36
-  /*  3 */ LZMA_C_RDI, /* RangeDecoderInit */
37
-  /*  4 */ LZMA_C_RDBD, /* RangeDecoderBitDecode */
38
-  /*  5 */ LZMA_C_RDBD_IN, /* RangeDecoderBitDecode */
39
-  /*  6 */ LZMA_C_TYPE,
40
-  /*  7 */ LZMA_C_ISREP,
41
-  /*  8 */ LZMA_C_ISREPG0,
42
-  /*  9 */ LZMA_C_ISREP0LONG,
43
-  /* 10 */ LZMA_C_ISREPG1,
44
-  /* 11 */ LZMA_C_ISREPG2,
45
-  /* 12 */ LZMA_C_NORM,
46
-  /* 13 */ LZMA_C_LITDM1, /* LzmaLiteralDecodeMatch */
47
-  /* 14 */ LZMA_C_LITDM2, /* LzmaLiteralDecodeMatch */
48
-  /* 15 */ LZMA_C_LITD, /* LzmaLiteralDecode */
49
-  /* 16 */ LZMA_C_RDRBTD, /* RangeDecoderReverseBitTreeDecode */
50
-  /* 17 */ LZMA_C_LEND, /* LzmaLenDecode */
51
-  /* 18 */ LZMA_C_LEND1, /* LzmaLenDecode */
52
-  /* 19 */ LZMA_C_LEND2, /* LzmaLenDecode */
53
-  /* 20 */ LZMA_C_LEND_RES, /* LzmaLenDecode */
54
-  /* 21 */ LZMA_C_LEND_C1,
55
-  /* 22 */ LZMA_C_LEND_C2,
56
-  /* 23 */ LZMA_C_BTD, /* RangeDecoderBitTreeDecode */
57
-  /* 24 */ LZMA_C_BTD_LOOP,
58
-  /* 25 */ LZMA_C_BTD_C1,
59
-  /* 26 */ LZMA_C_OUTPUT_1,
60
-  /* 27 */ LZMA_C_OUTPUT_2,
61
-  /* 28 */ LZMA_C_OUTPUT_3
62
-};
63
-
64
-#define kNumTopBits 24
65
-#define kTopValue ((UInt32)1 << kNumTopBits)
66
-
67
-#define kNumBitModelTotalBits 11
68
-#define kBitModelTotal (1 << kNumBitModelTotalBits)
69
-#define kNumMoveBits 5
70
-
71
-#define RC_NORMALIZE(c) if (range < kTopValue) { NEED_BYTE(c); range <<= 8; code = (code << 8) | NEXT_BYTE; }
72
-
73
-#define RC_GET_BIT2(c, prob, mi, A0, A1) { \
74
-  UInt32 bound = (range >> kNumBitModelTotalBits) * *prob; \
75
-  if (code < bound) \
76
-    { A0; range = bound; *prob += (kBitModelTotal - *prob) >> kNumMoveBits; mi <<= 1; } \
77
-  else \
78
-    { A1; range -= bound; code -= bound; *prob -= (*prob) >> kNumMoveBits; mi = (mi + mi) + 1; } \
79
-  RC_NORMALIZE(c) \
80
-}
81
-
82
-#define RC_GET_BIT(c, prob, mi) RC_GET_BIT2(c, prob, mi, ; , ;)
83
-
84
-#define kNumPosBitsMax 4
85
-#define kNumPosStatesMax (1 << kNumPosBitsMax)
86
-
87
-#define kLenNumLowBits 3
88
-#define kLenNumLowSymbols (1 << kLenNumLowBits)
89
-#define kLenNumMidBits 3
90
-#define kLenNumMidSymbols (1 << kLenNumMidBits)
91
-#define kLenNumHighBits 8
92
-#define kLenNumHighSymbols (1 << kLenNumHighBits)
93
-
94
-#define LenChoice 0
95
-#define LenChoice2 (LenChoice + 1)
96
-#define LenLow (LenChoice2 + 1)
97
-#define LenMid (LenLow + (kNumPosStatesMax << kLenNumLowBits))
98
-#define LenHigh (LenMid + (kNumPosStatesMax << kLenNumMidBits))
99
-#define kNumLenProbs (LenHigh + kLenNumHighSymbols)
100
-
101
-#define kNumStates 12
102
-
103
-#define kStartPosModelIndex 4
104
-#define kEndPosModelIndex 14
105
-#define kNumFullDistances (1 << (kEndPosModelIndex >> 1))
106
-
107
-#define kNumPosSlotBits 6
108
-#define kNumLenToPosStates 4
109
-
110
-#define kNumAlignBits 4
111
-#define kAlignTableSize (1 << kNumAlignBits)
112
-
113
-#define kMatchMinLen 2
114
-
115
-#define IsMatch 0
116
-#define IsRep (IsMatch + (kNumStates << kNumPosBitsMax))
117
-#define IsRepG0 (IsRep + kNumStates)
118
-#define IsRepG1 (IsRepG0 + kNumStates)
119
-#define IsRepG2 (IsRepG1 + kNumStates)
120
-#define IsRep0Long (IsRepG2 + kNumStates)
121
-#define PosSlot (IsRep0Long + (kNumStates << kNumPosBitsMax))
122
-#define SpecPos (PosSlot + (kNumLenToPosStates << kNumPosSlotBits))
123
-#define Align (SpecPos + kNumFullDistances - kEndPosModelIndex)
124
-#define LenCoder (Align + kAlignTableSize)
125
-#define RepLenCoder (LenCoder + kNumLenProbs)
126
-#define Literal (RepLenCoder + kNumLenProbs)
127
-
128
-#define LZMA_BASE_SIZE 1846
129
-#define LZMA_LIT_SIZE 768
130
-
131
-#if Literal != LZMA_BASE_SIZE
132
-StopCompilingDueBUG
133
-#endif
134
-
135
-void lzmaInit(lzma_stream *s)
136
-{
137
-  /* size of lzma_stream minus the size of the two allocated buffer pointers.
138
-     we don't want to lose to pointer or else we won't be able to free them. */
139
-  size_t i = sizeof(lzma_stream) - (sizeof(unsigned char *) * 2);
140
-  while (i--)
141
-    ((lzByte *)s)[i] = 0;
142
-
143
-  s->rep0 = s->rep1 = s->rep2 = s->rep3 = 1;
144
-  s->range = (0xFFFFFFFF);
145
-}
146
-
147
-int lzmaDecode(lzma_stream *s)
148
-{
149
-  /* restore decoder state */
150
-  lzma_stream _s = *s;
151
-
152
-#define mode _s.mode
153
-#define last _s.last
154
-#define last2 _s.last2
155
-#define last3 _s.last3
156
-
157
-#define p (*(CProb **) &_s.dynamicData)
158
-#define dynamicDataSize _s.dynamicDataSize
159
-
160
-#define state _s.state
161
-#define isPreviousMatch _s.isPreviousMatch
162
-#define previousByte _s.previousByte
163
-#define rep0 _s.rep0
164
-#define rep1 _s.rep1
165
-#define rep2 _s.rep2
166
-#define rep3 _s.rep3
167
-#define lc _s.lc
168
-#define len _s.len
169
-#define totalOut _s.totalOut
170
-
171
-#define dictionary _s.dictionary
172
-#define dictionarySize _s.dictionarySize
173
-#define dictionaryPos _s.dictionaryPos
174
-
175
-#define posStateMask _s.posStateMask
176
-#define literalPosMask _s.literalPosMask
177
-
178
-#define avail_in _s.avail_in
179
-#define next_in _s.next_in
180
-#define avail_out _s.avail_out
181
-#define next_out _s.next_out
182
-
183
-#define range _s.range
184
-#define code _s.code
185
-
186
-#define probs _s.probs
187
-#define prob _s.prob
188
-
189
-#define symbol _s.temp2
190
-#define bit _s.temp3
191
-#define matchBit _s.temp1
192
-#define i _s.temp1
193
-#define result _s.temp2
194
-#define numLevels _s.temp3
195
-#define posSlot _s.temp2
196
-#define newDictionarySize (*(UInt32*) &_s.temp3)
197
-
198
-#define matchByte _s.matchByte
199
-#define mi _s.mi
200
-#define posState _s.posState
201
-
202
-  if (len == -1)
203
-    return LZMA_STREAM_END;
204
-
205
-  for (;;) switch (mode)
206
-  {
207
-  case LZMA_C_INIT:
208
-    {
209
-      lzByte firstByte;
210
-      UInt32 newDynamicDataSize;
211
-      UInt32 numProbs;
212
-      int lp;
213
-      int pb;
214
-
215
-      NEED_BYTE_;
216
-
217
-      firstByte = NEXT_BYTE;
218
-
219
-      if (firstByte > (9*5*5))
220
-        return LZMA_DATA_ERROR;
221
-
222
-      pb = firstByte / (9*5);
223
-      firstByte %= (9*5);
224
-      lp = firstByte / 9;
225
-      firstByte %= 9;
226
-      lc = firstByte;
227
-
228
-      posStateMask = (1 << (pb)) - 1;
229
-      literalPosMask = (1 << (lp)) - 1;
230
-
231
-      numProbs = Literal + (LZMA_LIT_SIZE << (lc + pb));
232
-      newDynamicDataSize = numProbs * sizeof(CProb);
233
-
234
-      if (newDynamicDataSize != dynamicDataSize)
235
-      {
236
-        if (p)
237
-          lzmafree(p);
238
-        p = lzmaalloc(newDynamicDataSize);
239
-        if (!p)
240
-          return LZMA_NOT_ENOUGH_MEM;
241
-        dynamicDataSize = newDynamicDataSize;
242
-      }
243
-
244
-      while (numProbs--)
245
-        p[numProbs] = kBitModelTotal >> 1;
246
-
247
-      for (i = 0, newDictionarySize = 0; i < 4; i++)
248
-      {
249
-        NEED_BYTE(LZMA_C_GETDICT);
250
-        newDictionarySize |= NEXT_BYTE << (i * 8);
251
-      }
252
-
253
-      if (newDictionarySize != dictionarySize)
254
-      {
255
-        dictionarySize = newDictionarySize;
256
-        if (dictionary)
257
-          lzmafree(dictionary);
258
-        dictionary = lzmaalloc(dictionarySize);
259
-        if (!dictionary)
260
-          return LZMA_NOT_ENOUGH_MEM;
261
-      }
262
-
263
-      dictionary[dictionarySize - 1] = 0;
264
-
265
-      i = 5;
266
-      while (i--)
267
-      {
268
-        NEED_BYTE(LZMA_C_RDI);
269
-        code = (code << 8) | NEXT_BYTE;
270
-      }
271
-    }
272
-  case LZMA_C_BLOCK:
273
-    posState = (int)(totalOut & posStateMask);
274
-    DECODE_BIT(LZMA_C_TYPE, p + IsMatch + (state << kNumPosBitsMax) + posState);
275
-    if (bit == 0)
276
-    {
277
-      probs = p + Literal + (LZMA_LIT_SIZE *
278
-        (((totalOut & literalPosMask) << lc) + (previousByte >> (8 - lc))));
279
-
280
-      if (state < 4) state = 0;
281
-      else if (state < 10) state -= 3;
282
-      else state -= 6;
283
-      if (isPreviousMatch)
284
-      {
285
-        UInt32 pos = dictionaryPos - rep0;
286
-        if (pos >= dictionarySize)
287
-          pos += dictionarySize;
288
-        matchByte = dictionary[pos];
289
-        {
290
-          symbol = 1;
291
-          do
292
-          {
293
-            matchBit = (matchByte >> 7) & 1;
294
-            matchByte <<= 1;
295
-            {
296
-              prob = probs + ((1 + matchBit) << 8) + symbol;
297
-              RC_GET_BIT2(LZMA_C_LITDM1, prob, symbol, bit = 0, bit = 1)
298
-            }
299
-            if (matchBit != bit)
300
-            {
301
-              while (symbol < 0x100)
302
-              {
303
-                prob = probs + symbol;
304
-                RC_GET_BIT(LZMA_C_LITDM2, prob, symbol)
305
-              }
306
-              break;
307
-            }
308
-          }
309
-          while (symbol < 0x100);
310
-          previousByte = symbol;
311
-        }
312
-        isPreviousMatch = 0;
313
-      }
314
-      else
315
-      {
316
-        symbol = 1;
317
-        do
318
-        {
319
-          prob = probs + symbol;
320
-          RC_GET_BIT(LZMA_C_LITD, prob, symbol)
321
-        }
322
-        while (symbol < 0x100);
323
-        previousByte = symbol;
324
-      }
325
-      NEED_OUT(LZMA_C_OUTPUT_1);
326
-      PUT_BYTE(previousByte);
327
-      dictionary[dictionaryPos] = previousByte;
328
-      dictionaryPos = (dictionaryPos + 1) % dictionarySize;
329
-    }
330
-    /* bit == 1 */
331
-    else
332
-    {
333
-      isPreviousMatch = 1;
334
-      DECODE_BIT(LZMA_C_ISREP, p + IsRep + state);
335
-      if (bit == 1)
336
-      {
337
-        DECODE_BIT(LZMA_C_ISREPG0, p + IsRepG0 + state);
338
-        if (bit == 0)
339
-        {
340
-          DECODE_BIT(LZMA_C_ISREP0LONG, p + IsRep0Long + (state << kNumPosBitsMax) + posState);
341
-          if (bit == 0)
342
-          {
343
-            UInt32 pos;
344
-            if (totalOut == 0)
345
-              return LZMA_DATA_ERROR;
346
-            state = state < 7 ? 9 : 11;
347
-            NEED_OUT(LZMA_C_OUTPUT_2);
348
-            pos = dictionaryPos - rep0;
349
-            if (pos >= dictionarySize)
350
-              pos += dictionarySize;
351
-            previousByte = dictionary[pos];
352
-            dictionary[dictionaryPos] = previousByte;
353
-            dictionaryPos = (dictionaryPos + 1) % dictionarySize;
354
-            PUT_BYTE(previousByte);
355
-            mode = LZMA_C_BLOCK;
356
-            break;
357
-          }
358
-        }
359
-        else
360
-        {
361
-          UInt32 distance;
362
-          DECODE_BIT(LZMA_C_ISREPG1, p + IsRepG1 + state);
363
-          if (bit == 0)
364
-          {
365
-            distance = rep1;
366
-          }
367
-          else
368
-          {
369
-            DECODE_BIT(LZMA_C_ISREPG2, p + IsRepG2 + state);
370
-            if (bit == 0)
371
-              distance = rep2;
372
-            else
373
-            {
374
-              distance = rep3;
375
-              rep3 = rep2;
376
-            }
377
-            rep2 = rep1;
378
-          }
379
-          rep1 = rep0;
380
-          rep0 = distance;
381
-        }
382
-        DECODE_LEN(LZMA_C_LEND_C1, p + RepLenCoder);
383
-        state = state < 7 ? 8 : 11;
384
-      }
385
-      else
386
-      {
387
-        rep3 = rep2;
388
-        rep2 = rep1;
389
-        rep1 = rep0;
390
-        state = state < 7 ? 7 : 10;
391
-        DECODE_LEN(LZMA_C_LEND_C2, p + LenCoder);
392
-        DECODE_BIT_TREE(
393
-          LZMA_C_BTD_C1,
394
-          p + PosSlot + ((len < kNumLenToPosStates ? len : kNumLenToPosStates - 1) << kNumPosSlotBits),
395
-          kNumPosSlotBits
396
-        );
397
-        if (posSlot >= kStartPosModelIndex)
398
-        {
399
-          int numDirectBits = ((posSlot >> 1) - 1);
400
-          rep0 = ((2 | ((UInt32)posSlot & 1)) << numDirectBits);
401
-          if (posSlot < kEndPosModelIndex)
402
-          {
403
-            probs = p + SpecPos + rep0 - posSlot - 1;
404
-            numLevels = numDirectBits;
405
-          }
406
-          else
407
-          {
408
-            int numTotalBits = numDirectBits - kNumAlignBits;
409
-            result = 0;
410
-            for (i = numTotalBits; i > 0; i--)
411
-            {
412
-              /* UInt32 t; */
413
-              range >>= 1;
414
-
415
-              result <<= 1;
416
-              if (code >= range)
417
-              {
418
-                code -= range;
419
-                result |= 1;
420
-              }
421
-              /*
422
-              t = (code - range) >> 31;
423
-              t &= 1;
424
-              code -= range & (t - 1);
425
-              result = (result + result) | (1 - t);
426
-              */
427
-              RC_NORMALIZE(LZMA_C_NORM)
428
-            }
429
-            rep0 += result << kNumAlignBits;
430
-            probs = p + Align;
431
-            numLevels = kNumAlignBits;
432
-          }
433
-          mi = 1;
434
-          symbol = 0;
435
-          for(i = 0; i < numLevels; i++)
436
-          {
437
-            prob = probs + mi;
438
-            RC_GET_BIT2(LZMA_C_RDRBTD, prob, mi, ; , symbol |= (1 << i));
439
-          }
440
-          rep0 += symbol;
441
-        }
442
-        else
443
-          rep0 = posSlot;
444
-        rep0++;
445
-      }
446
-      if (rep0 == (UInt32)(0))
447
-      {
448
-        len = -1;
449
-        LEAVE;
450
-      }
451
-      if (rep0 > totalOut)
452
-      {
453
-        return LZMA_DATA_ERROR;
454
-      }
455
-      len += kMatchMinLen;
456
-      totalOut += len;
457
-      do
458
-      {
459
-        UInt32 pos;
460
-        NEED_OUT(LZMA_C_OUTPUT_3);
461
-        pos = dictionaryPos - rep0;
462
-        if (pos >= dictionarySize)
463
-          pos += dictionarySize;
464
-        previousByte = dictionary[pos];
465
-        dictionary[dictionaryPos] = previousByte;
466
-        dictionaryPos = (dictionaryPos + 1) % dictionarySize;
467
-        PUT_BYTE_(previousByte);
468
-        len--;
469
-      }
470
-      while(len > 0);
471
-    }
472
-    mode = LZMA_C_BLOCK;
473
-    break;
474
-  case LZMA_C_RDBD:
475
-  _LZMA_C_RDBD:
476
-    {
477
-      UInt32 bound = (range >> kNumBitModelTotalBits) * *prob;
478
-      if (code < bound)
479
-      {
480
-        range = bound;
481
-        *prob += (kBitModelTotal - *prob) >> kNumMoveBits;
482
-        bit = 0;
483
-      }
484
-      else
485
-      {
486
-        range -= bound;
487
-        code -= bound;
488
-        *prob -= (*prob) >> kNumMoveBits;
489
-        bit = 1;
490
-      }
491
-      RC_NORMALIZE(LZMA_C_RDBD_IN);
492
-    }
493
-    mode = last;
494
-    break;
495
-  case LZMA_C_LEND:
496
-  _LZMA_C_LEND:
497
-      DECODE_BIT(LZMA_C_LEND1, probs + LenChoice);
498
-      if (bit == 0)
499
-      {
500
-        len = 0;
501
-        probs += LenLow + (posState << kLenNumLowBits);
502
-        numLevels = kLenNumLowBits;
503
-      }
504
-      else {
505
-        DECODE_BIT(LZMA_C_LEND2, probs + LenChoice2);
506
-        if (bit == 0)
507
-        {
508
-          len = kLenNumLowSymbols;
509
-          probs += + LenMid + (posState << kLenNumMidBits);
510
-          numLevels = kLenNumMidBits;
511
-        }
512
-        else
513
-        {
514
-          len = kLenNumLowSymbols + kLenNumMidSymbols;
515
-          probs += LenHigh;
516
-          numLevels = kLenNumHighBits;
517
-        }
518
-      }
519
-
520
-      last3 = LZMA_C_LEND_RES;
521
-  case LZMA_C_BTD:
522
-  _LZMA_C_BTD:
523
-    mi = 1;
524
-    for(i = numLevels; i > 0; i--)
525
-    {
526
-      prob = probs + mi;
527
-      RC_GET_BIT(LZMA_C_BTD_LOOP, prob, mi)
528
-    }
529
-    result = mi - (1 << numLevels);
530
-    mode = last3;
531
-    break;
532
-  case LZMA_C_LEND_RES:
533
-    len += result;
534
-    mode = last2;
535
-    break;
536
-  default:
537
-    return LZMA_DATA_ERROR;
538
-  }
539
-
540
-saveStateAndReturn:
541
-
542
-  /* save decoder state */
543
-  *s = _s;
544
-
545
-  return LZMA_OK;
546
-}
547
-
548
-
549
-/* aCaB */
550
-void lzmaShutdown(lzma_stream *s) {
551
-  lzma_stream _s = *s;
552
-  if (p) lzmafree(p);
553
-  if (dictionary) lzmafree(dictionary);
554
-  p = NULL;
555
-  dictionary = NULL;
556
-  *s = _s;
557
-}
558 1
deleted file mode 100644
... ...
@@ -1,126 +0,0 @@
1
-/*
2
- * LZMADecode.c
3
- * 
4
- * This file is a part of LZMA compression module for NSIS.
5
- * 
6
- * Original LZMA SDK Copyright (C) 1999-2006 Igor Pavlov
7
- * Modifications Copyright (C) 2003-2007 Amir Szekely <kichik@netvision.net.il>
8
- * 
9
- * Licensed under the Common Public License version 1.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * 
12
- * Licence details can be found in the file COPYING.nsis.
13
- * 
14
- * This software is provided 'as-is', without any express or implied
15
- * warranty.
16
- */
17
-
18
-#ifndef __LZMADECODE_H
19
-#define __LZMADECODE_H
20
-
21
-/* #define _LZMA_PROB32 */
22
-/* It can increase speed on some 32-bit CPUs, 
23
-   but memory usage will be doubled in that case */
24
-
25
-#ifdef __cplusplus
26
-extern "C" {
27
-#endif
28
-
29
-#include "others.h"
30
-
31
-#ifndef lzmaalloc
32
-#define lzmaalloc cli_malloc
33
-#endif
34
-
35
-#ifndef lzmafree
36
-#define lzmafree free
37
-#endif
38
-
39
-#ifndef LZMACALL
40
-#  define LZMACALL
41
-#endif
42
-
43
-#ifndef UInt32
44
-#ifdef _LZMA_UINT32_IS_ULONG
45
-#define UInt32 unsigned long
46
-#else
47
-#define UInt32 unsigned int
48
-#endif
49
-#endif
50
-
51
-#ifdef _LZMA_PROB32
52
-#define CProb UInt32
53
-#else
54
-#define CProb unsigned short
55
-#endif
56
-
57
-typedef unsigned char lzByte;
58
-
59
-#define LZMA_STREAM_END 1
60
-#define LZMA_OK 0
61
-#define LZMA_DATA_ERROR -1
62
-/* we don't really care what the problem is... */
63
-/* #define LZMA_RESULT_NOT_ENOUGH_MEM -2 */
64
-#define LZMA_NOT_ENOUGH_MEM -1
65
-
66
-typedef struct
67
-{
68
-  /* mode control */
69
-  int mode;
70
-  int last;
71
-  int last2;
72
-  int last3;
73
-
74
-  /* properties */
75
-  UInt32 dynamicDataSize;
76
-  UInt32 dictionarySize;
77
-
78
-  /* io */
79
-  lzByte *next_in;    /* next input byte */
80
-  UInt32 avail_in;  /* number of bytes available at next_in */
81
-
82
-  lzByte *next_out;   /* next output byte should be put there */
83
-  UInt32 avail_out; /* remaining free space at next_out */
84
-
85
-  UInt32 totalOut;  /* total output - not always correct when lzmaDecode returns */
86
-
87
-  /* saved state */
88
-  lzByte previousByte;
89
-  lzByte matchByte;
90
-  CProb *probs;
91
-  CProb *prob;
92
-  int mi;
93
-  int posState;
94
-  int temp1;
95
-  int temp2;
96
-  int temp3;
97
-  int lc;
98
-  int state;
99
-  int isPreviousMatch;
100
-  int len;
101
-  UInt32 rep0;
102
-  UInt32 rep1;
103
-  UInt32 rep2;
104
-  UInt32 rep3;
105
-  UInt32 posStateMask;
106
-  UInt32 literalPosMask;
107
-  UInt32 dictionaryPos;
108
-
109
-  /* range coder */
110
-  UInt32 range;
111
-  UInt32 code;
112
-
113
-  /* allocated buffers */
114
-  lzByte *dictionary;
115
-  lzByte *dynamicData;
116
-} lzma_stream;
117
-
118
-void LZMACALL lzmaInit(lzma_stream *);
119
-int LZMACALL lzmaDecode(lzma_stream *);
120
-void LZMACALL lzmaShutdown(lzma_stream *); /* aCaB */
121
-
122
-#ifdef __cplusplus
123
-}
124
-#endif
125
-
126
-#endif
... ...
@@ -13,7 +13,7 @@
13 13
    This file was modified for ClamAV by aCaB <acab@clamav.net>
14 14
 
15 15
    This program is released under the terms of the license contained
16
-   in the file COPYING.nsis.
16
+   in the file COPYING.bzip2.
17 17
    ------------------------------------------------------------------ */
18 18
 
19 19
 /* CHANGES
... ...
@@ -13,7 +13,7 @@
13 13
    This file was modified for ClamAV by aCaB <acab@clamav.net>
14 14
 
15 15
    This program is released under the terms of the license contained
16
-   in the file COPYING.nsis.
16
+   in the file COPYING.bzip2.
17 17
    ------------------------------------------------------------------ */
18 18
 
19 19
 
20 20
deleted file mode 100644
... ...
@@ -1,715 +0,0 @@
1
-/*
2
- * This file is a part of the zlib compression module for NSIS.
3
- * 
4
- * Copyright and license information can be found below.
5
- * Modifications Copyright (C) 1999-2007 Nullsoft and Contributors
6
- * 
7
- * The original zlib source code is available at
8
- * http://www.zlib.net/
9
- * 
10
- * This software is provided 'as-is', without any express or implied
11
- * warranty.
12
- */
13
-
14
-/*
15
- * Copyright (C) 1995-1998 Jean-loup Gailly.
16
- * For conditions of distribution and use, see copyright notice in COPYING.nsis
17
- */
18
-
19
-#include "nsis_zutil.h"
20
-#include <string.h>
21
-
22
-#ifndef min
23
-#  define min(x,y) ((x<y)?x:y)
24
-#endif
25
-
26
-/* defines for inflate input/output */
27
-/*   update pointers and return */
28
-#define UPDBITS {s->bitb=b;s->bitk=k;}
29
-#define UPDIN {z->avail_in=n;z->next_in=p;}
30
-#define UPDOUT {s->write=q;}
31
-#define UPDATE {UPDBITS UPDIN UPDOUT}
32
-#define LEAVE(r) {UPDATE inflate_flush(z); return r;}
33
-
34
-/*   get bytes and bits */
35
-#define LOADIN {p=z->next_in;n=z->avail_in;b=s->bitb;k=s->bitk;}
36
-
37
-
38
-#define NEEDBYTE {if(!n)LEAVE(Z_OK)}
39
-#define NEXTBYTE (n--,*p++)
40
-#define NEEDBITS(j) {while(k<(j)){NEEDBYTE;b|=((uLong)NEXTBYTE)<<k;k+=8;}}
41
-
42
-#define DUMPBITS(j) {b>>=(j);k-=(j);}
43
-/*   output bytes */
44
-#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q)
45
-#define LOADOUT {q=s->write;m=(uInt)WAVAIL;}
46
-#define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}}
47
-#define FLUSH {UPDOUT inflate_flush(z); LOADOUT}
48
-#define NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE(Z_OK)}}}
49
-#define OUTBYTE(a) {*q++=(Byte)(a);m--;}
50
-/*   load local pointers */
51
-#define LOAD {LOADIN LOADOUT}
52
-
53
-#define LAST (s->last == DRY)
54
-
55
-#define FIXEDH 544      /* number of hufts used by fixed tables */
56
-
57
-
58
-
59
-typedef struct inflate_blocks_state FAR inflate_blocks_statef;
60
-#define exop word.what.Exop
61
-#define bits word.what.Bits
62
-
63
-/* And'ing with mask[n] masks the lower n bits */
64
-local unsigned short inflate_mask[17] = {
65
-    0x0000,
66
-    0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
67
-    0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
68
-}; /* use to reduce .data #define INFLATE_MASK(x, n) (x & (~((unsigned short) 0xFFFF << n))) */
69
-local const char border[] = { /* Order of the bit length code lengths */
70
-        16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
71
-
72
-/* Tables for deflate from PKZIP's appnote.txt. */
73
-local const unsigned short  cplens[31] = { /* Copy lengths for literal codes 257..285 */
74
-        3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
75
-        35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
76
-        /* see note #13 above about 258 */
77
-local const unsigned short  cplext[31] = { /* Extra bits for literal codes 257..285 */
78
-        0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
79
-        3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 112, 112}; /* 112==invalid */
80
-local const unsigned short  cpdist[30] = { /* Copy offsets for distance codes 0..29 */
81
-        1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
82
-        257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
83
-        8193, 12289, 16385, 24577};
84
-local const unsigned short  cpdext[30] = { /* Extra bits for distance codes */
85
-        0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
86
-        7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
87
-        12, 12, 13, 13};
88
-
89
-/* build fixed tables only once--keep them here */
90
-local char fixed_built = 0;
91
-local inflate_huft fixed_mem[FIXEDH];
92
-local uInt fixed_bl=9;
93
-local uInt fixed_bd=5;
94
-local inflate_huft *fixed_tl;
95
-local inflate_huft *fixed_td;
96
-
97
-/* copy as much as possible from the sliding window to the output area */
98
-local void ZEXPORT inflate_flush(nsis_z_streamp z)
99
-{
100
-  inflate_blocks_statef *s = &z->blocks;
101
-  uInt n;
102
-  Bytef *q;
103
-
104
-  /* local copies of source and destination pointers */
105
-  q = s->read;
106
-
107
-again:
108
-  /* compute number of bytes to copy as far as end of window */
109
-  n = (uInt)((q <= s->write ? s->write : s->end) - q);
110
-  n = min(n, z->avail_out);
111
-
112
-  /* update counters */
113
-  z->avail_out -= n;
114
-  /* z->total_out += n; */
115
-
116
-  /* copy as far as end of window */
117
-  zmemcpy(z->next_out, q, n);
118
-  z->next_out += n;
119
-  q += n;
120
-
121
-  /* see if more to copy at beginning of window */
122
-  if (q == s->end)
123
-  {
124
-    /* wrap pointers */
125
-    q = s->window;
126
-    if (s->write == s->end)
127
-      s->write = s->window;
128
-
129
-    /* do the same for the beginning of the window */
130
-    goto again;
131
-  }
132
-
133
-  /* update pointers */
134
-  s->read = q;
135
-}
136
-
137
-#define BMAX 15         /* maximum bit length of any code */
138
-
139
-local int ZEXPORT huft_build(
140
-uIntf *b,               /* code lengths in bits (all assumed <= BMAX) */
141
-uInt n,                 /* number of codes (assumed <= 288) */
142
-uInt s,                 /* number of simple-valued codes (0..s-1) */
143
-const unsigned short *d,         /* list of base values for non-simple codes */
144
-const unsigned short *e,         /* list of extra bits for non-simple codes */
145
-inflate_huft * FAR *t,  /* result: starting table */
146
-uIntf *m,               /* maximum lookup bits, returns actual */
147
-inflate_huft *hp,       /* space for trees */
148
-uInt *hn)               /* working area: values in order of bit length */
149
-{
150
-  static uIntf v[288];             /* work area for huft_build */
151
-  uInt a;                       /* counter for codes of length k */
152
-  uInt c[BMAX+1];               /* bit length count table */
153
-  uInt f;                       /* i repeats in table every f entries */
154
-  int g;                        /* maximum code length */
155
-  int h;                        /* table level */
156
-  uInt i;              /* counter, current code */
157
-  uInt j;              /* counter */
158
-  int k;               /* number of bits in current code */
159
-  int l;                        /* bits per table (returned in m) */
160
-  uIntf *p;            /* pointer into c[], b[], or v[] */
161
-  inflate_huft *q;              /* points to current table */
162
-  struct inflate_huft_s r;      /* table entry for structure assignment */
163
-  inflate_huft *u[BMAX];        /* table stack */
164
-  int w;               /* bits before this table == (l * h) */
165
-  uInt x[BMAX+1];               /* bit offsets, then code stack */
166
-  uIntf *xp;                    /* pointer into x */
167
-  int y;                        /* number of dummy codes added */
168
-  uInt z;                       /* number of entries in current table */
169
-
170
-
171
-  /* Generate counts for each bit length */
172
-  p=c;
173
-  y=16; while (y--) *p++ = 0;
174
-  p = b;
175
-  i = n;
176
-  do {
177
-    c[*p++]++;                  /* assume all entries <= BMAX */
178
-  } while (--i);
179
-  if (c[0] == n)                /* null input--all zero length codes */
180
-  {
181
-    *t = (inflate_huft *)Z_NULL;
182
-    *m = 0;
183
-    return Z_OK;
184
-  }
185
-
186
-
187
-  /* Find minimum and maximum length, bound *m by those */
188
-  l = *m;
189
-  for (j = 1; j <= BMAX; j++)
190
-    if (c[j])
191
-      break;
192
-  k = j;                        /* minimum code length */
193
-  if ((uInt)l < j)
194
-    l = j;
195
-  for (i = BMAX; i; i--)
196
-    if (c[i])
197
-      break;
198
-  g = i;                        /* maximum code length */
199
-  if ((uInt)l > i)
200
-    l = i;
201
-  *m = l;
202
-
203
-
204
-  /* Adjust last length count to fill out codes, if needed */
205
-  for (y = 1 << j; j < i; j++, y <<= 1)
206
-    if ((y -= c[j]) < 0)
207
-      return Z_DATA_ERROR;
208
-  if ((y -= c[i]) < 0)
209
-    return Z_DATA_ERROR;
210
-  c[i] += y;
211
-
212
-
213
-  /* Generate starting offsets into the value table for each length */
214
-  x[1] = j = 0;
215
-  p = c + 1;  xp = x + 2;
216
-  while (--i) {                 /* note that i == g from above */
217
-    *xp++ = (j += *p++);
218
-  }
219
-
220
-
221
-  /* Make a table of values in order of bit lengths */
222
-  p = b;  i = 0;
223
-  do {
224
-    if ((j = *p++) != 0)
225
-      v[x[j]++] = i;
226
-  } while (++i < n);
227
-  n = x[g];                     /* set n to length of v */
228
-
229
-
230
-  /* Generate the Huffman codes and for each, make the table entries */
231
-  x[0] = i = 0;                 /* first Huffman code is zero */
232
-  p = v;                        /* grab values in bit order */
233
-  h = -1;                       /* no tables yet--level -1 */
234
-  w = -l;                       /* bits decoded == (l * h) */
235
-  u[0] = (inflate_huft *)Z_NULL;        /* just to keep compilers happy */
236
-  q = (inflate_huft *)Z_NULL;   /* ditto */
237
-  z = 0;                        /* ditto */
238
-
239
-  r.base = 0;
240
-
241
-  /* go through the bit lengths (k already is bits in shortest code) */
242
-  for (; k <= g; k++)
243
-  {
244
-    a = c[k];
245
-    while (a--)
246
-    {
247
-      int nextw=w;
248
-      /* here i is the Huffman code of length k bits for value *p */
249
-      /* make tables up to required level */
250
-      while (k > (nextw=w + l))
251
-      {
252
-        h++;
253
-
254
-        /* compute minimum size table less than or equal to l bits */
255
-        z = g - nextw;
256
-        z = z > (uInt)l ? (uInt)l : z;        /* table size upper limit */
257
-        if ((f = 1 << (j = k - nextw)) > a + 1)     /* try a k-w bit table */
258
-        {                       /* too few codes for k-w bit table */
259
-          f -= a + 1;           /* deduct codes from patterns left */
260
-          xp = c + k;
261
-          if (j < z)
262
-            while (++j < z && (f <<= 1) > *++xp)     /* try smaller tables up to z bits */
263
-            {
264
-              f -= *xp;         /* else deduct codes from patterns */
265
-            }
266
-        }
267
-        z = 1 << j;             /* table entries for j-bit table */
268
-
269
-        /* allocate new table */
270
-        if (*hn + z > MANY)     /* (note: doesn't matter for fixed) */
271
-          return Z_MEM_ERROR;   /* not enough memory */
272
-        u[h] = q = hp + *hn;
273
-        *hn += z;
274
-
275
-        /* connect to last table, if there is one */
276
-        if (h)
277
-        {
278
-          x[h] = i;             /* save pattern for backing up */
279
-          r.bits = (Byte)l;     /* bits to dump before this table */
280
-          r.exop = (Byte)j;     /* bits in this table */
281
-          j = i >> w;
282
-          r.base = (uInt)(q - u[h-1] - j);   /* offset to this table */
283
-          u[h-1][j] = r;        /* connect to last table */
284
-        }
285
-        else
286
-          *t = q;               /* first table is returned result */
287
-        w=nextw;                 /* previous table always l bits */
288
-      }
289
-
290
-      /* set up table entry in r */
291
-      r.bits = (Byte)(k - w);
292
-      if (p >= v + n)
293
-        r.exop = 128 + 64;      /* out of values--invalid code */
294
-      else if (*p < s)
295
-      {
296
-        r.exop = (Byte)(*p < 256 ? 0 : 32 + 64);     /* 256 is end-of-block */
297
-        r.base = *p++;          /* simple code is just the value */
298
-      }
299
-      else
300
-      {
301
-        r.exop = (Byte)(e[*p - s] + 16 + 64);/* non-simple--look up in lists */
302
-        r.base = d[*p++ - s];
303
-      }
304
-
305
-      /* fill code-like entries with r */
306
-      f = 1 << (k - w);
307
-      for (j = i >> w; j < z; j += f)
308
-        q[j] = r;
309
-
310
-      /* backwards increment the k-bit code i */
311
-      for (j = 1 << (k - 1); i & j; j >>= 1)
312
-        i ^= j;
313
-      i ^= j;
314
-
315
-      /* backup over finished tables */
316
-      while ((i & ((1 << w) - 1)) != x[h])
317
-      {
318
-        h--;                    /* don't need to update q */
319
-        w -= l;
320
-      }
321
-    }
322
-  }
323
-
324
-
325
-  /* Return Z_BUF_ERROR if we were given an incomplete table */
326
-  return (y != 0 && g != 1) ? Z_BUF_ERROR : Z_OK;
327
-}
328
-
329
-int ZEXPORT nsis_inflate(nsis_z_streamp z)
330
-{
331
-  inflate_blocks_statef *s = &z->blocks;
332
-  inflate_codes_statef *c = &s->sub.decode.t_codes;  /* codes state */
333
-
334
-  /* lousy two bytes saved by doing this */
335
-  struct
336
-  {
337
-    uInt t;               /* temporary storage */
338
-    uLong b;              /* bit buffer */
339
-    uInt k;               /* bits in bit buffer */
340
-    Bytef *p;             /* input data pointer */
341
-    uInt n;               /* bytes available there */
342
-    Bytef *q;             /* output window write pointer */
343
-    uInt m;               /* bytes to end of window or read pointer */
344
-
345
-    /* CODES variables */
346
-
347
-    inflate_huft *j;      /* temporary pointer */
348
-    uInt e;               /* extra bits or operation */
349
-    Bytef *f;             /* pointer to copy strings from */
350
-  } _state;
351
-
352
-#define t _state.t
353
-#define b _state.b
354
-#define k _state.k
355
-#define p _state.p
356
-#define n _state.n
357
-#define q _state.q
358
-#define m _state.m
359
-
360
-  /* copy input/output information to locals (UPDATE macro restores) */
361
-  LOAD
362
-
363
-  /* process input based on current state */
364
-  for (;;) switch (s->mode)
365
-  {
366
-    case TYPE:
367
-      NEEDBITS(3)
368
-      t = (uInt)b & 7;
369
-      DUMPBITS(3)
370
-      s->last = (t & 1) ? DRY : TYPE;
371
-      switch (t >> 1)
372
-      {
373
-        case 0:                         /* stored */
374
-          Tracev((stderr, "inflate:     stored block%s\n",
375
-                 LAST ? " (last)" : ""));
376
-          DUMPBITS(k&7)
377
-          s->mode = LENS;               /* get length of stored block */
378
-          break;
379
-        case 1:                         /* fixed */
380
-          Tracev((stderr, "inflate:     fixed codes block%s\n",
381
-                 LAST ? " (last)" : ""));
382
-          {
383
-            if (!fixed_built)
384
-            {
385
-              int _k;              /* temporary variable */
386
-              uInt f = 0;         /* number of hufts used in fixed_mem */
387
-              static uIntf lc[288];           /* length list for huft_build */
388
-
389
-              /* literal table */
390
-              for (_k = 0; _k < 288; _k++)
391
-              {
392
-                char v=8;
393
-                if (_k > 143)
394
-                {
395
-                  if (_k < 256) v++;
396
-                  else if (_k < 280) v--;
397
-                }
398
-                lc[_k] = v;
399
-              }
400
-
401
-              huft_build(lc, 288, 257, cplens, cplext, &fixed_tl, &fixed_bl, fixed_mem, &f);
402
-
403
-              /* distance table */
404
-              for (_k = 0; _k < 30; _k++) lc[_k] = 5;
405
-
406
-              huft_build(lc, 30, 0, cpdist, cpdext, &fixed_td, &fixed_bd, fixed_mem, &f);
407
-
408
-              /* done */
409
-              fixed_built++;
410
-            }
411
-
412
-            /* s->sub.decode.t_codes.mode = CODES_START; */
413
-            s->sub.decode.t_codes.lbits = (Byte)fixed_bl;
414
-            s->sub.decode.t_codes.dbits = (Byte)fixed_bd;
415
-            s->sub.decode.t_codes.ltree = fixed_tl;
416
-            s->sub.decode.t_codes.dtree = fixed_td;
417
-          }
418
-          s->mode = CODES_START;
419
-          break;
420
-        case 2:                         /* dynamic */
421
-          Tracev((stderr, "inflate:     dynamic codes block%s\n",
422
-                 LAST ? " (last)" : ""));
423
-          s->mode = TABLE;
424
-          break;
425
-        case 3:                         /* illegal */
426
-          /* the only illegal value possible is 3 because we check only 2 bits */
427
-          goto bad;
428
-      }
429
-      break;
430
-    case LENS:
431
-      NEEDBITS(16)
432
-      s->sub.left = (uInt)b & 0xffff;
433
-      b = k = 0;                      /* dump bits */
434
-      Tracev((stderr, "inflate:       stored length %u\n", s->sub.left));
435
-      s->mode = s->sub.left ? STORED : (inflate_mode)s->last;
436
-      break;
437
-    case STORED:
438
-    {
439
-      uInt mn;
440
-
441
-      if (n == 0)
442
-        LEAVE(Z_OK)
443
-      NEEDOUT
444
-      mn = min(m, n);
445
-      t = min(s->sub.left, mn);
446
-      zmemcpy(q, p, t);
447
-      p += t;  n -= t;
448
-      q += t;  m -= t;
449
-      if (!(s->sub.left -= t))
450
-        s->mode = (inflate_mode)s->last;
451
-      break;
452
-    }
453
-    case TABLE:
454
-      NEEDBITS(14)
455
-      s->sub.trees.table = t = (uInt)b & 0x3fff;
456
-      if ((t & 0x1f) > 29 || ((t >> 5) & 0x1f) > 29)
457
-      {
458
-        s->mode = NZ_BAD;
459
-        LEAVE(Z_DATA_ERROR);
460
-      }
461
-      /* t = 258 + (t & 0x1f) + ((t >> 5) & 0x1f); */
462
-      DUMPBITS(14)
463
-      s->sub.trees.index = 0;
464
-      Tracev((stderr, "inflate:       table sizes ok\n"));
465
-      s->mode = BTREE;
466
-    case BTREE:
467
-      while (s->sub.trees.index < 4 + (s->sub.trees.table >> 10))
468
-      {
469
-        NEEDBITS(3)
470
-        s->sub.trees.t_blens[(int)border[s->sub.trees.index++]] = (uInt)b & 7;
471
-        DUMPBITS(3)
472
-      }
473
-      while (s->sub.trees.index < 19)
474
-        s->sub.trees.t_blens[(int)border[s->sub.trees.index++]] = 0;
475
-      s->sub.trees.bb = 7;
476
-
477
-      {
478
-        uInt hn = 0;          /* hufts used in space */
479
-
480
-        t = huft_build(s->sub.trees.t_blens, 19, 19, Z_NULL, Z_NULL,
481
-		       &s->sub.trees.tb, &s->sub.trees.bb, s->hufts, &hn);
482
-        if (t != Z_OK || !s->sub.trees.bb)
483
-        {
484
-          s->mode = NZ_BAD;
485
-          break;
486
-        }
487
-      }
488
-
489
-      s->sub.trees.index = 0;
490
-      Tracev((stderr, "inflate:       bits tree ok\n"));
491
-      s->mode = DTREE;
492
-    case DTREE:
493
-      while (t = s->sub.trees.table,
494
-             s->sub.trees.index < 258 + (t & 0x1f) + ((t >> 5) & 0x1f))
495
-      {
496
-        inflate_huft *h;
497
-        uInt i, j, d;
498
-
499
-        t = s->sub.trees.bb;
500
-        NEEDBITS(t)
501
-        h = s->sub.trees.tb + ((uInt)b & (uInt)inflate_mask[t]);
502
-        t = h->bits;
503
-        d = h->base;
504
-        if (d < 16)
505
-        {
506
-          DUMPBITS(t)
507
-          s->sub.trees.t_blens[s->sub.trees.index++] = d;
508
-        }
509
-        else /* d == 16..18 */
510
-        {
511
-          if (d == 18)
512
-          {
513
-            i=7;
514
-            j=11;
515
-          }
516
-          else
517
-          {
518
-            i=d-14;
519
-            j=3;
520
-          }
521
-          NEEDBITS(t+i)
522
-          DUMPBITS(t)
523
-          j += (uInt)b & (uInt)inflate_mask[i];
524
-          DUMPBITS(i)
525
-          i = s->sub.trees.index;
526
-          t = s->sub.trees.table;
527
-          if (i + j > 258 + (t & 0x1f) + ((t >> 5) & 0x1f) ||
528
-              (d == 16 && i < 1))
529
-          {
530
-            s->mode = NZ_BAD;
531
-            LEAVE(Z_DATA_ERROR);
532
-          }
533
-          d = d == 16 ? s->sub.trees.t_blens[i - 1] : 0;
534
-          do {
535
-            s->sub.trees.t_blens[i++] = d;
536
-          } while (--j);
537
-          s->sub.trees.index = i;
538
-        }
539
-      }
540
-      s->sub.trees.tb = Z_NULL;
541
-      {
542
-        uInt hn = 0;          /* hufts used in space */
543
-        uInt bl, bd;
544
-        inflate_huft *tl, *td;
545
-        int nl,nd;
546
-        t = s->sub.trees.table;
547
-
548
-        nl = 257 + (t & 0x1f);
549
-        nd = 1 + ((t >> 5) & 0x1f);
550
-        bl = 9;         /* must be <= 9 for lookahead assumptions */
551
-        bd = 6;         /* must be <= 9 for lookahead assumptions */
552
-
553
-        t = huft_build(s->sub.trees.t_blens, nl, 257, cplens, cplext, &tl, &bl, s->hufts, &hn);
554
-        if (bl == 0) t = Z_DATA_ERROR;
555
-        if (t == Z_OK)
556
-        {
557
-          /* build distance tree */
558
-          t = huft_build(s->sub.trees.t_blens + nl, nd, 0, cpdist, cpdext, &td, &bd, s->hufts, &hn);
559
-        }
560
-        if (t != Z_OK || (bd == 0 && nl > 257))
561
-        {
562
-          s->mode = NZ_BAD;
563
-          LEAVE(Z_DATA_ERROR);
564
-        }
565
-        Tracev((stderr, "inflate:       trees ok\n"));
566
-
567
-        /* s->sub.decode.t_codes.mode = CODES_START; */
568
-        s->sub.decode.t_codes.lbits = (Byte)bl;
569
-        s->sub.decode.t_codes.dbits = (Byte)bd;
570
-        s->sub.decode.t_codes.ltree = tl;
571
-        s->sub.decode.t_codes.dtree = td;
572
-      }
573
-      s->mode = CODES_START;
574
-
575
-#define j (_state.j)
576
-#define e (_state.e)
577
-#define f (_state.f)
578
-
579
-    /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
580
-
581
-    case CODES_START:         /* x: set up for LEN */
582
-      c->sub.code.need = c->lbits;
583
-      c->sub.code.tree = c->ltree;
584
-      s->mode = CODES_LEN;
585
-    case CODES_LEN:           /* i: get length/literal/eob next */
586
-      t = c->sub.code.need;
587
-      NEEDBITS(t)
588
-      j = c->sub.code.tree + ((uInt)b & (uInt)inflate_mask[t]);
589
-      DUMPBITS(j->bits)
590
-      e = (uInt)(j->exop);
591
-      if (e == 0)               /* literal */
592
-      {
593
-        c->sub.lit = j->base;
594
-        s->mode = CODES_LIT;
595
-        break;
596
-      }
597
-      if (e & 16)               /* length */
598
-      {
599
-        c->sub.copy.get = e & 15;
600
-        c->len = j->base;
601
-        s->mode = CODES_LENEXT;
602
-        break;
603
-      }
604
-      if ((e & 64) == 0)        /* next table */
605
-      {
606
-        c->sub.code.need = e;
607
-        c->sub.code.tree = j + j->base;
608
-        break;
609
-      }
610
-      if (e & 32)               /* end of block */
611
-      {
612
-        s->mode = CODES_WASH;
613
-        break;
614
-      }
615
-    goto bad;
616
-    case CODES_LENEXT:        /* i: getting length extra (have base) */
617
-      t = c->sub.copy.get;
618
-      NEEDBITS(t)
619
-      c->len += (uInt)b & (uInt)inflate_mask[t];
620
-      DUMPBITS(t)
621
-      c->sub.code.need = c->dbits;
622
-      c->sub.code.tree = c->dtree;
623
-      s->mode = CODES_DIST;
624
-    case CODES_DIST:          /* i: get distance next */
625
-      t = c->sub.code.need;
626
-      NEEDBITS(t)
627
-      j = c->sub.code.tree + ((uInt)b & (uInt)inflate_mask[t]);
628
-      DUMPBITS(j->bits)
629
-      e = (uInt)(j->exop);
630
-      if (e & 16)               /* distance */
631
-      {
632
-        c->sub.copy.get = e & 15;
633
-        c->sub.copy.dist = j->base;
634
-        s->mode = CODES_DISTEXT;
635
-        break;
636
-      }
637
-      if ((e & 64) == 0)        /* next table */
638
-      {
639
-        c->sub.code.need = e;
640
-        c->sub.code.tree = j + j->base;
641
-        break;
642
-      }
643
-      goto bad;        /* invalid code */
644
-    case CODES_DISTEXT:       /* i: getting distance extra */
645
-      t = c->sub.copy.get;
646
-      NEEDBITS(t)
647
-      c->sub.copy.dist += (uInt)b & (uInt)inflate_mask[t];
648
-      DUMPBITS(t)
649
-      s->mode = CODES_COPY;
650
-    case CODES_COPY:          /* o: copying bytes in window, waiting for space */
651
-      f = (uInt)(q - s->window) < c->sub.copy.dist ?
652
-          s->end - (c->sub.copy.dist - (q - s->window)) :
653
-          q - c->sub.copy.dist;
654
-
655
-      while (c->len)
656
-      {
657
-        NEEDOUT
658
-        OUTBYTE(*f++)
659
-        if (f == s->end)
660
-          f = s->window;
661
-        c->len--;
662
-      }
663
-      s->mode = CODES_START;
664
-      break;
665
-    case CODES_LIT:           /* o: got literal, waiting for output space */
666
-      NEEDOUT
667
-      OUTBYTE(c->sub.lit)
668
-      s->mode = CODES_START;
669
-      break;
670
-    case CODES_WASH:          /* o: got eob, possibly more output */
671
-      if (k > 7)        /* return unused byte, if any */
672
-      {
673
-        k -= 8;
674
-        n++;
675
-        p--;            /* can always return one */
676
-      }
677
-      /* flushing will be done in DRY */
678
-
679
-#undef j
680
-#undef e
681
-#undef f
682
-
683
-    case DRY:
684
-      FLUSH
685
-      if (s->write != s->read)
686
-        LEAVE(Z_OK)
687
-      if (s->mode == CODES_WASH)
688
-      {
689
-        Tracev((stderr, "inflate:       codes end, %lu total out\n",
690
-               z->total_out + (q >= s->read ? q - s->read :
691
-               (s->end - s->read) + (q - s->window))));
692
-      }
693
-      /* DRY if last, TYPE if not */
694
-      s->mode = (inflate_mode)s->last;
695
-      if (s->mode == TYPE)
696
-        break;
697
-      LEAVE(Z_STREAM_END)
698
-    /*case BAD:
699
-      r = Z_DATA_ERROR;
700
-      LEAVE
701
-    */
702
-    default: /* we'll call Z_STREAM_ERROR if BAD anyway */
703
-    bad:
704
-      s->mode = NZ_BAD;
705
-      LEAVE(Z_STREAM_ERROR)
706
-  }
707
-}
708
-
709
-#undef t
710
-#undef b
711
-#undef k
712
-#undef p
713
-#undef n
714
-#undef q
715
-#undef m
... ...
@@ -13,7 +13,7 @@
13 13
    This file was modified for ClamAV by aCaB <acab@clamav.net>
14 14
 
15 15
    This program is released under the terms of the license contained
16
-   in the file COPYING.nsis.
16
+   in the file COPYING.bzip2.
17 17
    ------------------------------------------------------------------ */
18 18
 
19 19
 
20 20
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-/* zconf.h -- configuration of the zlib compression library
2
- * Copyright (C) 1995-1998 Jean-loup Gailly.
3
- * For conditions of distribution and use, see copyright notice in COPYING.nsis.
4
- */
5
-
6
-/* @(#) $Id: ZCONF.H,v 1.3 2007/01/13 17:28:23 kichik Exp $ */
7
-
8
-#ifndef _ZCONF_H
9
-#define _ZCONF_H
10
-
11
-
12
-#define MAX_MEM_LEVEL 9
13
-
14
-/* Maximum value for windowBits in deflateInit2 and inflateInit2.
15
- * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
16
- * created by gzip. (Files created by minigzip can still be extracted by
17
- * gzip.)
18
- */
19
-#ifndef MAX_WBITS
20
-#  define MAX_WBITS   15 /* 32K LZ77 window */
21
-#endif
22
-
23
-#define OF(args)  args
24
-
25
-
26
-#ifndef ZEXPORT
27
-#  define ZEXPORT
28
-#endif
29
-#ifndef ZEXPORTVA
30
-#  define ZEXPORTVA
31
-#endif
32
-#ifndef ZEXTERN
33
-#  define ZEXTERN extern
34
-#endif
35
-
36
-#ifndef FAR
37
-#  define FAR
38
-#endif
39
-
40
-typedef unsigned char  Byte;  /* 8 bits */
41
-typedef unsigned int   uInt;  /* 16 bits or more */
42
-typedef unsigned long  uLong; /* 32 bits or more */
43
-
44
-typedef Byte  FAR Bytef;
45
-typedef char  FAR charf;
46
-typedef int   FAR intf;
47
-typedef uInt  FAR uIntf;
48
-typedef uLong FAR uLongf;
49
-
50
-typedef void FAR *voidpf;
51
-typedef void     *voidp;
52
-
53
-#ifndef z_off_t
54
-#  define  z_off_t long
55
-#endif
56
-
57
-
58
-#endif /* _ZCONF_H */
59 1
deleted file mode 100644
... ...
@@ -1,220 +0,0 @@
1
-/* zlib.h -- interface of the 'zlib' general purpose compression library
2
-  version 1.1.3, July 9th, 1998
3
-
4
-  Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler
5
-
6
-  This software is provided 'as-is', without any express or implied
7
-  warranty.  In no event will the authors be held liable for any damages
8
-  arising from the use of this software.
9
-
10
-  Permission is granted to anyone to use this software for any purpose,
11
-  including commercial applications, and to alter it and redistribute it
12
-  freely, subject to the following restrictions:
13
-
14
-  1. The origin of this software must not be misrepresented; you must not
15
-     claim that you wrote the original software. If you use this software
16
-     in a product, an acknowledgment in the product documentation would be
17
-     appreciated but is not required.
18
-  2. Altered source versions must be plainly marked as such, and must not be
19
-     misrepresented as being the original software.
20
-  3. This notice may not be removed or altered from any source distribution.
21
-
22
-  Jean-loup Gailly        Mark Adler
23
-  jloup@gzip.org          madler@alumni.caltech.edu
24
-
25
-
26
-*/
27
-
28
-#ifndef _NSIS_ZLIB_H
29
-#define _NSIS_ZLIB_H
30
-
31
-#include "nsis_zconf.h"
32
-#include "nsis_zutil.h"
33
-
34
-#ifdef __cplusplus
35
-extern "C" {
36
-#endif
37
-
38
-
39
-typedef struct inflate_huft_s FAR inflate_huft;
40
-
41
-
42
-
43
-typedef enum {        /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
44
-      CODES_START,    /* x: set up for LEN */
45
-      CODES_LEN,      /* i: get length/literal/eob next */
46
-      CODES_LENEXT,   /* i: getting length extra (have base) */
47
-      CODES_DIST,     /* i: get distance next */
48
-      CODES_DISTEXT,  /* i: getting distance extra */
49
-      CODES_COPY,     /* o: copying bytes in window, waiting for space */
50
-      CODES_LIT,      /* o: got literal, waiting for output space */
51
-      CODES_WASH,     /* o: got eob, possibly still output waiting */
52
-      /* CODES_END,      x: got eob and all data flushed */
53
-      /* CODES_BADCODE,  x: got error */
54
-
55
-      TYPE,     /* get type bits (3, including end bit) */
56
-      LENS,     /* get lengths for stored */
57
-      STORED,   /* processing stored block */
58
-      TABLE,    /* get table lengths */
59
-      BTREE,    /* get bit lengths tree for a dynamic block */
60
-      DTREE,    /* get length, distance trees for a dynamic block */
61
-      CODES,    /* processing fixed or dynamic block */
62
-      DRY,      /* output remaining window bytes */
63
-      DONE,     /* finished last block, done */
64
-      NZ_BAD       /* got a data error--stuck here */
65
-} inflate_mode;
66
-
67
-/* inflate codes private state */
68
-struct inflate_codes_state {
69
-
70
-  /* mode */
71
-  /* inflate_mode mode;      current inflate_codes mode */
72
-
73
-  /* mode dependent information */
74
-  uInt len;
75
-  union {
76
-    struct {
77
-      inflate_huft *tree;       /* pointer into tree */
78
-      uInt need;                /* bits needed */
79
-    } code;             /* if LEN or DIST, where in tree */
80
-    uInt lit;           /* if LIT, literal */
81
-    struct {
82
-      uInt get;                 /* bits to get for extra */
83
-      uInt dist;                /* distance back to copy from */
84
-    } copy;             /* if EXT or COPY, where and how much */
85
-  } sub;                /* submode */
86
-
87
-  /* mode independent information */
88
-  Byte lbits;           /* ltree bits decoded per branch */
89
-  Byte dbits;           /* dtree bits decoder per branch */
90
-  inflate_huft *ltree;          /* literal/length/eob tree */
91
-  inflate_huft *dtree;          /* distance tree */
92
-
93
-};
94
-
95
-struct inflate_huft_s {
96
-  union {
97
-    struct {
98
-      Byte Exop;        /* number of extra bits or operation */
99
-      Byte Bits;        /* number of bits in this code or subcode */
100
-    } what;
101
-  } word;
102
-  unsigned short base;            /* literal, length base, distance base,
103
-                           or table offset */
104
-};
105
-
106
-#define MANY 1440
107
-
108
-typedef struct inflate_codes_state inflate_codes_statef;
109
-
110
-struct inflate_blocks_state {
111
-
112
-  /* mode */
113
-  inflate_mode  mode;    /* current inflate_block mode */
114
-
115
-  /* mode dependent information */
116
-  union {
117
-    uInt left;          /* if STORED, bytes left to copy */
118
-    struct {
119
-      uInt table;               /* table lengths (14 bits) */
120
-      uInt index;               /* index into blens (or border) */
121
-      uIntf t_blens[258+31+31];             /* bit lengths of codes */
122
-      uInt bb;                  /* bit length tree depth */
123
-      inflate_huft *tb;         /* bit length decoding tree */
124
-    } trees;            /* if DTREE, decoding info for trees */
125
-    struct {
126
-      inflate_codes_statef t_codes;
127
-    } decode;           /* if CODES, current state */
128
-  } sub;                /* submode */
129
-
130
-  uInt last;            /* DRY if this block is the last block, TYPE otherwise */
131
-
132
-  /* mode independent information */
133
-  uInt bitk;            /* bits in bit buffer */
134
-  uLong bitb;           /* bit buffer */
135
-  inflate_huft hufts[MANY];  /* single malloc for tree space */
136
-  Bytef window[1 << MAX_WBITS];        /* sliding window */
137
-  Bytef *end;           /* one byte after sliding window */
138
-  Bytef *read;          /* window read pointer */
139
-  Bytef *write;         /* window write pointer */
140
-  uLong check;          /* check on output */
141
-
142
-};
143
-
144
-typedef struct nsis_z_stream_s {
145
-    Bytef    *next_in;  /* next input byte */
146
-    uInt     avail_in;  /* number of bytes available at next_in */
147
-    uLong    total_in;  /* total nb of input bytes read so far */
148
-
149
-    Bytef    *next_out; /* next output byte should be put there */
150
-    uInt     avail_out; /* remaining free space at next_out */
151
-
152
-    /* char     *msg;      last error message, NULL if no error */
153
-    /* struct internal_state FAR *state; not visible by applications */
154
-    struct inflate_blocks_state blocks;
155
-
156
-} nsis_z_stream;
157
-
158
-typedef nsis_z_stream FAR *nsis_z_streamp;
159
-
160
-
161
-#define Z_NO_FLUSH      0
162
-#define Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */
163
-#define Z_SYNC_FLUSH    2
164
-#define Z_FULL_FLUSH    3
165
-#define Z_FINISH        4
166
-/* Allowed flush values; see deflate() below for details */
167
-
168
-#define Z_OK            0
169
-#define Z_STREAM_END    1
170
-#define Z_NEED_DICT     2
171
-#define Z_ERRNO        (-1)
172
-
173
-/* EXEHEAD doesn't need a specific return code, just < 0 */
174
-#define Z_STREAM_ERROR (-2)
175
-#define Z_DATA_ERROR   (-3)
176
-#define Z_MEM_ERROR    (-4)
177
-#define Z_BUF_ERROR    (-5)
178
-#define Z_VERSION_ERROR (-6)
179
-
180
-/* Return codes for the compression/decompression functions. Negative
181
- * values are errors, positive values are used for special but normal events.
182
- */
183
-
184
-#define Z_NO_COMPRESSION         0
185
-#define Z_BEST_SPEED             1
186
-#define Z_BEST_COMPRESSION       9
187
-#define Z_DEFAULT_COMPRESSION  (-1)
188
-/* compression levels */
189
-
190
-#define Z_FILTERED            1
191
-#define Z_HUFFMAN_ONLY        2
192
-#define Z_DEFAULT_STRATEGY    0
193
-/* compression strategy; see deflateInit2() below for details */
194
-
195
-#define Z_BINARY   0
196
-#define Z_ASCII    1
197
-#define Z_UNKNOWN  2
198
-/* Possible values of the data_type field */
199
-
200
-#define Z_DEFLATED   8
201
-/* The deflate compression method (the only one supported in this version) */
202
-
203
-#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
204
-
205
-
206
-#define nsis_inflateInit(x) inflateReset(x)
207
-int ZEXPORT nsis_inflate(nsis_z_streamp z);
208
-#define inflateReset(z) \
209
-{ \
210
-  (z)->blocks.mode = TYPE; \
211
-  (z)->blocks.bitk = (z)->blocks.bitb = 0; \
212
-  (z)->blocks.read = (z)->blocks.write = (z)->blocks.window; \
213
-  (z)->blocks.end = (z)->blocks.window + (1 << DEF_WBITS); \
214
-}
215
-
216
-#ifdef __cplusplus
217
-}
218
-#endif
219
-
220
-#endif /* _ZLIB_H */
221 1
deleted file mode 100644
... ...
@@ -1,74 +0,0 @@
1
-/*
2
- * This file is a part of the zlib compression module for NSIS.
3
- * 
4
- * Copyright and license information can be found below.
5
- * Modifications Copyright (C) 1999-2007 Nullsoft and Contributors
6
- * 
7
- * The original zlib source code is available at
8
- * http://www.zlib.net/
9
- * 
10
- * This software is provided 'as-is', without any express or implied
11
- * warranty.
12
- */
13
-
14
-/* zutil.h -- internal interface and configuration of the compression library
15
- * Copyright (C) 1995-1998 Jean-loup Gailly.
16
- * For conditions of distribution and use, see copyright notice in COPYING.nsis.
17
- */
18
-
19
-/* WARNING: this file should *not* be used by applications. It is
20
-   part of the implementation of the compression library and is
21
-   subject to change. Applications should only use zlib.h.
22
- */
23
-
24
-/* @(#) $Id: ZUTIL.H,v 1.6 2007/01/25 18:07:40 kichik Exp $ */
25
-
26
-#ifndef _Z_UTIL_H
27
-#define _Z_UTIL_H
28
-
29
-#include "nsis_zlib.h"
30
-
31
-#ifndef local
32
-#  define local static
33
-#endif
34
-
35
-typedef unsigned char  uch;
36
-typedef uch FAR uchf;
37
-typedef unsigned short ush;
38
-typedef ush FAR ushf;
39
-typedef unsigned long  ulg;
40
-
41
-#ifndef DEF_WBITS
42
-#  define DEF_WBITS MAX_WBITS
43
-#endif
44
-/* default windowBits for decompression. MAX_WBITS is for compression only */
45
-
46
-#define DEF_MEM_LEVEL  MAX_MEM_LEVEL
47
-
48
-#define STORED_BLOCK 0
49
-#define STATIC_TREES 1
50
-#define DYN_TREES    2
51
-/* The three kinds of block type */
52
-
53
-#define MIN_MATCH  3
54
-#define MAX_MATCH  258
55
-/* The minimum and maximum match lengths */
56
-
57
-#define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */
58
-
59
-
60
-#define zmemcpy memcpy
61
-
62
-#define Assert(cond,msg)
63
-#define Trace(x)
64
-#define Tracev(x)
65
-#define Tracevv(x)
66
-#define Tracec(c,x)
67
-#define Tracecv(c,x)
68
-
69
-#define ZALLOC(strm, items, size) malloc((items)*(size))
70
-#define ZFREE(strm, addr)  { if (addr) free(addr); }
71
-#define TRY_FREE(s, p) { ZFREE(s, p); }
72
-#define ERR_RETURN(strm,err) return (err)
73
-
74
-#endif /* _Z_UTIL_H */
... ...
@@ -32,8 +32,8 @@
32 32
 #include "others.h"
33 33
 #include "cltypes.h"
34 34
 #include "nsis_bzlib.h"
35
-#include "LZMADecode.h"
36
-#include "nsis_zlib.h"
35
+#include "lzma_iface.h"
36
+#include "zlib.h"
37 37
 #include "matcher.h"
38 38
 #include "scanners.h"
39 39
 #include "nulsft.h" /* SHUT UP GCC -Wextra */
... ...
@@ -67,8 +67,8 @@ struct nsis_st {
67 67
     unsigned char *next_out;
68 68
   } nsis;
69 69
   nsis_bzstream bz;
70
-  lzma_stream lz;
71
-  nsis_z_stream z;
70
+  CLI_LZMA lz;
71
+  z_stream z;
72 72
   unsigned char *freeme;
73 73
   uint8_t comp;
74 74
   uint8_t solid;
... ...
@@ -85,16 +85,19 @@ struct nsis_st {
85 85
 static int nsis_init(struct nsis_st *n) {
86 86
   switch(n->comp) {
87 87
   case COMP_BZIP2:
88
+    memset(&n->bz, 0, sizeof(nsis_bzstream));
88 89
     if (nsis_BZ2_bzDecompressInit(&n->bz, 0, 0)!=BZ_OK)
89 90
       return CL_EBZIP;
90 91
     n->freecomp=1;
91 92
     break;
92 93
   case COMP_LZMA:
93
-    lzmaInit(&n->lz);
94
+    memset(&n->lz, 0, sizeof(CLI_LZMA));
95
+    cli_LzmaInit(&n->lz, 0xffffffffffffffff);
94 96
     n->freecomp=1;
95 97
     break;
96 98
   case COMP_ZLIB:
97
-    nsis_inflateInit(&n->z);
99
+    memset(&n->bz, 0, sizeof(z_stream));
100
+    inflateInit2(&n->z, -MAX_WBITS);
98 101
     n->freecomp=0;
99 102
   }
100 103
   return CL_SUCCESS;
... ...
@@ -109,8 +112,9 @@ static void nsis_shutdown(struct nsis_st *n) {
109 109
     nsis_BZ2_bzDecompressEnd(&n->bz);
110 110
     break;
111 111
   case COMP_LZMA:
112
-    lzmaShutdown(&n->lz);
112
+    cli_LzmaShutdown(&n->lz);
113 113
   case COMP_ZLIB:
114
+    inflateEnd(&n->z);
114 115
     break;
115 116
   }
116 117
 
... ...
@@ -142,8 +146,8 @@ static int nsis_decomp(struct nsis_st *n) {
142 142
     n->lz.next_in = n->nsis.next_in;
143 143
     n->lz.avail_out = n->nsis.avail_out;
144 144
     n->lz.next_out = n->nsis.next_out;
145
-    switch (lzmaDecode(&n->lz)) {
146
-    case LZMA_OK:
145
+    switch (cli_LzmaDecode(&n->lz)) {
146
+    case LZMA_RESULT_OK:
147 147
       ret = CL_SUCCESS;
148 148
       break;
149 149
     case LZMA_STREAM_END:
... ...
@@ -159,12 +163,13 @@ static int nsis_decomp(struct nsis_st *n) {
159 159
     n->z.next_in = n->nsis.next_in;
160 160
     n->z.avail_out = n->nsis.avail_out;
161 161
     n->z.next_out = n->nsis.next_out;
162
-    switch (nsis_inflate(&n->z)) {
162
+    switch (inflate(&n->z, Z_NO_FLUSH)) {
163 163
     case Z_OK:
164 164
       ret = CL_SUCCESS;
165 165
       break;
166 166
     case Z_STREAM_END:
167 167
       ret = CL_BREAK;
168
+    /* FIXME: regression needed */ 
168 169
     }
169 170
     n->nsis.avail_in = n->z.avail_in;
170 171
     n->nsis.next_in = n->z.next_in;
... ...
@@ -203,6 +203,7 @@ int cli_bitset_test(bitset_t *bs, unsigned long bit_offset);
203 203
 
204 204
 #if WORDS_BIGENDIAN == 0
205 205
 #define cli_readint32(buff) (*(const int32_t *)(buff))
206
+#define cli_readint16(buff) (*(const int16_t *)(buff))
206 207
 #define cli_writeint32(offset, value) (*(uint32_t *)(offset)=(uint32_t)(value))
207 208
 #else
208 209
 static inline int32_t cli_readint32(const char *buff)
... ...
@@ -215,6 +216,14 @@ static inline int32_t cli_readint32(const char *buff)
215 215
     return ret;
216 216
 }
217 217
 
218
+static inline int16_t cli_readint32(const char *buff)
219
+{
220
+	int16_t ret;
221
+    ret = buff[0] & 0xff;
222
+    ret |= (buff[1] & 0xff) << 8;
223
+    return ret;
224
+}
225
+
218 226
 static inline void cli_writeint32(char *offset, uint32_t value)
219 227
 {
220 228
     offset[0] = value & 0xff;
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2004 - 2006 Tomasz Kojm <tkojm@clamav.net>
2
+ *  Copyright (C) 2004 - 2007 Tomasz Kojm <tkojm@clamav.net>
3 3
  *			      aCaB <acab@clamav.net>
4 4
  *
5 5
  *  This program is free software; you can redistribute it and/or modify
... ...
@@ -23,11 +23,12 @@
23 23
 #endif
24 24
 
25 25
 #include <stdio.h>
26
+#if HAVE_STRING_H
26 27
 #include <string.h>
28
+#endif
27 29
 #include <sys/types.h>
28 30
 #include <sys/stat.h>
29 31
 #include <fcntl.h>
30
-#include <sys/stat.h>
31 32
 #ifdef HAVE_UNISTD_H
32 33
 #include <unistd.h>
33 34
 #endif
... ...
@@ -1848,106 +1849,65 @@ int cli_scanpe(int desc, cli_ctx *ctx)
1848 1848
 	CLI_UNPRESULTS("yC",(yc_decrypt(spinned, fsize, exe_sections, nsections-1, e_lfanew, ndesc)),0,(spinned,0));
1849 1849
     }
1850 1850
 
1851
-
1852 1851
     /* WWPack */
1853 1852
 
1854
-    if((DCONF & PE_CONF_WWPACK) && nsections > 1 &&
1855
-       exe_sections[nsections-1].raw>0x2b1 &&
1853
+    while ((DCONF & PE_CONF_WWPACK) && nsections > 1 &&
1856 1854
        vep == exe_sections[nsections - 1].rva &&
1857
-       exe_sections[nsections - 1].rva + exe_sections[nsections - 1].rsz == max &&
1858 1855
        memcmp(epbuff, "\x53\x55\x8b\xe8\x33\xdb\xeb", 7) == 0 &&
1859 1856
        memcmp(epbuff+0x68, "\xe8\x00\x00\x00\x00\x58\x2d\x6d\x00\x00\x00\x50\x60\x33\xc9\x50\x58\x50\x50", 19) == 0)  {
1860
-	uint32_t headsize=exe_sections[nsections - 1].raw;
1861
-	char *dest, *wwp;
1857
+	uint32_t head = exe_sections[nsections - 1].raw;
1858
+        uint8_t *packer;
1862 1859
 
1863
-	for(i = 0 ; i < (unsigned int)nsections-1; i++)
1864
-	    if (exe_sections[i].raw<headsize) headsize=exe_sections[i].raw;
1865
-      
1866
-	dsize = max-min+headsize-exe_sections[nsections - 1].rsz;
1860
+	ssize = 0;
1861
+	for(i=0 ; ; i++) {
1862
+	    if(exe_sections[i].raw<head) 
1863
+	        head=exe_sections[i].raw;
1864
+	    if(i==nsections-1) break;
1865
+	    if(ssize<exe_sections[i].rva+exe_sections[i].vsz)
1866
+		ssize=exe_sections[i].rva+exe_sections[i].vsz;
1867
+	}
1868
+	if(!head || !ssize || head>ssize) break;
1867 1869
 
1868
-	CLI_UNPSIZELIMITS("WWPack", dsize);
1870
+	CLI_UNPSIZELIMITS("WWPack", ssize);
1869 1871
 
1870
-	if((dest = (char *) cli_calloc(dsize, sizeof(char))) == NULL) {
1871
-	    cli_dbgmsg("WWPack: Can't allocate %d bytes\n", dsize);
1872
+        if(!(src=(char *)cli_calloc(ssize, sizeof(char)))) {
1872 1873
 	    free(exe_sections);
1873 1874
 	    return CL_EMEM;
1874 1875
 	}
1875
-
1876 1876
 	lseek(desc, 0, SEEK_SET);
1877
-	if((size_t) cli_readn(desc, dest, headsize) != headsize) {
1878
-	    cli_dbgmsg("WWPack: Can't read %d bytes from headers\n", headsize);
1879
-	    free(dest);
1877
+	if((size_t) cli_readn(desc, src, head) != head) {
1878
+	    cli_dbgmsg("WWPack: Can't read %d bytes from headers\n", head);
1879
+	    free(src);
1880 1880
 	    free(exe_sections);
1881 1881
 	    return CL_EIO;
1882 1882
 	}
1883
-
1884
-	for(i = 0 ; i < (unsigned int)nsections-1; i++) {
1885
-	    if(exe_sections[i].rsz) {
1886
-		if(!cli_seeksect(desc, &exe_sections[i]) || (unsigned int) cli_readn(desc, dest + headsize + exe_sections[i].rva - min, exe_sections[i].rsz) != exe_sections[i].rsz) {
1887
-		    free(dest);
1888
-		    free(exe_sections);
1889
-		    return CL_EIO;
1890
-		}
1891
-	    }
1892
-	}
1893
-
1894
-	if((wwp = (char *) cli_calloc(exe_sections[nsections - 1].rsz, sizeof(char))) == NULL) {
1895
-	    cli_dbgmsg("WWPack: Can't allocate %d bytes\n", exe_sections[nsections - 1].rsz);
1896
-	    free(dest);
1883
+        for(i = 0 ; i < (unsigned int)nsections-1; i++) {
1884
+	    if(!exe_sections[i].rsz) continue;
1885
+	    if(!cli_seeksect(desc, &exe_sections[i])) break;
1886
+            if(!CLI_ISCONTAINED(src, ssize, src+exe_sections[i].rva, exe_sections[i].rsz)) break;
1887
+            if(cli_readn(desc, src+exe_sections[i].rva, exe_sections[i].rsz)!=exe_sections[i].rsz) break;
1888
+        }
1889
+        if(i!=nsections-1) {
1890
+            cli_dbgmsg("WWpack: Probably hacked/damaged file.\n");
1891
+            free(src);
1892
+            break;
1893
+        }
1894
+	if((packer = (char *) cli_calloc(exe_sections[nsections - 1].rsz, sizeof(char))) == NULL) {
1895
+	    free(src);
1897 1896
 	    free(exe_sections);
1898 1897
 	    return CL_EMEM;
1899 1898
 	}
1900
-
1901
-	if(!cli_seeksect(desc, &exe_sections[nsections - 1]) || (size_t) cli_readn(desc, wwp, exe_sections[nsections - 1].rsz) != exe_sections[nsections - 1].rsz) {
1899
+	if(!cli_seeksect(desc, &exe_sections[nsections - 1]) || (size_t) cli_readn(desc, packer, exe_sections[nsections - 1].rsz) != exe_sections[nsections - 1].rsz) {
1902 1900
 	    cli_dbgmsg("WWPack: Can't read %d bytes from wwpack sect\n", exe_sections[nsections - 1].rsz);
1903
-	    free(dest);
1904
-	    free(wwp);
1901
+	    free(src);
1902
+	    free(packer);
1905 1903
 	    free(exe_sections);
1906 1904
 	    return CL_EIO;
1907 1905
 	}
1908 1906
 
1909
-	if (!wwunpack(dest, dsize, headsize, min, exe_sections[nsections-1].rva, e_lfanew, wwp, exe_sections[nsections - 1].rsz, nsections-1)) {
1910
-	
1911
-	    free(wwp);
1912
-
1913
-	    CLI_UNPTEMP("WWPack",(dest,exe_sections,0));
1914
-
1915
-	    if((unsigned int) write(ndesc, dest, dsize) != dsize) {
1916
-		cli_dbgmsg("WWPack: Can't write %d bytes\n", dsize);
1917
-		close(ndesc);
1918
-		free(tempfile);
1919
-		free(dest);
1920
-		free(exe_sections);
1921
-		return CL_EIO;
1922
-	    }
1923
-
1924
-	    free(dest);
1925
-	    if (cli_leavetemps_flag)
1926
-		cli_dbgmsg("WWPack: Unpacked and rebuilt executable saved in %s\n", tempfile);
1927
-	    else
1928
-		cli_dbgmsg("WWPack: Unpacked and rebuilt executable\n");
1929
-
1930
-	    fsync(ndesc);
1931
-	    lseek(ndesc, 0, SEEK_SET);
1932
-
1933
-	    if(cli_magic_scandesc(ndesc, ctx) == CL_VIRUS) {
1934
-		free(exe_sections);
1935
-		close(ndesc);
1936
-		if(!cli_leavetemps_flag)
1937
-		    unlink(tempfile);
1938
-		free(tempfile);
1939
-		return CL_VIRUS;
1940
-	    }
1941
-
1942
-	    close(ndesc);
1943
-	    if(!cli_leavetemps_flag)
1944
-		unlink(tempfile);
1945
-	    free(tempfile);
1946
-	} else {
1947
-	    free(wwp);
1948
-	    free(dest);
1949
-	    cli_dbgmsg("WWPpack: Decompression failed\n");
1950
-	}
1907
+	CLI_UNPTEMP("WWPack",(src,packer,exe_sections,0));
1908
+	CLI_UNPRESULTS("WWPack",(wwunpack(src, ssize, packer, exe_sections, nsections-1, e_lfanew, ndesc)),0,(src,packer,0));
1909
+	break;
1951 1910
     }
1952 1911
 
1953 1912
 
... ...
@@ -86,11 +86,8 @@
86 86
 #include "unarj.h"
87 87
 #include "nulsft.h"
88 88
 #include "autoit.h"
89
-
90
-#ifdef HAVE_ZLIB_H
91 89
 #include <zlib.h>
92 90
 #include "unzip.h"
93
-#endif
94 91
 
95 92
 #ifdef HAVE_BZLIB_H
96 93
 #include <bzlib.h>
... ...
@@ -446,272 +443,6 @@ static int cli_scanarj(int desc, cli_ctx *ctx, off_t sfx_offset, uint32_t *sfx_c
446 446
 
447 447
     return ret;
448 448
 }
449
-#ifdef HAVE_ZLIB_H
450
-static int cli_scanzip(int desc, cli_ctx *ctx, off_t sfx_offset, uint32_t *sfx_check)
451
-{
452
-	zip_dir *zdir;
453
-	zip_dirent zdirent;
454
-	zip_file *zfp;
455
-	char *tmpname = NULL, *buff;
456
-	int fd = -1, bytes, ret = CL_CLEAN;
457
-	unsigned long int size = 0;
458
-	unsigned int files = 0, encrypted, bfcnt;
459
-	struct stat source;
460
-	struct cli_meta_node *mdata;
461
-	int err;
462
-	uint8_t swarning = 0, fail, success;
463
-
464
-
465
-    cli_dbgmsg("in scanzip()\n");
466
-
467
-    if((zdir = zip_dir_open(desc, sfx_offset, &err)) == NULL) {
468
-	cli_dbgmsg("Zip: zip_dir_open() return code: %d\n", err);
469
-	/* no return with CL_EZIP due to password protected zips */
470
-	return CL_CLEAN;
471
-    }
472
-
473
-    fstat(desc, &source);
474
-
475
-    if(!(buff = (char *) cli_malloc(FILEBUFF))) {
476
-	cli_dbgmsg("Zip: unable to malloc(%u)\n", FILEBUFF);
477
-	zip_dir_close(zdir);
478
-	return CL_EMEM;
479
-    }
480
-
481
-    while(zip_dir_read(zdir, &zdirent)) {
482
-	files++;
483
-
484
-	if(files == 1 && sfx_check) {
485
-	    if(*sfx_check == zdirent.d_crc32)
486
-		break;
487
-	    else
488
-		*sfx_check = zdirent.d_crc32;
489
-	}
490
-
491
-	if(!zdirent.d_name) {
492
-	    cli_dbgmsg("Zip: zdirent.d_name == NULL\n");
493
-	    *ctx->virname = "Suspect.Zip";
494
-	    ret = CL_VIRUS;
495
-	    break;
496
-	}
497
-
498
-        /* Bit 0: file is encrypted
499
-	 * Bit 6: Strong encryption was used
500
-	 * Bit 13: Encrypted central directory
501
-	 */
502
-	encrypted = ((zdirent.d_flags & 0x2041) != 0);
503
-
504
-	cli_dbgmsg("Zip: %s, crc32: 0x%x, offset: %u, encrypted: %u, compressed: %u, normal: %u, method: %u, ratio: %u (max: %u)\n", zdirent.d_name, zdirent.d_crc32, zdirent.d_off, encrypted, zdirent.d_csize, zdirent.st_size, zdirent.d_compr, zdirent.d_csize ? (zdirent.st_size / zdirent.d_csize) : 0, ctx->limits ? ctx->limits->maxratio : 0);
505
-
506
-	if(!zdirent.st_size) {
507
-	    if(zdirent.d_crc32) {
508
-		cli_dbgmsg("Zip: Broken file or modified information in local header part of archive\n");
509
-		*ctx->virname = "Exploit.Zip.ModifiedHeaders";
510
-		ret = CL_VIRUS;
511
-		break;
512
-	    }
513
-	    continue;
514
-	}
515
-
516
-	/* Scan metadata */
517
-	mdata = ctx->engine->zip_mlist;
518
-	if(mdata) do {
519
-	    if(mdata->encrypted != encrypted)
520
-		continue;
521
-
522
-	    if(mdata->crc32 && mdata->crc32 != zdirent.d_crc32)
523
-		continue;
524
-
525
-	    if(mdata->csize > 0 && (uint32_t) mdata->csize != zdirent.d_csize)
526
-		continue;
527
-
528
-	    if(mdata->size >= 0 && (uint32_t) mdata->size != zdirent.st_size)
529
-		continue;
530
-
531
-	    if(mdata->method >= 0 && (uint16_t) mdata->method != zdirent.d_compr)
532
-		continue;
533
-
534
-	    if(mdata->fileno && mdata->fileno != files)
535
-		continue;
536
-
537
-	    if(mdata->maxdepth && ctx->arec > mdata->maxdepth)
538
-		continue;
539
-
540
-	    /* TODO add support for regex */
541
-	    /*if(mdata->filename && !strstr(zdirent.d_name, mdata->filename))*/
542
-	    if(mdata->filename && strcmp(zdirent.d_name, mdata->filename))
543
-		continue;
544
-
545
-	    break; /* matched */
546
-
547
-	} while((mdata = mdata->next));
548
-
549
-	if(mdata) {
550
-	    *ctx->virname = mdata->virname;
551
-	    ret = CL_VIRUS;
552
-	    break;
553
-	}
554
-
555
-	/* 
556
-	 * Workaround for archives created with ICEOWS.
557
-	 * ZZIP_DIRENT does not contain information on file type
558
-	 * so we try to determine a directory via a filename
559
-	 */
560
-	if(zdirent.d_name[strlen(zdirent.d_name) - 1] == '/') {
561
-	    cli_dbgmsg("Zip: Directory entry with st_size != 0\n");
562
-	    continue;
563
-	}
564
-
565
-	if(!zdirent.d_csize) {
566
-	    cli_dbgmsg("Zip: Malformed file (d_csize == 0 but st_size != 0)\n");
567
-	    *ctx->virname = "Suspect.Zip";
568
-	    ret = CL_VIRUS;
569
-	    break;
570
-	}
571
-
572
-	if(ctx->limits && ctx->limits->maxratio > 0 && ((unsigned) zdirent.st_size / (unsigned) zdirent.d_csize) >= ctx->limits->maxratio) {
573
-	    *ctx->virname = "Oversized.Zip";
574
-	    ret = CL_VIRUS;
575
-	    break;
576
-        }
577
-
578
-	if(encrypted) {
579
-	    if(DETECT_ENCRYPTED) {
580
-		cli_dbgmsg("Zip: Encrypted files found in archive.\n");
581
-		lseek(desc, 0, SEEK_SET);
582
-		ret = cli_scandesc(desc, ctx, 0, 0, 0, NULL);
583
-		if(ret < 0) {
584
-		    break;
585
-		} else if(ret != CL_VIRUS) {
586
-		    *ctx->virname = "Encrypted.Zip";
587
-		    ret = CL_VIRUS;
588
-		}
589
-		break;
590
-	    } else continue;
591
-	}
592
-
593
-	if(ctx->limits) {
594
-	    if(ctx->limits->maxfilesize && ((unsigned int) zdirent.st_size > ctx->limits->maxfilesize)) {
595
-		cli_dbgmsg("Zip: %s: Size exceeded (%u, max: %lu)\n", zdirent.d_name, zdirent.st_size, ctx->limits->maxfilesize);
596
-		/* ret = CL_EMAXSIZE; */
597
-		if(BLOCKMAX) {
598
-		    *ctx->virname = "Zip.ExceededFileSize";
599
-		    ret = CL_VIRUS;
600
-		    break;
601
-		}
602
-		continue; /* continue scanning */
603
-	    }
604
-
605
-	    if(ctx->limits->maxfiles && (files > ctx->limits->maxfiles)) {
606
-		cli_dbgmsg("Zip: Files limit reached (max: %u)\n", ctx->limits->maxfiles);
607
-		if(BLOCKMAX) {
608
-		    *ctx->virname = "Zip.ExceededFilesLimit";
609
-		    ret = CL_VIRUS;
610
-		    break;
611
-		}
612
-		break;
613
-	    }
614
-	}
615
-
616
-	if((zfp = zip_file_open(zdir, zdirent.d_name, zdirent.d_off)) == NULL) {
617
-	    if(zdir->errcode == CL_ESUPPORT) {
618
-		ret = CL_ESUPPORT;
619
-		if(!swarning) {
620
-		    cli_warnmsg("Not supported compression method in one or more files\n");
621
-		    swarning = 1;
622
-		}
623
-		continue;
624
-	    } else {
625
-		cli_dbgmsg("Zip: Can't open file %s\n", zdirent.d_name);
626
-		ret = CL_EZIP;
627
-		break;
628
-	    }
629
-	}
630
-
631
-	bfcnt = 0;
632
-	success = 0;
633
-	while(1) {
634
-	    fail = 0;
635
-
636
-	    if((ret = cli_gentempfd(NULL, &tmpname, &fd)))
637
-		break;
638
-
639
-	    size = 0;
640
-	    while((bytes = zip_file_read(zfp, buff, FILEBUFF)) > 0) {
641
-		size += bytes;
642
-		if(cli_writen(fd, buff, bytes) != bytes) {
643
-		    cli_dbgmsg("Zip: Can't write to file.\n");
644
-		    ret = CL_EIO;
645
-		    break;
646
-		}
647
-	    }
648
-
649
-	    if(!encrypted) {
650
-		if(size != zdirent.st_size) {
651
-		    cli_dbgmsg("Zip: Incorrectly decompressed (%lu != %lu)\n", size, (unsigned long int) zdirent.st_size);
652
-		    if(zfp->bf[0] == -1) {
653
-			ret = CL_EZIP;
654
-			break;
655
-		    } else {
656
-			fail = 1;
657
-		    }
658
-		} else {
659
-		    cli_dbgmsg("Zip: File decompressed to %s\n", tmpname);
660
-		    success = 1;
661
-		}
662
-	    }
663
-
664
-	    if(!fail) {
665
-		if(fsync(fd) == -1) {
666
-		    cli_dbgmsg("Zip: fsync() failed\n");
667
-		    ret = CL_EFSYNC;
668
-		    break;
669
-		}
670
-		lseek(fd, 0, SEEK_SET);
671
-
672
-		if((ret = cli_magic_scandesc(fd, ctx)) == CL_VIRUS ) {
673
-		    cli_dbgmsg("Zip: Infected with %s\n", *ctx->virname);
674
-		    ret = CL_VIRUS;
675
-		    break;
676
-		}
677
-	    }
678
-
679
-	    close(fd);
680
-	    if(!cli_leavetemps_flag)
681
-		unlink(tmpname);
682
-	    free(tmpname);
683
-	    fd = -1;
684
-
685
-	    if(zfp->bf[bfcnt] == -1)
686
-		break;
687
-
688
-	    zfp->method = (uint16_t) zfp->bf[bfcnt];
689
-	    cli_dbgmsg("Zip: Brute force mode - checking compression method %u\n", zfp->method);
690
-	    bfcnt++;
691
-	}
692
-	zip_file_close(zfp);
693
-
694
-
695
-	if(!ret && !encrypted && !success) { /* brute-force decompression failed */
696
-	    cli_dbgmsg("Zip: All attempts to decompress file failed\n");
697
-	    ret = CL_EZIP;
698
-	}
699
-
700
-	if(ret) 
701
-	    break;
702
-    }
703
-
704
-    zip_dir_close(zdir);
705
-    if(fd != -1) {
706
-	close(fd);
707
-	if(!cli_leavetemps_flag)
708
-	    unlink(tmpname);
709
-	free(tmpname);
710
-    }
711
-
712
-    free(buff);
713
-    return ret;
714
-}
715 449
 
716 450
 static int cli_scangzip(int desc, cli_ctx *ctx)
717 451
 {
... ...
@@ -806,7 +537,6 @@ static int cli_scangzip(int desc, cli_ctx *ctx)
806 806
 
807 807
     return ret;
808 808
 }
809
-#endif
810 809
 
811 810
 #ifdef HAVE_BZLIB_H
812 811
 
... ...
@@ -1922,7 +1652,7 @@ static int cli_scanraw(int desc, cli_ctx *ctx, cli_file_t type, uint8_t typercg)
1922 1922
 		    case CL_TYPE_ZIPSFX:
1923 1923
 			if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE && (DCONF_ARCH & ARCH_CONF_ZIP) && fpt->offset) {
1924 1924
 			    cli_dbgmsg("ZIP-SFX signature found at %u\n", (unsigned int) fpt->offset);
1925
-			    nret = cli_scanzip(desc, ctx, fpt->offset, &lastzip);
1925
+			    nret = cli_unzip_single(desc, ctx, fpt->offset, &lastzip);
1926 1926
 			}
1927 1927
 			break;
1928 1928
 
... ...
@@ -2089,7 +1819,7 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx)
2089 2089
 
2090 2090
 	case CL_TYPE_ZIP:
2091 2091
 	    if(SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_ZIP))
2092
-		ret = cli_scanzip(desc, ctx, 0, NULL);
2092
+		ret = cli_unzip(desc, ctx, 0, NULL);
2093 2093
 	    break;
2094 2094
 
2095 2095
 	case CL_TYPE_GZ:
2096 2096
deleted file mode 100644
... ...
@@ -1,691 +0,0 @@
1
-/*
2
- *  Copyright (C) 2006 Sensory Networks, Inc.
3
- *	      Written by Tomasz Kojm
4
- *
5
- *  This program is free software; you can redistribute it and/or modify
6
- *  it under the terms of the GNU General Public License version 2 as
7
- *  published by the Free Software Foundation.
8
- *
9
- *  This program is distributed in the hope that it will be useful,
10
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
- *  GNU General Public License for more details.
13
- *
14
- *  You should have received a copy of the GNU General Public License
15
- *  along with this program; if not, write to the Free Software
16
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
- *  MA 02110-1301, USA.
18
- */
19
-
20
-#if HAVE_CONFIG_H
21
-#include "clamav-config.h"
22
-#endif
23
-
24
-#if HAVE_MMAP
25
-
26
-#include <stdio.h>
27
-#include <string.h>
28
-#include <sys/types.h>
29
-#include <sys/stat.h>
30
-#include <fcntl.h>
31
-#include <sys/stat.h>
32
-#ifdef	HAVE_UNISTD_H
33
-#include <unistd.h>
34
-#endif
35
-#include <time.h>
36
-#include <zlib.h>
37
-
38
-#include "others.h"
39
-
40
-#if HAVE_SYS_MMAN_H
41
-#include <sys/mman.h>
42
-#else /* HAVE_SYS_MMAN_H */
43
-#undef HAVE_MMAP
44
-#endif
45
-
46
-#include "clamav.h"
47
-#include "scanners.h"
48
-#include "cltypes.h"
49
-#include "sis.h"
50
-
51
-#define EC32(x) le32_to_host(x) /* Convert little endian to host */
52
-#define EC16(x) le16_to_host(x) /* Convert little endian to host */
53
-
54
-static const char *langcodes[] = {
55
-    "",   "EN", "FR", "GE", "SP", "IT", "SW", "DA", "NO", "FI", "AM",
56
-    "SF", "SG", "PO", "TU", "IC", "RU", "HU", "DU", "BL", "AU", "BG",
57
-    "AS", "NZ", "IF", "CS", "SK", "PL", "SL", "TC", "HK", "ZH", "JA",
58
-    "TH", "AF", "SQ", "AH", "AR", "HY", "TL", "BE", "BN", "BG", "MY",
59
-    "CA", "HR", "CE", "IE", "SF", "ET", "FA", "CF", "GD", "KA", "EL",
60
-    "CG", "GU", "HE", "HI", "IN", "GA", "SZ", "KN", "KK", "KM", "KO",
61
-    "LO", "LV", "LT", "MK", "MS", "ML", "MR", "MO", "MN", "NN", "BP",
62
-    "PA", "RO", "SR", "SI", "SO", "OS", "LS", "SH", "FS", "TA", "TE",
63
-    "BO", "TI", "CT", "TK", "UK", "UR", "",   "VI", "CY", "ZU"
64
-};
65
-
66
-#ifndef O_BINARY
67
-#define O_BINARY 0
68
-#endif
69
-
70
-#define SIS_MAX_NAME 512
71
-#define SIS_MAX_SIZE 134217728
72
-
73
-static char *sis_utf16_decode(const char *str, uint32_t length)
74
-{
75
-	char *decoded;
76
-	uint32_t i, j;
77
-
78
-
79
-    if(!length || length % 2) {
80
-	cli_dbgmsg("SIS: sis_utf16_decode: Broken filename (length == %d)\n", length);
81
-	return NULL;
82
-    }
83
-
84
-    if(!(decoded = cli_calloc(length / 2 + 1, sizeof(char))))
85
-	return NULL;
86
-
87
-    for(i = 0, j = 0; i < length; i += 2, j++) {
88
-       decoded[j] = str[i + 1] << 4;
89
-       decoded[j] += str[i];
90
-       if(decoded[j] == '%')
91
-	   decoded[j] = '_';
92
-    }
93
-
94
-    return decoded;
95
-}
96
-
97
-static int sis_extract_simple(int fd, char *mfile, uint32_t length, uint32_t offset, uint16_t nlangs, uint8_t compressed, uint8_t *ifile, const char *dir, cli_ctx *ctx)
98
-{
99
-	const char *typedir = NULL;
100
-	char *sname = NULL, *dname = NULL, *subdir, *fname, *buff;
101
-	int desc, i;
102
-	uint8_t get_dname = 1;
103
-	uint32_t namelen, nameoff, filelen, fileoff, val;
104
-	struct stat sb;
105
-	uLong osize = 0;
106
-	uLongf csize = 0;
107
-
108
-
109
-    if(offset + 24 + 8 * nlangs >= length) {
110
-	cli_errmsg("SIS: sis_extract_simple: Broken file record\n");
111
-	return CL_EFORMAT;
112
-    }
113
-
114
-    switch(cli_readint32(mfile + offset)) {
115
-	case 0x00:
116
-	    cli_dbgmsg("SIS: File type: Standard file\n");
117
-	    typedir = "standard";
118
-	    break;
119
-	case 0x01:
120
-	    cli_dbgmsg("SIS: File type: Text file\n");
121
-	    typedir = "text";
122
-	    get_dname = 0;
123
-	    break;
124
-	case 0x02:
125
-	    cli_dbgmsg("SIS: File type: Component file\n");
126
-	    typedir = "component";
127
-	    get_dname = 0;
128
-	    break;
129
-	case 0x03:
130
-	    cli_dbgmsg("SIS: File type: Run file\n");
131
-	    typedir = "run";
132
-	    val = cli_readint32(mfile + offset + 4);
133
-	    switch(val & 0xff) {
134
-		case 0x00:
135
-		    cli_dbgmsg("SIS:    * During installation only\n");
136
-		    break;
137
-		case 0x01:
138
-		    cli_dbgmsg("SIS:    * During removal only\n");
139
-		    break;
140
-		case 0x02:
141
-		    cli_dbgmsg("SIS:    * During installation and removal\n");
142
-		    break;
143
-		default:
144
-		    cli_warnmsg("SIS: sis_extract_simple: Unknown value in file details (0x%x)\n", cli_readint32(mfile + offset + 4));
145
-	    }
146
-	    switch(val & 0xff00) {
147
-		case 0x0000:
148
-		    break;
149
-		case 0x0100:
150
-		    cli_dbgmsg("SIS:    * Ends when installation finished\n");
151
-		    break;
152
-		case 0x0200:
153
-		    cli_dbgmsg("SIS:    * Waits until closed before continuing\n");
154
-		    break;
155
-		default:
156
-		    cli_warnmsg("SIS: sis_extract_simple: Unknown value in file details (0x%x)\n", cli_readint32(mfile + offset + 4));
157
-	    }
158
-	    break;
159
-	case 0x04:
160
-	    cli_dbgmsg("SIS: File type: Null file\n");
161
-	    return CL_CLEAN;
162
-	case 0x05:
163
-	    cli_dbgmsg("SIS: File type: MIME file\n");
164
-	    return CL_CLEAN;
165
-	default:
166
-	    cli_warnmsg("SIS: Unknown file type in file record\n");
167
-    }
168
-
169
-    /* Source name */
170
-    namelen = (uint32_t) cli_readint32(mfile + offset + 8);
171
-    if(namelen > SIS_MAX_NAME) {
172
-	cli_warnmsg("SIS: sis_extract_simple: Source name too long and will not be decoded\n");
173
-    } else {
174
-	nameoff = cli_readint32(mfile + offset + 12);
175
-	if(nameoff >= length || nameoff + namelen >= length) {
176
-	    cli_errmsg("SIS: sis_extract_simple: Broken source name data\n");
177
-	    return CL_EFORMAT;
178
-	}
179
-
180
-	if((sname = sis_utf16_decode(mfile + nameoff, namelen)))
181
-	    cli_dbgmsg("SIS: Source name: %s\n", sname);
182
-	else
183
-	    cli_warnmsg("SIS: Source name not decoded\n");
184
-    }
185
-
186
-    /* Destination name */
187
-    if(get_dname) {
188
-	namelen = (uint32_t) cli_readint32(mfile + offset + 16);
189
-	if(namelen > SIS_MAX_NAME) {
190
-	    cli_warnmsg("SIS: sis_extract_simple: Destination name too long and will not be decoded\n");
191
-	} else {
192
-	    nameoff = cli_readint32(mfile + offset + 20);
193
-	    if(nameoff >= length || nameoff + namelen >= length) {
194
-		cli_errmsg("SIS: sis_extract_simple: Broken destination name data\n");
195
-		if(sname)
196
-		    free(sname);
197
-		return CL_EFORMAT;
198
-	    }
199
-
200
-	    if((dname = sis_utf16_decode(mfile + nameoff, namelen)))
201
-		cli_dbgmsg("SIS: Destination name: %s\n", dname);
202
-	    else
203
-		cli_warnmsg("SIS: Destination name not decoded\n");
204
-	}
205
-    }
206
-
207
-    if(!cli_leavetemps_flag) {
208
-	if(sname)
209
-	    free(sname);
210
-	if(dname)
211
-	    free(dname);
212
-    }
213
-
214
-    /* Files */
215
-    if(typedir) {
216
-	if(!(subdir = cli_malloc(strlen(dir) + strlen(typedir) + 2)))
217
-	    return CL_EMEM;
218
-	sprintf(subdir, "%s/%s", dir, typedir);
219
-    } else {
220
-	if(!(subdir = cli_strdup(dir)))
221
-	    return CL_EMEM;
222
-    }
223
-
224
-    if(stat(subdir, &sb) == -1) {
225
-	if(mkdir(subdir, 0700) == -1) {
226
-	    free(subdir);
227
-	    return CL_EIO;
228
-	}
229
-    }
230
-
231
-    for(i = 0; i < nlangs; i++) {
232
-	filelen = cli_readint32(mfile + offset + 24 + 4 * i);
233
-	fileoff = cli_readint32(mfile + offset + 24 + 4 * i + 4 * nlangs);
234
-
235
-	if(fileoff == length) {
236
-	    cli_dbgmsg("SIS: Null file (installation record)\n");
237
-	    *ifile = 1;
238
-	    continue;
239
-	} else if (fileoff > length) {
240
-	    if(!*ifile) {
241
-		cli_errmsg("SIS: sis_extract_simple: Broken file data (fileoff)\n");
242
-		free(subdir);
243
-		return CL_EFORMAT;
244
-	    } else {
245
-		cli_dbgmsg("SIS: Null file (installation track)\n");
246
-		continue;
247
-	    }
248
-	}
249
-
250
-	if(filelen >= length || filelen + fileoff > length) {
251
-	    cli_errmsg("SIS: sis_extract_simple: Broken file data (filelen, fileoff)\n");
252
-	    free(subdir);
253
-	    return CL_EFORMAT;
254
-	}
255
-
256
-	if(!(fname = cli_gentemp(subdir))) {
257
-	    free(subdir);
258
-	    return CL_EMEM;
259
-	}
260
-
261
-	if(compressed) {
262
-	    csize = (uLong) filelen;
263
-	    filelen = cli_readint32(mfile + offset + 24 + 4 * i + 8 * nlangs);
264
-	    osize = (uLongf) filelen;
265
-
266
-	    if(!osize) {
267
-		cli_dbgmsg("SIS: Empty file, skipping\n");
268
-		free(fname);
269
-		continue;
270
-	    }
271
-
272
-	    cli_dbgmsg("SIS: Compressed size: %u\n", (unsigned int) csize);
273
-	    cli_dbgmsg("SIS: Original size: %u\n", (unsigned int) osize);
274
-
275
-	    if(ctx->limits && ctx->limits->maxfilesize && osize > ctx->limits->maxfilesize) {
276
-		cli_dbgmsg("SIS: Size exceeded (%u, max: %lu)\n", (unsigned int) osize, ctx->limits->maxfilesize);
277
-		if(BLOCKMAX) {
278
-		    *ctx->virname = "SIS.ExceededFileSize";
279
-		    free(subdir);
280
-		    free(fname);
281
-		    return CL_VIRUS;
282
-		}
283
-		/* osize is not reliable so continue */
284
-	    }
285
-
286
-	    if((osize <= 3 * csize) || (ctx->limits && ctx->limits->maxfilesize && osize > ctx->limits->maxfilesize))
287
-		osize = 3 * csize;
288
-
289
-	    if(!(buff = cli_malloc((size_t) osize))) {
290
-		cli_errmsg("SIS: sis_extract_simple: Can't allocate decompression buffer\n");
291
-		free(subdir);
292
-		free(fname);
293
-		return CL_EIO;
294
-	    } 
295
-
296
-	    if(uncompress((Bytef *) buff, &osize , (Bytef *) mfile + fileoff, csize) != Z_OK) {
297
-		cli_dbgmsg("SIS: sis_extract_simple: File decompression failed\n");
298
-		free(buff);
299
-		free(subdir);
300
-		free(fname);
301
-		return CL_EIO;
302
-	    }
303
-
304
-	    if(osize != (uLongf) filelen) {
305
-		cli_dbgmsg("SIS: WARNING: Real original size: %u\n", (unsigned int) osize);
306
-		filelen = (uint32_t) osize;
307
-	    }
308
-
309
-	} else {
310
-	    buff = mfile + fileoff;
311
-	}
312
-
313
-	if((desc = open(fname, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, S_IRUSR|S_IWUSR)) == -1) {
314
-	    cli_errmsg("SIS: sis_extract_simple: Can't create new file %s\n", fname);
315
-	    free(subdir);
316
-	    free(fname);
317
-	    if(compressed)
318
-		free(buff);
319
-	    return CL_EIO;
320
-	} 
321
-
322
-	if((uint32_t) cli_writen(desc, buff, filelen) != filelen) {
323
-	    cli_errmsg("SIS: sis_extract_simple: Can't write %d bytes to %s\n", filelen, fname);
324
-	    free(subdir);
325
-	    free(fname);
326
-	    if(compressed)
327
-		free(buff);
328
-	    close(desc);
329
-	    return CL_EIO;
330
-	} else {
331
-	    if(compressed)
332
-		cli_dbgmsg("SIS: File decompressed into %s\n", fname);
333
-	    else
334
-		cli_dbgmsg("SIS: File saved into %s\n", fname);
335
-	}
336
-
337
-	if(close(desc) == -1) {
338
-	    cli_errmsg("SIS: sis_extract_simple: Can't close descriptor %d\n", desc);
339
-	    free(subdir);
340
-	    free(fname);
341
-	    if(compressed)
342
-		free(buff);
343
-	    return CL_EIO;
344
-	} 
345
-
346
-	free(fname);
347
-
348
-	if(compressed)
349
-	    free(buff);
350
-    }
351
-
352
-    free(subdir);
353
-    return CL_SUCCESS;
354
-}
355
-
356
-int cli_scansis(int desc, cli_ctx *ctx)
357
-{
358
-	struct sis_file_hdr file_hdr;
359
-	struct sis_file_hdr6 file_hdr6;
360
-	uint8_t release = 0, compressed, ifile = 0;
361
-	uint16_t opts, nlangs, *langrecs, nfiles;
362
-	uint32_t frecord, n;
363
-	size_t length;
364
-	char *mfile = NULL, *langs, *dir;
365
-	struct stat sb;
366
-	int i, ret;
367
-
368
-
369
-    if(fstat(desc, &sb) == -1) {
370
-	cli_errmsg("SIS: fstat() failed\n");
371
-	return CL_EIO;
372
-    }
373
-
374
-    if(sb.st_size < (off_t) sizeof(struct sis_file_hdr)) {
375
-	cli_dbgmsg("SIS: Broken or not a SIS file (too small)\n");
376
-	return CL_CLEAN;
377
-    }
378
-
379
-    length = sb.st_size;
380
-
381
-    if(length <= SIS_MAX_SIZE) {
382
-	mfile = (char *) mmap(NULL, length, PROT_READ, MAP_PRIVATE, desc, 0);
383
-	if(mfile == MAP_FAILED) {
384
-	    cli_errmsg("SIS: mmap() failed\n");
385
-	    return CL_EMEM;
386
-	} else {
387
-	    cli_dbgmsg("SIS: mmap'ed file\n");
388
-	    memcpy(&file_hdr, mfile, sizeof(struct sis_file_hdr));
389
-	}
390
-    } else {
391
-	cli_warnmsg("SIS: File too large (> %d)\n", SIS_MAX_SIZE);
392
-	return CL_CLEAN;
393
-    }
394
-
395
-    if(EC32(file_hdr.uid3) != 0x10000419) {
396
-	cli_dbgmsg("SIS: Not a SIS file\n");
397
-	munmap(mfile, length);
398
-	return CL_CLEAN;
399
-    }
400
-
401
-    switch(EC32(file_hdr.uid2)) {
402
-	case 0x1000006d:
403
-	    cli_dbgmsg("SIS: EPOC release 3, 4 or 5\n");
404
-	    release = 3;
405
-	    break;
406
-	case 0x10003a12:
407
-	    cli_dbgmsg("SIS: EPOC release 6\n");
408
-	    release = 6;
409
-	    break;
410
-	case 0x100039ce:
411
-	case 0x10003a38:
412
-	    cli_dbgmsg("SIS: Application(?)\n");
413
-	    return CL_CLEAN;
414
-	default:
415
-	    cli_warnmsg("SIS: Unknown value of UID 2 (EPOC release == 0x%x) -> not a real SIS file??\n", EC32(file_hdr.uid2));
416
-	    munmap(mfile, length);
417
-	    return CL_CLEAN;
418
-    }
419
-
420
-    /* TODO: Verify checksums (uid4 and checksum) */
421
-
422
-    /* Languages */
423
-    nlangs = EC16(file_hdr.nlangs);
424
-    cli_dbgmsg("SIS: Number of languages: %d\n", nlangs);
425
-
426
-    if(nlangs && nlangs < 100) {
427
-
428
-	if(EC32(file_hdr.plangs) >= length || EC32(file_hdr.plangs) + nlangs * 2 >= (uint32_t) sb.st_size) {
429
-	    cli_errmsg("SIS: Broken file structure (language records)\n");
430
-	    munmap(mfile, length);
431
-	    return CL_EFORMAT;
432
-	}
433
-
434
-	if(!(langrecs = (uint16_t *) cli_malloc(nlangs * 2))) {
435
-	    munmap(mfile, length);
436
-	    return CL_EMEM;
437
-	}
438
-
439
-	memcpy(langrecs, mfile + EC32(file_hdr.plangs), nlangs * 2);
440
-
441
-	if(!(langs = (char *) cli_calloc(nlangs * 3 + 1, sizeof(char)))) {
442
-	    munmap(mfile, length);
443
-	    free(langrecs);
444
-	    return CL_EMEM;
445
-	}
446
-
447
-	for(i = 0; i < nlangs; i++) {
448
-	    strncat(langs, langcodes[EC16(langrecs[i]) % 98], 2);
449
-	    if(i != nlangs - 1)
450
-		strncat(langs, " ", 1);
451
-	}
452
-	cli_dbgmsg("SIS: Supported languages: %s\n", langs);
453
-	free(langrecs);
454
-	free(langs);
455
-
456
-    } else  {
457
-	cli_errmsg("SIS: Incorrect number of languages (%d)\n", nlangs);
458
-	munmap(mfile, length);
459
-	return CL_EFORMAT;
460
-    }
461
-
462
-    cli_dbgmsg("SIS: Offset of languages records: %d\n", EC32(file_hdr.plangs));
463
-
464
-    if(EC16(file_hdr.ilang))
465
-	cli_dbgmsg("SIS: Installation language: %d\n", EC16(file_hdr.ilang));
466
-
467
-    /* Requisites */
468
-    cli_dbgmsg("SIS: Number of requisites: %d\n", EC16(file_hdr.nreqs));
469
-    cli_dbgmsg("SIS: Offset of requisites records: %d\n", EC32(file_hdr.preqs));
470
-
471
-    /* Options flags */
472
-    opts = EC16(file_hdr.options);
473
-    cli_dbgmsg("SIS: Options:\n");
474
-    if(opts & 0x0001)
475
-	cli_dbgmsg("SIS:    * File is in Unicode format\n");
476
-    if(opts & 0x0002)
477
-	cli_dbgmsg("SIS:    * File is distributable\n");
478
-    if(opts & 0x0008) {
479
-	cli_dbgmsg("SIS:    * Archived files are not compressed\n");
480
-	compressed = 0;
481
-    } else {
482
-	cli_dbgmsg("SIS:    * Archived files are compressed\n");
483
-	compressed = 1;
484
-    }
485
-    if(opts & 0x0010)
486
-	cli_dbgmsg("SIS:    * File installation shuts down all applications\n");
487
-
488
-    /* Type flags */
489
-    switch(EC16(file_hdr.type)) {
490
-	case 0x0000:
491
-	    cli_dbgmsg("SIS: Type: Contains an application\n");
492
-	    break;
493
-	case 0x0001:
494
-	    cli_dbgmsg("SIS: Type: Contains a shared/system component\n");
495
-	    break;
496
-	case 0x0002:
497
-	    cli_dbgmsg("SIS: Type: Contains an optional (selectable) component\n");
498
-	    break;
499
-	case 0x0003:
500
-	    cli_dbgmsg("SIS: Type: Configures an existing application or service\n");
501
-	    break;
502
-	case 0x0004:
503
-	    cli_dbgmsg("SIS: Type: Patches an existing component\n");
504
-	    break;
505
-	case 0x0005:
506
-	    cli_dbgmsg("SIS: Type: Upgrades an existing component\n");
507
-	    break;
508
-	default:
509
-	    cli_warnmsg("SIS: Unknown value of type\n");
510
-    } 
511
-
512
-    cli_dbgmsg("SIS: Major version: %d\n", EC16(file_hdr.majorver));
513
-    cli_dbgmsg("SIS: Minor version: %d\n", EC16(file_hdr.minorver));
514
-
515
-    if(release == 6) {
516
-
517
-	if(sizeof(struct sis_file_hdr) + sizeof(struct sis_file_hdr6) >= length) {
518
-	    cli_errmsg("SIS: Broken file structure (language records)\n");
519
-	    munmap(mfile, length);
520
-	    return CL_EFORMAT;
521
-	}
522
-
523
-	memcpy(&file_hdr6, mfile + sizeof(struct sis_file_hdr), sizeof(struct sis_file_hdr6));
524
-	cli_dbgmsg("SIS: Maximum space required: %d\n", EC32(file_hdr6.maxispace));
525
-    }
526
-
527
-    /* Files */
528
-    nfiles = EC16(file_hdr.nfiles);
529
-
530
-    if(ctx->limits && ctx->limits->maxfiles && nfiles > ctx->limits->maxfiles) {
531
-	cli_dbgmsg("SIS: Files limit reached (max: %d)\n", ctx->limits->maxfiles);
532
-	if(BLOCKMAX) {
533
-	    *ctx->virname = "SIS.ExceededFilesLimit";
534
-	    munmap(mfile, length);
535
-	    return CL_VIRUS;
536
-	}
537
-	return CL_CLEAN;
538
-    }
539
-
540
-    cli_dbgmsg("SIS: Number of files: %d\n", nfiles);
541
-    cli_dbgmsg("SIS: Offset of files records: %d\n", EC32(file_hdr.pfiles));
542
-
543
-    if((frecord = EC32(file_hdr.pfiles)) >= length) {
544
-	cli_errmsg("SIS: Broken file structure (frecord)\n");
545
-	munmap(mfile, length);
546
-	return CL_EFORMAT;
547
-    }
548
-
549
-    dir = cli_gentemp(NULL);
550
-    if(!dir || mkdir(dir, 0700) == -1) {
551
-	cli_errmsg("SIS: Can't create temporary directory %s\n", dir ? dir : "");
552
-	munmap(mfile, length);
553
-	return CL_ETMPDIR;
554
-    }
555
-
556
-    for(i = 0; i < nfiles; i++) {
557
-
558
-	cli_dbgmsg("SIS: -----\n");
559
-
560
-	if(frecord + 4 >= length) {
561
-	    cli_errmsg("SIS: Broken file structure (frecord)\n");
562
-	    munmap(mfile, length);
563
-	    if(!cli_leavetemps_flag)
564
-		cli_rmdirs(dir);
565
-	    free(dir);
566
-	    return CL_EFORMAT;
567
-	}
568
-
569
-	switch(cli_readint32(mfile + frecord)) {
570
-	    case 0x00000000:
571
-		cli_dbgmsg("SIS: Simple file record\n");
572
-		if((ret = sis_extract_simple(desc, mfile, sb.st_size, frecord + 4, 1, compressed, &ifile, dir, ctx))) {
573
-		    munmap(mfile, length);
574
-		    if(!cli_leavetemps_flag)
575
-			cli_rmdirs(dir);
576
-		    free(dir);
577
-		    return ret;
578
-		}
579
-
580
-		if(release == 6)
581
-		    frecord += 32 + 12 + 4;
582
-		else
583
-		    frecord += 28 + 4 + 4;
584
-
585
-		break;
586
-	    case 0x00000001:
587
-		cli_dbgmsg("SIS: Multiple languages file record\n");
588
-		/* TODO: Pass language strings into sis_extract */
589
-		if((ret = sis_extract_simple(desc, mfile, sb.st_size, frecord + 4, nlangs, compressed, &ifile, dir, ctx))) {
590
-		    munmap(mfile, length);
591
-		    if(!cli_leavetemps_flag)
592
-			cli_rmdirs(dir);
593
-		    free(dir);
594
-		    return ret;
595
-		}
596
-
597
-		if(release == 6)
598
-		    frecord += 32 + 12 * nlangs + 4;
599
-		else
600
-		    frecord += 28 + 4 * nlangs + 4;
601
-
602
-		break;
603
-	    case 0x00000002:
604
-		cli_dbgmsg("SIS: Options record\n");
605
-		if(frecord + 8 >= length) {
606
-		    munmap(mfile, length);
607
-		    if(!cli_leavetemps_flag)
608
-			cli_rmdirs(dir);
609
-		    free(dir);
610
-		    return CL_EFORMAT;
611
-		}
612
-
613
-		n = cli_readint32(mfile + frecord + 4);
614
-		cli_dbgmsg("SIS: Number of options: %d\n", n);
615
-
616
-		if(n > 128 || frecord + 8 * n * nlangs >= length) {
617
-		    cli_errmsg("SIS: Incorrect number of options\n");
618
-		    munmap(mfile, length);
619
-		    if(!cli_leavetemps_flag)
620
-			cli_rmdirs(dir);
621
-		    free(dir);
622
-		    return CL_EFORMAT;
623
-		}
624
-
625
-		frecord += 8 + 8 * n * nlangs + 16;
626
-
627
-		break;
628
-	    case 0x00000003:
629
-	    case 0x00000004:
630
-		cli_dbgmsg("SIS: If/ElseIf record\n");
631
-		if(frecord + 8 >= length) {
632
-		    munmap(mfile, length);
633
-		    if(!cli_leavetemps_flag)
634
-			cli_rmdirs(dir);
635
-		    free(dir);
636
-		    return CL_EFORMAT;
637
-		}
638
-
639
-		n = cli_readint32(mfile + frecord + 4);
640
-		cli_dbgmsg("SIS: Size of conditional expression: %d\n", n);
641
-
642
-		if(n >= length) {
643
-		    cli_errmsg("SIS: Incorrect size of conditional expression\n");
644
-		    munmap(mfile, length);
645
-		    if(!cli_leavetemps_flag)
646
-			cli_rmdirs(dir);
647
-		    free(dir);
648
-		    return CL_EFORMAT;
649
-		}
650
-
651
-		frecord += 8 + n;
652
-		break;
653
-	    case 0x00000005:
654
-		cli_dbgmsg("SIS: Else record\n");
655
-		frecord += 4;
656
-		break;
657
-	    case 0x00000006:
658
-		cli_dbgmsg("SIS: EndIf record\n");
659
-		frecord += 4;
660
-		break;
661
-	    default:
662
-		cli_warnmsg("SIS: Unknown file record type\n");
663
-	}
664
-    }
665
-
666
-    /* scan extracted files */
667
-    cli_dbgmsg("SIS:  ****** Scanning extracted files ******\n");
668
-    ret = cli_scandir(dir, ctx);
669
-
670
-    if(!cli_leavetemps_flag)
671
-	cli_rmdirs(dir);
672
-
673
-    free(dir);
674
-    munmap(mfile, length);
675
-
676
-    return ret;
677
-}
678
-
679
-#else /* HAVE_MMAP */
680
-
681
-#include "clamav.h"
682
-#include "others.h"
683
-#include "sis.h"
684
-
685
-int cli_scansis(int desc, cli_ctx *ctx)
686
-{
687
-    cli_warnmsg("Support for SIS files not compiled in!\n");
688
-    return CL_CLEAN;
689
-}
690
-
691
-#endif /* HAVE_MMAP */
692 1
deleted file mode 100644
... ...
@@ -1,63 +0,0 @@
1
-/*
2
- *  Copyright (C) 2006 Sensory Networks, Inc.
3
- *	      Written by Tomasz Kojm
4
- *
5
- *  This program is free software; you can redistribute it and/or modify
6
- *  it under the terms of the GNU General Public License as published by
7
- *  the Free Software Foundation; either version 2 of the License, or
8
- *  (at your option) any later version.
9
- *
10
- *  This program is distributed in the hope that it will be useful,
11
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- *  GNU General Public License for more details.
14
- *
15
- *  You should have received a copy of the GNU General Public License
16
- *  along with this program; if not, write to the Free Software
17
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
- *  MA 02110-1301, USA.
19
- */
20
-
21
-#ifndef __SIS_H
22
-#define __SIS_H
23
-
24
-#include "clamav.h"
25
-#include "others.h"
26
-
27
-struct sis_file_hdr {
28
-    uint32_t uid1;
29
-    uint32_t uid2;
30
-    uint32_t uid3;
31
-    uint32_t uid4;
32
-    uint16_t checksum;
33
-    uint16_t nlangs;
34
-    uint16_t nfiles;
35
-    uint16_t nreqs;
36
-    uint16_t ilang;
37
-    uint16_t ifiles;
38
-    uint16_t idrive;
39
-    uint16_t ncaps;
40
-    uint32_t iver;
41
-    uint16_t options;
42
-    uint16_t type;
43
-    uint16_t majorver;
44
-    uint16_t minorver;
45
-    uint16_t variant;
46
-    uint32_t plangs;
47
-    uint32_t pfiles;
48
-    uint32_t preqs;
49
-    uint32_t pcerts;
50
-    uint32_t pname;
51
-};
52
-
53
-struct sis_file_hdr6 {
54
-    uint32_t psig;
55
-    uint32_t pcaps;
56
-    uint32_t ispace;
57
-    uint32_t maxispace;
58
-    uint32_t reserved[4];
59
-};
60
-
61
-int cli_scansis(int desc, cli_ctx *ctx);
62
-
63
-#endif
... ...
@@ -194,9 +194,9 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
194 194
 
195 195
   cli_dbgmsg("spin: Key8 is %x, Len is %x\n", key8, len);
196 196
 
197
-  if (!CLI_ISCONTAINED(spinned, sections[sectcnt].rsz, ep, len+0x1fe5-1) || !CLI_ISCONTAINED(spinned, sections[sectcnt].rsz, ep+0x3217, 4)) {
197
+  if (!CLI_ISCONTAINED(spinned, sections[sectcnt].rsz, ep, len+0x1fe5-1)) {
198 198
     free(spinned);
199
-    cli_dbgmsg("spin: len or key out of bounds, giving up\n");
199
+    cli_dbgmsg("spin: len out of bounds, giving up\n");
200 200
     return 1;
201 201
   }
202 202
 
... ...
@@ -212,6 +212,12 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
212 212
     curr--;
213 213
   }
214 214
 
215
+  if (!CLI_ISCONTAINED(spinned, sections[sectcnt].rsz, ep+0x3217, 4)) {
216
+    free(spinned);
217
+    cli_dbgmsg("spin: key out of bounds, giving up\n");
218
+    return 1;
219
+  }
220
+
215 221
   curr = ep+0x26eb;
216 222
   key32 = cli_readint32(curr);
217 223
   if ( (len = cli_readint32(curr+5)) != 0x5a0) {
... ...
@@ -261,7 +267,7 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
261 261
       char *ptr = src + sections[j].raw;
262 262
       uint32_t keydup = key32;
263 263
       
264
-      if (!CLI_ISCONTAINED(src, (unsigned int)ssize, ptr, size)) {
264
+      if (!CLI_ISCONTAINED(src, ssize, ptr, size)) {
265 265
 	cli_dbgmsg("spin: sect %d out of file, giving up\n", j);
266 266
 	return 1; /* FIXME: Already checked in pe.c? */
267 267
       }
... ...
@@ -293,7 +299,7 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
293 293
   cli_dbgmsg("spin: Key is %x, Len is %x\n", key32, len);
294 294
   curr = ep+0x28d3;
295 295
 
296
-  if (!CLI_ISCONTAINED(src, (unsigned int)ssize, curr, len)) { /* always true but i may decide to remove the previous check */
296
+  if (!CLI_ISCONTAINED(src, ssize, curr, len)) { /* always true but i may decide to remove the previous check */
297 297
     cli_dbgmsg("spin: key out of bounds, giving up\n");
298 298
     return 1;
299 299
   }
... ...
@@ -318,7 +324,7 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
318 318
   cli_dbgmsg("spin: POLY1 len is %x\n", len);
319 319
   curr+=0xf; /* POLY1 */
320 320
   emu = ep+0x6d4;
321
-  if (!CLI_ISCONTAINED(src, (unsigned int)ssize, emu, len)) {
321
+  if (!CLI_ISCONTAINED(src, ssize, emu, len)) {
322 322
     cli_dbgmsg("spin: poly1 out of bounds\n");
323 323
     return 1;
324 324
   }
... ...
@@ -366,34 +372,41 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
366 366
   bitmap = cli_readint32(ep+0x3061);
367 367
   bitman = bitmap;
368 368
 
369
+  if(ctx->limits && ctx->limits->maxfilesize) {
370
+    unsigned long int filesize = 0;
371
+    
372
+    for (j=0; j<sectcnt; j++) {
373
+      if (bitmap&1) {
374
+	if ( filesize > ctx->limits->maxfilesize || sections[j].vsz > ctx->limits->maxfilesize - filesize ) return 2;
375
+	filesize += sections[j].vsz;
376
+      }
377
+      bitmap>>=1;
378
+    }
379
+    
380
+    bitmap = bitman;
381
+  }
382
+
369 383
   cli_dbgmsg("spin: Compression bitmap is %x\n", bitmap);
370 384
   if ( (sects= (char **) cli_malloc(sectcnt*sizeof(char *))) == NULL )
371 385
     return 1;
372 386
 
373
-  key8 = 0;
387
+  len = 0;
374 388
   for (j=0; j<sectcnt; j++) {
375
-    uint32_t thissize = (bitmap&1) ? sections[j].vsz : sections[j].rsz;
376
-    if(ctx->limits && ctx->limits->maxfilesize && ((unsigned long int)thissize > ctx->limits->maxfilesize || (unsigned long int)blobsz > ctx->limits->maxfilesize - thissize)) {
377
-      key8++;
378
-      cli_dbgmsg("spin: section %d size exceeded (%u, %lu)\n", j, thissize, ctx->limits->maxfilesize);
379
-      break;
380
-    }
381 389
     if (bitmap&1) {
382
-      if ( (sects[j] = (char *) cli_calloc(thissize, sizeof(char)) ) == NULL ) {
383
-	cli_dbgmsg("spin: malloc(%d) failed\n", thissize);
384
-	key8++;
385
-	break;
386
-      }
387
-      blobsz+=thissize;
388
-      cli_dbgmsg("spin: Growing sect%d: was %x will be %x\n", j, sections[j].rsz, thissize);
389
-      if ( cli_unfsg(src + sections[j].raw, sects[j], sections[j].rsz, thissize, NULL, NULL) == -1 ) {
390
-	key8++;
391
-	j++;
392
-	cli_dbgmsg("spin: Unpack failure\n");
393
-	break;
394
-      }
390
+       if ( (sects[j] = (char *) cli_malloc(sections[j].vsz) ) == NULL ) {
391
+	 cli_dbgmsg("spin: malloc(%d) failed\n", sections[j].vsz);
392
+	 len = 1;
393
+	 break;
394
+       }
395
+       blobsz+=sections[j].vsz;
396
+       memset(sects[j], 0, sections[j].vsz);
397
+       cli_dbgmsg("spin: Growing sect%d: was %x will be %x\n", j, sections[j].rsz, sections[j].vsz);
398
+       if ( cli_unfsg(src + sections[j].raw, sects[j], sections[j].rsz, sections[j].vsz, NULL, NULL) == -1 ) {
399
+	 len++;
400
+         cli_dbgmsg("spin: Unpack failure\n");
401
+       }
395 402
     } else {
396
-      blobsz+=thissize;
403
+      blobsz+=sections[j].rsz;
397 404
       sects[j] = src + sections[j].raw;
398 405
       cli_dbgmsg("spin: Not growing sect%d\n", j);
399 406
     }
... ...
@@ -402,12 +415,12 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
402 402
   
403 403
   cli_dbgmsg("spin: decompression complete\n");
404 404
  
405
-  if ( key8 ) {
405
+  if ( len ) {
406 406
     int t;
407 407
     for (t=0 ; t<j ; t++) {
408 408
       if (bitman&1)
409 409
 	free(sects[t]);
410
-      bitman = bitman >>1;
410
+      bitman = bitman >>1 & 0x7fffffff;
411 411
     }
412 412
     free(sects);
413 413
     return 1;
... ...
@@ -485,7 +498,7 @@ int unspin(char *src, int ssize, struct cli_exe_section *sections, int sectcnt,
485 485
   cli_dbgmsg ("spin: free bitmap is %x\n", bitman);
486 486
   for (j=0; j<sectcnt; j++) {
487 487
     if (bitmap&1) free(sects[j]);
488
-    bitman = bitman >>1;
488
+    bitman = bitman >>1 & 0x7fffffff;
489 489
   }
490 490
   free(sects);
491 491
   return 1; /* :( */
492 492
deleted file mode 100644
... ...
@@ -1,665 +0,0 @@
1
-/*
2
- *  Copyright (C) 2003 - 2005 Tomasz Kojm <tkojm@clamav.net>
3
- *	      (C) 2006 Sensory Networks, Inc.
4
- *
5
- *  The code of this module was based on zziplib 0.12.83:
6
- *  (c) 1999 - 2002 Guido Draheim <guidod@gmx.de>, published under
7
- *  the Lesser GNU General Public License
8
- *
9
- *  This program is free software; you can redistribute it and/or modify
10
- *  it under the terms of the GNU General Public License version 2 as
11
- *  published by the Free Software Foundation.
12
- *
13
- *  This program is distributed in the hope that it will be useful,
14
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- *  GNU General Public License for more details.
17
- *
18
- *  You should have received a copy of the GNU General Public License
19
- *  along with this program; if not, write to the Free Software
20
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
- *  MA 02110-1301, USA.
22
- */
23
-
24
-#if HAVE_CONFIG_H
25
-#include "clamav-config.h"
26
-#endif
27
-
28
-#include <stdio.h>
29
-#include <string.h>
30
-#include <stdlib.h>
31
-#include <zlib.h>
32
-#include <sys/types.h>
33
-#include <sys/stat.h>
34
-#ifdef HAVE_UNISTD_H
35
-#include <unistd.h>
36
-#endif
37
-#include <fcntl.h>
38
-
39
-#include "clamav.h"
40
-#include "others.h"
41
-#include "unzip.h"
42
-
43
-#define EC32(x) le32_to_host(x) /* Convert little endian to host */
44
-#define EC16(x) le16_to_host(x)
45
-
46
-#define __sizeof(X) ((ssize_t)(sizeof(X)))
47
-
48
-#define ZIPBUFSIZ   1024
49
-#define ZIP32K	    32768
50
-
51
-inline static void __fixup_rootseek(off_t offset_of_trailer, struct zip_disk_trailer *trailer)
52
-{
53
-    if((off_t) EC32(trailer->z_rootseek) >
54
-	offset_of_trailer - (off_t) EC32(trailer->z_rootsize) &&
55
-	offset_of_trailer > (off_t) EC32(trailer->z_rootsize))
56
-	    trailer->z_rootseek = (uint32_t) (offset_of_trailer -  EC32(trailer->z_rootsize)); 
57
-}
58
-
59
-static int __zip_find_disk_trailer(int fd, off_t filesize, struct zip_disk_trailer *trailer, off_t *start)
60
-{
61
-	char *buf, *end, *tail;
62
-	off_t offset = 0, bufsize;
63
-	struct zip_root_dirent dirent;
64
-	uint32_t u_rootseek, shift = 0;
65
-	int i;
66
-
67
-
68
-    if(!trailer) {
69
-	cli_errmsg("Unzip: __zip_find_disk_trailer: trailer == NULL\n");
70
-	return CL_ENULLARG;
71
-    }
72
-
73
-    if(filesize < __sizeof(struct zip_disk_trailer)) {
74
-	cli_errmsg("Unzip: __zip_find_disk_trailer: File too short\n");
75
-	return CL_EFORMAT;
76
-    }
77
-
78
-    if(!(buf = cli_malloc(ZIPBUFSIZ)))
79
-	return CL_EMEM;
80
-
81
-    offset = filesize;
82
-    while(1) {
83
-
84
-	if(offset <= 0) {
85
-	     cli_dbgmsg("Unzip: __zip_find_disk_trailer: Central directory not found\n");
86
-	     free(buf);
87
-	     return CL_EFORMAT;
88
-	}
89
-
90
-	if(offset >= ZIPBUFSIZ) {
91
-	    if(offset == filesize)
92
-		offset -= ZIPBUFSIZ;
93
-	    else
94
-		offset -= ZIPBUFSIZ - sizeof(struct zip_disk_trailer);
95
-
96
-	    bufsize = ZIPBUFSIZ;
97
-	} else {
98
-	    if(filesize < ZIPBUFSIZ)
99
-		bufsize = offset;
100
-	    else
101
-		bufsize = ZIPBUFSIZ;
102
-
103
-	    offset = 0;
104
-	}
105
-
106
-        if(lseek(fd, offset, SEEK_SET) < 0) {
107
-	    cli_errmsg("Unzip: __zip_find_disk_trailer: Can't lseek descriptor %d\n", fd);
108
-	    free(buf);
109
-	    return CL_EIO;
110
-	}
111
-
112
-        if(cli_readn(fd, buf, (size_t) bufsize) < (ssize_t) bufsize) {
113
-	    cli_errmsg("Unzip: __zip_find_disk_trailer: Can't read %u bytes\n", (unsigned int) bufsize);
114
-	    free(buf);
115
-	    return CL_EIO;
116
-	}
117
-
118
-	end = buf + bufsize;
119
-	for(tail = end - 1; tail >= buf; tail--) {
120
-	    if((*tail == 'P') && (end - tail >= __sizeof(struct zip_disk_trailer) - 2) && cli_readint32(tail) == ZIP_DISK_TRAILER_MAGIC) {
121
-		if(end - tail >= __sizeof(struct zip_disk_trailer)) {
122
-		    memcpy(trailer, tail, sizeof(struct zip_disk_trailer)); 
123
-		} else {
124
-		    memcpy(trailer, tail, sizeof(struct zip_disk_trailer) - 2);
125
-		    trailer->z_comment = 0; 
126
-		}
127
-		__fixup_rootseek(offset + tail - buf, trailer);
128
-
129
-		u_rootseek = EC32(trailer->z_rootseek);
130
-		if(u_rootseek > (uint32_t) filesize) {
131
-		    cli_dbgmsg("Unzip: __zip_find_disk_trailer: u_rootseek > filesize, continue search\n");
132
-		    continue;
133
-		}
134
-
135
-		for(i = 0; i < 2; i++) {
136
-		    if(u_rootseek + shift + sizeof(dirent) < (uint32_t) filesize) {
137
-			if(lseek(fd, u_rootseek + shift, SEEK_SET) < 0) {
138
-			    cli_errmsg("Unzip: __zip_find_disk_trailer: Can't lseek descriptor %d\n", fd);
139
-			    free(buf);
140
-			    return CL_EIO;
141
-			}
142
-
143
-			if(cli_readn(fd, &dirent, sizeof(dirent)) < __sizeof(dirent)) {
144
-			    cli_errmsg("Unzip: __zip_find_disk_trailer: Can't read %u bytes\n", (unsigned int) bufsize);
145
-			    free(buf);
146
-			    return CL_EIO;
147
-			}
148
-
149
-			if(EC32(dirent.z_magic) == ZIP_ROOT_DIRENT_MAGIC) {
150
-			    cli_dbgmsg("Unzip: __zip_find_disk_trailer: found file header at %u, shift %u\n", u_rootseek + shift, shift);
151
-			    free(buf);
152
-			    *start = shift;
153
-			    return CL_SUCCESS;
154
-			}
155
-
156
-			shift = *start;
157
-		    }
158
-		}
159
-	    }
160
-	}
161
-    }
162
-
163
-    /* this should never be reached */
164
-    free(buf);
165
-    return CL_EFORMAT;
166
-}
167
-
168
-static int __zip_parse_root_directory(int fd, struct zip_disk_trailer *trailer, zip_dir_hdr **hdr_return, off_t start)
169
-{
170
-	struct zip_root_dirent dirent, *d;
171
-	zip_dir_hdr *hdr, *hdr0, *prev_hdr;
172
-	uint16_t *p_reclen = NULL, entries;
173
-	uint32_t offset;
174
-	struct stat sb;
175
-	uint16_t u_entries  = EC16(trailer->z_entries);   
176
-	uint32_t u_rootsize = EC32(trailer->z_rootsize);  
177
-	uint32_t u_rootseek = EC32(trailer->z_rootseek) + start;
178
-	uint16_t u_extras, u_comment, u_namlen, u_flags;
179
-	unsigned int bfcnt;
180
-	char *pt;
181
-
182
-
183
-    if(fstat(fd, &sb) == -1) {
184
-	cli_errmsg("Unzip: __zip_parse_root_directory: Can't fstat file descriptor %d\n", fd);
185
-	return CL_EIO;
186
-    }
187
-
188
-    if(!u_entries) {
189
-	cli_errmsg("Unzip: __zip_parse_root_directory: File contains no entries\n");
190
-	return CL_EFORMAT;
191
-    }
192
-
193
-    if(u_rootsize > (uint32_t) sb.st_size) {
194
-	cli_errmsg("Unzip: __zip_parse_root_directory: Incorrect root size\n");
195
-	return CL_EFORMAT;
196
-    }
197
-
198
-    hdr0 = (zip_dir_hdr*) cli_malloc(u_rootsize);
199
-    if (!hdr0) 
200
-        return CL_EMEM;
201
-
202
-    hdr = hdr0;
203
-
204
-    for(entries = u_entries, offset = 0; entries > 0; entries--) {
205
-
206
-	if(lseek(fd, u_rootseek + offset, SEEK_SET) < 0) {
207
-	    free(hdr0);
208
-	    cli_errmsg("Unzip: __zip_parse_root_directory: Can't lseek descriptor %d\n", fd);
209
-            return CL_EIO;
210
-	}
211
-
212
-        if(cli_readn(fd, &dirent, sizeof(dirent)) < __sizeof(dirent)) {
213
-	    if(entries != u_entries) {
214
-		entries = 0;
215
-		break;
216
-	    } else {
217
-		free(hdr0);
218
-		cli_dbgmsg("Unzip: __zip_parse_root_directory: Can't read %d bytes\n", sizeof(dirent));
219
-		return CL_EIO;
220
-	    }
221
-	}
222
-        d = &dirent;
223
-
224
-	if(offset + sizeof(struct zip_root_dirent) > u_rootsize) {
225
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Entry %d outside of root directory\n", entries);
226
-	    break;
227
-	}
228
-
229
-        u_extras  = EC16(d->z_extras); 
230
-        u_comment = EC16(d->z_comment); 
231
-
232
-        u_namlen  = EC16(d->z_namlen); 
233
-	if(u_namlen > 1024) {
234
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Entry %d name too long\n", entries);
235
-	    break;
236
-	}
237
-
238
-	u_flags   = EC16(d->z_flags);
239
-
240
-        hdr->d_crc32 = EC32(d->z_crc32);
241
-        hdr->d_csize = EC32(d->z_csize); 
242
-        hdr->d_usize = EC32(d->z_usize); 
243
-        hdr->d_off   = EC32(d->z_off) + start;
244
-
245
-        hdr->d_compr = EC16(d->z_compr);
246
-
247
-	bfcnt = 0;
248
-	if(!hdr->d_compr && hdr->d_csize != hdr->d_usize) {
249
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: File claims to be stored but csize != usize\n");
250
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Also checking for method 'deflated'\n");
251
-	    hdr->d_bf[bfcnt] = ZIP_METHOD_DEFLATED;
252
-	    bfcnt++;
253
-	} else if(hdr->d_compr && hdr->d_csize == hdr->d_usize) {
254
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: File claims to be deflated but csize == usize\n");
255
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Also checking for method 'stored'\n");
256
-	    hdr->d_bf[bfcnt] = ZIP_METHOD_STORED;
257
-	    bfcnt++;
258
-	}
259
-	hdr->d_bf[bfcnt] = -1;
260
-
261
-	hdr->d_flags = u_flags;
262
-
263
-	if(offset + sizeof(struct zip_root_dirent) + u_namlen > u_rootsize) {
264
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Name of entry %d outside of root directory\n", entries);
265
-	    break;
266
-	}
267
-
268
-	if(cli_readn(fd, hdr->d_name, u_namlen) != u_namlen) {
269
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: Can't read name of entry %d\n", entries);
270
-	    break;
271
-	}
272
-
273
-        hdr->d_name[u_namlen] = '\0'; 
274
-        hdr->d_namlen = u_namlen;
275
-
276
-        offset += sizeof(struct zip_root_dirent) + u_namlen + u_extras + u_comment;
277
-
278
-        if(offset > u_rootsize) {
279
-	    cli_dbgmsg("Unzip: __zip_parse_root_directory: End of entry %d outside of root directory\n", entries);
280
-	    break;
281
-	}
282
-
283
-	pt = (char *) hdr + sizeof(zip_dir_hdr) + u_namlen + 1;
284
-	pt += ((long) pt) & 1;
285
-	pt += ((long) pt) & 2;
286
-	hdr->d_reclen = (uint16_t) (pt - (char *) hdr);
287
-	p_reclen = &hdr->d_reclen;
288
-
289
-	prev_hdr = hdr;
290
-	hdr = (zip_dir_hdr *) ((char *) hdr + hdr->d_reclen);
291
-    }
292
-
293
-    if(p_reclen) {
294
-	*p_reclen = 0;
295
-	if(hdr_return) 
296
-	    *hdr_return = hdr0;
297
-    } else {
298
-	free(hdr0);
299
-    }
300
-
301
-    return entries ? CL_EFORMAT : CL_SUCCESS;
302
-}
303
-
304
-int zip_dir_close(zip_dir *dir)
305
-{
306
-    if(dir->hdr0)
307
-	free(dir->hdr0);
308
-
309
-    if(dir->cache.fp)
310
-	free(dir->cache.fp);
311
-
312
-    if(dir->cache.buf32k)
313
-	free(dir->cache.buf32k);
314
-
315
-    free(dir);
316
-    return CL_SUCCESS;
317
-}
318
-
319
-static int __zip_dir_parse(zip_dir *dir, off_t start)
320
-{
321
-	int ret;
322
-	struct zip_disk_trailer trailer;
323
-	struct stat sb;
324
-
325
-
326
-    if(fstat(dir->fd, &sb) == -1) {
327
-	cli_errmsg("Unzip: __zip_dir_parse: Can't fstat file descriptor %d\n", dir->fd);
328
-	return CL_EIO;
329
-    }
330
-
331
-    if((ret = __zip_find_disk_trailer(dir->fd, sb.st_size, &trailer, &start)))
332
-	return ret;
333
-
334
-    if((ret = __zip_parse_root_directory(dir->fd, &trailer, &dir->hdr0, start)))
335
-	return ret;
336
-
337
-    return CL_SUCCESS;
338
-}
339
-
340
-zip_dir *zip_dir_open(int fd, off_t start, int *errcode_p)
341
-{
342
-	int ret;
343
-	zip_dir * dir;
344
-
345
-
346
-    dir = (zip_dir *) cli_calloc(1, sizeof(zip_dir));
347
-    if(!dir) {
348
-	if(errcode_p)
349
-	    *errcode_p = CL_EMEM;
350
-	return NULL;
351
-    }
352
-
353
-    if(start) {
354
-	if(lseek(fd, start, SEEK_SET) == -1) {
355
-	    cli_errmsg("Unzip: zip_dir_open: Can't lseek descriptor %d\n", fd);
356
-	    if(errcode_p)
357
-		*errcode_p = CL_EIO;
358
-	    return NULL;
359
-	}
360
-    }
361
-
362
-    dir->fd = fd;
363
-
364
-    if((ret = __zip_dir_parse(dir, start))) {
365
-	zip_dir_close(dir);
366
-	if(errcode_p)
367
-	    *errcode_p = CL_EMEM;
368
-	return NULL;
369
-    }
370
-
371
-    dir->hdr = dir->hdr0;
372
-
373
-    if(errcode_p)
374
-	*errcode_p = CL_SUCCESS;
375
-
376
-    return dir;
377
-}
378
-
379
-int zip_dir_read(zip_dir *dir, zip_dirent *d)
380
-{
381
-
382
-    if(!dir || !dir->hdr || !d)
383
-	return 0;
384
-
385
-    d->d_compr = dir->hdr->d_compr;
386
-    d->d_csize = dir->hdr->d_csize;
387
-    d->st_size = dir->hdr->d_usize;
388
-    d->d_name  = dir->hdr->d_name;
389
-    d->d_flags = dir->hdr->d_flags;
390
-    d->d_off   = dir->hdr->d_off;
391
-    d->d_crc32 = dir->hdr->d_crc32;
392
-
393
-    if(!dir->hdr->d_reclen)
394
-	dir->hdr = NULL;
395
-    else
396
-	dir->hdr = (zip_dir_hdr *) ((char *) dir->hdr + dir->hdr->d_reclen);
397
-
398
-    return 1;
399
-}
400
-
401
-int zip_file_close(zip_file *fp)
402
-{
403
-	zip_dir *dir;
404
-
405
-
406
-    if(!fp) {
407
-	cli_errmsg("Unzip: zip_file_close: fp == NULL\n");
408
-	return CL_ENULLARG;
409
-    }
410
-
411
-    inflateEnd(&fp->d_stream);
412
-
413
-    dir = fp->dir;
414
-    if(fp->buf32k) {
415
-        if(!dir->cache.buf32k)
416
-	    dir->cache.buf32k = fp->buf32k;
417
-        else
418
-	    free(fp->buf32k);
419
-    }
420
-
421
-    memset(fp, 0, sizeof(zip_file)); 
422
-
423
-    if(!dir->cache.fp)
424
-	dir->cache.fp = fp;
425
-    else
426
-	free(fp);
427
-
428
-    return CL_SUCCESS;
429
-}
430
-
431
-static int __zip_inflate_init(zip_file *fp, zip_dir_hdr *hdr)
432
-{
433
-	int ret;
434
-	fp->method = hdr->d_compr;
435
-	fp->restlen = hdr->d_usize;
436
-
437
-
438
-    if(fp->method) {
439
-        memset(&fp->d_stream, 0, sizeof(fp->d_stream));
440
-
441
-        ret = inflateInit2(&fp->d_stream, -MAX_WBITS);
442
-
443
-        if(ret != Z_OK) {
444
-	    cli_errmsg("Unzip: __zip_inflate_init: inflateInit2 failed\n");
445
-	    return CL_EZIP;
446
-	}
447
-
448
-        fp->crestlen = hdr->d_csize;
449
-    }
450
-
451
-    return CL_SUCCESS;
452
-}
453
-
454
-zip_file *zip_file_open(zip_dir *dir, const char *name, int d_off)
455
-{
456
-	int ret;
457
-	zip_file *fp = NULL;
458
-	zip_dir_hdr *hdr = dir->hdr0;
459
-        const char *hdr_name;
460
-        ssize_t dataoff;
461
-        struct zip_file_header *hp;
462
- 
463
-
464
-    if(!dir || dir->fd < 0) {
465
-	cli_errmsg("Unzip: zip_file_open: dir == NULL || dir->fd <= 0\n");
466
-	return NULL;
467
-    }
468
-
469
-    if(!hdr) {
470
-	cli_errmsg("Unzip: zip_file_open: hdr == NULL\n");
471
-	dir->errcode = CL_ENULLARG;
472
-	return NULL;
473
-    }
474
-
475
-    while(1) {
476
-	hdr_name = hdr->d_name;
477
-
478
-        if(!strcmp(hdr_name, name) && (d_off == -1 || (uint32_t) d_off == hdr->d_off)) {
479
-	    switch (hdr->d_compr) {
480
-		case ZIP_METHOD_STORED:
481
-		case ZIP_METHOD_DEFLATED:
482
-		case ZIP_METHOD_DEFLATED64:
483
-		    break;
484
-
485
-		case ZIP_METHOD_SHRUNK:
486
-		case ZIP_METHOD_REDUCEDx1:
487
-		case ZIP_METHOD_REDUCEDx2:
488
-		case ZIP_METHOD_REDUCEDx3:
489
-		case ZIP_METHOD_REDUCEDx4:
490
-		case ZIP_METHOD_IMPLODED:
491
-		case ZIP_METHOD_TOKENIZED:
492
-		case ZIP_METHOD_IMPLODED_DCL:
493
-		case ZIP_METHOD_BZIP2:
494
-		case ZIP_METHOD_AES:
495
-		    cli_dbgmsg("Unzip: zip_file_open: Not supported compression method (%d)\n", hdr->d_compr);
496
-		    dir->errcode = CL_ESUPPORT;
497
-		    return NULL;
498
-
499
-		default:
500
-		    cli_errmsg("Unzip: zip_file_read: Unknown compression method (%d)\n", hdr->d_compr);
501
-		    dir->errcode = CL_EFORMAT;
502
-		    return NULL;
503
-            }
504
-
505
-            if(dir->cache.fp) {
506
-                fp = dir->cache.fp;
507
-		dir->cache.fp = NULL;
508
-            } else {
509
-                fp = (zip_file *) cli_calloc(1, sizeof(zip_file));
510
-                if(!fp) {
511
-		    dir->errcode = CL_EMEM;
512
-		    return NULL;
513
-		}
514
-            }
515
-
516
-            fp->dir = dir;
517
-
518
-            if(dir->cache.buf32k) {
519
-		fp->buf32k = dir->cache.buf32k;
520
-		dir->cache.buf32k = NULL;
521
-	    } else {
522
-                fp->buf32k = (char *) cli_malloc(ZIP32K);
523
-                if(!fp->buf32k) {
524
-		    dir->errcode = CL_EMEM;
525
-		    zip_file_close(fp);
526
-		    return NULL;
527
-		}
528
-            }
529
-
530
-            if(lseek(dir->fd, hdr->d_off, SEEK_SET) < 0) {
531
-		cli_errmsg("Unzip: zip_file_open: Can't lseek descriptor %d\n", dir->fd);
532
-		dir->errcode = CL_EIO;
533
-		zip_file_close(fp);
534
-		return NULL;
535
-	    }
536
-
537
-	    hp = (void *) fp->buf32k;
538
-	    dataoff = cli_readn(dir->fd, (void *) hp, sizeof(struct zip_file_header));
539
-
540
-	    if(dataoff < __sizeof(struct zip_file_header)) {
541
-		cli_errmsg("Unzip: zip_file_open: Can't read zip header (only read %d bytes)\n", dataoff);
542
-		dir->errcode = CL_EIO;
543
-		zip_file_close(fp);
544
-		return NULL;
545
-	    }
546
-
547
-	    dataoff = EC16(hp->z_namlen) + EC16(hp->z_extras);
548
-
549
-            if(lseek(dir->fd, dataoff, SEEK_CUR) < 0) {
550
-		cli_errmsg("Unzip: zip_file_open: Can't lseek descriptor %d\n", dir->fd);
551
-		dir->errcode = CL_EIO;
552
-		zip_file_close(fp);
553
-		return NULL;
554
-	    }
555
-
556
-            fp->usize = hdr->d_usize;
557
-            fp->csize = hdr->d_csize;
558
-
559
-	    fp->bf = hdr->d_bf;
560
-
561
-            ret = __zip_inflate_init(fp, hdr);
562
-
563
-	    if(ret) {
564
-		dir->errcode = CL_EIO;
565
-		zip_file_close(fp);
566
-		return NULL;
567
-	    }
568
-
569
-            return fp;
570
-
571
-        } else {
572
-            if(!hdr->d_reclen)
573
-                break;
574
-
575
-            hdr = (zip_dir_hdr *) ((char *) hdr + hdr->d_reclen);
576
-        }
577
-    }
578
-
579
-    dir->errcode = CL_EOPEN;
580
-    if(fp)
581
-	zip_file_close(fp);
582
-    return NULL;
583
-}
584
-
585
-ssize_t zip_file_read(zip_file *fp, char *buf, size_t len)
586
-{
587
-	zip_dir *dir; 
588
-	size_t l;
589
-	ssize_t bread;
590
-
591
-
592
-    if(!fp || !fp->dir) {
593
-	cli_errmsg("Unzip: zip_file_read: fp == NULL || fp->dir == NULL\n");
594
-	return -1;
595
-    }
596
-
597
-    dir = fp->dir;
598
-    l = fp->restlen > len ? len : fp->restlen;
599
-    if(!fp->restlen)
600
-        return 0;
601
-
602
-    switch(fp->method) {
603
-
604
-	case ZIP_METHOD_STORED:
605
-	    bread = cli_readn(dir->fd, buf, l);
606
-	    if(bread > 0) {
607
-		fp->restlen -= bread;
608
-	    } else if(bread < 0) {
609
-		cli_errmsg("Unzip: zip_file_read: Can't read %d bytes\n", l);
610
-		dir->errcode = CL_EIO;
611
-	    }
612
-	    return bread;
613
-
614
-	case ZIP_METHOD_DEFLATED:
615
-	case ZIP_METHOD_DEFLATED64:
616
-	    fp->d_stream.avail_out = l;
617
-	    fp->d_stream.next_out = (unsigned char *) buf;
618
-	    do {
619
-		int ret;
620
-		size_t startlen;
621
-
622
-		if(fp->crestlen > 0 && fp->d_stream.avail_in == 0) {
623
-		    size_t cl = (fp->crestlen < ZIP32K ? fp->crestlen : ZIP32K);
624
-		    ssize_t i = cli_readn(dir->fd, fp->buf32k, cl);
625
-		    if(i <= 0) {
626
-			dir->errcode = CL_EIO;
627
-			cli_errmsg("Unzip: zip_file_read: Can't read %d bytes (read %d)\n", cl, i);
628
-			return -1;
629
-		    }
630
-		    fp->crestlen -= i;
631
-		    fp->d_stream.avail_in = i;
632
-		    fp->d_stream.next_in = (unsigned char *) fp->buf32k;
633
-		}
634
-
635
-		startlen = fp->d_stream.total_out;
636
-		ret = inflate(&fp->d_stream, Z_NO_FLUSH);
637
-
638
-		if(ret == Z_STREAM_END) {
639
-		    fp->restlen = 0;
640
-		} else {
641
-		    if(ret == Z_OK) {
642
-			fp->restlen -= (fp->d_stream.total_out - startlen);
643
-		    } else {
644
-			if(fp->method == ZIP_METHOD_DEFLATED64) {
645
-			    cli_dbgmsg("Unzip: zip_file_read: Not supported compression method (%u)\n", fp->method);
646
-			    dir->errcode = CL_ESUPPORT;
647
-			} else {
648
-			    dir->errcode = CL_EZIP;
649
-			}
650
-			return -1;
651
-		    }
652
-		}
653
-	    } while(fp->restlen && fp->d_stream.avail_out);
654
-
655
-	    return l - fp->d_stream.avail_out;
656
-
657
-	default:
658
-	    /* this should not be reached because of the previous check in
659
-	     * zip_file_open
660
-	     */
661
-	    cli_errmsg("Unzip: zip_file_read: Unknown compression method (%d)\n", fp->method);
662
-	    dir->errcode = CL_EZIP;
663
-	    return -1;
664
-    }
665
-}
666 1
deleted file mode 100644
... ...
@@ -1,222 +0,0 @@
1
-/*
2
- *  Copyright (C) 2003 - 2006 Tomasz Kojm <tkojm@clamav.net>
3
- *	      (C) 2006 Sensory Networks, Inc.
4
- *
5
- *  The code of this module was based on zziplib 0.12.83:
6
- *  (c) 1999 - 2002 Guido Draheim <guidod@gmx.de>, published under
7
- *  the Lesser GNU General Public License
8
- *
9
- *  This program is free software; you can redistribute it and/or modify
10
- *  it under the terms of the GNU General Public License version 2 as
11
- *  published by the Free Software Foundation.
12
- *
13
- *  This program is distributed in the hope that it will be useful,
14
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- *  GNU General Public License for more details.
17
- *
18
- *  You should have received a copy of the GNU General Public License
19
- *  along with this program; if not, write to the Free Software
20
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
- *  MA 02110-1301, USA.
22
- */
23
-
24
-#ifndef __UNZIP_H
25
-#define __UNZIP_H
26
-
27
-#if HAVE_CONFIG_H
28
-#include "clamav-config.h"
29
-#endif
30
-
31
-#include <stddef.h>
32
-#include <stdio.h>
33
-#include <sys/types.h>
34
-
35
-#include "cltypes.h"
36
-
37
-#ifndef HAVE_ATTRIB_PACKED
38
-#define __attribute__(x)
39
-#endif
40
-
41
-#ifdef HAVE_PRAGMA_PACK
42
-#pragma pack(1)
43
-#endif
44
-
45
-#ifdef HAVE_PRAGMA_PACK_HPPA
46
-#pragma pack 1
47
-#endif
48
-
49
-/******** Zip format structures *********/
50
-
51
-/* Local file header */
52
-struct zip_file_header
53
-{
54
-#   define ZIP_FILE_HEADER_MAGIC 0x04034b50
55
-    uint32_t	    z_magic;	    /* local file header signature */
56
-    uint16_t	    z_version;	    /* version needed to extract */
57
-    uint16_t	    z_flags;	    /* general purpose bit flag */
58
-    uint16_t	    z_compr;	    /* compression method */
59
-    uint16_t	    z_modtime;	    /* last mod file time */
60
-    uint16_t	    z_moddate;	    /* last mod file date */
61
-    uint32_t	    z_crc32;	    /* crc-32 */
62
-    uint32_t	    z_csize;	    /* compressed size */
63
-    uint32_t	    z_usize;	    /* uncompressed size */
64
-    uint16_t	    z_namlen;	    /* file name length */
65
-    uint16_t	    z_extras;	    /* extra field length */
66
-
67
-    /* followed by filename (of variable size) */
68
-    /* followed by extra field (of variable size) */
69
-} __attribute__((packed));
70
-
71
-/* Data descriptor (only if bit 3 of z_flags is set) */
72
-struct zip_file_trailer
73
-{
74
-#   define ZIP_FILE_TRAILER_MAGIC 0x08074B50
75
-    uint32_t z_magic; /* data descriptor signature (0x08074b50) */
76
-    uint32_t z_crc32; /* crc-32 */
77
-    uint32_t z_csize; /* compressed size */
78
-    uint32_t z_usize; /* uncompressed size */
79
-} __attribute__((packed));
80
-
81
-/* Central file header */
82
-struct zip_root_dirent
83
-{
84
-#   define ZIP_ROOT_DIRENT_MAGIC 0x02014b50
85
-    uint32_t	    z_magic;	    /* central file header signature */
86
-    uint16_t	    z_version1;	    /* version made by */
87
-    uint16_t	    z_version2;	    /* version needed to extract */
88
-    uint16_t	    z_flags;	    /* general purpose bit flag */
89
-    uint16_t	    z_compr;	    /* compression method */
90
-    uint16_t	    z_modtime;	    /* last mod file time */
91
-    uint16_t	    z_moddate;	    /* last mod file date */
92
-    uint32_t	    z_crc32;	    /* crc-32 */
93
-    uint32_t	    z_csize;	    /* compressed size */
94
-    uint32_t	    z_usize;	    /* uncompressed size */
95
-    uint16_t	    z_namlen;	    /* file name length */
96
-    uint16_t	    z_extras;	    /* extra field length */
97
-    uint16_t	    z_comment;	    /* file comment length */
98
-    uint16_t	    z_diskstart;    /* disk number start */
99
-    uint16_t	    z_filetype;	    /* internal file attributes */
100
-    uint32_t	    z_filemode;	    /* extrnal file attributes */
101
-    uint32_t	    z_off;	    /* relative offset of local header */
102
-
103
-    /* followed by filename (of variable size) */
104
-    /* followed by extra field (of variable size) */
105
-    /* followed by file comment (of variable size) */
106
-} __attribute__((packed));
107
-
108
-/* End of central directory record */
109
-struct zip_disk_trailer
110
-{
111
-#   define	    ZIP_DISK_TRAILER_MAGIC 0x06054b50
112
-    uint32_t	    z_magic;		/* end of central dir signature */
113
-    uint16_t	    z_disk;		/* number of this disk */
114
-    uint16_t	    z_finaldisk;	/* number of the disk with the start
115
-					 * of the central dir
116
-					 */
117
-    uint16_t	    z_entries;		/* total number of entries in the
118
-					 * central dir on this disk
119
-					 */
120
-    uint16_t	    z_finalentries;	/* total number of entries in the
121
-					 * central dir
122
-					 */
123
-    uint32_t	    z_rootsize;		/* size of the central directory */
124
-    uint32_t	    z_rootseek;		/* offset of start of central directory
125
-					 * with respect to the starting disk
126
-					 * number
127
-					 */
128
-    uint16_t	    z_comment;		/* zipfile comment length */
129
-
130
-    /* followed by zipfile comment (of variable size) */
131
-} __attribute__((packed));
132
-
133
-#define ZIP_METHOD_STORED	    0
134
-#define ZIP_METHOD_SHRUNK	    1
135
-#define ZIP_METHOD_REDUCEDx1	    2
136
-#define ZIP_METHOD_REDUCEDx2	    3
137
-#define ZIP_METHOD_REDUCEDx3	    4
138
-#define ZIP_METHOD_REDUCEDx4	    5
139
-#define ZIP_METHOD_IMPLODED	    6
140
-#define ZIP_METHOD_TOKENIZED	    7
141
-#define ZIP_METHOD_DEFLATED	    8
142
-#define ZIP_METHOD_DEFLATED64	    9
143
-#define ZIP_METHOD_IMPLODED_DCL	    10
144
-#define ZIP_METHOD_BZIP2	    12
145
-#define ZIP_METHOD_AES		    99
146
-
147
-
148
-/******** Internal structures *********/
149
-
150
-struct __zip_file
151
-{
152
-    struct __zip_dir *dir; 
153
-    uint16_t method;
154
-    int16_t *bf;
155
-    size_t restlen;
156
-    size_t crestlen;
157
-    size_t usize;
158
-    size_t csize;
159
-    char *buf32k;
160
-    z_stream d_stream;
161
-};
162
-
163
-struct __zip_dir_hdr
164
-{
165
-    uint32_t    d_usize;	/* uncompressed size */
166
-    uint32_t    d_csize;        /* compressed size */
167
-    uint32_t    d_crc32;        /* crc-32 */
168
-    uint32_t    d_off;          /* offset of file in zipfile */
169
-    uint16_t    d_reclen;       /* next dir_hdr structure offset */
170
-    uint16_t    d_namlen;       /* explicit namelen of d_name */
171
-    uint16_t    d_compr;        /* compression type */
172
-    int16_t	d_bf[2];	/* compression type/brute force */
173
-    uint16_t	d_flags;	/* general purpose flags */
174
-    char        d_name[1];      /* actual name of the entry */
175
-};
176
-
177
-struct __zip_dirent
178
-{
179
-    uint16_t 	d_compr;	/* compression method */
180
-    uint32_t    d_csize;        /* compressed size */
181
-    uint32_t 	st_size;	/* file size / decompressed size */
182
-    uint16_t	d_flags;	/* general purpose flags */
183
-    char	*d_name;	/* file name / strdupped name */
184
-    uint32_t    d_crc32;        /* crc-32 */
185
-    uint32_t    d_off;          /* the offset in the file */
186
-};
187
-
188
-struct __zip_dir
189
-{
190
-    int fd;
191
-    int errcode;
192
-    struct {
193
-        struct __zip_file *fp;
194
-        char *buf32k;
195
-    } cache;
196
-    struct __zip_dir_hdr *hdr0;
197
-    struct __zip_dir_hdr *hdr;
198
-    struct __zip_dirent dirent;
199
-}; 
200
-
201
-/* typedefs */
202
-typedef struct __zip_dir	zip_dir;
203
-typedef struct __zip_dir_hdr	zip_dir_hdr;
204
-typedef struct __zip_file	zip_file;
205
-typedef struct __zip_dirent 	zip_dirent;
206
-
207
-zip_dir *zip_dir_open(int fd, off_t start, int *errcode_p);
208
-int zip_dir_read(zip_dir *dir, zip_dirent *d);
209
-zip_file *zip_file_open(zip_dir *dir, const char *name, int d_off);
210
-ssize_t zip_file_read(zip_file *fp, char *buf, size_t len);
211
-int zip_file_close(zip_file *fp);
212
-int zip_dir_close(zip_dir *dir);
213
-
214
-#ifdef HAVE_PRAGMA_PACK
215
-#pragma pack()
216
-#endif
217
-
218
-#ifdef HAVE_PRAGMA_PACK_HPPA
219
-#pragma pack
220
-#endif
221
-
222
-#endif /* __UNZIP_H */
223 1
deleted file mode 100644
... ...
@@ -1,361 +0,0 @@
1
-/*
2
- *  Copyright (C) 2006 Sensory Networks, Inc.
3
- *             Written by aCaB <acab@clamav.net>
4
- *  This program is free software; you can redistribute it and/or modify
5
- *  it under the terms of the GNU General Public License version 2 as
6
- *  published by the Free Software Foundation.
7
- *
8
- *  This program is distributed in the hope that it will be useful,
9
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
- *  GNU General Public License for more details.
12
- *
13
- *  You should have received a copy of the GNU General Public License
14
- *  along with this program; if not, write to the Free Software
15
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
- *  MA 02110-1301, USA.
17
- */
18
-
19
-/*
20
-** wwunpack.c
21
-**
22
-** 09/07/2k6 - Campioni del mondo!!!
23
-** 14/07/2k6 - RCE'ed + standalone sect unpacker
24
-** 15/07/2k6 - Merge started
25
-** 17/07/2k6 - Rebuild
26
-** 18/07/2k6 - Secured (well, hopefully...)
27
-**
28
-*/
29
-
30
-/*
31
-** Unpacks+rebuilds WWPack32 1.20
32
-**
33
-** Just boooooring stuff, blah.
34
-**
35
-*/
36
-
37
-
38
-/*
39
-** TODO:
40
-**
41
-** review
42
-** check eax vs al
43
-** (check for dll's)
44
-** (have a look at older versions)
45
-**
46
-*/
47
-
48
-
49
-#if HAVE_CONFIG_H
50
-#include "clamav-config.h"
51
-#endif
52
-
53
-#include <stdlib.h>
54
-#include <string.h>
55
-
56
-#include "cltypes.h"
57
-#include "others.h"
58
-#include "wwunpack.h"
59
-
60
-#define VAALIGN(s) (((s)/0x1000+((s)%0x1000!=0))*0x1000)
61
-#define FIXVS(v, r) (VAALIGN((r>v)?r:v))
62
-
63
-
64
-static int getbitmap(uint32_t *bitmap, char **src, uint8_t *bits, char *buf, unsigned int size) {
65
-  if (! CLI_ISCONTAINED(buf, size, *src, 4)) return 1;
66
-  *bitmap=cli_readint32(*src);
67
-  *src+=4;
68
-  *bits=32;
69
-  return 0;
70
-}
71
-
72
-static int getbits(uint8_t X, uint32_t *eax, uint32_t *bitmap, uint8_t *bits, char **src, char *buf, unsigned int size) {
73
-  *eax=*bitmap>>(32-X);
74
-  if (*bits>X) {
75
-    *bitmap<<=X;
76
-    *bits-=X;
77
-  } else if (*bits<X) {
78
-    X-=*bits;
79
-    *eax>>=X;
80
-    if (getbitmap(bitmap, src, bits, buf, size)) return 1;
81
-    *eax<<=X;
82
-    *eax|=*bitmap>>(32-X);
83
-    *bitmap<<=X;
84
-    *bits-=X;
85
-  } else {
86
-    if (getbitmap(bitmap, src, bits, buf, size)) return 1;
87
-  }
88
-  return 0;
89
-}
90
-
91
-static int wunpsect(char *packed, char *unpacked, unsigned int psize, unsigned int usize) {
92
-  char *src=packed, *dst=unpacked;
93
-  uint32_t bitmap, eax;
94
-  uint8_t bits;
95
-  unsigned int lostbit, getmorestuff;
96
-  uint16_t backbytes;
97
-  uint16_t backsize;
98
-  uint8_t oal;
99
-
100
-  if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;
101
-  eax=bitmap;
102
-
103
-  while (1) {
104
-    lostbit=bitmap>>31;
105
-    bitmap<<=1;
106
-    bits--;
107
-    if (!lostbit && bits) {
108
-      if (!(CLI_ISCONTAINED(packed, psize, src, 1) && CLI_ISCONTAINED(unpacked, usize, dst, 1))) return 1;
109
-      *dst++=*src++;
110
-      continue;
111
-    }
112
-    
113
-    if (!bits) {
114
-      if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;
115
-      eax=bitmap;
116
-      if (!lostbit) {
117
-	if (!(CLI_ISCONTAINED(packed, psize, src, 1) && CLI_ISCONTAINED(unpacked, usize, dst, 1))) return 1;
118
-	*dst++=*src++;
119
-	continue;
120
-      }
121
-    }
122
-    
123
-    if (getbits(2, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
124
-    
125
-    if ((eax&0xff)>=3) {
126
-      /* 50ff - two_bytes */
127
-      uint8_t fetchbits;
128
-      
129
-      if (getbits(2, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
130
-      fetchbits=(eax&0xff)+5;
131
-      eax--;
132
-      if ((int16_t)(eax&0xffff)<=0) {
133
-	/* 5113 */
134
-	backbytes=1<<fetchbits;
135
-	backbytes=(backbytes&0xff00)|((backbytes-31)&0xff);
136
-      } else {
137
-	/* 511b */
138
-	fetchbits++;
139
-	backbytes=1<<fetchbits;
140
-	backbytes-=0x9f;
141
-      }
142
-      /* 5125 */
143
-      if (getbits(fetchbits, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
144
-      if ((eax&0xffff)==0x1ff) break;
145
-      eax&=0xffff;
146
-      backbytes+=eax;
147
-      if (!(CLI_ISCONTAINED(unpacked, usize, dst-backbytes, 2) && CLI_ISCONTAINED(unpacked, usize, dst, 2))) return 1;
148
-      *dst=*(dst-backbytes);
149
-      dst++;
150
-      *dst=*(dst-backbytes);
151
-      dst++;
152
-      continue;
153
-    }
154
-
155
-    /* 5143 - more_backbytes */      
156
-    oal=eax&0xff;
157
-    getmorestuff=1;
158
-
159
-    
160
-    if (getbits(3, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
161
-    if ((eax&0xff)<=3) {
162
-      lostbit=0;
163
-      if ((eax&0xff)==3) {
164
-	/* next_bit_or_reseed */
165
-	lostbit=bitmap>>31;
166
-	bitmap<<=1;
167
-	bits--;
168
-	if (!bits) {
169
-	  if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1; 
170
-	}
171
-      }
172
-      eax=eax+lostbit+5;
173
-      /* jmp more_bb_commondock */
174
-    } else { /* >3 */
175
-      /* 5160 - more_bb_morethan3 */
176
-      if ((eax&0xff)==4) {
177
-	/* next_bit_or_reseed */
178
-	lostbit=bitmap>>31;
179
-	bitmap<<=1;
180
-	bits--;
181
-	if (!bits) {
182
-	  if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;  
183
-	}
184
-	eax=eax+lostbit+6;
185
-	/* jmp more_bb_commondock */
186
-      } else { /* !=4 */
187
-	eax+=7;
188
-	if ((eax&0xff)>=0x0d) {
189
-	  getmorestuff=0; /* jmp more_bb_PASTcommondock */
190
-	  if ((eax&0xff)==0x0d) {
191
-	    /* 5179  */
192
-	    if (getbits(0x0e, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
193
-	    eax+=0x1fe1;
194
-	  } else {
195
-	    /* 516c */
196
-	    if (getbits(0x0f, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
197
-	    eax+=0x5fe1;
198
-	  }
199
-	  /* jmp more_bb_PASTcommondock */
200
-	} /* al >= 0d */
201
-      } /* al != 4 */
202
-    } /* >3 */
203
-    
204
-    if (getmorestuff) {
205
-      /* 5192 - more_bb_commondock */
206
-      uint16_t bk=(1<<(eax&0xff))-0x1f;
207
-      if (getbits((eax&0xff), &eax, &bitmap, &bits, &src, packed, psize)) return 1;
208
-      eax+=bk;
209
-    }
210
-    
211
-    /* 51a7 - more_bb_pastcommondock */
212
-    eax&=0xffff;
213
-    backbytes=eax;
214
-    backsize=3+(oal!=1);
215
-    
216
-    if (oal<1) { /* overrides backsize */
217
-      /* 51bb - more_bb_again */
218
-      
219
-      /* next_bit_or_reseed */
220
-      lostbit=bitmap>>31;
221
-      bitmap<<=1;
222
-      bits--;
223
-      if (!bits) {
224
-	if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;  
225
-      }
226
-      if (!lostbit) {
227
-	/* 51c2 */
228
-	/* next_bit_or_reseed */
229
-	lostbit=bitmap>>31;
230
-	bitmap<<=1;
231
-	bits--;
232
-	if (!bits) {
233
-	  if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;   
234
-	}
235
-	eax=5+lostbit;
236
-	/* jmp setsize_and_backcopy */
237
-      } else {
238
-	/* 51ce - more_bb_again_and_again */
239
-	if (getbits(3, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
240
-	if (eax&0xff) {
241
-	  /* 51e6 */
242
-	  eax+=6;
243
-	  /* jmp setsize_and_backcopy */
244
-	} else {
245
-	  if (getbits(4, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
246
-	  if (eax&0xff) {
247
-	    /* 51e4 */
248
-	    eax+=7+6;
249
-	    /* jmp setsize_and_backcopy */
250
-	  } else {
251
-	    /* 51ea - OMGWTF */
252
-	    uint8_t c=4;
253
-	    uint16_t d=0x0d;
254
-	    
255
-	    while ( 1 ) {
256
-	      if (c!=7){
257
-		d+=2;
258
-		d<<=1;
259
-		d--;
260
-		
261
-		/* next_bit_or_reseed */
262
-		lostbit=bitmap>>31;
263
-		bitmap<<=1;
264
-		bits--;
265
-		if (!bits) {
266
-		  if (getbitmap(&bitmap, &src, &bits, packed, psize)) return 1;    
267
-		}
268
-		c++;
269
-		if (!lostbit) continue;
270
-		if (getbits(c, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
271
-		d+=eax&0xff;
272
-		eax&=0xffffff00;
273
-		eax|=d&0xff;
274
-	      } else {
275
-		if (getbits(14, &eax, &bitmap, &bits, &src, packed, psize)) return 1;
276
-	      }
277
-	      break;
278
-	    } /* while */
279
-	  } /* OMGWTF */
280
-	} /* eax&0xff */
281
-      } /* lostbit */
282
-	/* 521b - setsize_and_backcopy */
283
-      backsize=eax&0xffff;
284
-    }
285
-
286
-    /* 521e - backcopy */
287
-    if (!(CLI_ISCONTAINED(unpacked, usize, dst-backbytes, backsize) && CLI_ISCONTAINED(unpacked, usize, dst, backsize))) return 1;
288
-    while(backsize--){
289
-      *dst=*(dst-backbytes);
290
-      dst++;
291
-    }
292
-
293
-  } /* while true */
294
-
295
-  return 0;
296
-}
297
-
298
-int wwunpack(char *exe, uint32_t exesz, uint32_t headsize, uint32_t min, uint32_t wwprva, uint32_t e_lfanew, char *wwp, uint32_t wwpsz, uint16_t sects) {
299
-  char *stuff=wwp+0x2a1, *packed, *unpacked;
300
-  uint32_t rva, csize;
301
-
302
-  cli_dbgmsg("in wwunpack\n");
303
-
304
-
305
-  while(1) {
306
-    if (!CLI_ISCONTAINED(wwp, wwpsz, stuff, 17)) {
307
-      cli_dbgmsg("WWPack: next chunk out ouf file, giving up.\n");
308
-      return 1;
309
-    }
310
-    if ((csize=cli_readint32(stuff+8)*4)!=(uint32_t)cli_readint32(stuff+12)+4) {
311
-      cli_dbgmsg("WWPack: inconsistent/hacked data, go figure!\n");
312
-      return 1;
313
-    }
314
-    rva = wwprva-cli_readint32(stuff);
315
-    if((packed = (char *) cli_calloc(csize, sizeof(char))) == NULL) {
316
-      cli_dbgmsg("WWPack: Can't allocate %d bytes\n", csize);
317
-      return 1;
318
-    }
319
-    unpacked=exe+headsize+rva-min;
320
-    if (!CLI_ISCONTAINED(exe, exesz, unpacked, csize)) {
321
-      free(packed);
322
-      cli_dbgmsg("WWPack: packed data out of bounds, giving up.\n");
323
-      return 1;
324
-    }
325
-    memcpy(packed, unpacked, csize);
326
-    if (wunpsect(packed, unpacked, csize, exesz-(unpacked-exe))) {
327
-      free(packed);
328
-      cli_dbgmsg("WWPack: unpacking failed.\n");
329
-      return 1;
330
-    }
331
-    free(packed);
332
-    if (!stuff[16]) break;
333
-    stuff+=17;
334
-  }
335
-
336
-  stuff=exe+e_lfanew;
337
-  stuff[6]=sects&0xff;
338
-  stuff[7]=sects>>8;
339
-
340
-  csize=cli_readint32(wwp+0x295)+wwprva+0x299;
341
-  cli_dbgmsg("WWPack: found OEP @%x\n", csize);
342
-  cli_writeint32(stuff+0x28, csize);
343
-
344
-  csize=cli_readint32(stuff+0x50)-VAALIGN(wwpsz);
345
-  cli_writeint32(stuff+0x50, csize);
346
-
347
-
348
-  stuff+=0x18+(cli_readint32(stuff+0x14)&0xffff);
349
-  while (sects--) {
350
-    uint32_t v=cli_readint32(stuff+8);
351
-    uint32_t r=cli_readint32(stuff+16);
352
-    csize=FIXVS(v, r);
353
-    cli_writeint32(stuff+8, csize);
354
-    cli_writeint32(stuff+16, csize);
355
-    cli_writeint32(stuff+20, cli_readint32(stuff+12)-min+headsize);
356
-    stuff+=0x28;
357
-  }
358
-  memset(stuff, 0, 0x28);
359
-
360
-  return 0;
361
-}
362 1
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-/*
2
- *  Copyright (C) 2006 Sensory Networks, Inc.
3
- *             Written by aCaB <acab@clamav.net>
4
- *  This program is free software; you can redistribute it and/or modify
5
- *  it under the terms of the GNU General Public License version 2 as
6
- *  published by the Free Software Foundation.
7
- *
8
- *  This program is distributed in the hope that it will be useful,
9
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
- *  GNU General Public License for more details.
12
- *
13
- *  You should have received a copy of the GNU General Public License
14
- *  along with this program; if not, write to the Free Software
15
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
- *  MA 02110-1301, USA.
17
- */
18
-
19
-#ifndef __WWP32_H
20
-#define __WWP32_H
21
-
22
-#include "cltypes.h"
23
-#include "rebuildpe.h"
24
-
25
-int wwunpack(char *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, char *, uint32_t, uint16_t);
26
-
27
-#endif
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -18,11 +18,15 @@
18 18
 #  Copyright (C) 2007 Trog <trog@clamav.net>
19 19
 #
20 20
 
21
+srcdir = @srcdir@
22
+top_srcdir = @top_srcdir@
21 23
 VPATH = @srcdir@
22 24
 pkgdatadir = $(datadir)/@PACKAGE@
23 25
 pkglibdir = $(libdir)/@PACKAGE@
24 26
 pkgincludedir = $(includedir)/@PACKAGE@
27
+top_builddir = ..
25 28
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
29
+INSTALL = @INSTALL@
26 30
 install_sh_DATA = $(install_sh) -c -m 644
27 31
 install_sh_PROGRAM = $(install_sh) -c
28 32
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -65,34 +69,34 @@ am__libclamunrar_la_SOURCES_DIST = unrar15.c unrar20.h unrar.h \
65 65
 @ENABLE_UNRAR_TRUE@	unrar20.lo unrarppm.lo unrarvm.lo \
66 66
 @ENABLE_UNRAR_TRUE@	unrarcmd.lo unrarfilter.lo unrarhlp.lo
67 67
 libclamunrar_la_OBJECTS = $(am_libclamunrar_la_OBJECTS)
68
-libclamunrar_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
69
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
70
-	$(libclamunrar_la_LDFLAGS) $(LDFLAGS) -o $@
71 68
 @ENABLE_UNRAR_TRUE@am_libclamunrar_la_rpath = -rpath $(libdir)
72
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
69
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
73 70
 depcomp = $(SHELL) $(top_srcdir)/depcomp
74 71
 am__depfiles_maybe = depfiles
75 72
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
76 73
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
77
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
79
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
74
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
75
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
76
+	$(AM_CFLAGS) $(CFLAGS)
80 77
 CCLD = $(CC)
81
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
82
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
83
-	$(LDFLAGS) -o $@
78
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
79
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
84 80
 SOURCES = $(libclamunrar_la_SOURCES)
85 81
 DIST_SOURCES = $(am__libclamunrar_la_SOURCES_DIST)
86 82
 ETAGS = etags
87 83
 CTAGS = ctags
88 84
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89 85
 ACLOCAL = @ACLOCAL@
86
+AMDEP_FALSE = @AMDEP_FALSE@
87
+AMDEP_TRUE = @AMDEP_TRUE@
90 88
 AMTAR = @AMTAR@
91 89
 AR = @AR@
92 90
 AUTOCONF = @AUTOCONF@
93 91
 AUTOHEADER = @AUTOHEADER@
94 92
 AUTOMAKE = @AUTOMAKE@
95 93
 AWK = @AWK@
94
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
95
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
96 96
 CC = @CC@
97 97
 CCDEPMODE = @CCDEPMODE@
98 98
 CFGDIR = @CFGDIR@
... ...
@@ -116,13 +120,16 @@ ECHO_C = @ECHO_C@
116 116
 ECHO_N = @ECHO_N@
117 117
 ECHO_T = @ECHO_T@
118 118
 EGREP = @EGREP@
119
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
120
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
119 121
 EXEEXT = @EXEEXT@
120 122
 F77 = @F77@
121 123
 FFLAGS = @FFLAGS@
122 124
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
123 125
 GETENT = @GETENT@
124 126
 GREP = @GREP@
125
-INSTALL = @INSTALL@
127
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
128
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
126 129
 INSTALL_DATA = @INSTALL_DATA@
127 130
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
128 131
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -136,8 +143,9 @@ LIBTOOL = @LIBTOOL@
136 136
 LN_S = @LN_S@
137 137
 LTLIBOBJS = @LTLIBOBJS@
138 138
 MAINT = @MAINT@
139
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
140
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
139 141
 MAKEINFO = @MAKEINFO@
140
-MKDIR_P = @MKDIR_P@
141 142
 OBJEXT = @OBJEXT@
142 143
 PACKAGE = @PACKAGE@
143 144
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -154,13 +162,13 @@ STRIP = @STRIP@
154 154
 THREAD_LIBS = @THREAD_LIBS@
155 155
 TH_SAFE = @TH_SAFE@
156 156
 VERSION = @VERSION@
157
-abs_builddir = @abs_builddir@
158
-abs_srcdir = @abs_srcdir@
159
-abs_top_builddir = @abs_top_builddir@
160
-abs_top_srcdir = @abs_top_srcdir@
161 157
 ac_ct_CC = @ac_ct_CC@
162 158
 ac_ct_CXX = @ac_ct_CXX@
163 159
 ac_ct_F77 = @ac_ct_F77@
160
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
161
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
162
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
163
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
164 164
 am__include = @am__include@
165 165
 am__leading_dot = @am__leading_dot@
166 166
 am__quote = @am__quote@
... ...
@@ -172,7 +180,6 @@ build_alias = @build_alias@
172 172
 build_cpu = @build_cpu@
173 173
 build_os = @build_os@
174 174
 build_vendor = @build_vendor@
175
-builddir = @builddir@
176 175
 datadir = @datadir@
177 176
 datarootdir = @datarootdir@
178 177
 docdir = @docdir@
... ...
@@ -201,15 +208,12 @@ psdir = @psdir@
201 201
 sbindir = @sbindir@
202 202
 sendmailprog = @sendmailprog@
203 203
 sharedstatedir = @sharedstatedir@
204
-srcdir = @srcdir@
205 204
 sysconfdir = @sysconfdir@
206 205
 target = @target@
207 206
 target_alias = @target_alias@
208 207
 target_cpu = @target_cpu@
209 208
 target_os = @target_os@
210 209
 target_vendor = @target_vendor@
211
-top_builddir = @top_builddir@
212
-top_srcdir = @top_srcdir@
213 210
 @ENABLE_UNRAR_TRUE@INCLUDES = -I$(top_srcdir)
214 211
 @ENABLE_UNRAR_TRUE@libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
215 212
 @ENABLE_UNRAR_TRUE@libclamunrar_la_SOURCES = \
... ...
@@ -267,7 +271,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
267 267
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268 268
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
269 269
 	@$(NORMAL_INSTALL)
270
-	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
270
+	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
271 271
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
272 272
 	  if test -f $$p; then \
273 273
 	    f=$(am__strip_dir) \
... ...
@@ -278,7 +282,7 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
278 278
 
279 279
 uninstall-libLTLIBRARIES:
280 280
 	@$(NORMAL_UNINSTALL)
281
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
281
+	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
282 282
 	  p=$(am__strip_dir) \
283 283
 	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
284 284
 	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
... ...
@@ -293,7 +297,7 @@ clean-libLTLIBRARIES:
293 293
 	  rm -f "$${dir}/so_locations"; \
294 294
 	done
295 295
 libclamunrar.la: $(libclamunrar_la_OBJECTS) $(libclamunrar_la_DEPENDENCIES) 
296
-	$(libclamunrar_la_LINK) $(am_libclamunrar_la_rpath) $(libclamunrar_la_OBJECTS) $(libclamunrar_la_LIBADD) $(LIBS)
296
+	$(LINK) $(am_libclamunrar_la_rpath) $(libclamunrar_la_LDFLAGS) $(libclamunrar_la_OBJECTS) $(libclamunrar_la_LIBADD) $(LIBS)
297 297
 
298 298
 mostlyclean-compile:
299 299
 	-rm -f *.$(OBJEXT)
... ...
@@ -311,22 +315,22 @@ distclean-compile:
311 311
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrarvm.Plo@am__quote@
312 312
 
313 313
 .c.o:
314
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
315
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
316 316
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317 317
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 318
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
319 319
 
320 320
 .c.obj:
321
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
322
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
323 323
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
324 324
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325 325
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
326 326
 
327 327
 .c.lo:
328
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
329
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
330 330
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
331 331
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332 332
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
... ...
@@ -337,6 +341,10 @@ mostlyclean-libtool:
337 337
 clean-libtool:
338 338
 	-rm -rf .libs _libs
339 339
 
340
+distclean-libtool:
341
+	-rm -f libtool
342
+uninstall-info-am:
343
+
340 344
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
341 345
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
342 346
 	unique=`for i in $$list; do \
... ...
@@ -386,21 +394,22 @@ distclean-tags:
386 386
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
387 387
 
388 388
 distdir: $(DISTFILES)
389
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
390
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391
-	list='$(DISTFILES)'; \
392
-	  dist_files=`for file in $$list; do echo $$file; done | \
393
-	  sed -e "s|^$$srcdirstrip/||;t" \
394
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
395
-	case $$dist_files in \
396
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
397
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
398
-			   sort -u` ;; \
399
-	esac; \
400
-	for file in $$dist_files; do \
389
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
390
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
391
+	list='$(DISTFILES)'; for file in $$list; do \
392
+	  case $$file in \
393
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
394
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
395
+	  esac; \
401 396
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
398
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
399
+	    dir="/$$dir"; \
400
+	    $(mkdir_p) "$(distdir)$$dir"; \
401
+	  else \
402
+	    dir=''; \
403
+	  fi; \
402 404
 	  if test -d $$d/$$file; then \
403
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
404 405
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
405 406
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
406 407
 	    fi; \
... ...
@@ -416,7 +425,7 @@ check: check-am
416 416
 all-am: Makefile $(LTLIBRARIES)
417 417
 installdirs:
418 418
 	for dir in "$(DESTDIR)$(libdir)"; do \
419
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
419
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
420 420
 	done
421 421
 install: install-am
422 422
 install-exec: install-exec-am
... ...
@@ -451,7 +460,7 @@ distclean: distclean-am
451 451
 	-rm -rf ./$(DEPDIR)
452 452
 	-rm -f Makefile
453 453
 distclean-am: clean-am distclean-compile distclean-generic \
454
-	distclean-tags
454
+	distclean-libtool distclean-tags
455 455
 
456 456
 dvi: dvi-am
457 457
 
... ...
@@ -465,20 +474,12 @@ info-am:
465 465
 
466 466
 install-data-am:
467 467
 
468
-install-dvi: install-dvi-am
469
-
470 468
 install-exec-am: install-libLTLIBRARIES
471 469
 
472
-install-html: install-html-am
473
-
474 470
 install-info: install-info-am
475 471
 
476 472
 install-man:
477 473
 
478
-install-pdf: install-pdf-am
479
-
480
-install-ps: install-ps-am
481
-
482 474
 installcheck-am:
483 475
 
484 476
 maintainer-clean: maintainer-clean-am
... ...
@@ -499,23 +500,20 @@ ps: ps-am
499 499
 
500 500
 ps-am:
501 501
 
502
-uninstall-am: uninstall-libLTLIBRARIES
503
-
504
-.MAKE: install-am install-strip
502
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
505 503
 
506 504
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
507 505
 	clean-libLTLIBRARIES clean-libtool ctags distclean \
508 506
 	distclean-compile distclean-generic distclean-libtool \
509 507
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
510
-	install install-am install-data install-data-am install-dvi \
511
-	install-dvi-am install-exec install-exec-am install-html \
512
-	install-html-am install-info install-info-am \
513
-	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
514
-	install-ps install-ps-am install-strip installcheck \
508
+	install install-am install-data install-data-am install-exec \
509
+	install-exec-am install-info install-info-am \
510
+	install-libLTLIBRARIES install-man install-strip installcheck \
515 511
 	installcheck-am installdirs maintainer-clean \
516 512
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
517 513
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
518
-	tags uninstall uninstall-am uninstall-libLTLIBRARIES
514
+	tags uninstall uninstall-am uninstall-info-am \
515
+	uninstall-libLTLIBRARIES
519 516
 
520 517
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
521 518
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -18,11 +18,15 @@
18 18
 #  Copyright (C) 2007 Sourcefire, Inc.
19 19
 #
20 20
 
21
+srcdir = @srcdir@
22
+top_srcdir = @top_srcdir@
21 23
 VPATH = @srcdir@
22 24
 pkgdatadir = $(datadir)/@PACKAGE@
23 25
 pkglibdir = $(libdir)/@PACKAGE@
24 26
 pkgincludedir = $(includedir)/@PACKAGE@
27
+top_builddir = ..
25 28
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
29
+INSTALL = @INSTALL@
26 30
 install_sh_DATA = $(install_sh) -c -m 644
27 31
 install_sh_PROGRAM = $(install_sh) -c
28 32
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -60,34 +64,34 @@ LTLIBRARIES = $(lib_LTLIBRARIES)
60 60
 am__libclamunrar_iface_la_SOURCES_DIST = unrar_iface.c unrar_iface.h
61 61
 @ENABLE_UNRAR_TRUE@am_libclamunrar_iface_la_OBJECTS = unrar_iface.lo
62 62
 libclamunrar_iface_la_OBJECTS = $(am_libclamunrar_iface_la_OBJECTS)
63
-libclamunrar_iface_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
64
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
65
-	$(libclamunrar_iface_la_LDFLAGS) $(LDFLAGS) -o $@
66 63
 @ENABLE_UNRAR_TRUE@am_libclamunrar_iface_la_rpath = -rpath $(libdir)
67
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
64
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
68 65
 depcomp = $(SHELL) $(top_srcdir)/depcomp
69 66
 am__depfiles_maybe = depfiles
70 67
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
71 68
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
73
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
74
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
70
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
71
+	$(AM_CFLAGS) $(CFLAGS)
75 72
 CCLD = $(CC)
76
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
77
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
78
-	$(LDFLAGS) -o $@
73
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
74
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
79 75
 SOURCES = $(libclamunrar_iface_la_SOURCES)
80 76
 DIST_SOURCES = $(am__libclamunrar_iface_la_SOURCES_DIST)
81 77
 ETAGS = etags
82 78
 CTAGS = ctags
83 79
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
84 80
 ACLOCAL = @ACLOCAL@
81
+AMDEP_FALSE = @AMDEP_FALSE@
82
+AMDEP_TRUE = @AMDEP_TRUE@
85 83
 AMTAR = @AMTAR@
86 84
 AR = @AR@
87 85
 AUTOCONF = @AUTOCONF@
88 86
 AUTOHEADER = @AUTOHEADER@
89 87
 AUTOMAKE = @AUTOMAKE@
90 88
 AWK = @AWK@
89
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
90
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
91 91
 CC = @CC@
92 92
 CCDEPMODE = @CCDEPMODE@
93 93
 CFGDIR = @CFGDIR@
... ...
@@ -111,13 +115,16 @@ ECHO_C = @ECHO_C@
111 111
 ECHO_N = @ECHO_N@
112 112
 ECHO_T = @ECHO_T@
113 113
 EGREP = @EGREP@
114
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
115
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
114 116
 EXEEXT = @EXEEXT@
115 117
 F77 = @F77@
116 118
 FFLAGS = @FFLAGS@
117 119
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
118 120
 GETENT = @GETENT@
119 121
 GREP = @GREP@
120
-INSTALL = @INSTALL@
122
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
123
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
121 124
 INSTALL_DATA = @INSTALL_DATA@
122 125
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 126
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -131,8 +138,9 @@ LIBTOOL = @LIBTOOL@
131 131
 LN_S = @LN_S@
132 132
 LTLIBOBJS = @LTLIBOBJS@
133 133
 MAINT = @MAINT@
134
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
135
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
134 136
 MAKEINFO = @MAKEINFO@
135
-MKDIR_P = @MKDIR_P@
136 137
 OBJEXT = @OBJEXT@
137 138
 PACKAGE = @PACKAGE@
138 139
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -149,13 +157,13 @@ STRIP = @STRIP@
149 149
 THREAD_LIBS = @THREAD_LIBS@
150 150
 TH_SAFE = @TH_SAFE@
151 151
 VERSION = @VERSION@
152
-abs_builddir = @abs_builddir@
153
-abs_srcdir = @abs_srcdir@
154
-abs_top_builddir = @abs_top_builddir@
155
-abs_top_srcdir = @abs_top_srcdir@
156 152
 ac_ct_CC = @ac_ct_CC@
157 153
 ac_ct_CXX = @ac_ct_CXX@
158 154
 ac_ct_F77 = @ac_ct_F77@
155
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
156
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
157
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
158
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
159 159
 am__include = @am__include@
160 160
 am__leading_dot = @am__leading_dot@
161 161
 am__quote = @am__quote@
... ...
@@ -167,7 +175,6 @@ build_alias = @build_alias@
167 167
 build_cpu = @build_cpu@
168 168
 build_os = @build_os@
169 169
 build_vendor = @build_vendor@
170
-builddir = @builddir@
171 170
 datadir = @datadir@
172 171
 datarootdir = @datarootdir@
173 172
 docdir = @docdir@
... ...
@@ -196,15 +203,12 @@ psdir = @psdir@
196 196
 sbindir = @sbindir@
197 197
 sendmailprog = @sendmailprog@
198 198
 sharedstatedir = @sharedstatedir@
199
-srcdir = @srcdir@
200 199
 sysconfdir = @sysconfdir@
201 200
 target = @target@
202 201
 target_alias = @target_alias@
203 202
 target_cpu = @target_cpu@
204 203
 target_os = @target_os@
205 204
 target_vendor = @target_vendor@
206
-top_builddir = @top_builddir@
207
-top_srcdir = @top_srcdir@
208 205
 @ENABLE_UNRAR_TRUE@INCLUDES = -I$(top_srcdir)
209 206
 @ENABLE_UNRAR_TRUE@libclamunrar_iface_la_LIBADD = $(top_builddir)/libclamunrar/libclamunrar.la
210 207
 @ENABLE_UNRAR_TRUE@libclamunrar_iface_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
... ...
@@ -248,7 +252,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
248 248
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 249
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
250 250
 	@$(NORMAL_INSTALL)
251
-	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
251
+	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
252 252
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
253 253
 	  if test -f $$p; then \
254 254
 	    f=$(am__strip_dir) \
... ...
@@ -259,7 +263,7 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
259 259
 
260 260
 uninstall-libLTLIBRARIES:
261 261
 	@$(NORMAL_UNINSTALL)
262
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
262
+	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
263 263
 	  p=$(am__strip_dir) \
264 264
 	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
265 265
 	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
... ...
@@ -274,7 +278,7 @@ clean-libLTLIBRARIES:
274 274
 	  rm -f "$${dir}/so_locations"; \
275 275
 	done
276 276
 libclamunrar_iface.la: $(libclamunrar_iface_la_OBJECTS) $(libclamunrar_iface_la_DEPENDENCIES) 
277
-	$(libclamunrar_iface_la_LINK) $(am_libclamunrar_iface_la_rpath) $(libclamunrar_iface_la_OBJECTS) $(libclamunrar_iface_la_LIBADD) $(LIBS)
277
+	$(LINK) $(am_libclamunrar_iface_la_rpath) $(libclamunrar_iface_la_LDFLAGS) $(libclamunrar_iface_la_OBJECTS) $(libclamunrar_iface_la_LIBADD) $(LIBS)
278 278
 
279 279
 mostlyclean-compile:
280 280
 	-rm -f *.$(OBJEXT)
... ...
@@ -285,22 +289,22 @@ distclean-compile:
285 285
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrar_iface.Plo@am__quote@
286 286
 
287 287
 .c.o:
288
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
289
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
288
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
289
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
290 290
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
291 291
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
292 292
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
293 293
 
294 294
 .c.obj:
295
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
296
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
295
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
296
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
297 297
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
298 298
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
299 299
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
300 300
 
301 301
 .c.lo:
302
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
302
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
303
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
304 304
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
305 305
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306 306
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
... ...
@@ -311,6 +315,10 @@ mostlyclean-libtool:
311 311
 clean-libtool:
312 312
 	-rm -rf .libs _libs
313 313
 
314
+distclean-libtool:
315
+	-rm -f libtool
316
+uninstall-info-am:
317
+
314 318
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
315 319
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
316 320
 	unique=`for i in $$list; do \
... ...
@@ -360,21 +368,22 @@ distclean-tags:
360 360
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
361 361
 
362 362
 distdir: $(DISTFILES)
363
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
364
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
365
-	list='$(DISTFILES)'; \
366
-	  dist_files=`for file in $$list; do echo $$file; done | \
367
-	  sed -e "s|^$$srcdirstrip/||;t" \
368
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
369
-	case $$dist_files in \
370
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
371
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
372
-			   sort -u` ;; \
373
-	esac; \
374
-	for file in $$dist_files; do \
363
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
364
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
365
+	list='$(DISTFILES)'; for file in $$list; do \
366
+	  case $$file in \
367
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
368
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
369
+	  esac; \
375 370
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
371
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
372
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
373
+	    dir="/$$dir"; \
374
+	    $(mkdir_p) "$(distdir)$$dir"; \
375
+	  else \
376
+	    dir=''; \
377
+	  fi; \
376 378
 	  if test -d $$d/$$file; then \
377
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
378 379
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
379 380
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
380 381
 	    fi; \
... ...
@@ -390,7 +399,7 @@ check: check-am
390 390
 all-am: Makefile $(LTLIBRARIES)
391 391
 installdirs:
392 392
 	for dir in "$(DESTDIR)$(libdir)"; do \
393
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
393
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
394 394
 	done
395 395
 install: install-am
396 396
 install-exec: install-exec-am
... ...
@@ -425,7 +434,7 @@ distclean: distclean-am
425 425
 	-rm -rf ./$(DEPDIR)
426 426
 	-rm -f Makefile
427 427
 distclean-am: clean-am distclean-compile distclean-generic \
428
-	distclean-tags
428
+	distclean-libtool distclean-tags
429 429
 
430 430
 dvi: dvi-am
431 431
 
... ...
@@ -439,20 +448,12 @@ info-am:
439 439
 
440 440
 install-data-am:
441 441
 
442
-install-dvi: install-dvi-am
443
-
444 442
 install-exec-am: install-libLTLIBRARIES
445 443
 
446
-install-html: install-html-am
447
-
448 444
 install-info: install-info-am
449 445
 
450 446
 install-man:
451 447
 
452
-install-pdf: install-pdf-am
453
-
454
-install-ps: install-ps-am
455
-
456 448
 installcheck-am:
457 449
 
458 450
 maintainer-clean: maintainer-clean-am
... ...
@@ -473,23 +474,20 @@ ps: ps-am
473 473
 
474 474
 ps-am:
475 475
 
476
-uninstall-am: uninstall-libLTLIBRARIES
477
-
478
-.MAKE: install-am install-strip
476
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
479 477
 
480 478
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
481 479
 	clean-libLTLIBRARIES clean-libtool ctags distclean \
482 480
 	distclean-compile distclean-generic distclean-libtool \
483 481
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
484
-	install install-am install-data install-data-am install-dvi \
485
-	install-dvi-am install-exec install-exec-am install-html \
486
-	install-html-am install-info install-info-am \
487
-	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
488
-	install-ps install-ps-am install-strip installcheck \
482
+	install install-am install-data install-data-am install-exec \
483
+	install-exec-am install-info install-info-am \
484
+	install-libLTLIBRARIES install-man install-strip installcheck \
489 485
 	installcheck-am installdirs maintainer-clean \
490 486
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
491 487
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
492
-	tags uninstall uninstall-am uninstall-libLTLIBRARIES
488
+	tags uninstall uninstall-am uninstall-info-am \
489
+	uninstall-libLTLIBRARIES
493 490
 
494 491
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
495 492
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,11 +32,15 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
+srcdir = @srcdir@
36
+top_srcdir = @top_srcdir@
35 37
 VPATH = @srcdir@
36 38
 pkgdatadir = $(datadir)/@PACKAGE@
37 39
 pkglibdir = $(libdir)/@PACKAGE@
38 40
 pkgincludedir = $(includedir)/@PACKAGE@
41
+top_builddir = ..
39 42
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
+INSTALL = @INSTALL@
40 44
 install_sh_DATA = $(install_sh) -c -m 644
41 45
 install_sh_PROGRAM = $(install_sh) -c
42 46
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -71,30 +75,33 @@ am_sigtool_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
71 71
 	sigtool.$(OBJEXT)
72 72
 sigtool_OBJECTS = $(am_sigtool_OBJECTS)
73 73
 sigtool_LDADD = $(LDADD)
74
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
74
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
75 75
 depcomp = $(SHELL) $(top_srcdir)/depcomp
76 76
 am__depfiles_maybe = depfiles
77 77
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
78 78
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
79
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
81
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
79
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
80
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
81
+	$(AM_CFLAGS) $(CFLAGS)
82 82
 CCLD = $(CC)
83
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
84
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
85
-	$(LDFLAGS) -o $@
83
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
84
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
86 85
 SOURCES = $(sigtool_SOURCES)
87 86
 DIST_SOURCES = $(sigtool_SOURCES)
88 87
 ETAGS = etags
89 88
 CTAGS = ctags
90 89
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
91 90
 ACLOCAL = @ACLOCAL@
91
+AMDEP_FALSE = @AMDEP_FALSE@
92
+AMDEP_TRUE = @AMDEP_TRUE@
92 93
 AMTAR = @AMTAR@
93 94
 AR = @AR@
94 95
 AUTOCONF = @AUTOCONF@
95 96
 AUTOHEADER = @AUTOHEADER@
96 97
 AUTOMAKE = @AUTOMAKE@
97 98
 AWK = @AWK@
99
+BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
100
+BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
98 101
 CC = @CC@
99 102
 CCDEPMODE = @CCDEPMODE@
100 103
 CFGDIR = @CFGDIR@
... ...
@@ -120,13 +127,16 @@ ECHO_C = @ECHO_C@
120 120
 ECHO_N = @ECHO_N@
121 121
 ECHO_T = @ECHO_T@
122 122
 EGREP = @EGREP@
123
+ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
124
+ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
123 125
 EXEEXT = @EXEEXT@
124 126
 F77 = @F77@
125 127
 FFLAGS = @FFLAGS@
126 128
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
127 129
 GETENT = @GETENT@
128 130
 GREP = @GREP@
129
-INSTALL = @INSTALL@
131
+HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
132
+HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
130 133
 INSTALL_DATA = @INSTALL_DATA@
131 134
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
132 135
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -140,8 +150,9 @@ LIBTOOL = @LIBTOOL@
140 140
 LN_S = @LN_S@
141 141
 LTLIBOBJS = @LTLIBOBJS@
142 142
 MAINT = @MAINT@
143
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
144
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
143 145
 MAKEINFO = @MAKEINFO@
144
-MKDIR_P = @MKDIR_P@
145 146
 OBJEXT = @OBJEXT@
146 147
 PACKAGE = @PACKAGE@
147 148
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -158,13 +169,13 @@ STRIP = @STRIP@
158 158
 THREAD_LIBS = @THREAD_LIBS@
159 159
 TH_SAFE = @TH_SAFE@
160 160
 VERSION = @VERSION@
161
-abs_builddir = @abs_builddir@
162
-abs_srcdir = @abs_srcdir@
163
-abs_top_builddir = @abs_top_builddir@
164
-abs_top_srcdir = @abs_top_srcdir@
165 161
 ac_ct_CC = @ac_ct_CC@
166 162
 ac_ct_CXX = @ac_ct_CXX@
167 163
 ac_ct_F77 = @ac_ct_F77@
164
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
165
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
166
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
167
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
168 168
 am__include = @am__include@
169 169
 am__leading_dot = @am__leading_dot@
170 170
 am__quote = @am__quote@
... ...
@@ -176,7 +187,6 @@ build_alias = @build_alias@
176 176
 build_cpu = @build_cpu@
177 177
 build_os = @build_os@
178 178
 build_vendor = @build_vendor@
179
-builddir = @builddir@
180 179
 datadir = @datadir@
181 180
 datarootdir = @datarootdir@
182 181
 docdir = @docdir@
... ...
@@ -205,15 +215,12 @@ psdir = @psdir@
205 205
 sbindir = @sbindir@
206 206
 sendmailprog = @sendmailprog@
207 207
 sharedstatedir = @sharedstatedir@
208
-srcdir = @srcdir@
209 208
 sysconfdir = @sysconfdir@
210 209
 target = @target@
211 210
 target_alias = @target_alias@
212 211
 target_cpu = @target_cpu@
213 212
 target_os = @target_os@
214 213
 target_vendor = @target_vendor@
215
-top_builddir = @top_builddir@
216
-top_srcdir = @top_srcdir@
217 214
 sigtool_SOURCES = \
218 215
     $(top_srcdir)/shared/output.c \
219 216
     $(top_srcdir)/shared/output.h \
... ...
@@ -268,7 +275,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
268 268
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269 269
 install-binPROGRAMS: $(bin_PROGRAMS)
270 270
 	@$(NORMAL_INSTALL)
271
-	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
271
+	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
272 272
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
273 273
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
274 274
 	  if test -f $$p \
... ...
@@ -296,7 +303,7 @@ clean-binPROGRAMS:
296 296
 	done
297 297
 sigtool$(EXEEXT): $(sigtool_OBJECTS) $(sigtool_DEPENDENCIES) 
298 298
 	@rm -f sigtool$(EXEEXT)
299
-	$(LINK) $(sigtool_OBJECTS) $(sigtool_LDADD) $(LIBS)
299
+	$(LINK) $(sigtool_LDFLAGS) $(sigtool_OBJECTS) $(sigtool_LDADD) $(LIBS)
300 300
 
301 301
 mostlyclean-compile:
302 302
 	-rm -f *.$(OBJEXT)
... ...
@@ -315,120 +322,120 @@ distclean-compile:
315 315
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vba.Po@am__quote@
316 316
 
317 317
 .c.o:
318
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
319
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
320 320
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321 321
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322 322
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
323 323
 
324 324
 .c.obj:
325
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
326
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
326
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
327 327
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
328 328
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 329
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
330 330
 
331 331
 .c.lo:
332
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
333
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
333
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
334 334
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
335 335
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
336 336
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
337 337
 
338 338
 output.o: $(top_srcdir)/shared/output.c
339
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
340
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
339
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c; \
340
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
341 341
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343 343
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
344 344
 
345 345
 output.obj: $(top_srcdir)/shared/output.c
346
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
347
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
346
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF "$(DEPDIR)/output.Tpo" -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`; \
347
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
348 348
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350 350
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
351 351
 
352 352
 getopt.o: $(top_srcdir)/shared/getopt.c
353
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
354
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
353
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c; \
354
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
355 355
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
357 357
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
358 358
 
359 359
 getopt.obj: $(top_srcdir)/shared/getopt.c
360
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
361
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
360
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`; \
361
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
362 362
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
364 364
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
365 365
 
366 366
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
367
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
368
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
367
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
368
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
369 369
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
371 371
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
372 372
 
373 373
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
374
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
375
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
374
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
375
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
376 376
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
378 378
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
379 379
 
380 380
 misc.o: $(top_srcdir)/shared/misc.c
381
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
382
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
381
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c; \
382
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
383 383
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
385 385
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
386 386
 
387 387
 misc.obj: $(top_srcdir)/shared/misc.c
388
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
389
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
388
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF "$(DEPDIR)/misc.Tpo" -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`; \
389
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
390 390
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
392 392
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
393 393
 
394 394
 options.o: $(top_srcdir)/shared/options.c
395
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
396
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
395
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
396
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
397 397
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
399 399
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
400 400
 
401 401
 options.obj: $(top_srcdir)/shared/options.c
402
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
403
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
402
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
403
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
404 404
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406 406
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
407 407
 
408 408
 sha256.o: $(top_srcdir)/shared/sha256.c
409
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
410
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
409
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c; \
410
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
411 411
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.o' libtool=no @AMDEPBACKSLASH@
412 412
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
413 413
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
414 414
 
415 415
 sha256.obj: $(top_srcdir)/shared/sha256.c
416
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
417
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
416
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`; \
417
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
418 418
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.obj' libtool=no @AMDEPBACKSLASH@
419 419
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
420 420
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
421 421
 
422 422
 cdiff.o: $(top_srcdir)/shared/cdiff.c
423
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
424
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
423
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c; \
424
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
425 425
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.o' libtool=no @AMDEPBACKSLASH@
426 426
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
427 427
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
428 428
 
429 429
 cdiff.obj: $(top_srcdir)/shared/cdiff.c
430
-@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
431
-@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
430
+@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`; \
431
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
432 432
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.obj' libtool=no @AMDEPBACKSLASH@
433 433
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
434 434
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
... ...
@@ -439,6 +446,10 @@ mostlyclean-libtool:
439 439
 clean-libtool:
440 440
 	-rm -rf .libs _libs
441 441
 
442
+distclean-libtool:
443
+	-rm -f libtool
444
+uninstall-info-am:
445
+
442 446
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
443 447
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444 448
 	unique=`for i in $$list; do \
... ...
@@ -488,21 +499,22 @@ distclean-tags:
488 488
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
489 489
 
490 490
 distdir: $(DISTFILES)
491
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
492
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
493
-	list='$(DISTFILES)'; \
494
-	  dist_files=`for file in $$list; do echo $$file; done | \
495
-	  sed -e "s|^$$srcdirstrip/||;t" \
496
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
497
-	case $$dist_files in \
498
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
499
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
500
-			   sort -u` ;; \
501
-	esac; \
502
-	for file in $$dist_files; do \
491
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
492
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
493
+	list='$(DISTFILES)'; for file in $$list; do \
494
+	  case $$file in \
495
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
496
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
497
+	  esac; \
503 498
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
499
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
500
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
501
+	    dir="/$$dir"; \
502
+	    $(mkdir_p) "$(distdir)$$dir"; \
503
+	  else \
504
+	    dir=''; \
505
+	  fi; \
504 506
 	  if test -d $$d/$$file; then \
505
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
506 507
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
507 508
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
508 509
 	    fi; \
... ...
@@ -518,7 +530,7 @@ check: check-am
518 518
 all-am: Makefile $(PROGRAMS)
519 519
 installdirs:
520 520
 	for dir in "$(DESTDIR)$(bindir)"; do \
521
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
521
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
522 522
 	done
523 523
 install: install-am
524 524
 install-exec: install-exec-am
... ...
@@ -552,7 +564,7 @@ distclean: distclean-am
552 552
 	-rm -rf ./$(DEPDIR)
553 553
 	-rm -f Makefile
554 554
 distclean-am: clean-am distclean-compile distclean-generic \
555
-	distclean-tags
555
+	distclean-libtool distclean-tags
556 556
 
557 557
 dvi: dvi-am
558 558
 
... ...
@@ -566,20 +578,12 @@ info-am:
566 566
 
567 567
 install-data-am:
568 568
 
569
-install-dvi: install-dvi-am
570
-
571 569
 install-exec-am: install-binPROGRAMS
572 570
 
573
-install-html: install-html-am
574
-
575 571
 install-info: install-info-am
576 572
 
577 573
 install-man:
578 574
 
579
-install-pdf: install-pdf-am
580
-
581
-install-ps: install-ps-am
582
-
583 575
 installcheck-am:
584 576
 
585 577
 maintainer-clean: maintainer-clean-am
... ...
@@ -600,23 +604,19 @@ ps: ps-am
600 600
 
601 601
 ps-am:
602 602
 
603
-uninstall-am: uninstall-binPROGRAMS
604
-
605
-.MAKE: install-am install-strip
603
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
606 604
 
607 605
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
608 606
 	clean-generic clean-libtool ctags distclean distclean-compile \
609 607
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
610 608
 	dvi-am html html-am info info-am install install-am \
611
-	install-binPROGRAMS install-data install-data-am install-dvi \
612
-	install-dvi-am install-exec install-exec-am install-html \
613
-	install-html-am install-info install-info-am install-man \
614
-	install-pdf install-pdf-am install-ps install-ps-am \
609
+	install-binPROGRAMS install-data install-data-am install-exec \
610
+	install-exec-am install-info install-info-am install-man \
615 611
 	install-strip installcheck installcheck-am installdirs \
616 612
 	maintainer-clean maintainer-clean-generic mostlyclean \
617 613
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
618 614
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
619
-	uninstall-binPROGRAMS
615
+	uninstall-binPROGRAMS uninstall-info-am
620 616
 
621 617
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
622 618
 # Otherwise a system limit (for SysV at least) may be exceeded.