Merge lp:~lubuntu-software-center-team/lubuntu-software-center/build-system into lp:~stephen-smally/lubuntu-software-center/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
Reviewer Review Type Date Requested Status
Stephen Smally Pending
Review via email: mp+74142@code.launchpad.net
To post a comment you must log in.
34. By Stephen Smally <email address hidden>

some changes

35. By Stephen Smally <email address hidden>

merged with the build-system

Preview Diff

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

Subscribers

People subscribed via source and target branches