Merge lp:~cyphermox/ubuntu/lucid/acct/merge_6.5.1-1_lp510177 into lp:ubuntu/lucid/acct
- Lucid (10.04)
- merge_6.5.1-1_lp510177
- Merge into lucid
Proposed by
Mathieu Trudel-Lapierre
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~cyphermox/ubuntu/lucid/acct/merge_6.5.1-1_lp510177 |
Merge into: | lp:ubuntu/lucid/acct |
Diff against target: | 80113 lines |
To merge this branch: | bzr merge lp:~cyphermox/ubuntu/lucid/acct/merge_6.5.1-1_lp510177 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Registry Administrators | Pending | ||
Review via email: mp+17766@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'AUTHORS' | |||
2 | --- AUTHORS 2006-03-18 18:38:00 +0000 | |||
3 | +++ AUTHORS 2010-01-20 17:40:26 +0000 | |||
4 | @@ -3,4 +3,6 @@ | |||
5 | 3 | Noel Cragg <noel@gnu.ai.mit.edu>. Wrote initial versions of all | 3 | Noel Cragg <noel@gnu.ai.mit.edu>. Wrote initial versions of all |
6 | 4 | utilities and was stuck maintaining them until 1998. | 4 | utilities and was stuck maintaining them until 1998. |
7 | 5 | 5 | ||
9 | 6 | Ciaran O'Riordan <ciaran@member.fsf.org> is the current maintainer. | 6 | Ciaran O'Riordan <ciaran@member.fsf.org> was the former maintainer. |
10 | 7 | |||
11 | 8 | Markus Gothe <nietzsche@lysator.liu.se> is the current maintainer. | ||
12 | 7 | 9 | ||
13 | === modified file 'COPYING' | |||
14 | --- COPYING 2002-03-06 21:54:12 +0000 | |||
15 | +++ COPYING 2010-01-20 17:40:26 +0000 | |||
16 | @@ -1,285 +1,626 @@ | |||
19 | 1 | GNU GENERAL PUBLIC LICENSE | 1 | GNU GENERAL PUBLIC LICENSE |
20 | 2 | Version 2, June 1991 | 2 | Version 3, 29 June 2007 |
21 | 3 | 3 | ||
24 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
23 | 5 | 675 Mass Ave, Cambridge, MA 02139, USA | ||
25 | 6 | Everyone is permitted to copy and distribute verbatim copies | 5 | Everyone is permitted to copy and distribute verbatim copies |
26 | 7 | of this license document, but changing it is not allowed. | 6 | of this license document, but changing it is not allowed. |
27 | 8 | 7 | ||
38 | 9 | Preamble | 8 | Preamble |
39 | 10 | 9 | ||
40 | 11 | The licenses for most software are designed to take away your | 10 | The GNU General Public License is a free, copyleft license for |
41 | 12 | freedom to share and change it. By contrast, the GNU General Public | 11 | software and other kinds of works. |
42 | 13 | License is intended to guarantee your freedom to share and change free | 12 | |
43 | 14 | software--to make sure the software is free for all its users. This | 13 | The licenses for most software and other practical works are designed |
44 | 15 | General Public License applies to most of the Free Software | 14 | to take away your freedom to share and change the works. By contrast, |
45 | 16 | Foundation's software and to any other program whose authors commit to | 15 | the GNU General Public License is intended to guarantee your freedom to |
46 | 17 | using it. (Some other Free Software Foundation software is covered by | 16 | share and change all versions of a program--to make sure it remains free |
47 | 18 | the GNU Library General Public License instead.) You can apply it to | 17 | software for all its users. We, the Free Software Foundation, use the |
48 | 18 | GNU General Public License for most of our software; it applies also to | ||
49 | 19 | any other work released this way by its authors. You can apply it to | ||
50 | 19 | your programs, too. | 20 | your programs, too. |
51 | 20 | 21 | ||
52 | 21 | When we speak of free software, we are referring to freedom, not | 22 | When we speak of free software, we are referring to freedom, not |
53 | 22 | price. Our General Public Licenses are designed to make sure that you | 23 | price. Our General Public Licenses are designed to make sure that you |
54 | 23 | have the freedom to distribute copies of free software (and charge for | 24 | have the freedom to distribute copies of free software (and charge for |
58 | 24 | this service if you wish), that you receive source code or can get it | 25 | them if you wish), that you receive source code or can get it if you |
59 | 25 | if you want it, that you can change the software or use pieces of it | 26 | want it, that you can change the software or use pieces of it in new |
60 | 26 | in new free programs; and that you know you can do these things. | 27 | free programs, and that you know you can do these things. |
61 | 27 | 28 | ||
66 | 28 | To protect your rights, we need to make restrictions that forbid | 29 | To protect your rights, we need to prevent others from denying you |
67 | 29 | anyone to deny you these rights or to ask you to surrender the rights. | 30 | these rights or asking you to surrender the rights. Therefore, you have |
68 | 30 | These restrictions translate to certain responsibilities for you if you | 31 | certain responsibilities if you distribute copies of the software, or if |
69 | 31 | distribute copies of the software, or if you modify it. | 32 | you modify it: responsibilities to respect the freedom of others. |
70 | 32 | 33 | ||
71 | 33 | For example, if you distribute copies of such a program, whether | 34 | For example, if you distribute copies of such a program, whether |
93 | 34 | gratis or for a fee, you must give the recipients all the rights that | 35 | gratis or for a fee, you must pass on to the recipients the same |
94 | 35 | you have. You must make sure that they, too, receive or can get the | 36 | freedoms that you received. You must make sure that they, too, receive |
95 | 36 | source code. And you must show them these terms so they know their | 37 | or can get the source code. And you must show them these terms so they |
96 | 37 | rights. | 38 | know their rights. |
97 | 38 | 39 | ||
98 | 39 | We protect your rights with two steps: (1) copyright the software, and | 40 | Developers that use the GNU GPL protect your rights with two steps: |
99 | 40 | (2) offer you this license which gives you legal permission to copy, | 41 | (1) assert copyright on the software, and (2) offer you this License |
100 | 41 | distribute and/or modify the software. | 42 | giving you legal permission to copy, distribute and/or modify it. |
101 | 42 | 43 | ||
102 | 43 | Also, for each author's protection and ours, we want to make certain | 44 | For the developers' and authors' protection, the GPL clearly explains |
103 | 44 | that everyone understands that there is no warranty for this free | 45 | that there is no warranty for this free software. For both users' and |
104 | 45 | software. If the software is modified by someone else and passed on, we | 46 | authors' sake, the GPL requires that modified versions be marked as |
105 | 46 | want its recipients to know that what they have is not the original, so | 47 | changed, so that their problems will not be attributed erroneously to |
106 | 47 | that any problems introduced by others will not reflect on the original | 48 | authors of previous versions. |
107 | 48 | authors' reputations. | 49 | |
108 | 49 | 50 | Some devices are designed to deny users access to install or run | |
109 | 50 | Finally, any free program is threatened constantly by software | 51 | modified versions of the software inside them, although the manufacturer |
110 | 51 | patents. We wish to avoid the danger that redistributors of a free | 52 | can do so. This is fundamentally incompatible with the aim of |
111 | 52 | program will individually obtain patent licenses, in effect making the | 53 | protecting users' freedom to change the software. The systematic |
112 | 53 | program proprietary. To prevent this, we have made it clear that any | 54 | pattern of such abuse occurs in the area of products for individuals to |
113 | 54 | patent must be licensed for everyone's free use or not licensed at all. | 55 | use, which is precisely where it is most unacceptable. Therefore, we |
114 | 56 | have designed this version of the GPL to prohibit the practice for those | ||
115 | 57 | products. If such problems arise substantially in other domains, we | ||
116 | 58 | stand ready to extend this provision to those domains in future versions | ||
117 | 59 | of the GPL, as needed to protect the freedom of users. | ||
118 | 60 | |||
119 | 61 | Finally, every program is threatened constantly by software patents. | ||
120 | 62 | States should not allow patents to restrict development and use of | ||
121 | 63 | software on general-purpose computers, but in those that do, we wish to | ||
122 | 64 | avoid the special danger that patents applied to a free program could | ||
123 | 65 | make it effectively proprietary. To prevent this, the GPL assures that | ||
124 | 66 | patents cannot be used to render the program non-free. | ||
125 | 55 | 67 | ||
126 | 56 | The precise terms and conditions for copying, distribution and | 68 | The precise terms and conditions for copying, distribution and |
127 | 57 | modification follow. | 69 | modification follow. |
128 | 58 | |||
129 | 59 | 70 | ||
130 | 60 | GNU GENERAL PUBLIC LICENSE | ||
131 | 61 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
132 | 62 | |||
133 | 63 | 0. This License applies to any program or other work which contains | ||
134 | 64 | a notice placed by the copyright holder saying it may be distributed | ||
135 | 65 | under the terms of this General Public License. The "Program", below, | ||
136 | 66 | refers to any such program or work, and a "work based on the Program" | ||
137 | 67 | means either the Program or any derivative work under copyright law: | ||
138 | 68 | that is to say, a work containing the Program or a portion of it, | ||
139 | 69 | either verbatim or with modifications and/or translated into another | ||
140 | 70 | language. (Hereinafter, translation is included without limitation in | ||
141 | 71 | the term "modification".) Each licensee is addressed as "you". | ||
142 | 72 | |||
143 | 73 | Activities other than copying, distribution and modification are not | ||
144 | 74 | covered by this License; they are outside its scope. The act of | ||
145 | 75 | running the Program is not restricted, and the output from the Program | ||
146 | 76 | is covered only if its contents constitute a work based on the | ||
147 | 77 | Program (independent of having been made by running the Program). | ||
148 | 78 | Whether that is true depends on what the Program does. | ||
149 | 79 | |||
150 | 80 | 1. You may copy and distribute verbatim copies of the Program's | ||
151 | 81 | source code as you receive it, in any medium, provided that you | ||
152 | 82 | conspicuously and appropriately publish on each copy an appropriate | ||
153 | 83 | copyright notice and disclaimer of warranty; keep intact all the | ||
154 | 84 | notices that refer to this License and to the absence of any warranty; | ||
155 | 85 | and give any other recipients of the Program a copy of this License | ||
156 | 86 | along with the Program. | ||
157 | 87 | |||
158 | 88 | You may charge a fee for the physical act of transferring a copy, and | ||
159 | 89 | you may at your option offer warranty protection in exchange for a fee. | ||
160 | 90 | |||
161 | 91 | 2. You may modify your copy or copies of the Program or any portion | ||
162 | 92 | of it, thus forming a work based on the Program, and copy and | ||
163 | 93 | distribute such modifications or work under the terms of Section 1 | ||
164 | 94 | above, provided that you also meet all of these conditions: | ||
165 | 95 | |||
166 | 96 | a) You must cause the modified files to carry prominent notices | ||
167 | 97 | stating that you changed the files and the date of any change. | ||
168 | 98 | |||
169 | 99 | b) You must cause any work that you distribute or publish, that in | ||
170 | 100 | whole or in part contains or is derived from the Program or any | ||
171 | 101 | part thereof, to be licensed as a whole at no charge to all third | ||
172 | 102 | parties under the terms of this License. | ||
173 | 103 | |||
174 | 104 | c) If the modified program normally reads commands interactively | ||
175 | 105 | when run, you must cause it, when started running for such | ||
176 | 106 | interactive use in the most ordinary way, to print or display an | ||
177 | 107 | announcement including an appropriate copyright notice and a | ||
178 | 108 | notice that there is no warranty (or else, saying that you provide | ||
179 | 109 | a warranty) and that users may redistribute the program under | ||
180 | 110 | these conditions, and telling the user how to view a copy of this | ||
181 | 111 | License. (Exception: if the Program itself is interactive but | ||
182 | 112 | does not normally print such an announcement, your work based on | ||
183 | 113 | the Program is not required to print an announcement.) | ||
184 | 114 | |||
185 | 115 | 71 | ||
186 | 116 | These requirements apply to the modified work as a whole. If | ||
187 | 117 | identifiable sections of that work are not derived from the Program, | ||
188 | 118 | and can be reasonably considered independent and separate works in | ||
189 | 119 | themselves, then this License, and its terms, do not apply to those | ||
190 | 120 | sections when you distribute them as separate works. But when you | ||
191 | 121 | distribute the same sections as part of a whole which is a work based | ||
192 | 122 | on the Program, the distribution of the whole must be on the terms of | ||
193 | 123 | this License, whose permissions for other licensees extend to the | ||
194 | 124 | entire whole, and thus to each and every part regardless of who wrote it. | ||
195 | 125 | |||
196 | 126 | Thus, it is not the intent of this section to claim rights or contest | ||
197 | 127 | your rights to work written entirely by you; rather, the intent is to | ||
198 | 128 | exercise the right to control the distribution of derivative or | ||
199 | 129 | collective works based on the Program. | ||
200 | 130 | |||
201 | 131 | In addition, mere aggregation of another work not based on the Program | ||
202 | 132 | with the Program (or with a work based on the Program) on a volume of | ||
203 | 133 | a storage or distribution medium does not bring the other work under | ||
204 | 134 | the scope of this License. | ||
205 | 135 | |||
206 | 136 | 3. You may copy and distribute the Program (or a work based on it, | ||
207 | 137 | under Section 2) in object code or executable form under the terms of | ||
208 | 138 | Sections 1 and 2 above provided that you also do one of the following: | ||
209 | 139 | |||
210 | 140 | a) Accompany it with the complete corresponding machine-readable | ||
211 | 141 | source code, which must be distributed under the terms of Sections | ||
212 | 142 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
213 | 143 | |||
214 | 144 | b) Accompany it with a written offer, valid for at least three | ||
215 | 145 | years, to give any third party, for a charge no more than your | ||
216 | 146 | cost of physically performing source distribution, a complete | ||
217 | 147 | machine-readable copy of the corresponding source code, to be | ||
218 | 148 | distributed under the terms of Sections 1 and 2 above on a medium | ||
219 | 149 | customarily used for software interchange; or, | ||
220 | 150 | |||
221 | 151 | c) Accompany it with the information you received as to the offer | ||
222 | 152 | to distribute corresponding source code. (This alternative is | ||
223 | 153 | allowed only for noncommercial distribution and only if you | ||
224 | 154 | received the program in object code or executable form with such | ||
225 | 155 | an offer, in accord with Subsection b above.) | ||
226 | 156 | |||
227 | 157 | The source code for a work means the preferred form of the work for | ||
228 | 158 | making modifications to it. For an executable work, complete source | ||
229 | 159 | code means all the source code for all modules it contains, plus any | ||
230 | 160 | associated interface definition files, plus the scripts used to | ||
231 | 161 | control compilation and installation of the executable. However, as a | ||
232 | 162 | special exception, the source code distributed need not include | ||
233 | 163 | anything that is normally distributed (in either source or binary | ||
234 | 164 | form) with the major components (compiler, kernel, and so on) of the | ||
235 | 165 | operating system on which the executable runs, unless that component | ||
236 | 166 | itself accompanies the executable. | ||
237 | 167 | |||
238 | 168 | If distribution of executable or object code is made by offering | ||
239 | 169 | access to copy from a designated place, then offering equivalent | ||
240 | 170 | access to copy the source code from the same place counts as | ||
241 | 171 | distribution of the source code, even though third parties are not | ||
242 | 172 | compelled to copy the source along with the object code. | ||
243 | 173 | |||
244 | 174 | 72 | ||
268 | 175 | 4. You may not copy, modify, sublicense, or distribute the Program | 73 | |
269 | 176 | except as expressly provided under this License. Any attempt | 74 | TERMS AND CONDITIONS |
270 | 177 | otherwise to copy, modify, sublicense or distribute the Program is | 75 | |
271 | 178 | void, and will automatically terminate your rights under this License. | 76 | 0. Definitions. |
272 | 179 | However, parties who have received copies, or rights, from you under | 77 | |
273 | 180 | this License will not have their licenses terminated so long as such | 78 | "This License" refers to version 3 of the GNU General Public License. |
274 | 181 | parties remain in full compliance. | 79 | |
275 | 182 | 80 | "Copyright" also means copyright-like laws that apply to other kinds of | |
276 | 183 | 5. You are not required to accept this License, since you have not | 81 | works, such as semiconductor masks. |
277 | 184 | signed it. However, nothing else grants you permission to modify or | 82 | |
278 | 185 | distribute the Program or its derivative works. These actions are | 83 | "The Program" refers to any copyrightable work licensed under this |
279 | 186 | prohibited by law if you do not accept this License. Therefore, by | 84 | License. Each licensee is addressed as "you". "Licensees" and |
280 | 187 | modifying or distributing the Program (or any work based on the | 85 | "recipients" may be individuals or organizations. |
281 | 188 | Program), you indicate your acceptance of this License to do so, and | 86 | |
282 | 189 | all its terms and conditions for copying, distributing or modifying | 87 | To "modify" a work means to copy from or adapt all or part of the work |
283 | 190 | the Program or works based on it. | 88 | in a fashion requiring copyright permission, other than the making of an |
284 | 191 | 89 | exact copy. The resulting work is called a "modified version" of the | |
285 | 192 | 6. Each time you redistribute the Program (or any work based on the | 90 | earlier work or a work "based on" the earlier work. |
286 | 193 | Program), the recipient automatically receives a license from the | 91 | |
287 | 194 | original licensor to copy, distribute or modify the Program subject to | 92 | A "covered work" means either the unmodified Program or a work based |
288 | 195 | these terms and conditions. You may not impose any further | 93 | on the Program. |
289 | 196 | restrictions on the recipients' exercise of the rights granted herein. | 94 | |
290 | 197 | You are not responsible for enforcing compliance by third parties to | 95 | To "propagate" a work means to do anything with it that, without |
291 | 96 | permission, would make you directly or secondarily liable for | ||
292 | 97 | infringement under applicable copyright law, except executing it on a | ||
293 | 98 | computer or modifying a private copy. Propagation includes copying, | ||
294 | 99 | distribution (with or without modification), making available to the | ||
295 | 100 | public, and in some countries other activities as well. | ||
296 | 101 | |||
297 | 102 | To "convey" a work means any kind of propagation that enables other | ||
298 | 103 | parties to make or receive copies. Mere interaction with a user through | ||
299 | 104 | a computer network, with no transfer of a copy, is not conveying. | ||
300 | 105 | |||
301 | 106 | An interactive user interface displays "Appropriate Legal Notices" | ||
302 | 107 | to the extent that it includes a convenient and prominently visible | ||
303 | 108 | feature that (1) displays an appropriate copyright notice, and (2) | ||
304 | 109 | tells the user that there is no warranty for the work (except to the | ||
305 | 110 | extent that warranties are provided), that licensees may convey the | ||
306 | 111 | work under this License, and how to view a copy of this License. If | ||
307 | 112 | the interface presents a list of user commands or options, such as a | ||
308 | 113 | menu, a prominent item in the list meets this criterion. | ||
309 | 114 | |||
310 | 115 | 1. Source Code. | ||
311 | 116 | |||
312 | 117 | The "source code" for a work means the preferred form of the work | ||
313 | 118 | for making modifications to it. "Object code" means any non-source | ||
314 | 119 | form of a work. | ||
315 | 120 | |||
316 | 121 | A "Standard Interface" means an interface that either is an official | ||
317 | 122 | standard defined by a recognized standards body, or, in the case of | ||
318 | 123 | interfaces specified for a particular programming language, one that | ||
319 | 124 | is widely used among developers working in that language. | ||
320 | 125 | |||
321 | 126 | The "System Libraries" of an executable work include anything, other | ||
322 | 127 | than the work as a whole, that (a) is included in the normal form of | ||
323 | 128 | packaging a Major Component, but which is not part of that Major | ||
324 | 129 | Component, and (b) serves only to enable use of the work with that | ||
325 | 130 | Major Component, or to implement a Standard Interface for which an | ||
326 | 131 | implementation is available to the public in source code form. A | ||
327 | 132 | "Major Component", in this context, means a major essential component | ||
328 | 133 | (kernel, window system, and so on) of the specific operating system | ||
329 | 134 | (if any) on which the executable work runs, or a compiler used to | ||
330 | 135 | produce the work, or an object code interpreter used to run it. | ||
331 | 136 | |||
332 | 137 | The "Corresponding Source" for a work in object code form means all | ||
333 | 138 | the source code needed to generate, install, and (for an executable | ||
334 | 139 | work) run the object code and to modify the work, including scripts to | ||
335 | 140 | control those activities. However, it does not include the work's | ||
336 | 141 | System Libraries, or general-purpose tools or generally available free | ||
337 | 142 | programs which are used unmodified in performing those activities but | ||
338 | 143 | which are not part of the work. For example, Corresponding Source | ||
339 | 144 | includes interface definition files associated with source files for | ||
340 | 145 | the work, and the source code for shared libraries and dynamically | ||
341 | 146 | linked subprograms that the work is specifically designed to require, | ||
342 | 147 | such as by intimate data communication or control flow between those | ||
343 | 148 | subprograms and other parts of the work. | ||
344 | 149 | |||
345 | 150 | The Corresponding Source need not include anything that users | ||
346 | 151 | can regenerate automatically from other parts of the Corresponding | ||
347 | 152 | Source. | ||
348 | 153 | |||
349 | 154 | The Corresponding Source for a work in source code form is that | ||
350 | 155 | same work. | ||
351 | 156 | |||
352 | 157 | 2. Basic Permissions. | ||
353 | 158 | |||
354 | 159 | All rights granted under this License are granted for the term of | ||
355 | 160 | copyright on the Program, and are irrevocable provided the stated | ||
356 | 161 | conditions are met. This License explicitly affirms your unlimited | ||
357 | 162 | permission to run the unmodified Program. The output from running a | ||
358 | 163 | covered work is covered by this License only if the output, given its | ||
359 | 164 | content, constitutes a covered work. This License acknowledges your | ||
360 | 165 | rights of fair use or other equivalent, as provided by copyright law. | ||
361 | 166 | |||
362 | 167 | You may make, run and propagate covered works that you do not | ||
363 | 168 | convey, without conditions so long as your license otherwise remains | ||
364 | 169 | in force. You may convey covered works to others for the sole purpose | ||
365 | 170 | of having them make modifications exclusively for you, or provide you | ||
366 | 171 | with facilities for running those works, provided that you comply with | ||
367 | 172 | the terms of this License in conveying all material for which you do | ||
368 | 173 | not control copyright. Those thus making or running the covered works | ||
369 | 174 | for you must do so exclusively on your behalf, under your direction | ||
370 | 175 | and control, on terms that prohibit them from making any copies of | ||
371 | 176 | your copyrighted material outside their relationship with you. | ||
372 | 177 | |||
373 | 178 | Conveying under any other circumstances is permitted solely under | ||
374 | 179 | the conditions stated below. Sublicensing is not allowed; section 10 | ||
375 | 180 | makes it unnecessary. | ||
376 | 181 | |||
377 | 182 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | ||
378 | 183 | |||
379 | 184 | No covered work shall be deemed part of an effective technological | ||
380 | 185 | measure under any applicable law fulfilling obligations under article | ||
381 | 186 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or | ||
382 | 187 | similar laws prohibiting or restricting circumvention of such | ||
383 | 188 | measures. | ||
384 | 189 | |||
385 | 190 | When you convey a covered work, you waive any legal power to forbid | ||
386 | 191 | circumvention of technological measures to the extent such circumvention | ||
387 | 192 | is effected by exercising rights under this License with respect to | ||
388 | 193 | the covered work, and you disclaim any intention to limit operation or | ||
389 | 194 | modification of the work as a means of enforcing, against the work's | ||
390 | 195 | users, your or third parties' legal rights to forbid circumvention of | ||
391 | 196 | technological measures. | ||
392 | 197 | |||
393 | 198 | 4. Conveying Verbatim Copies. | ||
394 | 199 | |||
395 | 200 | You may convey verbatim copies of the Program's source code as you | ||
396 | 201 | receive it, in any medium, provided that you conspicuously and | ||
397 | 202 | appropriately publish on each copy an appropriate copyright notice; | ||
398 | 203 | keep intact all notices stating that this License and any | ||
399 | 204 | non-permissive terms added in accord with section 7 apply to the code; | ||
400 | 205 | keep intact all notices of the absence of any warranty; and give all | ||
401 | 206 | recipients a copy of this License along with the Program. | ||
402 | 207 | |||
403 | 208 | You may charge any price or no price for each copy that you convey, | ||
404 | 209 | and you may offer support or warranty protection for a fee. | ||
405 | 210 | |||
406 | 211 | 5. Conveying Modified Source Versions. | ||
407 | 212 | |||
408 | 213 | You may convey a work based on the Program, or the modifications to | ||
409 | 214 | produce it from the Program, in the form of source code under the | ||
410 | 215 | terms of section 4, provided that you also meet all of these conditions: | ||
411 | 216 | |||
412 | 217 | a) The work must carry prominent notices stating that you modified | ||
413 | 218 | it, and giving a relevant date. | ||
414 | 219 | |||
415 | 220 | b) The work must carry prominent notices stating that it is | ||
416 | 221 | released under this License and any conditions added under section | ||
417 | 222 | 7. This requirement modifies the requirement in section 4 to | ||
418 | 223 | "keep intact all notices". | ||
419 | 224 | |||
420 | 225 | c) You must license the entire work, as a whole, under this | ||
421 | 226 | License to anyone who comes into possession of a copy. This | ||
422 | 227 | License will therefore apply, along with any applicable section 7 | ||
423 | 228 | additional terms, to the whole of the work, and all its parts, | ||
424 | 229 | regardless of how they are packaged. This License gives no | ||
425 | 230 | permission to license the work in any other way, but it does not | ||
426 | 231 | invalidate such permission if you have separately received it. | ||
427 | 232 | |||
428 | 233 | d) If the work has interactive user interfaces, each must display | ||
429 | 234 | Appropriate Legal Notices; however, if the Program has interactive | ||
430 | 235 | interfaces that do not display Appropriate Legal Notices, your | ||
431 | 236 | work need not make them do so. | ||
432 | 237 | |||
433 | 238 | A compilation of a covered work with other separate and independent | ||
434 | 239 | works, which are not by their nature extensions of the covered work, | ||
435 | 240 | and which are not combined with it such as to form a larger program, | ||
436 | 241 | in or on a volume of a storage or distribution medium, is called an | ||
437 | 242 | "aggregate" if the compilation and its resulting copyright are not | ||
438 | 243 | used to limit the access or legal rights of the compilation's users | ||
439 | 244 | beyond what the individual works permit. Inclusion of a covered work | ||
440 | 245 | in an aggregate does not cause this License to apply to the other | ||
441 | 246 | parts of the aggregate. | ||
442 | 247 | |||
443 | 248 | 6. Conveying Non-Source Forms. | ||
444 | 249 | |||
445 | 250 | You may convey a covered work in object code form under the terms | ||
446 | 251 | of sections 4 and 5, provided that you also convey the | ||
447 | 252 | machine-readable Corresponding Source under the terms of this License, | ||
448 | 253 | in one of these ways: | ||
449 | 254 | |||
450 | 255 | a) Convey the object code in, or embodied in, a physical product | ||
451 | 256 | (including a physical distribution medium), accompanied by the | ||
452 | 257 | Corresponding Source fixed on a durable physical medium | ||
453 | 258 | customarily used for software interchange. | ||
454 | 259 | |||
455 | 260 | b) Convey the object code in, or embodied in, a physical product | ||
456 | 261 | (including a physical distribution medium), accompanied by a | ||
457 | 262 | written offer, valid for at least three years and valid for as | ||
458 | 263 | long as you offer spare parts or customer support for that product | ||
459 | 264 | model, to give anyone who possesses the object code either (1) a | ||
460 | 265 | copy of the Corresponding Source for all the software in the | ||
461 | 266 | product that is covered by this License, on a durable physical | ||
462 | 267 | medium customarily used for software interchange, for a price no | ||
463 | 268 | more than your reasonable cost of physically performing this | ||
464 | 269 | conveying of source, or (2) access to copy the | ||
465 | 270 | Corresponding Source from a network server at no charge. | ||
466 | 271 | |||
467 | 272 | c) Convey individual copies of the object code with a copy of the | ||
468 | 273 | written offer to provide the Corresponding Source. This | ||
469 | 274 | alternative is allowed only occasionally and noncommercially, and | ||
470 | 275 | only if you received the object code with such an offer, in accord | ||
471 | 276 | with subsection 6b. | ||
472 | 277 | |||
473 | 278 | d) Convey the object code by offering access from a designated | ||
474 | 279 | place (gratis or for a charge), and offer equivalent access to the | ||
475 | 280 | Corresponding Source in the same way through the same place at no | ||
476 | 281 | further charge. You need not require recipients to copy the | ||
477 | 282 | Corresponding Source along with the object code. If the place to | ||
478 | 283 | copy the object code is a network server, the Corresponding Source | ||
479 | 284 | may be on a different server (operated by you or a third party) | ||
480 | 285 | that supports equivalent copying facilities, provided you maintain | ||
481 | 286 | clear directions next to the object code saying where to find the | ||
482 | 287 | Corresponding Source. Regardless of what server hosts the | ||
483 | 288 | Corresponding Source, you remain obligated to ensure that it is | ||
484 | 289 | available for as long as needed to satisfy these requirements. | ||
485 | 290 | |||
486 | 291 | e) Convey the object code using peer-to-peer transmission, provided | ||
487 | 292 | you inform other peers where the object code and Corresponding | ||
488 | 293 | Source of the work are being offered to the general public at no | ||
489 | 294 | charge under subsection 6d. | ||
490 | 295 | |||
491 | 296 | A separable portion of the object code, whose source code is excluded | ||
492 | 297 | from the Corresponding Source as a System Library, need not be | ||
493 | 298 | included in conveying the object code work. | ||
494 | 299 | |||
495 | 300 | A "User Product" is either (1) a "consumer product", which means any | ||
496 | 301 | tangible personal property which is normally used for personal, family, | ||
497 | 302 | or household purposes, or (2) anything designed or sold for incorporation | ||
498 | 303 | into a dwelling. In determining whether a product is a consumer product, | ||
499 | 304 | doubtful cases shall be resolved in favor of coverage. For a particular | ||
500 | 305 | product received by a particular user, "normally used" refers to a | ||
501 | 306 | typical or common use of that class of product, regardless of the status | ||
502 | 307 | of the particular user or of the way in which the particular user | ||
503 | 308 | actually uses, or expects or is expected to use, the product. A product | ||
504 | 309 | is a consumer product regardless of whether the product has substantial | ||
505 | 310 | commercial, industrial or non-consumer uses, unless such uses represent | ||
506 | 311 | the only significant mode of use of the product. | ||
507 | 312 | |||
508 | 313 | "Installation Information" for a User Product means any methods, | ||
509 | 314 | procedures, authorization keys, or other information required to install | ||
510 | 315 | and execute modified versions of a covered work in that User Product from | ||
511 | 316 | a modified version of its Corresponding Source. The information must | ||
512 | 317 | suffice to ensure that the continued functioning of the modified object | ||
513 | 318 | code is in no case prevented or interfered with solely because | ||
514 | 319 | modification has been made. | ||
515 | 320 | |||
516 | 321 | If you convey an object code work under this section in, or with, or | ||
517 | 322 | specifically for use in, a User Product, and the conveying occurs as | ||
518 | 323 | part of a transaction in which the right of possession and use of the | ||
519 | 324 | User Product is transferred to the recipient in perpetuity or for a | ||
520 | 325 | fixed term (regardless of how the transaction is characterized), the | ||
521 | 326 | Corresponding Source conveyed under this section must be accompanied | ||
522 | 327 | by the Installation Information. But this requirement does not apply | ||
523 | 328 | if neither you nor any third party retains the ability to install | ||
524 | 329 | modified object code on the User Product (for example, the work has | ||
525 | 330 | been installed in ROM). | ||
526 | 331 | |||
527 | 332 | The requirement to provide Installation Information does not include a | ||
528 | 333 | requirement to continue to provide support service, warranty, or updates | ||
529 | 334 | for a work that has been modified or installed by the recipient, or for | ||
530 | 335 | the User Product in which it has been modified or installed. Access to a | ||
531 | 336 | network may be denied when the modification itself materially and | ||
532 | 337 | adversely affects the operation of the network or violates the rules and | ||
533 | 338 | protocols for communication across the network. | ||
534 | 339 | |||
535 | 340 | Corresponding Source conveyed, and Installation Information provided, | ||
536 | 341 | in accord with this section must be in a format that is publicly | ||
537 | 342 | documented (and with an implementation available to the public in | ||
538 | 343 | source code form), and must require no special password or key for | ||
539 | 344 | unpacking, reading or copying. | ||
540 | 345 | |||
541 | 346 | 7. Additional Terms. | ||
542 | 347 | |||
543 | 348 | "Additional permissions" are terms that supplement the terms of this | ||
544 | 349 | License by making exceptions from one or more of its conditions. | ||
545 | 350 | Additional permissions that are applicable to the entire Program shall | ||
546 | 351 | be treated as though they were included in this License, to the extent | ||
547 | 352 | that they are valid under applicable law. If additional permissions | ||
548 | 353 | apply only to part of the Program, that part may be used separately | ||
549 | 354 | under those permissions, but the entire Program remains governed by | ||
550 | 355 | this License without regard to the additional permissions. | ||
551 | 356 | |||
552 | 357 | When you convey a copy of a covered work, you may at your option | ||
553 | 358 | remove any additional permissions from that copy, or from any part of | ||
554 | 359 | it. (Additional permissions may be written to require their own | ||
555 | 360 | removal in certain cases when you modify the work.) You may place | ||
556 | 361 | additional permissions on material, added by you to a covered work, | ||
557 | 362 | for which you have or can give appropriate copyright permission. | ||
558 | 363 | |||
559 | 364 | Notwithstanding any other provision of this License, for material you | ||
560 | 365 | add to a covered work, you may (if authorized by the copyright holders of | ||
561 | 366 | that material) supplement the terms of this License with terms: | ||
562 | 367 | |||
563 | 368 | a) Disclaiming warranty or limiting liability differently from the | ||
564 | 369 | terms of sections 15 and 16 of this License; or | ||
565 | 370 | |||
566 | 371 | b) Requiring preservation of specified reasonable legal notices or | ||
567 | 372 | author attributions in that material or in the Appropriate Legal | ||
568 | 373 | Notices displayed by works containing it; or | ||
569 | 374 | |||
570 | 375 | c) Prohibiting misrepresentation of the origin of that material, or | ||
571 | 376 | requiring that modified versions of such material be marked in | ||
572 | 377 | reasonable ways as different from the original version; or | ||
573 | 378 | |||
574 | 379 | d) Limiting the use for publicity purposes of names of licensors or | ||
575 | 380 | authors of the material; or | ||
576 | 381 | |||
577 | 382 | e) Declining to grant rights under trademark law for use of some | ||
578 | 383 | trade names, trademarks, or service marks; or | ||
579 | 384 | |||
580 | 385 | f) Requiring indemnification of licensors and authors of that | ||
581 | 386 | material by anyone who conveys the material (or modified versions of | ||
582 | 387 | it) with contractual assumptions of liability to the recipient, for | ||
583 | 388 | any liability that these contractual assumptions directly impose on | ||
584 | 389 | those licensors and authors. | ||
585 | 390 | |||
586 | 391 | All other non-permissive additional terms are considered "further | ||
587 | 392 | restrictions" within the meaning of section 10. If the Program as you | ||
588 | 393 | received it, or any part of it, contains a notice stating that it is | ||
589 | 394 | governed by this License along with a term that is a further | ||
590 | 395 | restriction, you may remove that term. If a license document contains | ||
591 | 396 | a further restriction but permits relicensing or conveying under this | ||
592 | 397 | License, you may add to a covered work material governed by the terms | ||
593 | 398 | of that license document, provided that the further restriction does | ||
594 | 399 | not survive such relicensing or conveying. | ||
595 | 400 | |||
596 | 401 | If you add terms to a covered work in accord with this section, you | ||
597 | 402 | must place, in the relevant source files, a statement of the | ||
598 | 403 | additional terms that apply to those files, or a notice indicating | ||
599 | 404 | where to find the applicable terms. | ||
600 | 405 | |||
601 | 406 | Additional terms, permissive or non-permissive, may be stated in the | ||
602 | 407 | form of a separately written license, or stated as exceptions; | ||
603 | 408 | the above requirements apply either way. | ||
604 | 409 | |||
605 | 410 | 8. Termination. | ||
606 | 411 | |||
607 | 412 | You may not propagate or modify a covered work except as expressly | ||
608 | 413 | provided under this License. Any attempt otherwise to propagate or | ||
609 | 414 | modify it is void, and will automatically terminate your rights under | ||
610 | 415 | this License (including any patent licenses granted under the third | ||
611 | 416 | paragraph of section 11). | ||
612 | 417 | |||
613 | 418 | However, if you cease all violation of this License, then your | ||
614 | 419 | license from a particular copyright holder is reinstated (a) | ||
615 | 420 | provisionally, unless and until the copyright holder explicitly and | ||
616 | 421 | finally terminates your license, and (b) permanently, if the copyright | ||
617 | 422 | holder fails to notify you of the violation by some reasonable means | ||
618 | 423 | prior to 60 days after the cessation. | ||
619 | 424 | |||
620 | 425 | Moreover, your license from a particular copyright holder is | ||
621 | 426 | reinstated permanently if the copyright holder notifies you of the | ||
622 | 427 | violation by some reasonable means, this is the first time you have | ||
623 | 428 | received notice of violation of this License (for any work) from that | ||
624 | 429 | copyright holder, and you cure the violation prior to 30 days after | ||
625 | 430 | your receipt of the notice. | ||
626 | 431 | |||
627 | 432 | Termination of your rights under this section does not terminate the | ||
628 | 433 | licenses of parties who have received copies or rights from you under | ||
629 | 434 | this License. If your rights have been terminated and not permanently | ||
630 | 435 | reinstated, you do not qualify to receive new licenses for the same | ||
631 | 436 | material under section 10. | ||
632 | 437 | |||
633 | 438 | 9. Acceptance Not Required for Having Copies. | ||
634 | 439 | |||
635 | 440 | You are not required to accept this License in order to receive or | ||
636 | 441 | run a copy of the Program. Ancillary propagation of a covered work | ||
637 | 442 | occurring solely as a consequence of using peer-to-peer transmission | ||
638 | 443 | to receive a copy likewise does not require acceptance. However, | ||
639 | 444 | nothing other than this License grants you permission to propagate or | ||
640 | 445 | modify any covered work. These actions infringe copyright if you do | ||
641 | 446 | not accept this License. Therefore, by modifying or propagating a | ||
642 | 447 | covered work, you indicate your acceptance of this License to do so. | ||
643 | 448 | |||
644 | 449 | 10. Automatic Licensing of Downstream Recipients. | ||
645 | 450 | |||
646 | 451 | Each time you convey a covered work, the recipient automatically | ||
647 | 452 | receives a license from the original licensors, to run, modify and | ||
648 | 453 | propagate that work, subject to this License. You are not responsible | ||
649 | 454 | for enforcing compliance by third parties with this License. | ||
650 | 455 | |||
651 | 456 | An "entity transaction" is a transaction transferring control of an | ||
652 | 457 | organization, or substantially all assets of one, or subdividing an | ||
653 | 458 | organization, or merging organizations. If propagation of a covered | ||
654 | 459 | work results from an entity transaction, each party to that | ||
655 | 460 | transaction who receives a copy of the work also receives whatever | ||
656 | 461 | licenses to the work the party's predecessor in interest had or could | ||
657 | 462 | give under the previous paragraph, plus a right to possession of the | ||
658 | 463 | Corresponding Source of the work from the predecessor in interest, if | ||
659 | 464 | the predecessor has it or can get it with reasonable efforts. | ||
660 | 465 | |||
661 | 466 | You may not impose any further restrictions on the exercise of the | ||
662 | 467 | rights granted or affirmed under this License. For example, you may | ||
663 | 468 | not impose a license fee, royalty, or other charge for exercise of | ||
664 | 469 | rights granted under this License, and you may not initiate litigation | ||
665 | 470 | (including a cross-claim or counterclaim in a lawsuit) alleging that | ||
666 | 471 | any patent claim is infringed by making, using, selling, offering for | ||
667 | 472 | sale, or importing the Program or any portion of it. | ||
668 | 473 | |||
669 | 474 | 11. Patents. | ||
670 | 475 | |||
671 | 476 | A "contributor" is a copyright holder who authorizes use under this | ||
672 | 477 | License of the Program or a work on which the Program is based. The | ||
673 | 478 | work thus licensed is called the contributor's "contributor version". | ||
674 | 479 | |||
675 | 480 | A contributor's "essential patent claims" are all patent claims | ||
676 | 481 | owned or controlled by the contributor, whether already acquired or | ||
677 | 482 | hereafter acquired, that would be infringed by some manner, permitted | ||
678 | 483 | by this License, of making, using, or selling its contributor version, | ||
679 | 484 | but do not include claims that would be infringed only as a | ||
680 | 485 | consequence of further modification of the contributor version. For | ||
681 | 486 | purposes of this definition, "control" includes the right to grant | ||
682 | 487 | patent sublicenses in a manner consistent with the requirements of | ||
683 | 198 | this License. | 488 | this License. |
684 | 199 | 489 | ||
688 | 200 | 7. If, as a consequence of a court judgment or allegation of patent | 490 | Each contributor grants you a non-exclusive, worldwide, royalty-free |
689 | 201 | infringement or for any other reason (not limited to patent issues), | 491 | patent license under the contributor's essential patent claims, to |
690 | 202 | conditions are imposed on you (whether by court order, agreement or | 492 | make, use, sell, offer for sale, import and otherwise run, modify and |
691 | 493 | propagate the contents of its contributor version. | ||
692 | 494 | |||
693 | 495 | In the following three paragraphs, a "patent license" is any express | ||
694 | 496 | agreement or commitment, however denominated, not to enforce a patent | ||
695 | 497 | (such as an express permission to practice a patent or covenant not to | ||
696 | 498 | sue for patent infringement). To "grant" such a patent license to a | ||
697 | 499 | party means to make such an agreement or commitment not to enforce a | ||
698 | 500 | patent against the party. | ||
699 | 501 | |||
700 | 502 | If you convey a covered work, knowingly relying on a patent license, | ||
701 | 503 | and the Corresponding Source of the work is not available for anyone | ||
702 | 504 | to copy, free of charge and under the terms of this License, through a | ||
703 | 505 | publicly available network server or other readily accessible means, | ||
704 | 506 | then you must either (1) cause the Corresponding Source to be so | ||
705 | 507 | available, or (2) arrange to deprive yourself of the benefit of the | ||
706 | 508 | patent license for this particular work, or (3) arrange, in a manner | ||
707 | 509 | consistent with the requirements of this License, to extend the patent | ||
708 | 510 | license to downstream recipients. "Knowingly relying" means you have | ||
709 | 511 | actual knowledge that, but for the patent license, your conveying the | ||
710 | 512 | covered work in a country, or your recipient's use of the covered work | ||
711 | 513 | in a country, would infringe one or more identifiable patents in that | ||
712 | 514 | country that you have reason to believe are valid. | ||
713 | 515 | |||
714 | 516 | If, pursuant to or in connection with a single transaction or | ||
715 | 517 | arrangement, you convey, or propagate by procuring conveyance of, a | ||
716 | 518 | covered work, and grant a patent license to some of the parties | ||
717 | 519 | receiving the covered work authorizing them to use, propagate, modify | ||
718 | 520 | or convey a specific copy of the covered work, then the patent license | ||
719 | 521 | you grant is automatically extended to all recipients of the covered | ||
720 | 522 | work and works based on it. | ||
721 | 523 | |||
722 | 524 | A patent license is "discriminatory" if it does not include within | ||
723 | 525 | the scope of its coverage, prohibits the exercise of, or is | ||
724 | 526 | conditioned on the non-exercise of one or more of the rights that are | ||
725 | 527 | specifically granted under this License. You may not convey a covered | ||
726 | 528 | work if you are a party to an arrangement with a third party that is | ||
727 | 529 | in the business of distributing software, under which you make payment | ||
728 | 530 | to the third party based on the extent of your activity of conveying | ||
729 | 531 | the work, and under which the third party grants, to any of the | ||
730 | 532 | parties who would receive the covered work from you, a discriminatory | ||
731 | 533 | patent license (a) in connection with copies of the covered work | ||
732 | 534 | conveyed by you (or copies made from those copies), or (b) primarily | ||
733 | 535 | for and in connection with specific products or compilations that | ||
734 | 536 | contain the covered work, unless you entered into that arrangement, | ||
735 | 537 | or that patent license was granted, prior to 28 March 2007. | ||
736 | 538 | |||
737 | 539 | Nothing in this License shall be construed as excluding or limiting | ||
738 | 540 | any implied license or other defenses to infringement that may | ||
739 | 541 | otherwise be available to you under applicable patent law. | ||
740 | 542 | |||
741 | 543 | 12. No Surrender of Others' Freedom. | ||
742 | 544 | |||
743 | 545 | If conditions are imposed on you (whether by court order, agreement or | ||
744 | 203 | otherwise) that contradict the conditions of this License, they do not | 546 | otherwise) that contradict the conditions of this License, they do not |
745 | 204 | excuse you from the conditions of this License. If you cannot | ||
746 | 205 | distribute so as to satisfy simultaneously your obligations under this | ||
747 | 206 | License and any other pertinent obligations, then as a consequence you | ||
748 | 207 | may not distribute the Program at all. For example, if a patent | ||
749 | 208 | license would not permit royalty-free redistribution of the Program by | ||
750 | 209 | all those who receive copies directly or indirectly through you, then | ||
751 | 210 | the only way you could satisfy both it and this License would be to | ||
752 | 211 | refrain entirely from distribution of the Program. | ||
753 | 212 | |||
754 | 213 | If any portion of this section is held invalid or unenforceable under | ||
755 | 214 | any particular circumstance, the balance of the section is intended to | ||
756 | 215 | apply and the section as a whole is intended to apply in other | ||
757 | 216 | circumstances. | ||
758 | 217 | |||
759 | 218 | It is not the purpose of this section to induce you to infringe any | ||
760 | 219 | patents or other property right claims or to contest validity of any | ||
761 | 220 | such claims; this section has the sole purpose of protecting the | ||
762 | 221 | integrity of the free software distribution system, which is | ||
763 | 222 | implemented by public license practices. Many people have made | ||
764 | 223 | generous contributions to the wide range of software distributed | ||
765 | 224 | through that system in reliance on consistent application of that | ||
766 | 225 | system; it is up to the author/donor to decide if he or she is willing | ||
767 | 226 | to distribute software through any other system and a licensee cannot | ||
768 | 227 | impose that choice. | ||
769 | 228 | |||
770 | 229 | This section is intended to make thoroughly clear what is believed to | ||
771 | 230 | be a consequence of the rest of this License. | ||
772 | 231 | |||
773 | 232 | 547 | ||
784 | 233 | 8. If the distribution and/or use of the Program is restricted in | 548 | excuse you from the conditions of this License. If you cannot convey a |
785 | 234 | certain countries either by patents or by copyrighted interfaces, the | 549 | covered work so as to satisfy simultaneously your obligations under this |
786 | 235 | original copyright holder who places the Program under this License | 550 | License and any other pertinent obligations, then as a consequence you may |
787 | 236 | may add an explicit geographical distribution limitation excluding | 551 | not convey it at all. For example, if you agree to terms that obligate you |
788 | 237 | those countries, so that distribution is permitted only in or among | 552 | to collect a royalty for further conveying from those to whom you convey |
789 | 238 | countries not thus excluded. In such case, this License incorporates | 553 | the Program, the only way you could satisfy both those terms and this |
790 | 239 | the limitation as if written in the body of this License. | 554 | License would be to refrain entirely from conveying the Program. |
791 | 240 | 555 | ||
792 | 241 | 9. The Free Software Foundation may publish revised and/or new versions | 556 | 13. Use with the GNU Affero General Public License. |
793 | 242 | of the General Public License from time to time. Such new versions will | 557 | |
794 | 558 | Notwithstanding any other provision of this License, you have | ||
795 | 559 | permission to link or combine any covered work with a work licensed | ||
796 | 560 | under version 3 of the GNU Affero General Public License into a single | ||
797 | 561 | combined work, and to convey the resulting work. The terms of this | ||
798 | 562 | License will continue to apply to the part which is the covered work, | ||
799 | 563 | but the special requirements of the GNU Affero General Public License, | ||
800 | 564 | section 13, concerning interaction through a network will apply to the | ||
801 | 565 | combination as such. | ||
802 | 566 | |||
803 | 567 | 14. Revised Versions of this License. | ||
804 | 568 | |||
805 | 569 | The Free Software Foundation may publish revised and/or new versions of | ||
806 | 570 | the GNU General Public License from time to time. Such new versions will | ||
807 | 243 | be similar in spirit to the present version, but may differ in detail to | 571 | be similar in spirit to the present version, but may differ in detail to |
808 | 244 | address new problems or concerns. | 572 | address new problems or concerns. |
809 | 245 | 573 | ||
810 | 246 | Each version is given a distinguishing version number. If the Program | ||
811 | 247 | specifies a version number of this License which applies to it and "any | ||
812 | 248 | later version", you have the option of following the terms and conditions | ||
813 | 249 | either of that version or of any later version published by the Free | ||
814 | 250 | Software Foundation. If the Program does not specify a version number of | ||
815 | 251 | this License, you may choose any version ever published by the Free Software | ||
816 | 252 | Foundation. | ||
817 | 253 | |||
818 | 254 | 10. If you wish to incorporate parts of the Program into other free | ||
819 | 255 | programs whose distribution conditions are different, write to the author | ||
820 | 256 | to ask for permission. For software which is copyrighted by the Free | ||
821 | 257 | Software Foundation, write to the Free Software Foundation; we sometimes | ||
822 | 258 | make exceptions for this. Our decision will be guided by the two goals | ||
823 | 259 | of preserving the free status of all derivatives of our free software and | ||
824 | 260 | of promoting the sharing and reuse of software generally. | ||
825 | 261 | |||
826 | 262 | NO WARRANTY | ||
827 | 263 | |||
828 | 264 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
829 | 265 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
830 | 266 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||
831 | 267 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
832 | 268 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
833 | 269 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | ||
834 | 270 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
835 | 271 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||
836 | 272 | REPAIR OR CORRECTION. | ||
837 | 273 | |||
838 | 274 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
839 | 275 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
840 | 276 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||
841 | 277 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||
842 | 278 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||
843 | 279 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||
844 | 280 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||
845 | 281 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
846 | 282 | POSSIBILITY OF SUCH DAMAGES. | ||
847 | 283 | |||
848 | 284 | END OF TERMS AND CONDITIONS | ||
849 | 285 | |||
850 | 286 | 574 | ||
852 | 287 | Appendix: How to Apply These Terms to Your New Programs | 575 | Each version is given a distinguishing version number. If the |
853 | 576 | Program specifies that a certain numbered version of the GNU General | ||
854 | 577 | Public License "or any later version" applies to it, you have the | ||
855 | 578 | option of following the terms and conditions either of that numbered | ||
856 | 579 | version or of any later version published by the Free Software | ||
857 | 580 | Foundation. If the Program does not specify a version number of the | ||
858 | 581 | GNU General Public License, you may choose any version ever published | ||
859 | 582 | by the Free Software Foundation. | ||
860 | 583 | |||
861 | 584 | If the Program specifies that a proxy can decide which future | ||
862 | 585 | versions of the GNU General Public License can be used, that proxy's | ||
863 | 586 | public statement of acceptance of a version permanently authorizes you | ||
864 | 587 | to choose that version for the Program. | ||
865 | 588 | |||
866 | 589 | Later license versions may give you additional or different | ||
867 | 590 | permissions. However, no additional obligations are imposed on any | ||
868 | 591 | author or copyright holder as a result of your choosing to follow a | ||
869 | 592 | later version. | ||
870 | 593 | |||
871 | 594 | 15. Disclaimer of Warranty. | ||
872 | 595 | |||
873 | 596 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | ||
874 | 597 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | ||
875 | 598 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | ||
876 | 599 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
877 | 600 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
878 | 601 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | ||
879 | 602 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | ||
880 | 603 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
881 | 604 | |||
882 | 605 | 16. Limitation of Liability. | ||
883 | 606 | |||
884 | 607 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
885 | 608 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | ||
886 | 609 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | ||
887 | 610 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | ||
888 | 611 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | ||
889 | 612 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | ||
890 | 613 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | ||
891 | 614 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
892 | 615 | SUCH DAMAGES. | ||
893 | 616 | |||
894 | 617 | 17. Interpretation of Sections 15 and 16. | ||
895 | 618 | |||
896 | 619 | If the disclaimer of warranty and limitation of liability provided | ||
897 | 620 | above cannot be given local legal effect according to their terms, | ||
898 | 621 | reviewing courts shall apply local law that most closely approximates | ||
899 | 622 | an absolute waiver of all civil liability in connection with the | ||
900 | 623 | Program, unless a warranty or assumption of liability accompanies a | ||
901 | 624 | copy of the Program in return for a fee. | ||
902 | 625 | |||
903 | 626 | END OF TERMS AND CONDITIONS | ||
904 | 627 | |||
905 | 628 | How to Apply These Terms to Your New Programs | ||
906 | 288 | 629 | ||
907 | 289 | If you develop a new program, and you want it to be of the greatest | 630 | If you develop a new program, and you want it to be of the greatest |
908 | 290 | possible use to the public, the best way to achieve this is to make it | 631 | possible use to the public, the best way to achieve this is to make it |
909 | @@ -287,15 +628,15 @@ | |||
910 | 287 | 628 | ||
911 | 288 | To do so, attach the following notices to the program. It is safest | 629 | To do so, attach the following notices to the program. It is safest |
912 | 289 | to attach them to the start of each source file to most effectively | 630 | to attach them to the start of each source file to most effectively |
914 | 290 | convey the exclusion of warranty; and each file should have at least | 631 | state the exclusion of warranty; and each file should have at least |
915 | 291 | the "copyright" line and a pointer to where the full notice is found. | 632 | the "copyright" line and a pointer to where the full notice is found. |
916 | 292 | 633 | ||
917 | 293 | <one line to give the program's name and a brief idea of what it does.> | 634 | <one line to give the program's name and a brief idea of what it does.> |
919 | 294 | Copyright (C) 19yy <name of author> | 635 | Copyright (C) <year> <name of author> |
920 | 295 | 636 | ||
922 | 296 | This program is free software; you can redistribute it and/or modify | 637 | This program is free software: you can redistribute it and/or modify |
923 | 297 | it under the terms of the GNU General Public License as published by | 638 | it under the terms of the GNU General Public License as published by |
925 | 298 | the Free Software Foundation; either version 2 of the License, or | 639 | the Free Software Foundation, either version 3 of the License, or |
926 | 299 | (at your option) any later version. | 640 | (at your option) any later version. |
927 | 300 | 641 | ||
928 | 301 | This program is distributed in the hope that it will be useful, | 642 | This program is distributed in the hope that it will be useful, |
929 | @@ -304,36 +645,30 @@ | |||
930 | 304 | GNU General Public License for more details. | 645 | GNU General Public License for more details. |
931 | 305 | 646 | ||
932 | 306 | You should have received a copy of the GNU General Public License | 647 | You should have received a copy of the GNU General Public License |
935 | 307 | along with this program; if not, write to the Free Software | 648 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
934 | 308 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
936 | 309 | 649 | ||
937 | 310 | Also add information on how to contact you by electronic and paper mail. | 650 | Also add information on how to contact you by electronic and paper mail. |
938 | 311 | 651 | ||
941 | 312 | If the program is interactive, make it output a short notice like this | 652 | If the program does terminal interaction, make it output a short |
942 | 313 | when it starts in an interactive mode: | 653 | notice like this when it starts in an interactive mode: |
943 | 314 | 654 | ||
946 | 315 | Gnomovision version 69, Copyright (C) 19yy name of author | 655 | <program> Copyright (C) <year> <name of author> |
947 | 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
948 | 317 | This is free software, and you are welcome to redistribute it | 657 | This is free software, and you are welcome to redistribute it |
949 | 318 | under certain conditions; type `show c' for details. | 658 | under certain conditions; type `show c' for details. |
950 | 319 | 659 | ||
951 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate | 660 | The hypothetical commands `show w' and `show c' should show the appropriate |
971 | 321 | parts of the General Public License. Of course, the commands you use may | 661 | parts of the General Public License. Of course, your program's commands |
972 | 322 | be called something other than `show w' and `show c'; they could even be | 662 | might be different; for a GUI interface, you would use an "about box". |
973 | 323 | mouse-clicks or menu items--whatever suits your program. | 663 | |
974 | 324 | 664 | You should also get your employer (if you work as a programmer) or school, | |
975 | 325 | You should also get your employer (if you work as a programmer) or your | 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. |
976 | 326 | school, if any, to sign a "copyright disclaimer" for the program, if | 666 | For more information on this, and how to apply and follow the GNU GPL, see |
977 | 327 | necessary. Here is a sample; alter the names: | 667 | <http://www.gnu.org/licenses/>. |
978 | 328 | 668 | ||
979 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | 669 | The GNU General Public License does not permit incorporating your program |
980 | 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | 670 | into proprietary programs. If your program is a subroutine library, you |
981 | 331 | 671 | may consider it more useful to permit linking proprietary applications with | |
982 | 332 | <signature of Ty Coon>, 1 April 1989 | 672 | the library. If this is what you want to do, use the GNU Lesser General |
983 | 333 | Ty Coon, President of Vice | 673 | Public License instead of this License. But first, please read |
984 | 334 | 674 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. | |
966 | 335 | This General Public License does not permit incorporating your program into | ||
967 | 336 | proprietary programs. If your program is a subroutine library, you may | ||
968 | 337 | consider it more useful to permit linking proprietary applications with the | ||
969 | 338 | library. If this is what you want to do, use the GNU Library General | ||
970 | 339 | Public License instead of this License. | ||
985 | 340 | 675 | ||
986 | === modified file 'ChangeLog' | |||
987 | --- ChangeLog 2006-03-18 18:38:00 +0000 | |||
988 | +++ ChangeLog 2010-01-20 17:40:26 +0000 | |||
989 | @@ -1,3 +1,7 @@ | |||
990 | 1 | Mon Aug 24 00:01:05 2009 Markus Gothe <nietzsche@lysator.liu.se> | ||
991 | 2 | |||
992 | 3 | * Major overhaul, releasing GNU Acct 6.5. | ||
993 | 4 | |||
994 | 1 | Sat Jan 07 23:10:00 2006 Tim Schmielau <tim@physik3.uni-rostock.de> | 5 | Sat Jan 07 23:10:00 2006 Tim Schmielau <tim@physik3.uni-rostock.de> |
995 | 2 | 6 | ||
996 | 3 | * NEWS: document changes in the upcoming 6.4 release. | 7 | * NEWS: document changes in the upcoming 6.4 release. |
997 | 4 | 8 | ||
998 | === modified file 'INSTALL' | |||
999 | --- INSTALL 2006-03-18 18:38:00 +0000 | |||
1000 | +++ INSTALL 2010-01-20 17:40:26 +0000 | |||
1001 | @@ -1,16 +1,19 @@ | |||
1002 | 1 | Installation Instructions | 1 | Installation Instructions |
1003 | 2 | ************************* | 2 | ************************* |
1004 | 3 | 3 | ||
1007 | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
1008 | 5 | Software Foundation, Inc. | 5 | 2006, 2007, 2008 Free Software Foundation, Inc. |
1009 | 6 | 6 | ||
1011 | 7 | This file is free documentation; the Free Software Foundation gives | 7 | This file is free documentation; the Free Software Foundation gives |
1012 | 8 | unlimited permission to copy, distribute and modify it. | 8 | unlimited permission to copy, distribute and modify it. |
1013 | 9 | 9 | ||
1014 | 10 | Basic Installation | 10 | Basic Installation |
1015 | 11 | ================== | 11 | ================== |
1016 | 12 | 12 | ||
1018 | 13 | These are generic installation instructions. | 13 | Briefly, the shell commands `./configure; make; make install' should |
1019 | 14 | configure, build, and install this package. The following | ||
1020 | 15 | more-detailed instructions are generic; see the `README' file for | ||
1021 | 16 | instructions specific to this package. | ||
1022 | 14 | 17 | ||
1023 | 15 | The `configure' shell script attempts to guess correct values for | 18 | The `configure' shell script attempts to guess correct values for |
1024 | 16 | various system-dependent variables used during compilation. It uses | 19 | various system-dependent variables used during compilation. It uses |
1025 | @@ -23,9 +26,9 @@ | |||
1026 | 23 | 26 | ||
1027 | 24 | It can also use an optional file (typically called `config.cache' | 27 | It can also use an optional file (typically called `config.cache' |
1028 | 25 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | 28 | and enabled with `--cache-file=config.cache' or simply `-C') that saves |
1030 | 26 | the results of its tests to speed up reconfiguring. (Caching is | 29 | the results of its tests to speed up reconfiguring. Caching is |
1031 | 27 | disabled by default to prevent problems with accidental use of stale | 30 | disabled by default to prevent problems with accidental use of stale |
1033 | 28 | cache files.) | 31 | cache files. |
1034 | 29 | 32 | ||
1035 | 30 | If you need to do unusual things to compile the package, please try | 33 | If you need to do unusual things to compile the package, please try |
1036 | 31 | to figure out how `configure' could check whether to do them, and mail | 34 | to figure out how `configure' could check whether to do them, and mail |
1037 | @@ -35,20 +38,17 @@ | |||
1038 | 35 | may remove or edit it. | 38 | may remove or edit it. |
1039 | 36 | 39 | ||
1040 | 37 | The file `configure.ac' (or `configure.in') is used to create | 40 | The file `configure.ac' (or `configure.in') is used to create |
1044 | 38 | `configure' by a program called `autoconf'. You only need | 41 | `configure' by a program called `autoconf'. You need `configure.ac' if |
1045 | 39 | `configure.ac' if you want to change it or regenerate `configure' using | 42 | you want to change it or regenerate `configure' using a newer version |
1046 | 40 | a newer version of `autoconf'. | 43 | of `autoconf'. |
1047 | 41 | 44 | ||
1048 | 42 | The simplest way to compile this package is: | 45 | The simplest way to compile this package is: |
1049 | 43 | 46 | ||
1050 | 44 | 1. `cd' to the directory containing the package's source code and type | 47 | 1. `cd' to the directory containing the package's source code and type |
1055 | 45 | `./configure' to configure the package for your system. If you're | 48 | `./configure' to configure the package for your system. |
1052 | 46 | using `csh' on an old version of System V, you might need to type | ||
1053 | 47 | `sh ./configure' instead to prevent `csh' from trying to execute | ||
1054 | 48 | `configure' itself. | ||
1056 | 49 | 49 | ||
1059 | 50 | Running `configure' takes awhile. While running, it prints some | 50 | Running `configure' might take a while. While running, it prints |
1060 | 51 | messages telling which features it is checking for. | 51 | some messages telling which features it is checking for. |
1061 | 52 | 52 | ||
1062 | 53 | 2. Type `make' to compile the package. | 53 | 2. Type `make' to compile the package. |
1063 | 54 | 54 | ||
1064 | @@ -67,42 +67,57 @@ | |||
1065 | 67 | all sorts of other programs in order to regenerate files that came | 67 | all sorts of other programs in order to regenerate files that came |
1066 | 68 | with the distribution. | 68 | with the distribution. |
1067 | 69 | 69 | ||
1068 | 70 | 6. Often, you can also type `make uninstall' to remove the installed | ||
1069 | 71 | files again. | ||
1070 | 72 | |||
1071 | 70 | Compilers and Options | 73 | Compilers and Options |
1072 | 71 | ===================== | 74 | ===================== |
1073 | 72 | 75 | ||
1077 | 73 | Some systems require unusual options for compilation or linking that the | 76 | Some systems require unusual options for compilation or linking that |
1078 | 74 | `configure' script does not know about. Run `./configure --help' for | 77 | the `configure' script does not know about. Run `./configure --help' |
1079 | 75 | details on some of the pertinent environment variables. | 78 | for details on some of the pertinent environment variables. |
1080 | 76 | 79 | ||
1081 | 77 | You can give `configure' initial values for configuration parameters | 80 | You can give `configure' initial values for configuration parameters |
1082 | 78 | by setting variables in the command line or in the environment. Here | 81 | by setting variables in the command line or in the environment. Here |
1083 | 79 | is an example: | 82 | is an example: |
1084 | 80 | 83 | ||
1086 | 81 | ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix | 84 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
1087 | 82 | 85 | ||
1088 | 83 | *Note Defining Variables::, for more details. | 86 | *Note Defining Variables::, for more details. |
1089 | 84 | 87 | ||
1090 | 85 | Compiling For Multiple Architectures | 88 | Compiling For Multiple Architectures |
1091 | 86 | ==================================== | 89 | ==================================== |
1092 | 87 | 90 | ||
1094 | 88 | You can compile the package for more than one kind of computer at the | 91 | You can compile the package for more than one kind of computer at the |
1095 | 89 | same time, by placing the object files for each architecture in their | 92 | same time, by placing the object files for each architecture in their |
1098 | 90 | own directory. To do this, you must use a version of `make' that | 93 | own directory. To do this, you can use GNU `make'. `cd' to the |
1097 | 91 | supports the `VPATH' variable, such as GNU `make'. `cd' to the | ||
1099 | 92 | directory where you want the object files and executables to go and run | 94 | directory where you want the object files and executables to go and run |
1100 | 93 | the `configure' script. `configure' automatically checks for the | 95 | the `configure' script. `configure' automatically checks for the |
1101 | 94 | source code in the directory that `configure' is in and in `..'. | 96 | source code in the directory that `configure' is in and in `..'. |
1102 | 95 | 97 | ||
1108 | 96 | If you have to use a `make' that does not support the `VPATH' | 98 | With a non-GNU `make', it is safer to compile the package for one |
1109 | 97 | variable, you have to compile the package for one architecture at a | 99 | architecture at a time in the source code directory. After you have |
1110 | 98 | time in the source code directory. After you have installed the | 100 | installed the package for one architecture, use `make distclean' before |
1111 | 99 | package for one architecture, use `make distclean' before reconfiguring | 101 | reconfiguring for another architecture. |
1112 | 100 | for another architecture. | 102 | |
1113 | 103 | On MacOS X 10.5 and later systems, you can create libraries and | ||
1114 | 104 | executables that work on multiple system types--known as "fat" or | ||
1115 | 105 | "universal" binaries--by specifying multiple `-arch' options to the | ||
1116 | 106 | compiler but only a single `-arch' option to the preprocessor. Like | ||
1117 | 107 | this: | ||
1118 | 108 | |||
1119 | 109 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
1120 | 110 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
1121 | 111 | CPP="gcc -E" CXXCPP="g++ -E" | ||
1122 | 112 | |||
1123 | 113 | This is not guaranteed to produce working output in all cases, you | ||
1124 | 114 | may have to build one architecture at a time and combine the results | ||
1125 | 115 | using the `lipo' tool if you have problems. | ||
1126 | 101 | 116 | ||
1127 | 102 | Installation Names | 117 | Installation Names |
1128 | 103 | ================== | 118 | ================== |
1129 | 104 | 119 | ||
1131 | 105 | By default, `make install' installs the package's commands under | 120 | By default, `make install' installs the package's commands under |
1132 | 106 | `/usr/local/bin', include files under `/usr/local/include', etc. You | 121 | `/usr/local/bin', include files under `/usr/local/include', etc. You |
1133 | 107 | can specify an installation prefix other than `/usr/local' by giving | 122 | can specify an installation prefix other than `/usr/local' by giving |
1134 | 108 | `configure' the option `--prefix=PREFIX'. | 123 | `configure' the option `--prefix=PREFIX'. |
1135 | @@ -125,7 +140,7 @@ | |||
1136 | 125 | Optional Features | 140 | Optional Features |
1137 | 126 | ================= | 141 | ================= |
1138 | 127 | 142 | ||
1140 | 128 | Some packages pay attention to `--enable-FEATURE' options to | 143 | Some packages pay attention to `--enable-FEATURE' options to |
1141 | 129 | `configure', where FEATURE indicates an optional part of the package. | 144 | `configure', where FEATURE indicates an optional part of the package. |
1142 | 130 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | 145 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
1143 | 131 | is something like `gnu-as' or `x' (for the X Window System). The | 146 | is something like `gnu-as' or `x' (for the X Window System). The |
1144 | @@ -137,14 +152,36 @@ | |||
1145 | 137 | you can use the `configure' options `--x-includes=DIR' and | 152 | you can use the `configure' options `--x-includes=DIR' and |
1146 | 138 | `--x-libraries=DIR' to specify their locations. | 153 | `--x-libraries=DIR' to specify their locations. |
1147 | 139 | 154 | ||
1148 | 155 | Particular systems | ||
1149 | 156 | ================== | ||
1150 | 157 | |||
1151 | 158 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
1152 | 159 | CC is not installed, it is recommended to use the following options in | ||
1153 | 160 | order to use an ANSI C compiler: | ||
1154 | 161 | |||
1155 | 162 | ./configure CC="cc -Ae" | ||
1156 | 163 | |||
1157 | 164 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
1158 | 165 | |||
1159 | 166 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
1160 | 167 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
1161 | 168 | a workaround. If GNU CC is not installed, it is therefore recommended | ||
1162 | 169 | to try | ||
1163 | 170 | |||
1164 | 171 | ./configure CC="cc" | ||
1165 | 172 | |||
1166 | 173 | and if that doesn't work, try | ||
1167 | 174 | |||
1168 | 175 | ./configure CC="cc -nodtk" | ||
1169 | 176 | |||
1170 | 140 | Specifying the System Type | 177 | Specifying the System Type |
1171 | 141 | ========================== | 178 | ========================== |
1172 | 142 | 179 | ||
1178 | 143 | There may be some features `configure' cannot figure out automatically, | 180 | There may be some features `configure' cannot figure out |
1179 | 144 | but needs to determine by the type of machine the package will run on. | 181 | automatically, but needs to determine by the type of machine the package |
1180 | 145 | Usually, assuming the package is built to be run on the _same_ | 182 | will run on. Usually, assuming the package is built to be run on the |
1181 | 146 | architectures, `configure' can figure that out, but if it prints a | 183 | _same_ architectures, `configure' can figure that out, but if it prints |
1182 | 147 | message saying it cannot guess the machine type, give it the | 184 | a message saying it cannot guess the machine type, give it the |
1183 | 148 | `--build=TYPE' option. TYPE can either be a short name for the system | 185 | `--build=TYPE' option. TYPE can either be a short name for the system |
1184 | 149 | type, such as `sun4', or a canonical name which has the form: | 186 | type, such as `sun4', or a canonical name which has the form: |
1185 | 150 | 187 | ||
1186 | @@ -170,9 +207,9 @@ | |||
1187 | 170 | Sharing Defaults | 207 | Sharing Defaults |
1188 | 171 | ================ | 208 | ================ |
1189 | 172 | 209 | ||
1193 | 173 | If you want to set default values for `configure' scripts to share, you | 210 | If you want to set default values for `configure' scripts to share, |
1194 | 174 | can create a site shell script called `config.site' that gives default | 211 | you can create a site shell script called `config.site' that gives |
1195 | 175 | values for variables like `CC', `cache_file', and `prefix'. | 212 | default values for variables like `CC', `cache_file', and `prefix'. |
1196 | 176 | `configure' looks for `PREFIX/share/config.site' if it exists, then | 213 | `configure' looks for `PREFIX/share/config.site' if it exists, then |
1197 | 177 | `PREFIX/etc/config.site' if it exists. Or, you can set the | 214 | `PREFIX/etc/config.site' if it exists. Or, you can set the |
1198 | 178 | `CONFIG_SITE' environment variable to the location of the site script. | 215 | `CONFIG_SITE' environment variable to the location of the site script. |
1199 | @@ -181,7 +218,7 @@ | |||
1200 | 181 | Defining Variables | 218 | Defining Variables |
1201 | 182 | ================== | 219 | ================== |
1202 | 183 | 220 | ||
1204 | 184 | Variables not defined in a site shell script can be set in the | 221 | Variables not defined in a site shell script can be set in the |
1205 | 185 | environment passed to `configure'. However, some packages may run | 222 | environment passed to `configure'. However, some packages may run |
1206 | 186 | configure again during the build, and the customized values of these | 223 | configure again during the build, and the customized values of these |
1207 | 187 | variables may be lost. In order to avoid this problem, you should set | 224 | variables may be lost. In order to avoid this problem, you should set |
1208 | @@ -190,21 +227,29 @@ | |||
1209 | 190 | ./configure CC=/usr/local2/bin/gcc | 227 | ./configure CC=/usr/local2/bin/gcc |
1210 | 191 | 228 | ||
1211 | 192 | causes the specified `gcc' to be used as the C compiler (unless it is | 229 | causes the specified `gcc' to be used as the C compiler (unless it is |
1218 | 193 | overridden in the site shell script). Here is a another example: | 230 | overridden in the site shell script). |
1219 | 194 | 231 | ||
1220 | 195 | /bin/bash ./configure CONFIG_SHELL=/bin/bash | 232 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to |
1221 | 196 | 233 | an Autoconf bug. Until the bug is fixed you can use this workaround: | |
1222 | 197 | Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent | 234 | |
1223 | 198 | configuration-related scripts to be executed by `/bin/bash'. | 235 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash |
1224 | 199 | 236 | ||
1225 | 200 | `configure' Invocation | 237 | `configure' Invocation |
1226 | 201 | ====================== | 238 | ====================== |
1227 | 202 | 239 | ||
1229 | 203 | `configure' recognizes the following options to control how it operates. | 240 | `configure' recognizes the following options to control how it |
1230 | 241 | operates. | ||
1231 | 204 | 242 | ||
1232 | 205 | `--help' | 243 | `--help' |
1233 | 206 | `-h' | 244 | `-h' |
1235 | 207 | Print a summary of the options to `configure', and exit. | 245 | Print a summary of all of the options to `configure', and exit. |
1236 | 246 | |||
1237 | 247 | `--help=short' | ||
1238 | 248 | `--help=recursive' | ||
1239 | 249 | Print a summary of the options unique to this package's | ||
1240 | 250 | `configure', and exit. The `short' variant lists options used | ||
1241 | 251 | only in the top level, while the `recursive' variant lists options | ||
1242 | 252 | also present in any nested packages. | ||
1243 | 208 | 253 | ||
1244 | 209 | `--version' | 254 | `--version' |
1245 | 210 | `-V' | 255 | `-V' |
1246 | @@ -231,6 +276,16 @@ | |||
1247 | 231 | Look for the package's source code in directory DIR. Usually | 276 | Look for the package's source code in directory DIR. Usually |
1248 | 232 | `configure' can determine that directory automatically. | 277 | `configure' can determine that directory automatically. |
1249 | 233 | 278 | ||
1250 | 279 | `--prefix=DIR' | ||
1251 | 280 | Use DIR as the installation prefix. *Note Installation Names:: | ||
1252 | 281 | for more details, including other options available for fine-tuning | ||
1253 | 282 | the installation locations. | ||
1254 | 283 | |||
1255 | 284 | `--no-create' | ||
1256 | 285 | `-n' | ||
1257 | 286 | Run the configure checks, but stop before creating any output | ||
1258 | 287 | files. | ||
1259 | 288 | |||
1260 | 234 | `configure' also accepts some other, not widely useful, options. Run | 289 | `configure' also accepts some other, not widely useful, options. Run |
1261 | 235 | `configure --help' for more details. | 290 | `configure --help' for more details. |
1262 | 236 | 291 | ||
1263 | 237 | 292 | ||
1264 | === modified file 'Makefile.am' | |||
1265 | --- Makefile.am 2006-03-18 18:38:00 +0000 | |||
1266 | +++ Makefile.am 2010-01-20 17:40:26 +0000 | |||
1267 | @@ -1,6 +1,11 @@ | |||
1268 | 1 | ## Â$Id: Makefile.am,v 1.12 2009/09/05 20:58:56 nihilus Exp $ | ||
1269 | 1 | ## Process this file with automake to produce Makefile.in | 2 | ## Process this file with automake to produce Makefile.in |
1270 | 2 | 3 | ||
1272 | 3 | AUTOMAKE_OPTIONS = ansi2knr | 4 | AUTOMAKE_OPTIONS = |
1273 | 5 | ACLOCAL_AMFLAGS = -I m4 | ||
1274 | 6 | AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib | ||
1275 | 7 | |||
1276 | 8 | SUBDIRS = lib | ||
1277 | 4 | 9 | ||
1278 | 5 | ## What programs do we want to build? | 10 | ## What programs do we want to build? |
1279 | 6 | 11 | ||
1280 | @@ -8,36 +13,33 @@ | |||
1281 | 8 | sbin_PROGRAMS = dump-utmp @DUMP_ACCT_PROG@ @ACCTON_PROG@ @SA_PROG@ | 13 | sbin_PROGRAMS = dump-utmp @DUMP_ACCT_PROG@ @ACCTON_PROG@ @SA_PROG@ |
1282 | 9 | EXTRA_PROGRAMS = lastcomm dump-acct accton sa | 14 | EXTRA_PROGRAMS = lastcomm dump-acct accton sa |
1283 | 10 | 15 | ||
1284 | 16 | # What libs do we want to link against? | ||
1285 | 17 | |||
1286 | 18 | LDADD = lib/libgnu.la | ||
1287 | 19 | |||
1288 | 11 | ## From what sources are those programs built? | 20 | ## From what sources are those programs built? |
1289 | 12 | 21 | ||
1298 | 13 | ac_SOURCES = ac.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | 22 | ac_SOURCES = ac.c common.c file_rd.c hashtab.c \ |
1299 | 14 | mktime.c utmp_rd.c | 23 | utmp_rd.c |
1300 | 15 | ac_LDADD = @ALLOCA@ | 24 | |
1301 | 16 | 25 | accton_SOURCES = accton.c common.c | |
1302 | 17 | accton_SOURCES = accton.c common.c getopt.c getopt1.c | 26 | |
1303 | 18 | accton_LDADD = @ALLOCA@ | 27 | dump_acct_SOURCES = dump-acct.c common.c file_rd.c \ |
1296 | 19 | |||
1297 | 20 | dump_acct_SOURCES = dump-acct.c common.c getopt.c getopt1.c file_rd.c \ | ||
1304 | 21 | pacct_rd.c | 28 | pacct_rd.c |
1320 | 22 | dump_acct_LDADD = @ALLOCA@ | 29 | |
1321 | 23 | 30 | dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \ | |
1322 | 24 | dump_utmp_SOURCES = dump-utmp.c common.c getopt.c getopt1.c file_rd.c \ | 31 | utmp_rd.c |
1323 | 25 | utmp_rd.c | 32 | |
1324 | 26 | dump_utmp_LDADD = @ALLOCA@ | 33 | last_SOURCES = last.c common.c file_rd.c hashtab.c \ |
1325 | 27 | 34 | utmp_rd.c | |
1326 | 28 | last_SOURCES = last.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | 35 | |
1327 | 29 | utmp_rd.c | 36 | lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \ |
1328 | 30 | last_LDADD = @ALLOCA@ | 37 | hashtab.c pacct_rd.c uid_hash.c |
1329 | 31 | 38 | ||
1330 | 32 | lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c getopt.c \ | 39 | sa_SOURCES = sa.c common.c file_rd.c hashtab.c \ |
1316 | 33 | getopt1.c hashtab.c pacct_rd.c uid_hash.c | ||
1317 | 34 | lastcomm_LDADD = @ALLOCA@ | ||
1318 | 35 | |||
1319 | 36 | sa_SOURCES = sa.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | ||
1331 | 37 | pacct_rd.c uid_hash.c | 40 | pacct_rd.c uid_hash.c |
1332 | 38 | sa_LDADD = @ALLOCA@ | ||
1333 | 39 | 41 | ||
1335 | 40 | noinst_HEADERS = common.h config.h dev_hash.h file_rd.h getopt.h hashtab.h \ | 42 | noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \ |
1336 | 41 | pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h | 43 | pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h |
1337 | 42 | 44 | ||
1338 | 43 | # What documentation should we include? | 45 | # What documentation should we include? |
1339 | @@ -50,7 +52,7 @@ | |||
1340 | 50 | #man_MANS = ac.1 last.1 @ACCTON_MAN@ @LASTCOMM_MAN@ @SA_MAN@ | 52 | #man_MANS = ac.1 last.1 @ACCTON_MAN@ @LASTCOMM_MAN@ @SA_MAN@ |
1341 | 51 | # but I had to use: | 53 | # but I had to use: |
1342 | 52 | man_MANS = ac.1 accton.8 last.1 lastcomm.1 sa.8 | 54 | man_MANS = ac.1 accton.8 last.1 lastcomm.1 sa.8 |
1344 | 53 | EXTRA_DIST = ac.1 accton.8 last.1 lastcomm.1 sa.8 TODO mktime.c | 55 | EXTRA_DIST = ac.1 accton.8 last.1 lastcomm.1 sa.8 TODO m4/gnulib-cache.m4 |
1345 | 54 | 56 | ||
1346 | 55 | ## Extra stuff to remove when cleaning | 57 | ## Extra stuff to remove when cleaning |
1347 | 56 | 58 | ||
1348 | @@ -58,9 +60,6 @@ | |||
1349 | 58 | 60 | ||
1350 | 59 | ## Extra targets for debugging | 61 | ## Extra targets for debugging |
1351 | 60 | 62 | ||
1352 | 61 | mktime: mktime.c | ||
1353 | 62 | $(CC) $(LDFLAGS) -DDEBUG mktime.c -o mktime | ||
1354 | 63 | |||
1355 | 64 | ## Extra targets for comparing system utilities to these utils | 63 | ## Extra targets for comparing system utilities to these utils |
1356 | 65 | 64 | ||
1357 | 66 | compare: compare-ac compare-last compare-lastcomm compare-sa | 65 | compare: compare-ac compare-last compare-lastcomm compare-sa |
1358 | 67 | 66 | ||
1359 | === modified file 'Makefile.in' | |||
1360 | --- Makefile.in 2006-03-18 18:38:00 +0000 | |||
1361 | +++ Makefile.in 2010-01-20 17:40:26 +0000 | |||
1362 | @@ -1,8 +1,8 @@ | |||
1364 | 1 | # Makefile.in generated by automake 1.9.6 from Makefile.am. | 1 | # Makefile.in generated by automake 1.10.2 from Makefile.am. |
1365 | 2 | # @configure_input@ | 2 | # @configure_input@ |
1366 | 3 | 3 | ||
1367 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
1369 | 5 | # 2003, 2004, 2005 Free Software Foundation, Inc. | 5 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1370 | 6 | # This Makefile.in is free software; the Free Software Foundation | 6 | # This Makefile.in is free software; the Free Software Foundation |
1371 | 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
1372 | 8 | # with or without modifications, as long as this notice is preserved. | 8 | # with or without modifications, as long as this notice is preserved. |
1373 | @@ -15,15 +15,11 @@ | |||
1374 | 15 | @SET_MAKE@ | 15 | @SET_MAKE@ |
1375 | 16 | 16 | ||
1376 | 17 | 17 | ||
1377 | 18 | srcdir = @srcdir@ | ||
1378 | 19 | top_srcdir = @top_srcdir@ | ||
1379 | 20 | VPATH = @srcdir@ | 18 | VPATH = @srcdir@ |
1380 | 21 | pkgdatadir = $(datadir)/@PACKAGE@ | 19 | pkgdatadir = $(datadir)/@PACKAGE@ |
1381 | 22 | pkglibdir = $(libdir)/@PACKAGE@ | 20 | pkglibdir = $(libdir)/@PACKAGE@ |
1382 | 23 | pkgincludedir = $(includedir)/@PACKAGE@ | 21 | pkgincludedir = $(includedir)/@PACKAGE@ |
1383 | 24 | top_builddir = . | ||
1384 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | 22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
1385 | 26 | INSTALL = @INSTALL@ | ||
1386 | 27 | install_sh_DATA = $(install_sh) -c -m 644 | 23 | install_sh_DATA = $(install_sh) -c -m 644 |
1387 | 28 | install_sh_PROGRAM = $(install_sh) -c | 24 | install_sh_PROGRAM = $(install_sh) -c |
1388 | 29 | install_sh_SCRIPT = $(install_sh) -c | 25 | install_sh_SCRIPT = $(install_sh) -c |
1389 | @@ -38,26 +34,44 @@ | |||
1390 | 38 | build_triplet = @build@ | 34 | build_triplet = @build@ |
1391 | 39 | host_triplet = @host@ | 35 | host_triplet = @host@ |
1392 | 40 | target_triplet = @target@ | 36 | target_triplet = @target@ |
1393 | 41 | ANSI2KNR = @ANSI2KNR@ | ||
1394 | 42 | bin_PROGRAMS = ac$(EXEEXT) last$(EXEEXT) @LASTCOMM_PROG@ | 37 | bin_PROGRAMS = ac$(EXEEXT) last$(EXEEXT) @LASTCOMM_PROG@ |
1395 | 43 | sbin_PROGRAMS = dump-utmp$(EXEEXT) @DUMP_ACCT_PROG@ @ACCTON_PROG@ \ | 38 | sbin_PROGRAMS = dump-utmp$(EXEEXT) @DUMP_ACCT_PROG@ @ACCTON_PROG@ \ |
1396 | 44 | @SA_PROG@ $(am__empty) | 39 | @SA_PROG@ $(am__empty) |
1397 | 45 | EXTRA_PROGRAMS = lastcomm$(EXEEXT) dump-acct$(EXEEXT) accton$(EXEEXT) \ | 40 | EXTRA_PROGRAMS = lastcomm$(EXEEXT) dump-acct$(EXEEXT) accton$(EXEEXT) \ |
1398 | 46 | sa$(EXEEXT) | 41 | sa$(EXEEXT) |
1399 | 42 | subdir = . | ||
1400 | 47 | DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \ | 43 | DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \ |
1401 | 48 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | 44 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ |
1402 | 49 | $(srcdir)/config.h.in $(srcdir)/files.h.in $(srcdir)/stamp-vti \ | 45 | $(srcdir)/config.h.in $(srcdir)/files.h.in $(srcdir)/stamp-vti \ |
1403 | 50 | $(srcdir)/version.h.in $(srcdir)/version.texi \ | 46 | $(srcdir)/version.h.in $(srcdir)/version.texi \ |
1404 | 51 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ | 47 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ |
1408 | 52 | TODO alloca.c ansi2knr.1 ansi2knr.c config.guess config.sub \ | 48 | TODO config.guess config.sub depcomp install-sh ltmain.sh \ |
1409 | 53 | depcomp install-sh mdate-sh missing mkinstalldirs texinfo.tex | 49 | mdate-sh missing mkinstalldirs texinfo.tex |
1407 | 54 | subdir = . | ||
1410 | 55 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 50 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
1412 | 56 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | 51 | am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ |
1413 | 52 | $(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/dirname.m4 \ | ||
1414 | 53 | $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \ | ||
1415 | 54 | $(top_srcdir)/m4/errno_h.m4 $(top_srcdir)/m4/error.m4 \ | ||
1416 | 55 | $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \ | ||
1417 | 56 | $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \ | ||
1418 | 57 | $(top_srcdir)/m4/gnulib-common.m4 \ | ||
1419 | 58 | $(top_srcdir)/m4/gnulib-comp.m4 \ | ||
1420 | 59 | $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/inline.m4 \ | ||
1421 | 60 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | ||
1422 | 61 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | ||
1423 | 62 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/mktime.m4 \ | ||
1424 | 63 | $(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/onceonly.m4 \ | ||
1425 | 64 | $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/stdbool.m4 \ | ||
1426 | 65 | $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/strerror.m4 \ | ||
1427 | 66 | $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \ | ||
1428 | 67 | $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ | ||
1429 | 68 | $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/time_r.m4 \ | ||
1430 | 69 | $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/xalloc.m4 \ | ||
1431 | 70 | $(top_srcdir)/m4/xstrndup.m4 $(top_srcdir)/configure.ac | ||
1432 | 57 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 71 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
1433 | 58 | $(ACLOCAL_M4) | 72 | $(ACLOCAL_M4) |
1434 | 59 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | 73 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
1436 | 60 | configure.lineno configure.status.lineno | 74 | configure.lineno config.status.lineno |
1437 | 61 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | 75 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
1438 | 62 | CONFIG_HEADER = config.h | 76 | CONFIG_HEADER = config.h |
1439 | 63 | CONFIG_CLEAN_FILES = files.h version.h | 77 | CONFIG_CLEAN_FILES = files.h version.h |
1440 | @@ -67,48 +81,53 @@ | |||
1441 | 67 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | 81 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) |
1442 | 68 | sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | 82 | sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) |
1443 | 69 | PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS) | 83 | PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS) |
1447 | 70 | am_ac_OBJECTS = ac$U.$(OBJEXT) common$U.$(OBJEXT) file_rd$U.$(OBJEXT) \ | 84 | am_ac_OBJECTS = ac.$(OBJEXT) common.$(OBJEXT) file_rd.$(OBJEXT) \ |
1448 | 71 | getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) hashtab$U.$(OBJEXT) \ | 85 | hashtab.$(OBJEXT) utmp_rd.$(OBJEXT) |
1446 | 72 | mktime$U.$(OBJEXT) utmp_rd$U.$(OBJEXT) | ||
1449 | 73 | ac_OBJECTS = $(am_ac_OBJECTS) | 86 | ac_OBJECTS = $(am_ac_OBJECTS) |
1453 | 74 | ac_DEPENDENCIES = @ALLOCA@ | 87 | ac_LDADD = $(LDADD) |
1454 | 75 | am_accton_OBJECTS = accton$U.$(OBJEXT) common$U.$(OBJEXT) \ | 88 | ac_DEPENDENCIES = lib/libgnu.la |
1455 | 76 | getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) | 89 | am_accton_OBJECTS = accton.$(OBJEXT) common.$(OBJEXT) |
1456 | 77 | accton_OBJECTS = $(am_accton_OBJECTS) | 90 | accton_OBJECTS = $(am_accton_OBJECTS) |
1461 | 78 | accton_DEPENDENCIES = @ALLOCA@ | 91 | accton_LDADD = $(LDADD) |
1462 | 79 | am_dump_acct_OBJECTS = dump-acct$U.$(OBJEXT) common$U.$(OBJEXT) \ | 92 | accton_DEPENDENCIES = lib/libgnu.la |
1463 | 80 | getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) file_rd$U.$(OBJEXT) \ | 93 | am_dump_acct_OBJECTS = dump-acct.$(OBJEXT) common.$(OBJEXT) \ |
1464 | 81 | pacct_rd$U.$(OBJEXT) | 94 | file_rd.$(OBJEXT) pacct_rd.$(OBJEXT) |
1465 | 82 | dump_acct_OBJECTS = $(am_dump_acct_OBJECTS) | 95 | dump_acct_OBJECTS = $(am_dump_acct_OBJECTS) |
1470 | 83 | dump_acct_DEPENDENCIES = @ALLOCA@ | 96 | dump_acct_LDADD = $(LDADD) |
1471 | 84 | am_dump_utmp_OBJECTS = dump-utmp$U.$(OBJEXT) common$U.$(OBJEXT) \ | 97 | dump_acct_DEPENDENCIES = lib/libgnu.la |
1472 | 85 | getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) file_rd$U.$(OBJEXT) \ | 98 | am_dump_utmp_OBJECTS = dump-utmp.$(OBJEXT) common.$(OBJEXT) \ |
1473 | 86 | utmp_rd$U.$(OBJEXT) | 99 | file_rd.$(OBJEXT) utmp_rd.$(OBJEXT) |
1474 | 87 | dump_utmp_OBJECTS = $(am_dump_utmp_OBJECTS) | 100 | dump_utmp_OBJECTS = $(am_dump_utmp_OBJECTS) |
1479 | 88 | dump_utmp_DEPENDENCIES = @ALLOCA@ | 101 | dump_utmp_LDADD = $(LDADD) |
1480 | 89 | am_last_OBJECTS = last$U.$(OBJEXT) common$U.$(OBJEXT) \ | 102 | dump_utmp_DEPENDENCIES = lib/libgnu.la |
1481 | 90 | file_rd$U.$(OBJEXT) getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) \ | 103 | am_last_OBJECTS = last.$(OBJEXT) common.$(OBJEXT) file_rd.$(OBJEXT) \ |
1482 | 91 | hashtab$U.$(OBJEXT) utmp_rd$U.$(OBJEXT) | 104 | hashtab.$(OBJEXT) utmp_rd.$(OBJEXT) |
1483 | 92 | last_OBJECTS = $(am_last_OBJECTS) | 105 | last_OBJECTS = $(am_last_OBJECTS) |
1489 | 93 | last_DEPENDENCIES = @ALLOCA@ | 106 | last_LDADD = $(LDADD) |
1490 | 94 | am_lastcomm_OBJECTS = lastcomm$U.$(OBJEXT) common$U.$(OBJEXT) \ | 107 | last_DEPENDENCIES = lib/libgnu.la |
1491 | 95 | dev_hash$U.$(OBJEXT) file_rd$U.$(OBJEXT) getopt$U.$(OBJEXT) \ | 108 | am_lastcomm_OBJECTS = lastcomm.$(OBJEXT) common.$(OBJEXT) \ |
1492 | 96 | getopt1$U.$(OBJEXT) hashtab$U.$(OBJEXT) pacct_rd$U.$(OBJEXT) \ | 109 | dev_hash.$(OBJEXT) file_rd.$(OBJEXT) hashtab.$(OBJEXT) \ |
1493 | 97 | uid_hash$U.$(OBJEXT) | 110 | pacct_rd.$(OBJEXT) uid_hash.$(OBJEXT) |
1494 | 98 | lastcomm_OBJECTS = $(am_lastcomm_OBJECTS) | 111 | lastcomm_OBJECTS = $(am_lastcomm_OBJECTS) |
1499 | 99 | lastcomm_DEPENDENCIES = @ALLOCA@ | 112 | lastcomm_LDADD = $(LDADD) |
1500 | 100 | am_sa_OBJECTS = sa$U.$(OBJEXT) common$U.$(OBJEXT) file_rd$U.$(OBJEXT) \ | 113 | lastcomm_DEPENDENCIES = lib/libgnu.la |
1501 | 101 | getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) hashtab$U.$(OBJEXT) \ | 114 | am_sa_OBJECTS = sa.$(OBJEXT) common.$(OBJEXT) file_rd.$(OBJEXT) \ |
1502 | 102 | pacct_rd$U.$(OBJEXT) uid_hash$U.$(OBJEXT) | 115 | hashtab.$(OBJEXT) pacct_rd.$(OBJEXT) uid_hash.$(OBJEXT) |
1503 | 103 | sa_OBJECTS = $(am_sa_OBJECTS) | 116 | sa_OBJECTS = $(am_sa_OBJECTS) |
1506 | 104 | sa_DEPENDENCIES = @ALLOCA@ | 117 | sa_LDADD = $(LDADD) |
1507 | 105 | DEFAULT_INCLUDES = -I. -I$(srcdir) -I. | 118 | sa_DEPENDENCIES = lib/libgnu.la |
1508 | 119 | DEFAULT_INCLUDES = -I.@am__isrc@ | ||
1509 | 106 | depcomp = $(SHELL) $(top_srcdir)/depcomp | 120 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
1510 | 107 | am__depfiles_maybe = depfiles | 121 | am__depfiles_maybe = depfiles |
1511 | 108 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | 122 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
1512 | 109 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | 123 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
1513 | 124 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
1514 | 125 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
1515 | 126 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
1516 | 110 | CCLD = $(CC) | 127 | CCLD = $(CC) |
1518 | 111 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | 128 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1519 | 129 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
1520 | 130 | $(LDFLAGS) -o $@ | ||
1521 | 112 | SOURCES = $(ac_SOURCES) $(accton_SOURCES) $(dump_acct_SOURCES) \ | 131 | SOURCES = $(ac_SOURCES) $(accton_SOURCES) $(dump_acct_SOURCES) \ |
1522 | 113 | $(dump_utmp_SOURCES) $(last_SOURCES) $(lastcomm_SOURCES) \ | 132 | $(dump_utmp_SOURCES) $(last_SOURCES) $(lastcomm_SOURCES) \ |
1523 | 114 | $(sa_SOURCES) | 133 | $(sa_SOURCES) |
1524 | @@ -127,13 +146,29 @@ | |||
1525 | 127 | MAKEINFOHTML = $(MAKEINFO) --html | 146 | MAKEINFOHTML = $(MAKEINFO) --html |
1526 | 128 | AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) | 147 | AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) |
1527 | 129 | DVIPS = dvips | 148 | DVIPS = dvips |
1528 | 149 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | ||
1529 | 150 | html-recursive info-recursive install-data-recursive \ | ||
1530 | 151 | install-dvi-recursive install-exec-recursive \ | ||
1531 | 152 | install-html-recursive install-info-recursive \ | ||
1532 | 153 | install-pdf-recursive install-ps-recursive install-recursive \ | ||
1533 | 154 | installcheck-recursive installdirs-recursive pdf-recursive \ | ||
1534 | 155 | ps-recursive uninstall-recursive | ||
1535 | 156 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
1536 | 157 | am__vpath_adj = case $$p in \ | ||
1537 | 158 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
1538 | 159 | *) f=$$p;; \ | ||
1539 | 160 | esac; | ||
1540 | 161 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
1541 | 130 | man1dir = $(mandir)/man1 | 162 | man1dir = $(mandir)/man1 |
1542 | 131 | man8dir = $(mandir)/man8 | 163 | man8dir = $(mandir)/man8 |
1543 | 132 | NROFF = nroff | 164 | NROFF = nroff |
1544 | 133 | MANS = $(man_MANS) | 165 | MANS = $(man_MANS) |
1545 | 134 | HEADERS = $(noinst_HEADERS) | 166 | HEADERS = $(noinst_HEADERS) |
1546 | 167 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
1547 | 168 | distclean-recursive maintainer-clean-recursive | ||
1548 | 135 | ETAGS = etags | 169 | ETAGS = etags |
1549 | 136 | CTAGS = ctags | 170 | CTAGS = ctags |
1550 | 171 | DIST_SUBDIRS = $(SUBDIRS) | ||
1551 | 137 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | 172 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
1552 | 138 | distdir = $(PACKAGE)-$(VERSION) | 173 | distdir = $(PACKAGE)-$(VERSION) |
1553 | 139 | top_distdir = $(distdir) | 174 | top_distdir = $(distdir) |
1554 | @@ -150,9 +185,10 @@ | |||
1555 | 150 | ACCT_FILE_LOC = @ACCT_FILE_LOC@ | 185 | ACCT_FILE_LOC = @ACCT_FILE_LOC@ |
1556 | 151 | ACLOCAL = @ACLOCAL@ | 186 | ACLOCAL = @ACLOCAL@ |
1557 | 152 | ALLOCA = @ALLOCA@ | 187 | ALLOCA = @ALLOCA@ |
1560 | 153 | AMDEP_FALSE = @AMDEP_FALSE@ | 188 | ALLOCA_H = @ALLOCA_H@ |
1559 | 154 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
1561 | 155 | AMTAR = @AMTAR@ | 189 | AMTAR = @AMTAR@ |
1562 | 190 | APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ | ||
1563 | 191 | AR = @AR@ | ||
1564 | 156 | AUTOCONF = @AUTOCONF@ | 192 | AUTOCONF = @AUTOCONF@ |
1565 | 157 | AUTOHEADER = @AUTOHEADER@ | 193 | AUTOHEADER = @AUTOHEADER@ |
1566 | 158 | AUTOMAKE = @AUTOMAKE@ | 194 | AUTOMAKE = @AUTOMAKE@ |
1567 | @@ -165,26 +201,187 @@ | |||
1568 | 165 | CYGPATH_W = @CYGPATH_W@ | 201 | CYGPATH_W = @CYGPATH_W@ |
1569 | 166 | DEFS = @DEFS@ | 202 | DEFS = @DEFS@ |
1570 | 167 | DEPDIR = @DEPDIR@ | 203 | DEPDIR = @DEPDIR@ |
1571 | 204 | DSYMUTIL = @DSYMUTIL@ | ||
1572 | 205 | DUMPBIN = @DUMPBIN@ | ||
1573 | 168 | DUMP_ACCT_PROG = @DUMP_ACCT_PROG@ | 206 | DUMP_ACCT_PROG = @DUMP_ACCT_PROG@ |
1574 | 169 | ECHO_C = @ECHO_C@ | 207 | ECHO_C = @ECHO_C@ |
1575 | 170 | ECHO_N = @ECHO_N@ | 208 | ECHO_N = @ECHO_N@ |
1576 | 171 | ECHO_T = @ECHO_T@ | 209 | ECHO_T = @ECHO_T@ |
1577 | 172 | EGREP = @EGREP@ | 210 | EGREP = @EGREP@ |
1578 | 211 | EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ | ||
1579 | 212 | EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ | ||
1580 | 213 | ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ | ||
1581 | 214 | ENOLINK_VALUE = @ENOLINK_VALUE@ | ||
1582 | 215 | EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ | ||
1583 | 216 | EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ | ||
1584 | 217 | ERRNO_H = @ERRNO_H@ | ||
1585 | 173 | EXEEXT = @EXEEXT@ | 218 | EXEEXT = @EXEEXT@ |
1586 | 219 | FGREP = @FGREP@ | ||
1587 | 220 | GETOPT_H = @GETOPT_H@ | ||
1588 | 221 | GNULIB_ATOLL = @GNULIB_ATOLL@ | ||
1589 | 222 | GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ | ||
1590 | 223 | GNULIB_CHOWN = @GNULIB_CHOWN@ | ||
1591 | 224 | GNULIB_CLOSE = @GNULIB_CLOSE@ | ||
1592 | 225 | GNULIB_DUP2 = @GNULIB_DUP2@ | ||
1593 | 226 | GNULIB_ENVIRON = @GNULIB_ENVIRON@ | ||
1594 | 227 | GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ | ||
1595 | 228 | GNULIB_FCHDIR = @GNULIB_FCHDIR@ | ||
1596 | 229 | GNULIB_FSYNC = @GNULIB_FSYNC@ | ||
1597 | 230 | GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ | ||
1598 | 231 | GNULIB_GETCWD = @GNULIB_GETCWD@ | ||
1599 | 232 | GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ | ||
1600 | 233 | GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ | ||
1601 | 234 | GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ | ||
1602 | 235 | GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ | ||
1603 | 236 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ | ||
1604 | 237 | GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ | ||
1605 | 238 | GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ | ||
1606 | 239 | GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ | ||
1607 | 240 | GNULIB_LCHMOD = @GNULIB_LCHMOD@ | ||
1608 | 241 | GNULIB_LCHOWN = @GNULIB_LCHOWN@ | ||
1609 | 242 | GNULIB_LINK = @GNULIB_LINK@ | ||
1610 | 243 | GNULIB_LSEEK = @GNULIB_LSEEK@ | ||
1611 | 244 | GNULIB_LSTAT = @GNULIB_LSTAT@ | ||
1612 | 245 | GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ | ||
1613 | 246 | GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ | ||
1614 | 247 | GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ | ||
1615 | 248 | GNULIB_MBSCHR = @GNULIB_MBSCHR@ | ||
1616 | 249 | GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ | ||
1617 | 250 | GNULIB_MBSLEN = @GNULIB_MBSLEN@ | ||
1618 | 251 | GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ | ||
1619 | 252 | GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ | ||
1620 | 253 | GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ | ||
1621 | 254 | GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ | ||
1622 | 255 | GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ | ||
1623 | 256 | GNULIB_MBSSEP = @GNULIB_MBSSEP@ | ||
1624 | 257 | GNULIB_MBSSPN = @GNULIB_MBSSPN@ | ||
1625 | 258 | GNULIB_MBSSTR = @GNULIB_MBSSTR@ | ||
1626 | 259 | GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ | ||
1627 | 260 | GNULIB_MEMMEM = @GNULIB_MEMMEM@ | ||
1628 | 261 | GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ | ||
1629 | 262 | GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ | ||
1630 | 263 | GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ | ||
1631 | 264 | GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ | ||
1632 | 265 | GNULIB_PUTENV = @GNULIB_PUTENV@ | ||
1633 | 266 | GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ | ||
1634 | 267 | GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ | ||
1635 | 268 | GNULIB_READLINK = @GNULIB_READLINK@ | ||
1636 | 269 | GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ | ||
1637 | 270 | GNULIB_RPMATCH = @GNULIB_RPMATCH@ | ||
1638 | 271 | GNULIB_SETENV = @GNULIB_SETENV@ | ||
1639 | 272 | GNULIB_SLEEP = @GNULIB_SLEEP@ | ||
1640 | 273 | GNULIB_STPCPY = @GNULIB_STPCPY@ | ||
1641 | 274 | GNULIB_STPNCPY = @GNULIB_STPNCPY@ | ||
1642 | 275 | GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ | ||
1643 | 276 | GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ | ||
1644 | 277 | GNULIB_STRDUP = @GNULIB_STRDUP@ | ||
1645 | 278 | GNULIB_STRERROR = @GNULIB_STRERROR@ | ||
1646 | 279 | GNULIB_STRNDUP = @GNULIB_STRNDUP@ | ||
1647 | 280 | GNULIB_STRNLEN = @GNULIB_STRNLEN@ | ||
1648 | 281 | GNULIB_STRPBRK = @GNULIB_STRPBRK@ | ||
1649 | 282 | GNULIB_STRSEP = @GNULIB_STRSEP@ | ||
1650 | 283 | GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ | ||
1651 | 284 | GNULIB_STRSTR = @GNULIB_STRSTR@ | ||
1652 | 285 | GNULIB_STRTOD = @GNULIB_STRTOD@ | ||
1653 | 286 | GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ | ||
1654 | 287 | GNULIB_STRTOLL = @GNULIB_STRTOLL@ | ||
1655 | 288 | GNULIB_STRTOULL = @GNULIB_STRTOULL@ | ||
1656 | 289 | GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ | ||
1657 | 290 | GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ | ||
1658 | 291 | GNULIB_UNSETENV = @GNULIB_UNSETENV@ | ||
1659 | 292 | GNULIB_WRITE = @GNULIB_WRITE@ | ||
1660 | 293 | GREP = @GREP@ | ||
1661 | 294 | HAVE_ATOLL = @HAVE_ATOLL@ | ||
1662 | 295 | HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ | ||
1663 | 296 | HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ | ||
1664 | 297 | HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ | ||
1665 | 298 | HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ | ||
1666 | 299 | HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ | ||
1667 | 300 | HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ | ||
1668 | 301 | HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ | ||
1669 | 302 | HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ | ||
1670 | 303 | HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ | ||
1671 | 304 | HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ | ||
1672 | 305 | HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ | ||
1673 | 306 | HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ | ||
1674 | 307 | HAVE_DUP2 = @HAVE_DUP2@ | ||
1675 | 308 | HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ | ||
1676 | 309 | HAVE_FSYNC = @HAVE_FSYNC@ | ||
1677 | 310 | HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ | ||
1678 | 311 | HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ | ||
1679 | 312 | HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ | ||
1680 | 313 | HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ | ||
1681 | 314 | HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ | ||
1682 | 315 | HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ | ||
1683 | 316 | HAVE_GETUSERSHELL = @HAVE_GETUSERSHELL@ | ||
1684 | 317 | HAVE_LCHMOD = @HAVE_LCHMOD@ | ||
1685 | 318 | HAVE_LINK = @HAVE_LINK@ | ||
1686 | 319 | HAVE_LSTAT = @HAVE_LSTAT@ | ||
1687 | 320 | HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ | ||
1688 | 321 | HAVE_MEMPCPY = @HAVE_MEMPCPY@ | ||
1689 | 322 | HAVE_MKDTEMP = @HAVE_MKDTEMP@ | ||
1690 | 323 | HAVE_OS_H = @HAVE_OS_H@ | ||
1691 | 324 | HAVE_RANDOM_H = @HAVE_RANDOM_H@ | ||
1692 | 325 | HAVE_RANDOM_R = @HAVE_RANDOM_R@ | ||
1693 | 326 | HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ | ||
1694 | 327 | HAVE_READLINK = @HAVE_READLINK@ | ||
1695 | 328 | HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ | ||
1696 | 329 | HAVE_RPMATCH = @HAVE_RPMATCH@ | ||
1697 | 330 | HAVE_SETENV = @HAVE_SETENV@ | ||
1698 | 331 | HAVE_SLEEP = @HAVE_SLEEP@ | ||
1699 | 332 | HAVE_STPCPY = @HAVE_STPCPY@ | ||
1700 | 333 | HAVE_STPNCPY = @HAVE_STPNCPY@ | ||
1701 | 334 | HAVE_STRCASESTR = @HAVE_STRCASESTR@ | ||
1702 | 335 | HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ | ||
1703 | 336 | HAVE_STRNDUP = @HAVE_STRNDUP@ | ||
1704 | 337 | HAVE_STRPBRK = @HAVE_STRPBRK@ | ||
1705 | 338 | HAVE_STRSEP = @HAVE_STRSEP@ | ||
1706 | 339 | HAVE_STRTOD = @HAVE_STRTOD@ | ||
1707 | 340 | HAVE_STRTOLL = @HAVE_STRTOLL@ | ||
1708 | 341 | HAVE_STRTOULL = @HAVE_STRTOULL@ | ||
1709 | 342 | HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ | ||
1710 | 343 | HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ | ||
1711 | 344 | HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ | ||
1712 | 345 | HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ | ||
1713 | 346 | HAVE_UNISTD_H = @HAVE_UNISTD_H@ | ||
1714 | 347 | HAVE_UNSETENV = @HAVE_UNSETENV@ | ||
1715 | 348 | HAVE__BOOL = @HAVE__BOOL@ | ||
1716 | 349 | INCLUDE_NEXT = @INCLUDE_NEXT@ | ||
1717 | 350 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ | ||
1718 | 351 | INSTALL = @INSTALL@ | ||
1719 | 174 | INSTALL_DATA = @INSTALL_DATA@ | 352 | INSTALL_DATA = @INSTALL_DATA@ |
1720 | 175 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 353 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
1721 | 176 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 354 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
1722 | 177 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 355 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
1723 | 178 | LASTCOMM_MAN = @LASTCOMM_MAN@ | 356 | LASTCOMM_MAN = @LASTCOMM_MAN@ |
1724 | 179 | LASTCOMM_PROG = @LASTCOMM_PROG@ | 357 | LASTCOMM_PROG = @LASTCOMM_PROG@ |
1725 | 358 | LD = @LD@ | ||
1726 | 180 | LDFLAGS = @LDFLAGS@ | 359 | LDFLAGS = @LDFLAGS@ |
1727 | 360 | LIBINTL = @LIBINTL@ | ||
1728 | 181 | LIBOBJS = @LIBOBJS@ | 361 | LIBOBJS = @LIBOBJS@ |
1729 | 182 | LIBS = @LIBS@ | 362 | LIBS = @LIBS@ |
1730 | 363 | LIBTOOL = @LIBTOOL@ | ||
1731 | 364 | LIBTOOL_DEPS = @LIBTOOL_DEPS@ | ||
1732 | 365 | LIPO = @LIPO@ | ||
1733 | 366 | LN_S = @LN_S@ | ||
1734 | 367 | LTALLOCA = @LTALLOCA@ | ||
1735 | 368 | LTLIBINTL = @LTLIBINTL@ | ||
1736 | 183 | LTLIBOBJS = @LTLIBOBJS@ | 369 | LTLIBOBJS = @LTLIBOBJS@ |
1737 | 370 | MAINT = @MAINT@ | ||
1738 | 184 | MAKEINFO = @MAKEINFO@ | 371 | MAKEINFO = @MAKEINFO@ |
1741 | 185 | MKTIME_C = @MKTIME_C@ | 372 | MKDIR_P = @MKDIR_P@ |
1742 | 186 | MKTIME_O = @MKTIME_O@ | 373 | NEXT_ERRNO_H = @NEXT_ERRNO_H@ |
1743 | 374 | NEXT_STDLIB_H = @NEXT_STDLIB_H@ | ||
1744 | 375 | NEXT_STRING_H = @NEXT_STRING_H@ | ||
1745 | 376 | NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ | ||
1746 | 377 | NEXT_TIME_H = @NEXT_TIME_H@ | ||
1747 | 378 | NEXT_UNISTD_H = @NEXT_UNISTD_H@ | ||
1748 | 379 | NM = @NM@ | ||
1749 | 380 | NMEDIT = @NMEDIT@ | ||
1750 | 381 | OBJDUMP = @OBJDUMP@ | ||
1751 | 187 | OBJEXT = @OBJEXT@ | 382 | OBJEXT = @OBJEXT@ |
1752 | 383 | OTOOL = @OTOOL@ | ||
1753 | 384 | OTOOL64 = @OTOOL64@ | ||
1754 | 188 | PACKAGE = @PACKAGE@ | 385 | PACKAGE = @PACKAGE@ |
1755 | 189 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 386 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
1756 | 190 | PACKAGE_NAME = @PACKAGE_NAME@ | 387 | PACKAGE_NAME = @PACKAGE_NAME@ |
1757 | @@ -192,24 +389,57 @@ | |||
1758 | 192 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 389 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
1759 | 193 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 390 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
1760 | 194 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 391 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
1761 | 392 | PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ | ||
1762 | 393 | RANLIB = @RANLIB@ | ||
1763 | 394 | REPLACE_CHOWN = @REPLACE_CHOWN@ | ||
1764 | 395 | REPLACE_CLOSE = @REPLACE_CLOSE@ | ||
1765 | 396 | REPLACE_FCHDIR = @REPLACE_FCHDIR@ | ||
1766 | 397 | REPLACE_GETCWD = @REPLACE_GETCWD@ | ||
1767 | 398 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ | ||
1768 | 399 | REPLACE_LCHOWN = @REPLACE_LCHOWN@ | ||
1769 | 400 | REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ | ||
1770 | 401 | REPLACE_LSEEK = @REPLACE_LSEEK@ | ||
1771 | 402 | REPLACE_LSTAT = @REPLACE_LSTAT@ | ||
1772 | 403 | REPLACE_MEMMEM = @REPLACE_MEMMEM@ | ||
1773 | 404 | REPLACE_MKDIR = @REPLACE_MKDIR@ | ||
1774 | 405 | REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ | ||
1775 | 406 | REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ | ||
1776 | 407 | REPLACE_PUTENV = @REPLACE_PUTENV@ | ||
1777 | 408 | REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ | ||
1778 | 409 | REPLACE_STRDUP = @REPLACE_STRDUP@ | ||
1779 | 410 | REPLACE_STRERROR = @REPLACE_STRERROR@ | ||
1780 | 411 | REPLACE_STRPTIME = @REPLACE_STRPTIME@ | ||
1781 | 412 | REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ | ||
1782 | 413 | REPLACE_STRSTR = @REPLACE_STRSTR@ | ||
1783 | 414 | REPLACE_STRTOD = @REPLACE_STRTOD@ | ||
1784 | 415 | REPLACE_TIMEGM = @REPLACE_TIMEGM@ | ||
1785 | 416 | REPLACE_WRITE = @REPLACE_WRITE@ | ||
1786 | 195 | SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ | 417 | SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ |
1787 | 196 | SA_MAN = @SA_MAN@ | 418 | SA_MAN = @SA_MAN@ |
1788 | 197 | SA_PROG = @SA_PROG@ | 419 | SA_PROG = @SA_PROG@ |
1789 | 420 | SED = @SED@ | ||
1790 | 198 | SET_MAKE = @SET_MAKE@ | 421 | SET_MAKE = @SET_MAKE@ |
1791 | 199 | SHELL = @SHELL@ | 422 | SHELL = @SHELL@ |
1792 | 423 | STDBOOL_H = @STDBOOL_H@ | ||
1793 | 200 | STRIP = @STRIP@ | 424 | STRIP = @STRIP@ |
1794 | 201 | SYS_AC = @SYS_AC@ | 425 | SYS_AC = @SYS_AC@ |
1795 | 202 | SYS_LAST = @SYS_LAST@ | 426 | SYS_LAST = @SYS_LAST@ |
1796 | 203 | SYS_LASTCOMM = @SYS_LASTCOMM@ | 427 | SYS_LASTCOMM = @SYS_LASTCOMM@ |
1797 | 204 | SYS_SA = @SYS_SA@ | 428 | SYS_SA = @SYS_SA@ |
1799 | 205 | U = @U@ | 429 | SYS_STAT_H = @SYS_STAT_H@ |
1800 | 430 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ | ||
1801 | 431 | TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ | ||
1802 | 432 | UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ | ||
1803 | 206 | USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ | 433 | USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ |
1804 | 207 | VERSION = @VERSION@ | 434 | VERSION = @VERSION@ |
1805 | 435 | VOID_UNSETENV = @VOID_UNSETENV@ | ||
1806 | 208 | WTMP_FILE_LOC = @WTMP_FILE_LOC@ | 436 | WTMP_FILE_LOC = @WTMP_FILE_LOC@ |
1807 | 437 | abs_builddir = @abs_builddir@ | ||
1808 | 438 | abs_srcdir = @abs_srcdir@ | ||
1809 | 439 | abs_top_builddir = @abs_top_builddir@ | ||
1810 | 440 | abs_top_srcdir = @abs_top_srcdir@ | ||
1811 | 209 | ac_ct_CC = @ac_ct_CC@ | 441 | ac_ct_CC = @ac_ct_CC@ |
1815 | 210 | ac_ct_STRIP = @ac_ct_STRIP@ | 442 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
1813 | 211 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
1814 | 212 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
1816 | 213 | am__include = @am__include@ | 443 | am__include = @am__include@ |
1817 | 214 | am__leading_dot = @am__leading_dot@ | 444 | am__leading_dot = @am__leading_dot@ |
1818 | 215 | am__quote = @am__quote@ | 445 | am__quote = @am__quote@ |
1819 | @@ -221,60 +451,76 @@ | |||
1820 | 221 | build_cpu = @build_cpu@ | 451 | build_cpu = @build_cpu@ |
1821 | 222 | build_os = @build_os@ | 452 | build_os = @build_os@ |
1822 | 223 | build_vendor = @build_vendor@ | 453 | build_vendor = @build_vendor@ |
1823 | 454 | builddir = @builddir@ | ||
1824 | 224 | datadir = @datadir@ | 455 | datadir = @datadir@ |
1825 | 456 | datarootdir = @datarootdir@ | ||
1826 | 457 | docdir = @docdir@ | ||
1827 | 458 | dvidir = @dvidir@ | ||
1828 | 225 | exec_prefix = @exec_prefix@ | 459 | exec_prefix = @exec_prefix@ |
1829 | 460 | gl_LIBOBJS = @gl_LIBOBJS@ | ||
1830 | 461 | gl_LTLIBOBJS = @gl_LTLIBOBJS@ | ||
1831 | 462 | gltests_LIBOBJS = @gltests_LIBOBJS@ | ||
1832 | 463 | gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ | ||
1833 | 226 | host = @host@ | 464 | host = @host@ |
1834 | 227 | host_alias = @host_alias@ | 465 | host_alias = @host_alias@ |
1835 | 228 | host_cpu = @host_cpu@ | 466 | host_cpu = @host_cpu@ |
1836 | 229 | host_os = @host_os@ | 467 | host_os = @host_os@ |
1837 | 230 | host_vendor = @host_vendor@ | 468 | host_vendor = @host_vendor@ |
1838 | 469 | htmldir = @htmldir@ | ||
1839 | 231 | includedir = @includedir@ | 470 | includedir = @includedir@ |
1840 | 232 | infodir = @infodir@ | 471 | infodir = @infodir@ |
1841 | 233 | install_sh = @install_sh@ | 472 | install_sh = @install_sh@ |
1842 | 234 | libdir = @libdir@ | 473 | libdir = @libdir@ |
1843 | 235 | libexecdir = @libexecdir@ | 474 | libexecdir = @libexecdir@ |
1844 | 475 | localedir = @localedir@ | ||
1845 | 236 | localstatedir = @localstatedir@ | 476 | localstatedir = @localstatedir@ |
1846 | 477 | lt_ECHO = @lt_ECHO@ | ||
1847 | 237 | mandir = @mandir@ | 478 | mandir = @mandir@ |
1848 | 238 | mkdir_p = @mkdir_p@ | 479 | mkdir_p = @mkdir_p@ |
1849 | 239 | oldincludedir = @oldincludedir@ | 480 | oldincludedir = @oldincludedir@ |
1850 | 481 | pdfdir = @pdfdir@ | ||
1851 | 240 | prefix = @prefix@ | 482 | prefix = @prefix@ |
1852 | 241 | program_transform_name = @program_transform_name@ | 483 | program_transform_name = @program_transform_name@ |
1853 | 484 | psdir = @psdir@ | ||
1854 | 242 | sbindir = @sbindir@ | 485 | sbindir = @sbindir@ |
1855 | 243 | sharedstatedir = @sharedstatedir@ | 486 | sharedstatedir = @sharedstatedir@ |
1856 | 487 | srcdir = @srcdir@ | ||
1857 | 244 | sysconfdir = @sysconfdir@ | 488 | sysconfdir = @sysconfdir@ |
1858 | 245 | target = @target@ | 489 | target = @target@ |
1859 | 246 | target_alias = @target_alias@ | 490 | target_alias = @target_alias@ |
1860 | 247 | target_cpu = @target_cpu@ | 491 | target_cpu = @target_cpu@ |
1861 | 248 | target_os = @target_os@ | 492 | target_os = @target_os@ |
1862 | 249 | target_vendor = @target_vendor@ | 493 | target_vendor = @target_vendor@ |
1871 | 250 | AUTOMAKE_OPTIONS = ansi2knr | 494 | top_build_prefix = @top_build_prefix@ |
1872 | 251 | ac_SOURCES = ac.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | 495 | top_builddir = @top_builddir@ |
1873 | 252 | mktime.c utmp_rd.c | 496 | top_srcdir = @top_srcdir@ |
1874 | 253 | 497 | AUTOMAKE_OPTIONS = | |
1875 | 254 | ac_LDADD = @ALLOCA@ | 498 | ACLOCAL_AMFLAGS = -I m4 |
1876 | 255 | accton_SOURCES = accton.c common.c getopt.c getopt1.c | 499 | AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib |
1877 | 256 | accton_LDADD = @ALLOCA@ | 500 | SUBDIRS = lib |
1878 | 257 | dump_acct_SOURCES = dump-acct.c common.c getopt.c getopt1.c file_rd.c \ | 501 | |
1879 | 502 | # What libs do we want to link against? | ||
1880 | 503 | LDADD = lib/libgnu.la | ||
1881 | 504 | ac_SOURCES = ac.c common.c file_rd.c hashtab.c \ | ||
1882 | 505 | utmp_rd.c | ||
1883 | 506 | |||
1884 | 507 | accton_SOURCES = accton.c common.c | ||
1885 | 508 | dump_acct_SOURCES = dump-acct.c common.c file_rd.c \ | ||
1886 | 258 | pacct_rd.c | 509 | pacct_rd.c |
1887 | 259 | 510 | ||
1902 | 260 | dump_acct_LDADD = @ALLOCA@ | 511 | dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \ |
1903 | 261 | dump_utmp_SOURCES = dump-utmp.c common.c getopt.c getopt1.c file_rd.c \ | 512 | utmp_rd.c |
1904 | 262 | utmp_rd.c | 513 | |
1905 | 263 | 514 | last_SOURCES = last.c common.c file_rd.c hashtab.c \ | |
1906 | 264 | dump_utmp_LDADD = @ALLOCA@ | 515 | utmp_rd.c |
1907 | 265 | last_SOURCES = last.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | 516 | |
1908 | 266 | utmp_rd.c | 517 | lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \ |
1909 | 267 | 518 | hashtab.c pacct_rd.c uid_hash.c | |
1910 | 268 | last_LDADD = @ALLOCA@ | 519 | |
1911 | 269 | lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c getopt.c \ | 520 | sa_SOURCES = sa.c common.c file_rd.c hashtab.c \ |
1898 | 270 | getopt1.c hashtab.c pacct_rd.c uid_hash.c | ||
1899 | 271 | |||
1900 | 272 | lastcomm_LDADD = @ALLOCA@ | ||
1901 | 273 | sa_SOURCES = sa.c common.c file_rd.c getopt.c getopt1.c hashtab.c \ | ||
1912 | 274 | pacct_rd.c uid_hash.c | 521 | pacct_rd.c uid_hash.c |
1913 | 275 | 522 | ||
1916 | 276 | sa_LDADD = @ALLOCA@ | 523 | noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \ |
1915 | 277 | noinst_HEADERS = common.h config.h dev_hash.h file_rd.h getopt.h hashtab.h \ | ||
1917 | 278 | pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h | 524 | pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h |
1918 | 279 | 525 | ||
1919 | 280 | 526 | ||
1920 | @@ -287,16 +533,16 @@ | |||
1921 | 287 | #man_MANS = ac.1 last.1 @ACCTON_MAN@ @LASTCOMM_MAN@ @SA_MAN@ | 533 | #man_MANS = ac.1 last.1 @ACCTON_MAN@ @LASTCOMM_MAN@ @SA_MAN@ |
1922 | 288 | # but I had to use: | 534 | # but I had to use: |
1923 | 289 | man_MANS = ac.1 accton.8 last.1 lastcomm.1 sa.8 | 535 | man_MANS = ac.1 accton.8 last.1 lastcomm.1 sa.8 |
1925 | 290 | EXTRA_DIST = ac.1 accton.8 last.1 lastcomm.1 sa.8 TODO mktime.c | 536 | EXTRA_DIST = ac.1 accton.8 last.1 lastcomm.1 sa.8 TODO m4/gnulib-cache.m4 |
1926 | 291 | DISTCLEANFILES = files.h version.h stamp-h | 537 | DISTCLEANFILES = files.h version.h stamp-h |
1927 | 292 | all: config.h | 538 | all: config.h |
1929 | 293 | $(MAKE) $(AM_MAKEFLAGS) all-am | 539 | $(MAKE) $(AM_MAKEFLAGS) all-recursive |
1930 | 294 | 540 | ||
1931 | 295 | .SUFFIXES: | 541 | .SUFFIXES: |
1933 | 296 | .SUFFIXES: .c .dvi .html .info .o .obj .pdf .ps .texi | 542 | .SUFFIXES: .c .dvi .html .info .lo .o .obj .pdf .ps .texi |
1934 | 297 | am--refresh: | 543 | am--refresh: |
1935 | 298 | @: | 544 | @: |
1937 | 299 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | 545 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
1938 | 300 | @for dep in $?; do \ | 546 | @for dep in $?; do \ |
1939 | 301 | case '$(am__configure_deps)' in \ | 547 | case '$(am__configure_deps)' in \ |
1940 | 302 | *$$dep*) \ | 548 | *$$dep*) \ |
1941 | @@ -323,21 +569,21 @@ | |||
1942 | 323 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | 569 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
1943 | 324 | $(SHELL) ./config.status --recheck | 570 | $(SHELL) ./config.status --recheck |
1944 | 325 | 571 | ||
1946 | 326 | $(top_srcdir)/configure: $(am__configure_deps) | 572 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
1947 | 327 | cd $(srcdir) && $(AUTOCONF) | 573 | cd $(srcdir) && $(AUTOCONF) |
1949 | 328 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | 574 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) |
1950 | 329 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | 575 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
1951 | 330 | 576 | ||
1952 | 331 | config.h: stamp-h1 | 577 | config.h: stamp-h1 |
1953 | 332 | @if test ! -f $@; then \ | 578 | @if test ! -f $@; then \ |
1954 | 333 | rm -f stamp-h1; \ | 579 | rm -f stamp-h1; \ |
1956 | 334 | $(MAKE) stamp-h1; \ | 580 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ |
1957 | 335 | else :; fi | 581 | else :; fi |
1958 | 336 | 582 | ||
1959 | 337 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | 583 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
1960 | 338 | @rm -f stamp-h1 | 584 | @rm -f stamp-h1 |
1961 | 339 | cd $(top_builddir) && $(SHELL) ./config.status config.h | 585 | cd $(top_builddir) && $(SHELL) ./config.status config.h |
1963 | 340 | $(srcdir)/config.h.in: $(am__configure_deps) | 586 | $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
1964 | 341 | cd $(top_srcdir) && $(AUTOHEADER) | 587 | cd $(top_srcdir) && $(AUTOHEADER) |
1965 | 342 | rm -f stamp-h1 | 588 | rm -f stamp-h1 |
1966 | 343 | touch $@ | 589 | touch $@ |
1967 | @@ -350,14 +596,15 @@ | |||
1968 | 350 | cd $(top_builddir) && $(SHELL) ./config.status $@ | 596 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
1969 | 351 | install-binPROGRAMS: $(bin_PROGRAMS) | 597 | install-binPROGRAMS: $(bin_PROGRAMS) |
1970 | 352 | @$(NORMAL_INSTALL) | 598 | @$(NORMAL_INSTALL) |
1972 | 353 | test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" | 599 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" |
1973 | 354 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | 600 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ |
1974 | 355 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | 601 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ |
1975 | 356 | if test -f $$p \ | 602 | if test -f $$p \ |
1976 | 603 | || test -f $$p1 \ | ||
1977 | 357 | ; then \ | 604 | ; then \ |
1978 | 358 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | 605 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ |
1981 | 359 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ | 606 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ |
1982 | 360 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ | 607 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ |
1983 | 361 | else :; fi; \ | 608 | else :; fi; \ |
1984 | 362 | done | 609 | done |
1985 | 363 | 610 | ||
1986 | @@ -370,17 +617,22 @@ | |||
1987 | 370 | done | 617 | done |
1988 | 371 | 618 | ||
1989 | 372 | clean-binPROGRAMS: | 619 | clean-binPROGRAMS: |
1991 | 373 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | 620 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ |
1992 | 621 | f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
1993 | 622 | echo " rm -f $$p $$f"; \ | ||
1994 | 623 | rm -f $$p $$f ; \ | ||
1995 | 624 | done | ||
1996 | 374 | install-sbinPROGRAMS: $(sbin_PROGRAMS) | 625 | install-sbinPROGRAMS: $(sbin_PROGRAMS) |
1997 | 375 | @$(NORMAL_INSTALL) | 626 | @$(NORMAL_INSTALL) |
1999 | 376 | test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)" | 627 | test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" |
2000 | 377 | @list='$(sbin_PROGRAMS)'; for p in $$list; do \ | 628 | @list='$(sbin_PROGRAMS)'; for p in $$list; do \ |
2001 | 378 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | 629 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ |
2002 | 379 | if test -f $$p \ | 630 | if test -f $$p \ |
2003 | 631 | || test -f $$p1 \ | ||
2004 | 380 | ; then \ | 632 | ; then \ |
2005 | 381 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | 633 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ |
2008 | 382 | echo " $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ | 634 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ |
2009 | 383 | $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \ | 635 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \ |
2010 | 384 | else :; fi; \ | 636 | else :; fi; \ |
2011 | 385 | done | 637 | done |
2012 | 386 | 638 | ||
2013 | @@ -393,118 +645,83 @@ | |||
2014 | 393 | done | 645 | done |
2015 | 394 | 646 | ||
2016 | 395 | clean-sbinPROGRAMS: | 647 | clean-sbinPROGRAMS: |
2018 | 396 | -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS) | 648 | @list='$(sbin_PROGRAMS)'; for p in $$list; do \ |
2019 | 649 | f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
2020 | 650 | echo " rm -f $$p $$f"; \ | ||
2021 | 651 | rm -f $$p $$f ; \ | ||
2022 | 652 | done | ||
2023 | 397 | ac$(EXEEXT): $(ac_OBJECTS) $(ac_DEPENDENCIES) | 653 | ac$(EXEEXT): $(ac_OBJECTS) $(ac_DEPENDENCIES) |
2024 | 398 | @rm -f ac$(EXEEXT) | 654 | @rm -f ac$(EXEEXT) |
2026 | 399 | $(LINK) $(ac_LDFLAGS) $(ac_OBJECTS) $(ac_LDADD) $(LIBS) | 655 | $(LINK) $(ac_OBJECTS) $(ac_LDADD) $(LIBS) |
2027 | 400 | accton$(EXEEXT): $(accton_OBJECTS) $(accton_DEPENDENCIES) | 656 | accton$(EXEEXT): $(accton_OBJECTS) $(accton_DEPENDENCIES) |
2028 | 401 | @rm -f accton$(EXEEXT) | 657 | @rm -f accton$(EXEEXT) |
2030 | 402 | $(LINK) $(accton_LDFLAGS) $(accton_OBJECTS) $(accton_LDADD) $(LIBS) | 658 | $(LINK) $(accton_OBJECTS) $(accton_LDADD) $(LIBS) |
2031 | 403 | dump-acct$(EXEEXT): $(dump_acct_OBJECTS) $(dump_acct_DEPENDENCIES) | 659 | dump-acct$(EXEEXT): $(dump_acct_OBJECTS) $(dump_acct_DEPENDENCIES) |
2032 | 404 | @rm -f dump-acct$(EXEEXT) | 660 | @rm -f dump-acct$(EXEEXT) |
2034 | 405 | $(LINK) $(dump_acct_LDFLAGS) $(dump_acct_OBJECTS) $(dump_acct_LDADD) $(LIBS) | 661 | $(LINK) $(dump_acct_OBJECTS) $(dump_acct_LDADD) $(LIBS) |
2035 | 406 | dump-utmp$(EXEEXT): $(dump_utmp_OBJECTS) $(dump_utmp_DEPENDENCIES) | 662 | dump-utmp$(EXEEXT): $(dump_utmp_OBJECTS) $(dump_utmp_DEPENDENCIES) |
2036 | 407 | @rm -f dump-utmp$(EXEEXT) | 663 | @rm -f dump-utmp$(EXEEXT) |
2038 | 408 | $(LINK) $(dump_utmp_LDFLAGS) $(dump_utmp_OBJECTS) $(dump_utmp_LDADD) $(LIBS) | 664 | $(LINK) $(dump_utmp_OBJECTS) $(dump_utmp_LDADD) $(LIBS) |
2039 | 409 | last$(EXEEXT): $(last_OBJECTS) $(last_DEPENDENCIES) | 665 | last$(EXEEXT): $(last_OBJECTS) $(last_DEPENDENCIES) |
2040 | 410 | @rm -f last$(EXEEXT) | 666 | @rm -f last$(EXEEXT) |
2042 | 411 | $(LINK) $(last_LDFLAGS) $(last_OBJECTS) $(last_LDADD) $(LIBS) | 667 | $(LINK) $(last_OBJECTS) $(last_LDADD) $(LIBS) |
2043 | 412 | lastcomm$(EXEEXT): $(lastcomm_OBJECTS) $(lastcomm_DEPENDENCIES) | 668 | lastcomm$(EXEEXT): $(lastcomm_OBJECTS) $(lastcomm_DEPENDENCIES) |
2044 | 413 | @rm -f lastcomm$(EXEEXT) | 669 | @rm -f lastcomm$(EXEEXT) |
2046 | 414 | $(LINK) $(lastcomm_LDFLAGS) $(lastcomm_OBJECTS) $(lastcomm_LDADD) $(LIBS) | 670 | $(LINK) $(lastcomm_OBJECTS) $(lastcomm_LDADD) $(LIBS) |
2047 | 415 | sa$(EXEEXT): $(sa_OBJECTS) $(sa_DEPENDENCIES) | 671 | sa$(EXEEXT): $(sa_OBJECTS) $(sa_DEPENDENCIES) |
2048 | 416 | @rm -f sa$(EXEEXT) | 672 | @rm -f sa$(EXEEXT) |
2050 | 417 | $(LINK) $(sa_LDFLAGS) $(sa_OBJECTS) $(sa_LDADD) $(LIBS) | 673 | $(LINK) $(sa_OBJECTS) $(sa_LDADD) $(LIBS) |
2051 | 418 | 674 | ||
2052 | 419 | mostlyclean-compile: | 675 | mostlyclean-compile: |
2053 | 420 | -rm -f *.$(OBJEXT) | 676 | -rm -f *.$(OBJEXT) |
2054 | 421 | 677 | ||
2055 | 422 | distclean-compile: | 678 | distclean-compile: |
2056 | 423 | -rm -f *.tab.c | 679 | -rm -f *.tab.c |
2085 | 424 | ansi2knr: ansi2knr.$(OBJEXT) | 680 | |
2086 | 425 | $(LINK) ansi2knr.$(OBJEXT) $(LIBS) | 681 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ac.Po@am__quote@ |
2087 | 426 | ansi2knr.$(OBJEXT): $(CONFIG_HEADER) | 682 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/accton.Po@am__quote@ |
2088 | 427 | 683 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Po@am__quote@ | |
2089 | 428 | clean-krextra: | 684 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_hash.Po@am__quote@ |
2090 | 429 | -rm -f ansi2knr | 685 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump-acct.Po@am__quote@ |
2091 | 430 | 686 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump-utmp.Po@am__quote@ | |
2092 | 431 | mostlyclean-kr: | 687 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_rd.Po@am__quote@ |
2093 | 432 | -test "$U" = "" || rm -f *_.c | 688 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashtab.Po@am__quote@ |
2094 | 433 | 689 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/last.Po@am__quote@ | |
2095 | 434 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/alloca.Po@am__quote@ | 690 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lastcomm.Po@am__quote@ |
2096 | 435 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ac$U.Po@am__quote@ | 691 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pacct_rd.Po@am__quote@ |
2097 | 436 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/accton$U.Po@am__quote@ | 692 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sa.Po@am__quote@ |
2098 | 437 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common$U.Po@am__quote@ | 693 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uid_hash.Po@am__quote@ |
2099 | 438 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_hash$U.Po@am__quote@ | 694 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utmp_rd.Po@am__quote@ |
2072 | 439 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump-acct$U.Po@am__quote@ | ||
2073 | 440 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump-utmp$U.Po@am__quote@ | ||
2074 | 441 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_rd$U.Po@am__quote@ | ||
2075 | 442 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt$U.Po@am__quote@ | ||
2076 | 443 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1$U.Po@am__quote@ | ||
2077 | 444 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashtab$U.Po@am__quote@ | ||
2078 | 445 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/last$U.Po@am__quote@ | ||
2079 | 446 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lastcomm$U.Po@am__quote@ | ||
2080 | 447 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mktime$U.Po@am__quote@ | ||
2081 | 448 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pacct_rd$U.Po@am__quote@ | ||
2082 | 449 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sa$U.Po@am__quote@ | ||
2083 | 450 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uid_hash$U.Po@am__quote@ | ||
2084 | 451 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utmp_rd$U.Po@am__quote@ | ||
2100 | 452 | 695 | ||
2101 | 453 | .c.o: | 696 | .c.o: |
2104 | 454 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ | 697 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
2105 | 455 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi | 698 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
2106 | 456 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | 699 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
2107 | 457 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 700 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
2108 | 458 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | 701 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< |
2109 | 459 | 702 | ||
2110 | 460 | .c.obj: | 703 | .c.obj: |
2113 | 461 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ | 704 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
2114 | 462 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi | 705 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
2115 | 463 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | 706 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
2116 | 464 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 707 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
2117 | 465 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | 708 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` |
2160 | 466 | ac_.c: ac.c $(ANSI2KNR) | 709 | |
2161 | 467 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ac.c; then echo $(srcdir)/ac.c; else echo ac.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 710 | .c.lo: |
2162 | 468 | accton_.c: accton.c $(ANSI2KNR) | 711 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
2163 | 469 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/accton.c; then echo $(srcdir)/accton.c; else echo accton.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 712 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo |
2164 | 470 | alloca_.c: alloca.c $(ANSI2KNR) | 713 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ |
2165 | 471 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/alloca.c; then echo $(srcdir)/alloca.c; else echo alloca.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 714 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
2166 | 472 | common_.c: common.c $(ANSI2KNR) | 715 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< |
2167 | 473 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/common.c; then echo $(srcdir)/common.c; else echo common.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 716 | |
2168 | 474 | dev_hash_.c: dev_hash.c $(ANSI2KNR) | 717 | mostlyclean-libtool: |
2169 | 475 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/dev_hash.c; then echo $(srcdir)/dev_hash.c; else echo dev_hash.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 718 | -rm -f *.lo |
2170 | 476 | dump-acct_.c: dump-acct.c $(ANSI2KNR) | 719 | |
2171 | 477 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/dump-acct.c; then echo $(srcdir)/dump-acct.c; else echo dump-acct.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 720 | clean-libtool: |
2172 | 478 | dump-utmp_.c: dump-utmp.c $(ANSI2KNR) | 721 | -rm -rf .libs _libs |
2173 | 479 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/dump-utmp.c; then echo $(srcdir)/dump-utmp.c; else echo dump-utmp.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 722 | |
2174 | 480 | file_rd_.c: file_rd.c $(ANSI2KNR) | 723 | distclean-libtool: |
2175 | 481 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/file_rd.c; then echo $(srcdir)/file_rd.c; else echo file_rd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | 724 | -rm -f libtool config.lt |
2134 | 482 | getopt_.c: getopt.c $(ANSI2KNR) | ||
2135 | 483 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getopt.c; then echo $(srcdir)/getopt.c; else echo getopt.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2136 | 484 | getopt1_.c: getopt1.c $(ANSI2KNR) | ||
2137 | 485 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getopt1.c; then echo $(srcdir)/getopt1.c; else echo getopt1.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2138 | 486 | hashtab_.c: hashtab.c $(ANSI2KNR) | ||
2139 | 487 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/hashtab.c; then echo $(srcdir)/hashtab.c; else echo hashtab.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2140 | 488 | last_.c: last.c $(ANSI2KNR) | ||
2141 | 489 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/last.c; then echo $(srcdir)/last.c; else echo last.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2142 | 490 | lastcomm_.c: lastcomm.c $(ANSI2KNR) | ||
2143 | 491 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/lastcomm.c; then echo $(srcdir)/lastcomm.c; else echo lastcomm.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2144 | 492 | mktime_.c: mktime.c $(ANSI2KNR) | ||
2145 | 493 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mktime.c; then echo $(srcdir)/mktime.c; else echo mktime.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2146 | 494 | pacct_rd_.c: pacct_rd.c $(ANSI2KNR) | ||
2147 | 495 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/pacct_rd.c; then echo $(srcdir)/pacct_rd.c; else echo pacct_rd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2148 | 496 | sa_.c: sa.c $(ANSI2KNR) | ||
2149 | 497 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/sa.c; then echo $(srcdir)/sa.c; else echo sa.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2150 | 498 | uid_hash_.c: uid_hash.c $(ANSI2KNR) | ||
2151 | 499 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/uid_hash.c; then echo $(srcdir)/uid_hash.c; else echo uid_hash.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2152 | 500 | utmp_rd_.c: utmp_rd.c $(ANSI2KNR) | ||
2153 | 501 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/utmp_rd.c; then echo $(srcdir)/utmp_rd.c; else echo utmp_rd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@ | ||
2154 | 502 | ac_.$(OBJEXT) accton_.$(OBJEXT) alloca_.$(OBJEXT) common_.$(OBJEXT) \ | ||
2155 | 503 | dev_hash_.$(OBJEXT) dump-acct_.$(OBJEXT) dump-utmp_.$(OBJEXT) \ | ||
2156 | 504 | file_rd_.$(OBJEXT) getopt_.$(OBJEXT) getopt1_.$(OBJEXT) \ | ||
2157 | 505 | hashtab_.$(OBJEXT) last_.$(OBJEXT) lastcomm_.$(OBJEXT) \ | ||
2158 | 506 | mktime_.$(OBJEXT) pacct_rd_.$(OBJEXT) sa_.$(OBJEXT) \ | ||
2159 | 507 | uid_hash_.$(OBJEXT) utmp_rd_.$(OBJEXT) : $(ANSI2KNR) | ||
2176 | 508 | 725 | ||
2177 | 509 | .texi.info: | 726 | .texi.info: |
2178 | 510 | restore=: && backupdir="$(am__leading_dot)am$$$$" && \ | 727 | restore=: && backupdir="$(am__leading_dot)am$$$$" && \ |
2179 | @@ -555,7 +772,7 @@ | |||
2180 | 555 | accounting.dvi: accounting.texi $(srcdir)/version.texi | 772 | accounting.dvi: accounting.texi $(srcdir)/version.texi |
2181 | 556 | accounting.pdf: accounting.texi $(srcdir)/version.texi | 773 | accounting.pdf: accounting.texi $(srcdir)/version.texi |
2182 | 557 | accounting.html: accounting.texi $(srcdir)/version.texi | 774 | accounting.html: accounting.texi $(srcdir)/version.texi |
2184 | 558 | $(srcdir)/version.texi: $(srcdir)/stamp-vti | 775 | $(srcdir)/version.texi: @MAINTAINER_MODE_TRUE@ $(srcdir)/stamp-vti |
2185 | 559 | $(srcdir)/stamp-vti: accounting.texi $(top_srcdir)/configure | 776 | $(srcdir)/stamp-vti: accounting.texi $(top_srcdir)/configure |
2186 | 560 | @(dir=.; test -f ./accounting.texi || dir=$(srcdir); \ | 777 | @(dir=.; test -f ./accounting.texi || dir=$(srcdir); \ |
2187 | 561 | set `$(SHELL) $(srcdir)/mdate-sh $$dir/accounting.texi`; \ | 778 | set `$(SHELL) $(srcdir)/mdate-sh $$dir/accounting.texi`; \ |
2188 | @@ -573,14 +790,31 @@ | |||
2189 | 573 | -rm -f vti.tmp | 790 | -rm -f vti.tmp |
2190 | 574 | 791 | ||
2191 | 575 | maintainer-clean-vti: | 792 | maintainer-clean-vti: |
2193 | 576 | -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi | 793 | @MAINTAINER_MODE_TRUE@ -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi |
2194 | 577 | .dvi.ps: | 794 | .dvi.ps: |
2195 | 578 | TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ | 795 | TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ |
2196 | 579 | $(DVIPS) -o $@ $< | 796 | $(DVIPS) -o $@ $< |
2197 | 580 | 797 | ||
2198 | 798 | uninstall-dvi-am: | ||
2199 | 799 | @$(NORMAL_UNINSTALL) | ||
2200 | 800 | @list='$(DVIS)'; for p in $$list; do \ | ||
2201 | 801 | f=$(am__strip_dir) \ | ||
2202 | 802 | echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ | ||
2203 | 803 | rm -f "$(DESTDIR)$(dvidir)/$$f"; \ | ||
2204 | 804 | done | ||
2205 | 805 | |||
2206 | 806 | uninstall-html-am: | ||
2207 | 807 | @$(NORMAL_UNINSTALL) | ||
2208 | 808 | @list='$(HTMLS)'; for p in $$list; do \ | ||
2209 | 809 | f=$(am__strip_dir) \ | ||
2210 | 810 | echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ | ||
2211 | 811 | rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ | ||
2212 | 812 | done | ||
2213 | 813 | |||
2214 | 581 | uninstall-info-am: | 814 | uninstall-info-am: |
2215 | 582 | @$(PRE_UNINSTALL) | 815 | @$(PRE_UNINSTALL) |
2217 | 583 | @if (install-info --version && \ | 816 | @if test -d '$(DESTDIR)$(infodir)' && \ |
2218 | 817 | (install-info --version && \ | ||
2219 | 584 | install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ | 818 | install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ |
2220 | 585 | list='$(INFO_DEPS)'; \ | 819 | list='$(INFO_DEPS)'; \ |
2221 | 586 | for file in $$list; do \ | 820 | for file in $$list; do \ |
2222 | @@ -594,12 +828,28 @@ | |||
2223 | 594 | for file in $$list; do \ | 828 | for file in $$list; do \ |
2224 | 595 | relfile=`echo "$$file" | sed 's|^.*/||'`; \ | 829 | relfile=`echo "$$file" | sed 's|^.*/||'`; \ |
2225 | 596 | relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ | 830 | relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ |
2227 | 597 | (if cd "$(DESTDIR)$(infodir)"; then \ | 831 | (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ |
2228 | 598 | echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ | 832 | echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ |
2229 | 599 | rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ | 833 | rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ |
2230 | 600 | else :; fi); \ | 834 | else :; fi); \ |
2231 | 601 | done | 835 | done |
2232 | 602 | 836 | ||
2233 | 837 | uninstall-pdf-am: | ||
2234 | 838 | @$(NORMAL_UNINSTALL) | ||
2235 | 839 | @list='$(PDFS)'; for p in $$list; do \ | ||
2236 | 840 | f=$(am__strip_dir) \ | ||
2237 | 841 | echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ | ||
2238 | 842 | rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ | ||
2239 | 843 | done | ||
2240 | 844 | |||
2241 | 845 | uninstall-ps-am: | ||
2242 | 846 | @$(NORMAL_UNINSTALL) | ||
2243 | 847 | @list='$(PSS)'; for p in $$list; do \ | ||
2244 | 848 | f=$(am__strip_dir) \ | ||
2245 | 849 | echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ | ||
2246 | 850 | rm -f "$(DESTDIR)$(psdir)/$$f"; \ | ||
2247 | 851 | done | ||
2248 | 852 | |||
2249 | 603 | dist-info: $(INFO_DEPS) | 853 | dist-info: $(INFO_DEPS) |
2250 | 604 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | 854 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
2251 | 605 | list='$(INFO_DEPS)'; \ | 855 | list='$(INFO_DEPS)'; \ |
2252 | @@ -608,10 +858,13 @@ | |||
2253 | 608 | $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ | 858 | $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ |
2254 | 609 | esac; \ | 859 | esac; \ |
2255 | 610 | if test -f $$base; then d=.; else d=$(srcdir); fi; \ | 860 | if test -f $$base; then d=.; else d=$(srcdir); fi; \ |
2260 | 611 | for file in $$d/$$base*; do \ | 861 | base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \ |
2261 | 612 | relfile=`expr "$$file" : "$$d/\(.*\)"`; \ | 862 | for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ |
2262 | 613 | test -f $(distdir)/$$relfile || \ | 863 | if test -f $$file; then \ |
2263 | 614 | cp -p $$file $(distdir)/$$relfile; \ | 864 | relfile=`expr "$$file" : "$$d/\(.*\)"`; \ |
2264 | 865 | test -f $(distdir)/$$relfile || \ | ||
2265 | 866 | cp -p $$file $(distdir)/$$relfile; \ | ||
2266 | 867 | else :; fi; \ | ||
2267 | 615 | done; \ | 868 | done; \ |
2268 | 616 | done | 869 | done |
2269 | 617 | 870 | ||
2270 | @@ -630,7 +883,7 @@ | |||
2271 | 630 | done | 883 | done |
2272 | 631 | install-man1: $(man1_MANS) $(man_MANS) | 884 | install-man1: $(man1_MANS) $(man_MANS) |
2273 | 632 | @$(NORMAL_INSTALL) | 885 | @$(NORMAL_INSTALL) |
2275 | 633 | test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" | 886 | test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" |
2276 | 634 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | 887 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ |
2277 | 635 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | 888 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ |
2278 | 636 | for i in $$l2; do \ | 889 | for i in $$l2; do \ |
2279 | @@ -639,8 +892,8 @@ | |||
2280 | 639 | esac; \ | 892 | esac; \ |
2281 | 640 | done; \ | 893 | done; \ |
2282 | 641 | for i in $$list; do \ | 894 | for i in $$list; do \ |
2285 | 642 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | 895 | if test -f $$i; then file=$$i; \ |
2286 | 643 | else file=$$i; fi; \ | 896 | else file=$(srcdir)/$$i; fi; \ |
2287 | 644 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | 897 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ |
2288 | 645 | case "$$ext" in \ | 898 | case "$$ext" in \ |
2289 | 646 | 1*) ;; \ | 899 | 1*) ;; \ |
2290 | @@ -675,7 +928,7 @@ | |||
2291 | 675 | done | 928 | done |
2292 | 676 | install-man8: $(man8_MANS) $(man_MANS) | 929 | install-man8: $(man8_MANS) $(man_MANS) |
2293 | 677 | @$(NORMAL_INSTALL) | 930 | @$(NORMAL_INSTALL) |
2295 | 678 | test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)" | 931 | test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)" |
2296 | 679 | @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ | 932 | @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ |
2297 | 680 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | 933 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ |
2298 | 681 | for i in $$l2; do \ | 934 | for i in $$l2; do \ |
2299 | @@ -684,8 +937,8 @@ | |||
2300 | 684 | esac; \ | 937 | esac; \ |
2301 | 685 | done; \ | 938 | done; \ |
2302 | 686 | for i in $$list; do \ | 939 | for i in $$list; do \ |
2305 | 687 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | 940 | if test -f $$i; then file=$$i; \ |
2306 | 688 | else file=$$i; fi; \ | 941 | else file=$(srcdir)/$$i; fi; \ |
2307 | 689 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | 942 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ |
2308 | 690 | case "$$ext" in \ | 943 | case "$$ext" in \ |
2309 | 691 | 8*) ;; \ | 944 | 8*) ;; \ |
2310 | @@ -719,42 +972,124 @@ | |||
2311 | 719 | rm -f "$(DESTDIR)$(man8dir)/$$inst"; \ | 972 | rm -f "$(DESTDIR)$(man8dir)/$$inst"; \ |
2312 | 720 | done | 973 | done |
2313 | 721 | 974 | ||
2314 | 975 | # This directory's subdirectories are mostly independent; you can cd | ||
2315 | 976 | # into them and run `make' without going through this Makefile. | ||
2316 | 977 | # To change the values of `make' variables: instead of editing Makefiles, | ||
2317 | 978 | # (1) if the variable is set in `config.status', edit `config.status' | ||
2318 | 979 | # (which will cause the Makefiles to be regenerated when you run `make'); | ||
2319 | 980 | # (2) otherwise, pass the desired values on the `make' command line. | ||
2320 | 981 | $(RECURSIVE_TARGETS): | ||
2321 | 982 | @failcom='exit 1'; \ | ||
2322 | 983 | for f in x $$MAKEFLAGS; do \ | ||
2323 | 984 | case $$f in \ | ||
2324 | 985 | *=* | --[!k]*);; \ | ||
2325 | 986 | *k*) failcom='fail=yes';; \ | ||
2326 | 987 | esac; \ | ||
2327 | 988 | done; \ | ||
2328 | 989 | dot_seen=no; \ | ||
2329 | 990 | target=`echo $@ | sed s/-recursive//`; \ | ||
2330 | 991 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
2331 | 992 | echo "Making $$target in $$subdir"; \ | ||
2332 | 993 | if test "$$subdir" = "."; then \ | ||
2333 | 994 | dot_seen=yes; \ | ||
2334 | 995 | local_target="$$target-am"; \ | ||
2335 | 996 | else \ | ||
2336 | 997 | local_target="$$target"; \ | ||
2337 | 998 | fi; \ | ||
2338 | 999 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
2339 | 1000 | || eval $$failcom; \ | ||
2340 | 1001 | done; \ | ||
2341 | 1002 | if test "$$dot_seen" = "no"; then \ | ||
2342 | 1003 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
2343 | 1004 | fi; test -z "$$fail" | ||
2344 | 1005 | |||
2345 | 1006 | $(RECURSIVE_CLEAN_TARGETS): | ||
2346 | 1007 | @failcom='exit 1'; \ | ||
2347 | 1008 | for f in x $$MAKEFLAGS; do \ | ||
2348 | 1009 | case $$f in \ | ||
2349 | 1010 | *=* | --[!k]*);; \ | ||
2350 | 1011 | *k*) failcom='fail=yes';; \ | ||
2351 | 1012 | esac; \ | ||
2352 | 1013 | done; \ | ||
2353 | 1014 | dot_seen=no; \ | ||
2354 | 1015 | case "$@" in \ | ||
2355 | 1016 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
2356 | 1017 | *) list='$(SUBDIRS)' ;; \ | ||
2357 | 1018 | esac; \ | ||
2358 | 1019 | rev=''; for subdir in $$list; do \ | ||
2359 | 1020 | if test "$$subdir" = "."; then :; else \ | ||
2360 | 1021 | rev="$$subdir $$rev"; \ | ||
2361 | 1022 | fi; \ | ||
2362 | 1023 | done; \ | ||
2363 | 1024 | rev="$$rev ."; \ | ||
2364 | 1025 | target=`echo $@ | sed s/-recursive//`; \ | ||
2365 | 1026 | for subdir in $$rev; do \ | ||
2366 | 1027 | echo "Making $$target in $$subdir"; \ | ||
2367 | 1028 | if test "$$subdir" = "."; then \ | ||
2368 | 1029 | local_target="$$target-am"; \ | ||
2369 | 1030 | else \ | ||
2370 | 1031 | local_target="$$target"; \ | ||
2371 | 1032 | fi; \ | ||
2372 | 1033 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
2373 | 1034 | || eval $$failcom; \ | ||
2374 | 1035 | done && test -z "$$fail" | ||
2375 | 1036 | tags-recursive: | ||
2376 | 1037 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
2377 | 1038 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
2378 | 1039 | done | ||
2379 | 1040 | ctags-recursive: | ||
2380 | 1041 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
2381 | 1042 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
2382 | 1043 | done | ||
2383 | 1044 | |||
2384 | 722 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | 1045 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
2385 | 723 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | 1046 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
2386 | 724 | unique=`for i in $$list; do \ | 1047 | unique=`for i in $$list; do \ |
2387 | 725 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 1048 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
2388 | 726 | done | \ | 1049 | done | \ |
2391 | 727 | $(AWK) ' { files[$$0] = 1; } \ | 1050 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
2392 | 728 | END { for (i in files) print i; }'`; \ | 1051 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
2393 | 729 | mkid -fID $$unique | 1052 | mkid -fID $$unique |
2394 | 730 | tags: TAGS | 1053 | tags: TAGS |
2395 | 731 | 1054 | ||
2397 | 732 | TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | 1055 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
2398 | 733 | $(TAGS_FILES) $(LISP) | 1056 | $(TAGS_FILES) $(LISP) |
2399 | 734 | tags=; \ | 1057 | tags=; \ |
2400 | 735 | here=`pwd`; \ | 1058 | here=`pwd`; \ |
2401 | 1059 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||
2402 | 1060 | include_option=--etags-include; \ | ||
2403 | 1061 | empty_fix=.; \ | ||
2404 | 1062 | else \ | ||
2405 | 1063 | include_option=--include; \ | ||
2406 | 1064 | empty_fix=; \ | ||
2407 | 1065 | fi; \ | ||
2408 | 1066 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
2409 | 1067 | if test "$$subdir" = .; then :; else \ | ||
2410 | 1068 | test ! -f $$subdir/TAGS || \ | ||
2411 | 1069 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | ||
2412 | 1070 | fi; \ | ||
2413 | 1071 | done; \ | ||
2414 | 736 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | 1072 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
2415 | 737 | unique=`for i in $$list; do \ | 1073 | unique=`for i in $$list; do \ |
2416 | 738 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 1074 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
2417 | 739 | done | \ | 1075 | done | \ |
2420 | 740 | $(AWK) ' { files[$$0] = 1; } \ | 1076 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
2421 | 741 | END { for (i in files) print i; }'`; \ | 1077 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
2422 | 742 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | 1078 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ |
2423 | 743 | test -n "$$unique" || unique=$$empty_fix; \ | 1079 | test -n "$$unique" || unique=$$empty_fix; \ |
2424 | 744 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | 1080 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
2425 | 745 | $$tags $$unique; \ | 1081 | $$tags $$unique; \ |
2426 | 746 | fi | 1082 | fi |
2427 | 747 | ctags: CTAGS | 1083 | ctags: CTAGS |
2429 | 748 | CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | 1084 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
2430 | 749 | $(TAGS_FILES) $(LISP) | 1085 | $(TAGS_FILES) $(LISP) |
2431 | 750 | tags=; \ | 1086 | tags=; \ |
2432 | 751 | here=`pwd`; \ | ||
2433 | 752 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | 1087 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
2434 | 753 | unique=`for i in $$list; do \ | 1088 | unique=`for i in $$list; do \ |
2435 | 754 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 1089 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
2436 | 755 | done | \ | 1090 | done | \ |
2439 | 756 | $(AWK) ' { files[$$0] = 1; } \ | 1091 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
2440 | 757 | END { for (i in files) print i; }'`; \ | 1092 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
2441 | 758 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | 1093 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ |
2442 | 759 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | 1094 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
2443 | 760 | $$tags $$unique | 1095 | $$tags $$unique |
2444 | @@ -769,24 +1104,22 @@ | |||
2445 | 769 | 1104 | ||
2446 | 770 | distdir: $(DISTFILES) | 1105 | distdir: $(DISTFILES) |
2447 | 771 | $(am__remove_distdir) | 1106 | $(am__remove_distdir) |
2457 | 772 | mkdir $(distdir) | 1107 | test -d $(distdir) || mkdir $(distdir) |
2458 | 773 | $(mkdir_p) $(distdir)/. | 1108 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
2459 | 774 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | 1109 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
2460 | 775 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | 1110 | list='$(DISTFILES)'; \ |
2461 | 776 | list='$(DISTFILES)'; for file in $$list; do \ | 1111 | dist_files=`for file in $$list; do echo $$file; done | \ |
2462 | 777 | case $$file in \ | 1112 | sed -e "s|^$$srcdirstrip/||;t" \ |
2463 | 778 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | 1113 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
2464 | 779 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | 1114 | case $$dist_files in \ |
2465 | 780 | esac; \ | 1115 | */*) $(MKDIR_P) `echo "$$dist_files" | \ |
2466 | 1116 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
2467 | 1117 | sort -u` ;; \ | ||
2468 | 1118 | esac; \ | ||
2469 | 1119 | for file in $$dist_files; do \ | ||
2470 | 781 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | 1120 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
2471 | 782 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
2472 | 783 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
2473 | 784 | dir="/$$dir"; \ | ||
2474 | 785 | $(mkdir_p) "$(distdir)$$dir"; \ | ||
2475 | 786 | else \ | ||
2476 | 787 | dir=''; \ | ||
2477 | 788 | fi; \ | ||
2478 | 789 | if test -d $$d/$$file; then \ | 1121 | if test -d $$d/$$file; then \ |
2479 | 1122 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
2480 | 790 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | 1123 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
2481 | 791 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | 1124 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ |
2482 | 792 | fi; \ | 1125 | fi; \ |
2483 | @@ -797,13 +1130,30 @@ | |||
2484 | 797 | || exit 1; \ | 1130 | || exit 1; \ |
2485 | 798 | fi; \ | 1131 | fi; \ |
2486 | 799 | done | 1132 | done |
2487 | 1133 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
2488 | 1134 | if test "$$subdir" = .; then :; else \ | ||
2489 | 1135 | test -d "$(distdir)/$$subdir" \ | ||
2490 | 1136 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | ||
2491 | 1137 | || exit 1; \ | ||
2492 | 1138 | distdir=`$(am__cd) $(distdir) && pwd`; \ | ||
2493 | 1139 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | ||
2494 | 1140 | (cd $$subdir && \ | ||
2495 | 1141 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
2496 | 1142 | top_distdir="$$top_distdir" \ | ||
2497 | 1143 | distdir="$$distdir/$$subdir" \ | ||
2498 | 1144 | am__remove_distdir=: \ | ||
2499 | 1145 | am__skip_length_check=: \ | ||
2500 | 1146 | distdir) \ | ||
2501 | 1147 | || exit 1; \ | ||
2502 | 1148 | fi; \ | ||
2503 | 1149 | done | ||
2504 | 800 | $(MAKE) $(AM_MAKEFLAGS) \ | 1150 | $(MAKE) $(AM_MAKEFLAGS) \ |
2505 | 801 | top_distdir="$(top_distdir)" distdir="$(distdir)" \ | 1151 | top_distdir="$(top_distdir)" distdir="$(distdir)" \ |
2506 | 802 | dist-info | 1152 | dist-info |
2507 | 803 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | 1153 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ |
2508 | 804 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | 1154 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
2509 | 805 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | 1155 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
2511 | 806 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | 1156 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
2512 | 807 | || chmod -R a+r $(distdir) | 1157 | || chmod -R a+r $(distdir) |
2513 | 808 | dist-gzip: distdir | 1158 | dist-gzip: distdir |
2514 | 809 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | 1159 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
2515 | @@ -813,6 +1163,10 @@ | |||
2516 | 813 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | 1163 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
2517 | 814 | $(am__remove_distdir) | 1164 | $(am__remove_distdir) |
2518 | 815 | 1165 | ||
2519 | 1166 | dist-lzma: distdir | ||
2520 | 1167 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | ||
2521 | 1168 | $(am__remove_distdir) | ||
2522 | 1169 | |||
2523 | 816 | dist-tarZ: distdir | 1170 | dist-tarZ: distdir |
2524 | 817 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | 1171 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
2525 | 818 | $(am__remove_distdir) | 1172 | $(am__remove_distdir) |
2526 | @@ -839,6 +1193,8 @@ | |||
2527 | 839 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | 1193 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ |
2528 | 840 | *.tar.bz2*) \ | 1194 | *.tar.bz2*) \ |
2529 | 841 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | 1195 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ |
2530 | 1196 | *.tar.lzma*) \ | ||
2531 | 1197 | unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | ||
2532 | 842 | *.tar.Z*) \ | 1198 | *.tar.Z*) \ |
2533 | 843 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | 1199 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
2534 | 844 | *.shar.gz*) \ | 1200 | *.shar.gz*) \ |
2535 | @@ -878,7 +1234,7 @@ | |||
2536 | 878 | $(am__remove_distdir) | 1234 | $(am__remove_distdir) |
2537 | 879 | @(echo "$(distdir) archives ready for distribution: "; \ | 1235 | @(echo "$(distdir) archives ready for distribution: "; \ |
2538 | 880 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | 1236 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
2540 | 881 | sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' | 1237 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
2541 | 882 | distuninstallcheck: | 1238 | distuninstallcheck: |
2542 | 883 | @cd $(distuninstallcheck_dir) \ | 1239 | @cd $(distuninstallcheck_dir) \ |
2543 | 884 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | 1240 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ |
2544 | @@ -898,22 +1254,22 @@ | |||
2545 | 898 | $(distcleancheck_listfiles) ; \ | 1254 | $(distcleancheck_listfiles) ; \ |
2546 | 899 | exit 1; } >&2 | 1255 | exit 1; } >&2 |
2547 | 900 | check-am: all-am | 1256 | check-am: all-am |
2552 | 901 | check: check-am | 1257 | check: check-recursive |
2553 | 902 | all-am: Makefile $(INFO_DEPS) $(ANSI2KNR) $(PROGRAMS) $(MANS) \ | 1258 | all-am: Makefile $(INFO_DEPS) $(PROGRAMS) $(MANS) $(HEADERS) config.h |
2554 | 903 | $(HEADERS) config.h | 1259 | installdirs: installdirs-recursive |
2555 | 904 | installdirs: | 1260 | installdirs-am: |
2556 | 905 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)"; do \ | 1261 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)"; do \ |
2558 | 906 | test -z "$$dir" || $(mkdir_p) "$$dir"; \ | 1262 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
2559 | 907 | done | 1263 | done |
2564 | 908 | install: install-am | 1264 | install: install-recursive |
2565 | 909 | install-exec: install-exec-am | 1265 | install-exec: install-exec-recursive |
2566 | 910 | install-data: install-data-am | 1266 | install-data: install-data-recursive |
2567 | 911 | uninstall: uninstall-am | 1267 | uninstall: uninstall-recursive |
2568 | 912 | 1268 | ||
2569 | 913 | install-am: all-am | 1269 | install-am: all-am |
2570 | 914 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | 1270 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
2571 | 915 | 1271 | ||
2573 | 916 | installcheck: installcheck-am | 1272 | installcheck: installcheck-recursive |
2574 | 917 | install-strip: | 1273 | install-strip: |
2575 | 918 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | 1274 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
2576 | 919 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | 1275 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
2577 | @@ -930,39 +1286,68 @@ | |||
2578 | 930 | maintainer-clean-generic: | 1286 | maintainer-clean-generic: |
2579 | 931 | @echo "This command is intended for maintainers to use" | 1287 | @echo "This command is intended for maintainers to use" |
2580 | 932 | @echo "it deletes files that may require special tools to rebuild." | 1288 | @echo "it deletes files that may require special tools to rebuild." |
2582 | 933 | clean: clean-am | 1289 | clean: clean-recursive |
2583 | 934 | 1290 | ||
2585 | 935 | clean-am: clean-binPROGRAMS clean-generic clean-krextra \ | 1291 | clean-am: clean-binPROGRAMS clean-generic clean-libtool \ |
2586 | 936 | clean-sbinPROGRAMS mostlyclean-am | 1292 | clean-sbinPROGRAMS mostlyclean-am |
2587 | 937 | 1293 | ||
2589 | 938 | distclean: distclean-am | 1294 | distclean: distclean-recursive |
2590 | 939 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | 1295 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
2592 | 940 | -rm -rf $(DEPDIR) ./$(DEPDIR) | 1296 | -rm -rf ./$(DEPDIR) |
2593 | 941 | -rm -f Makefile | 1297 | -rm -f Makefile |
2594 | 942 | distclean-am: clean-am distclean-compile distclean-generic \ | 1298 | distclean-am: clean-am distclean-compile distclean-generic \ |
2596 | 943 | distclean-hdr distclean-tags | 1299 | distclean-hdr distclean-libtool distclean-tags |
2597 | 944 | 1300 | ||
2599 | 945 | dvi: dvi-am | 1301 | dvi: dvi-recursive |
2600 | 946 | 1302 | ||
2601 | 947 | dvi-am: $(DVIS) | 1303 | dvi-am: $(DVIS) |
2602 | 948 | 1304 | ||
2604 | 949 | html: html-am | 1305 | html: html-recursive |
2605 | 950 | 1306 | ||
2606 | 951 | html-am: $(HTMLS) | 1307 | html-am: $(HTMLS) |
2607 | 952 | 1308 | ||
2609 | 953 | info: info-am | 1309 | info: info-recursive |
2610 | 954 | 1310 | ||
2611 | 955 | info-am: $(INFO_DEPS) | 1311 | info-am: $(INFO_DEPS) |
2612 | 956 | 1312 | ||
2613 | 957 | install-data-am: install-info-am install-man | 1313 | install-data-am: install-info-am install-man |
2614 | 958 | 1314 | ||
2615 | 1315 | install-dvi: install-dvi-recursive | ||
2616 | 1316 | |||
2617 | 1317 | install-dvi-am: $(DVIS) | ||
2618 | 1318 | @$(NORMAL_INSTALL) | ||
2619 | 1319 | test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)" | ||
2620 | 1320 | @list='$(DVIS)'; for p in $$list; do \ | ||
2621 | 1321 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
2622 | 1322 | f=$(am__strip_dir) \ | ||
2623 | 1323 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ | ||
2624 | 1324 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ | ||
2625 | 1325 | done | ||
2626 | 959 | install-exec-am: install-binPROGRAMS install-sbinPROGRAMS | 1326 | install-exec-am: install-binPROGRAMS install-sbinPROGRAMS |
2627 | 960 | 1327 | ||
2629 | 961 | install-info: install-info-am | 1328 | install-html: install-html-recursive |
2630 | 1329 | |||
2631 | 1330 | install-html-am: $(HTMLS) | ||
2632 | 1331 | @$(NORMAL_INSTALL) | ||
2633 | 1332 | test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" | ||
2634 | 1333 | @list='$(HTMLS)'; for p in $$list; do \ | ||
2635 | 1334 | if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
2636 | 1335 | f=$(am__strip_dir) \ | ||
2637 | 1336 | if test -d "$$d$$p"; then \ | ||
2638 | 1337 | echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ | ||
2639 | 1338 | $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ | ||
2640 | 1339 | echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ | ||
2641 | 1340 | $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ | ||
2642 | 1341 | else \ | ||
2643 | 1342 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ | ||
2644 | 1343 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ | ||
2645 | 1344 | fi; \ | ||
2646 | 1345 | done | ||
2647 | 1346 | install-info: install-info-recursive | ||
2648 | 962 | 1347 | ||
2649 | 963 | install-info-am: $(INFO_DEPS) | 1348 | install-info-am: $(INFO_DEPS) |
2650 | 964 | @$(NORMAL_INSTALL) | 1349 | @$(NORMAL_INSTALL) |
2652 | 965 | test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)" | 1350 | test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)" |
2653 | 966 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | 1351 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
2654 | 967 | list='$(INFO_DEPS)'; \ | 1352 | list='$(INFO_DEPS)'; \ |
2655 | 968 | for file in $$list; do \ | 1353 | for file in $$list; do \ |
2656 | @@ -992,57 +1377,85 @@ | |||
2657 | 992 | else : ; fi | 1377 | else : ; fi |
2658 | 993 | install-man: install-man1 install-man8 | 1378 | install-man: install-man1 install-man8 |
2659 | 994 | 1379 | ||
2660 | 1380 | install-pdf: install-pdf-recursive | ||
2661 | 1381 | |||
2662 | 1382 | install-pdf-am: $(PDFS) | ||
2663 | 1383 | @$(NORMAL_INSTALL) | ||
2664 | 1384 | test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)" | ||
2665 | 1385 | @list='$(PDFS)'; for p in $$list; do \ | ||
2666 | 1386 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
2667 | 1387 | f=$(am__strip_dir) \ | ||
2668 | 1388 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ | ||
2669 | 1389 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ | ||
2670 | 1390 | done | ||
2671 | 1391 | install-ps: install-ps-recursive | ||
2672 | 1392 | |||
2673 | 1393 | install-ps-am: $(PSS) | ||
2674 | 1394 | @$(NORMAL_INSTALL) | ||
2675 | 1395 | test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)" | ||
2676 | 1396 | @list='$(PSS)'; for p in $$list; do \ | ||
2677 | 1397 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
2678 | 1398 | f=$(am__strip_dir) \ | ||
2679 | 1399 | echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \ | ||
2680 | 1400 | $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \ | ||
2681 | 1401 | done | ||
2682 | 995 | installcheck-am: | 1402 | installcheck-am: |
2683 | 996 | 1403 | ||
2685 | 997 | maintainer-clean: maintainer-clean-am | 1404 | maintainer-clean: maintainer-clean-recursive |
2686 | 998 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | 1405 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
2687 | 999 | -rm -rf $(top_srcdir)/autom4te.cache | 1406 | -rm -rf $(top_srcdir)/autom4te.cache |
2689 | 1000 | -rm -rf $(DEPDIR) ./$(DEPDIR) | 1407 | -rm -rf ./$(DEPDIR) |
2690 | 1001 | -rm -f Makefile | 1408 | -rm -f Makefile |
2691 | 1002 | maintainer-clean-am: distclean-am maintainer-clean-aminfo \ | 1409 | maintainer-clean-am: distclean-am maintainer-clean-aminfo \ |
2692 | 1003 | maintainer-clean-generic maintainer-clean-vti | 1410 | maintainer-clean-generic maintainer-clean-vti |
2693 | 1004 | 1411 | ||
2695 | 1005 | mostlyclean: mostlyclean-am | 1412 | mostlyclean: mostlyclean-recursive |
2696 | 1006 | 1413 | ||
2697 | 1007 | mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \ | 1414 | mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \ |
2699 | 1008 | mostlyclean-generic mostlyclean-kr mostlyclean-vti | 1415 | mostlyclean-generic mostlyclean-libtool mostlyclean-vti |
2700 | 1009 | 1416 | ||
2702 | 1010 | pdf: pdf-am | 1417 | pdf: pdf-recursive |
2703 | 1011 | 1418 | ||
2704 | 1012 | pdf-am: $(PDFS) | 1419 | pdf-am: $(PDFS) |
2705 | 1013 | 1420 | ||
2707 | 1014 | ps: ps-am | 1421 | ps: ps-recursive |
2708 | 1015 | 1422 | ||
2709 | 1016 | ps-am: $(PSS) | 1423 | ps-am: $(PSS) |
2710 | 1017 | 1424 | ||
2713 | 1018 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man \ | 1425 | uninstall-am: uninstall-binPROGRAMS uninstall-dvi-am uninstall-html-am \ |
2714 | 1019 | uninstall-sbinPROGRAMS | 1426 | uninstall-info-am uninstall-man uninstall-pdf-am \ |
2715 | 1427 | uninstall-ps-am uninstall-sbinPROGRAMS | ||
2716 | 1020 | 1428 | ||
2717 | 1021 | uninstall-man: uninstall-man1 uninstall-man8 | 1429 | uninstall-man: uninstall-man1 uninstall-man8 |
2718 | 1022 | 1430 | ||
2723 | 1023 | .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ | 1431 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ |
2724 | 1024 | clean-binPROGRAMS clean-generic clean-krextra \ | 1432 | install-strip |
2725 | 1025 | clean-sbinPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \ | 1433 | |
2726 | 1026 | dist-info dist-shar dist-tarZ dist-zip distcheck distclean \ | 1434 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
2727 | 1435 | all all-am am--refresh check check-am clean clean-binPROGRAMS \ | ||
2728 | 1436 | clean-generic clean-libtool clean-sbinPROGRAMS ctags \ | ||
2729 | 1437 | ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-info \ | ||
2730 | 1438 | dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \ | ||
2731 | 1027 | distclean-compile distclean-generic distclean-hdr \ | 1439 | distclean-compile distclean-generic distclean-hdr \ |
2738 | 1028 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | 1440 | distclean-libtool distclean-tags distcleancheck distdir \ |
2739 | 1029 | dvi-am html html-am info info-am install install-am \ | 1441 | distuninstallcheck dvi dvi-am html html-am info info-am \ |
2740 | 1030 | install-binPROGRAMS install-data install-data-am install-exec \ | 1442 | install install-am install-binPROGRAMS install-data \ |
2741 | 1031 | install-exec-am install-info install-info-am install-man \ | 1443 | install-data-am install-dvi install-dvi-am install-exec \ |
2742 | 1032 | install-man1 install-man8 install-sbinPROGRAMS install-strip \ | 1444 | install-exec-am install-html install-html-am install-info \ |
2743 | 1033 | installcheck installcheck-am installdirs maintainer-clean \ | 1445 | install-info-am install-man install-man1 install-man8 \ |
2744 | 1446 | install-pdf install-pdf-am install-ps install-ps-am \ | ||
2745 | 1447 | install-sbinPROGRAMS install-strip installcheck \ | ||
2746 | 1448 | installcheck-am installdirs installdirs-am maintainer-clean \ | ||
2747 | 1034 | maintainer-clean-aminfo maintainer-clean-generic \ | 1449 | maintainer-clean-aminfo maintainer-clean-generic \ |
2748 | 1035 | maintainer-clean-vti mostlyclean mostlyclean-aminfo \ | 1450 | maintainer-clean-vti mostlyclean mostlyclean-aminfo \ |
2753 | 1036 | mostlyclean-compile mostlyclean-generic mostlyclean-kr \ | 1451 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ |
2754 | 1037 | mostlyclean-vti pdf pdf-am ps ps-am tags uninstall \ | 1452 | mostlyclean-vti pdf pdf-am ps ps-am tags tags-recursive \ |
2755 | 1038 | uninstall-am uninstall-binPROGRAMS uninstall-info-am \ | 1453 | uninstall uninstall-am uninstall-binPROGRAMS uninstall-dvi-am \ |
2756 | 1039 | uninstall-man uninstall-man1 uninstall-man8 \ | 1454 | uninstall-html-am uninstall-info-am uninstall-man \ |
2757 | 1455 | uninstall-man1 uninstall-man8 uninstall-pdf-am uninstall-ps-am \ | ||
2758 | 1040 | uninstall-sbinPROGRAMS | 1456 | uninstall-sbinPROGRAMS |
2759 | 1041 | 1457 | ||
2760 | 1042 | 1458 | ||
2761 | 1043 | mktime: mktime.c | ||
2762 | 1044 | $(CC) $(LDFLAGS) -DDEBUG mktime.c -o mktime | ||
2763 | 1045 | |||
2764 | 1046 | compare: compare-ac compare-last compare-lastcomm compare-sa | 1459 | compare: compare-ac compare-last compare-lastcomm compare-sa |
2765 | 1047 | 1460 | ||
2766 | 1048 | compare-ac: ac | 1461 | compare-ac: ac |
2767 | 1049 | 1462 | ||
2768 | === modified file 'NEWS' | |||
2769 | --- NEWS 2006-03-18 18:38:00 +0000 | |||
2770 | +++ NEWS 2010-01-20 17:40:26 +0000 | |||
2771 | @@ -1,3 +1,15 @@ | |||
2772 | 1 | New in 6.5.1: | ||
2773 | 2 | |||
2774 | 3 | * GNUlib for compability, audited code... Reworked. | ||
2775 | 4 | |||
2776 | 5 | New in 6.5: | ||
2777 | 6 | |||
2778 | 7 | * Patches from Debian. | ||
2779 | 8 | |||
2780 | 9 | * Actually released to the public. | ||
2781 | 10 | |||
2782 | 11 | * Huge code-refactoring. | ||
2783 | 12 | |||
2784 | 1 | New in 6.4: | 13 | New in 6.4: |
2785 | 2 | 14 | ||
2786 | 3 | * Linux multiformat support: Starting from release 2.6.8, the Linux | 15 | * Linux multiformat support: Starting from release 2.6.8, the Linux |
2787 | @@ -24,11 +36,11 @@ | |||
2788 | 24 | 36 | ||
2789 | 25 | * The build system was updated to recent versions of the tools used. | 37 | * The build system was updated to recent versions of the tools used. |
2790 | 26 | 38 | ||
2791 | 27 | |||
2792 | 28 | 39 | ||
2793 | 40 | |||
2794 | 29 | New in 6.3.5: | 41 | New in 6.3.5: |
2795 | 30 | * Reverted below change to acct.h header search. | 42 | * Reverted below change to acct.h header search. |
2796 | 31 | 43 | ||
2797 | 32 | |||
2798 | 33 | 44 | ||
2799 | 45 | |||
2800 | 34 | New in 6.3.4: | 46 | New in 6.3.4: |
2801 | 35 | * When trying to find the acct.h header file, look in the linux | 47 | * When trying to find the acct.h header file, look in the linux |
2802 | 36 | directory before the sys directory, since the former is probably | 48 | directory before the sys directory, since the former is probably |
2803 | @@ -36,7 +48,7 @@ | |||
2804 | 36 | 48 | ||
2805 | 37 | * Documentation fixes for sa. | 49 | * Documentation fixes for sa. |
2806 | 38 | 50 | ||
2807 | 39 | |||
2808 | 40 | 51 | ||
2809 | 52 | |||
2810 | 41 | New in 6.3.3: | 53 | New in 6.3.3: |
2811 | 42 | 54 | ||
2812 | 43 | * For those systems which have wide utmp fields, last now tries to | 55 | * For those systems which have wide utmp fields, last now tries to |
2813 | @@ -57,14 +69,14 @@ | |||
2814 | 57 | 69 | ||
2815 | 58 | lastcomm --strict-match noel cat ttyp7 | 70 | lastcomm --strict-match noel cat ttyp7 |
2816 | 59 | 71 | ||
2817 | 60 | |||
2818 | 61 | 72 | ||
2819 | 73 | |||
2820 | 62 | New in 6.3.2: | 74 | New in 6.3.2: |
2821 | 63 | 75 | ||
2822 | 64 | * Small memory allocation problem fixed in sa. | 76 | * Small memory allocation problem fixed in sa. |
2823 | 65 | 77 | ||
2824 | 66 | * Released to the general public. | 78 | * Released to the general public. |
2825 | 67 | 79 | ||
2826 | 68 | |||
2827 | 69 | 80 | ||
2828 | 81 | |||
2829 | 70 | New in 6.3.1: | 82 | New in 6.3.1: |
2830 | 71 | 83 | ||
2831 | 72 | * A `NEWS' file (and others) so that we conform to the GNU | 84 | * A `NEWS' file (and others) so that we conform to the GNU |
2832 | @@ -76,7 +88,7 @@ | |||
2833 | 76 | Very cool. I was suprised how easy it was to integrate into this | 88 | Very cool. I was suprised how easy it was to integrate into this |
2834 | 77 | package. Hats off to David J. MacKenzie and Tom Tromey! | 89 | package. Hats off to David J. MacKenzie and Tom Tromey! |
2835 | 78 | 90 | ||
2836 | 79 | |||
2837 | 80 | 91 | ||
2838 | 92 | |||
2839 | 81 | New in 6.3: | 93 | New in 6.3: |
2840 | 82 | 94 | ||
2841 | 83 | * Hey! We're on prep.ai.mit.edu! | 95 | * Hey! We're on prep.ai.mit.edu! |
2842 | @@ -92,7 +104,7 @@ | |||
2843 | 92 | 104 | ||
2844 | 93 | * Fixed a buffer overrun error in sa which was preventing it from | 105 | * Fixed a buffer overrun error in sa which was preventing it from |
2845 | 94 | sorting the username list correctly. | 106 | sorting the username list correctly. |
2846 | 95 | |||
2847 | 96 | 107 | ||
2848 | 108 | |||
2849 | 97 | Ancient history: | 109 | Ancient history: |
2850 | 98 | 110 | ||
2851 | 99 | * Check the file `ChangeLog' in the source directory. | 111 | * Check the file `ChangeLog' in the source directory. |
2852 | 100 | 112 | ||
2853 | === modified file 'README' | |||
2854 | --- README 2006-03-18 18:38:00 +0000 | |||
2855 | +++ README 2010-01-20 17:40:26 +0000 | |||
2856 | @@ -82,18 +82,18 @@ | |||
2857 | 82 | 82 | ||
2858 | 83 | ---------------------------------------------------------------------- | 83 | ---------------------------------------------------------------------- |
2859 | 84 | 84 | ||
2875 | 85 | The GNU Accounting Utilities are Copyright (C) 1993, 1996, 1997 Free | 85 | The GNU Accounting Utilities are Copyright (C) 1993, 1996, 1997, 2008 |
2876 | 86 | Software Foundation, Inc. | 86 | Free Software Foundation, Inc. |
2877 | 87 | 87 | ||
2878 | 88 | This program is free software; you can redistribute it and/or modify | 88 | This program is free software: you can redistribute it and/or modify |
2879 | 89 | it under the terms of the GNU General Public License as published by | 89 | it under the terms of the GNU General Public License as published by |
2880 | 90 | the Free Software Foundation; version 2 dated June, 1991. | 90 | the Free Software Foundation, either version 3 of the License, or |
2881 | 91 | 91 | (at your option) any later version. | |
2882 | 92 | This program is distributed in the hope that it will be useful, | 92 | |
2883 | 93 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 93 | This program is distributed in the hope that it will be useful, |
2884 | 94 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 94 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
2885 | 95 | GNU General Public License for more details. | 95 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2886 | 96 | 96 | GNU General Public License for more details. | |
2887 | 97 | You should have received a copy of the GNU General Public License | 97 | |
2888 | 98 | along with this program; if not, write to the Free Software | 98 | You should have received a copy of the GNU General Public License |
2889 | 99 | Foundation, Inc., 675 Mass Ave., Cambridge, MA 02139, USA. | 99 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
2890 | 100 | 100 | ||
2891 | === modified file 'ac.c' | |||
2892 | --- ac.c 2006-03-18 18:38:00 +0000 | |||
2893 | +++ ac.c 2010-01-20 17:40:26 +0000 | |||
2894 | @@ -1,11 +1,12 @@ | |||
2896 | 1 | /* Copyright (C) 1993, 1996, 1997, 2003 Free Software Foundation, Inc. | 1 | /* |
2897 | 2 | Copyright (C) 1993, 1996, 1997, 2003, 2008, 2009 Free Software Foundation, Inc. | ||
2898 | 2 | 3 | ||
2899 | 3 | This file is part of the GNU Accounting Utilities | 4 | This file is part of the GNU Accounting Utilities |
2900 | 4 | 5 | ||
2901 | 5 | The GNU Accounting Utilities are free software; you can redistribute | 6 | The GNU Accounting Utilities are free software; you can redistribute |
2902 | 6 | them and/or modify them under the terms of the GNU General Public | 7 | them and/or modify them under the terms of the GNU General Public |
2903 | 7 | License as published by the Free Software Foundation; either version | 8 | License as published by the Free Software Foundation; either version |
2905 | 8 | 2, or (at your option) any later version. | 9 | 3, or (at your option) any later version. |
2906 | 9 | 10 | ||
2907 | 10 | The GNU Accounting Utilities are distributed in the hope that they will | 11 | The GNU Accounting Utilities are distributed in the hope that they will |
2908 | 11 | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | 12 | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
2909 | @@ -15,7 +16,8 @@ | |||
2910 | 15 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
2911 | 16 | along with the GNU Accounting Utilities; see the file COPYING. If | 17 | along with the GNU Accounting Utilities; see the file COPYING. If |
2912 | 17 | not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, | 18 | not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, |
2914 | 18 | MA 02139, USA. */ | 19 | MA 02139, USA. |
2915 | 20 | */ | ||
2916 | 19 | 21 | ||
2917 | 20 | #include "config.h" | 22 | #include "config.h" |
2918 | 21 | #include <stdio.h> | 23 | #include <stdio.h> |
2919 | @@ -43,13 +45,18 @@ | |||
2920 | 43 | 45 | ||
2921 | 44 | #include "common.h" | 46 | #include "common.h" |
2922 | 45 | #include "utmp_rd.h" | 47 | #include "utmp_rd.h" |
2923 | 48 | #ifdef HAVE_GETOPT_LONG_ONLY | ||
2924 | 49 | #include <getopt.h> | ||
2925 | 50 | #else | ||
2926 | 46 | #include "getopt.h" | 51 | #include "getopt.h" |
2927 | 52 | #endif | ||
2928 | 47 | #include "hashtab.h" | 53 | #include "hashtab.h" |
2929 | 48 | #include "version.h" | 54 | #include "version.h" |
2930 | 49 | 55 | ||
2931 | 50 | /* static stuff */ | 56 | /* static stuff */ |
2932 | 51 | 57 | ||
2934 | 52 | static char *months[] = { | 58 | static char *months[] = |
2935 | 59 | { | ||
2936 | 53 | "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", | 60 | "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", |
2937 | 54 | "Aug", "Sep", "Oct", "Nov", "Dec" | 61 | "Aug", "Sep", "Oct", "Nov", "Dec" |
2938 | 55 | }; | 62 | }; |
2939 | @@ -119,34 +126,31 @@ | |||
2940 | 119 | int print_midnight_totals = 0; /* -d flag */ | 126 | int print_midnight_totals = 0; /* -d flag */ |
2941 | 120 | int print_zero_totals = 0; /* -z flag */ | 127 | int print_zero_totals = 0; /* -z flag */ |
2942 | 121 | 128 | ||
2943 | 122 | |||
2944 | 123 | /* A hash table to hold user totals. The names themselves are the | 129 | /* A hash table to hold user totals. The names themselves are the |
2945 | 124 | keys for this table. */ | 130 | keys for this table. */ |
2946 | 125 | 131 | ||
2947 | 126 | struct hashtab *user_totals = NULL; | 132 | struct hashtab *user_totals = NULL; |
2948 | 127 | 133 | ||
2953 | 128 | struct user_data { | 134 | struct user_data |
2954 | 129 | unsigned long time; | 135 | { |
2955 | 130 | }; | 136 | unsigned long time; |
2956 | 131 | 137 | }; | |
2957 | 132 | 138 | ||
2958 | 133 | /* A hash table which contains the names that the user wants | 139 | /* A hash table which contains the names that the user wants |
2959 | 134 | printed. The names themselves are the keys for this table. */ | 140 | printed. The names themselves are the keys for this table. */ |
2960 | 135 | 141 | ||
2961 | 136 | struct hashtab *names = NULL; | 142 | struct hashtab *names = NULL; |
2962 | 137 | 143 | ||
2963 | 138 | |||
2964 | 139 | /* A table for the currently logged-in ttys. The UT_LINE fields are | 144 | /* A table for the currently logged-in ttys. The UT_LINE fields are |
2965 | 140 | the keys for this table. */ | 145 | the keys for this table. */ |
2966 | 141 | 146 | ||
2967 | 142 | struct hashtab *login_table; | 147 | struct hashtab *login_table; |
2968 | 143 | 148 | ||
2975 | 144 | struct login_data { | 149 | struct login_data |
2976 | 145 | char ut_name[NAME_LEN]; | 150 | { |
2977 | 146 | time_t time; | 151 | char ut_name[NAME_LEN]; |
2978 | 147 | }; | 152 | time_t time; |
2979 | 148 | 153 | }; | |
2974 | 149 | |||
2980 | 150 | 154 | ||
2981 | 151 | /* prototypes */ | 155 | /* prototypes */ |
2982 | 152 | 156 | ||
2983 | @@ -161,19 +165,16 @@ | |||
2984 | 161 | void update_system_time PARAMS((time_t)); | 165 | void update_system_time PARAMS((time_t)); |
2985 | 162 | time_t midnight_after_me PARAMS((time_t)); | 166 | time_t midnight_after_me PARAMS((time_t)); |
2986 | 163 | 167 | ||
2987 | 164 | |||
2988 | 165 | |||
2989 | 166 | 168 | ||
2990 | 167 | /* code */ | 169 | /* code */ |
2991 | 168 | 170 | ||
2994 | 169 | int | 171 | int main(int argc, char *argv[]) |
2993 | 170 | main (int argc, char *argv[]) | ||
2995 | 171 | { | 172 | { |
2996 | 172 | int c; | 173 | int c; |
2997 | 173 | int other_wtmp_file_specified = 0; /* nonzero if the user used the | 174 | int other_wtmp_file_specified = 0; /* nonzero if the user used the |
2998 | 174 | `-f' or `--other-file' flags */ | 175 | `-f' or `--other-file' flags */ |
2999 | 175 | 176 | ||
3000 | 176 | program_name = argv[0]; | 177 | program_name = argv[0]; |
3002 | 177 | 178 | ||
3003 | 178 | /* Init the utmp reader for reading forwards in the files. */ | 179 | /* Init the utmp reader for reading forwards in the files. */ |
3004 | 179 | 180 | ||
3005 | 180 | utmp_init (0); | 181 | utmp_init (0); |
3006 | @@ -181,107 +182,107 @@ | |||
3007 | 181 | while (1) | 182 | while (1) |
3008 | 182 | { | 183 | { |
3009 | 183 | int option_index = 0; | 184 | int option_index = 0; |
3031 | 184 | 185 | ||
3032 | 185 | static struct option long_options[] = { | 186 | static struct option long_options[] = |
3033 | 186 | { "complain", no_argument, NULL, 1 }, | 187 | { |
3034 | 187 | { "reboots", no_argument, NULL, 2 }, | 188 | { "complain", no_argument, NULL, 1 |
3035 | 188 | { "supplants", no_argument, NULL, 3 }, | 189 | }, |
3036 | 189 | { "timewarps", no_argument, NULL, 4 }, | 190 | { "reboots", no_argument, NULL, 2 }, |
3037 | 190 | { "print-zeros", no_argument, NULL, 5 }, | 191 | { "supplants", no_argument, NULL, 3 }, |
3038 | 191 | { "debug", no_argument, NULL, 6 }, | 192 | { "timewarps", no_argument, NULL, 4 }, |
3039 | 192 | { "tw-leniency", required_argument, NULL, 7 }, | 193 | { "print-zeros", no_argument, NULL, 5 }, |
3040 | 193 | { "version", no_argument, NULL, 8 }, | 194 | { "debug", no_argument, NULL, 6 }, |
3041 | 194 | { "help", no_argument, NULL, 9 }, | 195 | { "tw-leniency", required_argument, NULL, 7 }, |
3042 | 195 | { "daily-totals", no_argument, NULL, 10 }, | 196 | { "version", no_argument, NULL, 8 }, |
3043 | 196 | { "individual-totals", no_argument, NULL, 11 }, | 197 | { "help", no_argument, NULL, 9 }, |
3044 | 197 | { "file", required_argument, NULL, 12 }, | 198 | { "daily-totals", no_argument, NULL, 10 }, |
3045 | 198 | { "compatibility", no_argument, NULL, 13 }, | 199 | { "individual-totals", no_argument, NULL, 11 }, |
3046 | 199 | { "print-year", no_argument, NULL, 14 }, | 200 | { "file", required_argument, NULL, 12 }, |
3047 | 200 | { "all-days", no_argument, NULL, 15 }, | 201 | { "compatibility", no_argument, NULL, 13 }, |
3048 | 201 | { "tw-suspicious", required_argument, NULL, 16 }, | 202 | { "print-year", no_argument, NULL, 14 }, |
3049 | 202 | { 0, 0, 0, 0 } | 203 | { "all-days", no_argument, NULL, 15 }, |
3050 | 203 | }; | 204 | { "tw-suspicious", required_argument, NULL, 16 }, |
3051 | 204 | 205 | { 0, 0, 0, 0 } | |
3052 | 206 | }; | ||
3053 | 207 | |||
3054 | 205 | c = getopt_long (argc, argv, "adf:hpVyz", long_options, &option_index); | 208 | c = getopt_long (argc, argv, "adf:hpVyz", long_options, &option_index); |
3056 | 206 | 209 | ||
3057 | 207 | if (c == EOF) | 210 | if (c == EOF) |
3059 | 208 | break; | 211 | break; |
3060 | 209 | 212 | ||
3061 | 210 | switch (c) | 213 | switch (c) |
3136 | 211 | { | 214 | { |
3137 | 212 | case 1: | 215 | case 1: |
3138 | 213 | print_file_problems = 1; | 216 | print_file_problems = 1; |
3139 | 214 | break; | 217 | break; |
3140 | 215 | case 2: | 218 | case 2: |
3141 | 216 | nasty_reboot = 1; | 219 | nasty_reboot = 1; |
3142 | 217 | break; | 220 | break; |
3143 | 218 | case 3: | 221 | case 3: |
3144 | 219 | nasty_supplant = 1; | 222 | nasty_supplant = 1; |
3145 | 220 | break; | 223 | break; |
3146 | 221 | case 4: | 224 | case 4: |
3147 | 222 | nasty_time_warp = 1; | 225 | nasty_time_warp = 1; |
3148 | 223 | break; | 226 | break; |
3149 | 224 | case 'z': | 227 | case 'z': |
3150 | 225 | case 5: | 228 | case 5: |
3151 | 226 | print_zero_totals = 1; | 229 | print_zero_totals = 1; |
3152 | 227 | break; | 230 | break; |
3153 | 228 | case 6: | 231 | case 6: |
3154 | 229 | debugging_enabled = 1; | 232 | debugging_enabled = 1; |
3155 | 230 | print_file_problems = 1; | 233 | print_file_problems = 1; |
3156 | 231 | break; | 234 | break; |
3157 | 232 | case 7: | 235 | case 7: |
3158 | 233 | time_warp_leniency = atol (optarg); | 236 | time_warp_leniency = strtol(optarg, (char **)NULL, 10); |
3159 | 234 | if (time_warp_leniency < 0) | 237 | if (time_warp_leniency < 0) |
3160 | 235 | fatal ("time warp leniency value has to be non-negative"); | 238 | fatal ("time warp leniency value has to be non-negative"); |
3161 | 236 | break; | 239 | break; |
3162 | 237 | case 'V': | 240 | case 'V': |
3163 | 238 | case 8: | 241 | case 8: |
3164 | 239 | printf ("%s: GNU Accounting Utilities (release %s)\n", | 242 | (void)printf("%s: GNU Accounting Utilities (release %s)\n", |
3165 | 240 | program_name, VERSION_STRING); | 243 | program_name, VERSION_STRING); |
3166 | 241 | exit (0); | 244 | exit(EXIT_SUCCESS); |
3167 | 242 | break; | 245 | case 10: |
3168 | 243 | case 10: | 246 | case 'd': |
3169 | 244 | case 'd': | 247 | print_midnight_totals = 1; |
3170 | 245 | print_midnight_totals = 1; | 248 | break; |
3171 | 246 | break; | 249 | case 11: |
3172 | 247 | case 11: | 250 | case 'p': |
3173 | 248 | case 'p': | 251 | print_individual_totals = 1; |
3174 | 249 | print_individual_totals = 1; | 252 | break; |
3175 | 250 | break; | 253 | case 12: |
3176 | 251 | case 12: | 254 | case 'f': |
3177 | 252 | case 'f': | 255 | add_utmp_file (optarg); |
3178 | 253 | add_utmp_file (optarg); | 256 | other_wtmp_file_specified = 1; |
3179 | 254 | other_wtmp_file_specified = 1; | 257 | break; |
3180 | 255 | break; | 258 | case 13: |
3181 | 256 | case 13: | 259 | /* u*x compatibility */ |
3182 | 257 | /* u*x compatibility */ | 260 | nasty_time_warp = 1; |
3183 | 258 | nasty_time_warp = 1; | 261 | nasty_supplant = 1; |
3184 | 259 | nasty_supplant = 1; | 262 | nasty_reboot = 1; |
3185 | 260 | nasty_reboot = 1; | 263 | break; |
3186 | 261 | break; | 264 | case 'y': |
3187 | 262 | case 'y': | 265 | case 14: |
3188 | 263 | case 14: | 266 | print_year = 1; |
3189 | 264 | print_year = 1; | 267 | break; |
3190 | 265 | break; | 268 | case 'a': |
3191 | 266 | case 'a': | 269 | case 15: |
3192 | 267 | case 15: | 270 | print_all_days = 1; |
3193 | 268 | print_all_days = 1; | 271 | break; |
3194 | 269 | break; | 272 | case 16: |
3195 | 270 | case 16: | 273 | time_warp_suspicious = strtol(optarg, (char **)NULL, 10); |
3196 | 271 | time_warp_suspicious = atol (optarg); | 274 | if (time_warp_suspicious < 0) |
3197 | 272 | if (time_warp_suspicious < 0) | 275 | fatal("time warp suspicious value has to be non-negative"); |
3198 | 273 | fatal ("time warp suspicious value has to be non-negative"); | 276 | if (time_warp_suspicious <= time_warp_leniency) |
3199 | 274 | if (time_warp_suspicious <= time_warp_leniency) | 277 | fatal("time warp suspicious value has to greater than the time warp leniency value"); |
3200 | 275 | fatal ("time warp suspicious value has to greater than the time warp leniency value"); | 278 | break; |
3201 | 276 | break; | 279 | case 'h': |
3202 | 277 | case 'h': | 280 | case 9: |
3203 | 278 | case 9: | 281 | /* This should fall through to default! */ |
3204 | 279 | /* This should fall through to default! */ | 282 | default: |
3205 | 280 | default: | 283 | give_usage(); |
3206 | 281 | give_usage (); | 284 | exit(EXIT_FAILURE); /* FIXME: return 1; */ |
3207 | 282 | exit (1); | 285 | } |
3134 | 283 | break; | ||
3135 | 284 | } | ||
3208 | 285 | } | 286 | } |
3209 | 286 | 287 | ||
3210 | 287 | /* Init the hash table for usernames. Don't init it if we don't | 288 | /* Init the hash table for usernames. Don't init it if we don't |
3211 | @@ -293,15 +294,15 @@ | |||
3212 | 293 | names = hashtab_init (0); | 294 | names = hashtab_init (0); |
3213 | 294 | 295 | ||
3214 | 295 | while (optind < argc) | 296 | while (optind < argc) |
3217 | 296 | hashtab_create (names, argv[optind++], 0); | 297 | hashtab_create (names, argv[optind++], 0); |
3218 | 297 | 298 | ||
3219 | 298 | if (debugging_enabled) | 299 | if (debugging_enabled) |
3221 | 299 | hashtab_dump_keys (names, stddebug); | 300 | hashtab_dump_keys (names, stddebug); |
3222 | 300 | } | 301 | } |
3225 | 301 | 302 | ||
3226 | 302 | if (! other_wtmp_file_specified) | 303 | if (!other_wtmp_file_specified) |
3227 | 303 | add_utmp_file (WTMP_FILE_LOC); | 304 | add_utmp_file (WTMP_FILE_LOC); |
3229 | 304 | 305 | ||
3230 | 305 | /* Create hash tables for user totals and logins. */ | 306 | /* Create hash tables for user totals and logins. */ |
3231 | 306 | 307 | ||
3232 | 307 | user_totals = hashtab_init (0); | 308 | user_totals = hashtab_init (0); |
3233 | @@ -310,7 +311,7 @@ | |||
3234 | 310 | /* Do it! */ | 311 | /* Do it! */ |
3235 | 311 | 312 | ||
3236 | 312 | parse_entries (); | 313 | parse_entries (); |
3238 | 313 | 314 | ||
3239 | 314 | /* At this point, there are no more entries in the wtmp file. We | 315 | /* At this point, there are no more entries in the wtmp file. We |
3240 | 315 | need to do statistics for everything up to now, so update all of | 316 | need to do statistics for everything up to now, so update all of |
3241 | 316 | the people who are logged in presently and print today's | 317 | the people who are logged in presently and print today's |
3242 | @@ -325,51 +326,45 @@ | |||
3243 | 325 | 326 | ||
3244 | 326 | if (now < last_time) | 327 | if (now < last_time) |
3245 | 327 | now = last_time; | 328 | now = last_time; |
3247 | 328 | 329 | ||
3248 | 329 | do_totals (&next_midnight, now, TRUE, TRUE, "midnight logout"); | 330 | do_totals (&next_midnight, now, TRUE, TRUE, "midnight logout"); |
3250 | 330 | 331 | ||
3251 | 331 | log_everyone_out (now, TRUE, FALSE, "catch-up"); | 332 | log_everyone_out (now, TRUE, FALSE, "catch-up"); |
3252 | 332 | } | 333 | } |
3254 | 333 | 334 | ||
3255 | 334 | do_statistics (print_midnight_totals | 335 | do_statistics (print_midnight_totals |
3258 | 335 | ? (print_year ? "Today\t" : "Today") | 336 | ? (print_year ? "Today\t" : "Today") |
3259 | 336 | : ""); | 337 | : ""); |
3260 | 337 | 338 | ||
3262 | 338 | exit (0); /* guarantee the proper return value */ | 339 | exit (EXIT_SUCCESS); /* guarantee the proper return value */ |
3263 | 339 | } | 340 | } |
3264 | 340 | 341 | ||
3265 | 341 | |||
3266 | 342 | /* guess what this does... */ | 342 | /* guess what this does... */ |
3269 | 343 | void | 343 | |
3270 | 344 | give_usage (void) | 344 | void give_usage(void) |
3271 | 345 | { | 345 | { |
3281 | 346 | char *usage = "\ | 346 | (void)printf("\ |
3282 | 347 | Usage: %s [-dhpVy] [-f <file>] [people] ...\n\ | 347 | Usage: %s [-dhpVy] [-f <file>] [people] ...\n\ |
3283 | 348 | [--daily-totals] [--individual-totals] [--file <file>]\n\ | 348 | [--daily-totals] [--individual-totals] [--file <file>]\n\ |
3284 | 349 | [--complain] [--reboots] [--supplants] [--timewarps] [--print-year]\n\ | 349 | [--complain] [--reboots] [--supplants] [--timewarps] [--print-year]\n\ |
3285 | 350 | [--compatibility] [--print-zeros] [--debug] [--tw-leniency <value>]\n\ | 350 | [--compatibility] [--print-zeros] [--debug] [--tw-leniency <value>]\n\ |
3286 | 351 | [--tw-suspicious <value>] [--version] [--help]\n"; | 351 | [--tw-suspicious <value>] [--version] [--help]\n", program_name); |
3287 | 352 | 352 | print_wtmp_file_location(); | |
3279 | 353 | printf (usage, program_name); | ||
3280 | 354 | print_wtmp_file_location (); | ||
3288 | 355 | } | 353 | } |
3289 | 356 | 354 | ||
3290 | 357 | |||
3291 | 358 | 355 | ||
3292 | 359 | |||
3293 | 360 | /* Since the routines in ac & last are so similar, just include them | 356 | /* Since the routines in ac & last are so similar, just include them |
3294 | 361 | from another file. */ | 357 | from another file. */ |
3295 | 362 | 358 | ||
3296 | 363 | #include "al_share.cpp" | 359 | #include "al_share.cpp" |
3297 | 364 | 360 | ||
3298 | 365 | |||
3299 | 366 | 361 | ||
3300 | 367 | /* since the sys clock has changed, each entry's login time has to be | 362 | /* since the sys clock has changed, each entry's login time has to be |
3301 | 368 | * adjusted... */ | 363 | * adjusted... */ |
3304 | 369 | void | 364 | |
3305 | 370 | update_system_time (time_t the_time) | 365 | void update_system_time(time_t the_time) |
3306 | 371 | { | 366 | { |
3307 | 372 | struct hashtab_order ho; | 367 | struct hashtab_order ho; |
3308 | 373 | struct hashtab_elem *he; | 368 | struct hashtab_elem *he; |
3310 | 374 | 369 | ||
3311 | 375 | for (he = hashtab_first (login_table, &ho); | 370 | for (he = hashtab_first (login_table, &ho); |
3312 | 376 | he != NULL; | 371 | he != NULL; |
3313 | 377 | he = hashtab_next (&ho)) | 372 | he = hashtab_next (&ho)) |
3314 | @@ -379,19 +374,17 @@ | |||
3315 | 379 | } | 374 | } |
3316 | 380 | } | 375 | } |
3317 | 381 | 376 | ||
3318 | 382 | |||
3319 | 383 | /* Log all entries out at THE_TIME. Update statistics if | 377 | /* Log all entries out at THE_TIME. Update statistics if |
3320 | 384 | UPDATE_TIME_FLAG is non-zero, and print out the entries preceded by | 378 | UPDATE_TIME_FLAG is non-zero, and print out the entries preceded by |
3321 | 385 | DEBUG_STR. If CHANGE_LOGIN_FLAG is non-zero, reset the login times | 379 | DEBUG_STR. If CHANGE_LOGIN_FLAG is non-zero, reset the login times |
3322 | 386 | to THE_TIME. */ | 380 | to THE_TIME. */ |
3323 | 387 | 381 | ||
3327 | 388 | void | 382 | void log_everyone_out(time_t the_time, int update_time_flag, |
3328 | 389 | log_everyone_out (time_t the_time, int update_time_flag, | 383 | int change_login_flag, char *debug_str) |
3326 | 390 | int change_login_flag, char *debug_str) | ||
3329 | 391 | { | 384 | { |
3330 | 392 | struct hashtab_order ho; | 385 | struct hashtab_order ho; |
3331 | 393 | struct hashtab_elem *he; | 386 | struct hashtab_elem *he; |
3333 | 394 | 387 | ||
3334 | 395 | for (he = hashtab_first (login_table, &ho); | 388 | for (he = hashtab_first (login_table, &ho); |
3335 | 396 | he != NULL; | 389 | he != NULL; |
3336 | 397 | he = hashtab_next (&ho)) | 390 | he = hashtab_next (&ho)) |
3337 | @@ -399,55 +392,53 @@ | |||
3338 | 399 | struct login_data *l = hashtab_get_value (he); | 392 | struct login_data *l = hashtab_get_value (he); |
3339 | 400 | 393 | ||
3340 | 401 | if (update_time_flag) | 394 | if (update_time_flag) |
3342 | 402 | update_user_time (l->ut_name, the_time - l->time, debug_str); | 395 | update_user_time (l->ut_name, the_time - l->time, debug_str); |
3343 | 403 | 396 | ||
3344 | 404 | if (change_login_flag) | 397 | if (change_login_flag) |
3346 | 405 | l->time = the_time; | 398 | l->time = the_time; |
3347 | 406 | else | 399 | else |
3349 | 407 | hashtab_delete (he); | 400 | hashtab_delete (he); |
3350 | 408 | } | 401 | } |
3351 | 409 | } | 402 | } |
3352 | 410 | 403 | ||
3353 | 411 | |||
3354 | 412 | /* Put a terminal into the hash table. */ | 404 | /* Put a terminal into the hash table. */ |
3355 | 413 | 405 | ||
3358 | 414 | void | 406 | void log_in(struct utmp *entry) |
3357 | 415 | log_in (struct utmp *entry) | ||
3359 | 416 | { | 407 | { |
3360 | 417 | struct hashtab_elem *he; | 408 | struct hashtab_elem *he; |
3361 | 418 | 409 | ||
3362 | 419 | if (entry->ut_line[0] == '\0') | 410 | if (entry->ut_line[0] == '\0') |
3363 | 420 | { | 411 | { |
3364 | 421 | if (print_file_problems) | 412 | if (print_file_problems) |
3370 | 422 | { | 413 | { |
3371 | 423 | utmp_print_file_and_line (stddebug); | 414 | utmp_print_file_and_line(stddebug); |
3372 | 424 | fprintf (stddebug, | 415 | (void)fprintf(stddebug, |
3373 | 425 | ": problem: trying to hash rec with ut_line == NULL\n"); | 416 | ": problem: trying to hash rec with ut_line == NULL\n"); |
3374 | 426 | } | 417 | } |
3375 | 427 | return; | 418 | return; |
3376 | 428 | } | 419 | } |
3377 | 429 | 420 | ||
3379 | 430 | he = hashtab_find (login_table, entry->ut_line, TTY_LEN); | 421 | he = hashtab_find(login_table, entry->ut_line, TTY_LEN); |
3380 | 431 | 422 | ||
3381 | 432 | if (he != NULL) | 423 | if (he != NULL) |
3382 | 433 | { | 424 | { |
3383 | 434 | struct login_data *l = hashtab_get_value (he); | 425 | struct login_data *l = hashtab_get_value (he); |
3384 | 435 | 426 | ||
3385 | 436 | if (print_file_problems) | 427 | if (print_file_problems) |
3393 | 437 | { | 428 | { |
3394 | 438 | char *ttyname = hashtab_get_key (he); | 429 | char *ttyname = hashtab_get_key (he); |
3395 | 439 | utmp_print_file_and_line (stddebug); | 430 | utmp_print_file_and_line (stddebug); |
3396 | 440 | fprintf (stddebug, ": problem: duplicate record for line `%.*s'\n", | 431 | (void)fprintf(stddebug, ": problem: duplicate record for line `%.*s'\n", |
3397 | 441 | TTY_LEN, ttyname); | 432 | TTY_LEN, ttyname); |
3398 | 442 | } | 433 | } |
3399 | 443 | 434 | ||
3400 | 444 | /* we should just write over the old one -- nasty ac's charge | 435 | /* we should just write over the old one -- nasty ac's charge |
3403 | 445 | the user being for being logged in until this new tty entry | 436 | the user being for being logged in until this new tty entry |
3404 | 446 | appears, so the flag NASTY_SUPPLANT is included */ | 437 | appears, so the flag NASTY_SUPPLANT is included */ |
3405 | 447 | 438 | ||
3406 | 448 | if (nasty_supplant) | 439 | if (nasty_supplant) |
3409 | 449 | update_user_time (l->ut_name, entry->ut_time - l->time, "supplant"); | 440 | update_user_time(l->ut_name, entry->ut_time - l->time, "supplant"); |
3410 | 450 | 441 | ||
3411 | 451 | strncpy (l->ut_name, entry->ut_name, NAME_LEN); | 442 | strncpy (l->ut_name, entry->ut_name, NAME_LEN); |
3412 | 452 | l->time = entry->ut_time; | 443 | l->time = entry->ut_time; |
3413 | 453 | } | 444 | } |
3414 | @@ -457,7 +448,7 @@ | |||
3415 | 457 | a new one. */ | 448 | a new one. */ |
3416 | 458 | 449 | ||
3417 | 459 | struct login_data l; | 450 | struct login_data l; |
3419 | 460 | 451 | ||
3420 | 461 | strncpy (l.ut_name, entry->ut_name, NAME_LEN); | 452 | strncpy (l.ut_name, entry->ut_name, NAME_LEN); |
3421 | 462 | l.time = entry->ut_time; | 453 | l.time = entry->ut_time; |
3422 | 463 | 454 | ||
3423 | @@ -466,22 +457,20 @@ | |||
3424 | 466 | } | 457 | } |
3425 | 467 | } | 458 | } |
3426 | 468 | 459 | ||
3427 | 469 | |||
3428 | 470 | /* Remove an entry from the hash table. */ | 460 | /* Remove an entry from the hash table. */ |
3429 | 471 | 461 | ||
3432 | 472 | void | 462 | void log_out(struct utmp *entry) |
3431 | 473 | log_out (struct utmp *entry) | ||
3433 | 474 | { | 463 | { |
3434 | 475 | struct hashtab_elem *he; | 464 | struct hashtab_elem *he; |
3436 | 476 | 465 | ||
3437 | 477 | if (entry->ut_line[0] == '\0') | 466 | if (entry->ut_line[0] == '\0') |
3438 | 478 | { | 467 | { |
3439 | 479 | if (print_file_problems) | 468 | if (print_file_problems) |
3445 | 480 | { | 469 | { |
3446 | 481 | utmp_print_file_and_line (stddebug); | 470 | utmp_print_file_and_line (stddebug); |
3447 | 482 | fprintf (stddebug, | 471 | fprintf (stddebug, |
3448 | 483 | ": problem: trying to hash rec with ut_line == NULL\n"); | 472 | ": problem: trying to hash rec with ut_line == NULL\n"); |
3449 | 484 | } | 473 | } |
3450 | 485 | return; | 474 | return; |
3451 | 486 | } | 475 | } |
3452 | 487 | 476 | ||
3453 | @@ -503,63 +492,70 @@ | |||
3454 | 503 | any login corresponding to this logout. */ | 492 | any login corresponding to this logout. */ |
3455 | 504 | 493 | ||
3456 | 505 | if (print_file_problems) | 494 | if (print_file_problems) |
3462 | 506 | { | 495 | { |
3463 | 507 | utmp_print_file_and_line (stddebug); | 496 | utmp_print_file_and_line (stddebug); |
3464 | 508 | fprintf (stddebug, ": problem: missing login record for `%.*s'\n", | 497 | fprintf (stddebug, ": problem: missing login record for `%.*s'\n", |
3465 | 509 | TTY_LEN, entry->ut_line); | 498 | TTY_LEN, entry->ut_line); |
3466 | 510 | } | 499 | } |
3467 | 511 | } | 500 | } |
3468 | 512 | } | 501 | } |
3469 | 513 | 502 | ||
3470 | 514 | |||
3471 | 515 | |||
3472 | 516 | /* fills in the days between entries, calculating how much time a user | 503 | /* fills in the days between entries, calculating how much time a user |
3473 | 517 | * has racked up by midnight of each period | 504 | * has racked up by midnight of each period |
3474 | 518 | * | 505 | * |
3475 | 519 | * side-effect (desirable) -- changes the value passed in NEXT_MIDNIGHT | 506 | * side-effect (desirable) -- changes the value passed in NEXT_MIDNIGHT |
3476 | 520 | * to catch up with CURRENT_TIME | 507 | * to catch up with CURRENT_TIME |
3477 | 521 | */ | 508 | */ |
3481 | 522 | void | 509 | |
3482 | 523 | do_totals (time_t *next_midnight, time_t current_time, | 510 | void do_totals(time_t *next_midnight, time_t current_time, |
3483 | 524 | int update_time_flag, int change_login_flag, char *debug_str) | 511 | int update_time_flag, int change_login_flag, char *debug_str) |
3484 | 525 | { | 512 | { |
3485 | 526 | while (*next_midnight < current_time) | 513 | while (*next_midnight < current_time) |
3486 | 527 | { | 514 | { |
3487 | 528 | log_everyone_out (*next_midnight, update_time_flag, change_login_flag, | 515 | log_everyone_out (*next_midnight, update_time_flag, change_login_flag, |
3490 | 529 | debug_str); | 516 | debug_str); |
3491 | 530 | 517 | ||
3492 | 531 | if (print_midnight_totals) | 518 | if (print_midnight_totals) |
3496 | 532 | { | 519 | { |
3497 | 533 | /* We need the proper label for do_statistics: we can get it | 520 | /* We need the proper label for do_statistics: we can get it |
3498 | 534 | relative to next_midnight. */ | 521 | relative to next_midnight. */ |
3499 | 522 | #ifdef HAVE_SNPRINTF | ||
3500 | 523 | char month_day_string[256]; | ||
3501 | 524 | #else | ||
3502 | 525 | char month_day_string[255]; | ||
3503 | 526 | #endif | ||
3504 | 527 | time_t temp_time = *next_midnight - 10; | ||
3505 | 528 | struct tm *temp_tm = localtime (&temp_time); | ||
3506 | 529 | if (print_year) | ||
3507 | 530 | #ifdef HAVE_SNPRINTF | ||
3508 | 531 | (void)snprintf(month_day_string, sizeof(month_day_string), "%s %2d %4d", | ||
3509 | 532 | months[temp_tm->tm_mon], temp_tm->tm_mday, | ||
3510 | 533 | 1900 + temp_tm->tm_year); | ||
3511 | 534 | else | ||
3512 | 535 | (void)snprintf(month_day_string, sizeof(month_day_string),"%s %2d", | ||
3513 | 536 | months[temp_tm->tm_mon], temp_tm->tm_mday); | ||
3514 | 537 | #else | ||
3515 | 538 | (void)sprintf(month_day_string, "%s %2d %4d", | ||
3516 | 539 | months[temp_tm->tm_mon], temp_tm->tm_mday, | ||
3517 | 540 | 1900 + temp_tm->tm_year); | ||
3518 | 541 | else | ||
3519 | 542 | (void)sprintf(month_day_string, "%s %2d", | ||
3520 | 543 | months[temp_tm->tm_mon], temp_tm->tm_mday); | ||
3521 | 544 | #endif | ||
3522 | 545 | do_statistics (month_day_string); | ||
3523 | 546 | } | ||
3524 | 535 | 547 | ||
3525 | 536 | char month_day_string[255]; | ||
3526 | 537 | time_t temp_time = *next_midnight - 10; | ||
3527 | 538 | struct tm *temp_tm = localtime (&temp_time); | ||
3528 | 539 | if (print_year) | ||
3529 | 540 | sprintf (month_day_string, "%s %2d %4d", | ||
3530 | 541 | months[temp_tm->tm_mon], temp_tm->tm_mday, | ||
3531 | 542 | 1900 + temp_tm->tm_year); | ||
3532 | 543 | else | ||
3533 | 544 | sprintf (month_day_string, "%s %2d", | ||
3534 | 545 | months[temp_tm->tm_mon], temp_tm->tm_mday); | ||
3535 | 546 | |||
3536 | 547 | do_statistics (month_day_string); | ||
3537 | 548 | } | ||
3538 | 549 | |||
3539 | 550 | /* Get the next day ONLY if we're printing totals at midnight | 548 | /* Get the next day ONLY if we're printing totals at midnight |
3540 | 551 | and the user wants to see all of the days (because it's much | 549 | and the user wants to see all of the days (because it's much |
3541 | 552 | slower). */ | 550 | slower). */ |
3542 | 553 | 551 | ||
3543 | 554 | *next_midnight = | 552 | *next_midnight = |
3547 | 555 | midnight_after_me ((print_midnight_totals && print_all_days) | 553 | midnight_after_me ((print_midnight_totals && print_all_days) |
3548 | 556 | ? *next_midnight | 554 | ? *next_midnight |
3549 | 557 | : current_time); | 555 | : current_time); |
3550 | 558 | } | 556 | } |
3551 | 559 | } | 557 | } |
3552 | 560 | 558 | ||
3553 | 561 | |||
3554 | 562 | |||
3555 | 563 | /* print out statistics and clear the user totals | 559 | /* print out statistics and clear the user totals |
3556 | 564 | * if !PRINT_INDIVIDUAL_TOTALS && !PRINT_MIDNIGHT_TOTALS | 560 | * if !PRINT_INDIVIDUAL_TOTALS && !PRINT_MIDNIGHT_TOTALS |
3557 | 565 | * don't print anything until the end | 561 | * don't print anything until the end |
3558 | @@ -568,8 +564,8 @@ | |||
3559 | 568 | * if PRINT_MIDNIGHT_TOTALS && PRINT_INDIVIDUAL_TOTALS | 564 | * if PRINT_MIDNIGHT_TOTALS && PRINT_INDIVIDUAL_TOTALS |
3560 | 569 | * print totals, individ user times, & clear times | 565 | * print totals, individ user times, & clear times |
3561 | 570 | */ | 566 | */ |
3564 | 571 | void | 567 | |
3565 | 572 | do_statistics (char *date_string) | 568 | void do_statistics(char *date_string) |
3566 | 573 | { | 569 | { |
3567 | 574 | unsigned long total; | 570 | unsigned long total; |
3568 | 575 | double float_total; | 571 | double float_total; |
3569 | @@ -586,64 +582,63 @@ | |||
3570 | 586 | char *username = hashtab_get_key (he); | 582 | char *username = hashtab_get_key (he); |
3571 | 587 | 583 | ||
3572 | 588 | /* print if the user table is null or the name is on the command line */ | 584 | /* print if the user table is null or the name is on the command line */ |
3574 | 589 | 585 | ||
3575 | 590 | if ((names == NULL) || hashtab_find (names, username, NAME_LEN)) | 586 | if ((names == NULL) || hashtab_find (names, username, NAME_LEN)) |
3588 | 591 | { | 587 | { |
3589 | 592 | struct user_data *u = hashtab_get_value (he); | 588 | struct user_data *u = hashtab_get_value (he); |
3590 | 593 | 589 | ||
3591 | 594 | total += u->time; | 590 | total += u->time; |
3592 | 595 | 591 | ||
3593 | 596 | if ((print_individual_totals) | 592 | if ((print_individual_totals) |
3594 | 597 | && !((u->time == 0) && !print_zero_totals)) | 593 | && !((u->time == 0) && !print_zero_totals)) |
3595 | 598 | printf ("%s%-*.*s %*.2f\n", | 594 | printf ("%s%-*.*s %*.2f\n", |
3596 | 599 | (print_year ? "\t\t" : "\t"), | 595 | (print_year ? "\t\t" : "\t"), |
3597 | 600 | NAME_LEN, NAME_LEN, username, | 596 | NAME_LEN, NAME_LEN, username, |
3598 | 601 | number_precision, (double) u->time / 3600.0); | 597 | number_precision, (double) u->time / 3600.0); |
3599 | 602 | } | 598 | } |
3600 | 603 | 599 | ||
3601 | 604 | hashtab_delete (he); | 600 | hashtab_delete (he); |
3602 | 605 | } | 601 | } |
3604 | 606 | 602 | ||
3605 | 607 | float_total = (double) total / 3600.0; | 603 | float_total = (double) total / 3600.0; |
3607 | 608 | 604 | ||
3608 | 609 | if (print_midnight_totals) | 605 | if (print_midnight_totals) |
3609 | 610 | { | 606 | { |
3610 | 611 | if (!((float_total == 0.0) && !print_zero_totals)) | 607 | if (!((float_total == 0.0) && !print_zero_totals)) |
3613 | 612 | printf ("%s\ttotal %*.2f\n", date_string, | 608 | printf ("%s\ttotal %*.2f\n", date_string, |
3614 | 613 | number_precision + 3, float_total); | 609 | number_precision + 3, float_total); |
3615 | 614 | } | 610 | } |
3616 | 615 | else | 611 | else |
3617 | 616 | printf ("%stotal %*.2f\n", | 612 | printf ("%stotal %*.2f\n", |
3620 | 617 | (print_year ? "\t\t" : "\t"), | 613 | (print_year ? "\t\t" : "\t"), |
3621 | 618 | number_precision + 3, float_total); | 614 | number_precision + 3, float_total); |
3622 | 619 | } | 615 | } |
3623 | 620 | 616 | ||
3624 | 621 | |||
3625 | 622 | /* put something into the user table */ | 617 | /* put something into the user table */ |
3628 | 623 | void | 618 | |
3629 | 624 | update_user_time (char *name, time_t the_time, char *debug_label) | 619 | void update_user_time(char *name, time_t the_time, char *debug_label) |
3630 | 625 | { | 620 | { |
3631 | 626 | struct hashtab_elem *he; | 621 | struct hashtab_elem *he; |
3633 | 627 | 622 | ||
3634 | 628 | /* If we've rolled off the end of the range of time_t, it's possible | 623 | /* If we've rolled off the end of the range of time_t, it's possible |
3635 | 629 | to have negative values for THE_TIME. Yuck. Notify the user and | 624 | to have negative values for THE_TIME. Yuck. Notify the user and |
3636 | 630 | quit. */ | 625 | quit. */ |
3638 | 631 | 626 | ||
3639 | 632 | if (the_time < 0) | 627 | if (the_time < 0) |
3640 | 633 | { | 628 | { |
3641 | 634 | utmp_print_file_and_line (stdout); | 629 | utmp_print_file_and_line (stdout); |
3642 | 635 | fprintf (stddebug, | 630 | fprintf (stddebug, |
3645 | 636 | ": problem: update user %.*s (for %s) with %ld seconds?!\n", | 631 | ": problem: update user %.*s (for %s) with %ld seconds?!\n", |
3646 | 637 | NAME_LEN, name, debug_label, (long) the_time); | 632 | NAME_LEN, name, debug_label, (long) the_time); |
3647 | 638 | fatal ("Possible overflow of time_t! Can't continue."); | 633 | fatal ("Possible overflow of time_t! Can't continue."); |
3648 | 639 | } | 634 | } |
3649 | 640 | 635 | ||
3650 | 641 | if (debugging_enabled | 636 | if (debugging_enabled |
3651 | 642 | && ((names == NULL) || hashtab_find (names, name, NAME_LEN))) | 637 | && ((names == NULL) || hashtab_find (names, name, NAME_LEN))) |
3652 | 643 | fprintf (stddebug, "\t\t\t\t\t%*.2f %-*.*s (%s)\n", | 638 | fprintf (stddebug, "\t\t\t\t\t%*.2f %-*.*s (%s)\n", |
3656 | 644 | NAME_LEN, (double) the_time / 3600.0, | 639 | NAME_LEN, (double) the_time / 3600.0, |
3657 | 645 | NAME_LEN, NAME_LEN, name, debug_label); | 640 | NAME_LEN, NAME_LEN, name, debug_label); |
3658 | 646 | 641 | ||
3659 | 647 | he = hashtab_find (user_totals, name, NAME_LEN); | 642 | he = hashtab_find (user_totals, name, NAME_LEN); |
3660 | 648 | if (he == NULL) | 643 | if (he == NULL) |
3661 | 649 | { | 644 | { |
3662 | @@ -663,13 +658,13 @@ | |||
3663 | 663 | } | 658 | } |
3664 | 664 | 659 | ||
3665 | 665 | 660 | ||
3666 | 666 | |||
3667 | 667 | 661 | ||
3668 | 662 | |||
3669 | 668 | /* return the time of midnight that will happen after our time */ | 663 | /* return the time of midnight that will happen after our time */ |
3672 | 669 | time_t | 664 | |
3673 | 670 | midnight_after_me (time_t now_time) | 665 | time_t midnight_after_me(time_t now_time) |
3674 | 671 | { | 666 | { |
3675 | 672 | struct tm *tm_ptr, temp_tm; | 667 | struct tm *tm_ptr, temp_tm; |
3677 | 673 | 668 | ||
3678 | 674 | tm_ptr = localtime (&now_time); | 669 | tm_ptr = localtime (&now_time); |
3679 | 675 | memcpy ((void *)&temp_tm, (void *)tm_ptr, sizeof (struct tm)); | 670 | memcpy ((void *)&temp_tm, (void *)tm_ptr, sizeof (struct tm)); |
3680 | 676 | temp_tm.tm_sec = 0; | 671 | temp_tm.tm_sec = 0; |
3681 | @@ -678,7 +673,6 @@ | |||
3682 | 678 | temp_tm.tm_mday++; /* next day */ | 673 | temp_tm.tm_mday++; /* next day */ |
3683 | 679 | temp_tm.tm_isdst = -1; /* mktime should figure out whether | 674 | temp_tm.tm_isdst = -1; /* mktime should figure out whether |
3684 | 680 | DST is enabled */ | 675 | DST is enabled */ |
3686 | 681 | 676 | ||
3687 | 682 | return mktime (&temp_tm); | 677 | return mktime (&temp_tm); |
3688 | 683 | } | 678 | } |
3689 | 684 | |||
3690 | 685 | 679 | ||
3691 | === modified file 'accounting.info' | |||
3692 | --- accounting.info 2006-03-18 18:38:00 +0000 | |||
3693 | +++ accounting.info 2010-01-20 17:40:26 +0000 | |||
3694 | @@ -1,8 +1,8 @@ | |||
3696 | 1 | Dies ist accounting.info, hergestellt von Makeinfo Version 4.8 aus | 1 | This is accounting.info, produced by makeinfo version 4.13 from |
3697 | 2 | accounting.texi. | 2 | accounting.texi. |
3698 | 3 | 3 | ||
3701 | 4 | GNU Accounting Utilities Copyright (C) 1993, 1996, 1997, 1998, 2005 | 4 | GNU Accounting Utilities Copyright (C) 1993, 1996, 1997, 1998, 2005, |
3702 | 5 | Free Software Foundation, Inc. | 5 | 2008, 2009 Free Software Foundation, Inc. |
3703 | 6 | 6 | ||
3704 | 7 | Permission is granted to make and distribute verbatim copies of this | 7 | Permission is granted to make and distribute verbatim copies of this |
3705 | 8 | manual provided the copyright notice and this permission notice are | 8 | manual provided the copyright notice and this permission notice are |
3706 | @@ -26,8 +26,8 @@ | |||
3707 | 26 | information about any of the applications, see the chapter with the | 26 | information about any of the applications, see the chapter with the |
3708 | 27 | program's name. | 27 | program's name. |
3709 | 28 | 28 | ||
3712 | 29 | This is Edition 6.4-pre1 of the documentation, updated 7 January | 29 | This is Edition 6.5.1 of the documentation, updated 23 August 2009 |
3713 | 30 | 2006 for version 6.4-pre1 of the GNU Accounting Utilities. | 30 | for version 6.5.1 of the GNU Accounting Utilities. |
3714 | 31 | 31 | ||
3715 | 32 | * Menu: | 32 | * Menu: |
3716 | 33 | 33 | ||
3717 | @@ -1037,13 +1037,13 @@ | |||
3718 | 1037 | 1037 | ||
3719 | 1038 | 1038 | ||
3720 | 1039 | Tag Table: | 1039 | Tag Table: |
3722 | 1040 | Node: Top848 | 1040 | Node: Top854 |
3723 | 1041 | Node: Preface1764 | 1041 | Node: Preface1764 |
3724 | 1042 | Node: ac10432 | 1042 | Node: ac10432 |
3725 | 1043 | Node: accton18745 | 1043 | Node: accton18745 |
3726 | 1044 | Node: last19250 | 1044 | Node: last19250 |
3727 | 1045 | Node: lastcomm23726 | 1045 | Node: lastcomm23726 |
3728 | 1046 | Node: sa26898 | 1046 | Node: sa26898 |
3730 | 1047 | Node: dump-acct33192 | 1047 | Node: dump-acct33275 |
3731 | 1048 | 1048 | ||
3732 | 1049 | End Tag Table | 1049 | End Tag Table |
3733 | 1050 | 1050 | ||
3734 | === modified file 'accounting.texi' | |||
3735 | --- accounting.texi 2006-03-18 18:38:00 +0000 | |||
3736 | +++ accounting.texi 2010-01-20 17:40:26 +0000 | |||
3737 | @@ -6,7 +6,8 @@ | |||
3738 | 6 | 6 | ||
3739 | 7 | @ifinfo | 7 | @ifinfo |
3740 | 8 | GNU Accounting Utilities | 8 | GNU Accounting Utilities |
3742 | 9 | Copyright (C) 1993, 1996, 1997, 1998, 2005 Free Software Foundation, Inc. | 9 | Copyright (C) 1993, 1996, 1997, 1998, 2005, 2008, 2009 |
3743 | 10 | Free Software Foundation, Inc. | ||
3744 | 10 | 11 | ||
3745 | 11 | Permission is granted to make and distribute verbatim copies of | 12 | Permission is granted to make and distribute verbatim copies of |
3746 | 12 | this manual provided the copyright notice and this permission notice | 13 | this manual provided the copyright notice and this permission notice |
3747 | 13 | 14 | ||
3748 | === modified file 'accton.8' | |||
3749 | --- accton.8 2002-03-06 21:54:12 +0000 | |||
3750 | +++ accton.8 2010-01-20 17:40:26 +0000 | |||
3751 | @@ -1,4 +1,4 @@ | |||
3753 | 1 | .TH ACCTON 8 "1995 October 31" | 1 | .TH ACCTON 8 "2008 November 24" |
3754 | 2 | .SH NAME | 2 | .SH NAME |
3755 | 3 | accton \- turns process accounting on or off | 3 | accton \- turns process accounting on or off |
3756 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
3757 | @@ -6,6 +6,10 @@ | |||
3758 | 6 | .na | 6 | .na |
3759 | 7 | .TP | 7 | .TP |
3760 | 8 | .B accton | 8 | .B accton |
3761 | 9 | .RI [\| OPTION \|] | ||
3762 | 10 | .RB on \||\| off \||\| filename | ||
3763 | 11 | .TP | ||
3764 | 12 | .B accton | ||
3765 | 9 | [ | 13 | [ |
3766 | 10 | .B \-V | 14 | .B \-V |
3767 | 11 | | | 15 | | |
3768 | @@ -16,9 +20,6 @@ | |||
3769 | 16 | | | 20 | | |
3770 | 17 | .B \-\-help | 21 | .B \-\-help |
3771 | 18 | ] | 22 | ] |
3772 | 19 | [ | ||
3773 | 20 | .I filename | ||
3774 | 21 | ] | ||
3775 | 22 | .SH DESCRIPTION | 23 | .SH DESCRIPTION |
3776 | 23 | .LP | 24 | .LP |
3777 | 24 | .B accton | 25 | .B accton |
3778 | 25 | 26 | ||
3779 | === modified file 'accton.c' | |||
3780 | --- accton.c 2006-03-18 18:38:00 +0000 | |||
3781 | +++ accton.c 2010-01-20 17:40:26 +0000 | |||
3782 | @@ -1,11 +1,12 @@ | |||
3784 | 1 | /* Copyright (C) 1993, 1996, 1997, 2003 Free Software Foundation, Inc. | 1 | /* |
3785 | 2 | Copyright (C) 1993, 1996, 1997, 2003, 2008, 2009 Free Software Foundation, Inc. | ||
3786 | 2 | 3 | ||
3787 | 3 | This file contains the code for GNU accton. | 4 | This file contains the code for GNU accton. |
3788 | 4 | 5 | ||
3789 | 5 | The GNU Accounting Utilities are free software; you can redistribute | 6 | The GNU Accounting Utilities are free software; you can redistribute |
3790 | 6 | them and/or modify them under the terms of the GNU General Public | 7 | them and/or modify them under the terms of the GNU General Public |
3791 | 7 | License as published by the Free Software Foundation; either version | 8 | License as published by the Free Software Foundation; either version |
3793 | 8 | 2, or (at your option) any later version. | 9 | 3, or (at your option) any later version. |
3794 | 9 | 10 | ||
3795 | 10 | The GNU Accounting Utilities are distributed in the hope that they will | 11 | The GNU Accounting Utilities are distributed in the hope that they will |
3796 | 11 | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | 12 | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
3797 | @@ -15,14 +16,19 @@ | |||
3798 | 15 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
3799 | 16 | along with the GNU Accounting Utilities; see the file COPYING. If | 17 | along with the GNU Accounting Utilities; see the file COPYING. If |
3800 | 17 | not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, | 18 | not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, |
3802 | 18 | MA 02139, USA. */ | 19 | MA 02139, USA. |
3803 | 20 | */ | ||
3804 | 19 | 21 | ||
3805 | 20 | #include "config.h" | 22 | #include "config.h" |
3806 | 21 | 23 | ||
3807 | 22 | #include <stdio.h> | 24 | #include <stdio.h> |
3808 | 23 | #include <stdlib.h> | 25 | #include <stdlib.h> |
3809 | 24 | #include <sys/types.h> | 26 | #include <sys/types.h> |
3810 | 27 | #ifdef HAVE_ERRNO_H | ||
3811 | 25 | #include <errno.h> | 28 | #include <errno.h> |
3812 | 29 | #else | ||
3813 | 30 | extern int errno; | ||
3814 | 31 | #endif | ||
3815 | 26 | #include <string.h> | 32 | #include <string.h> |
3816 | 27 | 33 | ||
3817 | 28 | #ifdef HAVE_UNISTD_H | 34 | #ifdef HAVE_UNISTD_H |
3818 | @@ -31,15 +37,17 @@ | |||
3819 | 31 | 37 | ||
3820 | 32 | #include "common.h" | 38 | #include "common.h" |
3821 | 33 | #include "files.h" | 39 | #include "files.h" |
3822 | 40 | #ifdef HAVE_GETOPT_LONG_ONLY | ||
3823 | 41 | #include <getopt.h> | ||
3824 | 42 | #else | ||
3825 | 34 | #include "getopt.h" | 43 | #include "getopt.h" |
3826 | 44 | #endif | ||
3827 | 35 | #include "version.h" | 45 | #include "version.h" |
3828 | 36 | 46 | ||
3829 | 37 | |||
3830 | 38 | /* globals */ | 47 | /* globals */ |
3831 | 39 | 48 | ||
3832 | 40 | char *program_name; /* name of this executable */ | 49 | char *program_name; /* name of this executable */ |
3833 | 41 | 50 | ||
3834 | 42 | |||
3835 | 43 | /* protos */ | 51 | /* protos */ |
3836 | 44 | 52 | ||
3837 | 45 | void print_option_error PARAMS((void)); | 53 | void print_option_error PARAMS((void)); |
3838 | @@ -47,75 +55,69 @@ | |||
3839 | 47 | void print_usage PARAMS((void)); | 55 | void print_usage PARAMS((void)); |
3840 | 48 | void print_help PARAMS((void)); | 56 | void print_help PARAMS((void)); |
3841 | 49 | 57 | ||
3842 | 50 | |||
3843 | 51 | /* code */ | 58 | /* code */ |
3844 | 52 | 59 | ||
3845 | 53 | /* | 60 | /* |
3846 | 54 | * to print when there are errors related to options | 61 | * to print when there are errors related to options |
3847 | 55 | */ | 62 | */ |
3850 | 56 | void | 63 | |
3851 | 57 | print_option_error (void) | 64 | void print_option_error(void) |
3852 | 58 | { | 65 | { |
3854 | 59 | printf ("Try '%s --help' for more information.\n", program_name); | 66 | (void)printf ("Try '%s --help' for more information.\n", program_name); |
3855 | 60 | } | 67 | } |
3856 | 61 | 68 | ||
3857 | 62 | |||
3858 | 63 | /* | 69 | /* |
3859 | 64 | * to print version | 70 | * to print version |
3860 | 65 | */ | 71 | */ |
3863 | 66 | void | 72 | |
3864 | 67 | print_version (void) | 73 | void print_version(void) |
3865 | 68 | { | 74 | { |
3868 | 69 | printf ("%s: GNU Accounting Utilities (release %s)\n", | 75 | (void)printf("%s: GNU Accounting Utilities (release %s)\n",program_name, VERSION_STRING); |
3867 | 70 | program_name, VERSION_STRING); | ||
3869 | 71 | } | 76 | } |
3870 | 72 | 77 | ||
3871 | 73 | |||
3872 | 74 | /* | 78 | /* |
3873 | 75 | * to print usage (kind of very brief help) | 79 | * to print usage (kind of very brief help) |
3874 | 76 | */ | 80 | */ |
3877 | 77 | void | 81 | |
3878 | 78 | print_usage (void) | 82 | void print_usage(void) |
3879 | 79 | { | 83 | { |
3881 | 80 | printf ("Usage: %s [OPTION] on|off|ACCOUNTING_FILE\n", program_name); | 84 | (void)printf ("Usage: %s [OPTION] on|off|ACCOUNTING_FILE\n", program_name); |
3882 | 81 | } | 85 | } |
3883 | 82 | 86 | ||
3884 | 83 | |||
3885 | 84 | /* | 87 | /* |
3886 | 85 | * to print help | 88 | * to print help |
3887 | 86 | */ | 89 | */ |
3890 | 87 | void | 90 | |
3891 | 88 | print_help (void) | 91 | void print_help(void) |
3892 | 89 | { | 92 | { |
3893 | 90 | print_usage (); | 93 | print_usage (); |
3894 | 91 | 94 | ||
3895 | 92 | printf ("\n\ | 95 | printf ("\n\ |
3909 | 93 | Turns process accounting on or off, or changes the file where this\n\ | 96 | Turns process accounting on or off, or changes the file where this\n\ |
3910 | 94 | info is saved.\n\n\ | 97 | info is saved.\n\n\ |
3911 | 95 | OPTIONS:\n\ | 98 | OPTIONS:\n\ |
3912 | 96 | -h, --help Show help and exit\n\ | 99 | -h, --help Show help and exit\n\ |
3913 | 97 | -V, --version Show version and exit\n\n\ | 100 | -V, --version Show version and exit\n\n\ |
3914 | 98 | ARGUMENTS:\n\ | 101 | ARGUMENTS:\n\ |
3915 | 99 | on Activate process accounting and use default file\n\ | 102 | on Activate process accounting and use default file\n\ |
3916 | 100 | off Deactivate process accounting\n\ | 103 | off Deactivate process accounting\n\ |
3917 | 101 | ACCOUNTING_FILE Activate (if not active) and save information in\n\ | 104 | ACCOUNTING_FILE Activate (if not active) and save information in\n\ |
3918 | 102 | this file\n\n\ | 105 | this file\n\n\ |
3919 | 103 | The system's default process accounting file is '%s'.\n\n\ | 106 | The system's default process accounting file is '%s'.\n\n\ |
3920 | 104 | Report bugs to <bug-acct@gnu.org>\n", | 107 | Report bugs to <bug-acct@gnu.org>\n", |
3921 | 105 | ACCT_FILE_LOC); | 108 | ACCT_FILE_LOC); |
3922 | 106 | } | 109 | } |
3923 | 107 | 110 | ||
3924 | 108 | 111 | ||
3925 | 109 | /* | 112 | /* |
3926 | 110 | * does all the real work | 113 | * does all the real work |
3927 | 111 | */ | 114 | */ |
3930 | 112 | int | 115 | |
3931 | 113 | main (int argc, char *argv[]) | 116 | int main(int argc, char *argv[]) |
3932 | 114 | { | 117 | { |
3933 | 115 | int c, status_acct, number_args; | 118 | int c, status_acct, number_args; |
3934 | 116 | char *acct_file = NULL; | 119 | char *acct_file = NULL; |
3935 | 117 | 120 | ||
3936 | 118 | |||
3937 | 119 | program_name = argv[0]; | 121 | program_name = argv[0]; |
3938 | 120 | 122 | ||
3939 | 121 | 123 | ||
3940 | @@ -123,37 +125,35 @@ | |||
3941 | 123 | while (1) | 125 | while (1) |
3942 | 124 | { | 126 | { |
3943 | 125 | int option_index = 0; | 127 | int option_index = 0; |
3945 | 126 | 128 | ||
3946 | 127 | static struct option long_options[] = | 129 | static struct option long_options[] = |
3952 | 128 | { | 130 | { |
3953 | 129 | { "version", no_argument, NULL, 1 }, | 131 | { "version", no_argument, NULL, 1 |
3954 | 130 | { "help", no_argument, NULL, 2 }, | 132 | }, |
3955 | 131 | { 0, 0, 0, 0 } | 133 | { "help", no_argument, NULL, 2 }, |
3956 | 132 | }; | 134 | { 0, 0, 0, 0 } |
3957 | 135 | }; | ||
3958 | 133 | 136 | ||
3959 | 134 | c = getopt_long (argc, argv, "hV", long_options, &option_index); | 137 | c = getopt_long (argc, argv, "hV", long_options, &option_index); |
3961 | 135 | 138 | ||
3962 | 136 | if (c == EOF) | 139 | if (c == EOF) |
3964 | 137 | break; | 140 | break; |
3965 | 138 | 141 | ||
3966 | 139 | switch (c) | 142 | switch (c) |
3984 | 140 | { | 143 | { |
3985 | 141 | case 'V': | 144 | case 'V': |
3986 | 142 | case 1: | 145 | case 1: |
3987 | 143 | print_version (); | 146 | print_version (); |
3988 | 144 | exit (EXIT_SUCCESS); | 147 | exit (EXIT_SUCCESS); |
3989 | 145 | break; | 148 | case 'h': |
3990 | 146 | case 'h': | 149 | case 2: |
3991 | 147 | case 2: | 150 | print_help (); |
3992 | 148 | print_help (); | 151 | exit (EXIT_SUCCESS); |
3993 | 149 | exit (EXIT_SUCCESS); | 152 | default: |
3994 | 150 | break; | 153 | print_usage (); |
3995 | 151 | default: | 154 | print_option_error (); |
3996 | 152 | print_usage (); | 155 | exit (EXIT_FAILURE); |
3997 | 153 | print_option_error (); | 156 | } |
3981 | 154 | exit (EXIT_FAILURE); | ||
3982 | 155 | break; | ||
3983 | 156 | } | ||
3998 | 157 | } | 157 | } |
3999 | 158 | 158 | ||
4000 | 159 | 159 | ||
4001 | @@ -186,8 +186,8 @@ | |||
4002 | 186 | { | 186 | { |
4003 | 187 | status_acct = acct (ACCT_FILE_LOC); | 187 | status_acct = acct (ACCT_FILE_LOC); |
4004 | 188 | printf ("Turning on process accounting, file set to the default '%s'.\n", | 188 | printf ("Turning on process accounting, file set to the default '%s'.\n", |
4007 | 189 | ACCT_FILE_LOC); | 189 | ACCT_FILE_LOC); |
4008 | 190 | } | 190 | } |
4009 | 191 | /* ..else if was "off", pass NULL to deactivate.. */ | 191 | /* ..else if was "off", pass NULL to deactivate.. */ |
4010 | 192 | else if (0 == strcasecmp (acct_file, "off")) | 192 | else if (0 == strcasecmp (acct_file, "off")) |
4011 | 193 | { | 193 | { |
4012 | @@ -205,16 +205,11 @@ | |||
4013 | 205 | /* did the system call return an error? */ | 205 | /* did the system call return an error? */ |
4014 | 206 | if (-1 == status_acct) | 206 | if (-1 == status_acct) |
4015 | 207 | { | 207 | { |
4020 | 208 | int err; | 208 | int err = errno; |
4017 | 209 | extern int errno; | ||
4018 | 210 | |||
4019 | 211 | err = errno; | ||
4021 | 212 | perror ("accton"); | 209 | perror ("accton"); |
4022 | 213 | exit (err); | 210 | exit (err); |
4023 | 214 | } | 211 | } |
4024 | 215 | } | 212 | } |
4025 | 216 | |||
4026 | 217 | |||
4027 | 218 | return EXIT_SUCCESS; | 213 | return EXIT_SUCCESS; |
4028 | 219 | } | 214 | } |
4029 | 220 | 215 | ||
4030 | 221 | 216 | ||
4031 | === modified file 'aclocal.m4' | |||
4032 | --- aclocal.m4 2006-03-18 18:38:00 +0000 | |||
4033 | +++ aclocal.m4 2010-01-20 17:40:26 +0000 | |||
4034 | @@ -1,7 +1,7 @@ | |||
4036 | 1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | 1 | # generated automatically by aclocal 1.10.2 -*- Autoconf -*- |
4037 | 2 | 2 | ||
4038 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4040 | 4 | # 2005 Free Software Foundation, Inc. | 4 | # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
4041 | 5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
4042 | 6 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
4043 | 7 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |
4044 | @@ -11,7 +11,465 @@ | |||
4045 | 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
4046 | 12 | # PARTICULAR PURPOSE. | 12 | # PARTICULAR PURPOSE. |
4047 | 13 | 13 | ||
4049 | 14 | # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
4050 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | ||
4051 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, | ||
4052 | 17 | [m4_warning([this file was generated for autoconf 2.63. | ||
4053 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. | ||
4054 | 19 | If you have problems, you may need to regenerate the build system entirely. | ||
4055 | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | ||
4056 | 21 | |||
4057 | 22 | # po.m4 serial 15 (gettext-0.17) | ||
4058 | 23 | dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. | ||
4059 | 24 | dnl This file is free software; the Free Software Foundation | ||
4060 | 25 | dnl gives unlimited permission to copy and/or distribute it, | ||
4061 | 26 | dnl with or without modifications, as long as this notice is preserved. | ||
4062 | 27 | dnl | ||
4063 | 28 | dnl This file can can be used in projects which are not available under | ||
4064 | 29 | dnl the GNU General Public License or the GNU Library General Public | ||
4065 | 30 | dnl License but which still want to provide support for the GNU gettext | ||
4066 | 31 | dnl functionality. | ||
4067 | 32 | dnl Please note that the actual code of the GNU gettext library is covered | ||
4068 | 33 | dnl by the GNU Library General Public License, and the rest of the GNU | ||
4069 | 34 | dnl gettext package package is covered by the GNU General Public License. | ||
4070 | 35 | dnl They are *not* in the public domain. | ||
4071 | 36 | |||
4072 | 37 | dnl Authors: | ||
4073 | 38 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | ||
4074 | 39 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | ||
4075 | 40 | |||
4076 | 41 | AC_PREREQ(2.50) | ||
4077 | 42 | |||
4078 | 43 | dnl Checks for all prerequisites of the po subdirectory. | ||
4079 | 44 | AC_DEFUN([AM_PO_SUBDIRS], | ||
4080 | 45 | [ | ||
4081 | 46 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||
4082 | 47 | AC_REQUIRE([AC_PROG_INSTALL])dnl | ||
4083 | 48 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | ||
4084 | 49 | AC_REQUIRE([AM_NLS])dnl | ||
4085 | 50 | |||
4086 | 51 | dnl Release version of the gettext macros. This is used to ensure that | ||
4087 | 52 | dnl the gettext macros and po/Makefile.in.in are in sync. | ||
4088 | 53 | AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) | ||
4089 | 54 | |||
4090 | 55 | dnl Perform the following tests also if --disable-nls has been given, | ||
4091 | 56 | dnl because they are needed for "make dist" to work. | ||
4092 | 57 | |||
4093 | 58 | dnl Search for GNU msgfmt in the PATH. | ||
4094 | 59 | dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. | ||
4095 | 60 | dnl The second test excludes FreeBSD msgfmt. | ||
4096 | 61 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
4097 | 62 | [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | ||
4098 | 63 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], | ||
4099 | 64 | :) | ||
4100 | 65 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
4101 | 66 | |||
4102 | 67 | dnl Test whether it is GNU msgfmt >= 0.15. | ||
4103 | 68 | changequote(,)dnl | ||
4104 | 69 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
4105 | 70 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | ||
4106 | 71 | *) MSGFMT_015=$MSGFMT ;; | ||
4107 | 72 | esac | ||
4108 | 73 | changequote([,])dnl | ||
4109 | 74 | AC_SUBST([MSGFMT_015]) | ||
4110 | 75 | changequote(,)dnl | ||
4111 | 76 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
4112 | 77 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | ||
4113 | 78 | *) GMSGFMT_015=$GMSGFMT ;; | ||
4114 | 79 | esac | ||
4115 | 80 | changequote([,])dnl | ||
4116 | 81 | AC_SUBST([GMSGFMT_015]) | ||
4117 | 82 | |||
4118 | 83 | dnl Search for GNU xgettext 0.12 or newer in the PATH. | ||
4119 | 84 | dnl The first test excludes Solaris xgettext and early GNU xgettext versions. | ||
4120 | 85 | dnl The second test excludes FreeBSD xgettext. | ||
4121 | 86 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
4122 | 87 | [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | ||
4123 | 88 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], | ||
4124 | 89 | :) | ||
4125 | 90 | dnl Remove leftover from FreeBSD xgettext call. | ||
4126 | 91 | rm -f messages.po | ||
4127 | 92 | |||
4128 | 93 | dnl Test whether it is GNU xgettext >= 0.15. | ||
4129 | 94 | changequote(,)dnl | ||
4130 | 95 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
4131 | 96 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | ||
4132 | 97 | *) XGETTEXT_015=$XGETTEXT ;; | ||
4133 | 98 | esac | ||
4134 | 99 | changequote([,])dnl | ||
4135 | 100 | AC_SUBST([XGETTEXT_015]) | ||
4136 | 101 | |||
4137 | 102 | dnl Search for GNU msgmerge 0.11 or newer in the PATH. | ||
4138 | 103 | AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, | ||
4139 | 104 | [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) | ||
4140 | 105 | |||
4141 | 106 | dnl Installation directories. | ||
4142 | 107 | dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we | ||
4143 | 108 | dnl have to define it here, so that it can be used in po/Makefile. | ||
4144 | 109 | test -n "$localedir" || localedir='${datadir}/locale' | ||
4145 | 110 | AC_SUBST([localedir]) | ||
4146 | 111 | |||
4147 | 112 | dnl Support for AM_XGETTEXT_OPTION. | ||
4148 | 113 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | ||
4149 | 114 | AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) | ||
4150 | 115 | |||
4151 | 116 | AC_CONFIG_COMMANDS([po-directories], [[ | ||
4152 | 117 | for ac_file in $CONFIG_FILES; do | ||
4153 | 118 | # Support "outfile[:infile[:infile...]]" | ||
4154 | 119 | case "$ac_file" in | ||
4155 | 120 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
4156 | 121 | esac | ||
4157 | 122 | # PO directories have a Makefile.in generated from Makefile.in.in. | ||
4158 | 123 | case "$ac_file" in */Makefile.in) | ||
4159 | 124 | # Adjust a relative srcdir. | ||
4160 | 125 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
4161 | 126 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
4162 | 127 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
4163 | 128 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
4164 | 129 | # In autoconf-2.50 it is called $srcdir. | ||
4165 | 130 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
4166 | 131 | case "$ac_given_srcdir" in | ||
4167 | 132 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
4168 | 133 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
4169 | 134 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
4170 | 135 | esac | ||
4171 | 136 | # Treat a directory as a PO directory if and only if it has a | ||
4172 | 137 | # POTFILES.in file. This allows packages to have multiple PO | ||
4173 | 138 | # directories under different names or in different locations. | ||
4174 | 139 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
4175 | 140 | rm -f "$ac_dir/POTFILES" | ||
4176 | 141 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
4177 | 142 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
4178 | 143 | POMAKEFILEDEPS="POTFILES.in" | ||
4179 | 144 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | ||
4180 | 145 | # on $ac_dir but don't depend on user-specified configuration | ||
4181 | 146 | # parameters. | ||
4182 | 147 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | ||
4183 | 148 | # The LINGUAS file contains the set of available languages. | ||
4184 | 149 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | ||
4185 | 150 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | ||
4186 | 151 | fi | ||
4187 | 152 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | ||
4188 | 153 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
4189 | 154 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | ||
4190 | 155 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | ||
4191 | 156 | else | ||
4192 | 157 | # The set of available languages was given in configure.in. | ||
4193 | 158 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
4194 | 159 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | ||
4195 | 160 | fi | ||
4196 | 161 | # Compute POFILES | ||
4197 | 162 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | ||
4198 | 163 | # Compute UPDATEPOFILES | ||
4199 | 164 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | ||
4200 | 165 | # Compute DUMMYPOFILES | ||
4201 | 166 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | ||
4202 | 167 | # Compute GMOFILES | ||
4203 | 168 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | ||
4204 | 169 | case "$ac_given_srcdir" in | ||
4205 | 170 | .) srcdirpre= ;; | ||
4206 | 171 | *) srcdirpre='$(srcdir)/' ;; | ||
4207 | 172 | esac | ||
4208 | 173 | POFILES= | ||
4209 | 174 | UPDATEPOFILES= | ||
4210 | 175 | DUMMYPOFILES= | ||
4211 | 176 | GMOFILES= | ||
4212 | 177 | for lang in $ALL_LINGUAS; do | ||
4213 | 178 | POFILES="$POFILES $srcdirpre$lang.po" | ||
4214 | 179 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | ||
4215 | 180 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | ||
4216 | 181 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | ||
4217 | 182 | done | ||
4218 | 183 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | ||
4219 | 184 | # environment variable. | ||
4220 | 185 | INST_LINGUAS= | ||
4221 | 186 | if test -n "$ALL_LINGUAS"; then | ||
4222 | 187 | for presentlang in $ALL_LINGUAS; do | ||
4223 | 188 | useit=no | ||
4224 | 189 | if test "%UNSET%" != "$LINGUAS"; then | ||
4225 | 190 | desiredlanguages="$LINGUAS" | ||
4226 | 191 | else | ||
4227 | 192 | desiredlanguages="$ALL_LINGUAS" | ||
4228 | 193 | fi | ||
4229 | 194 | for desiredlang in $desiredlanguages; do | ||
4230 | 195 | # Use the presentlang catalog if desiredlang is | ||
4231 | 196 | # a. equal to presentlang, or | ||
4232 | 197 | # b. a variant of presentlang (because in this case, | ||
4233 | 198 | # presentlang can be used as a fallback for messages | ||
4234 | 199 | # which are not translated in the desiredlang catalog). | ||
4235 | 200 | case "$desiredlang" in | ||
4236 | 201 | "$presentlang"*) useit=yes;; | ||
4237 | 202 | esac | ||
4238 | 203 | done | ||
4239 | 204 | if test $useit = yes; then | ||
4240 | 205 | INST_LINGUAS="$INST_LINGUAS $presentlang" | ||
4241 | 206 | fi | ||
4242 | 207 | done | ||
4243 | 208 | fi | ||
4244 | 209 | CATALOGS= | ||
4245 | 210 | if test -n "$INST_LINGUAS"; then | ||
4246 | 211 | for lang in $INST_LINGUAS; do | ||
4247 | 212 | CATALOGS="$CATALOGS $lang.gmo" | ||
4248 | 213 | done | ||
4249 | 214 | fi | ||
4250 | 215 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | ||
4251 | 216 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | ||
4252 | 217 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | ||
4253 | 218 | if test -f "$f"; then | ||
4254 | 219 | case "$f" in | ||
4255 | 220 | *.orig | *.bak | *~) ;; | ||
4256 | 221 | *) cat "$f" >> "$ac_dir/Makefile" ;; | ||
4257 | 222 | esac | ||
4258 | 223 | fi | ||
4259 | 224 | done | ||
4260 | 225 | fi | ||
4261 | 226 | ;; | ||
4262 | 227 | esac | ||
4263 | 228 | done]], | ||
4264 | 229 | [# Capture the value of obsolete ALL_LINGUAS because we need it to compute | ||
4265 | 230 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | ||
4266 | 231 | # from automake < 1.5. | ||
4267 | 232 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | ||
4268 | 233 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | ||
4269 | 234 | LINGUAS="${LINGUAS-%UNSET%}" | ||
4270 | 235 | ]) | ||
4271 | 236 | ]) | ||
4272 | 237 | |||
4273 | 238 | dnl Postprocesses a Makefile in a directory containing PO files. | ||
4274 | 239 | AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], | ||
4275 | 240 | [ | ||
4276 | 241 | # When this code is run, in config.status, two variables have already been | ||
4277 | 242 | # set: | ||
4278 | 243 | # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, | ||
4279 | 244 | # - LINGUAS is the value of the environment variable LINGUAS at configure | ||
4280 | 245 | # time. | ||
4281 | 246 | |||
4282 | 247 | changequote(,)dnl | ||
4283 | 248 | # Adjust a relative srcdir. | ||
4284 | 249 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
4285 | 250 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
4286 | 251 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
4287 | 252 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
4288 | 253 | # In autoconf-2.50 it is called $srcdir. | ||
4289 | 254 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
4290 | 255 | case "$ac_given_srcdir" in | ||
4291 | 256 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
4292 | 257 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
4293 | 258 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
4294 | 259 | esac | ||
4295 | 260 | |||
4296 | 261 | # Find a way to echo strings without interpreting backslash. | ||
4297 | 262 | if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then | ||
4298 | 263 | gt_echo='echo' | ||
4299 | 264 | else | ||
4300 | 265 | if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then | ||
4301 | 266 | gt_echo='printf %s\n' | ||
4302 | 267 | else | ||
4303 | 268 | echo_func () { | ||
4304 | 269 | cat <<EOT | ||
4305 | 270 | $* | ||
4306 | 271 | EOT | ||
4307 | 272 | } | ||
4308 | 273 | gt_echo='echo_func' | ||
4309 | 274 | fi | ||
4310 | 275 | fi | ||
4311 | 276 | |||
4312 | 277 | # A sed script that extracts the value of VARIABLE from a Makefile. | ||
4313 | 278 | sed_x_variable=' | ||
4314 | 279 | # Test if the hold space is empty. | ||
4315 | 280 | x | ||
4316 | 281 | s/P/P/ | ||
4317 | 282 | x | ||
4318 | 283 | ta | ||
4319 | 284 | # Yes it was empty. Look if we have the expected variable definition. | ||
4320 | 285 | /^[ ]*VARIABLE[ ]*=/{ | ||
4321 | 286 | # Seen the first line of the variable definition. | ||
4322 | 287 | s/^[ ]*VARIABLE[ ]*=// | ||
4323 | 288 | ba | ||
4324 | 289 | } | ||
4325 | 290 | bd | ||
4326 | 291 | :a | ||
4327 | 292 | # Here we are processing a line from the variable definition. | ||
4328 | 293 | # Remove comment, more precisely replace it with a space. | ||
4329 | 294 | s/#.*$/ / | ||
4330 | 295 | # See if the line ends in a backslash. | ||
4331 | 296 | tb | ||
4332 | 297 | :b | ||
4333 | 298 | s/\\$// | ||
4334 | 299 | # Print the line, without the trailing backslash. | ||
4335 | 300 | p | ||
4336 | 301 | tc | ||
4337 | 302 | # There was no trailing backslash. The end of the variable definition is | ||
4338 | 303 | # reached. Clear the hold space. | ||
4339 | 304 | s/^.*$// | ||
4340 | 305 | x | ||
4341 | 306 | bd | ||
4342 | 307 | :c | ||
4343 | 308 | # A trailing backslash means that the variable definition continues in the | ||
4344 | 309 | # next line. Put a nonempty string into the hold space to indicate this. | ||
4345 | 310 | s/^.*$/P/ | ||
4346 | 311 | x | ||
4347 | 312 | :d | ||
4348 | 313 | ' | ||
4349 | 314 | changequote([,])dnl | ||
4350 | 315 | |||
4351 | 316 | # Set POTFILES to the value of the Makefile variable POTFILES. | ||
4352 | 317 | sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` | ||
4353 | 318 | POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` | ||
4354 | 319 | # Compute POTFILES_DEPS as | ||
4355 | 320 | # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) | ||
4356 | 321 | POTFILES_DEPS= | ||
4357 | 322 | for file in $POTFILES; do | ||
4358 | 323 | POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" | ||
4359 | 324 | done | ||
4360 | 325 | POMAKEFILEDEPS="" | ||
4361 | 326 | |||
4362 | 327 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | ||
4363 | 328 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | ||
4364 | 329 | fi | ||
4365 | 330 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | ||
4366 | 331 | # The LINGUAS file contains the set of available languages. | ||
4367 | 332 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | ||
4368 | 333 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | ||
4369 | 334 | else | ||
4370 | 335 | # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. | ||
4371 | 336 | sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` | ||
4372 | 337 | ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` | ||
4373 | 338 | fi | ||
4374 | 339 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
4375 | 340 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | ||
4376 | 341 | # Compute POFILES | ||
4377 | 342 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | ||
4378 | 343 | # Compute UPDATEPOFILES | ||
4379 | 344 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | ||
4380 | 345 | # Compute DUMMYPOFILES | ||
4381 | 346 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | ||
4382 | 347 | # Compute GMOFILES | ||
4383 | 348 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | ||
4384 | 349 | # Compute PROPERTIESFILES | ||
4385 | 350 | # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) | ||
4386 | 351 | # Compute CLASSFILES | ||
4387 | 352 | # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) | ||
4388 | 353 | # Compute QMFILES | ||
4389 | 354 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) | ||
4390 | 355 | # Compute MSGFILES | ||
4391 | 356 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) | ||
4392 | 357 | # Compute RESOURCESDLLFILES | ||
4393 | 358 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) | ||
4394 | 359 | case "$ac_given_srcdir" in | ||
4395 | 360 | .) srcdirpre= ;; | ||
4396 | 361 | *) srcdirpre='$(srcdir)/' ;; | ||
4397 | 362 | esac | ||
4398 | 363 | POFILES= | ||
4399 | 364 | UPDATEPOFILES= | ||
4400 | 365 | DUMMYPOFILES= | ||
4401 | 366 | GMOFILES= | ||
4402 | 367 | PROPERTIESFILES= | ||
4403 | 368 | CLASSFILES= | ||
4404 | 369 | QMFILES= | ||
4405 | 370 | MSGFILES= | ||
4406 | 371 | RESOURCESDLLFILES= | ||
4407 | 372 | for lang in $ALL_LINGUAS; do | ||
4408 | 373 | POFILES="$POFILES $srcdirpre$lang.po" | ||
4409 | 374 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | ||
4410 | 375 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | ||
4411 | 376 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | ||
4412 | 377 | PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" | ||
4413 | 378 | CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" | ||
4414 | 379 | QMFILES="$QMFILES $srcdirpre$lang.qm" | ||
4415 | 380 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | ||
4416 | 381 | MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" | ||
4417 | 382 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
4418 | 383 | RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" | ||
4419 | 384 | done | ||
4420 | 385 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | ||
4421 | 386 | # environment variable. | ||
4422 | 387 | INST_LINGUAS= | ||
4423 | 388 | if test -n "$ALL_LINGUAS"; then | ||
4424 | 389 | for presentlang in $ALL_LINGUAS; do | ||
4425 | 390 | useit=no | ||
4426 | 391 | if test "%UNSET%" != "$LINGUAS"; then | ||
4427 | 392 | desiredlanguages="$LINGUAS" | ||
4428 | 393 | else | ||
4429 | 394 | desiredlanguages="$ALL_LINGUAS" | ||
4430 | 395 | fi | ||
4431 | 396 | for desiredlang in $desiredlanguages; do | ||
4432 | 397 | # Use the presentlang catalog if desiredlang is | ||
4433 | 398 | # a. equal to presentlang, or | ||
4434 | 399 | # b. a variant of presentlang (because in this case, | ||
4435 | 400 | # presentlang can be used as a fallback for messages | ||
4436 | 401 | # which are not translated in the desiredlang catalog). | ||
4437 | 402 | case "$desiredlang" in | ||
4438 | 403 | "$presentlang"*) useit=yes;; | ||
4439 | 404 | esac | ||
4440 | 405 | done | ||
4441 | 406 | if test $useit = yes; then | ||
4442 | 407 | INST_LINGUAS="$INST_LINGUAS $presentlang" | ||
4443 | 408 | fi | ||
4444 | 409 | done | ||
4445 | 410 | fi | ||
4446 | 411 | CATALOGS= | ||
4447 | 412 | JAVACATALOGS= | ||
4448 | 413 | QTCATALOGS= | ||
4449 | 414 | TCLCATALOGS= | ||
4450 | 415 | CSHARPCATALOGS= | ||
4451 | 416 | if test -n "$INST_LINGUAS"; then | ||
4452 | 417 | for lang in $INST_LINGUAS; do | ||
4453 | 418 | CATALOGS="$CATALOGS $lang.gmo" | ||
4454 | 419 | JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" | ||
4455 | 420 | QTCATALOGS="$QTCATALOGS $lang.qm" | ||
4456 | 421 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | ||
4457 | 422 | TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" | ||
4458 | 423 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
4459 | 424 | CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" | ||
4460 | 425 | done | ||
4461 | 426 | fi | ||
4462 | 427 | |||
4463 | 428 | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" | ||
4464 | 429 | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then | ||
4465 | 430 | # Add dependencies that cannot be formulated as a simple suffix rule. | ||
4466 | 431 | for lang in $ALL_LINGUAS; do | ||
4467 | 432 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | ||
4468 | 433 | cat >> "$ac_file.tmp" <<EOF | ||
4469 | 434 | $frobbedlang.msg: $lang.po | ||
4470 | 435 | @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | ||
4471 | 436 | \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4472 | 437 | EOF | ||
4473 | 438 | done | ||
4474 | 439 | fi | ||
4475 | 440 | if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then | ||
4476 | 441 | # Add dependencies that cannot be formulated as a simple suffix rule. | ||
4477 | 442 | for lang in $ALL_LINGUAS; do | ||
4478 | 443 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
4479 | 444 | cat >> "$ac_file.tmp" <<EOF | ||
4480 | 445 | $frobbedlang/\$(DOMAIN).resources.dll: $lang.po | ||
4481 | 446 | @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | ||
4482 | 447 | \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4483 | 448 | EOF | ||
4484 | 449 | done | ||
4485 | 450 | fi | ||
4486 | 451 | if test -n "$POMAKEFILEDEPS"; then | ||
4487 | 452 | cat >> "$ac_file.tmp" <<EOF | ||
4488 | 453 | Makefile: $POMAKEFILEDEPS | ||
4489 | 454 | EOF | ||
4490 | 455 | fi | ||
4491 | 456 | mv "$ac_file.tmp" "$ac_file" | ||
4492 | 457 | ]) | ||
4493 | 458 | |||
4494 | 459 | dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. | ||
4495 | 460 | AC_DEFUN([AM_XGETTEXT_OPTION_INIT], | ||
4496 | 461 | [ | ||
4497 | 462 | XGETTEXT_EXTRA_OPTIONS= | ||
4498 | 463 | ]) | ||
4499 | 464 | |||
4500 | 465 | dnl Registers an option to be passed to xgettext in the po subdirectory. | ||
4501 | 466 | AC_DEFUN([AM_XGETTEXT_OPTION], | ||
4502 | 467 | [ | ||
4503 | 468 | AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) | ||
4504 | 469 | XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" | ||
4505 | 470 | ]) | ||
4506 | 471 | |||
4507 | 472 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
4508 | 15 | # | 473 | # |
4509 | 16 | # This file is free software; the Free Software Foundation | 474 | # This file is free software; the Free Software Foundation |
4510 | 17 | # gives unlimited permission to copy and/or distribute it, | 475 | # gives unlimited permission to copy and/or distribute it, |
4511 | @@ -21,14 +479,31 @@ | |||
4512 | 21 | # ---------------------------- | 479 | # ---------------------------- |
4513 | 22 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | 480 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
4514 | 23 | # generated from the m4 files accompanying Automake X.Y. | 481 | # generated from the m4 files accompanying Automake X.Y. |
4516 | 24 | AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | 482 | # (This private macro should not be called outside this file.) |
4517 | 483 | AC_DEFUN([AM_AUTOMAKE_VERSION], | ||
4518 | 484 | [am__api_version='1.10' | ||
4519 | 485 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | ||
4520 | 486 | dnl require some minimum version. Point them to the right macro. | ||
4521 | 487 | m4_if([$1], [1.10.2], [], | ||
4522 | 488 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | ||
4523 | 489 | ]) | ||
4524 | 490 | |||
4525 | 491 | # _AM_AUTOCONF_VERSION(VERSION) | ||
4526 | 492 | # ----------------------------- | ||
4527 | 493 | # aclocal traces this macro to find the Autoconf version. | ||
4528 | 494 | # This is a private macro too. Using m4_define simplifies | ||
4529 | 495 | # the logic in aclocal, which can simply ignore this definition. | ||
4530 | 496 | m4_define([_AM_AUTOCONF_VERSION], []) | ||
4531 | 25 | 497 | ||
4532 | 26 | # AM_SET_CURRENT_AUTOMAKE_VERSION | 498 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
4533 | 27 | # ------------------------------- | 499 | # ------------------------------- |
4536 | 28 | # Call AM_AUTOMAKE_VERSION so it can be traced. | 500 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
4537 | 29 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | 501 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
4538 | 30 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 502 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
4540 | 31 | [AM_AUTOMAKE_VERSION([1.9.6])]) | 503 | [AM_AUTOMAKE_VERSION([1.10.2])dnl |
4541 | 504 | m4_ifndef([AC_AUTOCONF_VERSION], | ||
4542 | 505 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | ||
4543 | 506 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | ||
4544 | 32 | 507 | ||
4545 | 33 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | 508 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
4546 | 34 | 509 | ||
4547 | @@ -85,14 +560,14 @@ | |||
4548 | 85 | 560 | ||
4549 | 86 | # AM_CONDITIONAL -*- Autoconf -*- | 561 | # AM_CONDITIONAL -*- Autoconf -*- |
4550 | 87 | 562 | ||
4552 | 88 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 | 563 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 |
4553 | 89 | # Free Software Foundation, Inc. | 564 | # Free Software Foundation, Inc. |
4554 | 90 | # | 565 | # |
4555 | 91 | # This file is free software; the Free Software Foundation | 566 | # This file is free software; the Free Software Foundation |
4556 | 92 | # gives unlimited permission to copy and/or distribute it, | 567 | # gives unlimited permission to copy and/or distribute it, |
4557 | 93 | # with or without modifications, as long as this notice is preserved. | 568 | # with or without modifications, as long as this notice is preserved. |
4558 | 94 | 569 | ||
4560 | 95 | # serial 7 | 570 | # serial 8 |
4561 | 96 | 571 | ||
4562 | 97 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | 572 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
4563 | 98 | # ------------------------------------- | 573 | # ------------------------------------- |
4564 | @@ -101,8 +576,10 @@ | |||
4565 | 101 | [AC_PREREQ(2.52)dnl | 576 | [AC_PREREQ(2.52)dnl |
4566 | 102 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | 577 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
4567 | 103 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | 578 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
4570 | 104 | AC_SUBST([$1_TRUE]) | 579 | AC_SUBST([$1_TRUE])dnl |
4571 | 105 | AC_SUBST([$1_FALSE]) | 580 | AC_SUBST([$1_FALSE])dnl |
4572 | 581 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | ||
4573 | 582 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | ||
4574 | 106 | if $2; then | 583 | if $2; then |
4575 | 107 | $1_TRUE= | 584 | $1_TRUE= |
4576 | 108 | $1_FALSE='#' | 585 | $1_FALSE='#' |
4577 | @@ -116,15 +593,14 @@ | |||
4578 | 116 | Usually this means the macro was only invoked conditionally.]]) | 593 | Usually this means the macro was only invoked conditionally.]]) |
4579 | 117 | fi])]) | 594 | fi])]) |
4580 | 118 | 595 | ||
4583 | 119 | 596 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | |
4582 | 120 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
4584 | 121 | # Free Software Foundation, Inc. | 597 | # Free Software Foundation, Inc. |
4585 | 122 | # | 598 | # |
4586 | 123 | # This file is free software; the Free Software Foundation | 599 | # This file is free software; the Free Software Foundation |
4587 | 124 | # gives unlimited permission to copy and/or distribute it, | 600 | # gives unlimited permission to copy and/or distribute it, |
4588 | 125 | # with or without modifications, as long as this notice is preserved. | 601 | # with or without modifications, as long as this notice is preserved. |
4589 | 126 | 602 | ||
4591 | 127 | # serial 8 | 603 | # serial 9 |
4592 | 128 | 604 | ||
4593 | 129 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | 605 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
4594 | 130 | # written in clear, in which case automake, when reading aclocal.m4, | 606 | # written in clear, in which case automake, when reading aclocal.m4, |
4595 | @@ -152,6 +628,7 @@ | |||
4596 | 152 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | 628 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
4597 | 153 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | 629 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
4598 | 154 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | 630 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
4599 | 631 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | ||
4600 | 155 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | 632 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
4601 | 156 | [depcc="$$1" am_compiler_list=]) | 633 | [depcc="$$1" am_compiler_list=]) |
4602 | 157 | 634 | ||
4603 | @@ -217,6 +694,7 @@ | |||
4604 | 217 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 694 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4605 | 218 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | 695 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4606 | 219 | >/dev/null 2>conftest.err && | 696 | >/dev/null 2>conftest.err && |
4607 | 697 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4608 | 220 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 698 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4609 | 221 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | 699 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4610 | 222 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 700 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4611 | @@ -269,24 +747,34 @@ | |||
4612 | 269 | AMDEPBACKSLASH='\' | 747 | AMDEPBACKSLASH='\' |
4613 | 270 | fi | 748 | fi |
4614 | 271 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | 749 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
4616 | 272 | AC_SUBST([AMDEPBACKSLASH]) | 750 | AC_SUBST([AMDEPBACKSLASH])dnl |
4617 | 751 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | ||
4618 | 273 | ]) | 752 | ]) |
4619 | 274 | 753 | ||
4620 | 275 | # Generate code to set up dependency tracking. -*- Autoconf -*- | 754 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
4621 | 276 | 755 | ||
4623 | 277 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 756 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
4624 | 278 | # Free Software Foundation, Inc. | 757 | # Free Software Foundation, Inc. |
4625 | 279 | # | 758 | # |
4626 | 280 | # This file is free software; the Free Software Foundation | 759 | # This file is free software; the Free Software Foundation |
4627 | 281 | # gives unlimited permission to copy and/or distribute it, | 760 | # gives unlimited permission to copy and/or distribute it, |
4628 | 282 | # with or without modifications, as long as this notice is preserved. | 761 | # with or without modifications, as long as this notice is preserved. |
4629 | 283 | 762 | ||
4631 | 284 | #serial 3 | 763 | #serial 4 |
4632 | 285 | 764 | ||
4633 | 286 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | 765 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
4634 | 287 | # ------------------------------ | 766 | # ------------------------------ |
4635 | 288 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | 767 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
4637 | 289 | [for mf in $CONFIG_FILES; do | 768 | [# Autoconf 2.62 quotes --file arguments for eval, but not when files |
4638 | 769 | # are listed without --file. Let's play safe and only enable the eval | ||
4639 | 770 | # if we detect the quoting. | ||
4640 | 771 | case $CONFIG_FILES in | ||
4641 | 772 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
4642 | 773 | *) set x $CONFIG_FILES ;; | ||
4643 | 774 | esac | ||
4644 | 775 | shift | ||
4645 | 776 | for mf | ||
4646 | 777 | do | ||
4647 | 290 | # Strip MF so we end up with the name of the file. | 778 | # Strip MF so we end up with the name of the file. |
4648 | 291 | mf=`echo "$mf" | sed -e 's/:.*$//'` | 779 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
4649 | 292 | # Check whether this is an Automake generated Makefile or not. | 780 | # Check whether this is an Automake generated Makefile or not. |
4650 | @@ -294,8 +782,9 @@ | |||
4651 | 294 | # some people rename them; so instead we look at the file content. | 782 | # some people rename them; so instead we look at the file content. |
4652 | 295 | # Grep'ing the first line is not enough: some people post-process | 783 | # Grep'ing the first line is not enough: some people post-process |
4653 | 296 | # each Makefile.in and add a new line on top of each file to say so. | 784 | # each Makefile.in and add a new line on top of each file to say so. |
4656 | 297 | # So let's grep whole file. | 785 | # Grep'ing the whole file is not good either: AIX grep has a line |
4657 | 298 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | 786 | # limit of 2048, but all sed's we know have understand at least 4000. |
4658 | 787 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
4659 | 299 | dirpart=`AS_DIRNAME("$mf")` | 788 | dirpart=`AS_DIRNAME("$mf")` |
4660 | 300 | else | 789 | else |
4661 | 301 | continue | 790 | continue |
4662 | @@ -354,14 +843,14 @@ | |||
4663 | 354 | 843 | ||
4664 | 355 | # Do all the work for Automake. -*- Autoconf -*- | 844 | # Do all the work for Automake. -*- Autoconf -*- |
4665 | 356 | 845 | ||
4668 | 357 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 846 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4669 | 358 | # Free Software Foundation, Inc. | 847 | # 2005, 2006, 2008 Free Software Foundation, Inc. |
4670 | 359 | # | 848 | # |
4671 | 360 | # This file is free software; the Free Software Foundation | 849 | # This file is free software; the Free Software Foundation |
4672 | 361 | # gives unlimited permission to copy and/or distribute it, | 850 | # gives unlimited permission to copy and/or distribute it, |
4673 | 362 | # with or without modifications, as long as this notice is preserved. | 851 | # with or without modifications, as long as this notice is preserved. |
4674 | 363 | 852 | ||
4676 | 364 | # serial 12 | 853 | # serial 13 |
4677 | 365 | 854 | ||
4678 | 366 | # This macro actually does too much. Some checks are only needed if | 855 | # This macro actually does too much. Some checks are only needed if |
4679 | 367 | # your package does certain things. But this isn't really a big deal. | 856 | # your package does certain things. But this isn't really a big deal. |
4680 | @@ -378,16 +867,20 @@ | |||
4681 | 378 | # arguments mandatory, and then we can depend on a new Autoconf | 867 | # arguments mandatory, and then we can depend on a new Autoconf |
4682 | 379 | # release and drop the old call support. | 868 | # release and drop the old call support. |
4683 | 380 | AC_DEFUN([AM_INIT_AUTOMAKE], | 869 | AC_DEFUN([AM_INIT_AUTOMAKE], |
4685 | 381 | [AC_PREREQ([2.58])dnl | 870 | [AC_PREREQ([2.60])dnl |
4686 | 382 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | 871 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
4687 | 383 | dnl the ones we care about. | 872 | dnl the ones we care about. |
4688 | 384 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 873 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
4689 | 385 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 874 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
4690 | 386 | AC_REQUIRE([AC_PROG_INSTALL])dnl | 875 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
4695 | 387 | # test to see if srcdir already configured | 876 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4696 | 388 | if test "`cd $srcdir && pwd`" != "`pwd`" && | 877 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
4697 | 389 | test -f $srcdir/config.status; then | 878 | # is not polluted with repeated "-I." |
4698 | 390 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | 879 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
4699 | 880 | # test to see if srcdir already configured | ||
4700 | 881 | if test -f $srcdir/config.status; then | ||
4701 | 882 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | ||
4702 | 883 | fi | ||
4703 | 391 | fi | 884 | fi |
4704 | 392 | 885 | ||
4705 | 393 | # test whether we have cygpath | 886 | # test whether we have cygpath |
4706 | @@ -407,6 +900,9 @@ | |||
4707 | 407 | AC_SUBST([PACKAGE], [$1])dnl | 900 | AC_SUBST([PACKAGE], [$1])dnl |
4708 | 408 | AC_SUBST([VERSION], [$2])], | 901 | AC_SUBST([VERSION], [$2])], |
4709 | 409 | [_AM_SET_OPTIONS([$1])dnl | 902 | [_AM_SET_OPTIONS([$1])dnl |
4710 | 903 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | ||
4711 | 904 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | ||
4712 | 905 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | ||
4713 | 410 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 906 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
4714 | 411 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | 907 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
4715 | 412 | 908 | ||
4716 | @@ -442,6 +938,10 @@ | |||
4717 | 442 | [_AM_DEPENDENCIES(CXX)], | 938 | [_AM_DEPENDENCIES(CXX)], |
4718 | 443 | [define([AC_PROG_CXX], | 939 | [define([AC_PROG_CXX], |
4719 | 444 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | 940 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
4720 | 941 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | ||
4721 | 942 | [_AM_DEPENDENCIES(OBJC)], | ||
4722 | 943 | [define([AC_PROG_OBJC], | ||
4723 | 944 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | ||
4724 | 445 | ]) | 945 | ]) |
4725 | 446 | ]) | 946 | ]) |
4726 | 447 | 947 | ||
4727 | @@ -455,16 +955,17 @@ | |||
4728 | 455 | # our stamp files there. | 955 | # our stamp files there. |
4729 | 456 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | 956 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
4730 | 457 | [# Compute $1's index in $config_headers. | 957 | [# Compute $1's index in $config_headers. |
4731 | 958 | _am_arg=$1 | ||
4732 | 458 | _am_stamp_count=1 | 959 | _am_stamp_count=1 |
4733 | 459 | for _am_header in $config_headers :; do | 960 | for _am_header in $config_headers :; do |
4734 | 460 | case $_am_header in | 961 | case $_am_header in |
4736 | 461 | $1 | $1:* ) | 962 | $_am_arg | $_am_arg:* ) |
4737 | 462 | break ;; | 963 | break ;; |
4738 | 463 | * ) | 964 | * ) |
4739 | 464 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 965 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
4740 | 465 | esac | 966 | esac |
4741 | 466 | done | 967 | done |
4743 | 467 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | 968 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
4744 | 468 | 969 | ||
4745 | 469 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | 970 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
4746 | 470 | # | 971 | # |
4747 | @@ -477,7 +978,7 @@ | |||
4748 | 477 | # Define $install_sh. | 978 | # Define $install_sh. |
4749 | 478 | AC_DEFUN([AM_PROG_INSTALL_SH], | 979 | AC_DEFUN([AM_PROG_INSTALL_SH], |
4750 | 479 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 980 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
4752 | 480 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | 981 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
4753 | 481 | AC_SUBST(install_sh)]) | 982 | AC_SUBST(install_sh)]) |
4754 | 482 | 983 | ||
4755 | 483 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | 984 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
4756 | @@ -501,6 +1002,35 @@ | |||
4757 | 501 | rmdir .tst 2>/dev/null | 1002 | rmdir .tst 2>/dev/null |
4758 | 502 | AC_SUBST([am__leading_dot])]) | 1003 | AC_SUBST([am__leading_dot])]) |
4759 | 503 | 1004 | ||
4760 | 1005 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | ||
4761 | 1006 | # From Jim Meyering | ||
4762 | 1007 | |||
4763 | 1008 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 | ||
4764 | 1009 | # Free Software Foundation, Inc. | ||
4765 | 1010 | # | ||
4766 | 1011 | # This file is free software; the Free Software Foundation | ||
4767 | 1012 | # gives unlimited permission to copy and/or distribute it, | ||
4768 | 1013 | # with or without modifications, as long as this notice is preserved. | ||
4769 | 1014 | |||
4770 | 1015 | # serial 4 | ||
4771 | 1016 | |||
4772 | 1017 | AC_DEFUN([AM_MAINTAINER_MODE], | ||
4773 | 1018 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | ||
4774 | 1019 | dnl maintainer-mode is disabled by default | ||
4775 | 1020 | AC_ARG_ENABLE(maintainer-mode, | ||
4776 | 1021 | [ --enable-maintainer-mode enable make rules and dependencies not useful | ||
4777 | 1022 | (and sometimes confusing) to the casual installer], | ||
4778 | 1023 | USE_MAINTAINER_MODE=$enableval, | ||
4779 | 1024 | USE_MAINTAINER_MODE=no) | ||
4780 | 1025 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | ||
4781 | 1026 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) | ||
4782 | 1027 | MAINT=$MAINTAINER_MODE_TRUE | ||
4783 | 1028 | AC_SUBST(MAINT)dnl | ||
4784 | 1029 | ] | ||
4785 | 1030 | ) | ||
4786 | 1031 | |||
4787 | 1032 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | ||
4788 | 1033 | |||
4789 | 504 | # Check to see how 'make' treats includes. -*- Autoconf -*- | 1034 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
4790 | 505 | 1035 | ||
4791 | 506 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | 1036 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
4792 | @@ -555,14 +1085,14 @@ | |||
4793 | 555 | 1085 | ||
4794 | 556 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | 1086 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
4795 | 557 | 1087 | ||
4797 | 558 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 | 1088 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
4798 | 559 | # Free Software Foundation, Inc. | 1089 | # Free Software Foundation, Inc. |
4799 | 560 | # | 1090 | # |
4800 | 561 | # This file is free software; the Free Software Foundation | 1091 | # This file is free software; the Free Software Foundation |
4801 | 562 | # gives unlimited permission to copy and/or distribute it, | 1092 | # gives unlimited permission to copy and/or distribute it, |
4802 | 563 | # with or without modifications, as long as this notice is preserved. | 1093 | # with or without modifications, as long as this notice is preserved. |
4803 | 564 | 1094 | ||
4805 | 565 | # serial 4 | 1095 | # serial 5 |
4806 | 566 | 1096 | ||
4807 | 567 | # AM_MISSING_PROG(NAME, PROGRAM) | 1097 | # AM_MISSING_PROG(NAME, PROGRAM) |
4808 | 568 | # ------------------------------ | 1098 | # ------------------------------ |
4809 | @@ -578,6 +1108,7 @@ | |||
4810 | 578 | # If it does, set am_missing_run to use it, otherwise, to nothing. | 1108 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
4811 | 579 | AC_DEFUN([AM_MISSING_HAS_RUN], | 1109 | AC_DEFUN([AM_MISSING_HAS_RUN], |
4812 | 580 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 1110 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
4813 | 1111 | AC_REQUIRE_AUX_FILE([missing])dnl | ||
4814 | 581 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | 1112 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
4815 | 582 | # Use eval to expand $SHELL | 1113 | # Use eval to expand $SHELL |
4816 | 583 | if eval "$MISSING --run true"; then | 1114 | if eval "$MISSING --run true"; then |
4817 | @@ -588,7 +1119,7 @@ | |||
4818 | 588 | fi | 1119 | fi |
4819 | 589 | ]) | 1120 | ]) |
4820 | 590 | 1121 | ||
4822 | 591 | # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | 1122 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
4823 | 592 | # | 1123 | # |
4824 | 593 | # This file is free software; the Free Software Foundation | 1124 | # This file is free software; the Free Software Foundation |
4825 | 594 | # gives unlimited permission to copy and/or distribute it, | 1125 | # gives unlimited permission to copy and/or distribute it, |
4826 | @@ -596,70 +1127,33 @@ | |||
4827 | 596 | 1127 | ||
4828 | 597 | # AM_PROG_MKDIR_P | 1128 | # AM_PROG_MKDIR_P |
4829 | 598 | # --------------- | 1129 | # --------------- |
4850 | 599 | # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | 1130 | # Check for `mkdir -p'. |
4831 | 600 | # | ||
4832 | 601 | # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | ||
4833 | 602 | # created by `make install' are always world readable, even if the | ||
4834 | 603 | # installer happens to have an overly restrictive umask (e.g. 077). | ||
4835 | 604 | # This was a mistake. There are at least two reasons why we must not | ||
4836 | 605 | # use `-m 0755': | ||
4837 | 606 | # - it causes special bits like SGID to be ignored, | ||
4838 | 607 | # - it may be too restrictive (some setups expect 775 directories). | ||
4839 | 608 | # | ||
4840 | 609 | # Do not use -m 0755 and let people choose whatever they expect by | ||
4841 | 610 | # setting umask. | ||
4842 | 611 | # | ||
4843 | 612 | # We cannot accept any implementation of `mkdir' that recognizes `-p'. | ||
4844 | 613 | # Some implementations (such as Solaris 8's) are not thread-safe: if a | ||
4845 | 614 | # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | ||
4846 | 615 | # concurrently, both version can detect that a/ is missing, but only | ||
4847 | 616 | # one can create it and the other will error out. Consequently we | ||
4848 | 617 | # restrict ourselves to GNU make (using the --version option ensures | ||
4849 | 618 | # this.) | ||
4851 | 619 | AC_DEFUN([AM_PROG_MKDIR_P], | 1131 | AC_DEFUN([AM_PROG_MKDIR_P], |
4885 | 620 | [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | 1132 | [AC_PREREQ([2.60])dnl |
4886 | 621 | # We used to keeping the `.' as first argument, in order to | 1133 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
4887 | 622 | # allow $(mkdir_p) to be used without argument. As in | 1134 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
4888 | 623 | # $(mkdir_p) $(somedir) | 1135 | dnl while keeping a definition of mkdir_p for backward compatibility. |
4889 | 624 | # where $(somedir) is conditionally defined. However this is wrong | 1136 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
4890 | 625 | # for two reasons: | 1137 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
4891 | 626 | # 1. if the package is installed by a user who cannot write `.' | 1138 | dnl Makefile.ins that do not define MKDIR_P, so we do our own |
4892 | 627 | # make install will fail, | 1139 | dnl adjustment using top_builddir (which is defined more often than |
4893 | 628 | # 2. the above comment should most certainly read | 1140 | dnl MKDIR_P). |
4894 | 629 | # $(mkdir_p) $(DESTDIR)$(somedir) | 1141 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
4895 | 630 | # so it does not work when $(somedir) is undefined and | 1142 | case $mkdir_p in |
4896 | 631 | # $(DESTDIR) is not. | 1143 | [[\\/$]]* | ?:[[\\/]]*) ;; |
4897 | 632 | # To support the latter case, we have to write | 1144 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
4898 | 633 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | 1145 | esac |
4899 | 634 | # so the `.' trick is pointless. | 1146 | ]) |
4867 | 635 | mkdir_p='mkdir -p --' | ||
4868 | 636 | else | ||
4869 | 637 | # On NextStep and OpenStep, the `mkdir' command does not | ||
4870 | 638 | # recognize any option. It will interpret all options as | ||
4871 | 639 | # directories to create, and then abort because `.' already | ||
4872 | 640 | # exists. | ||
4873 | 641 | for d in ./-p ./--version; | ||
4874 | 642 | do | ||
4875 | 643 | test -d $d && rmdir $d | ||
4876 | 644 | done | ||
4877 | 645 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | ||
4878 | 646 | if test -f "$ac_aux_dir/mkinstalldirs"; then | ||
4879 | 647 | mkdir_p='$(mkinstalldirs)' | ||
4880 | 648 | else | ||
4881 | 649 | mkdir_p='$(install_sh) -d' | ||
4882 | 650 | fi | ||
4883 | 651 | fi | ||
4884 | 652 | AC_SUBST([mkdir_p])]) | ||
4900 | 653 | 1147 | ||
4901 | 654 | # Helper functions for option handling. -*- Autoconf -*- | 1148 | # Helper functions for option handling. -*- Autoconf -*- |
4902 | 655 | 1149 | ||
4904 | 656 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | 1150 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
4905 | 657 | # | 1151 | # |
4906 | 658 | # This file is free software; the Free Software Foundation | 1152 | # This file is free software; the Free Software Foundation |
4907 | 659 | # gives unlimited permission to copy and/or distribute it, | 1153 | # gives unlimited permission to copy and/or distribute it, |
4908 | 660 | # with or without modifications, as long as this notice is preserved. | 1154 | # with or without modifications, as long as this notice is preserved. |
4909 | 661 | 1155 | ||
4911 | 662 | # serial 3 | 1156 | # serial 4 |
4912 | 663 | 1157 | ||
4913 | 664 | # _AM_MANGLE_OPTION(NAME) | 1158 | # _AM_MANGLE_OPTION(NAME) |
4914 | 665 | # ----------------------- | 1159 | # ----------------------- |
4915 | @@ -676,7 +1170,7 @@ | |||
4916 | 676 | # ---------------------------------- | 1170 | # ---------------------------------- |
4917 | 677 | # OPTIONS is a space-separated list of Automake options. | 1171 | # OPTIONS is a space-separated list of Automake options. |
4918 | 678 | AC_DEFUN([_AM_SET_OPTIONS], | 1172 | AC_DEFUN([_AM_SET_OPTIONS], |
4920 | 679 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | 1173 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
4921 | 680 | 1174 | ||
4922 | 681 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | 1175 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
4923 | 682 | # ------------------------------------------- | 1176 | # ------------------------------------------- |
4924 | @@ -684,31 +1178,6 @@ | |||
4925 | 684 | AC_DEFUN([_AM_IF_OPTION], | 1178 | AC_DEFUN([_AM_IF_OPTION], |
4926 | 685 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 1179 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
4927 | 686 | 1180 | ||
4928 | 687 | # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005 | ||
4929 | 688 | # Free Software Foundation, Inc. | ||
4930 | 689 | # | ||
4931 | 690 | # This file is free software; the Free Software Foundation | ||
4932 | 691 | # gives unlimited permission to copy and/or distribute it, | ||
4933 | 692 | # with or without modifications, as long as this notice is preserved. | ||
4934 | 693 | |||
4935 | 694 | # serial 4 | ||
4936 | 695 | |||
4937 | 696 | AC_DEFUN([AM_C_PROTOTYPES], | ||
4938 | 697 | [AC_REQUIRE([AC_C_PROTOTYPES]) | ||
4939 | 698 | if test "$ac_cv_prog_cc_stdc" != no; then | ||
4940 | 699 | U= ANSI2KNR= | ||
4941 | 700 | else | ||
4942 | 701 | U=_ ANSI2KNR=./ansi2knr | ||
4943 | 702 | fi | ||
4944 | 703 | # Ensure some checks needed by ansi2knr itself. | ||
4945 | 704 | AC_REQUIRE([AC_HEADER_STDC]) | ||
4946 | 705 | AC_CHECK_HEADERS(string.h) | ||
4947 | 706 | AC_SUBST(U)dnl | ||
4948 | 707 | AC_SUBST(ANSI2KNR)dnl | ||
4949 | 708 | ]) | ||
4950 | 709 | |||
4951 | 710 | AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) | ||
4952 | 711 | |||
4953 | 712 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | 1181 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
4954 | 713 | 1182 | ||
4955 | 714 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | 1183 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
4956 | @@ -786,9 +1255,21 @@ | |||
4957 | 786 | if test "$cross_compiling" != no; then | 1255 | if test "$cross_compiling" != no; then |
4958 | 787 | AC_CHECK_TOOL([STRIP], [strip], :) | 1256 | AC_CHECK_TOOL([STRIP], [strip], :) |
4959 | 788 | fi | 1257 | fi |
4961 | 789 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | 1258 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
4962 | 790 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 1259 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
4963 | 791 | 1260 | ||
4964 | 1261 | # Copyright (C) 2006 Free Software Foundation, Inc. | ||
4965 | 1262 | # | ||
4966 | 1263 | # This file is free software; the Free Software Foundation | ||
4967 | 1264 | # gives unlimited permission to copy and/or distribute it, | ||
4968 | 1265 | # with or without modifications, as long as this notice is preserved. | ||
4969 | 1266 | |||
4970 | 1267 | # _AM_SUBST_NOTMAKE(VARIABLE) | ||
4971 | 1268 | # --------------------------- | ||
4972 | 1269 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | ||
4973 | 1270 | # This macro is traced by Automake. | ||
4974 | 1271 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | ||
4975 | 1272 | |||
4976 | 792 | # Check how to create a tarball. -*- Autoconf -*- | 1273 | # Check how to create a tarball. -*- Autoconf -*- |
4977 | 793 | 1274 | ||
4978 | 794 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | 1275 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
4979 | @@ -885,3 +1366,39 @@ | |||
4980 | 885 | AC_SUBST([am__untar]) | 1366 | AC_SUBST([am__untar]) |
4981 | 886 | ]) # _AM_PROG_TAR | 1367 | ]) # _AM_PROG_TAR |
4982 | 887 | 1368 | ||
4983 | 1369 | m4_include([m4/00gnulib.m4]) | ||
4984 | 1370 | m4_include([m4/alloca.m4]) | ||
4985 | 1371 | m4_include([m4/dirname.m4]) | ||
4986 | 1372 | m4_include([m4/dos.m4]) | ||
4987 | 1373 | m4_include([m4/double-slash-root.m4]) | ||
4988 | 1374 | m4_include([m4/errno_h.m4]) | ||
4989 | 1375 | m4_include([m4/error.m4]) | ||
4990 | 1376 | m4_include([m4/exitfail.m4]) | ||
4991 | 1377 | m4_include([m4/extensions.m4]) | ||
4992 | 1378 | m4_include([m4/getopt.m4]) | ||
4993 | 1379 | m4_include([m4/getpagesize.m4]) | ||
4994 | 1380 | m4_include([m4/gnulib-common.m4]) | ||
4995 | 1381 | m4_include([m4/gnulib-comp.m4]) | ||
4996 | 1382 | m4_include([m4/include_next.m4]) | ||
4997 | 1383 | m4_include([m4/inline.m4]) | ||
4998 | 1384 | m4_include([m4/libtool.m4]) | ||
4999 | 1385 | m4_include([m4/ltoptions.m4]) | ||
5000 | 1386 | m4_include([m4/ltsugar.m4]) |
The diff has been truncated for viewing.