Merge lp:~lubuntu-software-center-team/lubuntu-software-center/build-system into lp:~stephen-smally/lubuntu-software-center/trunk
- build-system
- Merge into trunk
Proposed by
Julien Lavergne
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 35 | ||||
Proposed branch: | lp:~lubuntu-software-center-team/lubuntu-software-center/build-system | ||||
Merge into: | lp:~stephen-smally/lubuntu-software-center/trunk | ||||
Diff against target: |
10337 lines (+10147/-20) 24 files modified
COPYING (+674/-0) INSTALL (+365/-0) LSC/control.py (+24/-4) Makefile.am (+40/-0) autogen.sh (+44/-0) configure.ac (+26/-0) debian/changelog (+5/-0) debian/compat (+1/-0) debian/control (+30/-0) debian/copyright (+45/-0) debian/rules (+4/-0) debian/source/format (+1/-0) debian/watch (+2/-0) lubuntu-software-center (+9/-5) lubuntu-software-center.desktop (+0/-11) lubuntu-software-center.desktop.in (+11/-0) m4/acinclude.m4 (+40/-0) m4/aclocal.m4 (+8036/-0) m4/gnome-doc-utils.m4 (+52/-0) m4/intltool.m4 (+216/-0) m4/python.m4 (+243/-0) po/Makefile.in.in (+217/-0) po/POTFILES.in (+3/-0) po/lubuntu-software-center.pot (+59/-0) |
||||
To merge this branch: | bzr merge lp:~lubuntu-software-center-team/lubuntu-software-center/build-system | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephen Smally | Pending | ||
Review via email: mp+74142@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'AUTHORS' | |||
2 | === added file 'COPYING' | |||
3 | --- COPYING 1970-01-01 00:00:00 +0000 | |||
4 | +++ COPYING 2011-09-05 21:29:25 +0000 | |||
5 | @@ -0,0 +1,674 @@ | |||
6 | 1 | GNU GENERAL PUBLIC LICENSE | ||
7 | 2 | Version 3, 29 June 2007 | ||
8 | 3 | |||
9 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
10 | 5 | Everyone is permitted to copy and distribute verbatim copies | ||
11 | 6 | of this license document, but changing it is not allowed. | ||
12 | 7 | |||
13 | 8 | Preamble | ||
14 | 9 | |||
15 | 10 | The GNU General Public License is a free, copyleft license for | ||
16 | 11 | software and other kinds of works. | ||
17 | 12 | |||
18 | 13 | The licenses for most software and other practical works are designed | ||
19 | 14 | to take away your freedom to share and change the works. By contrast, | ||
20 | 15 | the GNU General Public License is intended to guarantee your freedom to | ||
21 | 16 | share and change all versions of a program--to make sure it remains free | ||
22 | 17 | software for all its users. We, the Free Software Foundation, use the | ||
23 | 18 | GNU General Public License for most of our software; it applies also to | ||
24 | 19 | any other work released this way by its authors. You can apply it to | ||
25 | 20 | your programs, too. | ||
26 | 21 | |||
27 | 22 | When we speak of free software, we are referring to freedom, not | ||
28 | 23 | price. Our General Public Licenses are designed to make sure that you | ||
29 | 24 | have the freedom to distribute copies of free software (and charge for | ||
30 | 25 | them if you wish), that you receive source code or can get it if you | ||
31 | 26 | want it, that you can change the software or use pieces of it in new | ||
32 | 27 | free programs, and that you know you can do these things. | ||
33 | 28 | |||
34 | 29 | To protect your rights, we need to prevent others from denying you | ||
35 | 30 | these rights or asking you to surrender the rights. Therefore, you have | ||
36 | 31 | certain responsibilities if you distribute copies of the software, or if | ||
37 | 32 | you modify it: responsibilities to respect the freedom of others. | ||
38 | 33 | |||
39 | 34 | For example, if you distribute copies of such a program, whether | ||
40 | 35 | gratis or for a fee, you must pass on to the recipients the same | ||
41 | 36 | freedoms that you received. You must make sure that they, too, receive | ||
42 | 37 | or can get the source code. And you must show them these terms so they | ||
43 | 38 | know their rights. | ||
44 | 39 | |||
45 | 40 | Developers that use the GNU GPL protect your rights with two steps: | ||
46 | 41 | (1) assert copyright on the software, and (2) offer you this License | ||
47 | 42 | giving you legal permission to copy, distribute and/or modify it. | ||
48 | 43 | |||
49 | 44 | For the developers' and authors' protection, the GPL clearly explains | ||
50 | 45 | that there is no warranty for this free software. For both users' and | ||
51 | 46 | authors' sake, the GPL requires that modified versions be marked as | ||
52 | 47 | changed, so that their problems will not be attributed erroneously to | ||
53 | 48 | authors of previous versions. | ||
54 | 49 | |||
55 | 50 | Some devices are designed to deny users access to install or run | ||
56 | 51 | modified versions of the software inside them, although the manufacturer | ||
57 | 52 | can do so. This is fundamentally incompatible with the aim of | ||
58 | 53 | protecting users' freedom to change the software. The systematic | ||
59 | 54 | pattern of such abuse occurs in the area of products for individuals to | ||
60 | 55 | use, which is precisely where it is most unacceptable. Therefore, we | ||
61 | 56 | have designed this version of the GPL to prohibit the practice for those | ||
62 | 57 | products. If such problems arise substantially in other domains, we | ||
63 | 58 | stand ready to extend this provision to those domains in future versions | ||
64 | 59 | of the GPL, as needed to protect the freedom of users. | ||
65 | 60 | |||
66 | 61 | Finally, every program is threatened constantly by software patents. | ||
67 | 62 | States should not allow patents to restrict development and use of | ||
68 | 63 | software on general-purpose computers, but in those that do, we wish to | ||
69 | 64 | avoid the special danger that patents applied to a free program could | ||
70 | 65 | make it effectively proprietary. To prevent this, the GPL assures that | ||
71 | 66 | patents cannot be used to render the program non-free. | ||
72 | 67 | |||
73 | 68 | The precise terms and conditions for copying, distribution and | ||
74 | 69 | modification follow. | ||
75 | 70 | |||
76 | 71 | TERMS AND CONDITIONS | ||
77 | 72 | |||
78 | 73 | 0. Definitions. | ||
79 | 74 | |||
80 | 75 | "This License" refers to version 3 of the GNU General Public License. | ||
81 | 76 | |||
82 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of | ||
83 | 78 | works, such as semiconductor masks. | ||
84 | 79 | |||
85 | 80 | "The Program" refers to any copyrightable work licensed under this | ||
86 | 81 | License. Each licensee is addressed as "you". "Licensees" and | ||
87 | 82 | "recipients" may be individuals or organizations. | ||
88 | 83 | |||
89 | 84 | To "modify" a work means to copy from or adapt all or part of the work | ||
90 | 85 | in a fashion requiring copyright permission, other than the making of an | ||
91 | 86 | exact copy. The resulting work is called a "modified version" of the | ||
92 | 87 | earlier work or a work "based on" the earlier work. | ||
93 | 88 | |||
94 | 89 | A "covered work" means either the unmodified Program or a work based | ||
95 | 90 | on the Program. | ||
96 | 91 | |||
97 | 92 | To "propagate" a work means to do anything with it that, without | ||
98 | 93 | permission, would make you directly or secondarily liable for | ||
99 | 94 | infringement under applicable copyright law, except executing it on a | ||
100 | 95 | computer or modifying a private copy. Propagation includes copying, | ||
101 | 96 | distribution (with or without modification), making available to the | ||
102 | 97 | public, and in some countries other activities as well. | ||
103 | 98 | |||
104 | 99 | To "convey" a work means any kind of propagation that enables other | ||
105 | 100 | parties to make or receive copies. Mere interaction with a user through | ||
106 | 101 | a computer network, with no transfer of a copy, is not conveying. | ||
107 | 102 | |||
108 | 103 | An interactive user interface displays "Appropriate Legal Notices" | ||
109 | 104 | to the extent that it includes a convenient and prominently visible | ||
110 | 105 | feature that (1) displays an appropriate copyright notice, and (2) | ||
111 | 106 | tells the user that there is no warranty for the work (except to the | ||
112 | 107 | extent that warranties are provided), that licensees may convey the | ||
113 | 108 | work under this License, and how to view a copy of this License. If | ||
114 | 109 | the interface presents a list of user commands or options, such as a | ||
115 | 110 | menu, a prominent item in the list meets this criterion. | ||
116 | 111 | |||
117 | 112 | 1. Source Code. | ||
118 | 113 | |||
119 | 114 | The "source code" for a work means the preferred form of the work | ||
120 | 115 | for making modifications to it. "Object code" means any non-source | ||
121 | 116 | form of a work. | ||
122 | 117 | |||
123 | 118 | A "Standard Interface" means an interface that either is an official | ||
124 | 119 | standard defined by a recognized standards body, or, in the case of | ||
125 | 120 | interfaces specified for a particular programming language, one that | ||
126 | 121 | is widely used among developers working in that language. | ||
127 | 122 | |||
128 | 123 | The "System Libraries" of an executable work include anything, other | ||
129 | 124 | than the work as a whole, that (a) is included in the normal form of | ||
130 | 125 | packaging a Major Component, but which is not part of that Major | ||
131 | 126 | Component, and (b) serves only to enable use of the work with that | ||
132 | 127 | Major Component, or to implement a Standard Interface for which an | ||
133 | 128 | implementation is available to the public in source code form. A | ||
134 | 129 | "Major Component", in this context, means a major essential component | ||
135 | 130 | (kernel, window system, and so on) of the specific operating system | ||
136 | 131 | (if any) on which the executable work runs, or a compiler used to | ||
137 | 132 | produce the work, or an object code interpreter used to run it. | ||
138 | 133 | |||
139 | 134 | The "Corresponding Source" for a work in object code form means all | ||
140 | 135 | the source code needed to generate, install, and (for an executable | ||
141 | 136 | work) run the object code and to modify the work, including scripts to | ||
142 | 137 | control those activities. However, it does not include the work's | ||
143 | 138 | System Libraries, or general-purpose tools or generally available free | ||
144 | 139 | programs which are used unmodified in performing those activities but | ||
145 | 140 | which are not part of the work. For example, Corresponding Source | ||
146 | 141 | includes interface definition files associated with source files for | ||
147 | 142 | the work, and the source code for shared libraries and dynamically | ||
148 | 143 | linked subprograms that the work is specifically designed to require, | ||
149 | 144 | such as by intimate data communication or control flow between those | ||
150 | 145 | subprograms and other parts of the work. | ||
151 | 146 | |||
152 | 147 | The Corresponding Source need not include anything that users | ||
153 | 148 | can regenerate automatically from other parts of the Corresponding | ||
154 | 149 | Source. | ||
155 | 150 | |||
156 | 151 | The Corresponding Source for a work in source code form is that | ||
157 | 152 | same work. | ||
158 | 153 | |||
159 | 154 | 2. Basic Permissions. | ||
160 | 155 | |||
161 | 156 | All rights granted under this License are granted for the term of | ||
162 | 157 | copyright on the Program, and are irrevocable provided the stated | ||
163 | 158 | conditions are met. This License explicitly affirms your unlimited | ||
164 | 159 | permission to run the unmodified Program. The output from running a | ||
165 | 160 | covered work is covered by this License only if the output, given its | ||
166 | 161 | content, constitutes a covered work. This License acknowledges your | ||
167 | 162 | rights of fair use or other equivalent, as provided by copyright law. | ||
168 | 163 | |||
169 | 164 | You may make, run and propagate covered works that you do not | ||
170 | 165 | convey, without conditions so long as your license otherwise remains | ||
171 | 166 | in force. You may convey covered works to others for the sole purpose | ||
172 | 167 | of having them make modifications exclusively for you, or provide you | ||
173 | 168 | with facilities for running those works, provided that you comply with | ||
174 | 169 | the terms of this License in conveying all material for which you do | ||
175 | 170 | not control copyright. Those thus making or running the covered works | ||
176 | 171 | for you must do so exclusively on your behalf, under your direction | ||
177 | 172 | and control, on terms that prohibit them from making any copies of | ||
178 | 173 | your copyrighted material outside their relationship with you. | ||
179 | 174 | |||
180 | 175 | Conveying under any other circumstances is permitted solely under | ||
181 | 176 | the conditions stated below. Sublicensing is not allowed; section 10 | ||
182 | 177 | makes it unnecessary. | ||
183 | 178 | |||
184 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | ||
185 | 180 | |||
186 | 181 | No covered work shall be deemed part of an effective technological | ||
187 | 182 | measure under any applicable law fulfilling obligations under article | ||
188 | 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or | ||
189 | 184 | similar laws prohibiting or restricting circumvention of such | ||
190 | 185 | measures. | ||
191 | 186 | |||
192 | 187 | When you convey a covered work, you waive any legal power to forbid | ||
193 | 188 | circumvention of technological measures to the extent such circumvention | ||
194 | 189 | is effected by exercising rights under this License with respect to | ||
195 | 190 | the covered work, and you disclaim any intention to limit operation or | ||
196 | 191 | modification of the work as a means of enforcing, against the work's | ||
197 | 192 | users, your or third parties' legal rights to forbid circumvention of | ||
198 | 193 | technological measures. | ||
199 | 194 | |||
200 | 195 | 4. Conveying Verbatim Copies. | ||
201 | 196 | |||
202 | 197 | You may convey verbatim copies of the Program's source code as you | ||
203 | 198 | receive it, in any medium, provided that you conspicuously and | ||
204 | 199 | appropriately publish on each copy an appropriate copyright notice; | ||
205 | 200 | keep intact all notices stating that this License and any | ||
206 | 201 | non-permissive terms added in accord with section 7 apply to the code; | ||
207 | 202 | keep intact all notices of the absence of any warranty; and give all | ||
208 | 203 | recipients a copy of this License along with the Program. | ||
209 | 204 | |||
210 | 205 | You may charge any price or no price for each copy that you convey, | ||
211 | 206 | and you may offer support or warranty protection for a fee. | ||
212 | 207 | |||
213 | 208 | 5. Conveying Modified Source Versions. | ||
214 | 209 | |||
215 | 210 | You may convey a work based on the Program, or the modifications to | ||
216 | 211 | produce it from the Program, in the form of source code under the | ||
217 | 212 | terms of section 4, provided that you also meet all of these conditions: | ||
218 | 213 | |||
219 | 214 | a) The work must carry prominent notices stating that you modified | ||
220 | 215 | it, and giving a relevant date. | ||
221 | 216 | |||
222 | 217 | b) The work must carry prominent notices stating that it is | ||
223 | 218 | released under this License and any conditions added under section | ||
224 | 219 | 7. This requirement modifies the requirement in section 4 to | ||
225 | 220 | "keep intact all notices". | ||
226 | 221 | |||
227 | 222 | c) You must license the entire work, as a whole, under this | ||
228 | 223 | License to anyone who comes into possession of a copy. This | ||
229 | 224 | License will therefore apply, along with any applicable section 7 | ||
230 | 225 | additional terms, to the whole of the work, and all its parts, | ||
231 | 226 | regardless of how they are packaged. This License gives no | ||
232 | 227 | permission to license the work in any other way, but it does not | ||
233 | 228 | invalidate such permission if you have separately received it. | ||
234 | 229 | |||
235 | 230 | d) If the work has interactive user interfaces, each must display | ||
236 | 231 | Appropriate Legal Notices; however, if the Program has interactive | ||
237 | 232 | interfaces that do not display Appropriate Legal Notices, your | ||
238 | 233 | work need not make them do so. | ||
239 | 234 | |||
240 | 235 | A compilation of a covered work with other separate and independent | ||
241 | 236 | works, which are not by their nature extensions of the covered work, | ||
242 | 237 | and which are not combined with it such as to form a larger program, | ||
243 | 238 | in or on a volume of a storage or distribution medium, is called an | ||
244 | 239 | "aggregate" if the compilation and its resulting copyright are not | ||
245 | 240 | used to limit the access or legal rights of the compilation's users | ||
246 | 241 | beyond what the individual works permit. Inclusion of a covered work | ||
247 | 242 | in an aggregate does not cause this License to apply to the other | ||
248 | 243 | parts of the aggregate. | ||
249 | 244 | |||
250 | 245 | 6. Conveying Non-Source Forms. | ||
251 | 246 | |||
252 | 247 | You may convey a covered work in object code form under the terms | ||
253 | 248 | of sections 4 and 5, provided that you also convey the | ||
254 | 249 | machine-readable Corresponding Source under the terms of this License, | ||
255 | 250 | in one of these ways: | ||
256 | 251 | |||
257 | 252 | a) Convey the object code in, or embodied in, a physical product | ||
258 | 253 | (including a physical distribution medium), accompanied by the | ||
259 | 254 | Corresponding Source fixed on a durable physical medium | ||
260 | 255 | customarily used for software interchange. | ||
261 | 256 | |||
262 | 257 | b) Convey the object code in, or embodied in, a physical product | ||
263 | 258 | (including a physical distribution medium), accompanied by a | ||
264 | 259 | written offer, valid for at least three years and valid for as | ||
265 | 260 | long as you offer spare parts or customer support for that product | ||
266 | 261 | model, to give anyone who possesses the object code either (1) a | ||
267 | 262 | copy of the Corresponding Source for all the software in the | ||
268 | 263 | product that is covered by this License, on a durable physical | ||
269 | 264 | medium customarily used for software interchange, for a price no | ||
270 | 265 | more than your reasonable cost of physically performing this | ||
271 | 266 | conveying of source, or (2) access to copy the | ||
272 | 267 | Corresponding Source from a network server at no charge. | ||
273 | 268 | |||
274 | 269 | c) Convey individual copies of the object code with a copy of the | ||
275 | 270 | written offer to provide the Corresponding Source. This | ||
276 | 271 | alternative is allowed only occasionally and noncommercially, and | ||
277 | 272 | only if you received the object code with such an offer, in accord | ||
278 | 273 | with subsection 6b. | ||
279 | 274 | |||
280 | 275 | d) Convey the object code by offering access from a designated | ||
281 | 276 | place (gratis or for a charge), and offer equivalent access to the | ||
282 | 277 | Corresponding Source in the same way through the same place at no | ||
283 | 278 | further charge. You need not require recipients to copy the | ||
284 | 279 | Corresponding Source along with the object code. If the place to | ||
285 | 280 | copy the object code is a network server, the Corresponding Source | ||
286 | 281 | may be on a different server (operated by you or a third party) | ||
287 | 282 | that supports equivalent copying facilities, provided you maintain | ||
288 | 283 | clear directions next to the object code saying where to find the | ||
289 | 284 | Corresponding Source. Regardless of what server hosts the | ||
290 | 285 | Corresponding Source, you remain obligated to ensure that it is | ||
291 | 286 | available for as long as needed to satisfy these requirements. | ||
292 | 287 | |||
293 | 288 | e) Convey the object code using peer-to-peer transmission, provided | ||
294 | 289 | you inform other peers where the object code and Corresponding | ||
295 | 290 | Source of the work are being offered to the general public at no | ||
296 | 291 | charge under subsection 6d. | ||
297 | 292 | |||
298 | 293 | A separable portion of the object code, whose source code is excluded | ||
299 | 294 | from the Corresponding Source as a System Library, need not be | ||
300 | 295 | included in conveying the object code work. | ||
301 | 296 | |||
302 | 297 | A "User Product" is either (1) a "consumer product", which means any | ||
303 | 298 | tangible personal property which is normally used for personal, family, | ||
304 | 299 | or household purposes, or (2) anything designed or sold for incorporation | ||
305 | 300 | into a dwelling. In determining whether a product is a consumer product, | ||
306 | 301 | doubtful cases shall be resolved in favor of coverage. For a particular | ||
307 | 302 | product received by a particular user, "normally used" refers to a | ||
308 | 303 | typical or common use of that class of product, regardless of the status | ||
309 | 304 | of the particular user or of the way in which the particular user | ||
310 | 305 | actually uses, or expects or is expected to use, the product. A product | ||
311 | 306 | is a consumer product regardless of whether the product has substantial | ||
312 | 307 | commercial, industrial or non-consumer uses, unless such uses represent | ||
313 | 308 | the only significant mode of use of the product. | ||
314 | 309 | |||
315 | 310 | "Installation Information" for a User Product means any methods, | ||
316 | 311 | procedures, authorization keys, or other information required to install | ||
317 | 312 | and execute modified versions of a covered work in that User Product from | ||
318 | 313 | a modified version of its Corresponding Source. The information must | ||
319 | 314 | suffice to ensure that the continued functioning of the modified object | ||
320 | 315 | code is in no case prevented or interfered with solely because | ||
321 | 316 | modification has been made. | ||
322 | 317 | |||
323 | 318 | If you convey an object code work under this section in, or with, or | ||
324 | 319 | specifically for use in, a User Product, and the conveying occurs as | ||
325 | 320 | part of a transaction in which the right of possession and use of the | ||
326 | 321 | User Product is transferred to the recipient in perpetuity or for a | ||
327 | 322 | fixed term (regardless of how the transaction is characterized), the | ||
328 | 323 | Corresponding Source conveyed under this section must be accompanied | ||
329 | 324 | by the Installation Information. But this requirement does not apply | ||
330 | 325 | if neither you nor any third party retains the ability to install | ||
331 | 326 | modified object code on the User Product (for example, the work has | ||
332 | 327 | been installed in ROM). | ||
333 | 328 | |||
334 | 329 | The requirement to provide Installation Information does not include a | ||
335 | 330 | requirement to continue to provide support service, warranty, or updates | ||
336 | 331 | for a work that has been modified or installed by the recipient, or for | ||
337 | 332 | the User Product in which it has been modified or installed. Access to a | ||
338 | 333 | network may be denied when the modification itself materially and | ||
339 | 334 | adversely affects the operation of the network or violates the rules and | ||
340 | 335 | protocols for communication across the network. | ||
341 | 336 | |||
342 | 337 | Corresponding Source conveyed, and Installation Information provided, | ||
343 | 338 | in accord with this section must be in a format that is publicly | ||
344 | 339 | documented (and with an implementation available to the public in | ||
345 | 340 | source code form), and must require no special password or key for | ||
346 | 341 | unpacking, reading or copying. | ||
347 | 342 | |||
348 | 343 | 7. Additional Terms. | ||
349 | 344 | |||
350 | 345 | "Additional permissions" are terms that supplement the terms of this | ||
351 | 346 | License by making exceptions from one or more of its conditions. | ||
352 | 347 | Additional permissions that are applicable to the entire Program shall | ||
353 | 348 | be treated as though they were included in this License, to the extent | ||
354 | 349 | that they are valid under applicable law. If additional permissions | ||
355 | 350 | apply only to part of the Program, that part may be used separately | ||
356 | 351 | under those permissions, but the entire Program remains governed by | ||
357 | 352 | this License without regard to the additional permissions. | ||
358 | 353 | |||
359 | 354 | When you convey a copy of a covered work, you may at your option | ||
360 | 355 | remove any additional permissions from that copy, or from any part of | ||
361 | 356 | it. (Additional permissions may be written to require their own | ||
362 | 357 | removal in certain cases when you modify the work.) You may place | ||
363 | 358 | additional permissions on material, added by you to a covered work, | ||
364 | 359 | for which you have or can give appropriate copyright permission. | ||
365 | 360 | |||
366 | 361 | Notwithstanding any other provision of this License, for material you | ||
367 | 362 | add to a covered work, you may (if authorized by the copyright holders of | ||
368 | 363 | that material) supplement the terms of this License with terms: | ||
369 | 364 | |||
370 | 365 | a) Disclaiming warranty or limiting liability differently from the | ||
371 | 366 | terms of sections 15 and 16 of this License; or | ||
372 | 367 | |||
373 | 368 | b) Requiring preservation of specified reasonable legal notices or | ||
374 | 369 | author attributions in that material or in the Appropriate Legal | ||
375 | 370 | Notices displayed by works containing it; or | ||
376 | 371 | |||
377 | 372 | c) Prohibiting misrepresentation of the origin of that material, or | ||
378 | 373 | requiring that modified versions of such material be marked in | ||
379 | 374 | reasonable ways as different from the original version; or | ||
380 | 375 | |||
381 | 376 | d) Limiting the use for publicity purposes of names of licensors or | ||
382 | 377 | authors of the material; or | ||
383 | 378 | |||
384 | 379 | e) Declining to grant rights under trademark law for use of some | ||
385 | 380 | trade names, trademarks, or service marks; or | ||
386 | 381 | |||
387 | 382 | f) Requiring indemnification of licensors and authors of that | ||
388 | 383 | material by anyone who conveys the material (or modified versions of | ||
389 | 384 | it) with contractual assumptions of liability to the recipient, for | ||
390 | 385 | any liability that these contractual assumptions directly impose on | ||
391 | 386 | those licensors and authors. | ||
392 | 387 | |||
393 | 388 | All other non-permissive additional terms are considered "further | ||
394 | 389 | restrictions" within the meaning of section 10. If the Program as you | ||
395 | 390 | received it, or any part of it, contains a notice stating that it is | ||
396 | 391 | governed by this License along with a term that is a further | ||
397 | 392 | restriction, you may remove that term. If a license document contains | ||
398 | 393 | a further restriction but permits relicensing or conveying under this | ||
399 | 394 | License, you may add to a covered work material governed by the terms | ||
400 | 395 | of that license document, provided that the further restriction does | ||
401 | 396 | not survive such relicensing or conveying. | ||
402 | 397 | |||
403 | 398 | If you add terms to a covered work in accord with this section, you | ||
404 | 399 | must place, in the relevant source files, a statement of the | ||
405 | 400 | additional terms that apply to those files, or a notice indicating | ||
406 | 401 | where to find the applicable terms. | ||
407 | 402 | |||
408 | 403 | Additional terms, permissive or non-permissive, may be stated in the | ||
409 | 404 | form of a separately written license, or stated as exceptions; | ||
410 | 405 | the above requirements apply either way. | ||
411 | 406 | |||
412 | 407 | 8. Termination. | ||
413 | 408 | |||
414 | 409 | You may not propagate or modify a covered work except as expressly | ||
415 | 410 | provided under this License. Any attempt otherwise to propagate or | ||
416 | 411 | modify it is void, and will automatically terminate your rights under | ||
417 | 412 | this License (including any patent licenses granted under the third | ||
418 | 413 | paragraph of section 11). | ||
419 | 414 | |||
420 | 415 | However, if you cease all violation of this License, then your | ||
421 | 416 | license from a particular copyright holder is reinstated (a) | ||
422 | 417 | provisionally, unless and until the copyright holder explicitly and | ||
423 | 418 | finally terminates your license, and (b) permanently, if the copyright | ||
424 | 419 | holder fails to notify you of the violation by some reasonable means | ||
425 | 420 | prior to 60 days after the cessation. | ||
426 | 421 | |||
427 | 422 | Moreover, your license from a particular copyright holder is | ||
428 | 423 | reinstated permanently if the copyright holder notifies you of the | ||
429 | 424 | violation by some reasonable means, this is the first time you have | ||
430 | 425 | received notice of violation of this License (for any work) from that | ||
431 | 426 | copyright holder, and you cure the violation prior to 30 days after | ||
432 | 427 | your receipt of the notice. | ||
433 | 428 | |||
434 | 429 | Termination of your rights under this section does not terminate the | ||
435 | 430 | licenses of parties who have received copies or rights from you under | ||
436 | 431 | this License. If your rights have been terminated and not permanently | ||
437 | 432 | reinstated, you do not qualify to receive new licenses for the same | ||
438 | 433 | material under section 10. | ||
439 | 434 | |||
440 | 435 | 9. Acceptance Not Required for Having Copies. | ||
441 | 436 | |||
442 | 437 | You are not required to accept this License in order to receive or | ||
443 | 438 | run a copy of the Program. Ancillary propagation of a covered work | ||
444 | 439 | occurring solely as a consequence of using peer-to-peer transmission | ||
445 | 440 | to receive a copy likewise does not require acceptance. However, | ||
446 | 441 | nothing other than this License grants you permission to propagate or | ||
447 | 442 | modify any covered work. These actions infringe copyright if you do | ||
448 | 443 | not accept this License. Therefore, by modifying or propagating a | ||
449 | 444 | covered work, you indicate your acceptance of this License to do so. | ||
450 | 445 | |||
451 | 446 | 10. Automatic Licensing of Downstream Recipients. | ||
452 | 447 | |||
453 | 448 | Each time you convey a covered work, the recipient automatically | ||
454 | 449 | receives a license from the original licensors, to run, modify and | ||
455 | 450 | propagate that work, subject to this License. You are not responsible | ||
456 | 451 | for enforcing compliance by third parties with this License. | ||
457 | 452 | |||
458 | 453 | An "entity transaction" is a transaction transferring control of an | ||
459 | 454 | organization, or substantially all assets of one, or subdividing an | ||
460 | 455 | organization, or merging organizations. If propagation of a covered | ||
461 | 456 | work results from an entity transaction, each party to that | ||
462 | 457 | transaction who receives a copy of the work also receives whatever | ||
463 | 458 | licenses to the work the party's predecessor in interest had or could | ||
464 | 459 | give under the previous paragraph, plus a right to possession of the | ||
465 | 460 | Corresponding Source of the work from the predecessor in interest, if | ||
466 | 461 | the predecessor has it or can get it with reasonable efforts. | ||
467 | 462 | |||
468 | 463 | You may not impose any further restrictions on the exercise of the | ||
469 | 464 | rights granted or affirmed under this License. For example, you may | ||
470 | 465 | not impose a license fee, royalty, or other charge for exercise of | ||
471 | 466 | rights granted under this License, and you may not initiate litigation | ||
472 | 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that | ||
473 | 468 | any patent claim is infringed by making, using, selling, offering for | ||
474 | 469 | sale, or importing the Program or any portion of it. | ||
475 | 470 | |||
476 | 471 | 11. Patents. | ||
477 | 472 | |||
478 | 473 | A "contributor" is a copyright holder who authorizes use under this | ||
479 | 474 | License of the Program or a work on which the Program is based. The | ||
480 | 475 | work thus licensed is called the contributor's "contributor version". | ||
481 | 476 | |||
482 | 477 | A contributor's "essential patent claims" are all patent claims | ||
483 | 478 | owned or controlled by the contributor, whether already acquired or | ||
484 | 479 | hereafter acquired, that would be infringed by some manner, permitted | ||
485 | 480 | by this License, of making, using, or selling its contributor version, | ||
486 | 481 | but do not include claims that would be infringed only as a | ||
487 | 482 | consequence of further modification of the contributor version. For | ||
488 | 483 | purposes of this definition, "control" includes the right to grant | ||
489 | 484 | patent sublicenses in a manner consistent with the requirements of | ||
490 | 485 | this License. | ||
491 | 486 | |||
492 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free | ||
493 | 488 | patent license under the contributor's essential patent claims, to | ||
494 | 489 | make, use, sell, offer for sale, import and otherwise run, modify and | ||
495 | 490 | propagate the contents of its contributor version. | ||
496 | 491 | |||
497 | 492 | In the following three paragraphs, a "patent license" is any express | ||
498 | 493 | agreement or commitment, however denominated, not to enforce a patent | ||
499 | 494 | (such as an express permission to practice a patent or covenant not to | ||
500 | 495 | sue for patent infringement). To "grant" such a patent license to a | ||
501 | 496 | party means to make such an agreement or commitment not to enforce a | ||
502 | 497 | patent against the party. | ||
503 | 498 | |||
504 | 499 | If you convey a covered work, knowingly relying on a patent license, | ||
505 | 500 | and the Corresponding Source of the work is not available for anyone | ||
506 | 501 | to copy, free of charge and under the terms of this License, through a | ||
507 | 502 | publicly available network server or other readily accessible means, | ||
508 | 503 | then you must either (1) cause the Corresponding Source to be so | ||
509 | 504 | available, or (2) arrange to deprive yourself of the benefit of the | ||
510 | 505 | patent license for this particular work, or (3) arrange, in a manner | ||
511 | 506 | consistent with the requirements of this License, to extend the patent | ||
512 | 507 | license to downstream recipients. "Knowingly relying" means you have | ||
513 | 508 | actual knowledge that, but for the patent license, your conveying the | ||
514 | 509 | covered work in a country, or your recipient's use of the covered work | ||
515 | 510 | in a country, would infringe one or more identifiable patents in that | ||
516 | 511 | country that you have reason to believe are valid. | ||
517 | 512 | |||
518 | 513 | If, pursuant to or in connection with a single transaction or | ||
519 | 514 | arrangement, you convey, or propagate by procuring conveyance of, a | ||
520 | 515 | covered work, and grant a patent license to some of the parties | ||
521 | 516 | receiving the covered work authorizing them to use, propagate, modify | ||
522 | 517 | or convey a specific copy of the covered work, then the patent license | ||
523 | 518 | you grant is automatically extended to all recipients of the covered | ||
524 | 519 | work and works based on it. | ||
525 | 520 | |||
526 | 521 | A patent license is "discriminatory" if it does not include within | ||
527 | 522 | the scope of its coverage, prohibits the exercise of, or is | ||
528 | 523 | conditioned on the non-exercise of one or more of the rights that are | ||
529 | 524 | specifically granted under this License. You may not convey a covered | ||
530 | 525 | work if you are a party to an arrangement with a third party that is | ||
531 | 526 | in the business of distributing software, under which you make payment | ||
532 | 527 | to the third party based on the extent of your activity of conveying | ||
533 | 528 | the work, and under which the third party grants, to any of the | ||
534 | 529 | parties who would receive the covered work from you, a discriminatory | ||
535 | 530 | patent license (a) in connection with copies of the covered work | ||
536 | 531 | conveyed by you (or copies made from those copies), or (b) primarily | ||
537 | 532 | for and in connection with specific products or compilations that | ||
538 | 533 | contain the covered work, unless you entered into that arrangement, | ||
539 | 534 | or that patent license was granted, prior to 28 March 2007. | ||
540 | 535 | |||
541 | 536 | Nothing in this License shall be construed as excluding or limiting | ||
542 | 537 | any implied license or other defenses to infringement that may | ||
543 | 538 | otherwise be available to you under applicable patent law. | ||
544 | 539 | |||
545 | 540 | 12. No Surrender of Others' Freedom. | ||
546 | 541 | |||
547 | 542 | If conditions are imposed on you (whether by court order, agreement or | ||
548 | 543 | otherwise) that contradict the conditions of this License, they do not | ||
549 | 544 | excuse you from the conditions of this License. If you cannot convey a | ||
550 | 545 | covered work so as to satisfy simultaneously your obligations under this | ||
551 | 546 | License and any other pertinent obligations, then as a consequence you may | ||
552 | 547 | not convey it at all. For example, if you agree to terms that obligate you | ||
553 | 548 | to collect a royalty for further conveying from those to whom you convey | ||
554 | 549 | the Program, the only way you could satisfy both those terms and this | ||
555 | 550 | License would be to refrain entirely from conveying the Program. | ||
556 | 551 | |||
557 | 552 | 13. Use with the GNU Affero General Public License. | ||
558 | 553 | |||
559 | 554 | Notwithstanding any other provision of this License, you have | ||
560 | 555 | permission to link or combine any covered work with a work licensed | ||
561 | 556 | under version 3 of the GNU Affero General Public License into a single | ||
562 | 557 | combined work, and to convey the resulting work. The terms of this | ||
563 | 558 | License will continue to apply to the part which is the covered work, | ||
564 | 559 | but the special requirements of the GNU Affero General Public License, | ||
565 | 560 | section 13, concerning interaction through a network will apply to the | ||
566 | 561 | combination as such. | ||
567 | 562 | |||
568 | 563 | 14. Revised Versions of this License. | ||
569 | 564 | |||
570 | 565 | The Free Software Foundation may publish revised and/or new versions of | ||
571 | 566 | the GNU General Public License from time to time. Such new versions will | ||
572 | 567 | be similar in spirit to the present version, but may differ in detail to | ||
573 | 568 | address new problems or concerns. | ||
574 | 569 | |||
575 | 570 | Each version is given a distinguishing version number. If the | ||
576 | 571 | Program specifies that a certain numbered version of the GNU General | ||
577 | 572 | Public License "or any later version" applies to it, you have the | ||
578 | 573 | option of following the terms and conditions either of that numbered | ||
579 | 574 | version or of any later version published by the Free Software | ||
580 | 575 | Foundation. If the Program does not specify a version number of the | ||
581 | 576 | GNU General Public License, you may choose any version ever published | ||
582 | 577 | by the Free Software Foundation. | ||
583 | 578 | |||
584 | 579 | If the Program specifies that a proxy can decide which future | ||
585 | 580 | versions of the GNU General Public License can be used, that proxy's | ||
586 | 581 | public statement of acceptance of a version permanently authorizes you | ||
587 | 582 | to choose that version for the Program. | ||
588 | 583 | |||
589 | 584 | Later license versions may give you additional or different | ||
590 | 585 | permissions. However, no additional obligations are imposed on any | ||
591 | 586 | author or copyright holder as a result of your choosing to follow a | ||
592 | 587 | later version. | ||
593 | 588 | |||
594 | 589 | 15. Disclaimer of Warranty. | ||
595 | 590 | |||
596 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | ||
597 | 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | ||
598 | 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | ||
599 | 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
600 | 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
601 | 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | ||
602 | 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | ||
603 | 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
604 | 599 | |||
605 | 600 | 16. Limitation of Liability. | ||
606 | 601 | |||
607 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
608 | 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | ||
609 | 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | ||
610 | 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | ||
611 | 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | ||
612 | 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | ||
613 | 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | ||
614 | 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
615 | 610 | SUCH DAMAGES. | ||
616 | 611 | |||
617 | 612 | 17. Interpretation of Sections 15 and 16. | ||
618 | 613 | |||
619 | 614 | If the disclaimer of warranty and limitation of liability provided | ||
620 | 615 | above cannot be given local legal effect according to their terms, | ||
621 | 616 | reviewing courts shall apply local law that most closely approximates | ||
622 | 617 | an absolute waiver of all civil liability in connection with the | ||
623 | 618 | Program, unless a warranty or assumption of liability accompanies a | ||
624 | 619 | copy of the Program in return for a fee. | ||
625 | 620 | |||
626 | 621 | END OF TERMS AND CONDITIONS | ||
627 | 622 | |||
628 | 623 | How to Apply These Terms to Your New Programs | ||
629 | 624 | |||
630 | 625 | If you develop a new program, and you want it to be of the greatest | ||
631 | 626 | possible use to the public, the best way to achieve this is to make it | ||
632 | 627 | free software which everyone can redistribute and change under these terms. | ||
633 | 628 | |||
634 | 629 | To do so, attach the following notices to the program. It is safest | ||
635 | 630 | to attach them to the start of each source file to most effectively | ||
636 | 631 | state the exclusion of warranty; and each file should have at least | ||
637 | 632 | the "copyright" line and a pointer to where the full notice is found. | ||
638 | 633 | |||
639 | 634 | <one line to give the program's name and a brief idea of what it does.> | ||
640 | 635 | Copyright (C) <year> <name of author> | ||
641 | 636 | |||
642 | 637 | This program is free software: you can redistribute it and/or modify | ||
643 | 638 | it under the terms of the GNU General Public License as published by | ||
644 | 639 | the Free Software Foundation, either version 3 of the License, or | ||
645 | 640 | (at your option) any later version. | ||
646 | 641 | |||
647 | 642 | This program is distributed in the hope that it will be useful, | ||
648 | 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
649 | 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
650 | 645 | GNU General Public License for more details. | ||
651 | 646 | |||
652 | 647 | You should have received a copy of the GNU General Public License | ||
653 | 648 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
654 | 649 | |||
655 | 650 | Also add information on how to contact you by electronic and paper mail. | ||
656 | 651 | |||
657 | 652 | If the program does terminal interaction, make it output a short | ||
658 | 653 | notice like this when it starts in an interactive mode: | ||
659 | 654 | |||
660 | 655 | <program> Copyright (C) <year> <name of author> | ||
661 | 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
662 | 657 | This is free software, and you are welcome to redistribute it | ||
663 | 658 | under certain conditions; type `show c' for details. | ||
664 | 659 | |||
665 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
666 | 661 | parts of the General Public License. Of course, your program's commands | ||
667 | 662 | might be different; for a GUI interface, you would use an "about box". | ||
668 | 663 | |||
669 | 664 | You should also get your employer (if you work as a programmer) or school, | ||
670 | 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. | ||
671 | 666 | For more information on this, and how to apply and follow the GNU GPL, see | ||
672 | 667 | <http://www.gnu.org/licenses/>. | ||
673 | 668 | |||
674 | 669 | The GNU General Public License does not permit incorporating your program | ||
675 | 670 | into proprietary programs. If your program is a subroutine library, you | ||
676 | 671 | may consider it more useful to permit linking proprietary applications with | ||
677 | 672 | the library. If this is what you want to do, use the GNU Lesser General | ||
678 | 673 | Public License instead of this License. But first, please read | ||
679 | 674 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. | ||
680 | 0 | 675 | ||
681 | === added file 'ChangeLog' | |||
682 | === added file 'INSTALL' | |||
683 | --- INSTALL 1970-01-01 00:00:00 +0000 | |||
684 | +++ INSTALL 2011-09-05 21:29:25 +0000 | |||
685 | @@ -0,0 +1,365 @@ | |||
686 | 1 | Installation Instructions | ||
687 | 2 | ************************* | ||
688 | 3 | |||
689 | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | ||
690 | 5 | 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
691 | 6 | |||
692 | 7 | Copying and distribution of this file, with or without modification, | ||
693 | 8 | are permitted in any medium without royalty provided the copyright | ||
694 | 9 | notice and this notice are preserved. This file is offered as-is, | ||
695 | 10 | without warranty of any kind. | ||
696 | 11 | |||
697 | 12 | Basic Installation | ||
698 | 13 | ================== | ||
699 | 14 | |||
700 | 15 | Briefly, the shell commands `./configure; make; make install' should | ||
701 | 16 | configure, build, and install this package. The following | ||
702 | 17 | more-detailed instructions are generic; see the `README' file for | ||
703 | 18 | instructions specific to this package. Some packages provide this | ||
704 | 19 | `INSTALL' file but do not implement all of the features documented | ||
705 | 20 | below. The lack of an optional feature in a given package is not | ||
706 | 21 | necessarily a bug. More recommendations for GNU packages can be found | ||
707 | 22 | in *note Makefile Conventions: (standards)Makefile Conventions. | ||
708 | 23 | |||
709 | 24 | The `configure' shell script attempts to guess correct values for | ||
710 | 25 | various system-dependent variables used during compilation. It uses | ||
711 | 26 | those values to create a `Makefile' in each directory of the package. | ||
712 | 27 | It may also create one or more `.h' files containing system-dependent | ||
713 | 28 | definitions. Finally, it creates a shell script `config.status' that | ||
714 | 29 | you can run in the future to recreate the current configuration, and a | ||
715 | 30 | file `config.log' containing compiler output (useful mainly for | ||
716 | 31 | debugging `configure'). | ||
717 | 32 | |||
718 | 33 | It can also use an optional file (typically called `config.cache' | ||
719 | 34 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | ||
720 | 35 | the results of its tests to speed up reconfiguring. Caching is | ||
721 | 36 | disabled by default to prevent problems with accidental use of stale | ||
722 | 37 | cache files. | ||
723 | 38 | |||
724 | 39 | If you need to do unusual things to compile the package, please try | ||
725 | 40 | to figure out how `configure' could check whether to do them, and mail | ||
726 | 41 | diffs or instructions to the address given in the `README' so they can | ||
727 | 42 | be considered for the next release. If you are using the cache, and at | ||
728 | 43 | some point `config.cache' contains results you don't want to keep, you | ||
729 | 44 | may remove or edit it. | ||
730 | 45 | |||
731 | 46 | The file `configure.ac' (or `configure.in') is used to create | ||
732 | 47 | `configure' by a program called `autoconf'. You need `configure.ac' if | ||
733 | 48 | you want to change it or regenerate `configure' using a newer version | ||
734 | 49 | of `autoconf'. | ||
735 | 50 | |||
736 | 51 | The simplest way to compile this package is: | ||
737 | 52 | |||
738 | 53 | 1. `cd' to the directory containing the package's source code and type | ||
739 | 54 | `./configure' to configure the package for your system. | ||
740 | 55 | |||
741 | 56 | Running `configure' might take a while. While running, it prints | ||
742 | 57 | some messages telling which features it is checking for. | ||
743 | 58 | |||
744 | 59 | 2. Type `make' to compile the package. | ||
745 | 60 | |||
746 | 61 | 3. Optionally, type `make check' to run any self-tests that come with | ||
747 | 62 | the package, generally using the just-built uninstalled binaries. | ||
748 | 63 | |||
749 | 64 | 4. Type `make install' to install the programs and any data files and | ||
750 | 65 | documentation. When installing into a prefix owned by root, it is | ||
751 | 66 | recommended that the package be configured and built as a regular | ||
752 | 67 | user, and only the `make install' phase executed with root | ||
753 | 68 | privileges. | ||
754 | 69 | |||
755 | 70 | 5. Optionally, type `make installcheck' to repeat any self-tests, but | ||
756 | 71 | this time using the binaries in their final installed location. | ||
757 | 72 | This target does not install anything. Running this target as a | ||
758 | 73 | regular user, particularly if the prior `make install' required | ||
759 | 74 | root privileges, verifies that the installation completed | ||
760 | 75 | correctly. | ||
761 | 76 | |||
762 | 77 | 6. You can remove the program binaries and object files from the | ||
763 | 78 | source code directory by typing `make clean'. To also remove the | ||
764 | 79 | files that `configure' created (so you can compile the package for | ||
765 | 80 | a different kind of computer), type `make distclean'. There is | ||
766 | 81 | also a `make maintainer-clean' target, but that is intended mainly | ||
767 | 82 | for the package's developers. If you use it, you may have to get | ||
768 | 83 | all sorts of other programs in order to regenerate files that came | ||
769 | 84 | with the distribution. | ||
770 | 85 | |||
771 | 86 | 7. Often, you can also type `make uninstall' to remove the installed | ||
772 | 87 | files again. In practice, not all packages have tested that | ||
773 | 88 | uninstallation works correctly, even though it is required by the | ||
774 | 89 | GNU Coding Standards. | ||
775 | 90 | |||
776 | 91 | 8. Some packages, particularly those that use Automake, provide `make | ||
777 | 92 | distcheck', which can by used by developers to test that all other | ||
778 | 93 | targets like `make install' and `make uninstall' work correctly. | ||
779 | 94 | This target is generally not run by end users. | ||
780 | 95 | |||
781 | 96 | Compilers and Options | ||
782 | 97 | ===================== | ||
783 | 98 | |||
784 | 99 | Some systems require unusual options for compilation or linking that | ||
785 | 100 | the `configure' script does not know about. Run `./configure --help' | ||
786 | 101 | for details on some of the pertinent environment variables. | ||
787 | 102 | |||
788 | 103 | You can give `configure' initial values for configuration parameters | ||
789 | 104 | by setting variables in the command line or in the environment. Here | ||
790 | 105 | is an example: | ||
791 | 106 | |||
792 | 107 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix | ||
793 | 108 | |||
794 | 109 | *Note Defining Variables::, for more details. | ||
795 | 110 | |||
796 | 111 | Compiling For Multiple Architectures | ||
797 | 112 | ==================================== | ||
798 | 113 | |||
799 | 114 | You can compile the package for more than one kind of computer at the | ||
800 | 115 | same time, by placing the object files for each architecture in their | ||
801 | 116 | own directory. To do this, you can use GNU `make'. `cd' to the | ||
802 | 117 | directory where you want the object files and executables to go and run | ||
803 | 118 | the `configure' script. `configure' automatically checks for the | ||
804 | 119 | source code in the directory that `configure' is in and in `..'. This | ||
805 | 120 | is known as a "VPATH" build. | ||
806 | 121 | |||
807 | 122 | With a non-GNU `make', it is safer to compile the package for one | ||
808 | 123 | architecture at a time in the source code directory. After you have | ||
809 | 124 | installed the package for one architecture, use `make distclean' before | ||
810 | 125 | reconfiguring for another architecture. | ||
811 | 126 | |||
812 | 127 | On MacOS X 10.5 and later systems, you can create libraries and | ||
813 | 128 | executables that work on multiple system types--known as "fat" or | ||
814 | 129 | "universal" binaries--by specifying multiple `-arch' options to the | ||
815 | 130 | compiler but only a single `-arch' option to the preprocessor. Like | ||
816 | 131 | this: | ||
817 | 132 | |||
818 | 133 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
819 | 134 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
820 | 135 | CPP="gcc -E" CXXCPP="g++ -E" | ||
821 | 136 | |||
822 | 137 | This is not guaranteed to produce working output in all cases, you | ||
823 | 138 | may have to build one architecture at a time and combine the results | ||
824 | 139 | using the `lipo' tool if you have problems. | ||
825 | 140 | |||
826 | 141 | Installation Names | ||
827 | 142 | ================== | ||
828 | 143 | |||
829 | 144 | By default, `make install' installs the package's commands under | ||
830 | 145 | `/usr/local/bin', include files under `/usr/local/include', etc. You | ||
831 | 146 | can specify an installation prefix other than `/usr/local' by giving | ||
832 | 147 | `configure' the option `--prefix=PREFIX', where PREFIX must be an | ||
833 | 148 | absolute file name. | ||
834 | 149 | |||
835 | 150 | You can specify separate installation prefixes for | ||
836 | 151 | architecture-specific files and architecture-independent files. If you | ||
837 | 152 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses | ||
838 | 153 | PREFIX as the prefix for installing programs and libraries. | ||
839 | 154 | Documentation and other data files still use the regular prefix. | ||
840 | 155 | |||
841 | 156 | In addition, if you use an unusual directory layout you can give | ||
842 | 157 | options like `--bindir=DIR' to specify different values for particular | ||
843 | 158 | kinds of files. Run `configure --help' for a list of the directories | ||
844 | 159 | you can set and what kinds of files go in them. In general, the | ||
845 | 160 | default for these options is expressed in terms of `${prefix}', so that | ||
846 | 161 | specifying just `--prefix' will affect all of the other directory | ||
847 | 162 | specifications that were not explicitly provided. | ||
848 | 163 | |||
849 | 164 | The most portable way to affect installation locations is to pass the | ||
850 | 165 | correct locations to `configure'; however, many packages provide one or | ||
851 | 166 | both of the following shortcuts of passing variable assignments to the | ||
852 | 167 | `make install' command line to change installation locations without | ||
853 | 168 | having to reconfigure or recompile. | ||
854 | 169 | |||
855 | 170 | The first method involves providing an override variable for each | ||
856 | 171 | affected directory. For example, `make install | ||
857 | 172 | prefix=/alternate/directory' will choose an alternate location for all | ||
858 | 173 | directory configuration variables that were expressed in terms of | ||
859 | 174 | `${prefix}'. Any directories that were specified during `configure', | ||
860 | 175 | but not in terms of `${prefix}', must each be overridden at install | ||
861 | 176 | time for the entire installation to be relocated. The approach of | ||
862 | 177 | makefile variable overrides for each directory variable is required by | ||
863 | 178 | the GNU Coding Standards, and ideally causes no recompilation. | ||
864 | 179 | However, some platforms have known limitations with the semantics of | ||
865 | 180 | shared libraries that end up requiring recompilation when using this | ||
866 | 181 | method, particularly noticeable in packages that use GNU Libtool. | ||
867 | 182 | |||
868 | 183 | The second method involves providing the `DESTDIR' variable. For | ||
869 | 184 | example, `make install DESTDIR=/alternate/directory' will prepend | ||
870 | 185 | `/alternate/directory' before all installation names. The approach of | ||
871 | 186 | `DESTDIR' overrides is not required by the GNU Coding Standards, and | ||
872 | 187 | does not work on platforms that have drive letters. On the other hand, | ||
873 | 188 | it does better at avoiding recompilation issues, and works well even | ||
874 | 189 | when some directory options were not specified in terms of `${prefix}' | ||
875 | 190 | at `configure' time. | ||
876 | 191 | |||
877 | 192 | Optional Features | ||
878 | 193 | ================= | ||
879 | 194 | |||
880 | 195 | If the package supports it, you can cause programs to be installed | ||
881 | 196 | with an extra prefix or suffix on their names by giving `configure' the | ||
882 | 197 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | ||
883 | 198 | |||
884 | 199 | Some packages pay attention to `--enable-FEATURE' options to | ||
885 | 200 | `configure', where FEATURE indicates an optional part of the package. | ||
886 | 201 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | ||
887 | 202 | is something like `gnu-as' or `x' (for the X Window System). The | ||
888 | 203 | `README' should mention any `--enable-' and `--with-' options that the | ||
889 | 204 | package recognizes. | ||
890 | 205 | |||
891 | 206 | For packages that use the X Window System, `configure' can usually | ||
892 | 207 | find the X include and library files automatically, but if it doesn't, | ||
893 | 208 | you can use the `configure' options `--x-includes=DIR' and | ||
894 | 209 | `--x-libraries=DIR' to specify their locations. | ||
895 | 210 | |||
896 | 211 | Some packages offer the ability to configure how verbose the | ||
897 | 212 | execution of `make' will be. For these packages, running `./configure | ||
898 | 213 | --enable-silent-rules' sets the default to minimal output, which can be | ||
899 | 214 | overridden with `make V=1'; while running `./configure | ||
900 | 215 | --disable-silent-rules' sets the default to verbose, which can be | ||
901 | 216 | overridden with `make V=0'. | ||
902 | 217 | |||
903 | 218 | Particular systems | ||
904 | 219 | ================== | ||
905 | 220 | |||
906 | 221 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
907 | 222 | CC is not installed, it is recommended to use the following options in | ||
908 | 223 | order to use an ANSI C compiler: | ||
909 | 224 | |||
910 | 225 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | ||
911 | 226 | |||
912 | 227 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
913 | 228 | |||
914 | 229 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
915 | 230 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
916 | 231 | a workaround. If GNU CC is not installed, it is therefore recommended | ||
917 | 232 | to try | ||
918 | 233 | |||
919 | 234 | ./configure CC="cc" | ||
920 | 235 | |||
921 | 236 | and if that doesn't work, try | ||
922 | 237 | |||
923 | 238 | ./configure CC="cc -nodtk" | ||
924 | 239 | |||
925 | 240 | On Solaris, don't put `/usr/ucb' early in your `PATH'. This | ||
926 | 241 | directory contains several dysfunctional programs; working variants of | ||
927 | 242 | these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | ||
928 | 243 | in your `PATH', put it _after_ `/usr/bin'. | ||
929 | 244 | |||
930 | 245 | On Haiku, software installed for all users goes in `/boot/common', | ||
931 | 246 | not `/usr/local'. It is recommended to use the following options: | ||
932 | 247 | |||
933 | 248 | ./configure --prefix=/boot/common | ||
934 | 249 | |||
935 | 250 | Specifying the System Type | ||
936 | 251 | ========================== | ||
937 | 252 | |||
938 | 253 | There may be some features `configure' cannot figure out | ||
939 | 254 | automatically, but needs to determine by the type of machine the package | ||
940 | 255 | will run on. Usually, assuming the package is built to be run on the | ||
941 | 256 | _same_ architectures, `configure' can figure that out, but if it prints | ||
942 | 257 | a message saying it cannot guess the machine type, give it the | ||
943 | 258 | `--build=TYPE' option. TYPE can either be a short name for the system | ||
944 | 259 | type, such as `sun4', or a canonical name which has the form: | ||
945 | 260 | |||
946 | 261 | CPU-COMPANY-SYSTEM | ||
947 | 262 | |||
948 | 263 | where SYSTEM can have one of these forms: | ||
949 | 264 | |||
950 | 265 | OS | ||
951 | 266 | KERNEL-OS | ||
952 | 267 | |||
953 | 268 | See the file `config.sub' for the possible values of each field. If | ||
954 | 269 | `config.sub' isn't included in this package, then this package doesn't | ||
955 | 270 | need to know the machine type. | ||
956 | 271 | |||
957 | 272 | If you are _building_ compiler tools for cross-compiling, you should | ||
958 | 273 | use the option `--target=TYPE' to select the type of system they will | ||
959 | 274 | produce code for. | ||
960 | 275 | |||
961 | 276 | If you want to _use_ a cross compiler, that generates code for a | ||
962 | 277 | platform different from the build platform, you should specify the | ||
963 | 278 | "host" platform (i.e., that on which the generated programs will | ||
964 | 279 | eventually be run) with `--host=TYPE'. | ||
965 | 280 | |||
966 | 281 | Sharing Defaults | ||
967 | 282 | ================ | ||
968 | 283 | |||
969 | 284 | If you want to set default values for `configure' scripts to share, | ||
970 | 285 | you can create a site shell script called `config.site' that gives | ||
971 | 286 | default values for variables like `CC', `cache_file', and `prefix'. | ||
972 | 287 | `configure' looks for `PREFIX/share/config.site' if it exists, then | ||
973 | 288 | `PREFIX/etc/config.site' if it exists. Or, you can set the | ||
974 | 289 | `CONFIG_SITE' environment variable to the location of the site script. | ||
975 | 290 | A warning: not all `configure' scripts look for a site script. | ||
976 | 291 | |||
977 | 292 | Defining Variables | ||
978 | 293 | ================== | ||
979 | 294 | |||
980 | 295 | Variables not defined in a site shell script can be set in the | ||
981 | 296 | environment passed to `configure'. However, some packages may run | ||
982 | 297 | configure again during the build, and the customized values of these | ||
983 | 298 | variables may be lost. In order to avoid this problem, you should set | ||
984 | 299 | them in the `configure' command line, using `VAR=value'. For example: | ||
985 | 300 | |||
986 | 301 | ./configure CC=/usr/local2/bin/gcc | ||
987 | 302 | |||
988 | 303 | causes the specified `gcc' to be used as the C compiler (unless it is | ||
989 | 304 | overridden in the site shell script). | ||
990 | 305 | |||
991 | 306 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | ||
992 | 307 | an Autoconf bug. Until the bug is fixed you can use this workaround: | ||
993 | 308 | |||
994 | 309 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | ||
995 | 310 | |||
996 | 311 | `configure' Invocation | ||
997 | 312 | ====================== | ||
998 | 313 | |||
999 | 314 | `configure' recognizes the following options to control how it | ||
1000 | 315 | operates. | ||
1001 | 316 | |||
1002 | 317 | `--help' | ||
1003 | 318 | `-h' | ||
1004 | 319 | Print a summary of all of the options to `configure', and exit. | ||
1005 | 320 | |||
1006 | 321 | `--help=short' | ||
1007 | 322 | `--help=recursive' | ||
1008 | 323 | Print a summary of the options unique to this package's | ||
1009 | 324 | `configure', and exit. The `short' variant lists options used | ||
1010 | 325 | only in the top level, while the `recursive' variant lists options | ||
1011 | 326 | also present in any nested packages. | ||
1012 | 327 | |||
1013 | 328 | `--version' | ||
1014 | 329 | `-V' | ||
1015 | 330 | Print the version of Autoconf used to generate the `configure' | ||
1016 | 331 | script, and exit. | ||
1017 | 332 | |||
1018 | 333 | `--cache-file=FILE' | ||
1019 | 334 | Enable the cache: use and save the results of the tests in FILE, | ||
1020 | 335 | traditionally `config.cache'. FILE defaults to `/dev/null' to | ||
1021 | 336 | disable caching. | ||
1022 | 337 | |||
1023 | 338 | `--config-cache' | ||
1024 | 339 | `-C' | ||
1025 | 340 | Alias for `--cache-file=config.cache'. | ||
1026 | 341 | |||
1027 | 342 | `--quiet' | ||
1028 | 343 | `--silent' | ||
1029 | 344 | `-q' | ||
1030 | 345 | Do not print messages saying which checks are being made. To | ||
1031 | 346 | suppress all normal output, redirect it to `/dev/null' (any error | ||
1032 | 347 | messages will still be shown). | ||
1033 | 348 | |||
1034 | 349 | `--srcdir=DIR' | ||
1035 | 350 | Look for the package's source code in directory DIR. Usually | ||
1036 | 351 | `configure' can determine that directory automatically. | ||
1037 | 352 | |||
1038 | 353 | `--prefix=DIR' | ||
1039 | 354 | Use DIR as the installation prefix. *note Installation Names:: | ||
1040 | 355 | for more details, including other options available for fine-tuning | ||
1041 | 356 | the installation locations. | ||
1042 | 357 | |||
1043 | 358 | `--no-create' | ||
1044 | 359 | `-n' | ||
1045 | 360 | Run the configure checks, but stop before creating any output | ||
1046 | 361 | files. | ||
1047 | 362 | |||
1048 | 363 | `configure' also accepts some other, not widely useful, options. Run | ||
1049 | 364 | `configure --help' for more details. | ||
1050 | 365 | |||
1051 | 0 | 366 | ||
1052 | === modified file 'LSC/control.py' | |||
1053 | --- LSC/control.py 2011-09-04 14:42:55 +0000 | |||
1054 | +++ LSC/control.py 2011-09-05 21:29:25 +0000 | |||
1055 | @@ -5,6 +5,8 @@ | |||
1056 | 5 | import os | 5 | import os |
1057 | 6 | 6 | ||
1058 | 7 | home = os.getenv("HOME") | 7 | home = os.getenv("HOME") |
1059 | 8 | #TODO Define dynamicly the path | ||
1060 | 9 | data_system_path = "/usr/share/LSC/" | ||
1061 | 8 | default_conf_file = ''' | 10 | default_conf_file = ''' |
1062 | 9 | [General] | 11 | [General] |
1063 | 10 | ui_path = data/lsc.ui | 12 | ui_path = data/lsc.ui |
1064 | @@ -31,12 +33,30 @@ | |||
1065 | 31 | self.conf_file = open(self.file_path, "r+w") | 33 | self.conf_file = open(self.file_path, "r+w") |
1066 | 32 | self.parser = RawConfigParser() | 34 | self.parser = RawConfigParser() |
1067 | 33 | self.parser.readfp(self.conf_file) | 35 | self.parser.readfp(self.conf_file) |
1071 | 34 | self.UI_PATH = self.parser.get("General", "UI_PATH") | 36 | |
1072 | 35 | self.PREFERENCES_UI = self.parser.get("General", "PREFERENCES_UI") | 37 | if os.path.isfile(self.parser.get("General", "UI_PATH")): |
1073 | 36 | self.INFOS_UI = self.parser.get("General", "INFOS_UI") | 38 | self.UI_PATH = self.parser.get("General", "UI_PATH") |
1074 | 39 | else: | ||
1075 | 40 | self.UI_PATH = os.path.join(data_system_path,"lsc.ui") | ||
1076 | 41 | |||
1077 | 42 | if os.path.isfile(self.parser.get("General", "PREFERENCES_UI")): | ||
1078 | 43 | self.PREFERENCES_UI = self.parser.get("General", "PREFERENCES_UI") | ||
1079 | 44 | else: | ||
1080 | 45 | self.PREFERENCES_UI = os.path.join(data_system_path,"preferences.ui") | ||
1081 | 46 | |||
1082 | 47 | if os.path.isfile(self.parser.get("General", "INFOS_UI")): | ||
1083 | 48 | self.INFOS_UI = self.parser.get("General", "INFOS_UI") | ||
1084 | 49 | else: | ||
1085 | 50 | self.INFOS_UI = os.path.join(data_system_path,"infos.ui") | ||
1086 | 51 | |||
1087 | 37 | self.app_install_directory = self.parser.get("General", "app_install_directory") | 52 | self.app_install_directory = self.parser.get("General", "app_install_directory") |
1088 | 53 | |||
1089 | 38 | self.expert_mode = self.parser.getboolean("General", "expert_mode") | 54 | self.expert_mode = self.parser.getboolean("General", "expert_mode") |
1091 | 39 | self.categories_file = open(self.parser.get("General", "categories_file"), "r") | 55 | |
1092 | 56 | if os.path.isfile(self.parser.get("General", "categories_file")): | ||
1093 | 57 | self.categories_file = open(self.parser.get("General", "categories_file"), "r") | ||
1094 | 58 | else: | ||
1095 | 59 | self.categories_file = open(os.path.join(data_system_path,"categories"), "r") | ||
1096 | 40 | 60 | ||
1097 | 41 | def append_categories(self, ui, model): | 61 | def append_categories(self, ui, model): |
1098 | 42 | model.clear() | 62 | model.clear() |
1099 | 43 | 63 | ||
1100 | === added file 'Makefile.am' | |||
1101 | --- Makefile.am 1970-01-01 00:00:00 +0000 | |||
1102 | +++ Makefile.am 2011-09-05 21:29:25 +0000 | |||
1103 | @@ -0,0 +1,40 @@ | |||
1104 | 1 | lscbindir = $(bindir) | ||
1105 | 2 | lscbin_SCRIPTS = \ | ||
1106 | 3 | lubuntu-software-center | ||
1107 | 4 | |||
1108 | 5 | lsclibscriptdir = $(libexecdir) | ||
1109 | 6 | lsclibscript_SCRIPTS = \ | ||
1110 | 7 | scripts/apc.py | ||
1111 | 8 | |||
1112 | 9 | lscdir = $(pythondir)/LSC | ||
1113 | 10 | lsc_PYTHON = \ | ||
1114 | 11 | LSC/__init__.py \ | ||
1115 | 12 | LSC/control.py \ | ||
1116 | 13 | LSC/preferences.py \ | ||
1117 | 14 | LSC/searchentry.py \ | ||
1118 | 15 | LSC/threadingops.py \ | ||
1119 | 16 | LSC/UI.py | ||
1120 | 17 | |||
1121 | 18 | lscdatadir = $(datadir)/LSC | ||
1122 | 19 | lscdata_DATA = \ | ||
1123 | 20 | data/categories \ | ||
1124 | 21 | data/lsc.ui \ | ||
1125 | 22 | data/preferences.ui | ||
1126 | 23 | |||
1127 | 24 | |||
1128 | 25 | desktopdir = $(datadir)/applications | ||
1129 | 26 | desktop_in_files = lubuntu-software-center.desktop.in | ||
1130 | 27 | desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) | ||
1131 | 28 | |||
1132 | 29 | @INTLTOOL_DESKTOP_RULE@ | ||
1133 | 30 | |||
1134 | 31 | CLEANFILES = \ | ||
1135 | 32 | $(BUILT_SOURCES) | ||
1136 | 33 | |||
1137 | 34 | DISTCLEANFILES = \ | ||
1138 | 35 | $(CLEANFILES) | ||
1139 | 36 | |||
1140 | 37 | EXTRA_DIST = NULL | ||
1141 | 38 | |||
1142 | 39 | clean-local: | ||
1143 | 40 | rm -rf *.pyc *.pyo | ||
1144 | 0 | 41 | ||
1145 | === added file 'NEWS' | |||
1146 | === added file 'README' | |||
1147 | === added file 'autogen.sh' | |||
1148 | --- autogen.sh 1970-01-01 00:00:00 +0000 | |||
1149 | +++ autogen.sh 2011-09-05 21:29:25 +0000 | |||
1150 | @@ -0,0 +1,44 @@ | |||
1151 | 1 | #!/bin/sh | ||
1152 | 2 | # Run this to generate all the initial makefiles, etc. | ||
1153 | 3 | |||
1154 | 4 | srcdir=`dirname $0` | ||
1155 | 5 | test -z "$srcdir" && srcdir=. | ||
1156 | 6 | |||
1157 | 7 | PKG_NAME="lubuntu-software-center" | ||
1158 | 8 | |||
1159 | 9 | (test -f $srcdir/configure.ac \ | ||
1160 | 10 | && test -f $srcdir/autogen.sh) || { | ||
1161 | 11 | echo -n "**Error**: Directory \`$srcdir' does not look like the" | ||
1162 | 12 | echo " top-level $PKG_NAME directory" | ||
1163 | 13 | exit 1 | ||
1164 | 14 | } | ||
1165 | 15 | |||
1166 | 16 | if which gnome-autogen.sh ; then | ||
1167 | 17 | REQUIRED_AUTOMAKE_VERSION=1.9 . gnome-autogen.sh | ||
1168 | 18 | else | ||
1169 | 19 | if which intltoolize && which gtkdocize && which autoreconf ; then | ||
1170 | 20 | intltoolize --copy --force --automake || \ | ||
1171 | 21 | (echo "There was an error in running intltoolize." > /dev/stderr; | ||
1172 | 22 | exit 1) | ||
1173 | 23 | gtkdocize --copy || \ | ||
1174 | 24 | (echo "There was an error in running gtkdocize." > /dev/stderr; | ||
1175 | 25 | exit 1) | ||
1176 | 26 | autoreconf --force --install || \ | ||
1177 | 27 | (echo "There was an error in running autoreconf." > /dev/stderr; | ||
1178 | 28 | exit 1) | ||
1179 | 29 | else | ||
1180 | 30 | echo "No build script available. You have two choices:" | ||
1181 | 31 | echo "1. You need to install the gnome-common module and make" | ||
1182 | 32 | echo " sure the gnome-autogen.sh script is in your \$PATH." | ||
1183 | 33 | echo "2. You need to install the following scripts:" | ||
1184 | 34 | echo " * intltool" | ||
1185 | 35 | echo " * gtk-doc" | ||
1186 | 36 | echo " * libtool" | ||
1187 | 37 | echo " * automake" | ||
1188 | 38 | echo " * autoconf" | ||
1189 | 39 | echo " Additionally, you need to make" | ||
1190 | 40 | echo " sure that they are in your \$PATH." | ||
1191 | 41 | exit 1 | ||
1192 | 42 | fi | ||
1193 | 43 | fi | ||
1194 | 44 | |||
1195 | 0 | 45 | ||
1196 | === added file 'configure.ac' | |||
1197 | --- configure.ac 1970-01-01 00:00:00 +0000 | |||
1198 | +++ configure.ac 2011-09-05 21:29:25 +0000 | |||
1199 | @@ -0,0 +1,26 @@ | |||
1200 | 1 | AC_INIT([lubuntu-software-center], [0.0.1]) | ||
1201 | 2 | AM_INIT_AUTOMAKE([1.9]) | ||
1202 | 3 | AC_CONFIG_MACRO_DIR([m4]) | ||
1203 | 4 | AM_MAINTAINER_MODE | ||
1204 | 5 | AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4") | ||
1205 | 6 | |||
1206 | 7 | GETTEXT_PACKAGE="lubuntu-software-center" | ||
1207 | 8 | AC_SUBST([GETTEXT_PACKAGE]) | ||
1208 | 9 | AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package]) | ||
1209 | 10 | AM_GLIB_GNU_GETTEXT | ||
1210 | 11 | IT_PROG_INTLTOOL([0.35.0]) | ||
1211 | 12 | |||
1212 | 13 | AM_PATH_PYTHON(2.4) | ||
1213 | 14 | |||
1214 | 15 | AC_SUBST(VERSION) | ||
1215 | 16 | AC_SUBST(PACKAGE) | ||
1216 | 17 | |||
1217 | 18 | AC_OUTPUT( | ||
1218 | 19 | Makefile | ||
1219 | 20 | po/Makefile.in | ||
1220 | 21 | ) | ||
1221 | 22 | |||
1222 | 23 | echo | ||
1223 | 24 | echo $PACKAGE v$VERSION | ||
1224 | 25 | echo | ||
1225 | 26 | echo Prefix............... : $prefix | ||
1226 | 0 | 27 | ||
1227 | === added directory 'debian' | |||
1228 | === added file 'debian/changelog' | |||
1229 | --- debian/changelog 1970-01-01 00:00:00 +0000 | |||
1230 | +++ debian/changelog 2011-09-05 21:29:25 +0000 | |||
1231 | @@ -0,0 +1,5 @@ | |||
1232 | 1 | lubuntu-software-center (0.0.0~bzr31-0ubuntu1) oneiric; urgency=low | ||
1233 | 2 | |||
1234 | 3 | * Initial release. | ||
1235 | 4 | |||
1236 | 5 | -- Julien Lavergne <gilir@ubuntu.com> Fri, 01 Jan 2010 23:33:31 +0100 | ||
1237 | 0 | 6 | ||
1238 | === added file 'debian/compat' | |||
1239 | --- debian/compat 1970-01-01 00:00:00 +0000 | |||
1240 | +++ debian/compat 2011-09-05 21:29:25 +0000 | |||
1241 | @@ -0,0 +1,1 @@ | |||
1242 | 1 | 7 | ||
1243 | 0 | 2 | ||
1244 | === added file 'debian/control' | |||
1245 | --- debian/control 1970-01-01 00:00:00 +0000 | |||
1246 | +++ debian/control 2011-09-05 21:29:25 +0000 | |||
1247 | @@ -0,0 +1,30 @@ | |||
1248 | 1 | Source: lubuntu-software-center | ||
1249 | 2 | Section: python | ||
1250 | 3 | Priority: extra | ||
1251 | 4 | Maintainer: Julien Lavergne <gilir@ubuntu.com> | ||
1252 | 5 | Build-Depends: debhelper (>= 7.0.50~), | ||
1253 | 6 | python (>= 2.6.6-3~), | ||
1254 | 7 | intltool, | ||
1255 | 8 | dh-autoreconf, | ||
1256 | 9 | libglib2.0-dev | ||
1257 | 10 | Standards-Version: 3.9.2 | ||
1258 | 11 | Homepage: https://launchpad.net/lubuntu-software-center | ||
1259 | 12 | |||
1260 | 13 | Package: lubuntu-software-center | ||
1261 | 14 | Architecture: all | ||
1262 | 15 | Depends: ${misc:Depends}, | ||
1263 | 16 | ${python:Depends}, | ||
1264 | 17 | python-gtk2, | ||
1265 | 18 | python-aptdaemon.gtkwidgets | ||
1266 | 19 | Description: Utility for browsing, installing, removing applications on Lubuntu | ||
1267 | 20 | The Lubuntu Software Center lets you browse and install thousands of | ||
1268 | 21 | applications available for Lubuntu. You can view available | ||
1269 | 22 | applications by category, or search quickly by name or description. | ||
1270 | 23 | You can also examine the applications already installed, and remove | ||
1271 | 24 | those you no longer need. | ||
1272 | 25 | . | ||
1273 | 26 | This center was especially optimised for Lubuntu, but you have access to the | ||
1274 | 27 | applications than on Ubuntu Software Center. | ||
1275 | 28 | . | ||
1276 | 29 | To install or remove software using the Center, you need administrator | ||
1277 | 30 | access on the computer. | ||
1278 | 0 | 31 | ||
1279 | === added file 'debian/copyright' | |||
1280 | --- debian/copyright 1970-01-01 00:00:00 +0000 | |||
1281 | +++ debian/copyright 2011-09-05 21:29:25 +0000 | |||
1282 | @@ -0,0 +1,45 @@ | |||
1283 | 1 | Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 | ||
1284 | 2 | Upstream-Name: lubuntu-software-center | ||
1285 | 3 | Source: https://launchpad.net/lubuntu-software-center/+download | ||
1286 | 4 | |||
1287 | 5 | Files: * | ||
1288 | 6 | Copyright: 2011, Stephen Smally <eco.stefi@fastwebnet.it> | ||
1289 | 7 | License: GPL-2+ | ||
1290 | 8 | This program is free software; you can redistribute it and/or modify | ||
1291 | 9 | it under the terms of the GNU General Public License as published by | ||
1292 | 10 | the Free Software Foundation; either version 2 of the License, or | ||
1293 | 11 | (at your option) any later version. | ||
1294 | 12 | . | ||
1295 | 13 | This program is distributed in the hope that it will be useful, | ||
1296 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1297 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1298 | 16 | GNU General Public License for more profile. | ||
1299 | 17 | . | ||
1300 | 18 | You should have received a copy of the GNU General Public License | ||
1301 | 19 | along with this program; if not, write to the Free Software | ||
1302 | 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | ||
1303 | 21 | USA | ||
1304 | 22 | . | ||
1305 | 23 | On Debian systems, the full text of the GNU General Public License version 2 | ||
1306 | 24 | can be found in the file `/usr/share/common-licenses/GPL-2'. | ||
1307 | 25 | |||
1308 | 26 | Files: debian/* | ||
1309 | 27 | Copyright: 2011, Julien Lavergne <julien.lavergne@gmail.com> | ||
1310 | 28 | License: GPL-2+ | ||
1311 | 29 | This program is free software; you can redistribute it and/or modify | ||
1312 | 30 | it under the terms of the GNU General Public License as published by | ||
1313 | 31 | the Free Software Foundation; either version 2 of the License, or | ||
1314 | 32 | (at your option) any later version. | ||
1315 | 33 | . | ||
1316 | 34 | This program is distributed in the hope that it will be useful, | ||
1317 | 35 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1318 | 36 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1319 | 37 | GNU General Public License for more profile. | ||
1320 | 38 | . | ||
1321 | 39 | You should have received a copy of the GNU General Public License | ||
1322 | 40 | along with this program; if not, write to the Free Software | ||
1323 | 41 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | ||
1324 | 42 | USA | ||
1325 | 43 | . | ||
1326 | 44 | On Debian systems, the full text of the GNU General Public License version 2 | ||
1327 | 45 | can be found in the file `/usr/share/common-licenses/GPL-2'. | ||
1328 | 0 | 46 | ||
1329 | === added file 'debian/rules' | |||
1330 | --- debian/rules 1970-01-01 00:00:00 +0000 | |||
1331 | +++ debian/rules 2011-09-05 21:29:25 +0000 | |||
1332 | @@ -0,0 +1,4 @@ | |||
1333 | 1 | #!/usr/bin/make -f | ||
1334 | 2 | |||
1335 | 3 | %: | ||
1336 | 4 | dh --with python2 --with autoreconf $@ | ||
1337 | 0 | 5 | ||
1338 | === added directory 'debian/source' | |||
1339 | === added file 'debian/source/format' | |||
1340 | --- debian/source/format 1970-01-01 00:00:00 +0000 | |||
1341 | +++ debian/source/format 2011-09-05 21:29:25 +0000 | |||
1342 | @@ -0,0 +1,1 @@ | |||
1343 | 1 | 3.0 (native) | ||
1344 | 0 | 2 | ||
1345 | === added file 'debian/watch' | |||
1346 | --- debian/watch 1970-01-01 00:00:00 +0000 | |||
1347 | +++ debian/watch 2011-09-05 21:29:25 +0000 | |||
1348 | @@ -0,0 +1,2 @@ | |||
1349 | 1 | version=3 | ||
1350 | 2 | https://launchpad.net/lubuntu-software-center/+download https://launchpad.net/lubuntu-software-center/.*/lubuntu-software-center-(.+)\.tar.gz | ||
1351 | 0 | 3 | ||
1352 | === removed file 'lubuntu-software-center' | |||
1353 | --- lubuntu-software-center 2011-09-05 09:42:45 +0000 | |||
1354 | +++ lubuntu-software-center 1970-01-01 00:00:00 +0000 | |||
1355 | @@ -1,4 +0,0 @@ | |||
1356 | 1 | #!/bin/bash | ||
1357 | 2 | |||
1358 | 3 | cd /usr/share/lubuntu-software-center | ||
1359 | 4 | python lubuntu-software-center.py | ||
1360 | 5 | \ No newline at end of file | 0 | \ No newline at end of file |
1361 | 6 | 1 | ||
1362 | === renamed file 'lubuntu-software-center.py' => 'lubuntu-software-center' | |||
1363 | --- lubuntu-software-center.py 2011-09-05 09:42:45 +0000 | |||
1364 | +++ lubuntu-software-center 2011-09-05 21:29:25 +0000 | |||
1365 | @@ -1,4 +1,4 @@ | |||
1367 | 1 | #!/usr/bin/python | 1 | #!/usr/bin/env python |
1368 | 2 | # -*- coding:UTF-8 -*- | 2 | # -*- coding:UTF-8 -*- |
1369 | 3 | # | 3 | # |
1370 | 4 | # lubuntu-software-center.py | 4 | # lubuntu-software-center.py |
1371 | @@ -38,9 +38,9 @@ | |||
1372 | 38 | self.choosed_page = 1 | 38 | self.choosed_page = 1 |
1373 | 39 | self.refresh_system_call() | 39 | self.refresh_system_call() |
1374 | 40 | self.status_dict = { | 40 | self.status_dict = { |
1378 | 41 | "Get Software": 1, | 41 | _("Get Software"): 1, |
1379 | 42 | "Installed Software": 2, | 42 | _("Installed Software"): 2, |
1380 | 43 | "Apps Basket": 4 | 43 | _("Apps Basket"): 4 |
1381 | 44 | } | 44 | } |
1382 | 45 | #------------------------------------------------------- | 45 | #------------------------------------------------------- |
1383 | 46 | self.ui.categories.connect("item-activated", self.on_selected_category) | 46 | self.ui.categories.connect("item-activated", self.on_selected_category) |
1384 | @@ -285,7 +285,11 @@ | |||
1385 | 285 | 285 | ||
1386 | 286 | def on_install_pkgs(self, widget): | 286 | def on_install_pkgs(self, widget): |
1387 | 287 | self.marked_as_install_str = ",".join(self.marked_as_install) | 287 | self.marked_as_install_str = ",".join(self.marked_as_install) |
1389 | 288 | self.response = subprocess.check_output(["python", "scripts/apc.py", "install", self.marked_as_install_str]) | 288 | if os.path.isfile(os.path.join("/usr/lib/lubuntu-software-center/apc.py")): |
1390 | 289 | self.response = subprocess.check_output(["python", "/usr/lib/lubuntu-software-center/apc.py", "install", self.marked_as_install_str]) | ||
1391 | 290 | else: | ||
1392 | 291 | self.response = subprocess.check_output(["python", "scripts/apc.py", "install", self.marked_as_install_str]) | ||
1393 | 292 | |||
1394 | 289 | print self.response | 293 | print self.response |
1395 | 290 | if self.response == "success\n": | 294 | if self.response == "success\n": |
1396 | 291 | self.choosed_page = 1 | 295 | self.choosed_page = 1 |
1397 | 292 | 296 | ||
1398 | === removed file 'lubuntu-software-center.desktop' | |||
1399 | --- lubuntu-software-center.desktop 2011-09-05 09:42:45 +0000 | |||
1400 | +++ lubuntu-software-center.desktop 1970-01-01 00:00:00 +0000 | |||
1401 | @@ -1,11 +0,0 @@ | |||
1402 | 1 | [Desktop Entry] | ||
1403 | 2 | Name=Lubuntu Software Center | ||
1404 | 3 | GenericName=Software Center | ||
1405 | 4 | Comment=Lets you choose from thousands of applications available for Ubuntu | ||
1406 | 5 | Exec=/usr/bin/lubuntu-software-center | ||
1407 | 6 | Icon=softwarecenter | ||
1408 | 7 | Terminal=false | ||
1409 | 8 | Type=Application | ||
1410 | 9 | Categories=PackageManager;GTK;System;Settings; | ||
1411 | 10 | StartupNotify=true | ||
1412 | 11 | X-Ubuntu-Gettext-Domain=lubuntu-software-center | ||
1413 | 12 | 0 | ||
1414 | === added file 'lubuntu-software-center.desktop.in' | |||
1415 | --- lubuntu-software-center.desktop.in 1970-01-01 00:00:00 +0000 | |||
1416 | +++ lubuntu-software-center.desktop.in 2011-09-05 21:29:25 +0000 | |||
1417 | @@ -0,0 +1,11 @@ | |||
1418 | 1 | [Desktop Entry] | ||
1419 | 2 | _Name=Lubuntu Software Center | ||
1420 | 3 | _GenericName=Software Center | ||
1421 | 4 | _Comment=Lets you choose from thousands of applications available for Ubuntu | ||
1422 | 5 | Exec=/usr/bin/lubuntu-software-center | ||
1423 | 6 | Icon=softwarecenter | ||
1424 | 7 | Terminal=false | ||
1425 | 8 | Type=Application | ||
1426 | 9 | Categories=PackageManager;GTK;System;Settings; | ||
1427 | 10 | StartupNotify=true | ||
1428 | 11 | X-Ubuntu-Gettext-Domain=lubuntu-software-center | ||
1429 | 0 | 12 | ||
1430 | === added directory 'm4' | |||
1431 | === added file 'm4/acinclude.m4' | |||
1432 | --- m4/acinclude.m4 1970-01-01 00:00:00 +0000 | |||
1433 | +++ m4/acinclude.m4 2011-09-05 21:29:25 +0000 | |||
1434 | @@ -0,0 +1,40 @@ | |||
1435 | 1 | dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR) | ||
1436 | 2 | dnl | ||
1437 | 3 | dnl example | ||
1438 | 4 | dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) | ||
1439 | 5 | dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local | ||
1440 | 6 | |||
1441 | 7 | AC_DEFUN([AS_AC_EXPAND], | ||
1442 | 8 | [ | ||
1443 | 9 | EXP_VAR=[$1] | ||
1444 | 10 | FROM_VAR=[$2] | ||
1445 | 11 | |||
1446 | 12 | dnl first expand prefix and exec_prefix if necessary | ||
1447 | 13 | prefix_save=$prefix | ||
1448 | 14 | exec_prefix_save=$exec_prefix | ||
1449 | 15 | |||
1450 | 16 | dnl if no prefix given, then use /usr/local, the default prefix | ||
1451 | 17 | if test "x$prefix" = "xNONE"; then | ||
1452 | 18 | prefix=$ac_default_prefix | ||
1453 | 19 | fi | ||
1454 | 20 | dnl if no exec_prefix given, then use prefix | ||
1455 | 21 | if test "x$exec_prefix" = "xNONE"; then | ||
1456 | 22 | exec_prefix=$prefix | ||
1457 | 23 | fi | ||
1458 | 24 | |||
1459 | 25 | full_var="$FROM_VAR" | ||
1460 | 26 | dnl loop until it doesn't change anymore | ||
1461 | 27 | while true; do | ||
1462 | 28 | new_full_var="`eval echo $full_var`" | ||
1463 | 29 | if test "x$new_full_var"="x$full_var"; then break; fi | ||
1464 | 30 | full_var=$new_full_var | ||
1465 | 31 | done | ||
1466 | 32 | |||
1467 | 33 | dnl clean up | ||
1468 | 34 | full_var=$new_full_var | ||
1469 | 35 | AC_SUBST([$1], "$full_var") | ||
1470 | 36 | |||
1471 | 37 | dnl restore prefix and exec_prefix | ||
1472 | 38 | prefix=$prefix_save | ||
1473 | 39 | exec_prefix=$exec_prefix_save | ||
1474 | 40 | ]) | ||
1475 | 0 | 41 | ||
1476 | === added file 'm4/aclocal.m4' | |||
1477 | --- m4/aclocal.m4 1970-01-01 00:00:00 +0000 | |||
1478 | +++ m4/aclocal.m4 2011-09-05 21:29:25 +0000 | |||
1479 | @@ -0,0 +1,8036 @@ | |||
1480 | 1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | ||
1481 | 2 | |||
1482 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | ||
1483 | 4 | # 2005 Free Software Foundation, Inc. | ||
1484 | 5 | # This file is free software; the Free Software Foundation | ||
1485 | 6 | # gives unlimited permission to copy and/or distribute it, | ||
1486 | 7 | # with or without modifications, as long as this notice is preserved. | ||
1487 | 8 | |||
1488 | 9 | # This program is distributed in the hope that it will be useful, | ||
1489 | 10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
1490 | 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
1491 | 12 | # PARTICULAR PURPOSE. | ||
1492 | 13 | |||
1493 | 14 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
1494 | 15 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
1495 | 16 | # | ||
1496 | 17 | # This file is free software, distributed under the terms of the GNU | ||
1497 | 18 | # General Public License. As a special exception to the GNU General | ||
1498 | 19 | # Public License, this file may be distributed as part of a program | ||
1499 | 20 | # that contains a configuration script generated by Autoconf, under | ||
1500 | 21 | # the same distribution terms as the rest of that program. | ||
1501 | 22 | # | ||
1502 | 23 | # This file can be copied and used freely without restrictions. It can | ||
1503 | 24 | # be used in projects which are not available under the GNU Public License | ||
1504 | 25 | # but which still want to provide support for the GNU gettext functionality. | ||
1505 | 26 | # | ||
1506 | 27 | # Macro to add for using GNU gettext. | ||
1507 | 28 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
1508 | 29 | # | ||
1509 | 30 | # Modified to never use included libintl. | ||
1510 | 31 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
1511 | 32 | # | ||
1512 | 33 | # Major rework to remove unused code | ||
1513 | 34 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
1514 | 35 | # | ||
1515 | 36 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
1516 | 37 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
1517 | 38 | # | ||
1518 | 39 | # Modified to require ngettext | ||
1519 | 40 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
1520 | 41 | # | ||
1521 | 42 | # We need this here as well, since someone might use autoconf-2.5x | ||
1522 | 43 | # to configure GLib then an older version to configure a package | ||
1523 | 44 | # using AM_GLIB_GNU_GETTEXT | ||
1524 | 45 | AC_PREREQ(2.53) | ||
1525 | 46 | |||
1526 | 47 | dnl | ||
1527 | 48 | dnl We go to great lengths to make sure that aclocal won't | ||
1528 | 49 | dnl try to pull in the installed version of these macros | ||
1529 | 50 | dnl when running aclocal in the glib directory. | ||
1530 | 51 | dnl | ||
1531 | 52 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
1532 | 53 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
1533 | 54 | dnl | ||
1534 | 55 | dnl At the end, if we're not within glib, we'll define the public | ||
1535 | 56 | dnl definitions in terms of our private definitions. | ||
1536 | 57 | dnl | ||
1537 | 58 | |||
1538 | 59 | # GLIB_LC_MESSAGES | ||
1539 | 60 | #-------------------- | ||
1540 | 61 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
1541 | 62 | [AC_CHECK_HEADERS([locale.h]) | ||
1542 | 63 | if test $ac_cv_header_locale_h = yes; then | ||
1543 | 64 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
1544 | 65 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
1545 | 66 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
1546 | 67 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
1547 | 68 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
1548 | 69 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
1549 | 70 | fi | ||
1550 | 71 | fi]) | ||
1551 | 72 | |||
1552 | 73 | # GLIB_PATH_PROG_WITH_TEST | ||
1553 | 74 | #---------------------------- | ||
1554 | 75 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
1555 | 76 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
1556 | 77 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
1557 | 78 | [# Extract the first word of "$2", so it can be a program name with args. | ||
1558 | 79 | set dummy $2; ac_word=[$]2 | ||
1559 | 80 | AC_MSG_CHECKING([for $ac_word]) | ||
1560 | 81 | AC_CACHE_VAL(ac_cv_path_$1, | ||
1561 | 82 | [case "[$]$1" in | ||
1562 | 83 | /*) | ||
1563 | 84 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
1564 | 85 | ;; | ||
1565 | 86 | *) | ||
1566 | 87 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
1567 | 88 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
1568 | 89 | test -z "$ac_dir" && ac_dir=. | ||
1569 | 90 | if test -f $ac_dir/$ac_word; then | ||
1570 | 91 | if [$3]; then | ||
1571 | 92 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
1572 | 93 | break | ||
1573 | 94 | fi | ||
1574 | 95 | fi | ||
1575 | 96 | done | ||
1576 | 97 | IFS="$ac_save_ifs" | ||
1577 | 98 | dnl If no 4th arg is given, leave the cache variable unset, | ||
1578 | 99 | dnl so AC_PATH_PROGS will keep looking. | ||
1579 | 100 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
1580 | 101 | ])dnl | ||
1581 | 102 | ;; | ||
1582 | 103 | esac])dnl | ||
1583 | 104 | $1="$ac_cv_path_$1" | ||
1584 | 105 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
1585 | 106 | AC_MSG_RESULT([$]$1) | ||
1586 | 107 | else | ||
1587 | 108 | AC_MSG_RESULT(no) | ||
1588 | 109 | fi | ||
1589 | 110 | AC_SUBST($1)dnl | ||
1590 | 111 | ]) | ||
1591 | 112 | |||
1592 | 113 | # GLIB_WITH_NLS | ||
1593 | 114 | #----------------- | ||
1594 | 115 | glib_DEFUN([GLIB_WITH_NLS], | ||
1595 | 116 | dnl NLS is obligatory | ||
1596 | 117 | [USE_NLS=yes | ||
1597 | 118 | AC_SUBST(USE_NLS) | ||
1598 | 119 | |||
1599 | 120 | gt_cv_have_gettext=no | ||
1600 | 121 | |||
1601 | 122 | CATOBJEXT=NONE | ||
1602 | 123 | XGETTEXT=: | ||
1603 | 124 | INTLLIBS= | ||
1604 | 125 | |||
1605 | 126 | AC_CHECK_HEADER(libintl.h, | ||
1606 | 127 | [gt_cv_func_dgettext_libintl="no" | ||
1607 | 128 | libintl_extra_libs="" | ||
1608 | 129 | |||
1609 | 130 | # | ||
1610 | 131 | # First check in libc | ||
1611 | 132 | # | ||
1612 | 133 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
1613 | 134 | [AC_TRY_LINK([ | ||
1614 | 135 | #include <libintl.h> | ||
1615 | 136 | ], | ||
1616 | 137 | [return !ngettext ("","", 1)], | ||
1617 | 138 | gt_cv_func_ngettext_libc=yes, | ||
1618 | 139 | gt_cv_func_ngettext_libc=no) | ||
1619 | 140 | ]) | ||
1620 | 141 | |||
1621 | 142 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
1622 | 143 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
1623 | 144 | [AC_TRY_LINK([ | ||
1624 | 145 | #include <libintl.h> | ||
1625 | 146 | ], | ||
1626 | 147 | [return !dgettext ("","")], | ||
1627 | 148 | gt_cv_func_dgettext_libc=yes, | ||
1628 | 149 | gt_cv_func_dgettext_libc=no) | ||
1629 | 150 | ]) | ||
1630 | 151 | fi | ||
1631 | 152 | |||
1632 | 153 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
1633 | 154 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
1634 | 155 | fi | ||
1635 | 156 | |||
1636 | 157 | # | ||
1637 | 158 | # If we don't have everything we want, check in libintl | ||
1638 | 159 | # | ||
1639 | 160 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
1640 | 161 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
1641 | 162 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
1642 | 163 | |||
1643 | 164 | AC_CHECK_LIB(intl, bindtextdomain, | ||
1644 | 165 | [AC_CHECK_LIB(intl, ngettext, | ||
1645 | 166 | [AC_CHECK_LIB(intl, dgettext, | ||
1646 | 167 | gt_cv_func_dgettext_libintl=yes)])]) | ||
1647 | 168 | |||
1648 | 169 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
1649 | 170 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
1650 | 171 | AC_MSG_RESULT([]) | ||
1651 | 172 | AC_CHECK_LIB(intl, ngettext, | ||
1652 | 173 | [AC_CHECK_LIB(intl, dcgettext, | ||
1653 | 174 | [gt_cv_func_dgettext_libintl=yes | ||
1654 | 175 | libintl_extra_libs=-liconv], | ||
1655 | 176 | :,-liconv)], | ||
1656 | 177 | :,-liconv) | ||
1657 | 178 | fi | ||
1658 | 179 | |||
1659 | 180 | # | ||
1660 | 181 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
1661 | 182 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
1662 | 183 | # and both have dgettext and ngettext | ||
1663 | 184 | # | ||
1664 | 185 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
1665 | 186 | glib_save_LIBS="$LIBS" | ||
1666 | 187 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
1667 | 188 | unset ac_cv_func_bind_textdomain_codeset | ||
1668 | 189 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
1669 | 190 | LIBS="$glib_save_LIBS" | ||
1670 | 191 | |||
1671 | 192 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
1672 | 193 | gt_cv_func_dgettext_libc=no | ||
1673 | 194 | else | ||
1674 | 195 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
1675 | 196 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
1676 | 197 | gt_cv_func_dgettext_libintl=no | ||
1677 | 198 | fi | ||
1678 | 199 | fi | ||
1679 | 200 | fi | ||
1680 | 201 | fi | ||
1681 | 202 | |||
1682 | 203 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
1683 | 204 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
1684 | 205 | gt_cv_have_gettext=yes | ||
1685 | 206 | fi | ||
1686 | 207 | |||
1687 | 208 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
1688 | 209 | INTLLIBS="-lintl $libintl_extra_libs" | ||
1689 | 210 | fi | ||
1690 | 211 | |||
1691 | 212 | if test "$gt_cv_have_gettext" = "yes"; then | ||
1692 | 213 | AC_DEFINE(HAVE_GETTEXT,1, | ||
1693 | 214 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
1694 | 215 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
1695 | 216 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
1696 | 217 | if test "$MSGFMT" != "no"; then | ||
1697 | 218 | glib_save_LIBS="$LIBS" | ||
1698 | 219 | LIBS="$LIBS $INTLLIBS" | ||
1699 | 220 | AC_CHECK_FUNCS(dcgettext) | ||
1700 | 221 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
1701 | 222 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
1702 | 223 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
1703 | 224 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
1704 | 225 | return _nl_msg_cat_cntr], | ||
1705 | 226 | [CATOBJEXT=.gmo | ||
1706 | 227 | DATADIRNAME=share], | ||
1707 | 228 | [case $host in | ||
1708 | 229 | *-*-solaris*) | ||
1709 | 230 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
1710 | 231 | dnl GNU format message catalog is always supported, | ||
1711 | 232 | dnl since both are added to the libc all together. | ||
1712 | 233 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
1713 | 234 | dnl and CATOBJEXT=.gmo in this case. | ||
1714 | 235 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
1715 | 236 | [CATOBJEXT=.gmo | ||
1716 | 237 | DATADIRNAME=share], | ||
1717 | 238 | [CATOBJEXT=.mo | ||
1718 | 239 | DATADIRNAME=lib]) | ||
1719 | 240 | ;; | ||
1720 | 241 | *) | ||
1721 | 242 | CATOBJEXT=.mo | ||
1722 | 243 | DATADIRNAME=lib | ||
1723 | 244 | ;; | ||
1724 | 245 | esac]) | ||
1725 | 246 | LIBS="$glib_save_LIBS" | ||
1726 | 247 | INSTOBJEXT=.mo | ||
1727 | 248 | else | ||
1728 | 249 | gt_cv_have_gettext=no | ||
1729 | 250 | fi | ||
1730 | 251 | fi | ||
1731 | 252 | ]) | ||
1732 | 253 | |||
1733 | 254 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
1734 | 255 | AC_DEFINE(ENABLE_NLS, 1, | ||
1735 | 256 | [always defined to indicate that i18n is enabled]) | ||
1736 | 257 | fi | ||
1737 | 258 | |||
1738 | 259 | dnl Test whether we really found GNU xgettext. | ||
1739 | 260 | if test "$XGETTEXT" != ":"; then | ||
1740 | 261 | dnl If it is not GNU xgettext we define it as : so that the | ||
1741 | 262 | dnl Makefiles still can work. | ||
1742 | 263 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
1743 | 264 | : ; | ||
1744 | 265 | else | ||
1745 | 266 | AC_MSG_RESULT( | ||
1746 | 267 | [found xgettext program is not GNU xgettext; ignore it]) | ||
1747 | 268 | XGETTEXT=":" | ||
1748 | 269 | fi | ||
1749 | 270 | fi | ||
1750 | 271 | |||
1751 | 272 | # We need to process the po/ directory. | ||
1752 | 273 | POSUB=po | ||
1753 | 274 | |||
1754 | 275 | AC_OUTPUT_COMMANDS( | ||
1755 | 276 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
1756 | 277 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
1757 | 278 | esac]) | ||
1758 | 279 | |||
1759 | 280 | dnl These rules are solely for the distribution goal. While doing this | ||
1760 | 281 | dnl we only have to keep exactly one list of the available catalogs | ||
1761 | 282 | dnl in configure.in. | ||
1762 | 283 | for lang in $ALL_LINGUAS; do | ||
1763 | 284 | GMOFILES="$GMOFILES $lang.gmo" | ||
1764 | 285 | POFILES="$POFILES $lang.po" | ||
1765 | 286 | done | ||
1766 | 287 | |||
1767 | 288 | dnl Make all variables we use known to autoconf. | ||
1768 | 289 | AC_SUBST(CATALOGS) | ||
1769 | 290 | AC_SUBST(CATOBJEXT) | ||
1770 | 291 | AC_SUBST(DATADIRNAME) | ||
1771 | 292 | AC_SUBST(GMOFILES) | ||
1772 | 293 | AC_SUBST(INSTOBJEXT) | ||
1773 | 294 | AC_SUBST(INTLLIBS) | ||
1774 | 295 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
1775 | 296 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
1776 | 297 | AC_SUBST(POFILES) | ||
1777 | 298 | AC_SUBST(POSUB) | ||
1778 | 299 | ]) | ||
1779 | 300 | |||
1780 | 301 | # AM_GLIB_GNU_GETTEXT | ||
1781 | 302 | # ------------------- | ||
1782 | 303 | # Do checks necessary for use of gettext. If a suitable implementation | ||
1783 | 304 | # of gettext is found in either in libintl or in the C library, | ||
1784 | 305 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
1785 | 306 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
1786 | 307 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
1787 | 308 | # on various variables needed by the Makefile.in.in installed by | ||
1788 | 309 | # glib-gettextize. | ||
1789 | 310 | dnl | ||
1790 | 311 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
1791 | 312 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1792 | 313 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
1793 | 314 | |||
1794 | 315 | GLIB_LC_MESSAGES | ||
1795 | 316 | GLIB_WITH_NLS | ||
1796 | 317 | |||
1797 | 318 | if test "$gt_cv_have_gettext" = "yes"; then | ||
1798 | 319 | if test "x$ALL_LINGUAS" = "x"; then | ||
1799 | 320 | LINGUAS= | ||
1800 | 321 | else | ||
1801 | 322 | AC_MSG_CHECKING(for catalogs to be installed) | ||
1802 | 323 | NEW_LINGUAS= | ||
1803 | 324 | for presentlang in $ALL_LINGUAS; do | ||
1804 | 325 | useit=no | ||
1805 | 326 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
1806 | 327 | desiredlanguages="$LINGUAS" | ||
1807 | 328 | else | ||
1808 | 329 | desiredlanguages="$ALL_LINGUAS" | ||
1809 | 330 | fi | ||
1810 | 331 | for desiredlang in $desiredlanguages; do | ||
1811 | 332 | # Use the presentlang catalog if desiredlang is | ||
1812 | 333 | # a. equal to presentlang, or | ||
1813 | 334 | # b. a variant of presentlang (because in this case, | ||
1814 | 335 | # presentlang can be used as a fallback for messages | ||
1815 | 336 | # which are not translated in the desiredlang catalog). | ||
1816 | 337 | case "$desiredlang" in | ||
1817 | 338 | "$presentlang"*) useit=yes;; | ||
1818 | 339 | esac | ||
1819 | 340 | done | ||
1820 | 341 | if test $useit = yes; then | ||
1821 | 342 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
1822 | 343 | fi | ||
1823 | 344 | done | ||
1824 | 345 | LINGUAS=$NEW_LINGUAS | ||
1825 | 346 | AC_MSG_RESULT($LINGUAS) | ||
1826 | 347 | fi | ||
1827 | 348 | |||
1828 | 349 | dnl Construct list of names of catalog files to be constructed. | ||
1829 | 350 | if test -n "$LINGUAS"; then | ||
1830 | 351 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
1831 | 352 | fi | ||
1832 | 353 | fi | ||
1833 | 354 | |||
1834 | 355 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
1835 | 356 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
1836 | 357 | dnl Try to locate is. | ||
1837 | 358 | MKINSTALLDIRS= | ||
1838 | 359 | if test -n "$ac_aux_dir"; then | ||
1839 | 360 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
1840 | 361 | fi | ||
1841 | 362 | if test -z "$MKINSTALLDIRS"; then | ||
1842 | 363 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
1843 | 364 | fi | ||
1844 | 365 | AC_SUBST(MKINSTALLDIRS) | ||
1845 | 366 | |||
1846 | 367 | dnl Generate list of files to be processed by xgettext which will | ||
1847 | 368 | dnl be included in po/Makefile. | ||
1848 | 369 | test -d po || mkdir po | ||
1849 | 370 | if test "x$srcdir" != "x."; then | ||
1850 | 371 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
1851 | 372 | posrcprefix="$srcdir/" | ||
1852 | 373 | else | ||
1853 | 374 | posrcprefix="../$srcdir/" | ||
1854 | 375 | fi | ||
1855 | 376 | else | ||
1856 | 377 | posrcprefix="../" | ||
1857 | 378 | fi | ||
1858 | 379 | rm -f po/POTFILES | ||
1859 | 380 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
1860 | 381 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
1861 | 382 | ]) | ||
1862 | 383 | |||
1863 | 384 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
1864 | 385 | # ------------------------------- | ||
1865 | 386 | # Define VARIABLE to the location where catalog files will | ||
1866 | 387 | # be installed by po/Makefile. | ||
1867 | 388 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
1868 | 389 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
1869 | 390 | glib_save_prefix="$prefix" | ||
1870 | 391 | glib_save_exec_prefix="$exec_prefix" | ||
1871 | 392 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
1872 | 393 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
1873 | 394 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
1874 | 395 | localedir=`eval echo "${libdir}/locale"` | ||
1875 | 396 | else | ||
1876 | 397 | localedir=`eval echo "${datadir}/locale"` | ||
1877 | 398 | fi | ||
1878 | 399 | prefix="$glib_save_prefix" | ||
1879 | 400 | exec_prefix="$glib_save_exec_prefix" | ||
1880 | 401 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
1881 | 402 | [Define the location where the catalogs will be installed]) | ||
1882 | 403 | ]) | ||
1883 | 404 | |||
1884 | 405 | dnl | ||
1885 | 406 | dnl Now the definitions that aclocal will find | ||
1886 | 407 | dnl | ||
1887 | 408 | ifdef(glib_configure_in,[],[ | ||
1888 | 409 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
1889 | 410 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
1890 | 411 | ])dnl | ||
1891 | 412 | |||
1892 | 413 | # gnome-common.m4 | ||
1893 | 414 | # | ||
1894 | 415 | |||
1895 | 416 | dnl GNOME_COMMON_INIT | ||
1896 | 417 | |||
1897 | 418 | AC_DEFUN([GNOME_COMMON_INIT], | ||
1898 | 419 | [ | ||
1899 | 420 | dnl this macro should come after AC_CONFIG_MACRO_DIR | ||
1900 | 421 | AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0]) | ||
1901 | 422 | |||
1902 | 423 | dnl ensure that when the Automake generated makefile calls aclocal, | ||
1903 | 424 | dnl it honours the $ACLOCAL_FLAGS environment variable | ||
1904 | 425 | ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" | ||
1905 | 426 | if test -n "$ac_macro_dir"; then | ||
1906 | 427 | ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" | ||
1907 | 428 | fi | ||
1908 | 429 | |||
1909 | 430 | AC_SUBST([ACLOCAL_AMFLAGS]) | ||
1910 | 431 | ]) | ||
1911 | 432 | |||
1912 | 433 | AC_DEFUN([GNOME_DEBUG_CHECK], | ||
1913 | 434 | [ | ||
1914 | 435 | AC_ARG_ENABLE([debug], | ||
1915 | 436 | AC_HELP_STRING([--enable-debug], | ||
1916 | 437 | [turn on debugging]),, | ||
1917 | 438 | [enable_debug=no]) | ||
1918 | 439 | |||
1919 | 440 | if test x$enable_debug = xyes ; then | ||
1920 | 441 | AC_DEFINE(GNOME_ENABLE_DEBUG, 1, | ||
1921 | 442 | [Enable additional debugging at the expense of performance and size]) | ||
1922 | 443 | fi | ||
1923 | 444 | ]) | ||
1924 | 445 | |||
1925 | 446 | dnl GNOME_MAINTAINER_MODE_DEFINES () | ||
1926 | 447 | dnl define DISABLE_DEPRECATED | ||
1927 | 448 | dnl | ||
1928 | 449 | AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], | ||
1929 | 450 | [ | ||
1930 | 451 | AC_REQUIRE([AM_MAINTAINER_MODE]) | ||
1931 | 452 | |||
1932 | 453 | if test $USE_MAINTAINER_MODE = yes; then | ||
1933 | 454 | DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED" | ||
1934 | 455 | else | ||
1935 | 456 | DISABLE_DEPRECATED="" | ||
1936 | 457 | fi | ||
1937 | 458 | AC_SUBST(DISABLE_DEPRECATED) | ||
1938 | 459 | ]) | ||
1939 | 460 | |||
1940 | 461 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
1941 | 462 | |||
1942 | 463 | # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL | ||
1943 | 464 | |||
1944 | 465 | |||
1945 | 466 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
1946 | 467 | # ----------------------------------------------------------- | ||
1947 | 468 | # If this macro is not defined by Autoconf, define it here. | ||
1948 | 469 | m4_ifdef([AC_PROVIDE_IFELSE], | ||
1949 | 470 | [], | ||
1950 | 471 | [m4_define([AC_PROVIDE_IFELSE], | ||
1951 | 472 | [m4_ifdef([AC_PROVIDE_$1], | ||
1952 | 473 | [$2], [$3])])]) | ||
1953 | 474 | |||
1954 | 475 | |||
1955 | 476 | # AC_PROG_LIBTOOL | ||
1956 | 477 | # --------------- | ||
1957 | 478 | AC_DEFUN([AC_PROG_LIBTOOL], | ||
1958 | 479 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | ||
1959 | 480 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | ||
1960 | 481 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | ||
1961 | 482 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1962 | 483 | [AC_LIBTOOL_CXX], | ||
1963 | 484 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | ||
1964 | 485 | ])]) | ||
1965 | 486 | dnl And a similar setup for Fortran 77 support | ||
1966 | 487 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1967 | 488 | [AC_LIBTOOL_F77], | ||
1968 | 489 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | ||
1969 | 490 | ])]) | ||
1970 | 491 | |||
1971 | 492 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | ||
1972 | 493 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | ||
1973 | 494 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | ||
1974 | 495 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
1975 | 496 | [AC_LIBTOOL_GCJ], | ||
1976 | 497 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
1977 | 498 | [AC_LIBTOOL_GCJ], | ||
1978 | 499 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | ||
1979 | 500 | [AC_LIBTOOL_GCJ], | ||
1980 | 501 | [ifdef([AC_PROG_GCJ], | ||
1981 | 502 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1982 | 503 | ifdef([A][M_PROG_GCJ], | ||
1983 | 504 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1984 | 505 | ifdef([LT_AC_PROG_GCJ], | ||
1985 | 506 | [define([LT_AC_PROG_GCJ], | ||
1986 | 507 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | ||
1987 | 508 | ])])# AC_PROG_LIBTOOL | ||
1988 | 509 | |||
1989 | 510 | |||
1990 | 511 | # _AC_PROG_LIBTOOL | ||
1991 | 512 | # ---------------- | ||
1992 | 513 | AC_DEFUN([_AC_PROG_LIBTOOL], | ||
1993 | 514 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
1994 | 515 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
1995 | 516 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
1996 | 517 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
1997 | 518 | |||
1998 | 519 | # This can be used to rebuild libtool when needed | ||
1999 | 520 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
2000 | 521 | |||
2001 | 522 | # Always use our own libtool. | ||
2002 | 523 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
2003 | 524 | AC_SUBST(LIBTOOL)dnl | ||
2004 | 525 | |||
2005 | 526 | # Prevent multiple expansion | ||
2006 | 527 | define([AC_PROG_LIBTOOL], []) | ||
2007 | 528 | ])# _AC_PROG_LIBTOOL | ||
2008 | 529 | |||
2009 | 530 | |||
2010 | 531 | # AC_LIBTOOL_SETUP | ||
2011 | 532 | # ---------------- | ||
2012 | 533 | AC_DEFUN([AC_LIBTOOL_SETUP], | ||
2013 | 534 | [AC_PREREQ(2.50)dnl | ||
2014 | 535 | AC_REQUIRE([AC_ENABLE_SHARED])dnl | ||
2015 | 536 | AC_REQUIRE([AC_ENABLE_STATIC])dnl | ||
2016 | 537 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | ||
2017 | 538 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2018 | 539 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
2019 | 540 | AC_REQUIRE([AC_PROG_CC])dnl | ||
2020 | 541 | AC_REQUIRE([AC_PROG_LD])dnl | ||
2021 | 542 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | ||
2022 | 543 | AC_REQUIRE([AC_PROG_NM])dnl | ||
2023 | 544 | |||
2024 | 545 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
2025 | 546 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | ||
2026 | 547 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
2027 | 548 | AC_REQUIRE([AC_OBJEXT])dnl | ||
2028 | 549 | AC_REQUIRE([AC_EXEEXT])dnl | ||
2029 | 550 | dnl | ||
2030 | 551 | |||
2031 | 552 | AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
2032 | 553 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
2033 | 554 | AC_LIBTOOL_OBJDIR | ||
2034 | 555 | |||
2035 | 556 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
2036 | 557 | _LT_AC_PROG_ECHO_BACKSLASH | ||
2037 | 558 | |||
2038 | 559 | case $host_os in | ||
2039 | 560 | aix3*) | ||
2040 | 561 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
2041 | 562 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
2042 | 563 | # vanish in a puff of smoke. | ||
2043 | 564 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
2044 | 565 | COLLECT_NAMES= | ||
2045 | 566 | export COLLECT_NAMES | ||
2046 | 567 | fi | ||
2047 | 568 | ;; | ||
2048 | 569 | esac | ||
2049 | 570 | |||
2050 | 571 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
2051 | 572 | # metacharacters that are still active within double-quoted strings. | ||
2052 | 573 | Xsed='sed -e 1s/^X//' | ||
2053 | 574 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | ||
2054 | 575 | |||
2055 | 576 | # Same as above, but do not quote variable references. | ||
2056 | 577 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | ||
2057 | 578 | |||
2058 | 579 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
2059 | 580 | # double_quote_subst'ed string. | ||
2060 | 581 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
2061 | 582 | |||
2062 | 583 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
2063 | 584 | no_glob_subst='s/\*/\\\*/g' | ||
2064 | 585 | |||
2065 | 586 | # Constants: | ||
2066 | 587 | rm="rm -f" | ||
2067 | 588 | |||
2068 | 589 | # Global variables: | ||
2069 | 590 | default_ofile=libtool | ||
2070 | 591 | can_build_shared=yes | ||
2071 | 592 | |||
2072 | 593 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
2073 | 594 | # which needs '.lib'). | ||
2074 | 595 | libext=a | ||
2075 | 596 | ltmain="$ac_aux_dir/ltmain.sh" | ||
2076 | 597 | ofile="$default_ofile" | ||
2077 | 598 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
2078 | 599 | |||
2079 | 600 | AC_CHECK_TOOL(AR, ar, false) | ||
2080 | 601 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
2081 | 602 | AC_CHECK_TOOL(STRIP, strip, :) | ||
2082 | 603 | |||
2083 | 604 | old_CC="$CC" | ||
2084 | 605 | old_CFLAGS="$CFLAGS" | ||
2085 | 606 | |||
2086 | 607 | # Set sane defaults for various variables | ||
2087 | 608 | test -z "$AR" && AR=ar | ||
2088 | 609 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
2089 | 610 | test -z "$AS" && AS=as | ||
2090 | 611 | test -z "$CC" && CC=cc | ||
2091 | 612 | test -z "$LTCC" && LTCC=$CC | ||
2092 | 613 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
2093 | 614 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
2094 | 615 | test -z "$LD" && LD=ld | ||
2095 | 616 | test -z "$LN_S" && LN_S="ln -s" | ||
2096 | 617 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
2097 | 618 | test -z "$NM" && NM=nm | ||
2098 | 619 | test -z "$SED" && SED=sed | ||
2099 | 620 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
2100 | 621 | test -z "$RANLIB" && RANLIB=: | ||
2101 | 622 | test -z "$STRIP" && STRIP=: | ||
2102 | 623 | test -z "$ac_objext" && ac_objext=o | ||
2103 | 624 | |||
2104 | 625 | # Determine commands to create old-style static archives. | ||
2105 | 626 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
2106 | 627 | old_postinstall_cmds='chmod 644 $oldlib' | ||
2107 | 628 | old_postuninstall_cmds= | ||
2108 | 629 | |||
2109 | 630 | if test -n "$RANLIB"; then | ||
2110 | 631 | case $host_os in | ||
2111 | 632 | openbsd*) | ||
2112 | 633 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
2113 | 634 | ;; | ||
2114 | 635 | *) | ||
2115 | 636 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
2116 | 637 | ;; | ||
2117 | 638 | esac | ||
2118 | 639 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
2119 | 640 | fi | ||
2120 | 641 | |||
2121 | 642 | _LT_CC_BASENAME([$compiler]) | ||
2122 | 643 | |||
2123 | 644 | # Only perform the check for file, if the check method requires it | ||
2124 | 645 | case $deplibs_check_method in | ||
2125 | 646 | file_magic*) | ||
2126 | 647 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
2127 | 648 | AC_PATH_MAGIC | ||
2128 | 649 | fi | ||
2129 | 650 | ;; | ||
2130 | 651 | esac | ||
2131 | 652 | |||
2132 | 653 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | ||
2133 | 654 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
2134 | 655 | enable_win32_dll=yes, enable_win32_dll=no) | ||
2135 | 656 | |||
2136 | 657 | AC_ARG_ENABLE([libtool-lock], | ||
2137 | 658 | [AC_HELP_STRING([--disable-libtool-lock], | ||
2138 | 659 | [avoid locking (might break parallel builds)])]) | ||
2139 | 660 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
2140 | 661 | |||
2141 | 662 | AC_ARG_WITH([pic], | ||
2142 | 663 | [AC_HELP_STRING([--with-pic], | ||
2143 | 664 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
2144 | 665 | [pic_mode="$withval"], | ||
2145 | 666 | [pic_mode=default]) | ||
2146 | 667 | test -z "$pic_mode" && pic_mode=default | ||
2147 | 668 | |||
2148 | 669 | # Use C for the default configuration in the libtool script | ||
2149 | 670 | tagname= | ||
2150 | 671 | AC_LIBTOOL_LANG_C_CONFIG | ||
2151 | 672 | _LT_AC_TAGCONFIG | ||
2152 | 673 | ])# AC_LIBTOOL_SETUP | ||
2153 | 674 | |||
2154 | 675 | |||
2155 | 676 | # _LT_AC_SYS_COMPILER | ||
2156 | 677 | # ------------------- | ||
2157 | 678 | AC_DEFUN([_LT_AC_SYS_COMPILER], | ||
2158 | 679 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
2159 | 680 | |||
2160 | 681 | # If no C compiler was specified, use CC. | ||
2161 | 682 | LTCC=${LTCC-"$CC"} | ||
2162 | 683 | |||
2163 | 684 | # If no C compiler flags were specified, use CFLAGS. | ||
2164 | 685 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
2165 | 686 | |||
2166 | 687 | # Allow CC to be a program name with arguments. | ||
2167 | 688 | compiler=$CC | ||
2168 | 689 | ])# _LT_AC_SYS_COMPILER | ||
2169 | 690 | |||
2170 | 691 | |||
2171 | 692 | # _LT_CC_BASENAME(CC) | ||
2172 | 693 | # ------------------- | ||
2173 | 694 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
2174 | 695 | AC_DEFUN([_LT_CC_BASENAME], | ||
2175 | 696 | [for cc_temp in $1""; do | ||
2176 | 697 | case $cc_temp in | ||
2177 | 698 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
2178 | 699 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
2179 | 700 | \-*) ;; | ||
2180 | 701 | *) break;; | ||
2181 | 702 | esac | ||
2182 | 703 | done | ||
2183 | 704 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
2184 | 705 | ]) | ||
2185 | 706 | |||
2186 | 707 | |||
2187 | 708 | # _LT_COMPILER_BOILERPLATE | ||
2188 | 709 | # ------------------------ | ||
2189 | 710 | # Check for compiler boilerplate output or warnings with | ||
2190 | 711 | # the simple compiler test code. | ||
2191 | 712 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | ||
2192 | 713 | [ac_outfile=conftest.$ac_objext | ||
2193 | 714 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
2194 | 715 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
2195 | 716 | _lt_compiler_boilerplate=`cat conftest.err` | ||
2196 | 717 | $rm conftest* | ||
2197 | 718 | ])# _LT_COMPILER_BOILERPLATE | ||
2198 | 719 | |||
2199 | 720 | |||
2200 | 721 | # _LT_LINKER_BOILERPLATE | ||
2201 | 722 | # ---------------------- | ||
2202 | 723 | # Check for linker boilerplate output or warnings with | ||
2203 | 724 | # the simple link test code. | ||
2204 | 725 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | ||
2205 | 726 | [ac_outfile=conftest.$ac_objext | ||
2206 | 727 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
2207 | 728 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
2208 | 729 | _lt_linker_boilerplate=`cat conftest.err` | ||
2209 | 730 | $rm conftest* | ||
2210 | 731 | ])# _LT_LINKER_BOILERPLATE | ||
2211 | 732 | |||
2212 | 733 | |||
2213 | 734 | # _LT_AC_SYS_LIBPATH_AIX | ||
2214 | 735 | # ---------------------- | ||
2215 | 736 | # Links a minimal program and checks the executable | ||
2216 | 737 | # for the system default hardcoded library path. In most cases, | ||
2217 | 738 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
2218 | 739 | # the location of the communication and MPI libs are included too. | ||
2219 | 740 | # If we don't find anything, use the default library path according | ||
2220 | 741 | # to the aix ld manual. | ||
2221 | 742 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
2222 | 743 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
2223 | 744 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
2224 | 745 | }'` | ||
2225 | 746 | # Check for a 64-bit object if we didn't find anything. | ||
2226 | 747 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
2227 | 748 | }'`; fi],[]) | ||
2228 | 749 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
2229 | 750 | ])# _LT_AC_SYS_LIBPATH_AIX | ||
2230 | 751 | |||
2231 | 752 | |||
2232 | 753 | # _LT_AC_SHELL_INIT(ARG) | ||
2233 | 754 | # ---------------------- | ||
2234 | 755 | AC_DEFUN([_LT_AC_SHELL_INIT], | ||
2235 | 756 | [ifdef([AC_DIVERSION_NOTICE], | ||
2236 | 757 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
2237 | 758 | [AC_DIVERT_PUSH(NOTICE)]) | ||
2238 | 759 | $1 | ||
2239 | 760 | AC_DIVERT_POP | ||
2240 | 761 | ])# _LT_AC_SHELL_INIT | ||
2241 | 762 | |||
2242 | 763 | |||
2243 | 764 | # _LT_AC_PROG_ECHO_BACKSLASH | ||
2244 | 765 | # -------------------------- | ||
2245 | 766 | # Add some code to the start of the generated configure script which | ||
2246 | 767 | # will find an echo command which doesn't interpret backslashes. | ||
2247 | 768 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | ||
2248 | 769 | [_LT_AC_SHELL_INIT([ | ||
2249 | 770 | # Check that we are running under the correct shell. | ||
2250 | 771 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
2251 | 772 | |||
2252 | 773 | case X$ECHO in | ||
2253 | 774 | X*--fallback-echo) | ||
2254 | 775 | # Remove one level of quotation (which was required for Make). | ||
2255 | 776 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
2256 | 777 | ;; | ||
2257 | 778 | esac | ||
2258 | 779 | |||
2259 | 780 | echo=${ECHO-echo} | ||
2260 | 781 | if test "X[$]1" = X--no-reexec; then | ||
2261 | 782 | # Discard the --no-reexec flag, and continue. | ||
2262 | 783 | shift | ||
2263 | 784 | elif test "X[$]1" = X--fallback-echo; then | ||
2264 | 785 | # Avoid inline document here, it may be left over | ||
2265 | 786 | : | ||
2266 | 787 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
2267 | 788 | # Yippee, $echo works! | ||
2268 | 789 | : | ||
2269 | 790 | else | ||
2270 | 791 | # Restart under the correct shell. | ||
2271 | 792 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
2272 | 793 | fi | ||
2273 | 794 | |||
2274 | 795 | if test "X[$]1" = X--fallback-echo; then | ||
2275 | 796 | # used as fallback echo | ||
2276 | 797 | shift | ||
2277 | 798 | cat <<EOF | ||
2278 | 799 | [$]* | ||
2279 | 800 | EOF | ||
2280 | 801 | exit 0 | ||
2281 | 802 | fi | ||
2282 | 803 | |||
2283 | 804 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
2284 | 805 | # if CDPATH is set. | ||
2285 | 806 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
2286 | 807 | |||
2287 | 808 | if test -z "$ECHO"; then | ||
2288 | 809 | if test "X${echo_test_string+set}" != Xset; then | ||
2289 | 810 | # find a string as large as possible, as long as the shell can cope with it | ||
2290 | 811 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
2291 | 812 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
2292 | 813 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
2293 | 814 | echo_test_string=`eval $cmd` && | ||
2294 | 815 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
2295 | 816 | then | ||
2296 | 817 | break | ||
2297 | 818 | fi | ||
2298 | 819 | done | ||
2299 | 820 | fi | ||
2300 | 821 | |||
2301 | 822 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
2302 | 823 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
2303 | 824 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2304 | 825 | : | ||
2305 | 826 | else | ||
2306 | 827 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
2307 | 828 | # backslashes. This makes it impossible to quote backslashes using | ||
2308 | 829 | # echo "$something" | sed 's/\\/\\\\/g' | ||
2309 | 830 | # | ||
2310 | 831 | # So, first we look for a working echo in the user's PATH. | ||
2311 | 832 | |||
2312 | 833 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2313 | 834 | for dir in $PATH /usr/ucb; do | ||
2314 | 835 | IFS="$lt_save_ifs" | ||
2315 | 836 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
2316 | 837 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
2317 | 838 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
2318 | 839 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2319 | 840 | echo="$dir/echo" | ||
2320 | 841 | break | ||
2321 | 842 | fi | ||
2322 | 843 | done | ||
2323 | 844 | IFS="$lt_save_ifs" | ||
2324 | 845 | |||
2325 | 846 | if test "X$echo" = Xecho; then | ||
2326 | 847 | # We didn't find a better echo, so look for alternatives. | ||
2327 | 848 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
2328 | 849 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
2329 | 850 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2330 | 851 | # This shell has a builtin print -r that does the trick. | ||
2331 | 852 | echo='print -r' | ||
2332 | 853 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
2333 | 854 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
2334 | 855 | # If we have ksh, try running configure again with it. | ||
2335 | 856 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
2336 | 857 | export ORIGINAL_CONFIG_SHELL | ||
2337 | 858 | CONFIG_SHELL=/bin/ksh | ||
2338 | 859 | export CONFIG_SHELL | ||
2339 | 860 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
2340 | 861 | else | ||
2341 | 862 | # Try using printf. | ||
2342 | 863 | echo='printf %s\n' | ||
2343 | 864 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
2344 | 865 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
2345 | 866 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2346 | 867 | # Cool, printf works | ||
2347 | 868 | : | ||
2348 | 869 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
2349 | 870 | test "X$echo_testing_string" = 'X\t' && | ||
2350 | 871 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
2351 | 872 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2352 | 873 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
2353 | 874 | export CONFIG_SHELL | ||
2354 | 875 | SHELL="$CONFIG_SHELL" | ||
2355 | 876 | export SHELL | ||
2356 | 877 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
2357 | 878 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
2358 | 879 | test "X$echo_testing_string" = 'X\t' && | ||
2359 | 880 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
2360 | 881 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
2361 | 882 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
2362 | 883 | else | ||
2363 | 884 | # maybe with a smaller string... | ||
2364 | 885 | prev=: | ||
2365 | 886 | |||
2366 | 887 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
2367 | 888 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
2368 | 889 | then | ||
2369 | 890 | break | ||
2370 | 891 | fi | ||
2371 | 892 | prev="$cmd" | ||
2372 | 893 | done | ||
2373 | 894 | |||
2374 | 895 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
2375 | 896 | echo_test_string=`eval $prev` | ||
2376 | 897 | export echo_test_string | ||
2377 | 898 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
2378 | 899 | else | ||
2379 | 900 | # Oops. We lost completely, so just stick with echo. | ||
2380 | 901 | echo=echo | ||
2381 | 902 | fi | ||
2382 | 903 | fi | ||
2383 | 904 | fi | ||
2384 | 905 | fi | ||
2385 | 906 | fi | ||
2386 | 907 | fi | ||
2387 | 908 | |||
2388 | 909 | # Copy echo and quote the copy suitably for passing to libtool from | ||
2389 | 910 | # the Makefile, instead of quoting the original, which is used later. | ||
2390 | 911 | ECHO=$echo | ||
2391 | 912 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
2392 | 913 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
2393 | 914 | fi | ||
2394 | 915 | |||
2395 | 916 | AC_SUBST(ECHO) | ||
2396 | 917 | ])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
2397 | 918 | |||
2398 | 919 | |||
2399 | 920 | # _LT_AC_LOCK | ||
2400 | 921 | # ----------- | ||
2401 | 922 | AC_DEFUN([_LT_AC_LOCK], | ||
2402 | 923 | [AC_ARG_ENABLE([libtool-lock], | ||
2403 | 924 | [AC_HELP_STRING([--disable-libtool-lock], | ||
2404 | 925 | [avoid locking (might break parallel builds)])]) | ||
2405 | 926 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
2406 | 927 | |||
2407 | 928 | # Some flags need to be propagated to the compiler or linker for good | ||
2408 | 929 | # libtool support. | ||
2409 | 930 | case $host in | ||
2410 | 931 | ia64-*-hpux*) | ||
2411 | 932 | # Find out which ABI we are using. | ||
2412 | 933 | echo 'int i;' > conftest.$ac_ext | ||
2413 | 934 | if AC_TRY_EVAL(ac_compile); then | ||
2414 | 935 | case `/usr/bin/file conftest.$ac_objext` in | ||
2415 | 936 | *ELF-32*) | ||
2416 | 937 | HPUX_IA64_MODE="32" | ||
2417 | 938 | ;; | ||
2418 | 939 | *ELF-64*) | ||
2419 | 940 | HPUX_IA64_MODE="64" | ||
2420 | 941 | ;; | ||
2421 | 942 | esac | ||
2422 | 943 | fi | ||
2423 | 944 | rm -rf conftest* | ||
2424 | 945 | ;; | ||
2425 | 946 | *-*-irix6*) | ||
2426 | 947 | # Find out which ABI we are using. | ||
2427 | 948 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | ||
2428 | 949 | if AC_TRY_EVAL(ac_compile); then | ||
2429 | 950 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
2430 | 951 | case `/usr/bin/file conftest.$ac_objext` in | ||
2431 | 952 | *32-bit*) | ||
2432 | 953 | LD="${LD-ld} -melf32bsmip" | ||
2433 | 954 | ;; | ||
2434 | 955 | *N32*) | ||
2435 | 956 | LD="${LD-ld} -melf32bmipn32" | ||
2436 | 957 | ;; | ||
2437 | 958 | *64-bit*) | ||
2438 | 959 | LD="${LD-ld} -melf64bmip" | ||
2439 | 960 | ;; | ||
2440 | 961 | esac | ||
2441 | 962 | else | ||
2442 | 963 | case `/usr/bin/file conftest.$ac_objext` in | ||
2443 | 964 | *32-bit*) | ||
2444 | 965 | LD="${LD-ld} -32" | ||
2445 | 966 | ;; | ||
2446 | 967 | *N32*) | ||
2447 | 968 | LD="${LD-ld} -n32" | ||
2448 | 969 | ;; | ||
2449 | 970 | *64-bit*) | ||
2450 | 971 | LD="${LD-ld} -64" | ||
2451 | 972 | ;; | ||
2452 | 973 | esac | ||
2453 | 974 | fi | ||
2454 | 975 | fi | ||
2455 | 976 | rm -rf conftest* | ||
2456 | 977 | ;; | ||
2457 | 978 | |||
2458 | 979 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
2459 | 980 | # Find out which ABI we are using. | ||
2460 | 981 | echo 'int i;' > conftest.$ac_ext | ||
2461 | 982 | if AC_TRY_EVAL(ac_compile); then | ||
2462 | 983 | case `/usr/bin/file conftest.o` in | ||
2463 | 984 | *32-bit*) | ||
2464 | 985 | case $host in | ||
2465 | 986 | x86_64-*linux*) | ||
2466 | 987 | LD="${LD-ld} -m elf_i386" | ||
2467 | 988 | ;; | ||
2468 | 989 | ppc64-*linux*|powerpc64-*linux*) | ||
2469 | 990 | LD="${LD-ld} -m elf32ppclinux" | ||
2470 | 991 | ;; | ||
2471 | 992 | s390x-*linux*) | ||
2472 | 993 | LD="${LD-ld} -m elf_s390" | ||
2473 | 994 | ;; | ||
2474 | 995 | sparc64-*linux*) | ||
2475 | 996 | LD="${LD-ld} -m elf32_sparc" | ||
2476 | 997 | ;; | ||
2477 | 998 | esac | ||
2478 | 999 | ;; | ||
2479 | 1000 | *64-bit*) | ||
2480 | 1001 | case $host in | ||
2481 | 1002 | x86_64-*linux*) | ||
2482 | 1003 | LD="${LD-ld} -m elf_x86_64" | ||
2483 | 1004 | ;; | ||
2484 | 1005 | ppc*-*linux*|powerpc*-*linux*) | ||
2485 | 1006 | LD="${LD-ld} -m elf64ppc" | ||
2486 | 1007 | ;; | ||
2487 | 1008 | s390*-*linux*) | ||
2488 | 1009 | LD="${LD-ld} -m elf64_s390" | ||
2489 | 1010 | ;; | ||
2490 | 1011 | sparc*-*linux*) | ||
2491 | 1012 | LD="${LD-ld} -m elf64_sparc" | ||
2492 | 1013 | ;; | ||
2493 | 1014 | esac | ||
2494 | 1015 | ;; | ||
2495 | 1016 | esac | ||
2496 | 1017 | fi | ||
2497 | 1018 | rm -rf conftest* | ||
2498 | 1019 | ;; | ||
2499 | 1020 | |||
2500 | 1021 | *-*-sco3.2v5*) | ||
2501 | 1022 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
2502 | 1023 | SAVE_CFLAGS="$CFLAGS" | ||
2503 | 1024 | CFLAGS="$CFLAGS -belf" | ||
2504 | 1025 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
2505 | 1026 | [AC_LANG_PUSH(C) | ||
2506 | 1027 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
2507 | 1028 | AC_LANG_POP]) | ||
2508 | 1029 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
2509 | 1030 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
2510 | 1031 | CFLAGS="$SAVE_CFLAGS" | ||
2511 | 1032 | fi | ||
2512 | 1033 | ;; | ||
2513 | 1034 | sparc*-*solaris*) | ||
2514 | 1035 | # Find out which ABI we are using. | ||
2515 | 1036 | echo 'int i;' > conftest.$ac_ext | ||
2516 | 1037 | if AC_TRY_EVAL(ac_compile); then | ||
2517 | 1038 | case `/usr/bin/file conftest.o` in | ||
2518 | 1039 | *64-bit*) | ||
2519 | 1040 | case $lt_cv_prog_gnu_ld in | ||
2520 | 1041 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
2521 | 1042 | *) LD="${LD-ld} -64" ;; | ||
2522 | 1043 | esac | ||
2523 | 1044 | ;; | ||
2524 | 1045 | esac | ||
2525 | 1046 | fi | ||
2526 | 1047 | rm -rf conftest* | ||
2527 | 1048 | ;; | ||
2528 | 1049 | |||
2529 | 1050 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
2530 | 1051 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
2531 | 1052 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
2532 | 1053 | AC_CHECK_TOOL(AS, as, false) | ||
2533 | 1054 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
2534 | 1055 | ;; | ||
2535 | 1056 | ]) | ||
2536 | 1057 | esac | ||
2537 | 1058 | |||
2538 | 1059 | need_locks="$enable_libtool_lock" | ||
2539 | 1060 | |||
2540 | 1061 | ])# _LT_AC_LOCK | ||
2541 | 1062 | |||
2542 | 1063 | |||
2543 | 1064 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
2544 | 1065 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
2545 | 1066 | # ---------------------------------------------------------------- | ||
2546 | 1067 | # Check whether the given compiler option works | ||
2547 | 1068 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | ||
2548 | 1069 | [AC_REQUIRE([LT_AC_PROG_SED]) | ||
2549 | 1070 | AC_CACHE_CHECK([$1], [$2], | ||
2550 | 1071 | [$2=no | ||
2551 | 1072 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
2552 | 1073 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2553 | 1074 | lt_compiler_flag="$3" | ||
2554 | 1075 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2555 | 1076 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2556 | 1077 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2557 | 1078 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2558 | 1079 | # The option is referenced via a variable to avoid confusing sed. | ||
2559 | 1080 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2560 | 1081 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2561 | 1082 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2562 | 1083 | -e 's:$: $lt_compiler_flag:'` | ||
2563 | 1084 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2564 | 1085 | (eval "$lt_compile" 2>conftest.err) | ||
2565 | 1086 | ac_status=$? | ||
2566 | 1087 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
2567 | 1088 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2568 | 1089 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
2569 | 1090 | # The compiler can only warn and ignore the option if not recognized | ||
2570 | 1091 | # So say no if there are warnings other than the usual output. | ||
2571 | 1092 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
2572 | 1093 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
2573 | 1094 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
2574 | 1095 | $2=yes | ||
2575 | 1096 | fi | ||
2576 | 1097 | fi | ||
2577 | 1098 | $rm conftest* | ||
2578 | 1099 | ]) | ||
2579 | 1100 | |||
2580 | 1101 | if test x"[$]$2" = xyes; then | ||
2581 | 1102 | ifelse([$5], , :, [$5]) | ||
2582 | 1103 | else | ||
2583 | 1104 | ifelse([$6], , :, [$6]) | ||
2584 | 1105 | fi | ||
2585 | 1106 | ])# AC_LIBTOOL_COMPILER_OPTION | ||
2586 | 1107 | |||
2587 | 1108 | |||
2588 | 1109 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
2589 | 1110 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
2590 | 1111 | # ------------------------------------------------------------ | ||
2591 | 1112 | # Check whether the given compiler option works | ||
2592 | 1113 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | ||
2593 | 1114 | [AC_CACHE_CHECK([$1], [$2], | ||
2594 | 1115 | [$2=no | ||
2595 | 1116 | save_LDFLAGS="$LDFLAGS" | ||
2596 | 1117 | LDFLAGS="$LDFLAGS $3" | ||
2597 | 1118 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
2598 | 1119 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
2599 | 1120 | # The linker can only warn and ignore the option if not recognized | ||
2600 | 1121 | # So say no if there are warnings | ||
2601 | 1122 | if test -s conftest.err; then | ||
2602 | 1123 | # Append any errors to the config.log. | ||
2603 | 1124 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
2604 | 1125 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
2605 | 1126 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
2606 | 1127 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
2607 | 1128 | $2=yes | ||
2608 | 1129 | fi | ||
2609 | 1130 | else | ||
2610 | 1131 | $2=yes | ||
2611 | 1132 | fi | ||
2612 | 1133 | fi | ||
2613 | 1134 | $rm conftest* | ||
2614 | 1135 | LDFLAGS="$save_LDFLAGS" | ||
2615 | 1136 | ]) | ||
2616 | 1137 | |||
2617 | 1138 | if test x"[$]$2" = xyes; then | ||
2618 | 1139 | ifelse([$4], , :, [$4]) | ||
2619 | 1140 | else | ||
2620 | 1141 | ifelse([$5], , :, [$5]) | ||
2621 | 1142 | fi | ||
2622 | 1143 | ])# AC_LIBTOOL_LINKER_OPTION | ||
2623 | 1144 | |||
2624 | 1145 | |||
2625 | 1146 | # AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
2626 | 1147 | # -------------------------- | ||
2627 | 1148 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
2628 | 1149 | [# find the maximum length of command line arguments | ||
2629 | 1150 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
2630 | 1151 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
2631 | 1152 | i=0 | ||
2632 | 1153 | teststring="ABCD" | ||
2633 | 1154 | |||
2634 | 1155 | case $build_os in | ||
2635 | 1156 | msdosdjgpp*) | ||
2636 | 1157 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
2637 | 1158 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
2638 | 1159 | # during glob expansion). Even if it were fixed, the result of this | ||
2639 | 1160 | # check would be larger than it should be. | ||
2640 | 1161 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
2641 | 1162 | ;; | ||
2642 | 1163 | |||
2643 | 1164 | gnu*) | ||
2644 | 1165 | # Under GNU Hurd, this test is not required because there is | ||
2645 | 1166 | # no limit to the length of command line arguments. | ||
2646 | 1167 | # Libtool will interpret -1 as no limit whatsoever | ||
2647 | 1168 | lt_cv_sys_max_cmd_len=-1; | ||
2648 | 1169 | ;; | ||
2649 | 1170 | |||
2650 | 1171 | cygwin* | mingw*) | ||
2651 | 1172 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
2652 | 1173 | # about 5 minutes as the teststring grows exponentially. | ||
2653 | 1174 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
2654 | 1175 | # you end up with a "frozen" computer, even though with patience | ||
2655 | 1176 | # the test eventually succeeds (with a max line length of 256k). | ||
2656 | 1177 | # Instead, let's just punt: use the minimum linelength reported by | ||
2657 | 1178 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
2658 | 1179 | lt_cv_sys_max_cmd_len=8192; | ||
2659 | 1180 | ;; | ||
2660 | 1181 | |||
2661 | 1182 | amigaos*) | ||
2662 | 1183 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
2663 | 1184 | # So we just punt and use a minimum line length of 8192. | ||
2664 | 1185 | lt_cv_sys_max_cmd_len=8192; | ||
2665 | 1186 | ;; | ||
2666 | 1187 | |||
2667 | 1188 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
2668 | 1189 | # This has been around since 386BSD, at least. Likely further. | ||
2669 | 1190 | if test -x /sbin/sysctl; then | ||
2670 | 1191 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
2671 | 1192 | elif test -x /usr/sbin/sysctl; then | ||
2672 | 1193 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
2673 | 1194 | else | ||
2674 | 1195 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
2675 | 1196 | fi | ||
2676 | 1197 | # And add a safety zone | ||
2677 | 1198 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
2678 | 1199 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
2679 | 1200 | ;; | ||
2680 | 1201 | |||
2681 | 1202 | interix*) | ||
2682 | 1203 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
2683 | 1204 | lt_cv_sys_max_cmd_len=196608 | ||
2684 | 1205 | ;; | ||
2685 | 1206 | |||
2686 | 1207 | osf*) | ||
2687 | 1208 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
2688 | 1209 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
2689 | 1210 | # nice to cause kernel panics so lets avoid the loop below. | ||
2690 | 1211 | # First set a reasonable default. | ||
2691 | 1212 | lt_cv_sys_max_cmd_len=16384 | ||
2692 | 1213 | # | ||
2693 | 1214 | if test -x /sbin/sysconfig; then | ||
2694 | 1215 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
2695 | 1216 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
2696 | 1217 | esac | ||
2697 | 1218 | fi | ||
2698 | 1219 | ;; | ||
2699 | 1220 | sco3.2v5*) | ||
2700 | 1221 | lt_cv_sys_max_cmd_len=102400 | ||
2701 | 1222 | ;; | ||
2702 | 1223 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
2703 | 1224 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
2704 | 1225 | if test -n "$kargmax"; then | ||
2705 | 1226 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
2706 | 1227 | else | ||
2707 | 1228 | lt_cv_sys_max_cmd_len=32768 | ||
2708 | 1229 | fi | ||
2709 | 1230 | ;; | ||
2710 | 1231 | *) | ||
2711 | 1232 | # If test is not a shell built-in, we'll probably end up computing a | ||
2712 | 1233 | # maximum length that is only half of the actual maximum length, but | ||
2713 | 1234 | # we can't tell. | ||
2714 | 1235 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
2715 | 1236 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
2716 | 1237 | = "XX$teststring") >/dev/null 2>&1 && | ||
2717 | 1238 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
2718 | 1239 | lt_cv_sys_max_cmd_len=$new_result && | ||
2719 | 1240 | test $i != 17 # 1/2 MB should be enough | ||
2720 | 1241 | do | ||
2721 | 1242 | i=`expr $i + 1` | ||
2722 | 1243 | teststring=$teststring$teststring | ||
2723 | 1244 | done | ||
2724 | 1245 | teststring= | ||
2725 | 1246 | # Add a significant safety factor because C++ compilers can tack on massive | ||
2726 | 1247 | # amounts of additional arguments before passing them to the linker. | ||
2727 | 1248 | # It appears as though 1/2 is a usable value. | ||
2728 | 1249 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
2729 | 1250 | ;; | ||
2730 | 1251 | esac | ||
2731 | 1252 | ]) | ||
2732 | 1253 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
2733 | 1254 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
2734 | 1255 | else | ||
2735 | 1256 | AC_MSG_RESULT(none) | ||
2736 | 1257 | fi | ||
2737 | 1258 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
2738 | 1259 | |||
2739 | 1260 | |||
2740 | 1261 | # _LT_AC_CHECK_DLFCN | ||
2741 | 1262 | # ------------------ | ||
2742 | 1263 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | ||
2743 | 1264 | [AC_CHECK_HEADERS(dlfcn.h)dnl | ||
2744 | 1265 | ])# _LT_AC_CHECK_DLFCN | ||
2745 | 1266 | |||
2746 | 1267 | |||
2747 | 1268 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
2748 | 1269 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
2749 | 1270 | # --------------------------------------------------------------------- | ||
2750 | 1271 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | ||
2751 | 1272 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
2752 | 1273 | if test "$cross_compiling" = yes; then : | ||
2753 | 1274 | [$4] | ||
2754 | 1275 | else | ||
2755 | 1276 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
2756 | 1277 | lt_status=$lt_dlunknown | ||
2757 | 1278 | cat > conftest.$ac_ext <<EOF | ||
2758 | 1279 | [#line __oline__ "configure" | ||
2759 | 1280 | #include "confdefs.h" | ||
2760 | 1281 | |||
2761 | 1282 | #if HAVE_DLFCN_H | ||
2762 | 1283 | #include <dlfcn.h> | ||
2763 | 1284 | #endif | ||
2764 | 1285 | |||
2765 | 1286 | #include <stdio.h> | ||
2766 | 1287 | |||
2767 | 1288 | #ifdef RTLD_GLOBAL | ||
2768 | 1289 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
2769 | 1290 | #else | ||
2770 | 1291 | # ifdef DL_GLOBAL | ||
2771 | 1292 | # define LT_DLGLOBAL DL_GLOBAL | ||
2772 | 1293 | # else | ||
2773 | 1294 | # define LT_DLGLOBAL 0 | ||
2774 | 1295 | # endif | ||
2775 | 1296 | #endif | ||
2776 | 1297 | |||
2777 | 1298 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
2778 | 1299 | find out it does not work in some platform. */ | ||
2779 | 1300 | #ifndef LT_DLLAZY_OR_NOW | ||
2780 | 1301 | # ifdef RTLD_LAZY | ||
2781 | 1302 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
2782 | 1303 | # else | ||
2783 | 1304 | # ifdef DL_LAZY | ||
2784 | 1305 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
2785 | 1306 | # else | ||
2786 | 1307 | # ifdef RTLD_NOW | ||
2787 | 1308 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
2788 | 1309 | # else | ||
2789 | 1310 | # ifdef DL_NOW | ||
2790 | 1311 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
2791 | 1312 | # else | ||
2792 | 1313 | # define LT_DLLAZY_OR_NOW 0 | ||
2793 | 1314 | # endif | ||
2794 | 1315 | # endif | ||
2795 | 1316 | # endif | ||
2796 | 1317 | # endif | ||
2797 | 1318 | #endif | ||
2798 | 1319 | |||
2799 | 1320 | #ifdef __cplusplus | ||
2800 | 1321 | extern "C" void exit (int); | ||
2801 | 1322 | #endif | ||
2802 | 1323 | |||
2803 | 1324 | void fnord() { int i=42;} | ||
2804 | 1325 | int main () | ||
2805 | 1326 | { | ||
2806 | 1327 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
2807 | 1328 | int status = $lt_dlunknown; | ||
2808 | 1329 | |||
2809 | 1330 | if (self) | ||
2810 | 1331 | { | ||
2811 | 1332 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
2812 | 1333 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
2813 | 1334 | /* dlclose (self); */ | ||
2814 | 1335 | } | ||
2815 | 1336 | else | ||
2816 | 1337 | puts (dlerror ()); | ||
2817 | 1338 | |||
2818 | 1339 | exit (status); | ||
2819 | 1340 | }] | ||
2820 | 1341 | EOF | ||
2821 | 1342 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
2822 | 1343 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
2823 | 1344 | lt_status=$? | ||
2824 | 1345 | case x$lt_status in | ||
2825 | 1346 | x$lt_dlno_uscore) $1 ;; | ||
2826 | 1347 | x$lt_dlneed_uscore) $2 ;; | ||
2827 | 1348 | x$lt_dlunknown|x*) $3 ;; | ||
2828 | 1349 | esac | ||
2829 | 1350 | else : | ||
2830 | 1351 | # compilation failed | ||
2831 | 1352 | $3 | ||
2832 | 1353 | fi | ||
2833 | 1354 | fi | ||
2834 | 1355 | rm -fr conftest* | ||
2835 | 1356 | ])# _LT_AC_TRY_DLOPEN_SELF | ||
2836 | 1357 | |||
2837 | 1358 | |||
2838 | 1359 | # AC_LIBTOOL_DLOPEN_SELF | ||
2839 | 1360 | # ---------------------- | ||
2840 | 1361 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
2841 | 1362 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
2842 | 1363 | if test "x$enable_dlopen" != xyes; then | ||
2843 | 1364 | enable_dlopen=unknown | ||
2844 | 1365 | enable_dlopen_self=unknown | ||
2845 | 1366 | enable_dlopen_self_static=unknown | ||
2846 | 1367 | else | ||
2847 | 1368 | lt_cv_dlopen=no | ||
2848 | 1369 | lt_cv_dlopen_libs= | ||
2849 | 1370 | |||
2850 | 1371 | case $host_os in | ||
2851 | 1372 | beos*) | ||
2852 | 1373 | lt_cv_dlopen="load_add_on" | ||
2853 | 1374 | lt_cv_dlopen_libs= | ||
2854 | 1375 | lt_cv_dlopen_self=yes | ||
2855 | 1376 | ;; | ||
2856 | 1377 | |||
2857 | 1378 | mingw* | pw32*) | ||
2858 | 1379 | lt_cv_dlopen="LoadLibrary" | ||
2859 | 1380 | lt_cv_dlopen_libs= | ||
2860 | 1381 | ;; | ||
2861 | 1382 | |||
2862 | 1383 | cygwin*) | ||
2863 | 1384 | lt_cv_dlopen="dlopen" | ||
2864 | 1385 | lt_cv_dlopen_libs= | ||
2865 | 1386 | ;; | ||
2866 | 1387 | |||
2867 | 1388 | darwin*) | ||
2868 | 1389 | # if libdl is installed we need to link against it | ||
2869 | 1390 | AC_CHECK_LIB([dl], [dlopen], | ||
2870 | 1391 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
2871 | 1392 | lt_cv_dlopen="dyld" | ||
2872 | 1393 | lt_cv_dlopen_libs= | ||
2873 | 1394 | lt_cv_dlopen_self=yes | ||
2874 | 1395 | ]) | ||
2875 | 1396 | ;; | ||
2876 | 1397 | |||
2877 | 1398 | *) | ||
2878 | 1399 | AC_CHECK_FUNC([shl_load], | ||
2879 | 1400 | [lt_cv_dlopen="shl_load"], | ||
2880 | 1401 | [AC_CHECK_LIB([dld], [shl_load], | ||
2881 | 1402 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | ||
2882 | 1403 | [AC_CHECK_FUNC([dlopen], | ||
2883 | 1404 | [lt_cv_dlopen="dlopen"], | ||
2884 | 1405 | [AC_CHECK_LIB([dl], [dlopen], | ||
2885 | 1406 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
2886 | 1407 | [AC_CHECK_LIB([svld], [dlopen], | ||
2887 | 1408 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2888 | 1409 | [AC_CHECK_LIB([dld], [dld_link], | ||
2889 | 1410 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | ||
2890 | 1411 | ]) | ||
2891 | 1412 | ]) | ||
2892 | 1413 | ]) | ||
2893 | 1414 | ]) | ||
2894 | 1415 | ]) | ||
2895 | 1416 | ;; | ||
2896 | 1417 | esac | ||
2897 | 1418 | |||
2898 | 1419 | if test "x$lt_cv_dlopen" != xno; then | ||
2899 | 1420 | enable_dlopen=yes | ||
2900 | 1421 | else | ||
2901 | 1422 | enable_dlopen=no | ||
2902 | 1423 | fi | ||
2903 | 1424 | |||
2904 | 1425 | case $lt_cv_dlopen in | ||
2905 | 1426 | dlopen) | ||
2906 | 1427 | save_CPPFLAGS="$CPPFLAGS" | ||
2907 | 1428 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2908 | 1429 | |||
2909 | 1430 | save_LDFLAGS="$LDFLAGS" | ||
2910 | 1431 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2911 | 1432 | |||
2912 | 1433 | save_LIBS="$LIBS" | ||
2913 | 1434 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2914 | 1435 | |||
2915 | 1436 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2916 | 1437 | lt_cv_dlopen_self, [dnl | ||
2917 | 1438 | _LT_AC_TRY_DLOPEN_SELF( | ||
2918 | 1439 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2919 | 1440 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2920 | 1441 | ]) | ||
2921 | 1442 | |||
2922 | 1443 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2923 | 1444 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2924 | 1445 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2925 | 1446 | lt_cv_dlopen_self_static, [dnl | ||
2926 | 1447 | _LT_AC_TRY_DLOPEN_SELF( | ||
2927 | 1448 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2928 | 1449 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2929 | 1450 | ]) | ||
2930 | 1451 | fi | ||
2931 | 1452 | |||
2932 | 1453 | CPPFLAGS="$save_CPPFLAGS" | ||
2933 | 1454 | LDFLAGS="$save_LDFLAGS" | ||
2934 | 1455 | LIBS="$save_LIBS" | ||
2935 | 1456 | ;; | ||
2936 | 1457 | esac | ||
2937 | 1458 | |||
2938 | 1459 | case $lt_cv_dlopen_self in | ||
2939 | 1460 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2940 | 1461 | *) enable_dlopen_self=unknown ;; | ||
2941 | 1462 | esac | ||
2942 | 1463 | |||
2943 | 1464 | case $lt_cv_dlopen_self_static in | ||
2944 | 1465 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2945 | 1466 | *) enable_dlopen_self_static=unknown ;; | ||
2946 | 1467 | esac | ||
2947 | 1468 | fi | ||
2948 | 1469 | ])# AC_LIBTOOL_DLOPEN_SELF | ||
2949 | 1470 | |||
2950 | 1471 | |||
2951 | 1472 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
2952 | 1473 | # --------------------------------- | ||
2953 | 1474 | # Check to see if options -c and -o are simultaneously supported by compiler | ||
2954 | 1475 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
2955 | 1476 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
2956 | 1477 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2957 | 1478 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2958 | 1479 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2959 | 1480 | $rm -r conftest 2>/dev/null | ||
2960 | 1481 | mkdir conftest | ||
2961 | 1482 | cd conftest | ||
2962 | 1483 | mkdir out | ||
2963 | 1484 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2964 | 1485 | |||
2965 | 1486 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2966 | 1487 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2967 | 1488 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2968 | 1489 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2969 | 1490 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2970 | 1491 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2971 | 1492 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2972 | 1493 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2973 | 1494 | -e 's:$: $lt_compiler_flag:'` | ||
2974 | 1495 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2975 | 1496 | (eval "$lt_compile" 2>out/conftest.err) | ||
2976 | 1497 | ac_status=$? | ||
2977 | 1498 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2978 | 1499 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2979 | 1500 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2980 | 1501 | then | ||
2981 | 1502 | # The compiler can only warn and ignore the option if not recognized | ||
2982 | 1503 | # So say no if there are warnings | ||
2983 | 1504 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
2984 | 1505 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2985 | 1506 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2986 | 1507 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2987 | 1508 | fi | ||
2988 | 1509 | fi | ||
2989 | 1510 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2990 | 1511 | $rm conftest* | ||
2991 | 1512 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2992 | 1513 | # template instantiation | ||
2993 | 1514 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
2994 | 1515 | $rm out/* && rmdir out | ||
2995 | 1516 | cd .. | ||
2996 | 1517 | rmdir conftest | ||
2997 | 1518 | $rm conftest* | ||
2998 | 1519 | ]) | ||
2999 | 1520 | ])# AC_LIBTOOL_PROG_CC_C_O | ||
3000 | 1521 | |||
3001 | 1522 | |||
3002 | 1523 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | ||
3003 | 1524 | # ----------------------------------------- | ||
3004 | 1525 | # Check to see if we can do hard links to lock some files if needed | ||
3005 | 1526 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | ||
3006 | 1527 | [AC_REQUIRE([_LT_AC_LOCK])dnl | ||
3007 | 1528 | |||
3008 | 1529 | hard_links="nottested" | ||
3009 | 1530 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
3010 | 1531 | # do not overwrite the value of need_locks provided by the user | ||
3011 | 1532 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
3012 | 1533 | hard_links=yes | ||
3013 | 1534 | $rm conftest* | ||
3014 | 1535 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
3015 | 1536 | touch conftest.a | ||
3016 | 1537 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
3017 | 1538 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
3018 | 1539 | AC_MSG_RESULT([$hard_links]) | ||
3019 | 1540 | if test "$hard_links" = no; then | ||
3020 | 1541 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
3021 | 1542 | need_locks=warn | ||
3022 | 1543 | fi | ||
3023 | 1544 | else | ||
3024 | 1545 | need_locks=no | ||
3025 | 1546 | fi | ||
3026 | 1547 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | ||
3027 | 1548 | |||
3028 | 1549 | |||
3029 | 1550 | # AC_LIBTOOL_OBJDIR | ||
3030 | 1551 | # ----------------- | ||
3031 | 1552 | AC_DEFUN([AC_LIBTOOL_OBJDIR], | ||
3032 | 1553 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
3033 | 1554 | [rm -f .libs 2>/dev/null | ||
3034 | 1555 | mkdir .libs 2>/dev/null | ||
3035 | 1556 | if test -d .libs; then | ||
3036 | 1557 | lt_cv_objdir=.libs | ||
3037 | 1558 | else | ||
3038 | 1559 | # MS-DOS does not allow filenames that begin with a dot. | ||
3039 | 1560 | lt_cv_objdir=_libs | ||
3040 | 1561 | fi | ||
3041 | 1562 | rmdir .libs 2>/dev/null]) | ||
3042 | 1563 | objdir=$lt_cv_objdir | ||
3043 | 1564 | ])# AC_LIBTOOL_OBJDIR | ||
3044 | 1565 | |||
3045 | 1566 | |||
3046 | 1567 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | ||
3047 | 1568 | # ---------------------------------------------- | ||
3048 | 1569 | # Check hardcoding attributes. | ||
3049 | 1570 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | ||
3050 | 1571 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
3051 | 1572 | _LT_AC_TAGVAR(hardcode_action, $1)= | ||
3052 | 1573 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||
3053 | 1574 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||
3054 | 1575 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
3055 | 1576 | |||
3056 | 1577 | # We can hardcode non-existant directories. | ||
3057 | 1578 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||
3058 | 1579 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
3059 | 1580 | # have to relink, otherwise we might link with an installed library | ||
3060 | 1581 | # when we should be linking with a yet-to-be-installed one | ||
3061 | 1582 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
3062 | 1583 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
3063 | 1584 | # Linking always hardcodes the temporary library directory. | ||
3064 | 1585 | _LT_AC_TAGVAR(hardcode_action, $1)=relink | ||
3065 | 1586 | else | ||
3066 | 1587 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
3067 | 1588 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate | ||
3068 | 1589 | fi | ||
3069 | 1590 | else | ||
3070 | 1591 | # We cannot hardcode anything, or else we can only hardcode existing | ||
3071 | 1592 | # directories. | ||
3072 | 1593 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | ||
3073 | 1594 | fi | ||
3074 | 1595 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | ||
3075 | 1596 | |||
3076 | 1597 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | ||
3077 | 1598 | # Fast installation is not supported | ||
3078 | 1599 | enable_fast_install=no | ||
3079 | 1600 | elif test "$shlibpath_overrides_runpath" = yes || | ||
3080 | 1601 | test "$enable_shared" = no; then | ||
3081 | 1602 | # Fast installation is not necessary | ||
3082 | 1603 | enable_fast_install=needless | ||
3083 | 1604 | fi | ||
3084 | 1605 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | ||
3085 | 1606 | |||
3086 | 1607 | |||
3087 | 1608 | # AC_LIBTOOL_SYS_LIB_STRIP | ||
3088 | 1609 | # ------------------------ | ||
3089 | 1610 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | ||
3090 | 1611 | [striplib= | ||
3091 | 1612 | old_striplib= | ||
3092 | 1613 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
3093 | 1614 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
3094 | 1615 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
3095 | 1616 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
3096 | 1617 | AC_MSG_RESULT([yes]) | ||
3097 | 1618 | else | ||
3098 | 1619 | # FIXME - insert some real tests, host_os isn't really good enough | ||
3099 | 1620 | case $host_os in | ||
3100 | 1621 | darwin*) | ||
3101 | 1622 | if test -n "$STRIP" ; then | ||
3102 | 1623 | striplib="$STRIP -x" | ||
3103 | 1624 | AC_MSG_RESULT([yes]) | ||
3104 | 1625 | else | ||
3105 | 1626 | AC_MSG_RESULT([no]) | ||
3106 | 1627 | fi | ||
3107 | 1628 | ;; | ||
3108 | 1629 | *) | ||
3109 | 1630 | AC_MSG_RESULT([no]) | ||
3110 | 1631 | ;; | ||
3111 | 1632 | esac | ||
3112 | 1633 | fi | ||
3113 | 1634 | ])# AC_LIBTOOL_SYS_LIB_STRIP | ||
3114 | 1635 | |||
3115 | 1636 | |||
3116 | 1637 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
3117 | 1638 | # ----------------------------- | ||
3118 | 1639 | # PORTME Fill in your ld.so characteristics | ||
3119 | 1640 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | ||
3120 | 1641 | [AC_MSG_CHECKING([dynamic linker characteristics]) | ||
3121 | 1642 | library_names_spec= | ||
3122 | 1643 | libname_spec='lib$name' | ||
3123 | 1644 | soname_spec= | ||
3124 | 1645 | shrext_cmds=".so" | ||
3125 | 1646 | postinstall_cmds= | ||
3126 | 1647 | postuninstall_cmds= | ||
3127 | 1648 | finish_cmds= | ||
3128 | 1649 | finish_eval= | ||
3129 | 1650 | shlibpath_var= | ||
3130 | 1651 | shlibpath_overrides_runpath=unknown | ||
3131 | 1652 | version_type=none | ||
3132 | 1653 | dynamic_linker="$host_os ld.so" | ||
3133 | 1654 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
3134 | 1655 | if test "$GCC" = yes; then | ||
3135 | 1656 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
3136 | 1657 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
3137 | 1658 | # if the path contains ";" then we assume it to be the separator | ||
3138 | 1659 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
3139 | 1660 | # assumed that no part of a normal pathname contains ";" but that should | ||
3140 | 1661 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
3141 | 1662 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
3142 | 1663 | else | ||
3143 | 1664 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3144 | 1665 | fi | ||
3145 | 1666 | else | ||
3146 | 1667 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
3147 | 1668 | fi | ||
3148 | 1669 | need_lib_prefix=unknown | ||
3149 | 1670 | hardcode_into_libs=no | ||
3150 | 1671 | |||
3151 | 1672 | # when you set need_version to no, make sure it does not cause -set_version | ||
3152 | 1673 | # flags to be left without arguments | ||
3153 | 1674 | need_version=unknown | ||
3154 | 1675 | |||
3155 | 1676 | case $host_os in | ||
3156 | 1677 | aix3*) | ||
3157 | 1678 | version_type=linux | ||
3158 | 1679 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
3159 | 1680 | shlibpath_var=LIBPATH | ||
3160 | 1681 | |||
3161 | 1682 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
3162 | 1683 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3163 | 1684 | ;; | ||
3164 | 1685 | |||
3165 | 1686 | aix4* | aix5*) | ||
3166 | 1687 | version_type=linux | ||
3167 | 1688 | need_lib_prefix=no | ||
3168 | 1689 | need_version=no | ||
3169 | 1690 | hardcode_into_libs=yes | ||
3170 | 1691 | if test "$host_cpu" = ia64; then | ||
3171 | 1692 | # AIX 5 supports IA64 | ||
3172 | 1693 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
3173 | 1694 | shlibpath_var=LD_LIBRARY_PATH | ||
3174 | 1695 | else | ||
3175 | 1696 | # With GCC up to 2.95.x, collect2 would create an import file | ||
3176 | 1697 | # for dependence libraries. The import file would start with | ||
3177 | 1698 | # the line `#! .'. This would cause the generated library to | ||
3178 | 1699 | # depend on `.', always an invalid library. This was fixed in | ||
3179 | 1700 | # development snapshots of GCC prior to 3.0. | ||
3180 | 1701 | case $host_os in | ||
3181 | 1702 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
3182 | 1703 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
3183 | 1704 | echo ' yes ' | ||
3184 | 1705 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
3185 | 1706 | : | ||
3186 | 1707 | else | ||
3187 | 1708 | can_build_shared=no | ||
3188 | 1709 | fi | ||
3189 | 1710 | ;; | ||
3190 | 1711 | esac | ||
3191 | 1712 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
3192 | 1713 | # soname into executable. Probably we can add versioning support to | ||
3193 | 1714 | # collect2, so additional links can be useful in future. | ||
3194 | 1715 | if test "$aix_use_runtimelinking" = yes; then | ||
3195 | 1716 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
3196 | 1717 | # instead of lib<name>.a to let people know that these are not | ||
3197 | 1718 | # typical AIX shared libraries. | ||
3198 | 1719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3199 | 1720 | else | ||
3200 | 1721 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
3201 | 1722 | # and later when we are not doing run time linking. | ||
3202 | 1723 | library_names_spec='${libname}${release}.a $libname.a' | ||
3203 | 1724 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3204 | 1725 | fi | ||
3205 | 1726 | shlibpath_var=LIBPATH | ||
3206 | 1727 | fi | ||
3207 | 1728 | ;; | ||
3208 | 1729 | |||
3209 | 1730 | amigaos*) | ||
3210 | 1731 | library_names_spec='$libname.ixlibrary $libname.a' | ||
3211 | 1732 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
3212 | 1733 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
3213 | 1734 | ;; | ||
3214 | 1735 | |||
3215 | 1736 | beos*) | ||
3216 | 1737 | library_names_spec='${libname}${shared_ext}' | ||
3217 | 1738 | dynamic_linker="$host_os ld.so" | ||
3218 | 1739 | shlibpath_var=LIBRARY_PATH | ||
3219 | 1740 | ;; | ||
3220 | 1741 | |||
3221 | 1742 | bsdi[[45]]*) | ||
3222 | 1743 | version_type=linux | ||
3223 | 1744 | need_version=no | ||
3224 | 1745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3225 | 1746 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3226 | 1747 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
3227 | 1748 | shlibpath_var=LD_LIBRARY_PATH | ||
3228 | 1749 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
3229 | 1750 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
3230 | 1751 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
3231 | 1752 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
3232 | 1753 | # libtool to hard-code these into programs | ||
3233 | 1754 | ;; | ||
3234 | 1755 | |||
3235 | 1756 | cygwin* | mingw* | pw32*) | ||
3236 | 1757 | version_type=windows | ||
3237 | 1758 | shrext_cmds=".dll" | ||
3238 | 1759 | need_version=no | ||
3239 | 1760 | need_lib_prefix=no | ||
3240 | 1761 | |||
3241 | 1762 | case $GCC,$host_os in | ||
3242 | 1763 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
3243 | 1764 | library_names_spec='$libname.dll.a' | ||
3244 | 1765 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
3245 | 1766 | postinstall_cmds='base_file=`basename \${file}`~ | ||
3246 | 1767 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
3247 | 1768 | dldir=$destdir/`dirname \$dlpath`~ | ||
3248 | 1769 | test -d \$dldir || mkdir -p \$dldir~ | ||
3249 | 1770 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
3250 | 1771 | chmod a+x \$dldir/$dlname' | ||
3251 | 1772 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
3252 | 1773 | dlpath=$dir/\$dldll~ | ||
3253 | 1774 | $rm \$dlpath' | ||
3254 | 1775 | shlibpath_overrides_runpath=yes | ||
3255 | 1776 | |||
3256 | 1777 | case $host_os in | ||
3257 | 1778 | cygwin*) | ||
3258 | 1779 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
3259 | 1780 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3260 | 1781 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
3261 | 1782 | ;; | ||
3262 | 1783 | mingw*) | ||
3263 | 1784 | # MinGW DLLs use traditional 'lib' prefix | ||
3264 | 1785 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3265 | 1786 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
3266 | 1787 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | ||
3267 | 1788 | # It is most probably a Windows format PATH printed by | ||
3268 | 1789 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
3269 | 1790 | # path with ; separators, and with drive letters. We can handle the | ||
3270 | 1791 | # drive letters (cygwin fileutils understands them), so leave them, | ||
3271 | 1792 | # especially as we might pass files found there to a mingw objdump, | ||
3272 | 1793 | # which wouldn't understand a cygwinified path. Ahh. | ||
3273 | 1794 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
3274 | 1795 | else | ||
3275 | 1796 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3276 | 1797 | fi | ||
3277 | 1798 | ;; | ||
3278 | 1799 | pw32*) | ||
3279 | 1800 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
3280 | 1801 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3281 | 1802 | ;; | ||
3282 | 1803 | esac | ||
3283 | 1804 | ;; | ||
3284 | 1805 | |||
3285 | 1806 | *) | ||
3286 | 1807 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
3287 | 1808 | ;; | ||
3288 | 1809 | esac | ||
3289 | 1810 | dynamic_linker='Win32 ld.exe' | ||
3290 | 1811 | # FIXME: first we should search . and the directory the executable is in | ||
3291 | 1812 | shlibpath_var=PATH | ||
3292 | 1813 | ;; | ||
3293 | 1814 | |||
3294 | 1815 | darwin* | rhapsody*) | ||
3295 | 1816 | dynamic_linker="$host_os dyld" | ||
3296 | 1817 | version_type=darwin | ||
3297 | 1818 | need_lib_prefix=no | ||
3298 | 1819 | need_version=no | ||
3299 | 1820 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
3300 | 1821 | soname_spec='${libname}${release}${major}$shared_ext' | ||
3301 | 1822 | shlibpath_overrides_runpath=yes | ||
3302 | 1823 | shlibpath_var=DYLD_LIBRARY_PATH | ||
3303 | 1824 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
3304 | 1825 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
3305 | 1826 | if test "$GCC" = yes; then | ||
3306 | 1827 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | ||
3307 | 1828 | else | ||
3308 | 1829 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
3309 | 1830 | fi | ||
3310 | 1831 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
3311 | 1832 | ;; | ||
3312 | 1833 | |||
3313 | 1834 | dgux*) | ||
3314 | 1835 | version_type=linux | ||
3315 | 1836 | need_lib_prefix=no | ||
3316 | 1837 | need_version=no | ||
3317 | 1838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
3318 | 1839 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3319 | 1840 | shlibpath_var=LD_LIBRARY_PATH | ||
3320 | 1841 | ;; | ||
3321 | 1842 | |||
3322 | 1843 | freebsd1*) | ||
3323 | 1844 | dynamic_linker=no | ||
3324 | 1845 | ;; | ||
3325 | 1846 | |||
3326 | 1847 | freebsd* | dragonfly*) | ||
3327 | 1848 | # DragonFly does not have aout. When/if they implement a new | ||
3328 | 1849 | # versioning mechanism, adjust this. | ||
3329 | 1850 | if test -x /usr/bin/objformat; then | ||
3330 | 1851 | objformat=`/usr/bin/objformat` | ||
3331 | 1852 | else | ||
3332 | 1853 | case $host_os in | ||
3333 | 1854 | freebsd[[123]]*) objformat=aout ;; | ||
3334 | 1855 | *) objformat=elf ;; | ||
3335 | 1856 | esac | ||
3336 | 1857 | fi | ||
3337 | 1858 | version_type=freebsd-$objformat | ||
3338 | 1859 | case $version_type in | ||
3339 | 1860 | freebsd-elf*) | ||
3340 | 1861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3341 | 1862 | need_version=no | ||
3342 | 1863 | need_lib_prefix=no | ||
3343 | 1864 | ;; | ||
3344 | 1865 | freebsd-*) | ||
3345 | 1866 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
3346 | 1867 | need_version=yes | ||
3347 | 1868 | ;; | ||
3348 | 1869 | esac | ||
3349 | 1870 | shlibpath_var=LD_LIBRARY_PATH | ||
3350 | 1871 | case $host_os in | ||
3351 | 1872 | freebsd2*) | ||
3352 | 1873 | shlibpath_overrides_runpath=yes | ||
3353 | 1874 | ;; | ||
3354 | 1875 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
3355 | 1876 | shlibpath_overrides_runpath=yes | ||
3356 | 1877 | hardcode_into_libs=yes | ||
3357 | 1878 | ;; | ||
3358 | 1879 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
3359 | 1880 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
3360 | 1881 | shlibpath_overrides_runpath=no | ||
3361 | 1882 | hardcode_into_libs=yes | ||
3362 | 1883 | ;; | ||
3363 | 1884 | freebsd*) # from 4.6 on | ||
3364 | 1885 | shlibpath_overrides_runpath=yes | ||
3365 | 1886 | hardcode_into_libs=yes | ||
3366 | 1887 | ;; | ||
3367 | 1888 | esac | ||
3368 | 1889 | ;; | ||
3369 | 1890 | |||
3370 | 1891 | gnu*) | ||
3371 | 1892 | version_type=linux | ||
3372 | 1893 | need_lib_prefix=no | ||
3373 | 1894 | need_version=no | ||
3374 | 1895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
3375 | 1896 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3376 | 1897 | shlibpath_var=LD_LIBRARY_PATH | ||
3377 | 1898 | hardcode_into_libs=yes | ||
3378 | 1899 | ;; | ||
3379 | 1900 | |||
3380 | 1901 | hpux9* | hpux10* | hpux11*) | ||
3381 | 1902 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
3382 | 1903 | # link against other versions. | ||
3383 | 1904 | version_type=sunos | ||
3384 | 1905 | need_lib_prefix=no | ||
3385 | 1906 | need_version=no | ||
3386 | 1907 | case $host_cpu in | ||
3387 | 1908 | ia64*) | ||
3388 | 1909 | shrext_cmds='.so' | ||
3389 | 1910 | hardcode_into_libs=yes | ||
3390 | 1911 | dynamic_linker="$host_os dld.so" | ||
3391 | 1912 | shlibpath_var=LD_LIBRARY_PATH | ||
3392 | 1913 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
3393 | 1914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3394 | 1915 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3395 | 1916 | if test "X$HPUX_IA64_MODE" = X32; then | ||
3396 | 1917 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
3397 | 1918 | else | ||
3398 | 1919 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
3399 | 1920 | fi | ||
3400 | 1921 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
3401 | 1922 | ;; | ||
3402 | 1923 | hppa*64*) | ||
3403 | 1924 | shrext_cmds='.sl' | ||
3404 | 1925 | hardcode_into_libs=yes | ||
3405 | 1926 | dynamic_linker="$host_os dld.sl" | ||
3406 | 1927 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
3407 | 1928 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
3408 | 1929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3409 | 1930 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3410 | 1931 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
3411 | 1932 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
3412 | 1933 | ;; | ||
3413 | 1934 | *) | ||
3414 | 1935 | shrext_cmds='.sl' | ||
3415 | 1936 | dynamic_linker="$host_os dld.sl" | ||
3416 | 1937 | shlibpath_var=SHLIB_PATH | ||
3417 | 1938 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
3418 | 1939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3419 | 1940 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3420 | 1941 | ;; | ||
3421 | 1942 | esac | ||
3422 | 1943 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
3423 | 1944 | postinstall_cmds='chmod 555 $lib' | ||
3424 | 1945 | ;; | ||
3425 | 1946 | |||
3426 | 1947 | interix3*) | ||
3427 | 1948 | version_type=linux | ||
3428 | 1949 | need_lib_prefix=no | ||
3429 | 1950 | need_version=no | ||
3430 | 1951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3431 | 1952 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3432 | 1953 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
3433 | 1954 | shlibpath_var=LD_LIBRARY_PATH | ||
3434 | 1955 | shlibpath_overrides_runpath=no | ||
3435 | 1956 | hardcode_into_libs=yes | ||
3436 | 1957 | ;; | ||
3437 | 1958 | |||
3438 | 1959 | irix5* | irix6* | nonstopux*) | ||
3439 | 1960 | case $host_os in | ||
3440 | 1961 | nonstopux*) version_type=nonstopux ;; | ||
3441 | 1962 | *) | ||
3442 | 1963 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
3443 | 1964 | version_type=linux | ||
3444 | 1965 | else | ||
3445 | 1966 | version_type=irix | ||
3446 | 1967 | fi ;; | ||
3447 | 1968 | esac | ||
3448 | 1969 | need_lib_prefix=no | ||
3449 | 1970 | need_version=no | ||
3450 | 1971 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3451 | 1972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3452 | 1973 | case $host_os in | ||
3453 | 1974 | irix5* | nonstopux*) | ||
3454 | 1975 | libsuff= shlibsuff= | ||
3455 | 1976 | ;; | ||
3456 | 1977 | *) | ||
3457 | 1978 | case $LD in # libtool.m4 will add one of these switches to LD | ||
3458 | 1979 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
3459 | 1980 | libsuff= shlibsuff= libmagic=32-bit;; | ||
3460 | 1981 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
3461 | 1982 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
3462 | 1983 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
3463 | 1984 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
3464 | 1985 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
3465 | 1986 | esac | ||
3466 | 1987 | ;; | ||
3467 | 1988 | esac | ||
3468 | 1989 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
3469 | 1990 | shlibpath_overrides_runpath=no | ||
3470 | 1991 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
3471 | 1992 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
3472 | 1993 | hardcode_into_libs=yes | ||
3473 | 1994 | ;; | ||
3474 | 1995 | |||
3475 | 1996 | # No shared lib support for Linux oldld, aout, or coff. | ||
3476 | 1997 | linux*oldld* | linux*aout* | linux*coff*) | ||
3477 | 1998 | dynamic_linker=no | ||
3478 | 1999 | ;; | ||
3479 | 2000 | |||
3480 | 2001 | # This must be Linux ELF. | ||
3481 | 2002 | linux* | k*bsd*-gnu) | ||
3482 | 2003 | version_type=linux | ||
3483 | 2004 | need_lib_prefix=no | ||
3484 | 2005 | need_version=no | ||
3485 | 2006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3486 | 2007 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3487 | 2008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
3488 | 2009 | shlibpath_var=LD_LIBRARY_PATH | ||
3489 | 2010 | shlibpath_overrides_runpath=no | ||
3490 | 2011 | # This implies no fast_install, which is unacceptable. | ||
3491 | 2012 | # Some rework will be needed to allow for fast_install | ||
3492 | 2013 | # before this can be enabled. | ||
3493 | 2014 | hardcode_into_libs=yes | ||
3494 | 2015 | |||
3495 | 2016 | # Append ld.so.conf contents to the search path | ||
3496 | 2017 | if test -f /etc/ld.so.conf; then | ||
3497 | 2018 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
3498 | 2019 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
3499 | 2020 | fi | ||
3500 | 2021 | |||
3501 | 2022 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
3502 | 2023 | # powerpc, because MkLinux only supported shared libraries with the | ||
3503 | 2024 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
3504 | 2025 | # most powerpc-linux boxes support dynamic linking these days and | ||
3505 | 2026 | # people can always --disable-shared, the test was removed, and we | ||
3506 | 2027 | # assume the GNU/Linux dynamic linker is in use. | ||
3507 | 2028 | dynamic_linker='GNU/Linux ld.so' | ||
3508 | 2029 | ;; | ||
3509 | 2030 | |||
3510 | 2031 | netbsdelf*-gnu) | ||
3511 | 2032 | version_type=linux | ||
3512 | 2033 | need_lib_prefix=no | ||
3513 | 2034 | need_version=no | ||
3514 | 2035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3515 | 2036 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3516 | 2037 | shlibpath_var=LD_LIBRARY_PATH | ||
3517 | 2038 | shlibpath_overrides_runpath=no | ||
3518 | 2039 | hardcode_into_libs=yes | ||
3519 | 2040 | dynamic_linker='NetBSD ld.elf_so' | ||
3520 | 2041 | ;; | ||
3521 | 2042 | |||
3522 | 2043 | netbsd*) | ||
3523 | 2044 | version_type=sunos | ||
3524 | 2045 | need_lib_prefix=no | ||
3525 | 2046 | need_version=no | ||
3526 | 2047 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
3527 | 2048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3528 | 2049 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3529 | 2050 | dynamic_linker='NetBSD (a.out) ld.so' | ||
3530 | 2051 | else | ||
3531 | 2052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3532 | 2053 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3533 | 2054 | dynamic_linker='NetBSD ld.elf_so' | ||
3534 | 2055 | fi | ||
3535 | 2056 | shlibpath_var=LD_LIBRARY_PATH | ||
3536 | 2057 | shlibpath_overrides_runpath=yes | ||
3537 | 2058 | hardcode_into_libs=yes | ||
3538 | 2059 | ;; | ||
3539 | 2060 | |||
3540 | 2061 | newsos6) | ||
3541 | 2062 | version_type=linux | ||
3542 | 2063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3543 | 2064 | shlibpath_var=LD_LIBRARY_PATH | ||
3544 | 2065 | shlibpath_overrides_runpath=yes | ||
3545 | 2066 | ;; | ||
3546 | 2067 | |||
3547 | 2068 | nto-qnx*) | ||
3548 | 2069 | version_type=linux | ||
3549 | 2070 | need_lib_prefix=no | ||
3550 | 2071 | need_version=no | ||
3551 | 2072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3552 | 2073 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3553 | 2074 | shlibpath_var=LD_LIBRARY_PATH | ||
3554 | 2075 | shlibpath_overrides_runpath=yes | ||
3555 | 2076 | ;; | ||
3556 | 2077 | |||
3557 | 2078 | openbsd*) | ||
3558 | 2079 | version_type=sunos | ||
3559 | 2080 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
3560 | 2081 | need_lib_prefix=no | ||
3561 | 2082 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
3562 | 2083 | case $host_os in | ||
3563 | 2084 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
3564 | 2085 | *) need_version=no ;; | ||
3565 | 2086 | esac | ||
3566 | 2087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3567 | 2088 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3568 | 2089 | shlibpath_var=LD_LIBRARY_PATH | ||
3569 | 2090 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3570 | 2091 | case $host_os in | ||
3571 | 2092 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
3572 | 2093 | shlibpath_overrides_runpath=no | ||
3573 | 2094 | ;; | ||
3574 | 2095 | *) | ||
3575 | 2096 | shlibpath_overrides_runpath=yes | ||
3576 | 2097 | ;; | ||
3577 | 2098 | esac | ||
3578 | 2099 | else | ||
3579 | 2100 | shlibpath_overrides_runpath=yes | ||
3580 | 2101 | fi | ||
3581 | 2102 | ;; | ||
3582 | 2103 | |||
3583 | 2104 | os2*) | ||
3584 | 2105 | libname_spec='$name' | ||
3585 | 2106 | shrext_cmds=".dll" | ||
3586 | 2107 | need_lib_prefix=no | ||
3587 | 2108 | library_names_spec='$libname${shared_ext} $libname.a' | ||
3588 | 2109 | dynamic_linker='OS/2 ld.exe' | ||
3589 | 2110 | shlibpath_var=LIBPATH | ||
3590 | 2111 | ;; | ||
3591 | 2112 | |||
3592 | 2113 | osf3* | osf4* | osf5*) | ||
3593 | 2114 | version_type=osf | ||
3594 | 2115 | need_lib_prefix=no | ||
3595 | 2116 | need_version=no | ||
3596 | 2117 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3597 | 2118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3598 | 2119 | shlibpath_var=LD_LIBRARY_PATH | ||
3599 | 2120 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
3600 | 2121 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
3601 | 2122 | ;; | ||
3602 | 2123 | |||
3603 | 2124 | solaris*) | ||
3604 | 2125 | version_type=linux | ||
3605 | 2126 | need_lib_prefix=no | ||
3606 | 2127 | need_version=no | ||
3607 | 2128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3608 | 2129 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3609 | 2130 | shlibpath_var=LD_LIBRARY_PATH | ||
3610 | 2131 | shlibpath_overrides_runpath=yes | ||
3611 | 2132 | hardcode_into_libs=yes | ||
3612 | 2133 | # ldd complains unless libraries are executable | ||
3613 | 2134 | postinstall_cmds='chmod +x $lib' | ||
3614 | 2135 | ;; | ||
3615 | 2136 | |||
3616 | 2137 | sunos4*) | ||
3617 | 2138 | version_type=sunos | ||
3618 | 2139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3619 | 2140 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
3620 | 2141 | shlibpath_var=LD_LIBRARY_PATH | ||
3621 | 2142 | shlibpath_overrides_runpath=yes | ||
3622 | 2143 | if test "$with_gnu_ld" = yes; then | ||
3623 | 2144 | need_lib_prefix=no | ||
3624 | 2145 | fi | ||
3625 | 2146 | need_version=yes | ||
3626 | 2147 | ;; | ||
3627 | 2148 | |||
3628 | 2149 | sysv4 | sysv4.3*) | ||
3629 | 2150 | version_type=linux | ||
3630 | 2151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3631 | 2152 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3632 | 2153 | shlibpath_var=LD_LIBRARY_PATH | ||
3633 | 2154 | case $host_vendor in | ||
3634 | 2155 | sni) | ||
3635 | 2156 | shlibpath_overrides_runpath=no | ||
3636 | 2157 | need_lib_prefix=no | ||
3637 | 2158 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
3638 | 2159 | runpath_var=LD_RUN_PATH | ||
3639 | 2160 | ;; | ||
3640 | 2161 | siemens) | ||
3641 | 2162 | need_lib_prefix=no | ||
3642 | 2163 | ;; | ||
3643 | 2164 | motorola) | ||
3644 | 2165 | need_lib_prefix=no | ||
3645 | 2166 | need_version=no | ||
3646 | 2167 | shlibpath_overrides_runpath=no | ||
3647 | 2168 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
3648 | 2169 | ;; | ||
3649 | 2170 | esac | ||
3650 | 2171 | ;; | ||
3651 | 2172 | |||
3652 | 2173 | sysv4*MP*) | ||
3653 | 2174 | if test -d /usr/nec ;then | ||
3654 | 2175 | version_type=linux | ||
3655 | 2176 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
3656 | 2177 | soname_spec='$libname${shared_ext}.$major' | ||
3657 | 2178 | shlibpath_var=LD_LIBRARY_PATH | ||
3658 | 2179 | fi | ||
3659 | 2180 | ;; | ||
3660 | 2181 | |||
3661 | 2182 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3662 | 2183 | version_type=freebsd-elf | ||
3663 | 2184 | need_lib_prefix=no | ||
3664 | 2185 | need_version=no | ||
3665 | 2186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3666 | 2187 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3667 | 2188 | shlibpath_var=LD_LIBRARY_PATH | ||
3668 | 2189 | hardcode_into_libs=yes | ||
3669 | 2190 | if test "$with_gnu_ld" = yes; then | ||
3670 | 2191 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
3671 | 2192 | shlibpath_overrides_runpath=no | ||
3672 | 2193 | else | ||
3673 | 2194 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
3674 | 2195 | shlibpath_overrides_runpath=yes | ||
3675 | 2196 | case $host_os in | ||
3676 | 2197 | sco3.2v5*) | ||
3677 | 2198 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
3678 | 2199 | ;; | ||
3679 | 2200 | esac | ||
3680 | 2201 | fi | ||
3681 | 2202 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
3682 | 2203 | ;; | ||
3683 | 2204 | |||
3684 | 2205 | uts4*) | ||
3685 | 2206 | version_type=linux | ||
3686 | 2207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3687 | 2208 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3688 | 2209 | shlibpath_var=LD_LIBRARY_PATH | ||
3689 | 2210 | ;; | ||
3690 | 2211 | |||
3691 | 2212 | *) | ||
3692 | 2213 | dynamic_linker=no | ||
3693 | 2214 | ;; | ||
3694 | 2215 | esac | ||
3695 | 2216 | AC_MSG_RESULT([$dynamic_linker]) | ||
3696 | 2217 | test "$dynamic_linker" = no && can_build_shared=no | ||
3697 | 2218 | |||
3698 | 2219 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
3699 | 2220 | if test "$GCC" = yes; then | ||
3700 | 2221 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
3701 | 2222 | fi | ||
3702 | 2223 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
3703 | 2224 | |||
3704 | 2225 | |||
3705 | 2226 | # _LT_AC_TAGCONFIG | ||
3706 | 2227 | # ---------------- | ||
3707 | 2228 | AC_DEFUN([_LT_AC_TAGCONFIG], | ||
3708 | 2229 | [AC_ARG_WITH([tags], | ||
3709 | 2230 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | ||
3710 | 2231 | [include additional configurations @<:@automatic@:>@])], | ||
3711 | 2232 | [tagnames="$withval"]) | ||
3712 | 2233 | |||
3713 | 2234 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
3714 | 2235 | if test ! -f "${ofile}"; then | ||
3715 | 2236 | AC_MSG_WARN([output file `$ofile' does not exist]) | ||
3716 | 2237 | fi | ||
3717 | 2238 | |||
3718 | 2239 | if test -z "$LTCC"; then | ||
3719 | 2240 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
3720 | 2241 | if test -z "$LTCC"; then | ||
3721 | 2242 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | ||
3722 | 2243 | else | ||
3723 | 2244 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | ||
3724 | 2245 | fi | ||
3725 | 2246 | fi | ||
3726 | 2247 | if test -z "$LTCFLAGS"; then | ||
3727 | 2248 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
3728 | 2249 | fi | ||
3729 | 2250 | |||
3730 | 2251 | # Extract list of available tagged configurations in $ofile. | ||
3731 | 2252 | # Note that this assumes the entire list is on one line. | ||
3732 | 2253 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
3733 | 2254 | |||
3734 | 2255 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3735 | 2256 | for tagname in $tagnames; do | ||
3736 | 2257 | IFS="$lt_save_ifs" | ||
3737 | 2258 | # Check whether tagname contains only valid characters | ||
3738 | 2259 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | ||
3739 | 2260 | "") ;; | ||
3740 | 2261 | *) AC_MSG_ERROR([invalid tag name: $tagname]) | ||
3741 | 2262 | ;; | ||
3742 | 2263 | esac | ||
3743 | 2264 | |||
3744 | 2265 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
3745 | 2266 | then | ||
3746 | 2267 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) | ||
3747 | 2268 | fi | ||
3748 | 2269 | |||
3749 | 2270 | # Update the list of available tags. | ||
3750 | 2271 | if test -n "$tagname"; then | ||
3751 | 2272 | echo appending configuration tag \"$tagname\" to $ofile | ||
3752 | 2273 | |||
3753 | 2274 | case $tagname in | ||
3754 | 2275 | CXX) | ||
3755 | 2276 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
3756 | 2277 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
3757 | 2278 | (test "X$CXX" != "Xg++"))) ; then | ||
3758 | 2279 | AC_LIBTOOL_LANG_CXX_CONFIG | ||
3759 | 2280 | else | ||
3760 | 2281 | tagname="" | ||
3761 | 2282 | fi | ||
3762 | 2283 | ;; | ||
3763 | 2284 | |||
3764 | 2285 | F77) | ||
3765 | 2286 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
3766 | 2287 | AC_LIBTOOL_LANG_F77_CONFIG | ||
3767 | 2288 | else | ||
3768 | 2289 | tagname="" | ||
3769 | 2290 | fi | ||
3770 | 2291 | ;; | ||
3771 | 2292 | |||
3772 | 2293 | GCJ) | ||
3773 | 2294 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
3774 | 2295 | AC_LIBTOOL_LANG_GCJ_CONFIG | ||
3775 | 2296 | else | ||
3776 | 2297 | tagname="" | ||
3777 | 2298 | fi | ||
3778 | 2299 | ;; | ||
3779 | 2300 | |||
3780 | 2301 | RC) | ||
3781 | 2302 | AC_LIBTOOL_LANG_RC_CONFIG | ||
3782 | 2303 | ;; | ||
3783 | 2304 | |||
3784 | 2305 | *) | ||
3785 | 2306 | AC_MSG_ERROR([Unsupported tag name: $tagname]) | ||
3786 | 2307 | ;; | ||
3787 | 2308 | esac | ||
3788 | 2309 | |||
3789 | 2310 | # Append the new tag name to the list of available tags. | ||
3790 | 2311 | if test -n "$tagname" ; then | ||
3791 | 2312 | available_tags="$available_tags $tagname" | ||
3792 | 2313 | fi | ||
3793 | 2314 | fi | ||
3794 | 2315 | done | ||
3795 | 2316 | IFS="$lt_save_ifs" | ||
3796 | 2317 | |||
3797 | 2318 | # Now substitute the updated list of available tags. | ||
3798 | 2319 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
3799 | 2320 | mv "${ofile}T" "$ofile" | ||
3800 | 2321 | chmod +x "$ofile" | ||
3801 | 2322 | else | ||
3802 | 2323 | rm -f "${ofile}T" | ||
3803 | 2324 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
3804 | 2325 | fi | ||
3805 | 2326 | fi | ||
3806 | 2327 | ])# _LT_AC_TAGCONFIG | ||
3807 | 2328 | |||
3808 | 2329 | |||
3809 | 2330 | # AC_LIBTOOL_DLOPEN | ||
3810 | 2331 | # ----------------- | ||
3811 | 2332 | # enable checks for dlopen support | ||
3812 | 2333 | AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
3813 | 2334 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
3814 | 2335 | ])# AC_LIBTOOL_DLOPEN | ||
3815 | 2336 | |||
3816 | 2337 | |||
3817 | 2338 | # AC_LIBTOOL_WIN32_DLL | ||
3818 | 2339 | # -------------------- | ||
3819 | 2340 | # declare package support for building win32 DLLs | ||
3820 | 2341 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
3821 | 2342 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
3822 | 2343 | ])# AC_LIBTOOL_WIN32_DLL | ||
3823 | 2344 | |||
3824 | 2345 | |||
3825 | 2346 | # AC_ENABLE_SHARED([DEFAULT]) | ||
3826 | 2347 | # --------------------------- | ||
3827 | 2348 | # implement the --enable-shared flag | ||
3828 | 2349 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3829 | 2350 | AC_DEFUN([AC_ENABLE_SHARED], | ||
3830 | 2351 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3831 | 2352 | AC_ARG_ENABLE([shared], | ||
3832 | 2353 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
3833 | 2354 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
3834 | 2355 | [p=${PACKAGE-default} | ||
3835 | 2356 | case $enableval in | ||
3836 | 2357 | yes) enable_shared=yes ;; | ||
3837 | 2358 | no) enable_shared=no ;; | ||
3838 | 2359 | *) | ||
3839 | 2360 | enable_shared=no | ||
3840 | 2361 | # Look at the argument we got. We use all the common list separators. | ||
3841 | 2362 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3842 | 2363 | for pkg in $enableval; do | ||
3843 | 2364 | IFS="$lt_save_ifs" | ||
3844 | 2365 | if test "X$pkg" = "X$p"; then | ||
3845 | 2366 | enable_shared=yes | ||
3846 | 2367 | fi | ||
3847 | 2368 | done | ||
3848 | 2369 | IFS="$lt_save_ifs" | ||
3849 | 2370 | ;; | ||
3850 | 2371 | esac], | ||
3851 | 2372 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
3852 | 2373 | ])# AC_ENABLE_SHARED | ||
3853 | 2374 | |||
3854 | 2375 | |||
3855 | 2376 | # AC_DISABLE_SHARED | ||
3856 | 2377 | # ----------------- | ||
3857 | 2378 | # set the default shared flag to --disable-shared | ||
3858 | 2379 | AC_DEFUN([AC_DISABLE_SHARED], | ||
3859 | 2380 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3860 | 2381 | AC_ENABLE_SHARED(no) | ||
3861 | 2382 | ])# AC_DISABLE_SHARED | ||
3862 | 2383 | |||
3863 | 2384 | |||
3864 | 2385 | # AC_ENABLE_STATIC([DEFAULT]) | ||
3865 | 2386 | # --------------------------- | ||
3866 | 2387 | # implement the --enable-static flag | ||
3867 | 2388 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3868 | 2389 | AC_DEFUN([AC_ENABLE_STATIC], | ||
3869 | 2390 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3870 | 2391 | AC_ARG_ENABLE([static], | ||
3871 | 2392 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
3872 | 2393 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | ||
3873 | 2394 | [p=${PACKAGE-default} | ||
3874 | 2395 | case $enableval in | ||
3875 | 2396 | yes) enable_static=yes ;; | ||
3876 | 2397 | no) enable_static=no ;; | ||
3877 | 2398 | *) | ||
3878 | 2399 | enable_static=no | ||
3879 | 2400 | # Look at the argument we got. We use all the common list separators. | ||
3880 | 2401 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3881 | 2402 | for pkg in $enableval; do | ||
3882 | 2403 | IFS="$lt_save_ifs" | ||
3883 | 2404 | if test "X$pkg" = "X$p"; then | ||
3884 | 2405 | enable_static=yes | ||
3885 | 2406 | fi | ||
3886 | 2407 | done | ||
3887 | 2408 | IFS="$lt_save_ifs" | ||
3888 | 2409 | ;; | ||
3889 | 2410 | esac], | ||
3890 | 2411 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) | ||
3891 | 2412 | ])# AC_ENABLE_STATIC | ||
3892 | 2413 | |||
3893 | 2414 | |||
3894 | 2415 | # AC_DISABLE_STATIC | ||
3895 | 2416 | # ----------------- | ||
3896 | 2417 | # set the default static flag to --disable-static | ||
3897 | 2418 | AC_DEFUN([AC_DISABLE_STATIC], | ||
3898 | 2419 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3899 | 2420 | AC_ENABLE_STATIC(no) | ||
3900 | 2421 | ])# AC_DISABLE_STATIC | ||
3901 | 2422 | |||
3902 | 2423 | |||
3903 | 2424 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) | ||
3904 | 2425 | # --------------------------------- | ||
3905 | 2426 | # implement the --enable-fast-install flag | ||
3906 | 2427 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3907 | 2428 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
3908 | 2429 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3909 | 2430 | AC_ARG_ENABLE([fast-install], | ||
3910 | 2431 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
3911 | 2432 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
3912 | 2433 | [p=${PACKAGE-default} | ||
3913 | 2434 | case $enableval in | ||
3914 | 2435 | yes) enable_fast_install=yes ;; | ||
3915 | 2436 | no) enable_fast_install=no ;; | ||
3916 | 2437 | *) | ||
3917 | 2438 | enable_fast_install=no | ||
3918 | 2439 | # Look at the argument we got. We use all the common list separators. | ||
3919 | 2440 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3920 | 2441 | for pkg in $enableval; do | ||
3921 | 2442 | IFS="$lt_save_ifs" | ||
3922 | 2443 | if test "X$pkg" = "X$p"; then | ||
3923 | 2444 | enable_fast_install=yes | ||
3924 | 2445 | fi | ||
3925 | 2446 | done | ||
3926 | 2447 | IFS="$lt_save_ifs" | ||
3927 | 2448 | ;; | ||
3928 | 2449 | esac], | ||
3929 | 2450 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | ||
3930 | 2451 | ])# AC_ENABLE_FAST_INSTALL | ||
3931 | 2452 | |||
3932 | 2453 | |||
3933 | 2454 | # AC_DISABLE_FAST_INSTALL | ||
3934 | 2455 | # ----------------------- | ||
3935 | 2456 | # set the default to --disable-fast-install | ||
3936 | 2457 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
3937 | 2458 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3938 | 2459 | AC_ENABLE_FAST_INSTALL(no) | ||
3939 | 2460 | ])# AC_DISABLE_FAST_INSTALL | ||
3940 | 2461 | |||
3941 | 2462 | |||
3942 | 2463 | # AC_LIBTOOL_PICMODE([MODE]) | ||
3943 | 2464 | # -------------------------- | ||
3944 | 2465 | # implement the --with-pic flag | ||
3945 | 2466 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
3946 | 2467 | AC_DEFUN([AC_LIBTOOL_PICMODE], | ||
3947 | 2468 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3948 | 2469 | pic_mode=ifelse($#,1,$1,default) | ||
3949 | 2470 | ])# AC_LIBTOOL_PICMODE | ||
3950 | 2471 | |||
3951 | 2472 | |||
3952 | 2473 | # AC_PROG_EGREP | ||
3953 | 2474 | # ------------- | ||
3954 | 2475 | # This is predefined starting with Autoconf 2.54, so this conditional | ||
3955 | 2476 | # definition can be removed once we require Autoconf 2.54 or later. | ||
3956 | 2477 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | ||
3957 | 2478 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||
3958 | 2479 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
3959 | 2480 | then ac_cv_prog_egrep='grep -E' | ||
3960 | 2481 | else ac_cv_prog_egrep='egrep' | ||
3961 | 2482 | fi]) | ||
3962 | 2483 | EGREP=$ac_cv_prog_egrep | ||
3963 | 2484 | AC_SUBST([EGREP]) | ||
3964 | 2485 | ])]) | ||
3965 | 2486 | |||
3966 | 2487 | |||
3967 | 2488 | # AC_PATH_TOOL_PREFIX | ||
3968 | 2489 | # ------------------- | ||
3969 | 2490 | # find a file program which can recognise shared library | ||
3970 | 2491 | AC_DEFUN([AC_PATH_TOOL_PREFIX], | ||
3971 | 2492 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
3972 | 2493 | AC_MSG_CHECKING([for $1]) | ||
3973 | 2494 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3974 | 2495 | [case $MAGIC_CMD in | ||
3975 | 2496 | [[\\/*] | ?:[\\/]*]) | ||
3976 | 2497 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
3977 | 2498 | ;; | ||
3978 | 2499 | *) | ||
3979 | 2500 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
3980 | 2501 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3981 | 2502 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
3982 | 2503 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
3983 | 2504 | dnl not every word. This closes a longstanding sh security hole. | ||
3984 | 2505 | ac_dummy="ifelse([$2], , $PATH, [$2])" | ||
3985 | 2506 | for ac_dir in $ac_dummy; do | ||
3986 | 2507 | IFS="$lt_save_ifs" | ||
3987 | 2508 | test -z "$ac_dir" && ac_dir=. | ||
3988 | 2509 | if test -f $ac_dir/$1; then | ||
3989 | 2510 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3990 | 2511 | if test -n "$file_magic_test_file"; then | ||
3991 | 2512 | case $deplibs_check_method in | ||
3992 | 2513 | "file_magic "*) | ||
3993 | 2514 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
3994 | 2515 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3995 | 2516 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
3996 | 2517 | $EGREP "$file_magic_regex" > /dev/null; then | ||
3997 | 2518 | : | ||
3998 | 2519 | else | ||
3999 | 2520 | cat <<EOF 1>&2 | ||
4000 | 2521 | |||
4001 | 2522 | *** Warning: the command libtool uses to detect shared libraries, | ||
4002 | 2523 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
4003 | 2524 | *** The result is that libtool may fail to recognize shared libraries | ||
4004 | 2525 | *** as such. This will affect the creation of libtool libraries that | ||
4005 | 2526 | *** depend on shared libraries, but programs linked with such libtool | ||
4006 | 2527 | *** libraries will work regardless of this problem. Nevertheless, you | ||
4007 | 2528 | *** may want to report the problem to your system manager and/or to | ||
4008 | 2529 | *** bug-libtool@gnu.org | ||
4009 | 2530 | |||
4010 | 2531 | EOF | ||
4011 | 2532 | fi ;; | ||
4012 | 2533 | esac | ||
4013 | 2534 | fi | ||
4014 | 2535 | break | ||
4015 | 2536 | fi | ||
4016 | 2537 | done | ||
4017 | 2538 | IFS="$lt_save_ifs" | ||
4018 | 2539 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
4019 | 2540 | ;; | ||
4020 | 2541 | esac]) | ||
4021 | 2542 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
4022 | 2543 | if test -n "$MAGIC_CMD"; then | ||
4023 | 2544 | AC_MSG_RESULT($MAGIC_CMD) | ||
4024 | 2545 | else | ||
4025 | 2546 | AC_MSG_RESULT(no) | ||
4026 | 2547 | fi | ||
4027 | 2548 | ])# AC_PATH_TOOL_PREFIX | ||
4028 | 2549 | |||
4029 | 2550 | |||
4030 | 2551 | # AC_PATH_MAGIC | ||
4031 | 2552 | # ------------- | ||
4032 | 2553 | # find a file program which can recognise a shared library | ||
4033 | 2554 | AC_DEFUN([AC_PATH_MAGIC], | ||
4034 | 2555 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
4035 | 2556 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
4036 | 2557 | if test -n "$ac_tool_prefix"; then | ||
4037 | 2558 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
4038 | 2559 | else | ||
4039 | 2560 | MAGIC_CMD=: | ||
4040 | 2561 | fi | ||
4041 | 2562 | fi | ||
4042 | 2563 | ])# AC_PATH_MAGIC | ||
4043 | 2564 | |||
4044 | 2565 | |||
4045 | 2566 | # AC_PROG_LD | ||
4046 | 2567 | # ---------- | ||
4047 | 2568 | # find the pathname to the GNU or non-GNU linker | ||
4048 | 2569 | AC_DEFUN([AC_PROG_LD], | ||
4049 | 2570 | [AC_ARG_WITH([gnu-ld], | ||
4050 | 2571 | [AC_HELP_STRING([--with-gnu-ld], | ||
4051 | 2572 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
4052 | 2573 | [test "$withval" = no || with_gnu_ld=yes], | ||
4053 | 2574 | [with_gnu_ld=no]) | ||
4054 | 2575 | AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
4055 | 2576 | AC_REQUIRE([AC_PROG_CC])dnl | ||
4056 | 2577 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
4057 | 2578 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
4058 | 2579 | ac_prog=ld | ||
4059 | 2580 | if test "$GCC" = yes; then | ||
4060 | 2581 | # Check if gcc -print-prog-name=ld gives a path. | ||
4061 | 2582 | AC_MSG_CHECKING([for ld used by $CC]) | ||
4062 | 2583 | case $host in | ||
4063 | 2584 | *-*-mingw*) | ||
4064 | 2585 | # gcc leaves a trailing carriage return which upsets mingw | ||
4065 | 2586 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4066 | 2587 | *) | ||
4067 | 2588 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4068 | 2589 | esac | ||
4069 | 2590 | case $ac_prog in | ||
4070 | 2591 | # Accept absolute paths. | ||
4071 | 2592 | [[\\/]]* | ?:[[\\/]]*) | ||
4072 | 2593 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
4073 | 2594 | # Canonicalize the pathname of ld | ||
4074 | 2595 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
4075 | 2596 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
4076 | 2597 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
4077 | 2598 | done | ||
4078 | 2599 | test -z "$LD" && LD="$ac_prog" | ||
4079 | 2600 | ;; | ||
4080 | 2601 | "") | ||
4081 | 2602 | # If it fails, then pretend we aren't using GCC. | ||
4082 | 2603 | ac_prog=ld | ||
4083 | 2604 | ;; | ||
4084 | 2605 | *) | ||
4085 | 2606 | # If it is relative, then search for the first ld in PATH. | ||
4086 | 2607 | with_gnu_ld=unknown | ||
4087 | 2608 | ;; | ||
4088 | 2609 | esac | ||
4089 | 2610 | elif test "$with_gnu_ld" = yes; then | ||
4090 | 2611 | AC_MSG_CHECKING([for GNU ld]) | ||
4091 | 2612 | else | ||
4092 | 2613 | AC_MSG_CHECKING([for non-GNU ld]) | ||
4093 | 2614 | fi | ||
4094 | 2615 | AC_CACHE_VAL(lt_cv_path_LD, | ||
4095 | 2616 | [if test -z "$LD"; then | ||
4096 | 2617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4097 | 2618 | for ac_dir in $PATH; do | ||
4098 | 2619 | IFS="$lt_save_ifs" | ||
4099 | 2620 | test -z "$ac_dir" && ac_dir=. | ||
4100 | 2621 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4101 | 2622 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4102 | 2623 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4103 | 2624 | # but apparently some variants of GNU ld only accept -v. | ||
4104 | 2625 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4105 | 2626 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4106 | 2627 | *GNU* | *'with BFD'*) | ||
4107 | 2628 | test "$with_gnu_ld" != no && break | ||
4108 | 2629 | ;; | ||
4109 | 2630 | *) | ||
4110 | 2631 | test "$with_gnu_ld" != yes && break | ||
4111 | 2632 | ;; | ||
4112 | 2633 | esac | ||
4113 | 2634 | fi | ||
4114 | 2635 | done | ||
4115 | 2636 | IFS="$lt_save_ifs" | ||
4116 | 2637 | else | ||
4117 | 2638 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4118 | 2639 | fi]) | ||
4119 | 2640 | LD="$lt_cv_path_LD" | ||
4120 | 2641 | if test -n "$LD"; then | ||
4121 | 2642 | AC_MSG_RESULT($LD) | ||
4122 | 2643 | else | ||
4123 | 2644 | AC_MSG_RESULT(no) | ||
4124 | 2645 | fi | ||
4125 | 2646 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
4126 | 2647 | AC_PROG_LD_GNU | ||
4127 | 2648 | ])# AC_PROG_LD | ||
4128 | 2649 | |||
4129 | 2650 | |||
4130 | 2651 | # AC_PROG_LD_GNU | ||
4131 | 2652 | # -------------- | ||
4132 | 2653 | AC_DEFUN([AC_PROG_LD_GNU], | ||
4133 | 2654 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
4134 | 2655 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
4135 | 2656 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4136 | 2657 | case `$LD -v 2>&1 </dev/null` in | ||
4137 | 2658 | *GNU* | *'with BFD'*) | ||
4138 | 2659 | lt_cv_prog_gnu_ld=yes | ||
4139 | 2660 | ;; | ||
4140 | 2661 | *) | ||
4141 | 2662 | lt_cv_prog_gnu_ld=no | ||
4142 | 2663 | ;; | ||
4143 | 2664 | esac]) | ||
4144 | 2665 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4145 | 2666 | ])# AC_PROG_LD_GNU | ||
4146 | 2667 | |||
4147 | 2668 | |||
4148 | 2669 | # AC_PROG_LD_RELOAD_FLAG | ||
4149 | 2670 | # ---------------------- | ||
4150 | 2671 | # find reload flag for linker | ||
4151 | 2672 | # -- PORTME Some linkers may need a different reload flag. | ||
4152 | 2673 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | ||
4153 | 2674 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
4154 | 2675 | lt_cv_ld_reload_flag, | ||
4155 | 2676 | [lt_cv_ld_reload_flag='-r']) | ||
4156 | 2677 | reload_flag=$lt_cv_ld_reload_flag | ||
4157 | 2678 | case $reload_flag in | ||
4158 | 2679 | "" | " "*) ;; | ||
4159 | 2680 | *) reload_flag=" $reload_flag" ;; | ||
4160 | 2681 | esac | ||
4161 | 2682 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4162 | 2683 | case $host_os in | ||
4163 | 2684 | darwin*) | ||
4164 | 2685 | if test "$GCC" = yes; then | ||
4165 | 2686 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
4166 | 2687 | else | ||
4167 | 2688 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4168 | 2689 | fi | ||
4169 | 2690 | ;; | ||
4170 | 2691 | esac | ||
4171 | 2692 | ])# AC_PROG_LD_RELOAD_FLAG | ||
4172 | 2693 | |||
4173 | 2694 | |||
4174 | 2695 | # AC_DEPLIBS_CHECK_METHOD | ||
4175 | 2696 | # ----------------------- | ||
4176 | 2697 | # how to check for library dependencies | ||
4177 | 2698 | # -- PORTME fill in with the dynamic library characteristics | ||
4178 | 2699 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | ||
4179 | 2700 | [AC_CACHE_CHECK([how to recognise dependent libraries], | ||
4180 | 2701 | lt_cv_deplibs_check_method, | ||
4181 | 2702 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
4182 | 2703 | lt_cv_file_magic_test_file= | ||
4183 | 2704 | lt_cv_deplibs_check_method='unknown' | ||
4184 | 2705 | # Need to set the preceding variable on all platforms that support | ||
4185 | 2706 | # interlibrary dependencies. | ||
4186 | 2707 | # 'none' -- dependencies not supported. | ||
4187 | 2708 | # `unknown' -- same as none, but documents that we really don't know. | ||
4188 | 2709 | # 'pass_all' -- all dependencies passed with no checks. | ||
4189 | 2710 | # 'test_compile' -- check by making test program. | ||
4190 | 2711 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
4191 | 2712 | # which responds to the $file_magic_cmd with a given extended regex. | ||
4192 | 2713 | # If you have `file' or equivalent on your system and you're not sure | ||
4193 | 2714 | # whether `pass_all' will *always* work, you probably want this one. | ||
4194 | 2715 | |||
4195 | 2716 | case $host_os in | ||
4196 | 2717 | aix4* | aix5*) | ||
4197 | 2718 | lt_cv_deplibs_check_method=pass_all | ||
4198 | 2719 | ;; | ||
4199 | 2720 | |||
4200 | 2721 | beos*) | ||
4201 | 2722 | lt_cv_deplibs_check_method=pass_all | ||
4202 | 2723 | ;; | ||
4203 | 2724 | |||
4204 | 2725 | bsdi[[45]]*) | ||
4205 | 2726 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
4206 | 2727 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
4207 | 2728 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
4208 | 2729 | ;; | ||
4209 | 2730 | |||
4210 | 2731 | cygwin*) | ||
4211 | 2732 | # func_win32_libid is a shell function defined in ltmain.sh | ||
4212 | 2733 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
4213 | 2734 | lt_cv_file_magic_cmd='func_win32_libid' | ||
4214 | 2735 | ;; | ||
4215 | 2736 | |||
4216 | 2737 | mingw* | pw32*) | ||
4217 | 2738 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
4218 | 2739 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
4219 | 2740 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
4220 | 2741 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
4221 | 2742 | ;; | ||
4222 | 2743 | |||
4223 | 2744 | darwin* | rhapsody*) | ||
4224 | 2745 | lt_cv_deplibs_check_method=pass_all | ||
4225 | 2746 | ;; | ||
4226 | 2747 | |||
4227 | 2748 | freebsd* | dragonfly*) | ||
4228 | 2749 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4229 | 2750 | case $host_cpu in | ||
4230 | 2751 | i*86 ) | ||
4231 | 2752 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
4232 | 2753 | # Let's accept both of them until this is cleared up. | ||
4233 | 2754 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
4234 | 2755 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4235 | 2756 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
4236 | 2757 | ;; | ||
4237 | 2758 | esac | ||
4238 | 2759 | else | ||
4239 | 2760 | lt_cv_deplibs_check_method=pass_all | ||
4240 | 2761 | fi | ||
4241 | 2762 | ;; | ||
4242 | 2763 | |||
4243 | 2764 | gnu*) | ||
4244 | 2765 | lt_cv_deplibs_check_method=pass_all | ||
4245 | 2766 | ;; | ||
4246 | 2767 | |||
4247 | 2768 | hpux10.20* | hpux11*) | ||
4248 | 2769 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4249 | 2770 | case $host_cpu in | ||
4250 | 2771 | ia64*) | ||
4251 | 2772 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
4252 | 2773 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
4253 | 2774 | ;; | ||
4254 | 2775 | hppa*64*) | ||
4255 | 2776 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | ||
4256 | 2777 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
4257 | 2778 | ;; | ||
4258 | 2779 | *) | ||
4259 | 2780 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
4260 | 2781 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
4261 | 2782 | ;; | ||
4262 | 2783 | esac | ||
4263 | 2784 | ;; | ||
4264 | 2785 | |||
4265 | 2786 | interix3*) | ||
4266 | 2787 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
4267 | 2788 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
4268 | 2789 | ;; | ||
4269 | 2790 | |||
4270 | 2791 | irix5* | irix6* | nonstopux*) | ||
4271 | 2792 | case $LD in | ||
4272 | 2793 | *-32|*"-32 ") libmagic=32-bit;; | ||
4273 | 2794 | *-n32|*"-n32 ") libmagic=N32;; | ||
4274 | 2795 | *-64|*"-64 ") libmagic=64-bit;; | ||
4275 | 2796 | *) libmagic=never-match;; | ||
4276 | 2797 | esac | ||
4277 | 2798 | lt_cv_deplibs_check_method=pass_all | ||
4278 | 2799 | ;; | ||
4279 | 2800 | |||
4280 | 2801 | # This must be Linux ELF. | ||
4281 | 2802 | linux* | k*bsd*-gnu) | ||
4282 | 2803 | lt_cv_deplibs_check_method=pass_all | ||
4283 | 2804 | ;; | ||
4284 | 2805 | |||
4285 | 2806 | netbsd* | netbsdelf*-gnu) | ||
4286 | 2807 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4287 | 2808 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
4288 | 2809 | else | ||
4289 | 2810 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
4290 | 2811 | fi | ||
4291 | 2812 | ;; | ||
4292 | 2813 | |||
4293 | 2814 | newos6*) | ||
4294 | 2815 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
4295 | 2816 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4296 | 2817 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
4297 | 2818 | ;; | ||
4298 | 2819 | |||
4299 | 2820 | nto-qnx*) | ||
4300 | 2821 | lt_cv_deplibs_check_method=unknown | ||
4301 | 2822 | ;; | ||
4302 | 2823 | |||
4303 | 2824 | openbsd*) | ||
4304 | 2825 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
4305 | 2826 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
4306 | 2827 | else | ||
4307 | 2828 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
4308 | 2829 | fi | ||
4309 | 2830 | ;; | ||
4310 | 2831 | |||
4311 | 2832 | osf3* | osf4* | osf5*) | ||
4312 | 2833 | lt_cv_deplibs_check_method=pass_all | ||
4313 | 2834 | ;; | ||
4314 | 2835 | |||
4315 | 2836 | solaris*) | ||
4316 | 2837 | lt_cv_deplibs_check_method=pass_all | ||
4317 | 2838 | ;; | ||
4318 | 2839 | |||
4319 | 2840 | sysv4 | sysv4.3*) | ||
4320 | 2841 | case $host_vendor in | ||
4321 | 2842 | motorola) | ||
4322 | 2843 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | ||
4323 | 2844 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
4324 | 2845 | ;; | ||
4325 | 2846 | ncr) | ||
4326 | 2847 | lt_cv_deplibs_check_method=pass_all | ||
4327 | 2848 | ;; | ||
4328 | 2849 | sequent) | ||
4329 | 2850 | lt_cv_file_magic_cmd='/bin/file' | ||
4330 | 2851 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
4331 | 2852 | ;; | ||
4332 | 2853 | sni) | ||
4333 | 2854 | lt_cv_file_magic_cmd='/bin/file' | ||
4334 | 2855 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
4335 | 2856 | lt_cv_file_magic_test_file=/lib/libc.so | ||
4336 | 2857 | ;; | ||
4337 | 2858 | siemens) | ||
4338 | 2859 | lt_cv_deplibs_check_method=pass_all | ||
4339 | 2860 | ;; | ||
4340 | 2861 | pc) | ||
4341 | 2862 | lt_cv_deplibs_check_method=pass_all | ||
4342 | 2863 | ;; | ||
4343 | 2864 | esac | ||
4344 | 2865 | ;; | ||
4345 | 2866 | |||
4346 | 2867 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
4347 | 2868 | lt_cv_deplibs_check_method=pass_all | ||
4348 | 2869 | ;; | ||
4349 | 2870 | esac | ||
4350 | 2871 | ]) | ||
4351 | 2872 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
4352 | 2873 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
4353 | 2874 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
4354 | 2875 | ])# AC_DEPLIBS_CHECK_METHOD | ||
4355 | 2876 | |||
4356 | 2877 | |||
4357 | 2878 | # AC_PROG_NM | ||
4358 | 2879 | # ---------- | ||
4359 | 2880 | # find the pathname to a BSD-compatible name lister | ||
4360 | 2881 | AC_DEFUN([AC_PROG_NM], | ||
4361 | 2882 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | ||
4362 | 2883 | [if test -n "$NM"; then | ||
4363 | 2884 | # Let the user override the test. | ||
4364 | 2885 | lt_cv_path_NM="$NM" | ||
4365 | 2886 | else | ||
4366 | 2887 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4367 | 2888 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4368 | 2889 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4369 | 2890 | fi | ||
4370 | 2891 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4371 | 2892 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4372 | 2893 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4373 | 2894 | IFS="$lt_save_ifs" | ||
4374 | 2895 | test -z "$ac_dir" && ac_dir=. | ||
4375 | 2896 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4376 | 2897 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4377 | 2898 | # Check to see if the nm accepts a BSD-compat flag. | ||
4378 | 2899 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4379 | 2900 | # nm: unknown option "B" ignored | ||
4380 | 2901 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4381 | 2902 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4382 | 2903 | */dev/null* | *'Invalid file or object type'*) | ||
4383 | 2904 | lt_cv_path_NM="$tmp_nm -B" | ||
4384 | 2905 | break | ||
4385 | 2906 | ;; | ||
4386 | 2907 | *) | ||
4387 | 2908 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4388 | 2909 | */dev/null*) | ||
4389 | 2910 | lt_cv_path_NM="$tmp_nm -p" | ||
4390 | 2911 | break | ||
4391 | 2912 | ;; | ||
4392 | 2913 | *) | ||
4393 | 2914 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4394 | 2915 | continue # so that we can try to find one that supports BSD flags | ||
4395 | 2916 | ;; | ||
4396 | 2917 | esac | ||
4397 | 2918 | ;; | ||
4398 | 2919 | esac | ||
4399 | 2920 | fi | ||
4400 | 2921 | done | ||
4401 | 2922 | IFS="$lt_save_ifs" | ||
4402 | 2923 | done | ||
4403 | 2924 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
4404 | 2925 | fi]) | ||
4405 | 2926 | NM="$lt_cv_path_NM" | ||
4406 | 2927 | ])# AC_PROG_NM | ||
4407 | 2928 | |||
4408 | 2929 | |||
4409 | 2930 | # AC_CHECK_LIBM | ||
4410 | 2931 | # ------------- | ||
4411 | 2932 | # check for math library | ||
4412 | 2933 | AC_DEFUN([AC_CHECK_LIBM], | ||
4413 | 2934 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
4414 | 2935 | LIBM= | ||
4415 | 2936 | case $host in | ||
4416 | 2937 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
4417 | 2938 | # These system don't have libm, or don't need it | ||
4418 | 2939 | ;; | ||
4419 | 2940 | *-ncr-sysv4.3*) | ||
4420 | 2941 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
4421 | 2942 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
4422 | 2943 | ;; | ||
4423 | 2944 | *) | ||
4424 | 2945 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
4425 | 2946 | ;; | ||
4426 | 2947 | esac | ||
4427 | 2948 | ])# AC_CHECK_LIBM | ||
4428 | 2949 | |||
4429 | 2950 | |||
4430 | 2951 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | ||
4431 | 2952 | # ----------------------------------- | ||
4432 | 2953 | # sets LIBLTDL to the link flags for the libltdl convenience library and | ||
4433 | 2954 | # LTDLINCL to the include flags for the libltdl header and adds | ||
4434 | 2955 | # --enable-ltdl-convenience to the configure arguments. Note that | ||
4435 | 2956 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
4436 | 2957 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | ||
4437 | 2958 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | ||
4438 | 2959 | # (note the single quotes!). If your package is not flat and you're not | ||
4439 | 2960 | # using automake, define top_builddir and top_srcdir appropriately in | ||
4440 | 2961 | # the Makefiles. | ||
4441 | 2962 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | ||
4442 | 2963 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
4443 | 2964 | case $enable_ltdl_convenience in | ||
4444 | 2965 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | ||
4445 | 2966 | "") enable_ltdl_convenience=yes | ||
4446 | 2967 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | ||
4447 | 2968 | esac | ||
4448 | 2969 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | ||
4449 | 2970 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
4450 | 2971 | # For backwards non-gettext consistent compatibility... | ||
4451 | 2972 | INCLTDL="$LTDLINCL" | ||
4452 | 2973 | ])# AC_LIBLTDL_CONVENIENCE | ||
4453 | 2974 | |||
4454 | 2975 | |||
4455 | 2976 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | ||
4456 | 2977 | # ----------------------------------- | ||
4457 | 2978 | # sets LIBLTDL to the link flags for the libltdl installable library and | ||
4458 | 2979 | # LTDLINCL to the include flags for the libltdl header and adds | ||
4459 | 2980 | # --enable-ltdl-install to the configure arguments. Note that | ||
4460 | 2981 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
4461 | 2982 | # and an installed libltdl is not found, it is assumed to be `libltdl'. | ||
4462 | 2983 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | ||
4463 | 2984 | # '${top_srcdir}/' (note the single quotes!). If your package is not | ||
4464 | 2985 | # flat and you're not using automake, define top_builddir and top_srcdir | ||
4465 | 2986 | # appropriately in the Makefiles. | ||
4466 | 2987 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | ||
4467 | 2988 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | ||
4468 | 2989 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
4469 | 2990 | AC_CHECK_LIB(ltdl, lt_dlinit, | ||
4470 | 2991 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | ||
4471 | 2992 | [if test x"$enable_ltdl_install" = xno; then | ||
4472 | 2993 | AC_MSG_WARN([libltdl not installed, but installation disabled]) | ||
4473 | 2994 | else | ||
4474 | 2995 | enable_ltdl_install=yes | ||
4475 | 2996 | fi | ||
4476 | 2997 | ]) | ||
4477 | 2998 | if test x"$enable_ltdl_install" = x"yes"; then | ||
4478 | 2999 | ac_configure_args="$ac_configure_args --enable-ltdl-install" | ||
4479 | 3000 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | ||
4480 | 3001 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
4481 | 3002 | else | ||
4482 | 3003 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | ||
4483 | 3004 | LIBLTDL="-lltdl" | ||
4484 | 3005 | LTDLINCL= | ||
4485 | 3006 | fi | ||
4486 | 3007 | # For backwards non-gettext consistent compatibility... | ||
4487 | 3008 | INCLTDL="$LTDLINCL" | ||
4488 | 3009 | ])# AC_LIBLTDL_INSTALLABLE | ||
4489 | 3010 | |||
4490 | 3011 | |||
4491 | 3012 | # AC_LIBTOOL_CXX | ||
4492 | 3013 | # -------------- | ||
4493 | 3014 | # enable support for C++ libraries | ||
4494 | 3015 | AC_DEFUN([AC_LIBTOOL_CXX], | ||
4495 | 3016 | [AC_REQUIRE([_LT_AC_LANG_CXX]) | ||
4496 | 3017 | ])# AC_LIBTOOL_CXX | ||
4497 | 3018 | |||
4498 | 3019 | |||
4499 | 3020 | # _LT_AC_LANG_CXX | ||
4500 | 3021 | # --------------- | ||
4501 | 3022 | AC_DEFUN([_LT_AC_LANG_CXX], | ||
4502 | 3023 | [AC_REQUIRE([AC_PROG_CXX]) | ||
4503 | 3024 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
4504 | 3025 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | ||
4505 | 3026 | ])# _LT_AC_LANG_CXX | ||
4506 | 3027 | |||
4507 | 3028 | # _LT_AC_PROG_CXXCPP | ||
4508 | 3029 | # ------------------ | ||
4509 | 3030 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
4510 | 3031 | [ | ||
4511 | 3032 | AC_REQUIRE([AC_PROG_CXX]) | ||
4512 | 3033 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
4513 | 3034 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
4514 | 3035 | (test "X$CXX" != "Xg++"))) ; then | ||
4515 | 3036 | AC_PROG_CXXCPP | ||
4516 | 3037 | fi | ||
4517 | 3038 | ])# _LT_AC_PROG_CXXCPP | ||
4518 | 3039 | |||
4519 | 3040 | # AC_LIBTOOL_F77 | ||
4520 | 3041 | # -------------- | ||
4521 | 3042 | # enable support for Fortran 77 libraries | ||
4522 | 3043 | AC_DEFUN([AC_LIBTOOL_F77], | ||
4523 | 3044 | [AC_REQUIRE([_LT_AC_LANG_F77]) | ||
4524 | 3045 | ])# AC_LIBTOOL_F77 | ||
4525 | 3046 | |||
4526 | 3047 | |||
4527 | 3048 | # _LT_AC_LANG_F77 | ||
4528 | 3049 | # --------------- | ||
4529 | 3050 | AC_DEFUN([_LT_AC_LANG_F77], | ||
4530 | 3051 | [AC_REQUIRE([AC_PROG_F77]) | ||
4531 | 3052 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | ||
4532 | 3053 | ])# _LT_AC_LANG_F77 | ||
4533 | 3054 | |||
4534 | 3055 | |||
4535 | 3056 | # AC_LIBTOOL_GCJ | ||
4536 | 3057 | # -------------- | ||
4537 | 3058 | # enable support for GCJ libraries | ||
4538 | 3059 | AC_DEFUN([AC_LIBTOOL_GCJ], | ||
4539 | 3060 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) | ||
4540 | 3061 | ])# AC_LIBTOOL_GCJ | ||
4541 | 3062 | |||
4542 | 3063 | |||
4543 | 3064 | # _LT_AC_LANG_GCJ | ||
4544 | 3065 | # --------------- | ||
4545 | 3066 | AC_DEFUN([_LT_AC_LANG_GCJ], | ||
4546 | 3067 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | ||
4547 | 3068 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | ||
4548 | 3069 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | ||
4549 | 3070 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | ||
4550 | 3071 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | ||
4551 | 3072 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | ||
4552 | 3073 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | ||
4553 | 3074 | ])# _LT_AC_LANG_GCJ | ||
4554 | 3075 | |||
4555 | 3076 | |||
4556 | 3077 | # AC_LIBTOOL_RC | ||
4557 | 3078 | # ------------- | ||
4558 | 3079 | # enable support for Windows resource files | ||
4559 | 3080 | AC_DEFUN([AC_LIBTOOL_RC], | ||
4560 | 3081 | [AC_REQUIRE([LT_AC_PROG_RC]) | ||
4561 | 3082 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
4562 | 3083 | ])# AC_LIBTOOL_RC | ||
4563 | 3084 | |||
4564 | 3085 | |||
4565 | 3086 | # AC_LIBTOOL_LANG_C_CONFIG | ||
4566 | 3087 | # ------------------------ | ||
4567 | 3088 | # Ensure that the configuration vars for the C compiler are | ||
4568 | 3089 | # suitably defined. Those variables are subsequently used by | ||
4569 | 3090 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4570 | 3091 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
4571 | 3092 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
4572 | 3093 | [lt_save_CC="$CC" | ||
4573 | 3094 | AC_LANG_PUSH(C) | ||
4574 | 3095 | |||
4575 | 3096 | # Source file extension for C test sources. | ||
4576 | 3097 | ac_ext=c | ||
4577 | 3098 | |||
4578 | 3099 | # Object file extension for compiled C test sources. | ||
4579 | 3100 | objext=o | ||
4580 | 3101 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4581 | 3102 | |||
4582 | 3103 | # Code to be used in simple compile tests | ||
4583 | 3104 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
4584 | 3105 | |||
4585 | 3106 | # Code to be used in simple link tests | ||
4586 | 3107 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
4587 | 3108 | |||
4588 | 3109 | _LT_AC_SYS_COMPILER | ||
4589 | 3110 | |||
4590 | 3111 | # save warnings/boilerplate of simple test code | ||
4591 | 3112 | _LT_COMPILER_BOILERPLATE | ||
4592 | 3113 | _LT_LINKER_BOILERPLATE | ||
4593 | 3114 | |||
4594 | 3115 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
4595 | 3116 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4596 | 3117 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4597 | 3118 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4598 | 3119 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4599 | 3120 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4600 | 3121 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4601 | 3122 | AC_LIBTOOL_SYS_LIB_STRIP | ||
4602 | 3123 | AC_LIBTOOL_DLOPEN_SELF | ||
4603 | 3124 | |||
4604 | 3125 | # Report which library types will actually be built | ||
4605 | 3126 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
4606 | 3127 | AC_MSG_RESULT([$can_build_shared]) | ||
4607 | 3128 | |||
4608 | 3129 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
4609 | 3130 | test "$can_build_shared" = "no" && enable_shared=no | ||
4610 | 3131 | |||
4611 | 3132 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
4612 | 3133 | # are all built from PIC. | ||
4613 | 3134 | case $host_os in | ||
4614 | 3135 | aix3*) | ||
4615 | 3136 | test "$enable_shared" = yes && enable_static=no | ||
4616 | 3137 | if test -n "$RANLIB"; then | ||
4617 | 3138 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
4618 | 3139 | postinstall_cmds='$RANLIB $lib' | ||
4619 | 3140 | fi | ||
4620 | 3141 | ;; | ||
4621 | 3142 | |||
4622 | 3143 | aix4* | aix5*) | ||
4623 | 3144 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
4624 | 3145 | test "$enable_shared" = yes && enable_static=no | ||
4625 | 3146 | fi | ||
4626 | 3147 | ;; | ||
4627 | 3148 | esac | ||
4628 | 3149 | AC_MSG_RESULT([$enable_shared]) | ||
4629 | 3150 | |||
4630 | 3151 | AC_MSG_CHECKING([whether to build static libraries]) | ||
4631 | 3152 | # Make sure either enable_shared or enable_static is yes. | ||
4632 | 3153 | test "$enable_shared" = yes || enable_static=yes | ||
4633 | 3154 | AC_MSG_RESULT([$enable_static]) | ||
4634 | 3155 | |||
4635 | 3156 | AC_LIBTOOL_CONFIG($1) | ||
4636 | 3157 | |||
4637 | 3158 | AC_LANG_POP | ||
4638 | 3159 | CC="$lt_save_CC" | ||
4639 | 3160 | ])# AC_LIBTOOL_LANG_C_CONFIG | ||
4640 | 3161 | |||
4641 | 3162 | |||
4642 | 3163 | # AC_LIBTOOL_LANG_CXX_CONFIG | ||
4643 | 3164 | # -------------------------- | ||
4644 | 3165 | # Ensure that the configuration vars for the C compiler are | ||
4645 | 3166 | # suitably defined. Those variables are subsequently used by | ||
4646 | 3167 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4647 | 3168 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | ||
4648 | 3169 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | ||
4649 | 3170 | [AC_LANG_PUSH(C++) | ||
4650 | 3171 | AC_REQUIRE([AC_PROG_CXX]) | ||
4651 | 3172 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
4652 | 3173 | |||
4653 | 3174 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4654 | 3175 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4655 | 3176 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4656 | 3177 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4657 | 3178 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4658 | 3179 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4659 | 3180 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4660 | 3181 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4661 | 3182 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4662 | 3183 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4663 | 3184 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4664 | 3185 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4665 | 3186 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
4666 | 3187 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4667 | 3188 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4668 | 3189 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4669 | 3190 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4670 | 3191 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4671 | 3192 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4672 | 3193 | |||
4673 | 3194 | # Dependencies to place before and after the object being linked: | ||
4674 | 3195 | _LT_AC_TAGVAR(predep_objects, $1)= | ||
4675 | 3196 | _LT_AC_TAGVAR(postdep_objects, $1)= | ||
4676 | 3197 | _LT_AC_TAGVAR(predeps, $1)= | ||
4677 | 3198 | _LT_AC_TAGVAR(postdeps, $1)= | ||
4678 | 3199 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | ||
4679 | 3200 | |||
4680 | 3201 | # Source file extension for C++ test sources. | ||
4681 | 3202 | ac_ext=cpp | ||
4682 | 3203 | |||
4683 | 3204 | # Object file extension for compiled C++ test sources. | ||
4684 | 3205 | objext=o | ||
4685 | 3206 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4686 | 3207 | |||
4687 | 3208 | # Code to be used in simple compile tests | ||
4688 | 3209 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
4689 | 3210 | |||
4690 | 3211 | # Code to be used in simple link tests | ||
4691 | 3212 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | ||
4692 | 3213 | |||
4693 | 3214 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4694 | 3215 | _LT_AC_SYS_COMPILER | ||
4695 | 3216 | |||
4696 | 3217 | # save warnings/boilerplate of simple test code | ||
4697 | 3218 | _LT_COMPILER_BOILERPLATE | ||
4698 | 3219 | _LT_LINKER_BOILERPLATE | ||
4699 | 3220 | |||
4700 | 3221 | # Allow CC to be a program name with arguments. | ||
4701 | 3222 | lt_save_CC=$CC | ||
4702 | 3223 | lt_save_LD=$LD | ||
4703 | 3224 | lt_save_GCC=$GCC | ||
4704 | 3225 | GCC=$GXX | ||
4705 | 3226 | lt_save_with_gnu_ld=$with_gnu_ld | ||
4706 | 3227 | lt_save_path_LD=$lt_cv_path_LD | ||
4707 | 3228 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
4708 | 3229 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
4709 | 3230 | else | ||
4710 | 3231 | $as_unset lt_cv_prog_gnu_ld | ||
4711 | 3232 | fi | ||
4712 | 3233 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
4713 | 3234 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
4714 | 3235 | else | ||
4715 | 3236 | $as_unset lt_cv_path_LD | ||
4716 | 3237 | fi | ||
4717 | 3238 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
4718 | 3239 | CC=${CXX-"c++"} | ||
4719 | 3240 | compiler=$CC | ||
4720 | 3241 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4721 | 3242 | _LT_CC_BASENAME([$compiler]) | ||
4722 | 3243 | |||
4723 | 3244 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
4724 | 3245 | # no_builtin_flag separately | ||
4725 | 3246 | if test "$GXX" = yes; then | ||
4726 | 3247 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
4727 | 3248 | else | ||
4728 | 3249 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
4729 | 3250 | fi | ||
4730 | 3251 | |||
4731 | 3252 | if test "$GXX" = yes; then | ||
4732 | 3253 | # Set up default GNU C++ configuration | ||
4733 | 3254 | |||
4734 | 3255 | AC_PROG_LD | ||
4735 | 3256 | |||
4736 | 3257 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
4737 | 3258 | # archiving commands below assume that GNU ld is being used. | ||
4738 | 3259 | if test "$with_gnu_ld" = yes; then | ||
4739 | 3260 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4740 | 3261 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4741 | 3262 | |||
4742 | 3263 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
4743 | 3264 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4744 | 3265 | |||
4745 | 3266 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
4746 | 3267 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
4747 | 3268 | # investigate it a little bit more. (MM) | ||
4748 | 3269 | wlarc='${wl}' | ||
4749 | 3270 | |||
4750 | 3271 | # ancient GNU ld didn't support --whole-archive et. al. | ||
4751 | 3272 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
4752 | 3273 | grep 'no-whole-archive' > /dev/null; then | ||
4753 | 3274 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
4754 | 3275 | else | ||
4755 | 3276 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4756 | 3277 | fi | ||
4757 | 3278 | else | ||
4758 | 3279 | with_gnu_ld=no | ||
4759 | 3280 | wlarc= | ||
4760 | 3281 | |||
4761 | 3282 | # A generic and very simple default shared library creation | ||
4762 | 3283 | # command for GNU C++ for the case where it uses the native | ||
4763 | 3284 | # linker, instead of GNU ld. If possible, this setting should | ||
4764 | 3285 | # overridden to take advantage of the native linker features on | ||
4765 | 3286 | # the platform it is being used on. | ||
4766 | 3287 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
4767 | 3288 | fi | ||
4768 | 3289 | |||
4769 | 3290 | # Commands to make compiler produce verbose output that lists | ||
4770 | 3291 | # what "hidden" libraries, object files and flags are used when | ||
4771 | 3292 | # linking a shared library. | ||
4772 | 3293 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
4773 | 3294 | |||
4774 | 3295 | else | ||
4775 | 3296 | GXX=no | ||
4776 | 3297 | with_gnu_ld=no | ||
4777 | 3298 | wlarc= | ||
4778 | 3299 | fi | ||
4779 | 3300 | |||
4780 | 3301 | # PORTME: fill in a description of your system's C++ link characteristics | ||
4781 | 3302 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
4782 | 3303 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
4783 | 3304 | case $host_os in | ||
4784 | 3305 | aix3*) | ||
4785 | 3306 | # FIXME: insert proper C++ library support | ||
4786 | 3307 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4787 | 3308 | ;; | ||
4788 | 3309 | aix4* | aix5*) | ||
4789 | 3310 | if test "$host_cpu" = ia64; then | ||
4790 | 3311 | # On IA64, the linker does run time linking by default, so we don't | ||
4791 | 3312 | # have to do anything special. | ||
4792 | 3313 | aix_use_runtimelinking=no | ||
4793 | 3314 | exp_sym_flag='-Bexport' | ||
4794 | 3315 | no_entry_flag="" | ||
4795 | 3316 | else | ||
4796 | 3317 | aix_use_runtimelinking=no | ||
4797 | 3318 | |||
4798 | 3319 | # Test if we are trying to use run time linking or normal | ||
4799 | 3320 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
4800 | 3321 | # need to do runtime linking. | ||
4801 | 3322 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
4802 | 3323 | for ld_flag in $LDFLAGS; do | ||
4803 | 3324 | case $ld_flag in | ||
4804 | 3325 | *-brtl*) | ||
4805 | 3326 | aix_use_runtimelinking=yes | ||
4806 | 3327 | break | ||
4807 | 3328 | ;; | ||
4808 | 3329 | esac | ||
4809 | 3330 | done | ||
4810 | 3331 | ;; | ||
4811 | 3332 | esac | ||
4812 | 3333 | |||
4813 | 3334 | exp_sym_flag='-bexport' | ||
4814 | 3335 | no_entry_flag='-bnoentry' | ||
4815 | 3336 | fi | ||
4816 | 3337 | |||
4817 | 3338 | # When large executables or shared objects are built, AIX ld can | ||
4818 | 3339 | # have problems creating the table of contents. If linking a library | ||
4819 | 3340 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
4820 | 3341 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
4821 | 3342 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
4822 | 3343 | |||
4823 | 3344 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
4824 | 3345 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4825 | 3346 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
4826 | 3347 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4827 | 3348 | |||
4828 | 3349 | if test "$GXX" = yes; then | ||
4829 | 3350 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
4830 | 3351 | # We only want to do this on AIX 4.2 and lower, the check | ||
4831 | 3352 | # below for broken collect2 doesn't work under 4.3+ | ||
4832 | 3353 | collect2name=`${CC} -print-prog-name=collect2` | ||
4833 | 3354 | if test -f "$collect2name" && \ | ||
4834 | 3355 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
4835 | 3356 | then | ||
4836 | 3357 | # We have reworked collect2 | ||
4837 | 3358 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4838 | 3359 | else | ||
4839 | 3360 | # We have old collect2 | ||
4840 | 3361 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
4841 | 3362 | # It fails to find uninstalled libraries when the uninstalled | ||
4842 | 3363 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
4843 | 3364 | # to unsupported forces relinking | ||
4844 | 3365 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
4845 | 3366 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4846 | 3367 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4847 | 3368 | fi | ||
4848 | 3369 | ;; | ||
4849 | 3370 | esac | ||
4850 | 3371 | shared_flag='-shared' | ||
4851 | 3372 | if test "$aix_use_runtimelinking" = yes; then | ||
4852 | 3373 | shared_flag="$shared_flag "'${wl}-G' | ||
4853 | 3374 | fi | ||
4854 | 3375 | else | ||
4855 | 3376 | # not using gcc | ||
4856 | 3377 | if test "$host_cpu" = ia64; then | ||
4857 | 3378 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
4858 | 3379 | # chokes on -Wl,-G. The following line is correct: | ||
4859 | 3380 | shared_flag='-G' | ||
4860 | 3381 | else | ||
4861 | 3382 | if test "$aix_use_runtimelinking" = yes; then | ||
4862 | 3383 | shared_flag='${wl}-G' | ||
4863 | 3384 | else | ||
4864 | 3385 | shared_flag='${wl}-bM:SRE' | ||
4865 | 3386 | fi | ||
4866 | 3387 | fi | ||
4867 | 3388 | fi | ||
4868 | 3389 | |||
4869 | 3390 | # It seems that -bexpall does not export symbols beginning with | ||
4870 | 3391 | # underscore (_), so it is better to generate a list of symbols to export. | ||
4871 | 3392 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
4872 | 3393 | if test "$aix_use_runtimelinking" = yes; then | ||
4873 | 3394 | # Warning - without using the other runtime loading flags (-brtl), | ||
4874 | 3395 | # -berok will link without error, but may produce a broken library. | ||
4875 | 3396 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
4876 | 3397 | # Determine the default libpath from the value encoded in an empty executable. | ||
4877 | 3398 | _LT_AC_SYS_LIBPATH_AIX | ||
4878 | 3399 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4879 | 3400 | |||
4880 | 3401 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
4881 | 3402 | else | ||
4882 | 3403 | if test "$host_cpu" = ia64; then | ||
4883 | 3404 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
4884 | 3405 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
4885 | 3406 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
4886 | 3407 | else | ||
4887 | 3408 | # Determine the default libpath from the value encoded in an empty executable. | ||
4888 | 3409 | _LT_AC_SYS_LIBPATH_AIX | ||
4889 | 3410 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4890 | 3411 | # Warning - without using the other run time loading flags, | ||
4891 | 3412 | # -berok will link without error, but may produce a broken library. | ||
4892 | 3413 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
4893 | 3414 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
4894 | 3415 | # Exported symbols can be pulled into shared objects from archives | ||
4895 | 3416 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
4896 | 3417 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
4897 | 3418 | # This is similar to how AIX traditionally builds its shared libraries. | ||
4898 | 3419 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
4899 | 3420 | fi | ||
4900 | 3421 | fi | ||
4901 | 3422 | ;; | ||
4902 | 3423 | |||
4903 | 3424 | beos*) | ||
4904 | 3425 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
4905 | 3426 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4906 | 3427 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
4907 | 3428 | # support --undefined. This deserves some investigation. FIXME | ||
4908 | 3429 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4909 | 3430 | else | ||
4910 | 3431 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4911 | 3432 | fi | ||
4912 | 3433 | ;; | ||
4913 | 3434 | |||
4914 | 3435 | chorus*) | ||
4915 | 3436 | case $cc_basename in | ||
4916 | 3437 | *) | ||
4917 | 3438 | # FIXME: insert proper C++ library support | ||
4918 | 3439 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4919 | 3440 | ;; | ||
4920 | 3441 | esac | ||
4921 | 3442 | ;; | ||
4922 | 3443 | |||
4923 | 3444 | cygwin* | mingw* | pw32*) | ||
4924 | 3445 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
4925 | 3446 | # as there is no search path for DLLs. | ||
4926 | 3447 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4927 | 3448 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4928 | 3449 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4929 | 3450 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
4930 | 3451 | |||
4931 | 3452 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
4932 | 3453 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4933 | 3454 | # If the export-symbols file already is a .def file (1st line | ||
4934 | 3455 | # is EXPORTS), use it as is; otherwise, prepend... | ||
4935 | 3456 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
4936 | 3457 | cp $export_symbols $output_objdir/$soname.def; | ||
4937 | 3458 | else | ||
4938 | 3459 | echo EXPORTS > $output_objdir/$soname.def; | ||
4939 | 3460 | cat $export_symbols >> $output_objdir/$soname.def; | ||
4940 | 3461 | fi~ | ||
4941 | 3462 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4942 | 3463 | else | ||
4943 | 3464 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4944 | 3465 | fi | ||
4945 | 3466 | ;; | ||
4946 | 3467 | darwin* | rhapsody*) | ||
4947 | 3468 | case $host_os in | ||
4948 | 3469 | rhapsody* | darwin1.[[012]]) | ||
4949 | 3470 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
4950 | 3471 | ;; | ||
4951 | 3472 | *) # Darwin 1.3 on | ||
4952 | 3473 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
4953 | 3474 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4954 | 3475 | else | ||
4955 | 3476 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
4956 | 3477 | 10.[[012]]) | ||
4957 | 3478 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4958 | 3479 | ;; | ||
4959 | 3480 | 10.*) | ||
4960 | 3481 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
4961 | 3482 | ;; | ||
4962 | 3483 | esac | ||
4963 | 3484 | fi | ||
4964 | 3485 | ;; | ||
4965 | 3486 | esac | ||
4966 | 3487 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4967 | 3488 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4968 | 3489 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
4969 | 3490 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4970 | 3491 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
4971 | 3492 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4972 | 3493 | |||
4973 | 3494 | if test "$GXX" = yes ; then | ||
4974 | 3495 | lt_int_apple_cc_single_mod=no | ||
4975 | 3496 | output_verbose_link_cmd='echo' | ||
4976 | 3497 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
4977 | 3498 | lt_int_apple_cc_single_mod=yes | ||
4978 | 3499 | fi | ||
4979 | 3500 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4980 | 3501 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4981 | 3502 | else | ||
4982 | 3503 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4983 | 3504 | fi | ||
4984 | 3505 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4985 | 3506 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4986 | 3507 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4987 | 3508 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4988 | 3509 | else | ||
4989 | 3510 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4990 | 3511 | fi | ||
4991 | 3512 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4992 | 3513 | else | ||
4993 | 3514 | case $cc_basename in | ||
4994 | 3515 | xlc*) | ||
4995 | 3516 | output_verbose_link_cmd='echo' | ||
4996 | 3517 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
4997 | 3518 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4998 | 3519 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4999 | 3520 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
5000 | 3521 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
The diff has been truncated for viewing.