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