Imported Upstream version 0.21.2
Willi Mann
10 years ago
0 | ||
1 | Overall Program Change Log for GNU UnRTF | |
2 | ---------------------------------------- | |
3 | 0.1: original version, known as "rtf2htm" | |
4 | 0.2: first civilized (Un*x) version | |
5 | 0.3: addition of hash storage for all strings | |
6 | 0.4: support for a few HTML special exprs | |
7 | 0.5: tables finally work | |
8 | 0.6: addition of usage() | |
9 | 0.7: added special chars, \tab, info group, <body> | |
10 | 0.8: font table support | |
11 | ||
12 | 0.9.0: images are stored to files | |
13 | 0.9.1: pict files extensions a bit more accurate | |
14 | 0.9.2: font size changes (\fs) more accurate. | |
15 | 0.9.3: fixed bug regarding where <body> goes | |
16 | 0.9.4: added -nopict option | |
17 | 0.9.5: fixed table data printing. | |
18 | 0.9.6: if >1 \cell in a group, font attrs affect all. | |
19 | 0.9.7: Chunk class renamed Word | |
20 | ||
21 | 0.10.0: input file type is checked, -echo renamed -dump | |
22 | 0.11.0: addition of ANSI->HTML conversion, plus limited Mac->HTML | |
23 | 0.11.1: unknown chars are printed as <!--0x##--> | |
24 | ||
25 | 0.12.0: separated parser from word module | |
26 | 0.12.1: added -version option | |
27 | 0.12.2: backslash-newline is now \par | |
28 | 0.12.3: added default font families (\fswiss etc) | |
29 | 0.12.4: added blurb about program in the output HTML | |
30 | 0.12.5: added recognition of files with ".RTF" ending, not just ".rtf" | |
31 | 0.12.6: added charset tables for CP437 and CP850 | |
32 | 0.12.7: fixed bug preventing \'## sequences from being translated | |
33 | 0.12.8: removed size limit for words, verified DJGPP compilation works. | |
34 | 0.12.9: compilation bugfix, fixed author/date information | |
35 | 0.12.10: added --simple switch for generating HTML without SPAN/DIV tags | |
36 | ||
37 | 0.13.0: paragraph alignment added | |
38 | 0.13.1: fix for words getting lost after \par | |
39 | 0.13.2: fix for color table not being recognized | |
40 | ||
41 | 0.14.0: separation of word and convert modules | |
42 | 0.14.1: fixed color table indexing, added support for font background color. | |
43 | 0.14.2: updated parsing mechanism | |
44 | 0.14.3: fix for DIV nesting; fix for NS's hiding any table within a span. | |
45 | 0.14.4: fix for color table parsing; added better underline/strikethru support. | |
46 | ||
47 | 0.15.0: hashing of RTF keywords in convert.c; moved much code out of convert.c | |
48 | 0.15.1: removed null entries from special.c to reduce program size | |
49 | 0.15.2: removed no-op entries from hash in convert.c to reduce program size | |
50 | 0.15.3: first 16-bit MSDOS executable | |
51 | 0.15.4: fixed paragraph alignment not getting cleared by \pard | |
52 | 0.15.5: updated code to produce as few paragraph alignment tags as possible | |
53 | ||
54 | 0.16.0: added input buffering to improve speed | |
55 | 0.16.1: bugfix for printing of debugging strings stored in command hash | |
56 | ||
57 | 0.17.0: hyperlink support added | |
58 | 0.17.1: added support for several font attributes e.g. smallcaps, caps, \expand | |
59 | 0.17.2: added Amiga(TM) compilation support | |
60 | 0.17.3: fixed problem in interpretation of RTF command words | |
61 | 0.17.4: changed attr.c to use AttrStack (stack of stacks) paradigm | |
62 | ----program renamed UnRTF---- | |
63 | 0.17.5: began implementation of output personalities; wrote HTML personality. | |
64 | 0.17.6: added text and vt personalities | |
65 | 0.17.7: began addition of PostScript(TM) and LaTeX and WPML output | |
66 | 0.17.8: first fully commented version, removed "last change" lines | |
67 | 0.17.9: fixed translation between character sets | |
68 | 0.17.10: PS now supports underline, strikethrough, shadowed text | |
69 | 0.17.11: PS now uses ISOLatin1Encoding | |
70 | 0.17.12: PS now supports these fonts: Times,Courier,Symbol,Helvetica | |
71 | ||
72 | ----program is now GNU UnRTF---- | |
73 | 0.18.0: updates to comments, documentation to reflect inclusion in GNU suite. | |
74 | 0.18.1: updated manual | |
75 | ||
76 | 0.19.1: new maintainers: minor fixes to prevent segmentation violations; | |
77 | further special character code; minor cleanups | |
78 | 0.19.2: updated some files; | |
79 | 0.19.3: fix bug #225592: null pointer param in convert.c | |
80 | ||
81 | Note: | |
82 | LaTeX is a system of macros for TeX by Leslie Lamport. | |
83 | WPML is a tentative document format by Z.T. Smith | |
84 | ||
85 | ||
86 |
0 | GNU GENERAL PUBLIC LICENSE | |
1 | Version 2, June 1991 | |
2 | ||
3 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | |
4 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
0 | GNU GENERAL PUBLIC LICENSE | |
1 | Version 3, 29 June 2007 | |
2 | ||
3 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
5 | 4 | Everyone is permitted to copy and distribute verbatim copies |
6 | 5 | of this license document, but changing it is not allowed. |
7 | 6 | |
8 | Preamble | |
9 | ||
10 | The licenses for most software are designed to take away your | |
11 | freedom to share and change it. By contrast, the GNU General Public | |
12 | License is intended to guarantee your freedom to share and change free | |
13 | software--to make sure the software is free for all its users. This | |
14 | General Public License applies to most of the Free Software | |
15 | Foundation's software and to any other program whose authors commit to | |
16 | using it. (Some other Free Software Foundation software is covered by | |
17 | the GNU Library General Public License instead.) You can apply it to | |
7 | Preamble | |
8 | ||
9 | The GNU General Public License is a free, copyleft license for | |
10 | software and other kinds of works. | |
11 | ||
12 | The licenses for most software and other practical works are designed | |
13 | to take away your freedom to share and change the works. By contrast, | |
14 | the GNU General Public License is intended to guarantee your freedom to | |
15 | share and change all versions of a program--to make sure it remains free | |
16 | software for all its users. We, the Free Software Foundation, use the | |
17 | GNU General Public License for most of our software; it applies also to | |
18 | any other work released this way by its authors. You can apply it to | |
18 | 19 | your programs, too. |
19 | 20 | |
20 | 21 | When we speak of free software, we are referring to freedom, not |
21 | 22 | price. Our General Public Licenses are designed to make sure that you |
22 | 23 | have the freedom to distribute copies of free software (and charge for |
23 | this service if you wish), that you receive source code or can get it | |
24 | if you want it, that you can change the software or use pieces of it | |
25 | in new free programs; and that you know you can do these things. | |
26 | ||
27 | To protect your rights, we need to make restrictions that forbid | |
28 | anyone to deny you these rights or to ask you to surrender the rights. | |
29 | These restrictions translate to certain responsibilities for you if you | |
30 | distribute copies of the software, or if you modify it. | |
24 | them if you wish), that you receive source code or can get it if you | |
25 | want it, that you can change the software or use pieces of it in new | |
26 | free programs, and that you know you can do these things. | |
27 | ||
28 | To protect your rights, we need to prevent others from denying you | |
29 | these rights or asking you to surrender the rights. Therefore, you have | |
30 | certain responsibilities if you distribute copies of the software, or if | |
31 | you modify it: responsibilities to respect the freedom of others. | |
31 | 32 | |
32 | 33 | For example, if you distribute copies of such a program, whether |
33 | gratis or for a fee, you must give the recipients all the rights that | |
34 | you have. You must make sure that they, too, receive or can get the | |
35 | source code. And you must show them these terms so they know their | |
36 | rights. | |
37 | ||
38 | We protect your rights with two steps: (1) copyright the software, and | |
39 | (2) offer you this license which gives you legal permission to copy, | |
40 | distribute and/or modify the software. | |
41 | ||
42 | Also, for each author's protection and ours, we want to make certain | |
43 | that everyone understands that there is no warranty for this free | |
44 | software. If the software is modified by someone else and passed on, we | |
45 | want its recipients to know that what they have is not the original, so | |
46 | that any problems introduced by others will not reflect on the original | |
47 | authors' reputations. | |
48 | ||
49 | Finally, any free program is threatened constantly by software | |
50 | patents. We wish to avoid the danger that redistributors of a free | |
51 | program will individually obtain patent licenses, in effect making the | |
52 | program proprietary. To prevent this, we have made it clear that any | |
53 | patent must be licensed for everyone's free use or not licensed at all. | |
34 | gratis or for a fee, you must pass on to the recipients the same | |
35 | freedoms that you received. You must make sure that they, too, receive | |
36 | or can get the source code. And you must show them these terms so they | |
37 | know their rights. | |
38 | ||
39 | Developers that use the GNU GPL protect your rights with two steps: | |
40 | (1) assert copyright on the software, and (2) offer you this License | |
41 | giving you legal permission to copy, distribute and/or modify it. | |
42 | ||
43 | For the developers' and authors' protection, the GPL clearly explains | |
44 | that there is no warranty for this free software. For both users' and | |
45 | authors' sake, the GPL requires that modified versions be marked as | |
46 | changed, so that their problems will not be attributed erroneously to | |
47 | authors of previous versions. | |
48 | ||
49 | Some devices are designed to deny users access to install or run | |
50 | modified versions of the software inside them, although the manufacturer | |
51 | can do so. This is fundamentally incompatible with the aim of | |
52 | protecting users' freedom to change the software. The systematic | |
53 | pattern of such abuse occurs in the area of products for individuals to | |
54 | use, which is precisely where it is most unacceptable. Therefore, we | |
55 | have designed this version of the GPL to prohibit the practice for those | |
56 | products. If such problems arise substantially in other domains, we | |
57 | stand ready to extend this provision to those domains in future versions | |
58 | of the GPL, as needed to protect the freedom of users. | |
59 | ||
60 | Finally, every program is threatened constantly by software patents. | |
61 | States should not allow patents to restrict development and use of | |
62 | software on general-purpose computers, but in those that do, we wish to | |
63 | avoid the special danger that patents applied to a free program could | |
64 | make it effectively proprietary. To prevent this, the GPL assures that | |
65 | patents cannot be used to render the program non-free. | |
54 | 66 | |
55 | 67 | The precise terms and conditions for copying, distribution and |
56 | 68 | modification follow. |
57 | ||
58 | GNU GENERAL PUBLIC LICENSE | |
59 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
60 | ||
61 | 0. This License applies to any program or other work which contains | |
62 | a notice placed by the copyright holder saying it may be distributed | |
63 | under the terms of this General Public License. The "Program", below, | |
64 | refers to any such program or work, and a "work based on the Program" | |
65 | means either the Program or any derivative work under copyright law: | |
66 | that is to say, a work containing the Program or a portion of it, | |
67 | either verbatim or with modifications and/or translated into another | |
68 | language. (Hereinafter, translation is included without limitation in | |
69 | the term "modification".) Each licensee is addressed as "you". | |
70 | ||
71 | Activities other than copying, distribution and modification are not | |
72 | covered by this License; they are outside its scope. The act of | |
73 | running the Program is not restricted, and the output from the Program | |
74 | is covered only if its contents constitute a work based on the | |
75 | Program (independent of having been made by running the Program). | |
76 | Whether that is true depends on what the Program does. | |
77 | ||
78 | 1. You may copy and distribute verbatim copies of the Program's | |
79 | source code as you receive it, in any medium, provided that you | |
80 | conspicuously and appropriately publish on each copy an appropriate | |
81 | copyright notice and disclaimer of warranty; keep intact all the | |
82 | notices that refer to this License and to the absence of any warranty; | |
83 | and give any other recipients of the Program a copy of this License | |
84 | along with the Program. | |
85 | ||
86 | You may charge a fee for the physical act of transferring a copy, and | |
87 | you may at your option offer warranty protection in exchange for a fee. | |
88 | ||
89 | 2. You may modify your copy or copies of the Program or any portion | |
90 | of it, thus forming a work based on the Program, and copy and | |
91 | distribute such modifications or work under the terms of Section 1 | |
92 | above, provided that you also meet all of these conditions: | |
93 | ||
94 | a) You must cause the modified files to carry prominent notices | |
95 | stating that you changed the files and the date of any change. | |
96 | ||
97 | b) You must cause any work that you distribute or publish, that in | |
98 | whole or in part contains or is derived from the Program or any | |
99 | part thereof, to be licensed as a whole at no charge to all third | |
100 | parties under the terms of this License. | |
101 | ||
102 | c) If the modified program normally reads commands interactively | |
103 | when run, you must cause it, when started running for such | |
104 | interactive use in the most ordinary way, to print or display an | |
105 | announcement including an appropriate copyright notice and a | |
106 | notice that there is no warranty (or else, saying that you provide | |
107 | a warranty) and that users may redistribute the program under | |
108 | these conditions, and telling the user how to view a copy of this | |
109 | License. (Exception: if the Program itself is interactive but | |
110 | does not normally print such an announcement, your work based on | |
111 | the Program is not required to print an announcement.) | |
112 | ||
113 | These requirements apply to the modified work as a whole. If | |
114 | identifiable sections of that work are not derived from the Program, | |
115 | and can be reasonably considered independent and separate works in | |
116 | themselves, then this License, and its terms, do not apply to those | |
117 | sections when you distribute them as separate works. But when you | |
118 | distribute the same sections as part of a whole which is a work based | |
119 | on the Program, the distribution of the whole must be on the terms of | |
120 | this License, whose permissions for other licensees extend to the | |
121 | entire whole, and thus to each and every part regardless of who wrote it. | |
122 | ||
123 | Thus, it is not the intent of this section to claim rights or contest | |
124 | your rights to work written entirely by you; rather, the intent is to | |
125 | exercise the right to control the distribution of derivative or | |
126 | collective works based on the Program. | |
127 | ||
128 | In addition, mere aggregation of another work not based on the Program | |
129 | with the Program (or with a work based on the Program) on a volume of | |
130 | a storage or distribution medium does not bring the other work under | |
131 | the scope of this License. | |
132 | ||
133 | 3. You may copy and distribute the Program (or a work based on it, | |
134 | under Section 2) in object code or executable form under the terms of | |
135 | Sections 1 and 2 above provided that you also do one of the following: | |
136 | ||
137 | a) Accompany it with the complete corresponding machine-readable | |
138 | source code, which must be distributed under the terms of Sections | |
139 | 1 and 2 above on a medium customarily used for software interchange; or, | |
140 | ||
141 | b) Accompany it with a written offer, valid for at least three | |
142 | years, to give any third party, for a charge no more than your | |
143 | cost of physically performing source distribution, a complete | |
144 | machine-readable copy of the corresponding source code, to be | |
145 | distributed under the terms of Sections 1 and 2 above on a medium | |
146 | customarily used for software interchange; or, | |
147 | ||
148 | c) Accompany it with the information you received as to the offer | |
149 | to distribute corresponding source code. (This alternative is | |
150 | allowed only for noncommercial distribution and only if you | |
151 | received the program in object code or executable form with such | |
152 | an offer, in accord with Subsection b above.) | |
153 | ||
154 | The source code for a work means the preferred form of the work for | |
155 | making modifications to it. For an executable work, complete source | |
156 | code means all the source code for all modules it contains, plus any | |
157 | associated interface definition files, plus the scripts used to | |
158 | control compilation and installation of the executable. However, as a | |
159 | special exception, the source code distributed need not include | |
160 | anything that is normally distributed (in either source or binary | |
161 | form) with the major components (compiler, kernel, and so on) of the | |
162 | operating system on which the executable runs, unless that component | |
163 | itself accompanies the executable. | |
164 | ||
165 | If distribution of executable or object code is made by offering | |
166 | access to copy from a designated place, then offering equivalent | |
167 | access to copy the source code from the same place counts as | |
168 | distribution of the source code, even though third parties are not | |
169 | compelled to copy the source along with the object code. | |
170 | ||
171 | 4. You may not copy, modify, sublicense, or distribute the Program | |
172 | except as expressly provided under this License. Any attempt | |
173 | otherwise to copy, modify, sublicense or distribute the Program is | |
174 | void, and will automatically terminate your rights under this License. | |
175 | However, parties who have received copies, or rights, from you under | |
176 | this License will not have their licenses terminated so long as such | |
177 | parties remain in full compliance. | |
178 | ||
179 | 5. You are not required to accept this License, since you have not | |
180 | signed it. However, nothing else grants you permission to modify or | |
181 | distribute the Program or its derivative works. These actions are | |
182 | prohibited by law if you do not accept this License. Therefore, by | |
183 | modifying or distributing the Program (or any work based on the | |
184 | Program), you indicate your acceptance of this License to do so, and | |
185 | all its terms and conditions for copying, distributing or modifying | |
186 | the Program or works based on it. | |
187 | ||
188 | 6. Each time you redistribute the Program (or any work based on the | |
189 | Program), the recipient automatically receives a license from the | |
190 | original licensor to copy, distribute or modify the Program subject to | |
191 | these terms and conditions. You may not impose any further | |
192 | restrictions on the recipients' exercise of the rights granted herein. | |
193 | You are not responsible for enforcing compliance by third parties to | |
69 | ||
70 | TERMS AND CONDITIONS | |
71 | ||
72 | 0. Definitions. | |
73 | ||
74 | "This License" refers to version 3 of the GNU General Public License. | |
75 | ||
76 | "Copyright" also means copyright-like laws that apply to other kinds of | |
77 | works, such as semiconductor masks. | |
78 | ||
79 | "The Program" refers to any copyrightable work licensed under this | |
80 | License. Each licensee is addressed as "you". "Licensees" and | |
81 | "recipients" may be individuals or organizations. | |
82 | ||
83 | To "modify" a work means to copy from or adapt all or part of the work | |
84 | in a fashion requiring copyright permission, other than the making of an | |
85 | exact copy. The resulting work is called a "modified version" of the | |
86 | earlier work or a work "based on" the earlier work. | |
87 | ||
88 | A "covered work" means either the unmodified Program or a work based | |
89 | on the Program. | |
90 | ||
91 | To "propagate" a work means to do anything with it that, without | |
92 | permission, would make you directly or secondarily liable for | |
93 | infringement under applicable copyright law, except executing it on a | |
94 | computer or modifying a private copy. Propagation includes copying, | |
95 | distribution (with or without modification), making available to the | |
96 | public, and in some countries other activities as well. | |
97 | ||
98 | To "convey" a work means any kind of propagation that enables other | |
99 | parties to make or receive copies. Mere interaction with a user through | |
100 | a computer network, with no transfer of a copy, is not conveying. | |
101 | ||
102 | An interactive user interface displays "Appropriate Legal Notices" | |
103 | to the extent that it includes a convenient and prominently visible | |
104 | feature that (1) displays an appropriate copyright notice, and (2) | |
105 | tells the user that there is no warranty for the work (except to the | |
106 | extent that warranties are provided), that licensees may convey the | |
107 | work under this License, and how to view a copy of this License. If | |
108 | the interface presents a list of user commands or options, such as a | |
109 | menu, a prominent item in the list meets this criterion. | |
110 | ||
111 | 1. Source Code. | |
112 | ||
113 | The "source code" for a work means the preferred form of the work | |
114 | for making modifications to it. "Object code" means any non-source | |
115 | form of a work. | |
116 | ||
117 | A "Standard Interface" means an interface that either is an official | |
118 | standard defined by a recognized standards body, or, in the case of | |
119 | interfaces specified for a particular programming language, one that | |
120 | is widely used among developers working in that language. | |
121 | ||
122 | The "System Libraries" of an executable work include anything, other | |
123 | than the work as a whole, that (a) is included in the normal form of | |
124 | packaging a Major Component, but which is not part of that Major | |
125 | Component, and (b) serves only to enable use of the work with that | |
126 | Major Component, or to implement a Standard Interface for which an | |
127 | implementation is available to the public in source code form. A | |
128 | "Major Component", in this context, means a major essential component | |
129 | (kernel, window system, and so on) of the specific operating system | |
130 | (if any) on which the executable work runs, or a compiler used to | |
131 | produce the work, or an object code interpreter used to run it. | |
132 | ||
133 | The "Corresponding Source" for a work in object code form means all | |
134 | the source code needed to generate, install, and (for an executable | |
135 | work) run the object code and to modify the work, including scripts to | |
136 | control those activities. However, it does not include the work's | |
137 | System Libraries, or general-purpose tools or generally available free | |
138 | programs which are used unmodified in performing those activities but | |
139 | which are not part of the work. For example, Corresponding Source | |
140 | includes interface definition files associated with source files for | |
141 | the work, and the source code for shared libraries and dynamically | |
142 | linked subprograms that the work is specifically designed to require, | |
143 | such as by intimate data communication or control flow between those | |
144 | subprograms and other parts of the work. | |
145 | ||
146 | The Corresponding Source need not include anything that users | |
147 | can regenerate automatically from other parts of the Corresponding | |
148 | Source. | |
149 | ||
150 | The Corresponding Source for a work in source code form is that | |
151 | same work. | |
152 | ||
153 | 2. Basic Permissions. | |
154 | ||
155 | All rights granted under this License are granted for the term of | |
156 | copyright on the Program, and are irrevocable provided the stated | |
157 | conditions are met. This License explicitly affirms your unlimited | |
158 | permission to run the unmodified Program. The output from running a | |
159 | covered work is covered by this License only if the output, given its | |
160 | content, constitutes a covered work. This License acknowledges your | |
161 | rights of fair use or other equivalent, as provided by copyright law. | |
162 | ||
163 | You may make, run and propagate covered works that you do not | |
164 | convey, without conditions so long as your license otherwise remains | |
165 | in force. You may convey covered works to others for the sole purpose | |
166 | of having them make modifications exclusively for you, or provide you | |
167 | with facilities for running those works, provided that you comply with | |
168 | the terms of this License in conveying all material for which you do | |
169 | not control copyright. Those thus making or running the covered works | |
170 | for you must do so exclusively on your behalf, under your direction | |
171 | and control, on terms that prohibit them from making any copies of | |
172 | your copyrighted material outside their relationship with you. | |
173 | ||
174 | Conveying under any other circumstances is permitted solely under | |
175 | the conditions stated below. Sublicensing is not allowed; section 10 | |
176 | makes it unnecessary. | |
177 | ||
178 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | |
179 | ||
180 | No covered work shall be deemed part of an effective technological | |
181 | measure under any applicable law fulfilling obligations under article | |
182 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or | |
183 | similar laws prohibiting or restricting circumvention of such | |
184 | measures. | |
185 | ||
186 | When you convey a covered work, you waive any legal power to forbid | |
187 | circumvention of technological measures to the extent such circumvention | |
188 | is effected by exercising rights under this License with respect to | |
189 | the covered work, and you disclaim any intention to limit operation or | |
190 | modification of the work as a means of enforcing, against the work's | |
191 | users, your or third parties' legal rights to forbid circumvention of | |
192 | technological measures. | |
193 | ||
194 | 4. Conveying Verbatim Copies. | |
195 | ||
196 | You may convey verbatim copies of the Program's source code as you | |
197 | receive it, in any medium, provided that you conspicuously and | |
198 | appropriately publish on each copy an appropriate copyright notice; | |
199 | keep intact all notices stating that this License and any | |
200 | non-permissive terms added in accord with section 7 apply to the code; | |
201 | keep intact all notices of the absence of any warranty; and give all | |
202 | recipients a copy of this License along with the Program. | |
203 | ||
204 | You may charge any price or no price for each copy that you convey, | |
205 | and you may offer support or warranty protection for a fee. | |
206 | ||
207 | 5. Conveying Modified Source Versions. | |
208 | ||
209 | You may convey a work based on the Program, or the modifications to | |
210 | produce it from the Program, in the form of source code under the | |
211 | terms of section 4, provided that you also meet all of these conditions: | |
212 | ||
213 | a) The work must carry prominent notices stating that you modified | |
214 | it, and giving a relevant date. | |
215 | ||
216 | b) The work must carry prominent notices stating that it is | |
217 | released under this License and any conditions added under section | |
218 | 7. This requirement modifies the requirement in section 4 to | |
219 | "keep intact all notices". | |
220 | ||
221 | c) You must license the entire work, as a whole, under this | |
222 | License to anyone who comes into possession of a copy. This | |
223 | License will therefore apply, along with any applicable section 7 | |
224 | additional terms, to the whole of the work, and all its parts, | |
225 | regardless of how they are packaged. This License gives no | |
226 | permission to license the work in any other way, but it does not | |
227 | invalidate such permission if you have separately received it. | |
228 | ||
229 | d) If the work has interactive user interfaces, each must display | |
230 | Appropriate Legal Notices; however, if the Program has interactive | |
231 | interfaces that do not display Appropriate Legal Notices, your | |
232 | work need not make them do so. | |
233 | ||
234 | A compilation of a covered work with other separate and independent | |
235 | works, which are not by their nature extensions of the covered work, | |
236 | and which are not combined with it such as to form a larger program, | |
237 | in or on a volume of a storage or distribution medium, is called an | |
238 | "aggregate" if the compilation and its resulting copyright are not | |
239 | used to limit the access or legal rights of the compilation's users | |
240 | beyond what the individual works permit. Inclusion of a covered work | |
241 | in an aggregate does not cause this License to apply to the other | |
242 | parts of the aggregate. | |
243 | ||
244 | 6. Conveying Non-Source Forms. | |
245 | ||
246 | You may convey a covered work in object code form under the terms | |
247 | of sections 4 and 5, provided that you also convey the | |
248 | machine-readable Corresponding Source under the terms of this License, | |
249 | in one of these ways: | |
250 | ||
251 | a) Convey the object code in, or embodied in, a physical product | |
252 | (including a physical distribution medium), accompanied by the | |
253 | Corresponding Source fixed on a durable physical medium | |
254 | customarily used for software interchange. | |
255 | ||
256 | b) Convey the object code in, or embodied in, a physical product | |
257 | (including a physical distribution medium), accompanied by a | |
258 | written offer, valid for at least three years and valid for as | |
259 | long as you offer spare parts or customer support for that product | |
260 | model, to give anyone who possesses the object code either (1) a | |
261 | copy of the Corresponding Source for all the software in the | |
262 | product that is covered by this License, on a durable physical | |
263 | medium customarily used for software interchange, for a price no | |
264 | more than your reasonable cost of physically performing this | |
265 | conveying of source, or (2) access to copy the | |
266 | Corresponding Source from a network server at no charge. | |
267 | ||
268 | c) Convey individual copies of the object code with a copy of the | |
269 | written offer to provide the Corresponding Source. This | |
270 | alternative is allowed only occasionally and noncommercially, and | |
271 | only if you received the object code with such an offer, in accord | |
272 | with subsection 6b. | |
273 | ||
274 | d) Convey the object code by offering access from a designated | |
275 | place (gratis or for a charge), and offer equivalent access to the | |
276 | Corresponding Source in the same way through the same place at no | |
277 | further charge. You need not require recipients to copy the | |
278 | Corresponding Source along with the object code. If the place to | |
279 | copy the object code is a network server, the Corresponding Source | |
280 | may be on a different server (operated by you or a third party) | |
281 | that supports equivalent copying facilities, provided you maintain | |
282 | clear directions next to the object code saying where to find the | |
283 | Corresponding Source. Regardless of what server hosts the | |
284 | Corresponding Source, you remain obligated to ensure that it is | |
285 | available for as long as needed to satisfy these requirements. | |
286 | ||
287 | e) Convey the object code using peer-to-peer transmission, provided | |
288 | you inform other peers where the object code and Corresponding | |
289 | Source of the work are being offered to the general public at no | |
290 | charge under subsection 6d. | |
291 | ||
292 | A separable portion of the object code, whose source code is excluded | |
293 | from the Corresponding Source as a System Library, need not be | |
294 | included in conveying the object code work. | |
295 | ||
296 | A "User Product" is either (1) a "consumer product", which means any | |
297 | tangible personal property which is normally used for personal, family, | |
298 | or household purposes, or (2) anything designed or sold for incorporation | |
299 | into a dwelling. In determining whether a product is a consumer product, | |
300 | doubtful cases shall be resolved in favor of coverage. For a particular | |
301 | product received by a particular user, "normally used" refers to a | |
302 | typical or common use of that class of product, regardless of the status | |
303 | of the particular user or of the way in which the particular user | |
304 | actually uses, or expects or is expected to use, the product. A product | |
305 | is a consumer product regardless of whether the product has substantial | |
306 | commercial, industrial or non-consumer uses, unless such uses represent | |
307 | the only significant mode of use of the product. | |
308 | ||
309 | "Installation Information" for a User Product means any methods, | |
310 | procedures, authorization keys, or other information required to install | |
311 | and execute modified versions of a covered work in that User Product from | |
312 | a modified version of its Corresponding Source. The information must | |
313 | suffice to ensure that the continued functioning of the modified object | |
314 | code is in no case prevented or interfered with solely because | |
315 | modification has been made. | |
316 | ||
317 | If you convey an object code work under this section in, or with, or | |
318 | specifically for use in, a User Product, and the conveying occurs as | |
319 | part of a transaction in which the right of possession and use of the | |
320 | User Product is transferred to the recipient in perpetuity or for a | |
321 | fixed term (regardless of how the transaction is characterized), the | |
322 | Corresponding Source conveyed under this section must be accompanied | |
323 | by the Installation Information. But this requirement does not apply | |
324 | if neither you nor any third party retains the ability to install | |
325 | modified object code on the User Product (for example, the work has | |
326 | been installed in ROM). | |
327 | ||
328 | The requirement to provide Installation Information does not include a | |
329 | requirement to continue to provide support service, warranty, or updates | |
330 | for a work that has been modified or installed by the recipient, or for | |
331 | the User Product in which it has been modified or installed. Access to a | |
332 | network may be denied when the modification itself materially and | |
333 | adversely affects the operation of the network or violates the rules and | |
334 | protocols for communication across the network. | |
335 | ||
336 | Corresponding Source conveyed, and Installation Information provided, | |
337 | in accord with this section must be in a format that is publicly | |
338 | documented (and with an implementation available to the public in | |
339 | source code form), and must require no special password or key for | |
340 | unpacking, reading or copying. | |
341 | ||
342 | 7. Additional Terms. | |
343 | ||
344 | "Additional permissions" are terms that supplement the terms of this | |
345 | License by making exceptions from one or more of its conditions. | |
346 | Additional permissions that are applicable to the entire Program shall | |
347 | be treated as though they were included in this License, to the extent | |
348 | that they are valid under applicable law. If additional permissions | |
349 | apply only to part of the Program, that part may be used separately | |
350 | under those permissions, but the entire Program remains governed by | |
351 | this License without regard to the additional permissions. | |
352 | ||
353 | When you convey a copy of a covered work, you may at your option | |
354 | remove any additional permissions from that copy, or from any part of | |
355 | it. (Additional permissions may be written to require their own | |
356 | removal in certain cases when you modify the work.) You may place | |
357 | additional permissions on material, added by you to a covered work, | |
358 | for which you have or can give appropriate copyright permission. | |
359 | ||
360 | Notwithstanding any other provision of this License, for material you | |
361 | add to a covered work, you may (if authorized by the copyright holders of | |
362 | that material) supplement the terms of this License with terms: | |
363 | ||
364 | a) Disclaiming warranty or limiting liability differently from the | |
365 | terms of sections 15 and 16 of this License; or | |
366 | ||
367 | b) Requiring preservation of specified reasonable legal notices or | |
368 | author attributions in that material or in the Appropriate Legal | |
369 | Notices displayed by works containing it; or | |
370 | ||
371 | c) Prohibiting misrepresentation of the origin of that material, or | |
372 | requiring that modified versions of such material be marked in | |
373 | reasonable ways as different from the original version; or | |
374 | ||
375 | d) Limiting the use for publicity purposes of names of licensors or | |
376 | authors of the material; or | |
377 | ||
378 | e) Declining to grant rights under trademark law for use of some | |
379 | trade names, trademarks, or service marks; or | |
380 | ||
381 | f) Requiring indemnification of licensors and authors of that | |
382 | material by anyone who conveys the material (or modified versions of | |
383 | it) with contractual assumptions of liability to the recipient, for | |
384 | any liability that these contractual assumptions directly impose on | |
385 | those licensors and authors. | |
386 | ||
387 | All other non-permissive additional terms are considered "further | |
388 | restrictions" within the meaning of section 10. If the Program as you | |
389 | received it, or any part of it, contains a notice stating that it is | |
390 | governed by this License along with a term that is a further | |
391 | restriction, you may remove that term. If a license document contains | |
392 | a further restriction but permits relicensing or conveying under this | |
393 | License, you may add to a covered work material governed by the terms | |
394 | of that license document, provided that the further restriction does | |
395 | not survive such relicensing or conveying. | |
396 | ||
397 | If you add terms to a covered work in accord with this section, you | |
398 | must place, in the relevant source files, a statement of the | |
399 | additional terms that apply to those files, or a notice indicating | |
400 | where to find the applicable terms. | |
401 | ||
402 | Additional terms, permissive or non-permissive, may be stated in the | |
403 | form of a separately written license, or stated as exceptions; | |
404 | the above requirements apply either way. | |
405 | ||
406 | 8. Termination. | |
407 | ||
408 | You may not propagate or modify a covered work except as expressly | |
409 | provided under this License. Any attempt otherwise to propagate or | |
410 | modify it is void, and will automatically terminate your rights under | |
411 | this License (including any patent licenses granted under the third | |
412 | paragraph of section 11). | |
413 | ||
414 | However, if you cease all violation of this License, then your | |
415 | license from a particular copyright holder is reinstated (a) | |
416 | provisionally, unless and until the copyright holder explicitly and | |
417 | finally terminates your license, and (b) permanently, if the copyright | |
418 | holder fails to notify you of the violation by some reasonable means | |
419 | prior to 60 days after the cessation. | |
420 | ||
421 | Moreover, your license from a particular copyright holder is | |
422 | reinstated permanently if the copyright holder notifies you of the | |
423 | violation by some reasonable means, this is the first time you have | |
424 | received notice of violation of this License (for any work) from that | |
425 | copyright holder, and you cure the violation prior to 30 days after | |
426 | your receipt of the notice. | |
427 | ||
428 | Termination of your rights under this section does not terminate the | |
429 | licenses of parties who have received copies or rights from you under | |
430 | this License. If your rights have been terminated and not permanently | |
431 | reinstated, you do not qualify to receive new licenses for the same | |
432 | material under section 10. | |
433 | ||
434 | 9. Acceptance Not Required for Having Copies. | |
435 | ||
436 | You are not required to accept this License in order to receive or | |
437 | run a copy of the Program. Ancillary propagation of a covered work | |
438 | occurring solely as a consequence of using peer-to-peer transmission | |
439 | to receive a copy likewise does not require acceptance. However, | |
440 | nothing other than this License grants you permission to propagate or | |
441 | modify any covered work. These actions infringe copyright if you do | |
442 | not accept this License. Therefore, by modifying or propagating a | |
443 | covered work, you indicate your acceptance of this License to do so. | |
444 | ||
445 | 10. Automatic Licensing of Downstream Recipients. | |
446 | ||
447 | Each time you convey a covered work, the recipient automatically | |
448 | receives a license from the original licensors, to run, modify and | |
449 | propagate that work, subject to this License. You are not responsible | |
450 | for enforcing compliance by third parties with this License. | |
451 | ||
452 | An "entity transaction" is a transaction transferring control of an | |
453 | organization, or substantially all assets of one, or subdividing an | |
454 | organization, or merging organizations. If propagation of a covered | |
455 | work results from an entity transaction, each party to that | |
456 | transaction who receives a copy of the work also receives whatever | |
457 | licenses to the work the party's predecessor in interest had or could | |
458 | give under the previous paragraph, plus a right to possession of the | |
459 | Corresponding Source of the work from the predecessor in interest, if | |
460 | the predecessor has it or can get it with reasonable efforts. | |
461 | ||
462 | You may not impose any further restrictions on the exercise of the | |
463 | rights granted or affirmed under this License. For example, you may | |
464 | not impose a license fee, royalty, or other charge for exercise of | |
465 | rights granted under this License, and you may not initiate litigation | |
466 | (including a cross-claim or counterclaim in a lawsuit) alleging that | |
467 | any patent claim is infringed by making, using, selling, offering for | |
468 | sale, or importing the Program or any portion of it. | |
469 | ||
470 | 11. Patents. | |
471 | ||
472 | A "contributor" is a copyright holder who authorizes use under this | |
473 | License of the Program or a work on which the Program is based. The | |
474 | work thus licensed is called the contributor's "contributor version". | |
475 | ||
476 | A contributor's "essential patent claims" are all patent claims | |
477 | owned or controlled by the contributor, whether already acquired or | |
478 | hereafter acquired, that would be infringed by some manner, permitted | |
479 | by this License, of making, using, or selling its contributor version, | |
480 | but do not include claims that would be infringed only as a | |
481 | consequence of further modification of the contributor version. For | |
482 | purposes of this definition, "control" includes the right to grant | |
483 | patent sublicenses in a manner consistent with the requirements of | |
194 | 484 | this License. |
195 | 485 | |
196 | 7. If, as a consequence of a court judgment or allegation of patent | |
197 | infringement or for any other reason (not limited to patent issues), | |
198 | conditions are imposed on you (whether by court order, agreement or | |
486 | Each contributor grants you a non-exclusive, worldwide, royalty-free | |
487 | patent license under the contributor's essential patent claims, to | |
488 | make, use, sell, offer for sale, import and otherwise run, modify and | |
489 | propagate the contents of its contributor version. | |
490 | ||
491 | In the following three paragraphs, a "patent license" is any express | |
492 | agreement or commitment, however denominated, not to enforce a patent | |
493 | (such as an express permission to practice a patent or covenant not to | |
494 | sue for patent infringement). To "grant" such a patent license to a | |
495 | party means to make such an agreement or commitment not to enforce a | |
496 | patent against the party. | |
497 | ||
498 | If you convey a covered work, knowingly relying on a patent license, | |
499 | and the Corresponding Source of the work is not available for anyone | |
500 | to copy, free of charge and under the terms of this License, through a | |
501 | publicly available network server or other readily accessible means, | |
502 | then you must either (1) cause the Corresponding Source to be so | |
503 | available, or (2) arrange to deprive yourself of the benefit of the | |
504 | patent license for this particular work, or (3) arrange, in a manner | |
505 | consistent with the requirements of this License, to extend the patent | |
506 | license to downstream recipients. "Knowingly relying" means you have | |
507 | actual knowledge that, but for the patent license, your conveying the | |
508 | covered work in a country, or your recipient's use of the covered work | |
509 | in a country, would infringe one or more identifiable patents in that | |
510 | country that you have reason to believe are valid. | |
511 | ||
512 | If, pursuant to or in connection with a single transaction or | |
513 | arrangement, you convey, or propagate by procuring conveyance of, a | |
514 | covered work, and grant a patent license to some of the parties | |
515 | receiving the covered work authorizing them to use, propagate, modify | |
516 | or convey a specific copy of the covered work, then the patent license | |
517 | you grant is automatically extended to all recipients of the covered | |
518 | work and works based on it. | |
519 | ||
520 | A patent license is "discriminatory" if it does not include within | |
521 | the scope of its coverage, prohibits the exercise of, or is | |
522 | conditioned on the non-exercise of one or more of the rights that are | |
523 | specifically granted under this License. You may not convey a covered | |
524 | work if you are a party to an arrangement with a third party that is | |
525 | in the business of distributing software, under which you make payment | |
526 | to the third party based on the extent of your activity of conveying | |
527 | the work, and under which the third party grants, to any of the | |
528 | parties who would receive the covered work from you, a discriminatory | |
529 | patent license (a) in connection with copies of the covered work | |
530 | conveyed by you (or copies made from those copies), or (b) primarily | |
531 | for and in connection with specific products or compilations that | |
532 | contain the covered work, unless you entered into that arrangement, | |
533 | or that patent license was granted, prior to 28 March 2007. | |
534 | ||
535 | Nothing in this License shall be construed as excluding or limiting | |
536 | any implied license or other defenses to infringement that may | |
537 | otherwise be available to you under applicable patent law. | |
538 | ||
539 | 12. No Surrender of Others' Freedom. | |
540 | ||
541 | If conditions are imposed on you (whether by court order, agreement or | |
199 | 542 | otherwise) that contradict the conditions of this License, they do not |
200 | excuse you from the conditions of this License. If you cannot | |
201 | distribute so as to satisfy simultaneously your obligations under this | |
202 | License and any other pertinent obligations, then as a consequence you | |
203 | may not distribute the Program at all. For example, if a patent | |
204 | license would not permit royalty-free redistribution of the Program by | |
205 | all those who receive copies directly or indirectly through you, then | |
206 | the only way you could satisfy both it and this License would be to | |
207 | refrain entirely from distribution of the Program. | |
208 | ||
209 | If any portion of this section is held invalid or unenforceable under | |
210 | any particular circumstance, the balance of the section is intended to | |
211 | apply and the section as a whole is intended to apply in other | |
212 | circumstances. | |
213 | ||
214 | It is not the purpose of this section to induce you to infringe any | |
215 | patents or other property right claims or to contest validity of any | |
216 | such claims; this section has the sole purpose of protecting the | |
217 | integrity of the free software distribution system, which is | |
218 | implemented by public license practices. Many people have made | |
219 | generous contributions to the wide range of software distributed | |
220 | through that system in reliance on consistent application of that | |
221 | system; it is up to the author/donor to decide if he or she is willing | |
222 | to distribute software through any other system and a licensee cannot | |
223 | impose that choice. | |
224 | ||
225 | This section is intended to make thoroughly clear what is believed to | |
226 | be a consequence of the rest of this License. | |
227 | ||
228 | 8. If the distribution and/or use of the Program is restricted in | |
229 | certain countries either by patents or by copyrighted interfaces, the | |
230 | original copyright holder who places the Program under this License | |
231 | may add an explicit geographical distribution limitation excluding | |
232 | those countries, so that distribution is permitted only in or among | |
233 | countries not thus excluded. In such case, this License incorporates | |
234 | the limitation as if written in the body of this License. | |
235 | ||
236 | 9. The Free Software Foundation may publish revised and/or new versions | |
237 | of the General Public License from time to time. Such new versions will | |
543 | excuse you from the conditions of this License. If you cannot convey a | |
544 | covered work so as to satisfy simultaneously your obligations under this | |
545 | License and any other pertinent obligations, then as a consequence you may | |
546 | not convey it at all. For example, if you agree to terms that obligate you | |
547 | to collect a royalty for further conveying from those to whom you convey | |
548 | the Program, the only way you could satisfy both those terms and this | |
549 | License would be to refrain entirely from conveying the Program. | |
550 | ||
551 | 13. Use with the GNU Affero General Public License. | |
552 | ||
553 | Notwithstanding any other provision of this License, you have | |
554 | permission to link or combine any covered work with a work licensed | |
555 | under version 3 of the GNU Affero General Public License into a single | |
556 | combined work, and to convey the resulting work. The terms of this | |
557 | License will continue to apply to the part which is the covered work, | |
558 | but the special requirements of the GNU Affero General Public License, | |
559 | section 13, concerning interaction through a network will apply to the | |
560 | combination as such. | |
561 | ||
562 | 14. Revised Versions of this License. | |
563 | ||
564 | The Free Software Foundation may publish revised and/or new versions of | |
565 | the GNU General Public License from time to time. Such new versions will | |
238 | 566 | be similar in spirit to the present version, but may differ in detail to |
239 | 567 | address new problems or concerns. |
240 | 568 | |
241 | Each version is given a distinguishing version number. If the Program | |
242 | specifies a version number of this License which applies to it and "any | |
243 | later version", you have the option of following the terms and conditions | |
244 | either of that version or of any later version published by the Free | |
245 | Software Foundation. If the Program does not specify a version number of | |
246 | this License, you may choose any version ever published by the Free Software | |
247 | Foundation. | |
248 | ||
249 | 10. If you wish to incorporate parts of the Program into other free | |
250 | programs whose distribution conditions are different, write to the author | |
251 | to ask for permission. For software which is copyrighted by the Free | |
252 | Software Foundation, write to the Free Software Foundation; we sometimes | |
253 | make exceptions for this. Our decision will be guided by the two goals | |
254 | of preserving the free status of all derivatives of our free software and | |
255 | of promoting the sharing and reuse of software generally. | |
256 | ||
257 | NO WARRANTY | |
258 | ||
259 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
260 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
261 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
262 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
263 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
264 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
265 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
266 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
267 | REPAIR OR CORRECTION. | |
268 | ||
269 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
270 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
271 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
272 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
273 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
274 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
275 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
276 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
277 | POSSIBILITY OF SUCH DAMAGES. | |
278 | ||
279 | END OF TERMS AND CONDITIONS | |
280 | ||
281 | How to Apply These Terms to Your New Programs | |
569 | Each version is given a distinguishing version number. If the | |
570 | Program specifies that a certain numbered version of the GNU General | |
571 | Public License "or any later version" applies to it, you have the | |
572 | option of following the terms and conditions either of that numbered | |
573 | version or of any later version published by the Free Software | |
574 | Foundation. If the Program does not specify a version number of the | |
575 | GNU General Public License, you may choose any version ever published | |
576 | by the Free Software Foundation. | |
577 | ||
578 | If the Program specifies that a proxy can decide which future | |
579 | versions of the GNU General Public License can be used, that proxy's | |
580 | public statement of acceptance of a version permanently authorizes you | |
581 | to choose that version for the Program. | |
582 | ||
583 | Later license versions may give you additional or different | |
584 | permissions. However, no additional obligations are imposed on any | |
585 | author or copyright holder as a result of your choosing to follow a | |
586 | later version. | |
587 | ||
588 | 15. Disclaimer of Warranty. | |
589 | ||
590 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | |
591 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | |
592 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | |
593 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | |
594 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
595 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | |
596 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | |
597 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | |
598 | ||
599 | 16. Limitation of Liability. | |
600 | ||
601 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
602 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | |
603 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | |
604 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | |
605 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | |
606 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | |
607 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | |
608 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | |
609 | SUCH DAMAGES. | |
610 | ||
611 | 17. Interpretation of Sections 15 and 16. | |
612 | ||
613 | If the disclaimer of warranty and limitation of liability provided | |
614 | above cannot be given local legal effect according to their terms, | |
615 | reviewing courts shall apply local law that most closely approximates | |
616 | an absolute waiver of all civil liability in connection with the | |
617 | Program, unless a warranty or assumption of liability accompanies a | |
618 | copy of the Program in return for a fee. | |
619 | ||
620 | END OF TERMS AND CONDITIONS | |
621 | ||
622 | How to Apply These Terms to Your New Programs | |
282 | 623 | |
283 | 624 | If you develop a new program, and you want it to be of the greatest |
284 | 625 | possible use to the public, the best way to achieve this is to make it |
286 | 627 | |
287 | 628 | To do so, attach the following notices to the program. It is safest |
288 | 629 | to attach them to the start of each source file to most effectively |
289 | convey the exclusion of warranty; and each file should have at least | |
630 | state the exclusion of warranty; and each file should have at least | |
290 | 631 | the "copyright" line and a pointer to where the full notice is found. |
291 | 632 | |
292 | 633 | <one line to give the program's name and a brief idea of what it does.> |
293 | Copyright (C) 19yy <name of author> | |
294 | ||
295 | This program is free software; you can redistribute it and/or modify | |
634 | Copyright (C) <year> <name of author> | |
635 | ||
636 | This program is free software: you can redistribute it and/or modify | |
296 | 637 | it under the terms of the GNU General Public License as published by |
297 | the Free Software Foundation; either version 2 of the License, or | |
638 | the Free Software Foundation, either version 3 of the License, or | |
298 | 639 | (at your option) any later version. |
299 | 640 | |
300 | 641 | This program is distributed in the hope that it will be useful, |
303 | 644 | GNU General Public License for more details. |
304 | 645 | |
305 | 646 | You should have received a copy of the GNU General Public License |
306 | along with this program; if not, write to the Free Software | |
307 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
308 | ||
647 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
309 | 648 | |
310 | 649 | Also add information on how to contact you by electronic and paper mail. |
311 | 650 | |
312 | If the program is interactive, make it output a short notice like this | |
313 | when it starts in an interactive mode: | |
314 | ||
315 | Gnomovision version 69, Copyright (C) 19yy name of author | |
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
651 | If the program does terminal interaction, make it output a short | |
652 | notice like this when it starts in an interactive mode: | |
653 | ||
654 | <program> Copyright (C) <year> <name of author> | |
655 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
317 | 656 | This is free software, and you are welcome to redistribute it |
318 | 657 | under certain conditions; type `show c' for details. |
319 | 658 | |
320 | 659 | The hypothetical commands `show w' and `show c' should show the appropriate |
321 | parts of the General Public License. Of course, the commands you use may | |
322 | be called something other than `show w' and `show c'; they could even be | |
323 | mouse-clicks or menu items--whatever suits your program. | |
324 | ||
325 | You should also get your employer (if you work as a programmer) or your | |
326 | school, if any, to sign a "copyright disclaimer" for the program, if | |
327 | necessary. Here is a sample; alter the names: | |
328 | ||
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
331 | ||
332 | <signature of Ty Coon>, 1 April 1989 | |
333 | Ty Coon, President of Vice | |
334 | ||
335 | This General Public License does not permit incorporating your program into | |
336 | proprietary programs. If your program is a subroutine library, you may | |
337 | consider it more useful to permit linking proprietary applications with the | |
338 | library. If this is what you want to do, use the GNU Library General | |
339 | Public License instead of this License. | |
660 | parts of the General Public License. Of course, your program's commands | |
661 | might be different; for a GUI interface, you would use an "about box". | |
662 | ||
663 | You should also get your employer (if you work as a programmer) or school, | |
664 | if any, to sign a "copyright disclaimer" for the program, if necessary. | |
665 | For more information on this, and how to apply and follow the GNU GPL, see | |
666 | <http://www.gnu.org/licenses/>. | |
667 | ||
668 | The GNU General Public License does not permit incorporating your program | |
669 | into proprietary programs. If your program is a subroutine library, you | |
670 | may consider it more useful to permit linking proprietary applications with | |
671 | the library. If this is what you want to do, use the GNU Lesser General | |
672 | Public License instead of this License. But first, please read | |
673 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. |
0 | 0.21.2: | |
1 | - added feof() calls to fgets() and fgetchar() instances so end-of | |
2 | file is correctly determined under AIX | |
3 | - supplemented code to handle special characters specified with | |
4 | two hex characters (e.g. \'81\'83) as output by some RTF | |
5 | writers. This code is experimental, and uses the SHIFT_JIS | |
6 | codepage for conversion. | |
7 | - definitions in html.config changed to ensure values of markup variables | |
8 | are enclosed in double quotes, e.g. size="3" instead of size=3. This | |
9 | is a first step towards supporting production of XHTML. | |
10 | 0.21.1: | |
11 | - fixed strings in unicode_to_string() (unicode.c) to be null | |
12 | terminated instead of newline terminated. This prevents spurious | |
13 | newline output after characters in Symbol font. It also overcomes a | |
14 | fault whereby characters in the symbol font were being output as | |
15 | unicode instead of the desired entities defined in the output | |
16 | specification. | |
17 | - suppressed output of <font face="Symbol"> as this is wrong if | |
18 | characters are changed to unicode or entities | |
19 | - changed path set with -P to be directory containing the output | |
20 | charmaps specifications, and changed the default path to | |
21 | /usr/local/lib/unrtf for the same reason. This makes it possible | |
22 | to set a different default path, useful for example if one cannot | |
23 | install files in /usr/local/lib. | |
24 | - dropped "outputs" and "charmaps" sub-directories in the configuration | |
25 | directory. Output configuration files are now named "html.conf", | |
26 | "text.conf" etc. and the symbol font charmap file is "SYMBOL.charmap". | |
27 | - charmap specifications now sought in the search path | |
28 | - compensate for RTF with unicodes specified as negative numbers, | |
29 | possibly due to overflow on a 16bit machine? | |
30 | - changed processing of --html (etc.) args so that "-t html" and | |
31 | "--html" are equivalent, i.e. both subject to search path set with | |
32 | "-P" |
0 | Installation Instructions | |
1 | ************************* | |
2 | ||
3 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free | |
4 | Software Foundation, Inc. | |
5 | ||
6 | This file is free documentation; the Free Software Foundation gives | |
7 | unlimited permission to copy, distribute and modify it. | |
8 | ||
9 | Basic Installation | |
10 | ================== | |
11 | ||
12 | These are generic installation instructions. | |
13 | ||
14 | The `configure' shell script attempts to guess correct values for | |
15 | various system-dependent variables used during compilation. It uses | |
16 | those values to create a `Makefile' in each directory of the package. | |
17 | It may also create one or more `.h' files containing system-dependent | |
18 | definitions. Finally, it creates a shell script `config.status' that | |
19 | you can run in the future to recreate the current configuration, and a | |
20 | file `config.log' containing compiler output (useful mainly for | |
21 | debugging `configure'). | |
22 | ||
23 | It can also use an optional file (typically called `config.cache' | |
24 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | |
25 | the results of its tests to speed up reconfiguring. (Caching is | |
26 | disabled by default to prevent problems with accidental use of stale | |
27 | cache files.) | |
28 | ||
29 | If you need to do unusual things to compile the package, please try | |
30 | to figure out how `configure' could check whether to do them, and mail | |
31 | diffs or instructions to the address given in the `README' so they can | |
32 | be considered for the next release. If you are using the cache, and at | |
33 | some point `config.cache' contains results you don't want to keep, you | |
34 | may remove or edit it. | |
35 | ||
36 | The file `configure.ac' (or `configure.in') is used to create | |
37 | `configure' by a program called `autoconf'. You only need | |
38 | `configure.ac' if you want to change it or regenerate `configure' using | |
39 | a newer version of `autoconf'. | |
40 | ||
41 | The simplest way to compile this package is: | |
42 | ||
43 | 1. `cd' to the directory containing the package's source code and type | |
44 | `./configure' to configure the package for your system. If you're | |
45 | using `csh' on an old version of System V, you might need to type | |
46 | `sh ./configure' instead to prevent `csh' from trying to execute | |
47 | `configure' itself. | |
48 | ||
49 | Running `configure' takes awhile. While running, it prints some | |
50 | messages telling which features it is checking for. | |
51 | ||
52 | 2. Type `make' to compile the package. | |
53 | ||
54 | 3. Optionally, type `make check' to run any self-tests that come with | |
55 | the package. | |
56 | ||
57 | 4. Type `make install' to install the programs and any data files and | |
58 | documentation. | |
59 | ||
60 | 5. You can remove the program binaries and object files from the | |
61 | source code directory by typing `make clean'. To also remove the | |
62 | files that `configure' created (so you can compile the package for | |
63 | a different kind of computer), type `make distclean'. There is | |
64 | also a `make maintainer-clean' target, but that is intended mainly | |
65 | for the package's developers. If you use it, you may have to get | |
66 | all sorts of other programs in order to regenerate files that came | |
67 | with the distribution. | |
68 | ||
69 | Compilers and Options | |
70 | ===================== | |
71 | ||
72 | Some systems require unusual options for compilation or linking that the | |
73 | `configure' script does not know about. Run `./configure --help' for | |
74 | details on some of the pertinent environment variables. | |
75 | ||
76 | You can give `configure' initial values for configuration parameters | |
77 | by setting variables in the command line or in the environment. Here | |
78 | is an example: | |
79 | ||
80 | ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix | |
81 | ||
82 | *Note Defining Variables::, for more details. | |
83 | ||
84 | Compiling For Multiple Architectures | |
85 | ==================================== | |
86 | ||
87 | You can compile the package for more than one kind of computer at the | |
88 | same time, by placing the object files for each architecture in their | |
89 | own directory. To do this, you must use a version of `make' that | |
90 | supports the `VPATH' variable, such as GNU `make'. `cd' to the | |
91 | directory where you want the object files and executables to go and run | |
92 | the `configure' script. `configure' automatically checks for the | |
93 | source code in the directory that `configure' is in and in `..'. | |
94 | ||
95 | If you have to use a `make' that does not support the `VPATH' | |
96 | variable, you have to compile the package for one architecture at a | |
97 | time in the source code directory. After you have installed the | |
98 | package for one architecture, use `make distclean' before reconfiguring | |
99 | for another architecture. | |
100 | ||
101 | Installation Names | |
102 | ================== | |
103 | ||
104 | By default, `make install' will install the package's files in | |
105 | `/usr/local/bin', `/usr/local/man', etc. You can specify an | |
106 | installation prefix other than `/usr/local' by giving `configure' the | |
107 | option `--prefix=PREFIX'. | |
108 | ||
109 | You can specify separate installation prefixes for | |
110 | architecture-specific files and architecture-independent files. If you | |
111 | give `configure' the option `--exec-prefix=PREFIX', the package will | |
112 | use PREFIX as the prefix for installing programs and libraries. | |
113 | Documentation and other data files will still use the regular prefix. | |
114 | ||
115 | In addition, if you use an unusual directory layout you can give | |
116 | options like `--bindir=DIR' to specify different values for particular | |
117 | kinds of files. Run `configure --help' for a list of the directories | |
118 | you can set and what kinds of files go in them. | |
119 | ||
120 | If the package supports it, you can cause programs to be installed | |
121 | with an extra prefix or suffix on their names by giving `configure' the | |
122 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |
123 | ||
124 | Optional Features | |
125 | ================= | |
126 | ||
127 | Some packages pay attention to `--enable-FEATURE' options to | |
128 | `configure', where FEATURE indicates an optional part of the package. | |
129 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | |
130 | is something like `gnu-as' or `x' (for the X Window System). The | |
131 | `README' should mention any `--enable-' and `--with-' options that the | |
132 | package recognizes. | |
133 | ||
134 | For packages that use the X Window System, `configure' can usually | |
135 | find the X include and library files automatically, but if it doesn't, | |
136 | you can use the `configure' options `--x-includes=DIR' and | |
137 | `--x-libraries=DIR' to specify their locations. | |
138 | ||
139 | Specifying the System Type | |
140 | ========================== | |
141 | ||
142 | There may be some features `configure' cannot figure out automatically, | |
143 | but needs to determine by the type of machine the package will run on. | |
144 | Usually, assuming the package is built to be run on the _same_ | |
145 | architectures, `configure' can figure that out, but if it prints a | |
146 | message saying it cannot guess the machine type, give it the | |
147 | `--build=TYPE' option. TYPE can either be a short name for the system | |
148 | type, such as `sun4', or a canonical name which has the form: | |
149 | ||
150 | CPU-COMPANY-SYSTEM | |
151 | ||
152 | where SYSTEM can have one of these forms: | |
153 | ||
154 | OS KERNEL-OS | |
155 | ||
156 | See the file `config.sub' for the possible values of each field. If | |
157 | `config.sub' isn't included in this package, then this package doesn't | |
158 | need to know the machine type. | |
159 | ||
160 | If you are _building_ compiler tools for cross-compiling, you should | |
161 | use the `--target=TYPE' option to select the type of system they will | |
162 | produce code for. | |
163 | ||
164 | If you want to _use_ a cross compiler, that generates code for a | |
165 | platform different from the build platform, you should specify the | |
166 | "host" platform (i.e., that on which the generated programs will | |
167 | eventually be run) with `--host=TYPE'. | |
168 | ||
169 | Sharing Defaults | |
170 | ================ | |
171 | ||
172 | If you want to set default values for `configure' scripts to share, you | |
173 | can create a site shell script called `config.site' that gives default | |
174 | values for variables like `CC', `cache_file', and `prefix'. | |
175 | `configure' looks for `PREFIX/share/config.site' if it exists, then | |
176 | `PREFIX/etc/config.site' if it exists. Or, you can set the | |
177 | `CONFIG_SITE' environment variable to the location of the site script. | |
178 | A warning: not all `configure' scripts look for a site script. | |
179 | ||
180 | Defining Variables | |
181 | ================== | |
182 | ||
183 | Variables not defined in a site shell script can be set in the | |
184 | environment passed to `configure'. However, some packages may run | |
185 | configure again during the build, and the customized values of these | |
186 | variables may be lost. In order to avoid this problem, you should set | |
187 | them in the `configure' command line, using `VAR=value'. For example: | |
188 | ||
189 | ./configure CC=/usr/local2/bin/gcc | |
190 | ||
191 | will cause the specified gcc to be used as the C compiler (unless it is | |
192 | overridden in the site shell script). | |
193 | ||
194 | `configure' Invocation | |
195 | ====================== | |
196 | ||
197 | `configure' recognizes the following options to control how it operates. | |
198 | ||
199 | `--help' | |
200 | `-h' | |
201 | Print a summary of the options to `configure', and exit. | |
202 | ||
203 | `--version' | |
204 | `-V' | |
205 | Print the version of Autoconf used to generate the `configure' | |
206 | script, and exit. | |
207 | ||
208 | `--cache-file=FILE' | |
209 | Enable the cache: use and save the results of the tests in FILE, | |
210 | traditionally `config.cache'. FILE defaults to `/dev/null' to | |
211 | disable caching. | |
212 | ||
213 | `--config-cache' | |
214 | `-C' | |
215 | Alias for `--cache-file=config.cache'. | |
216 | ||
217 | `--quiet' | |
218 | `--silent' | |
219 | `-q' | |
220 | Do not print messages saying which checks are being made. To | |
221 | suppress all normal output, redirect it to `/dev/null' (any error | |
222 | messages will still be shown). | |
223 | ||
224 | `--srcdir=DIR' | |
225 | Look for the package's source code in directory DIR. Usually | |
226 | `configure' can determine that directory automatically. | |
227 | ||
228 | `configure' also accepts some other, not widely useful, options. Run | |
229 | `configure --help' for more details. | |
230 |
0 | ||
1 | ############################################################################## | |
2 | # GNU UnRTF, a command-line program to convert RTF documents to other formats. | |
3 | # Copyright (C) 2000,2001 Zachary Thayer Smith | |
4 | # | |
5 | # This program is free software; you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | # | |
19 | # The author is reachable by electronic mail at tuorfa@yahoo.com. | |
20 | ############################################################################## | |
21 | ||
22 | # | |
23 | # Makefile for UnRTF | |
24 | # | |
25 | ||
26 | ||
27 | CFLAGS=-g -Wall | |
28 | CC=gcc | |
29 | ||
30 | OBJS=convert.o word.o error.o main.o hash.o \ | |
31 | parse.o malloc.o attr.o util.o \ | |
32 | output.o html.o text.o vt.o ps.o latex.o wpml.o entity.o | |
33 | ||
34 | TARGET=unrtf | |
35 | ||
36 | ${TARGET}: ${OBJS} | |
37 | gcc ${OBJS} -o ${TARGET} | |
38 | ||
39 | clean: | |
40 | rm -f ${OBJS} ${TARGET} bcount bcount.o | |
41 | ||
42 | tidy: | |
43 | rm -f ${OBJS} bcount.o | |
44 | strip ${TARGET} | |
45 | ||
46 | tests: | |
47 | ${TARGET} test/table.rtf > test/table.html | |
48 | ${TARGET} test/slashnewline.rtf > test/slashnewline.html | |
49 | ${TARGET} test/fontface.rtf > test/fontface.html | |
50 | ${TARGET} test/fontsize.rtf > test/fontsize.html | |
51 | ||
52 | bcount: bcount.c | |
53 | gcc bcount.c -o bcount | |
54 | ||
55 | all: ${TARGET} bcount | |
56 | rm -f ${OBJS} | |
57 | ||
58 | install: ${TARGET} | |
59 | cp ${TARGET} /usr/local/bin | |
60 | ||
61 | attr.o: attr.c defs.h error.h attr.h main.h malloc.h | |
62 | convert.o: convert.c attr.h convert.h defs.h error.h hash.h main.h malloc.h \ | |
63 | parse.h util.h word.h | |
64 | entity.o: entity.c | |
65 | error.o: error.c defs.h main.h | |
66 | hash.o: hash.c error.h hash.h main.h malloc.h | |
67 | html.o: html.c defs.h error.h main.h malloc.h output.h | |
68 | latex.o: latex.c defs.h error.h main.h malloc.h output.h | |
69 | main.o: main.c convert.h defs.h error.h hash.h html.h latex.h output.h \ | |
70 | parse.h ps.h text.h vt.h wpml.h word.h | |
71 | malloc.o: malloc.c error.h | |
72 | output.o: output.c convert.h defs.h error.h main.h malloc.h output.h | |
73 | parse.o: parse.c defs.h error.h main.h malloc.h parse.h word.h | |
74 | ps.o: ps.c defs.h error.h main.h malloc.h output.h | |
75 | text.o: text.c defs.h error.h main.h malloc.h output.h | |
76 | util.o: util.c | |
77 | vt.o: vt.c defs.h error.h main.h malloc.h output.h | |
78 | word.o: word.c defs.h error.h hash.h main.h malloc.h parse.h word.h | |
79 | wpml.o: wpml.c defs.h error.h main.h malloc.h output.h |
0 | # this is the main Makefile.am | |
1 | ||
2 | # first of all, parse the subdirectories in the order given | |
3 | SUBDIRS = src tests doc patches charmaps outputs | |
4 | ||
5 | # then do stuff in this directory. Actually, we just need to add the | |
6 | # bootstrap script to the distribution (for curious users, not really needed). | |
7 | ||
8 | EXTRA_DIST = bootstrap |
0 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
5 | # Inc. | |
6 | # This Makefile.in is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy and/or distribute it, | |
8 | # with or without modifications, as long as this notice is preserved. | |
9 | ||
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
13 | # PARTICULAR PURPOSE. | |
14 | ||
15 | @SET_MAKE@ | |
16 | ||
17 | # this is the main Makefile.am | |
18 | VPATH = @srcdir@ | |
19 | pkgdatadir = $(datadir)/@PACKAGE@ | |
20 | pkgincludedir = $(includedir)/@PACKAGE@ | |
21 | pkglibdir = $(libdir)/@PACKAGE@ | |
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
24 | install_sh_DATA = $(install_sh) -c -m 644 | |
25 | install_sh_PROGRAM = $(install_sh) -c | |
26 | install_sh_SCRIPT = $(install_sh) -c | |
27 | INSTALL_HEADER = $(INSTALL_DATA) | |
28 | transform = $(program_transform_name) | |
29 | NORMAL_INSTALL = : | |
30 | PRE_INSTALL = : | |
31 | POST_INSTALL = : | |
32 | NORMAL_UNINSTALL = : | |
33 | PRE_UNINSTALL = : | |
34 | POST_UNINSTALL = : | |
35 | build_triplet = @build@ | |
36 | host_triplet = @host@ | |
37 | subdir = . | |
38 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
39 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
40 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ | |
41 | config/config.guess config/config.sub config/depcomp \ | |
42 | config/install-sh config/missing | |
43 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
44 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
45 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
46 | $(ACLOCAL_M4) | |
47 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
48 | configure.lineno config.status.lineno | |
49 | mkinstalldirs = $(install_sh) -d | |
50 | CONFIG_HEADER = config.h | |
51 | CONFIG_CLEAN_FILES = | |
52 | CONFIG_CLEAN_VPATH_FILES = | |
53 | SOURCES = | |
54 | DIST_SOURCES = | |
55 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
56 | html-recursive info-recursive install-data-recursive \ | |
57 | install-dvi-recursive install-exec-recursive \ | |
58 | install-html-recursive install-info-recursive \ | |
59 | install-pdf-recursive install-ps-recursive install-recursive \ | |
60 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
61 | ps-recursive uninstall-recursive | |
62 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
63 | distclean-recursive maintainer-clean-recursive | |
64 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
65 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
66 | distdir dist dist-all distcheck | |
67 | ETAGS = etags | |
68 | CTAGS = ctags | |
69 | DIST_SUBDIRS = $(SUBDIRS) | |
70 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
71 | distdir = $(PACKAGE)-$(VERSION) | |
72 | top_distdir = $(distdir) | |
73 | am__remove_distdir = \ | |
74 | { test ! -d "$(distdir)" \ | |
75 | || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
76 | && rm -fr "$(distdir)"; }; } | |
77 | am__relativize = \ | |
78 | dir0=`pwd`; \ | |
79 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
80 | sed_rest='s,^[^/]*/*,,'; \ | |
81 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
82 | sed_butlast='s,/*[^/]*$$,,'; \ | |
83 | while test -n "$$dir1"; do \ | |
84 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
85 | if test "$$first" != "."; then \ | |
86 | if test "$$first" = ".."; then \ | |
87 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
88 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
89 | else \ | |
90 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
91 | if test "$$first2" = "$$first"; then \ | |
92 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
93 | else \ | |
94 | dir2="../$$dir2"; \ | |
95 | fi; \ | |
96 | dir0="$$dir0"/"$$first"; \ | |
97 | fi; \ | |
98 | fi; \ | |
99 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
100 | done; \ | |
101 | reldir="$$dir2" | |
102 | DIST_ARCHIVES = $(distdir).tar.gz | |
103 | GZIP_ENV = --best | |
104 | distuninstallcheck_listfiles = find . -type f -print | |
105 | distcleancheck_listfiles = find . -type f -print | |
106 | ACLOCAL = @ACLOCAL@ | |
107 | AMTAR = @AMTAR@ | |
108 | AUTOCONF = @AUTOCONF@ | |
109 | AUTOHEADER = @AUTOHEADER@ | |
110 | AUTOMAKE = @AUTOMAKE@ | |
111 | AWK = @AWK@ | |
112 | CC = @CC@ | |
113 | CCDEPMODE = @CCDEPMODE@ | |
114 | CFLAGS = @CFLAGS@ | |
115 | CPP = @CPP@ | |
116 | CPPFLAGS = @CPPFLAGS@ | |
117 | CYGPATH_W = @CYGPATH_W@ | |
118 | DEFS = @DEFS@ | |
119 | DEPDIR = @DEPDIR@ | |
120 | ECHO_C = @ECHO_C@ | |
121 | ECHO_N = @ECHO_N@ | |
122 | ECHO_T = @ECHO_T@ | |
123 | EGREP = @EGREP@ | |
124 | EXEEXT = @EXEEXT@ | |
125 | GREP = @GREP@ | |
126 | INSTALL = @INSTALL@ | |
127 | INSTALL_DATA = @INSTALL_DATA@ | |
128 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
129 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
130 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
131 | LDFLAGS = @LDFLAGS@ | |
132 | LIBOBJS = @LIBOBJS@ | |
133 | LIBS = @LIBS@ | |
134 | LTLIBOBJS = @LTLIBOBJS@ | |
135 | MAINT = @MAINT@ | |
136 | MAKEINFO = @MAKEINFO@ | |
137 | MKDIR_P = @MKDIR_P@ | |
138 | OBJEXT = @OBJEXT@ | |
139 | PACKAGE = @PACKAGE@ | |
140 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
141 | PACKAGE_NAME = @PACKAGE_NAME@ | |
142 | PACKAGE_STRING = @PACKAGE_STRING@ | |
143 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
144 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
145 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
146 | SET_MAKE = @SET_MAKE@ | |
147 | SHELL = @SHELL@ | |
148 | STRIP = @STRIP@ | |
149 | VERSION = @VERSION@ | |
150 | abs_builddir = @abs_builddir@ | |
151 | abs_srcdir = @abs_srcdir@ | |
152 | abs_top_builddir = @abs_top_builddir@ | |
153 | abs_top_srcdir = @abs_top_srcdir@ | |
154 | ac_ct_CC = @ac_ct_CC@ | |
155 | am__include = @am__include@ | |
156 | am__leading_dot = @am__leading_dot@ | |
157 | am__quote = @am__quote@ | |
158 | am__tar = @am__tar@ | |
159 | am__untar = @am__untar@ | |
160 | bindir = @bindir@ | |
161 | build = @build@ | |
162 | build_alias = @build_alias@ | |
163 | build_cpu = @build_cpu@ | |
164 | build_os = @build_os@ | |
165 | build_vendor = @build_vendor@ | |
166 | builddir = @builddir@ | |
167 | datadir = @datadir@ | |
168 | datarootdir = @datarootdir@ | |
169 | docdir = @docdir@ | |
170 | dvidir = @dvidir@ | |
171 | exec_prefix = @exec_prefix@ | |
172 | host = @host@ | |
173 | host_alias = @host_alias@ | |
174 | host_cpu = @host_cpu@ | |
175 | host_os = @host_os@ | |
176 | host_vendor = @host_vendor@ | |
177 | htmldir = @htmldir@ | |
178 | includedir = @includedir@ | |
179 | infodir = @infodir@ | |
180 | install_sh = @install_sh@ | |
181 | libdir = @libdir@ | |
182 | libexecdir = @libexecdir@ | |
183 | localedir = @localedir@ | |
184 | localstatedir = @localstatedir@ | |
185 | mandir = @mandir@ | |
186 | mkdir_p = @mkdir_p@ | |
187 | oldincludedir = @oldincludedir@ | |
188 | pdfdir = @pdfdir@ | |
189 | prefix = @prefix@ | |
190 | program_transform_name = @program_transform_name@ | |
191 | psdir = @psdir@ | |
192 | sbindir = @sbindir@ | |
193 | sharedstatedir = @sharedstatedir@ | |
194 | srcdir = @srcdir@ | |
195 | sysconfdir = @sysconfdir@ | |
196 | target_alias = @target_alias@ | |
197 | top_build_prefix = @top_build_prefix@ | |
198 | top_builddir = @top_builddir@ | |
199 | top_srcdir = @top_srcdir@ | |
200 | ||
201 | # first of all, parse the subdirectories in the order given | |
202 | SUBDIRS = src tests doc patches charmaps outputs | |
203 | ||
204 | # then do stuff in this directory. Actually, we just need to add the | |
205 | # bootstrap script to the distribution (for curious users, not really needed). | |
206 | EXTRA_DIST = bootstrap | |
207 | all: config.h | |
208 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
209 | ||
210 | .SUFFIXES: | |
211 | am--refresh: | |
212 | @: | |
213 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
214 | @for dep in $?; do \ | |
215 | case '$(am__configure_deps)' in \ | |
216 | *$$dep*) \ | |
217 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
218 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
219 | && exit 0; \ | |
220 | exit 1;; \ | |
221 | esac; \ | |
222 | done; \ | |
223 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
224 | $(am__cd) $(top_srcdir) && \ | |
225 | $(AUTOMAKE) --gnu Makefile | |
226 | .PRECIOUS: Makefile | |
227 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
228 | @case '$?' in \ | |
229 | *config.status*) \ | |
230 | echo ' $(SHELL) ./config.status'; \ | |
231 | $(SHELL) ./config.status;; \ | |
232 | *) \ | |
233 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
234 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
235 | esac; | |
236 | ||
237 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
238 | $(SHELL) ./config.status --recheck | |
239 | ||
240 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
241 | $(am__cd) $(srcdir) && $(AUTOCONF) | |
242 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
243 | $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
244 | $(am__aclocal_m4_deps): | |
245 | ||
246 | config.h: stamp-h1 | |
247 | @if test ! -f $@; then \ | |
248 | rm -f stamp-h1; \ | |
249 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
250 | else :; fi | |
251 | ||
252 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | |
253 | @rm -f stamp-h1 | |
254 | cd $(top_builddir) && $(SHELL) ./config.status config.h | |
255 | $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
256 | ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) | |
257 | rm -f stamp-h1 | |
258 | touch $@ | |
259 | ||
260 | distclean-hdr: | |
261 | -rm -f config.h stamp-h1 | |
262 | ||
263 | # This directory's subdirectories are mostly independent; you can cd | |
264 | # into them and run `make' without going through this Makefile. | |
265 | # To change the values of `make' variables: instead of editing Makefiles, | |
266 | # (1) if the variable is set in `config.status', edit `config.status' | |
267 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
268 | # (2) otherwise, pass the desired values on the `make' command line. | |
269 | $(RECURSIVE_TARGETS): | |
270 | @fail= failcom='exit 1'; \ | |
271 | for f in x $$MAKEFLAGS; do \ | |
272 | case $$f in \ | |
273 | *=* | --[!k]*);; \ | |
274 | *k*) failcom='fail=yes';; \ | |
275 | esac; \ | |
276 | done; \ | |
277 | dot_seen=no; \ | |
278 | target=`echo $@ | sed s/-recursive//`; \ | |
279 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
280 | echo "Making $$target in $$subdir"; \ | |
281 | if test "$$subdir" = "."; then \ | |
282 | dot_seen=yes; \ | |
283 | local_target="$$target-am"; \ | |
284 | else \ | |
285 | local_target="$$target"; \ | |
286 | fi; \ | |
287 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
288 | || eval $$failcom; \ | |
289 | done; \ | |
290 | if test "$$dot_seen" = "no"; then \ | |
291 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
292 | fi; test -z "$$fail" | |
293 | ||
294 | $(RECURSIVE_CLEAN_TARGETS): | |
295 | @fail= failcom='exit 1'; \ | |
296 | for f in x $$MAKEFLAGS; do \ | |
297 | case $$f in \ | |
298 | *=* | --[!k]*);; \ | |
299 | *k*) failcom='fail=yes';; \ | |
300 | esac; \ | |
301 | done; \ | |
302 | dot_seen=no; \ | |
303 | case "$@" in \ | |
304 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
305 | *) list='$(SUBDIRS)' ;; \ | |
306 | esac; \ | |
307 | rev=''; for subdir in $$list; do \ | |
308 | if test "$$subdir" = "."; then :; else \ | |
309 | rev="$$subdir $$rev"; \ | |
310 | fi; \ | |
311 | done; \ | |
312 | rev="$$rev ."; \ | |
313 | target=`echo $@ | sed s/-recursive//`; \ | |
314 | for subdir in $$rev; do \ | |
315 | echo "Making $$target in $$subdir"; \ | |
316 | if test "$$subdir" = "."; then \ | |
317 | local_target="$$target-am"; \ | |
318 | else \ | |
319 | local_target="$$target"; \ | |
320 | fi; \ | |
321 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
322 | || eval $$failcom; \ | |
323 | done && test -z "$$fail" | |
324 | tags-recursive: | |
325 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
326 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
327 | done | |
328 | ctags-recursive: | |
329 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
330 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
331 | done | |
332 | ||
333 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
334 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
335 | unique=`for i in $$list; do \ | |
336 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
337 | done | \ | |
338 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
339 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
340 | mkid -fID $$unique | |
341 | tags: TAGS | |
342 | ||
343 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
344 | $(TAGS_FILES) $(LISP) | |
345 | set x; \ | |
346 | here=`pwd`; \ | |
347 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
348 | include_option=--etags-include; \ | |
349 | empty_fix=.; \ | |
350 | else \ | |
351 | include_option=--include; \ | |
352 | empty_fix=; \ | |
353 | fi; \ | |
354 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
355 | if test "$$subdir" = .; then :; else \ | |
356 | test ! -f $$subdir/TAGS || \ | |
357 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
358 | fi; \ | |
359 | done; \ | |
360 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
361 | unique=`for i in $$list; do \ | |
362 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
363 | done | \ | |
364 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
365 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
366 | shift; \ | |
367 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
368 | test -n "$$unique" || unique=$$empty_fix; \ | |
369 | if test $$# -gt 0; then \ | |
370 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
371 | "$$@" $$unique; \ | |
372 | else \ | |
373 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
374 | $$unique; \ | |
375 | fi; \ | |
376 | fi | |
377 | ctags: CTAGS | |
378 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
379 | $(TAGS_FILES) $(LISP) | |
380 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
381 | unique=`for i in $$list; do \ | |
382 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
383 | done | \ | |
384 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
385 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
386 | test -z "$(CTAGS_ARGS)$$unique" \ | |
387 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
388 | $$unique | |
389 | ||
390 | GTAGS: | |
391 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
392 | && $(am__cd) $(top_srcdir) \ | |
393 | && gtags -i $(GTAGS_ARGS) "$$here" | |
394 | ||
395 | distclean-tags: | |
396 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
397 | ||
398 | distdir: $(DISTFILES) | |
399 | $(am__remove_distdir) | |
400 | test -d "$(distdir)" || mkdir "$(distdir)" | |
401 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
402 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
403 | list='$(DISTFILES)'; \ | |
404 | dist_files=`for file in $$list; do echo $$file; done | \ | |
405 | sed -e "s|^$$srcdirstrip/||;t" \ | |
406 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
407 | case $$dist_files in \ | |
408 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
409 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
410 | sort -u` ;; \ | |
411 | esac; \ | |
412 | for file in $$dist_files; do \ | |
413 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
414 | if test -d $$d/$$file; then \ | |
415 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
416 | if test -d "$(distdir)/$$file"; then \ | |
417 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
418 | fi; \ | |
419 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
420 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
421 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
422 | fi; \ | |
423 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
424 | else \ | |
425 | test -f "$(distdir)/$$file" \ | |
426 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
427 | || exit 1; \ | |
428 | fi; \ | |
429 | done | |
430 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
431 | if test "$$subdir" = .; then :; else \ | |
432 | test -d "$(distdir)/$$subdir" \ | |
433 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
434 | || exit 1; \ | |
435 | fi; \ | |
436 | done | |
437 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
438 | if test "$$subdir" = .; then :; else \ | |
439 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
440 | $(am__relativize); \ | |
441 | new_distdir=$$reldir; \ | |
442 | dir1=$$subdir; dir2="$(top_distdir)"; \ | |
443 | $(am__relativize); \ | |
444 | new_top_distdir=$$reldir; \ | |
445 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
446 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
447 | ($(am__cd) $$subdir && \ | |
448 | $(MAKE) $(AM_MAKEFLAGS) \ | |
449 | top_distdir="$$new_top_distdir" \ | |
450 | distdir="$$new_distdir" \ | |
451 | am__remove_distdir=: \ | |
452 | am__skip_length_check=: \ | |
453 | am__skip_mode_fix=: \ | |
454 | distdir) \ | |
455 | || exit 1; \ | |
456 | fi; \ | |
457 | done | |
458 | -test -n "$(am__skip_mode_fix)" \ | |
459 | || find "$(distdir)" -type d ! -perm -755 \ | |
460 | -exec chmod u+rwx,go+rx {} \; -o \ | |
461 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
462 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
463 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
464 | || chmod -R a+r "$(distdir)" | |
465 | dist-gzip: distdir | |
466 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
467 | $(am__remove_distdir) | |
468 | ||
469 | dist-bzip2: distdir | |
470 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
471 | $(am__remove_distdir) | |
472 | ||
473 | dist-lzma: distdir | |
474 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
475 | $(am__remove_distdir) | |
476 | ||
477 | dist-xz: distdir | |
478 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | |
479 | $(am__remove_distdir) | |
480 | ||
481 | dist-tarZ: distdir | |
482 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
483 | $(am__remove_distdir) | |
484 | ||
485 | dist-shar: distdir | |
486 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
487 | $(am__remove_distdir) | |
488 | ||
489 | dist-zip: distdir | |
490 | -rm -f $(distdir).zip | |
491 | zip -rq $(distdir).zip $(distdir) | |
492 | $(am__remove_distdir) | |
493 | ||
494 | dist dist-all: distdir | |
495 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
496 | $(am__remove_distdir) | |
497 | ||
498 | # This target untars the dist file and tries a VPATH configuration. Then | |
499 | # it guarantees that the distribution is self-contained by making another | |
500 | # tarfile. | |
501 | distcheck: dist | |
502 | case '$(DIST_ARCHIVES)' in \ | |
503 | *.tar.gz*) \ | |
504 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
505 | *.tar.bz2*) \ | |
506 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
507 | *.tar.lzma*) \ | |
508 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
509 | *.tar.xz*) \ | |
510 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
511 | *.tar.Z*) \ | |
512 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
513 | *.shar.gz*) \ | |
514 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
515 | *.zip*) \ | |
516 | unzip $(distdir).zip ;;\ | |
517 | esac | |
518 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
519 | mkdir $(distdir)/_build | |
520 | mkdir $(distdir)/_inst | |
521 | chmod a-w $(distdir) | |
522 | test -d $(distdir)/_build || exit 0; \ | |
523 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
524 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
525 | && am__cwd=`pwd` \ | |
526 | && $(am__cd) $(distdir)/_build \ | |
527 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
528 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
529 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
530 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
531 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
532 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
533 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
534 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
535 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
536 | distuninstallcheck \ | |
537 | && chmod -R a-w "$$dc_install_base" \ | |
538 | && ({ \ | |
539 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
540 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
541 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
542 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
543 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
544 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
545 | && rm -rf "$$dc_destdir" \ | |
546 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
547 | && rm -rf $(DIST_ARCHIVES) \ | |
548 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
549 | && cd "$$am__cwd" \ | |
550 | || exit 1 | |
551 | $(am__remove_distdir) | |
552 | @(echo "$(distdir) archives ready for distribution: "; \ | |
553 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
554 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
555 | distuninstallcheck: | |
556 | @$(am__cd) '$(distuninstallcheck_dir)' \ | |
557 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
558 | || { echo "ERROR: files left after uninstall:" ; \ | |
559 | if test -n "$(DESTDIR)"; then \ | |
560 | echo " (check DESTDIR support)"; \ | |
561 | fi ; \ | |
562 | $(distuninstallcheck_listfiles) ; \ | |
563 | exit 1; } >&2 | |
564 | distcleancheck: distclean | |
565 | @if test '$(srcdir)' = . ; then \ | |
566 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
567 | exit 1 ; \ | |
568 | fi | |
569 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
570 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
571 | $(distcleancheck_listfiles) ; \ | |
572 | exit 1; } >&2 | |
573 | check-am: all-am | |
574 | check: check-recursive | |
575 | all-am: Makefile config.h | |
576 | installdirs: installdirs-recursive | |
577 | installdirs-am: | |
578 | install: install-recursive | |
579 | install-exec: install-exec-recursive | |
580 | install-data: install-data-recursive | |
581 | uninstall: uninstall-recursive | |
582 | ||
583 | install-am: all-am | |
584 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
585 | ||
586 | installcheck: installcheck-recursive | |
587 | install-strip: | |
588 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
589 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
590 | `test -z '$(STRIP)' || \ | |
591 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
592 | mostlyclean-generic: | |
593 | ||
594 | clean-generic: | |
595 | ||
596 | distclean-generic: | |
597 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
598 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
599 | ||
600 | maintainer-clean-generic: | |
601 | @echo "This command is intended for maintainers to use" | |
602 | @echo "it deletes files that may require special tools to rebuild." | |
603 | clean: clean-recursive | |
604 | ||
605 | clean-am: clean-generic mostlyclean-am | |
606 | ||
607 | distclean: distclean-recursive | |
608 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
609 | -rm -f Makefile | |
610 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags | |
611 | ||
612 | dvi: dvi-recursive | |
613 | ||
614 | dvi-am: | |
615 | ||
616 | html: html-recursive | |
617 | ||
618 | html-am: | |
619 | ||
620 | info: info-recursive | |
621 | ||
622 | info-am: | |
623 | ||
624 | install-data-am: | |
625 | ||
626 | install-dvi: install-dvi-recursive | |
627 | ||
628 | install-dvi-am: | |
629 | ||
630 | install-exec-am: | |
631 | ||
632 | install-html: install-html-recursive | |
633 | ||
634 | install-html-am: | |
635 | ||
636 | install-info: install-info-recursive | |
637 | ||
638 | install-info-am: | |
639 | ||
640 | install-man: | |
641 | ||
642 | install-pdf: install-pdf-recursive | |
643 | ||
644 | install-pdf-am: | |
645 | ||
646 | install-ps: install-ps-recursive | |
647 | ||
648 | install-ps-am: | |
649 | ||
650 | installcheck-am: | |
651 | ||
652 | maintainer-clean: maintainer-clean-recursive | |
653 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
654 | -rm -rf $(top_srcdir)/autom4te.cache | |
655 | -rm -f Makefile | |
656 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
657 | ||
658 | mostlyclean: mostlyclean-recursive | |
659 | ||
660 | mostlyclean-am: mostlyclean-generic | |
661 | ||
662 | pdf: pdf-recursive | |
663 | ||
664 | pdf-am: | |
665 | ||
666 | ps: ps-recursive | |
667 | ||
668 | ps-am: | |
669 | ||
670 | uninstall-am: | |
671 | ||
672 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
673 | ctags-recursive install-am install-strip tags-recursive | |
674 | ||
675 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
676 | all all-am am--refresh check check-am clean clean-generic \ | |
677 | ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | |
678 | dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ | |
679 | distclean distclean-generic distclean-hdr distclean-tags \ | |
680 | distcleancheck distdir distuninstallcheck dvi dvi-am html \ | |
681 | html-am info info-am install install-am install-data \ | |
682 | install-data-am install-dvi install-dvi-am install-exec \ | |
683 | install-exec-am install-html install-html-am install-info \ | |
684 | install-info-am install-man install-pdf install-pdf-am \ | |
685 | install-ps install-ps-am install-strip installcheck \ | |
686 | installcheck-am installdirs installdirs-am maintainer-clean \ | |
687 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
688 | pdf-am ps ps-am tags tags-recursive uninstall uninstall-am | |
689 | ||
690 | ||
691 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
692 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
693 | .NOEXPORT: |
0 | Overall changes for GNU UnRTF | |
1 | ---------------------------------------- | |
2 | 0.1: original version, known as "rtf2htm" | |
3 | 0.2: first Linux version | |
4 | 0.3: addition of hash storage for all strings | |
5 | 0.4: support for a few HTML special exprs | |
6 | 0.5: tables finally work | |
7 | 0.6: addition of usage() | |
8 | 0.7: added special chars, \tab, info group, <body> | |
9 | 0.8: font table support | |
10 | ||
11 | 0.9.0: images are stored to files | |
12 | 0.9.1: pict files extensions a bit more accurate | |
13 | 0.9.2: font size changes (\fs) more accurate. | |
14 | 0.9.3: fixed bug regarding where <body> goes | |
15 | 0.9.4: added -nopict option | |
16 | 0.9.5: fixed table data printing. | |
17 | 0.9.6: if >1 \cell in a group, font attrs affect all. | |
18 | 0.9.7: Chunk class renamed Word | |
19 | ||
20 | 0.10.0: input file type is checked, -echo renamed -dump | |
21 | 0.11.0: addition of ANSI->HTML conversion, plus limited Mac->HTML | |
22 | 0.11.1: unknown chars are printed as <!--0x##--> | |
23 | ||
24 | 0.12.0: separated parser from word module | |
25 | 0.12.1: added -version option | |
26 | 0.12.2: backslash-newline is now \par | |
27 | 0.12.3: added default font families (\fswiss etc) | |
28 | 0.12.4: added blurb about program in the output HTML | |
29 | 0.12.5: added recognition of files with ".RTF" ending, not just ".rtf" | |
30 | 0.12.6: added charset tables for CP437 and CP850 | |
31 | 0.12.7: fixed bug preventing \'## sequences from being translated | |
32 | 0.12.8: removed size limit for words, verified DJGPP compilation works. | |
33 | 0.12.9: compilation bugfix, fixed author/date information | |
34 | 0.12.10: added --simple switch for generating HTML without SPAN/DIV tags | |
35 | ||
36 | 0.13.0: paragraph alignment added | |
37 | 0.13.1: fix for words getting lost after \par | |
38 | 0.13.2: fix for color table not being recognized | |
39 | ||
40 | 0.14.0: separation of word and convert modules | |
41 | 0.14.1: fixed color table indexing, added support for font background color. | |
42 | 0.14.2: updated parsing mechanism | |
43 | 0.14.3: fix for DIV nesting; fix for NS's hiding any table within a span. | |
44 | 0.14.4: fix for color table parsing; added better underline/strikethru support. | |
45 | ||
46 | 0.15.0: hashing of RTF keywords in convert.c; moved much code out of convert.c | |
47 | 0.15.1: removed null entries from special.c to reduce program size | |
48 | 0.15.2: removed no-op entries from hash in convert.c to reduce program size | |
49 | 0.15.3: first 16-bit MSDOS executable | |
50 | 0.15.4: fixed paragraph alignment not getting cleared by \pard | |
51 | 0.15.5: updated code to produce as few paragraph alignment tags as possible | |
52 | ||
53 | 0.16.0: added input buffering to improve speed | |
54 | 0.16.1: bugfix for printing of debugging strings stored in command hash | |
55 | ||
56 | 0.17.0: hyperlink support added | |
57 | 0.17.1: added support for several font attributes e.g. smallcaps, caps, \expand | |
58 | 0.17.2: added Amiga(TM) compilation support | |
59 | 0.17.3: fixed problem in interpretation of RTF command words | |
60 | 0.17.4: changed attr.c to use AttrStack (stack of stacks) paradigm | |
61 | ----program renamed UnRTF---- | |
62 | 0.17.5: began implementation of output personalities; wrote HTML personality. | |
63 | 0.17.6: added text and vt personalities | |
64 | 0.17.7: began addition of PostScript(TM) and LaTeX and WPML output | |
65 | 0.17.8: first fully commented version, removed "last change" lines | |
66 | 0.17.9: fixed translation between character sets | |
67 | 0.17.10: PS now supports underline, strikethrough, shadowed text | |
68 | 0.17.11: PS now uses ISOLatin1Encoding | |
69 | 0.17.12: PS now supports these fonts: Times,Courier,Symbol,Helvetica | |
70 | ||
71 | ----program is now GNU UnRTF---- | |
72 | 0.18.0: updates to comments, documentation to reflect inclusion in GNU suite. | |
73 | 0.18.1: updated manual | |
74 | ||
75 | 0.19.1: new maintainers: minor fixes to prevent segmentation violations; | |
76 | further special character code; minor cleanups | |
77 | 0.19.2: updated some files; | |
78 | 0.19.3: fix bug #225592: null pointer param in convert.c | |
79 | 0.19.4: added unicode support | |
80 | 0.19.5: removed defective PS support and non-free text files | |
81 | more unicode support | |
82 | improved symbol font support - no longer puts entities in latex output | |
83 | Bug#266020 concerning double slashes fixed | |
84 | Bug#269054 concerning Doctype fixed | |
85 | Bug#287038 security breach fixed | |
86 | (thanks to Joey Hess <joeyh@debian.org>) | |
87 | 0.19.6: fix some latex problems | |
88 | 0.19.7: updated FSF address | |
89 | 0.19.8: minor fixes | |
90 | 0.19.9: included verbose mode | |
91 | 0.20.0: new build system by Claudio Fontana <claudio@gnu.org> | |
92 | fixed creation date spelling and added support for accented characters | |
93 | in titles from Laurent Monin | |
94 | 0.20.1: minor fix in convert.c for Solaris System | |
95 | 0.20.2: minor fix to unterminated comment output, added attr_get_param() | |
96 | 0.20.3: Greek font support added, fix to UTF character processing | |
97 | 0.20.4: nopict mode bug fixes | |
98 | 0.20.5: added --noremap option, some html entity corrections, updated to GPL v3 | |
99 | ||
100 | Note: | |
101 | LaTeX is a system of macros for TeX by Leslie Lamport. |
0 | 0 | Greetings, |
1 | 1 | |
2 | 2 | UnRTF is a moderately complicated converter from RTF to other |
3 | formats, including HTML, LaTeX, text, and PostScript. Converting | |
4 | to HTML, it supports tables, fonts, colors, embedded images, | |
5 | hyperlinks, paragraph alignment among other things. All other | |
6 | conversions are "alpha"--just begun. | |
3 | formats. It works reasonably well but it has bugs and the output is | |
4 | a somewhat ugly. Bugs are known to include paragraph alignment | |
5 | and picture storing. | |
7 | 6 | |
8 | 7 | Compiling with GCC: type "make all", and assuming you have GCC |
9 | 8 | and GNU make, it should compile without any warnings or errors |
10 | under Linux, BSD, and DOS (using DJGPP). Amiga/GCC users | |
11 | should utilize the build.amiga file. Please let me know of | |
12 | any compilation problems. | |
9 | under Linux, BSD, and DOS (using DJGPP). | |
13 | 10 | |
14 | 11 | This program includes no warranty whatsoever. It is provided |
15 | 12 | "AS IS". For more information please read the COPYING |
16 | 13 | document, which should be included with the source code. |
17 | 14 | It describes the GNU Public License, which covers UnRTF. |
18 | 15 | |
19 | Enjoy. | |
16 | Enjoy, | |
20 | 17 | |
21 | Zachary Thayer Smith | |
18 | Zachary Smith | |
22 | 19 | tuorfa@yahoo.com |
23 | 20 | |
24 | 22 Sept 01 | |
25 | ||
21 | Jan. 7th, 2004 |
0 | ||
1 | UnRTF by Zach Smith | |
2 | ||
3 | A few tasks that need doing as of 18 Sept 01 | |
4 | -------------------------------------------- | |
5 | ||
6 | * Make sure --inline still works; limit it to HTML. | |
7 | ||
8 | * Add a module for an intermediate character set for charset | |
9 | conversions. | |
10 | ||
11 | * Finish output personalities for LaTeX, PostScript, text, vt, WPML. | |
12 | - Postscript word-level metrics and printing. | |
13 | - Postscript paragraph alignment. | |
14 | - Postscript tables. | |
15 | - Postscript more font faces. | |
16 | - Does LaTeX support emboss, engrave, outline, shadow? | |
17 | ||
18 | * Point-lists -- rather important. | |
19 | ||
20 | * Index entries. | |
21 | ||
22 | * TOC entries. | |
23 | ||
24 | * Headers. | |
25 | ||
26 | * Footers. | |
27 | ||
28 | * Add support for line-based images (the RTF "shape" concept), | |
29 | converting to Beest format or another? | |
30 | ||
31 | * Centering not working within tables? | |
32 | ||
33 | * HTML: javascript-based shadow/outline/emboss/engrave ? | |
34 | ||
35 | * Style sheet support? | |
36 | ||
37 | * HTML: Multiple columns kludge using tables or layers? | |
38 | ||
39 | * Need to support more Mac RTF special expressions. | |
40 |
0 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | m4_ifndef([AC_AUTOCONF_VERSION], | |
14 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, | |
16 | [m4_warning([this file was generated for autoconf 2.63. | |
17 | You have another version of autoconf. It may work, but is not guaranteed to. | |
18 | If you have problems, you may need to regenerate the build system entirely. | |
19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
20 | ||
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
22 | # | |
23 | # This file is free software; the Free Software Foundation | |
24 | # gives unlimited permission to copy and/or distribute it, | |
25 | # with or without modifications, as long as this notice is preserved. | |
26 | ||
27 | # AM_AUTOMAKE_VERSION(VERSION) | |
28 | # ---------------------------- | |
29 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
30 | # generated from the m4 files accompanying Automake X.Y. | |
31 | # (This private macro should not be called outside this file.) | |
32 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
33 | [am__api_version='1.11' | |
34 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
35 | dnl require some minimum version. Point them to the right macro. | |
36 | m4_if([$1], [1.11.1], [], | |
37 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
38 | ]) | |
39 | ||
40 | # _AM_AUTOCONF_VERSION(VERSION) | |
41 | # ----------------------------- | |
42 | # aclocal traces this macro to find the Autoconf version. | |
43 | # This is a private macro too. Using m4_define simplifies | |
44 | # the logic in aclocal, which can simply ignore this definition. | |
45 | m4_define([_AM_AUTOCONF_VERSION], []) | |
46 | ||
47 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
48 | # ------------------------------- | |
49 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
50 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
51 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
52 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
53 | m4_ifndef([AC_AUTOCONF_VERSION], | |
54 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
55 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
56 | ||
57 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
58 | ||
59 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
60 | # | |
61 | # This file is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy and/or distribute it, | |
63 | # with or without modifications, as long as this notice is preserved. | |
64 | ||
65 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
66 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
67 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
68 | # | |
69 | # Of course, Automake must honor this variable whenever it calls a | |
70 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
71 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
72 | # depending on how configure is run. This is pretty annoying, since | |
73 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
74 | # source directory, any form will work fine, but in subdirectories a | |
75 | # relative path needs to be adjusted first. | |
76 | # | |
77 | # $ac_aux_dir/missing | |
78 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
79 | # $top_srcdir/$ac_aux_dir/missing | |
80 | # fails if $ac_aux_dir is absolute, | |
81 | # fails when called from a subdirectory in a VPATH build with | |
82 | # a relative $ac_aux_dir | |
83 | # | |
84 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
85 | # are both prefixed by $srcdir. In an in-source build this is usually | |
86 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # start a VPATH build or use an absolute $srcdir. | |
88 | # | |
89 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
90 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
91 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
92 | # and then we would define $MISSING as | |
93 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
94 | # This will work as long as MISSING is not called from configure, because | |
95 | # unfortunately $(top_srcdir) has no meaning in configure. | |
96 | # However there are other variables, like CC, which are often used in | |
97 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
98 | # | |
99 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
100 | # absolute PATH. The drawback is that using absolute paths prevent a | |
101 | # configured tree to be moved without reconfiguration. | |
102 | ||
103 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
104 | [dnl Rely on autoconf to set up CDPATH properly. | |
105 | AC_PREREQ([2.50])dnl | |
106 | # expand $ac_aux_dir to an absolute path | |
107 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
108 | ]) | |
109 | ||
110 | # AM_CONDITIONAL -*- Autoconf -*- | |
111 | ||
112 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
113 | # Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
118 | ||
119 | # serial 9 | |
120 | ||
121 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
122 | # ------------------------------------- | |
123 | # Define a conditional. | |
124 | AC_DEFUN([AM_CONDITIONAL], | |
125 | [AC_PREREQ(2.52)dnl | |
126 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
127 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
128 | AC_SUBST([$1_TRUE])dnl | |
129 | AC_SUBST([$1_FALSE])dnl | |
130 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
131 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
132 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
133 | if $2; then | |
134 | $1_TRUE= | |
135 | $1_FALSE='#' | |
136 | else | |
137 | $1_TRUE='#' | |
138 | $1_FALSE= | |
139 | fi | |
140 | AC_CONFIG_COMMANDS_PRE( | |
141 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
142 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
143 | Usually this means the macro was only invoked conditionally.]]) | |
144 | fi])]) | |
145 | ||
146 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
147 | # Free Software Foundation, Inc. | |
148 | # | |
149 | # This file is free software; the Free Software Foundation | |
150 | # gives unlimited permission to copy and/or distribute it, | |
151 | # with or without modifications, as long as this notice is preserved. | |
152 | ||
153 | # serial 10 | |
154 | ||
155 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
156 | # written in clear, in which case automake, when reading aclocal.m4, | |
157 | # will think it sees a *use*, and therefore will trigger all it's | |
158 | # C support machinery. Also note that it means that autoscan, seeing | |
159 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
160 | ||
161 | ||
162 | # _AM_DEPENDENCIES(NAME) | |
163 | # ---------------------- | |
164 | # See how the compiler implements dependency checking. | |
165 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
166 | # We try a few techniques and use that to set a single cache variable. | |
167 | # | |
168 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
169 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
170 | # dependency, and given that the user is not expected to run this macro, | |
171 | # just rely on AC_PROG_CC. | |
172 | AC_DEFUN([_AM_DEPENDENCIES], | |
173 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
174 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
175 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
176 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
177 | ||
178 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
179 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
180 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
181 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
182 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
183 | [depcc="$$1" am_compiler_list=]) | |
184 | ||
185 | AC_CACHE_CHECK([dependency style of $depcc], | |
186 | [am_cv_$1_dependencies_compiler_type], | |
187 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
188 | # We make a subdir and do the tests there. Otherwise we can end up | |
189 | # making bogus files that we don't know about and never remove. For | |
190 | # instance it was reported that on HP-UX the gcc test will end up | |
191 | # making a dummy file named `D' -- because `-MD' means `put the output | |
192 | # in D'. | |
193 | mkdir conftest.dir | |
194 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
195 | # using a relative directory. | |
196 | cp "$am_depcomp" conftest.dir | |
197 | cd conftest.dir | |
198 | # We will build objects and dependencies in a subdirectory because | |
199 | # it helps to detect inapplicable dependency modes. For instance | |
200 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
201 | # side effect of compilation, but ICC will put the dependencies in | |
202 | # the current directory while Tru64 will put them in the object | |
203 | # directory. | |
204 | mkdir sub | |
205 | ||
206 | am_cv_$1_dependencies_compiler_type=none | |
207 | if test "$am_compiler_list" = ""; then | |
208 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
209 | fi | |
210 | am__universal=false | |
211 | m4_case([$1], [CC], | |
212 | [case " $depcc " in #( | |
213 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
214 | esac], | |
215 | [CXX], | |
216 | [case " $depcc " in #( | |
217 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
218 | esac]) | |
219 | ||
220 | for depmode in $am_compiler_list; do | |
221 | # Setup a source with many dependencies, because some compilers | |
222 | # like to wrap large dependency lists on column 80 (with \), and | |
223 | # we should not choose a depcomp mode which is confused by this. | |
224 | # | |
225 | # We need to recreate these files for each test, as the compiler may | |
226 | # overwrite some of them when testing with obscure command lines. | |
227 | # This happens at least with the AIX C compiler. | |
228 | : > sub/conftest.c | |
229 | for i in 1 2 3 4 5 6; do | |
230 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
231 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
232 | # Solaris 8's {/usr,}/bin/sh. | |
233 | touch sub/conftst$i.h | |
234 | done | |
235 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
236 | ||
237 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
238 | # mode. It turns out that the SunPro C++ compiler does not properly | |
239 | # handle `-M -o', and we need to detect this. Also, some Intel | |
240 | # versions had trouble with output in subdirs | |
241 | am__obj=sub/conftest.${OBJEXT-o} | |
242 | am__minus_obj="-o $am__obj" | |
243 | case $depmode in | |
244 | gcc) | |
245 | # This depmode causes a compiler race in universal mode. | |
246 | test "$am__universal" = false || continue | |
247 | ;; | |
248 | nosideeffect) | |
249 | # after this tag, mechanisms are not by side-effect, so they'll | |
250 | # only be used when explicitly requested | |
251 | if test "x$enable_dependency_tracking" = xyes; then | |
252 | continue | |
253 | else | |
254 | break | |
255 | fi | |
256 | ;; | |
257 | msvisualcpp | msvcmsys) | |
258 | # This compiler won't grok `-c -o', but also, the minuso test has | |
259 | # not run yet. These depmodes are late enough in the game, and | |
260 | # so weak that their functioning should not be impacted. | |
261 | am__obj=conftest.${OBJEXT-o} | |
262 | am__minus_obj= | |
263 | ;; | |
264 | none) break ;; | |
265 | esac | |
266 | if depmode=$depmode \ | |
267 | source=sub/conftest.c object=$am__obj \ | |
268 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
269 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
270 | >/dev/null 2>conftest.err && | |
271 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
272 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
273 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
274 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
275 | # icc doesn't choke on unknown options, it will just issue warnings | |
276 | # or remarks (even with -Werror). So we grep stderr for any message | |
277 | # that says an option was ignored or not supported. | |
278 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
279 | # icc: Command line warning: ignoring option '-M'; no argument required | |
280 | # The diagnosis changed in icc 8.0: | |
281 | # icc: Command line remark: option '-MP' not supported | |
282 | if (grep 'ignoring option' conftest.err || | |
283 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
284 | am_cv_$1_dependencies_compiler_type=$depmode | |
285 | break | |
286 | fi | |
287 | fi | |
288 | done | |
289 | ||
290 | cd .. | |
291 | rm -rf conftest.dir | |
292 | else | |
293 | am_cv_$1_dependencies_compiler_type=none | |
294 | fi | |
295 | ]) | |
296 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
297 | AM_CONDITIONAL([am__fastdep$1], [ | |
298 | test "x$enable_dependency_tracking" != xno \ | |
299 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
300 | ]) | |
301 | ||
302 | ||
303 | # AM_SET_DEPDIR | |
304 | # ------------- | |
305 | # Choose a directory name for dependency files. | |
306 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
307 | AC_DEFUN([AM_SET_DEPDIR], | |
308 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
309 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
310 | ]) | |
311 | ||
312 | ||
313 | # AM_DEP_TRACK | |
314 | # ------------ | |
315 | AC_DEFUN([AM_DEP_TRACK], | |
316 | [AC_ARG_ENABLE(dependency-tracking, | |
317 | [ --disable-dependency-tracking speeds up one-time build | |
318 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
319 | if test "x$enable_dependency_tracking" != xno; then | |
320 | am_depcomp="$ac_aux_dir/depcomp" | |
321 | AMDEPBACKSLASH='\' | |
322 | fi | |
323 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
324 | AC_SUBST([AMDEPBACKSLASH])dnl | |
325 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
326 | ]) | |
327 | ||
328 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
329 | ||
330 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
331 | # Free Software Foundation, Inc. | |
332 | # | |
333 | # This file is free software; the Free Software Foundation | |
334 | # gives unlimited permission to copy and/or distribute it, | |
335 | # with or without modifications, as long as this notice is preserved. | |
336 | ||
337 | #serial 5 | |
338 | ||
339 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
340 | # ------------------------------ | |
341 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
342 | [{ | |
343 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
344 | # are listed without --file. Let's play safe and only enable the eval | |
345 | # if we detect the quoting. | |
346 | case $CONFIG_FILES in | |
347 | *\'*) eval set x "$CONFIG_FILES" ;; | |
348 | *) set x $CONFIG_FILES ;; | |
349 | esac | |
350 | shift | |
351 | for mf | |
352 | do | |
353 | # Strip MF so we end up with the name of the file. | |
354 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
355 | # Check whether this is an Automake generated Makefile or not. | |
356 | # We used to match only the files named `Makefile.in', but | |
357 | # some people rename them; so instead we look at the file content. | |
358 | # Grep'ing the first line is not enough: some people post-process | |
359 | # each Makefile.in and add a new line on top of each file to say so. | |
360 | # Grep'ing the whole file is not good either: AIX grep has a line | |
361 | # limit of 2048, but all sed's we know have understand at least 4000. | |
362 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
363 | dirpart=`AS_DIRNAME("$mf")` | |
364 | else | |
365 | continue | |
366 | fi | |
367 | # Extract the definition of DEPDIR, am__include, and am__quote | |
368 | # from the Makefile without running `make'. | |
369 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
370 | test -z "$DEPDIR" && continue | |
371 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
372 | test -z "am__include" && continue | |
373 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
374 | # When using ansi2knr, U may be empty or an underscore; expand it | |
375 | U=`sed -n 's/^U = //p' < "$mf"` | |
376 | # Find all dependency output files, they are included files with | |
377 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
378 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
379 | # expansion. | |
380 | for file in `sed -n " | |
381 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
382 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
383 | # Make sure the directory exists. | |
384 | test -f "$dirpart/$file" && continue | |
385 | fdir=`AS_DIRNAME(["$file"])` | |
386 | AS_MKDIR_P([$dirpart/$fdir]) | |
387 | # echo "creating $dirpart/$file" | |
388 | echo '# dummy' > "$dirpart/$file" | |
389 | done | |
390 | done | |
391 | } | |
392 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
393 | ||
394 | ||
395 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
396 | # ----------------------------- | |
397 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
398 | # | |
399 | # This code is only required when automatic dependency tracking | |
400 | # is enabled. FIXME. This creates each `.P' file that we will | |
401 | # need in order to bootstrap the dependency handling code. | |
402 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
403 | [AC_CONFIG_COMMANDS([depfiles], | |
404 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
405 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
406 | ]) | |
407 | ||
408 | # Do all the work for Automake. -*- Autoconf -*- | |
409 | ||
410 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
411 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
412 | # | |
413 | # This file is free software; the Free Software Foundation | |
414 | # gives unlimited permission to copy and/or distribute it, | |
415 | # with or without modifications, as long as this notice is preserved. | |
416 | ||
417 | # serial 16 | |
418 | ||
419 | # This macro actually does too much. Some checks are only needed if | |
420 | # your package does certain things. But this isn't really a big deal. | |
421 | ||
422 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
423 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
424 | # ----------------------------------------------- | |
425 | # The call with PACKAGE and VERSION arguments is the old style | |
426 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
427 | # and VERSION should now be passed to AC_INIT and removed from | |
428 | # the call to AM_INIT_AUTOMAKE. | |
429 | # We support both call styles for the transition. After | |
430 | # the next Automake release, Autoconf can make the AC_INIT | |
431 | # arguments mandatory, and then we can depend on a new Autoconf | |
432 | # release and drop the old call support. | |
433 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
434 | [AC_PREREQ([2.62])dnl | |
435 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
436 | dnl the ones we care about. | |
437 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
438 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
439 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
440 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
441 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
442 | # is not polluted with repeated "-I." | |
443 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
444 | # test to see if srcdir already configured | |
445 | if test -f $srcdir/config.status; then | |
446 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
447 | fi | |
448 | fi | |
449 | ||
450 | # test whether we have cygpath | |
451 | if test -z "$CYGPATH_W"; then | |
452 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
453 | CYGPATH_W='cygpath -w' | |
454 | else | |
455 | CYGPATH_W=echo | |
456 | fi | |
457 | fi | |
458 | AC_SUBST([CYGPATH_W]) | |
459 | ||
460 | # Define the identity of the package. | |
461 | dnl Distinguish between old-style and new-style calls. | |
462 | m4_ifval([$2], | |
463 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
464 | AC_SUBST([PACKAGE], [$1])dnl | |
465 | AC_SUBST([VERSION], [$2])], | |
466 | [_AM_SET_OPTIONS([$1])dnl | |
467 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
468 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
469 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
470 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
471 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
472 | ||
473 | _AM_IF_OPTION([no-define],, | |
474 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
475 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
476 | ||
477 | # Some tools Automake needs. | |
478 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
479 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
480 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
481 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
482 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
483 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
484 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
485 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
486 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
487 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
488 | # We need awk for the "check" target. The system "awk" is bad on | |
489 | # some platforms. | |
490 | AC_REQUIRE([AC_PROG_AWK])dnl | |
491 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
492 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
493 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
494 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
495 | [_AM_PROG_TAR([v7])])]) | |
496 | _AM_IF_OPTION([no-dependencies],, | |
497 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
498 | [_AM_DEPENDENCIES(CC)], | |
499 | [define([AC_PROG_CC], | |
500 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
501 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
502 | [_AM_DEPENDENCIES(CXX)], | |
503 | [define([AC_PROG_CXX], | |
504 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
505 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
506 | [_AM_DEPENDENCIES(OBJC)], | |
507 | [define([AC_PROG_OBJC], | |
508 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
509 | ]) | |
510 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
511 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
512 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
513 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
514 | AC_CONFIG_COMMANDS_PRE(dnl | |
515 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
516 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
517 | ]) | |
518 | ||
519 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
520 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
521 | dnl mangled by Autoconf and run in a shell conditional statement. | |
522 | m4_define([_AC_COMPILER_EXEEXT], | |
523 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
524 | ||
525 | ||
526 | # When config.status generates a header, we must update the stamp-h file. | |
527 | # This file resides in the same directory as the config header | |
528 | # that is generated. The stamp files are numbered to have different names. | |
529 | ||
530 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
531 | # loop where config.status creates the headers, so we can generate | |
532 | # our stamp files there. | |
533 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
534 | [# Compute $1's index in $config_headers. | |
535 | _am_arg=$1 | |
536 | _am_stamp_count=1 | |
537 | for _am_header in $config_headers :; do | |
538 | case $_am_header in | |
539 | $_am_arg | $_am_arg:* ) | |
540 | break ;; | |
541 | * ) | |
542 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
543 | esac | |
544 | done | |
545 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
546 | ||
547 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
548 | # | |
549 | # This file is free software; the Free Software Foundation | |
550 | # gives unlimited permission to copy and/or distribute it, | |
551 | # with or without modifications, as long as this notice is preserved. | |
552 | ||
553 | # AM_PROG_INSTALL_SH | |
554 | # ------------------ | |
555 | # Define $install_sh. | |
556 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
557 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
558 | if test x"${install_sh}" != xset; then | |
559 | case $am_aux_dir in | |
560 | *\ * | *\ *) | |
561 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
562 | *) | |
563 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
564 | esac | |
565 | fi | |
566 | AC_SUBST(install_sh)]) | |
567 | ||
568 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
569 | # | |
570 | # This file is free software; the Free Software Foundation | |
571 | # gives unlimited permission to copy and/or distribute it, | |
572 | # with or without modifications, as long as this notice is preserved. | |
573 | ||
574 | # serial 2 | |
575 | ||
576 | # Check whether the underlying file-system supports filenames | |
577 | # with a leading dot. For instance MS-DOS doesn't. | |
578 | AC_DEFUN([AM_SET_LEADING_DOT], | |
579 | [rm -rf .tst 2>/dev/null | |
580 | mkdir .tst 2>/dev/null | |
581 | if test -d .tst; then | |
582 | am__leading_dot=. | |
583 | else | |
584 | am__leading_dot=_ | |
585 | fi | |
586 | rmdir .tst 2>/dev/null | |
587 | AC_SUBST([am__leading_dot])]) | |
588 | ||
589 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
590 | # From Jim Meyering | |
591 | ||
592 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
593 | # Free Software Foundation, Inc. | |
594 | # | |
595 | # This file is free software; the Free Software Foundation | |
596 | # gives unlimited permission to copy and/or distribute it, | |
597 | # with or without modifications, as long as this notice is preserved. | |
598 | ||
599 | # serial 5 | |
600 | ||
601 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
602 | # ---------------------------------- | |
603 | # Control maintainer-specific portions of Makefiles. | |
604 | # Default is to disable them, unless `enable' is passed literally. | |
605 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
606 | # can override the default with the --enable/--disable switch. | |
607 | AC_DEFUN([AM_MAINTAINER_MODE], | |
608 | [m4_case(m4_default([$1], [disable]), | |
609 | [enable], [m4_define([am_maintainer_other], [disable])], | |
610 | [disable], [m4_define([am_maintainer_other], [enable])], | |
611 | [m4_define([am_maintainer_other], [enable]) | |
612 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
613 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
614 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
615 | AC_ARG_ENABLE([maintainer-mode], | |
616 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
617 | (and sometimes confusing) to the casual installer], | |
618 | [USE_MAINTAINER_MODE=$enableval], | |
619 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
620 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
621 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
622 | MAINT=$MAINTAINER_MODE_TRUE | |
623 | AC_SUBST([MAINT])dnl | |
624 | ] | |
625 | ) | |
626 | ||
627 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
628 | ||
629 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
630 | ||
631 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
632 | # | |
633 | # This file is free software; the Free Software Foundation | |
634 | # gives unlimited permission to copy and/or distribute it, | |
635 | # with or without modifications, as long as this notice is preserved. | |
636 | ||
637 | # serial 4 | |
638 | ||
639 | # AM_MAKE_INCLUDE() | |
640 | # ----------------- | |
641 | # Check to see how make treats includes. | |
642 | AC_DEFUN([AM_MAKE_INCLUDE], | |
643 | [am_make=${MAKE-make} | |
644 | cat > confinc << 'END' | |
645 | am__doit: | |
646 | @echo this is the am__doit target | |
647 | .PHONY: am__doit | |
648 | END | |
649 | # If we don't find an include directive, just comment out the code. | |
650 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
651 | am__include="#" | |
652 | am__quote= | |
653 | _am_result=none | |
654 | # First try GNU make style include. | |
655 | echo "include confinc" > confmf | |
656 | # Ignore all kinds of additional output from `make'. | |
657 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
658 | *the\ am__doit\ target*) | |
659 | am__include=include | |
660 | am__quote= | |
661 | _am_result=GNU | |
662 | ;; | |
663 | esac | |
664 | # Now try BSD make style include. | |
665 | if test "$am__include" = "#"; then | |
666 | echo '.include "confinc"' > confmf | |
667 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
668 | *the\ am__doit\ target*) | |
669 | am__include=.include | |
670 | am__quote="\"" | |
671 | _am_result=BSD | |
672 | ;; | |
673 | esac | |
674 | fi | |
675 | AC_SUBST([am__include]) | |
676 | AC_SUBST([am__quote]) | |
677 | AC_MSG_RESULT([$_am_result]) | |
678 | rm -f confinc confmf | |
679 | ]) | |
680 | ||
681 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
682 | ||
683 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
684 | # Free Software Foundation, Inc. | |
685 | # | |
686 | # This file is free software; the Free Software Foundation | |
687 | # gives unlimited permission to copy and/or distribute it, | |
688 | # with or without modifications, as long as this notice is preserved. | |
689 | ||
690 | # serial 6 | |
691 | ||
692 | # AM_MISSING_PROG(NAME, PROGRAM) | |
693 | # ------------------------------ | |
694 | AC_DEFUN([AM_MISSING_PROG], | |
695 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
696 | $1=${$1-"${am_missing_run}$2"} | |
697 | AC_SUBST($1)]) | |
698 | ||
699 | ||
700 | # AM_MISSING_HAS_RUN | |
701 | # ------------------ | |
702 | # Define MISSING if not defined so far and test if it supports --run. | |
703 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
704 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
705 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
706 | AC_REQUIRE_AUX_FILE([missing])dnl | |
707 | if test x"${MISSING+set}" != xset; then | |
708 | case $am_aux_dir in | |
709 | *\ * | *\ *) | |
710 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
711 | *) | |
712 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
713 | esac | |
714 | fi | |
715 | # Use eval to expand $SHELL | |
716 | if eval "$MISSING --run true"; then | |
717 | am_missing_run="$MISSING --run " | |
718 | else | |
719 | am_missing_run= | |
720 | AC_MSG_WARN([`missing' script is too old or missing]) | |
721 | fi | |
722 | ]) | |
723 | ||
724 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
725 | # | |
726 | # This file is free software; the Free Software Foundation | |
727 | # gives unlimited permission to copy and/or distribute it, | |
728 | # with or without modifications, as long as this notice is preserved. | |
729 | ||
730 | # AM_PROG_MKDIR_P | |
731 | # --------------- | |
732 | # Check for `mkdir -p'. | |
733 | AC_DEFUN([AM_PROG_MKDIR_P], | |
734 | [AC_PREREQ([2.60])dnl | |
735 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
736 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
737 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
738 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
739 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
740 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
741 | dnl adjustment using top_builddir (which is defined more often than | |
742 | dnl MKDIR_P). | |
743 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
744 | case $mkdir_p in | |
745 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
746 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
747 | esac | |
748 | ]) | |
749 | ||
750 | # Helper functions for option handling. -*- Autoconf -*- | |
751 | ||
752 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
753 | # | |
754 | # This file is free software; the Free Software Foundation | |
755 | # gives unlimited permission to copy and/or distribute it, | |
756 | # with or without modifications, as long as this notice is preserved. | |
757 | ||
758 | # serial 4 | |
759 | ||
760 | # _AM_MANGLE_OPTION(NAME) | |
761 | # ----------------------- | |
762 | AC_DEFUN([_AM_MANGLE_OPTION], | |
763 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
764 | ||
765 | # _AM_SET_OPTION(NAME) | |
766 | # ------------------------------ | |
767 | # Set option NAME. Presently that only means defining a flag for this option. | |
768 | AC_DEFUN([_AM_SET_OPTION], | |
769 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
770 | ||
771 | # _AM_SET_OPTIONS(OPTIONS) | |
772 | # ---------------------------------- | |
773 | # OPTIONS is a space-separated list of Automake options. | |
774 | AC_DEFUN([_AM_SET_OPTIONS], | |
775 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
776 | ||
777 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
778 | # ------------------------------------------- | |
779 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
780 | AC_DEFUN([_AM_IF_OPTION], | |
781 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
782 | ||
783 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
784 | ||
785 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
786 | # Free Software Foundation, Inc. | |
787 | # | |
788 | # This file is free software; the Free Software Foundation | |
789 | # gives unlimited permission to copy and/or distribute it, | |
790 | # with or without modifications, as long as this notice is preserved. | |
791 | ||
792 | # serial 5 | |
793 | ||
794 | # AM_SANITY_CHECK | |
795 | # --------------- | |
796 | AC_DEFUN([AM_SANITY_CHECK], | |
797 | [AC_MSG_CHECKING([whether build environment is sane]) | |
798 | # Just in case | |
799 | sleep 1 | |
800 | echo timestamp > conftest.file | |
801 | # Reject unsafe characters in $srcdir or the absolute working directory | |
802 | # name. Accept space and tab only in the latter. | |
803 | am_lf=' | |
804 | ' | |
805 | case `pwd` in | |
806 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
807 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
808 | esac | |
809 | case $srcdir in | |
810 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
811 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
812 | esac | |
813 | ||
814 | # Do `set' in a subshell so we don't clobber the current shell's | |
815 | # arguments. Must try -L first in case configure is actually a | |
816 | # symlink; some systems play weird games with the mod time of symlinks | |
817 | # (eg FreeBSD returns the mod time of the symlink's containing | |
818 | # directory). | |
819 | if ( | |
820 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
821 | if test "$[*]" = "X"; then | |
822 | # -L didn't work. | |
823 | set X `ls -t "$srcdir/configure" conftest.file` | |
824 | fi | |
825 | rm -f conftest.file | |
826 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
827 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
828 | ||
829 | # If neither matched, then we have a broken ls. This can happen | |
830 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
831 | # broken ls alias from the environment. This has actually | |
832 | # happened. Such a system could not be considered "sane". | |
833 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
834 | alias in your environment]) | |
835 | fi | |
836 | ||
837 | test "$[2]" = conftest.file | |
838 | ) | |
839 | then | |
840 | # Ok. | |
841 | : | |